New module 'fabsf-ieee'.
[gnulib.git] / ChangeLog
1 2012-02-26  Bruno Haible  <bruno@clisp.org>
2
3         New module 'fabsf-ieee'.
4         * modules/fabsf-ieee: New file.
5
6 2012-02-26  Bruno Haible  <bruno@clisp.org>
7
8         Tests for module 'fmal-ieee'.
9         * modules/fmal-ieee-tests: New file.
10         * tests/test-fmal-ieee.c: New file.
11
12         New module 'fmal-ieee'.
13         * modules/fmal-ieee: New file.
14
15         Tests for module 'fma-ieee'.
16         * modules/fma-ieee-tests: New file.
17         * tests/test-fma-ieee.c: New file.
18
19         New module 'fma-ieee'.
20         * modules/fma-ieee: New file.
21
22         Tests for module 'fmaf-ieee'.
23         * modules/fmaf-ieee-tests: New file.
24         * tests/test-fmaf-ieee.c: New file.
25         * tests/test-fma-ieee.h: New file.
26
27         New module 'fmaf-ieee'.
28         * modules/fmaf-ieee: New file.
29
30 2012-02-26  Bruno Haible  <bruno@clisp.org>
31
32         Tests for module 'ldexpl-ieee'.
33         * modules/ldexpl-ieee-tests: New file.
34         * tests/test-ldexpl-ieee.c: New file.
35
36         New module 'ldexpl-ieee'.
37         * modules/ldexpl-ieee: New file.
38
39         Tests for module 'ldexp-ieee'.
40         * modules/ldexp-ieee-tests: New file.
41         * tests/test-ldexp-ieee.c: New file.
42
43         New module 'ldexp-ieee'.
44         * modules/ldexp-ieee: New file.
45
46         Tests for module 'ldexpf-ieee'.
47         * modules/ldexpf-ieee-tests: New file.
48         * tests/test-ldexpf-ieee.c: New file.
49         * tests/test-ldexp-ieee.h: New file.
50
51         New module 'ldexpf-ieee'.
52         * modules/ldexpf-ieee: New file.
53
54 2012-02-26  Bruno Haible  <bruno@clisp.org>
55
56         Refactor frexp*-ieee tests.
57         * tests/test-frexp-ieee.h: New file.
58         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
59         (main): Just call test_function.
60         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
61         (main): Just call test_function.
62         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
63         (main): Just call test_function.
64         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
65         * modules/frexp-ieee-tests (Files): Likewise.
66         * modules/frexpl-ieee-tests (Files): Likewise.
67
68         Tests for module 'frexpl-ieee'.
69         * modules/frexpl-ieee-tests: New file.
70         * tests/test-frexpl-ieee.c: New file.
71
72         New module 'frexpl-ieee'.
73         * modules/frexpl-ieee: New file.
74
75         Tests for module 'frexp-ieee'.
76         * modules/frexp-ieee-tests: New file.
77         * tests/test-frexp-ieee.c: New file.
78
79         New module 'frexp-ieee'.
80         * modules/frexp-ieee: New file.
81
82         Tests for module 'frexpf-ieee'.
83         * modules/frexpf-ieee-tests: New file.
84         * tests/test-frexpf-ieee.c: New file.
85
86         New module 'frexpf-ieee'.
87         * modules/frexpf-ieee: New file.
88
89 2012-02-26  Bruno Haible  <bruno@clisp.org>
90
91         roundl-ieee tests: More tests.
92         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
93         (main): Add tests for [MX] shaded specification in POSIX.
94         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
95         (Depends-on): Add isnanl-nolibm.
96
97         round-ieee tests: More tests.
98         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
99         (main): Add tests for [MX] shaded specification in POSIX.
100         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
101         (Depends-on): Add isnand-nolibm.
102
103         roundf-ieee tests: More tests.
104         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
105         (main): Add tests for [MX] shaded specification in POSIX.
106         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
107         (Depends-on): Add isnanf-nolibm.
108
109         truncl-ieee tests: More tests.
110         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
111         (main): Add tests for [MX] shaded specification in POSIX.
112         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
113         (Depends-on): Add isnanl-nolibm.
114
115         trunc-ieee tests: More tests.
116         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
117         (main): Add tests for [MX] shaded specification in POSIX.
118         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
119         (Depends-on): Add isnand-nolibm.
120
121         truncf-ieee tests: More tests.
122         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
123         (main): Add tests for [MX] shaded specification in POSIX.
124         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
125         (Depends-on): Add isnanf-nolibm.
126
127         ceill-ieee tests: More tests.
128         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
129         (main): Add tests for [MX] shaded specification in POSIX.
130         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
131         (Depends-on): Add isnanl-nolibm.
132
133         ceil-ieee tests: More tests.
134         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
135         (main): Add tests for [MX] shaded specification in POSIX.
136         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
137         (Depends-on): Add isnand-nolibm.
138
139         ceilf-ieee tests: More tests.
140         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
141         (main): Add tests for [MX] shaded specification in POSIX.
142         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
143         (Depends-on): Add isnanf-nolibm.
144
145         floorl-ieee tests: More tests.
146         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
147         (main): Add tests for [MX] shaded specification in POSIX.
148         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
149         (Depends-on): Add isnanl-nolibm.
150
151         floor-ieee tests: More tests.
152         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
153         (main): Add tests for [MX] shaded specification in POSIX.
154         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
155         (Depends-on): Add isnand-nolibm.
156
157         floorf-ieee tests: More tests.
158         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
159         (main): Add tests for [MX] shaded specification in POSIX.
160         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
161         (Depends-on): Add isnanf-nolibm.
162
163 2012-02-26  Bruno Haible  <bruno@clisp.org>
164
165         fpieee: More comments.
166         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
167
168 2012-02-25  Bruno Haible  <bruno@clisp.org>
169
170         Tests for module 'log10l'.
171         * modules/log10l-tests: New file.
172         * tests/test-log10l.c: New file.
173         * tests/test-math-c++.cc: Check the declaration of log10l.
174
175         New module 'log10l'.
176         * lib/math.in.h (log10l): New declaration.
177         * lib/log10l.c: New file.
178         * m4/log10l.m4: New file.
179         * modules/log10l: New file.
180         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
182         HAVE_DECL_LOG10L.
183         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
184         HAVE_DECL_LOG10L.
185         * doc/posix-functions/log10l.texi: Mention the new module.
186
187 2012-02-25  Bruno Haible  <bruno@clisp.org>
188
189         fmodl, remainder*: Avoid wrong results due to rounding errors.
190         * lib/fmodl.c (fmodl): Correct the result if it is not within the
191         expected bounds.
192         * lib/remainderf.c (remainderf): Likewise.
193         * lib/remainder.c (remainder): Likewise.
194         * lib/remainderl.c (remainderl): Likewise.
195
196 2012-02-25  Bruno Haible  <bruno@clisp.org>
197
198         Tests for module 'remainderl'.
199         * modules/remainderl-tests: New file.
200         * tests/test-remainderl.c: New file.
201         * tests/test-math-c++.cc: Check the declaration of remainderl.
202
203         New module 'remainderl'.
204         * lib/math.in.h (remainderl): New declaration.
205         * lib/remainderl.c: New file.
206         * m4/remainderl.m4: New file.
207         * modules/remainderl: New file.
208         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
210         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
211         HAVE_REMAINDERL.
212         * doc/posix-functions/remainderl.texi: Mention the new module.
213
214 2012-02-25  Bruno Haible  <bruno@clisp.org>
215
216         Tests for module 'remainderf'.
217         * modules/remainderf-tests: New file.
218         * tests/test-remainderf.c: New file.
219         * tests/test-math-c++.cc: Check the declaration of remainderf.
220
221         New module 'remainderf'.
222         * lib/math.in.h (remainderf): New declaration.
223         * lib/remainderf.c: New file.
224         * m4/remainderf.m4: New file.
225         * modules/remainderf: New file.
226         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
228         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
229         HAVE_REMAINDERF.
230         * doc/posix-functions/remainderf.texi: Mention the new module.
231
232 2012-02-25  Bruno Haible  <bruno@clisp.org>
233
234         remainder: Support for MSVC.
235         * lib/math.in.h (remainder): New declaration.
236         * lib/remainder.c: New file.
237         * m4/remainder.m4: New file.
238         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
239         (Depends-on): Add math, round, fma.
240         (configure.ac): Use results of gl_FUNC_REMAINDER.
241         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
243         HAVE_DECL_REMAINDER.
244         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
245         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
246         * tests/test-math-c++.cc: Check the declaration of remainder.
247         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
248         problems are fixed.
249
250 2012-02-25  Bruno Haible  <bruno@clisp.org>
251
252         Tests for module 'fmodl'.
253         * modules/fmodl-tests: New file.
254         * tests/test-fmodl.c: New file.
255         * tests/test-math-c++.cc: Check the declaration of fmodl.
256
257         New module 'fmodl'.
258         * lib/math.in.h (fmodl): New declaration.
259         * lib/fmodl.c: New file.
260         * m4/fmodl.m4: New file.
261         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
262         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
263         REPLACE_FMODL.
264         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
265         REPLACE_FMODL.
266         * modules/fmodl: New file.
267         * doc/posix-functions/fmodl.texi: Mention the new module.
268
269 2012-02-25  Bruno Haible  <bruno@clisp.org>
270
271         Tests for module 'modfl'.
272         * modules/modfl-tests: New file.
273         * tests/test-modfl.c: New file.
274         * tests/test-math-c++.cc: Check the declaration of modfl.
275
276         New module 'modfl'.
277         * lib/math.in.h (modfl): New declaration.
278         * lib/modfl.c: New file.
279         * m4/modfl.m4: New file.
280         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
281         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
282         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
283         * modules/modfl: New file.
284         * doc/posix-functions/modfl.texi: Mention the new module.
285
286 2012-02-25  Bruno Haible  <bruno@clisp.org>
287
288         Tests for module 'fabsl'.
289         * modules/fabsl-tests: New file.
290         * tests/test-fabsl.c: New file.
291         * tests/test-math-c++.cc: Check the declaration of fabsl.
292
293         New module 'fabsl'.
294         * lib/math.in.h (fabsl): New declaration.
295         * lib/fabsl.c: New file.
296         * m4/fabsl.m4: New file.
297         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
299         REPLACE_FABSL.
300         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
301         REPLACE_FABSL.
302         * modules/fabsl: New file.
303         * doc/posix-functions/fabsl.texi: Mention the new module.
304
305 2012-02-25  Bruno Haible  <bruno@clisp.org>
306
307         fabs tests: More tests.
308         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
309         (zero): New variable.
310         (main): Add tests for signed zero.
311         * modules/fabs-tests (Files): Add tests/minus-zero.h.
312
313         fabsf tests: More tests.
314         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
315         (zero): New variable.
316         (main): Add tests for signed zero.
317         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
318
319 2012-02-24  Bruno Haible  <bruno@clisp.org>
320
321         atanl: Provide function definition on MSVC.
322         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
323         function pointer.
324         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
325
326 2012-02-24  Bruno Haible  <bruno@clisp.org>
327
328         acosl: Provide function definition on MSVC.
329         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
330         function pointer.
331         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
332
333 2012-02-24  Bruno Haible  <bruno@clisp.org>
334
335         asinl: Provide function definition on MSVC.
336         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
337         function pointer.
338         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
339
340 2012-02-24  Bruno Haible  <bruno@clisp.org>
341
342         tanl: Provide function definition on MSVC.
343         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
344         function pointer.
345         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
346
347 2012-02-24  Bruno Haible  <bruno@clisp.org>
348
349         cosl: Provide function definition on MSVC.
350         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
351         function pointer.
352         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
353
354 2012-02-24  Bruno Haible  <bruno@clisp.org>
355
356         sinl: Provide function definition on MSVC.
357         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
358         function pointer.
359         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
360
361 2012-02-24  Bruno Haible  <bruno@clisp.org>
362
363         logl: Provide function definition on MSVC.
364         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
365         function pointer.
366         * lib/math.in.h (logl): Undefine if it does not exist as a function.
367
368 2012-02-24  Bruno Haible  <bruno@clisp.org>
369
370         expl: Provide function definition on MSVC.
371         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
372         function pointer.
373         * lib/math.in.h (expl): Undefine if it does not exist as a function.
374
375 2012-02-24  Bruno Haible  <bruno@clisp.org>
376
377         sqrtl: Provide function definition on MSVC.
378         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
379         a function pointer.
380         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
381
382 2012-02-24  Bruno Haible  <bruno@clisp.org>
383
384         ceill: Provide function definition on MSVC.
385         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
386         used as a function pointer.
387         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
388
389 2012-02-24  Bruno Haible  <bruno@clisp.org>
390
391         floorl: Provide function definition on MSVC.
392         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
393         used as a function pointer.
394         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
395
396 2012-02-24  Bruno Haible  <bruno@clisp.org>
397
398         ceilf: Provide function definition on MSVC.
399         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
400         used as a function pointer.
401         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
402
403 2012-02-24  Bruno Haible  <bruno@clisp.org>
404
405         floorf: Provide function definition on MSVC.
406         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
407         used as a function pointer.
408         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
409
410 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
411
412         stdnoreturn: new module
413         This implements a replacement for C11's <stdnoreturn.h>.
414         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
415         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
416         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
417         * tests/test-stdnoreturn.c: New files.
418
419 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
420
421         regex: fix false multibyte matches in some regular expressions
422         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
423         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
424         * lib/regex_internal.c (re_string_skip_chars):
425         Fix miscomputation of remain_len that may cause incomplete
426         multi-byte character and false match.
427
428 2012-02-24  Jim Meyering  <meyering@redhat.com>
429
430         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
431         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
432         uses with "==" *before* the call, e.g., 0 == strcmp (...)
433         Remove now-unnecessary str''cmp obfuscation.
434         Suggested by Akim Demaille.
435
436 2012-02-24  Bruno Haible  <bruno@clisp.org>
437
438         streq: Rename macro.
439         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
440         * NEWS: Mention the change.
441         * lib/mbrtowc.c (mbrtowc): Update.
442         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
443         * lib/wcwidth.c (wcwidth): Update.
444         Suggested by Akim Demaille and Jim Meyering.
445
446 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
447
448         regex: fix typo in definition of MIN
449         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
450         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
451
452 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
453             Bruno Haible  <bruno@clisp.org>
454
455         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
456         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
457         entries into a stack-allocated buffer directly.
458         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
459
460 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
461             Bruno Haible  <bruno@clisp.org>
462
463         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
464
465          - There were several instances of this pattern:
466
467              for (;;) {
468                n = acl (f, GETACLCNT, 0, NULL);
469                [ allocate an array A of size N ]
470                if (acl (f, GETACL, n, a) == n)
471                  break;
472              }
473
474            This loop might never terminate if some other process is constantly
475            manipulating the file's ACL.  The loop should be rewritten to
476            terminate.
477
478          - The acl (... GETACLNT ...) call is merely an optimization; its value
479            is merely a hint as to how big to make the array.  A better
480            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
481            and just guess a reasonably-big size, growing the size and trying
482            again if it's not large enough.  This guarantees termination, and
483            saves a system call.
484
485         * lib/acl-internal.h: Include <limits.h>.
486         (MIN, SIZE_MAX): New macros.
487         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
488         a stack-allocated buffer, and use malloc if it does not fit. Don't
489         use GETACLCNT.
490         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
491
492 2012-02-19  Bruno Haible  <bruno@clisp.org>
493
494         acl: Fix endless loop on Solaris with vxfs.
495         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
496         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
497         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
498         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
499         * tests/test-sameacls.c (main)[Solaris]: Likewise.
500         Reported by Bill Jones in
501         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
502
503 2012-02-19  Bruno Haible  <bruno@clisp.org>
504
505         acl: Fix copy-acl test failure on Solaris 11 2011-11.
506         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
507         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
508         that this function returns 0 in some more cases.
509
510 2012-02-19  Bruno Haible  <bruno@clisp.org>
511
512         acl: Update doc references.
513         * doc/acl-resources.txt: Update links to Solaris documentation.
514
515 2012-02-19  Bruno Haible  <bruno@clisp.org>
516
517         Fix test failure in many locales on Solaris 11.
518         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
519         'tr' arguments.
520         * tests/test-pipe-filter-ii1.c (main): Likewise.
521         * build-aux/bootstrap (check_versions): Run 'tr' command with range
522         expressions in the C locale.
523         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
524         * m4/host-os.m4 (gl_HOST_OS): Likewise.
525
526 2012-02-19  Bruno Haible  <bruno@clisp.org>
527
528         gnulib-tool: Improve usage message.
529         * gnulib-tool (func_usage): Move doc of --help and --version to the
530         section "Operation modes".
531
532 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
533
534         README-release: make it easier to execute commands
535         * top/README-release: break commands out on to separate lines.
536
537 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
538
539         GNUmakefile: simplify detection of unconfigured trees
540         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
541         whether the tree make is being run from is already configured or
542         not.  Related simplifications.
543
544 2012-02-13  Simon Josefsson  <simon@josefsson.org>
545
546         * gnulib-tool (func_usage): Document --help and --version.
547
548 2012-02-11  Jim Meyering  <meyering@redhat.com>
549
550         bootstrap: don't exit 0 upon gnulib-tool failure
551         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
552         its exit status, not 0.
553
554 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
555
556         README-release: various improvements
557         * top/README-release: Give a command to push changes for the
558         release.  Add "distcheck" to list of other pre-release checks.
559         Fix instance of "make stable" which should be "make TYPE".
560
561 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
562
563         maint: replace FSF snail-mail addresses with URLs
564         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
565         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
566         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
567         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
568         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
569         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
570         * lib/check-version.c, lib/check-version.h, lib/config.charset:
571         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
572         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
573         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
574         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
575         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
576         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
577         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
578         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
579         * lib/glthread/thread.c, lib/glthread/thread.h:
580         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
581         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
582         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
583         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
584         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
585         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
586         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
587         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
588         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
589         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
590         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
591         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
592         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
593         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
594         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
595         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
596         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
597         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
598         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
599         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
600         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
601         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
602         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
603         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
604         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
605         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
606         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
607         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
608         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
609         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
610         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
611         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
612         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
613         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
614         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
615         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
616         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
617         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
618         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
619         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
620         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
621         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
622         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
623         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
624         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
625         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
626         * tests/test-poll.c, tests/test-quotearg-simple.c:
627         * tests/test-quotearg.c, tests/test-quotearg.h:
628         * tests/test-round-ieee.c, tests/test-round1.c:
629         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
630         * tests/test-roundl-ieee.c, tests/test-roundl.c:
631         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
632         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
633         * tests/test-strerror.c, tests/test-strerror_r.c:
634         * tests/test-strsignal.c, tests/test-strverscmp.c:
635         * tests/test-xmemdup0.c:
636         Replace FSF snail mail addresses with URLs, as per GNU coding
637         standards.  See glibc bug
638         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
639
640 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
641
642         README-release: capitalize a word and split a line
643         * top/README-release: Fix punctuation and spacing.
644
645 2012-02-08  Akim Demaille  <demaille@gostai.com>
646
647         fatal-signal: use C prototypes (with explicit void).
648         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
649         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
650
651 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
652
653         regex: spelling fix
654         * lib/regexec.c: spelling fix
655
656         regex: rely on stdint.h for SIZE_MAX
657         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
658
659 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
660
661         regex: merge glibc changes
662
663         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
664         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
665         (init_word_char): Work even if bitset words are not exactly 32 or
666         64 bits wide.  Don't assume there are no padding bits.
667         * lib/regex.c [_LIBC]: Do not include <config.h>.
668         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
669         and -Wtype-limits.
670         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
671         needless disagreement with glibc.  All uses changed.  Define it to
672         1 only if _GNU_SOURCE, to match glibc.
673         (_REG_RM_NAME): Remove; no longer needed, since the names in
674         question are now all protected by __USE_GNU.
675         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
676         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
677         * lib/regex_internal.h (MIN): New macro.
678
679         2012-01-03 Ulrich Drepper <drepper@gmail.com>
680         * lib/regcomp.c (init_word_char): Optimize regex a bit.
681
682         2011-12-30 Jakub Jelinek <jakub@redhat.com>
683         * lib/regex_internal.c (re_string_fetch_byte_case):
684         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
685         is miscompiled, and it turns out it is because of an incorrect
686         attribute on re_string_fetch_byte_case.  Unlike
687         re_string_peek_byte_case, this one is really not pure, it modifies
688         memory (increments pstr->cur_idx), and with the pure attribute GCC
689         assumed it doesn't and it cached the presumed value of
690         regexp->cur_idx in a variable across the
691          for (;; ++i)
692            {
693              if (i >= BRACKET_NAME_BUF_SIZE)
694                return REG_EBRACK;
695              if (token->type == OP_OPEN_CHAR_CLASS)
696                ch = re_string_fetch_byte_case (regexp);
697              else
698                ch = re_string_fetch_byte (regexp);
699              if (re_string_eoi(regexp))
700                return REG_EBRACK;
701              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
702                break;
703              elem->opr.name[i] = ch;
704            }
705
706         2011-11-29 Andreas Schwab <schwab@redhat.com>
707         * lib/regcomp.c (build_equiv_class):
708         Fix access after end of search string in regex matcher.
709
710         2011-11-12 Ulrich Drepper <drepper@redhat.com>
711         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
712
713         2011-10-12 Ulrich Drepper <drepper@redhat.com>
714         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
715
716         2011-10-11 Ulrich Drepper <drepper@redhat.com>
717         * lib/regcomp.c (parse_branch, parse_sub_exp):
718         More regex memory leak fixes and tests.
719         (parse_sub_exp, parse_bracket_exp):
720         Fix memory leak for some invalid regular expressions.
721
722         2011-05-28 Ulrich Drepper <drepper@gmail.com>
723         * lib/regex_internal.c, lib/regexec.c:
724         Fix unnecessary overallocation due to incomplete character.  When
725         incomplete characters are found at the end of a string the code
726         ran amok and allocated lots of memory.  Stricter limits are now in
727         place.
728
729         2011-05-20 Reuben Thomas <rrt@sc3d.org>
730         * lib/regex.h: Update documentation.
731
732         2011-05-16 Aharon Robbins <arnold@skeeve.com>
733         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
734
735         2010-05-05 Andreas Schwab <schwab@redhat.com>
736         * lib/regexec.c (find_collation_sequence_value):
737         Fix lookup of collation sequence value during regexp matching.
738
739         2010-01-22 Ulrich Drepper <drepper@redhat.com>
740         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
741
742         2008-01-16 Ulrich Drepper <drepper@redhat.com>
743         * lib/regex.h: Cleanup namespace.
744
745         2007-11-26 Ulrich Drepper <drepper@redhat.com>
746         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
747
748         2007-08-26 Ulrich Drepper <drepper@redhat.com>
749         * lib/regex_internal.h: Prevent some declarations and definitions
750         to be seen when used in tests.
751
752         2005-05-06 Ulrich Drepper <drepper@redhat.com>
753         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
754         __libc_lock_* macros if not _LIBC.
755         (struct re_dfa_t): Add lock.
756
757 2012-02-07  Eric Blake  <eblake@redhat.com>
758
759         maint.mk: also prohibit lower-case @var@
760         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
761         lower case, like @top_srcdir@.
762
763 2012-02-04  Eric Blake  <eblake@redhat.com>
764
765         canonicalize: avoid uninitialized memory use
766         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
767         random '/' left in dest.
768         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
769
770 2012-02-04  Bruno Haible  <bruno@clisp.org>
771
772         isatty: Fix test failure of ptsname_r on native Windows.
773         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
774         and don't set errno.
775         (isatty): Test first whether fd is valid. Set errno when returning 0.
776
777 2012-02-04  Bruno Haible  <bruno@clisp.org>
778
779         spawn-pipe tests: Fix a NULL program name in a diagnostic.
780         * tests/test-spawn-pipe-main.c: Include progname.h.
781         (main): Invoke set_program_name.
782         * modules/spawn-pipe-tests (Depends-on): Add progname.
783
784         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
785         * tests/test-nonblocking-socket-main.c: Include progname.h.
786         (main): Invoke set_program_name.
787         * modules/nonblocking-socket-tests (Depends-on): Add progname.
788
789         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
790         * tests/test-nonblocking-pipe-main.c: Include progname.h.
791         (main): Invoke set_program_name.
792         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
793
794 2012-02-04  Eric Blake  <eblake@redhat.com>
795
796         canonicalize-lgpl: fix // handling
797         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
798
799         canonicalize: fix // handling
800         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
801         /// to //, since only // is special.
802
803 2012-02-04  Bruno Haible  <bruno@clisp.org>
804
805         ioctl: Fix test failure on native Windows.
806         * lib/ioctl.c: Include msvc-nothrow.h.
807         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
808
809 2012-02-04  Bruno Haible  <bruno@clisp.org>
810
811         fsync: Avoid test failure on native Windows.
812         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
813         read-only.
814
815 2012-02-04  Bruno Haible  <bruno@clisp.org>
816
817         sys_select: Avoid syntax error on OpenBSD 5.0.
818         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
819         currently being included, just include the system's <sys/select.h>.
820
821 2012-02-04  Bruno Haible  <bruno@clisp.org>
822
823         sys_select: Avoid syntax error on OpenBSD 5.0.
824         * lib/sys_select.in.h: Include <signal.h> only after the include_next
825         <sys/select.h>, not before.
826         Reported by Jiri B <jirib@devio.us>.
827
828 2012-02-04  Bruno Haible  <bruno@clisp.org>
829
830         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
831         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
832         global variables.
833         * tests/test-get-rusage-data.c (main): Likewise.
834         Reported by Jim Meyering.
835
836 2012-02-04  Bruno Haible  <bruno@clisp.org>
837
838         stdioext: Fix last commit.
839         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
840
841 2012-02-03  Bruno Haible  <bruno@clisp.org>
842
843         stdioext: Add tentative support for Plan9.
844         * lib/stdio-impl.h: Include <errno.h>.
845         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
846         * lib/freadable.c (freadable): Likewise.
847         * lib/fwritable.c (fwritable): Likewise.
848         * lib/fbufmode.c (fbufmode): Likewise.
849         * lib/freading.c (freading): Likewise.
850         * lib/fwriting.c (fwriting): Likewise.
851         * lib/freadptr.c (freadptr): Likewise.
852         * lib/freadseek.c (freadptrinc): Likewise.
853         * lib/freadahead.c (freadahead): Likewise.
854         * lib/fpurge.c (fpurge): Likewise.
855         * lib/fseeko.c (rpl_fseeko): Likewise.
856         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
857         Reported by Jens Staal <staal1978@gmail.com>.
858
859 2012-02-02  Jim Meyering  <meyering@redhat.com>
860
861         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
862         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
863         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
864         not even to try to add the attribute.  Instead, add a pragma to suppress
865         the suggestion/warning.
866
867 2012-01-31  Karl Berry  <karl@gnu.org>
868
869         setstate doc: typo.
870         * doc/posix-functions/setstate.texi (setstate): { not (.
871
872 2012-01-31  Bruno Haible  <bruno@clisp.org>
873
874         popen: Make more robust on Windows.
875         * lib/popen.c: On native Windows, use the _popen based code even if
876         HAVE_POPEN is set.
877         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
878         environment variable on native Windows.
879
880 2012-01-30  Bruno Haible  <bruno@clisp.org>
881
882         pclose: Fix typo.
883         * lib/stdio.in.h (pclose): Fix typo in warning message.
884
885 2012-01-30  Bruno Haible  <bruno@clisp.org>
886
887         doc about getlogin_r, setstate.
888         * doc/posix-functions/getlogin_r.texi: List the incompatible
889         declaration problem under "not fixed by gnulib".
890         * doc/posix-functions/setstate.texi: Mention incompatible declaration
891         problem on Solaris 11 and other platforms.
892
893 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
894             Bruno Haible  <bruno@clisp.org>
895
896         poll tests: Make test more robust.
897         * tests/test-poll.c: Include macros.h.
898         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
899         return value of various I/O operations.
900         * modules/poll-tests (Files): Add tests/macros.h.
901
902 2012-01-30  Bruno Haible  <bruno@clisp.org>
903
904         sys_stat: Fix support for mingw64 and MSVC.
905         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
906         header files already do it.
907         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
908         stat itself.
909         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
910
911 2012-01-30  Bruno Haible  <bruno@clisp.org>
912
913         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
915         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
916
917 2012-01-29  Bruno Haible  <bruno@clisp.org>
918
919         quotearg: Fix test failure on MacOS X 10.5.
920         * tests/test-quotearg-simple.c: Include localcharset.h.
921         (main): If the locale encoding is not ASCII, bypass the tests of
922         locale_quoting_style and clocale_quoting_style.
923         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
924
925 2012-01-29  Jim Meyering  <meyering@redhat.com>
926
927         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
928         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
929         detect uses of canonicalize_file_name.
930
931 2012-01-28  Bruno Haible  <bruno@clisp.org>
932
933         test-framework-sh: Fix test failure with AIX 7.1 diff.
934         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
935         in column 1, like 'diff -c' does.
936         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
937         whether 'diff -u' is used. Instead, test whether the output contains
938         some '@' character.
939
940 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
941
942         strtoimax: eliminate need for stdint.h, inttypes.h checks
943         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
944         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
945         the prerequisites for a recently-introduced strtoimax test.
946         I guess this might cause strtoimax to be replaced when not
947         strictly necessary on older hosts, but this shouldn't introduce
948         any bugs and it should make Emacs 'configure' faster on typical
949         modern hosts.  Problem discovered when importing the latest gnulib
950         to an Emacs test version.
951         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
952
953 2012-01-28  Bruno Haible  <bruno@clisp.org>
954
955         sys_time: Override 'struct timeval' on some native Windows platforms.
956         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
957         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
958         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
959         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
960         needs to be overridden.
961         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
962         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
963         * tests/test-sys_select.c: Check that the tv_sec member has the same
964         size as a 'time_t'.
965         * tests/test-sys_time.c: Likewise.
966         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
967         is set, set also REPLACE_GETTIMEOFDAY.
968         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
969         convert the resulting 'struct timeval' before returning.
970         * lib/select.c: Include <sys/time.h>.
971         (select, timeval): Undefine at the right place.
972         * modules/select (Depends-on): Add sys_time.
973         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
974         some Windows platforms.
975         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
976
977 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
978
979         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
980         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
981         an integer.
982         * lib/fcntl.c (dupfd): Likewise.
983         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
984
985 2012-01-28  Bruno Haible  <bruno@clisp.org>
986
987         fcntl: Avoid compilation error on native Windows.
988         * modules/fcntl (Depends-on): Add 'close'.
989
990 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
991
992         select, poll, isatty: Avoid warnings on x86_64 mingw64.
993         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
994         pointer to an integer.
995         * lib/poll.c (IsConsoleHandle): Likewise.
996         * lib/isatty.c (IsConsoleHandle): Likewise.
997
998 2012-01-28  Jim Meyering  <meyering@redhat.com>
999
1000         doc: clarify README-release
1001         * top/README-release: Clarify: you should make a point to have
1002         the latest stable versions of build tools in your PATH, and the
1003         reference to buildreq is solely for its list of tool names, not
1004         for its minimal-functional version numbers.
1005         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
1006
1007         maint.mk: use more readable (yet functionally equivalent) quoting
1008         It is common to quote a single quote in a single quoted string like
1009         this:  '...'\''...'.  Unless you know the idiom, that looks like
1010         gibberish, so prefer to double-quote the string when possible.
1011         Then you can use a more readable, lone single quote: "...'..."
1012         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
1013         "don't" is more readable than the equivalent 'don'\''t'.
1014         (sc_cast_of_x_alloc_return_value): Likewise.
1015         (sc_cast_of_alloca_return_value): Likewise.
1016         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1017         rather than '\'':'\''.
1018
1019 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1020
1021         stdalign: relax _Alignof and tighten _Alignas test
1022         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1023         as it was too strict: alignof must divide offsetof, but it need
1024         not equal offsetof.  Inspired by Joseph S. Myers's comment
1025         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1026         Conversely, tighten the _Alignas test a bit, as the resulting
1027         alignment must be exactly 8.
1028
1029 2012-01-27  Bruno Haible  <bruno@clisp.org>
1030
1031         stdalign: Document the last change.
1032         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1033
1034 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1035
1036         stdalign: check that alignof and offsetof are consistent
1037         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1038         Problem reported for gnulib by Richard W.M. Jones in
1039         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1040
1041 2012-01-27  Jim Meyering  <meyering@redhat.com>
1042
1043         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1044         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1045         convert a sequence with gaps to the minimal containing range.
1046         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1047         * tests/test-update-copyright.sh: Test for this.
1048         The FSF confirmed it is ok to do this, assuming there is at
1049         least one significant change per year in the affected range:
1050         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1051
1052 2012-01-26  Bruno Haible  <bruno@clisp.org>
1053
1054         pipe2: refine doc about thread-safety
1055         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1056         multithread-safety problem.
1057         * doc/glibc-functions/accept4.texi: Likewise.
1058
1059 2012-01-26  Bruno Haible  <bruno@clisp.org>
1060
1061         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1062         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1063         In the test program, include <fcntl.h>, for O_RDONLY.
1064
1065 2012-01-26  Eric Blake  <eblake@redhat.com>
1066
1067         pipe2: document lack of thread-safety in replacement
1068         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1069         issue in replacement.
1070         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1071         Based on a report by Eric Wong.
1072
1073 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1074             Bruno Haible  <bruno@clisp.org>
1075
1076         malloca: Avoid warnings on x86_64 mingw64.
1077         * lib/malloca.c: Include <stdint.h>.
1078         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1079         * modules/malloca (Depends-on): Add stdint.
1080         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1081
1082 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         obstack: remove __STDC__ conditionals
1085         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1086         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1087         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1088         m4/include_next.m4 as the only gnulib-maintained places that still
1089         refer to __STDC__.
1090
1091 2012-01-24  Bruno Haible  <bruno@clisp.org>
1092
1093         havelib: Modern quoting.
1094         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1095         the recent change to the GNU coding standards.
1096
1097 2012-01-24  Bruno Haible  <bruno@clisp.org>
1098
1099         stdint: Improve support for Android.
1100         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1101         Reported by Simon Josefsson <simon@josefsson.org>.
1102
1103 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1104
1105         doc: omit trailing empty lines from INSTALL etc.
1106         * doc/Makefile (INSTALL): Omit trailing empty lines.
1107         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1108         omit trailing empty lines.  This simplifies the build procedure.
1109
1110 2012-01-23  Jim Meyering  <meyering@redhat.com>
1111
1112         tests: avoid spurious warnings about gl_sockets_startup
1113         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1114         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1115         reporting a "statement with no effect".
1116         * tests/test-accept.c (main): Mark as "(void)".
1117         * tests/test-accept4.c (main): Likewise.
1118         * tests/test-bind.c (main): Likewise.
1119         * tests/test-connect.c (main): Likewise.
1120         * tests/test-getpeername.c (main): Likewise.
1121         * tests/test-getsockname.c (main): Likewise.
1122         * tests/test-getsockopt.c (main): Likewise.
1123         * tests/test-listen.c (main): Likewise.
1124         * tests/test-recv.c (main): Likewise.
1125         * tests/test-recvfrom.c (main): Likewise.
1126         * tests/test-send.c (main): Likewise.
1127         * tests/test-sendto.c (main): Likewise.
1128         * tests/test-setsockopt.c (main): Likewise.
1129         * tests/test-shutdown.c (main): Likewise.
1130
1131 2012-01-21  Bruno Haible  <bruno@clisp.org>
1132
1133         locale-fr.m4: Fix for Android.
1134         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1135         failure of the test program on Bionic libc.
1136
1137 2012-01-21  Jim Meyering  <meyering@redhat.com>
1138
1139         bootstrap: fail when bootstrap_post_import_hook fails
1140         Otherwise, it's far too easy to miss diagnostics emitted
1141         between gnulib-tool's output and that of running configure.
1142         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1143
1144 2012-01-17  Jim Meyering  <meyering@redhat.com>
1145
1146         maint: enable sc_trailing_blank
1147         * build-aux/pmccabe.css: Remove trailing blanks.
1148         * doc/acl-cygwin.txt: Likewise.
1149         * doc/gnu-oids.texi: Likewise
1150         * cfg.mk: Enable sc_trailing_blank.
1151         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1152
1153 2012-01-17  Jim Meyering  <meyering@redhat.com>
1154
1155         maint: enable sc_prohibit_openat_without_use
1156         * cfg.mk: Enable sc_prohibit_openat_without_use.
1157         Exempt lib/selinux-at.c.
1158
1159 2012-01-17  Jim Meyering  <meyering@redhat.com>
1160
1161         maint: enable sc_prohibit_cloexec_without_use
1162         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1163         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1164
1165 2012-01-17  Jim Meyering  <meyering@redhat.com>
1166
1167         maint: enable sc_prohibit_intprops_without_use
1168         * cfg.mk: Enable sc_prohibit_intprops_without_use
1169         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1170
1171 2012-01-17  Jim Meyering  <meyering@redhat.com>
1172
1173         maint: enable sc_prohibit_hash_pjw_without_use
1174         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1175         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1176         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1177         following " (".
1178
1179 2012-01-17  Jim Meyering  <meyering@redhat.com>
1180
1181         maint: enable double-word-prohibiting rule
1182         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1183         Exempt three files.
1184
1185 2012-01-17  Jim Meyering  <meyering@redhat.com>
1186
1187         maint: remove empty lines at EOF, but excluding modules/*
1188         Apply syntax rules at home as well as abroad.  Most changes
1189         were induced by running this:
1190           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1191             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1192             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1193         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1194         Exempt modules/* and two binary files.
1195         Also exempt doc/INSTALL*, per request from Bruno Haible.
1196         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1197         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1198         * doc/Copyright/request-assign.future: Likewise.
1199         * doc/Copyright/request-disclaim.changes: Likewise.
1200         * doc/INSTALL: Likewise.
1201         * doc/INSTALL.ISO: Likewise.
1202         * doc/INSTALL.UTF-8: Likewise.
1203         * doc/acl-cygwin.txt: Likewise.
1204         * doc/acl-resources.txt: Likewise.
1205         * doc/fdl-1.2.texi: Likewise.
1206         * doc/fdl-1.3.texi: Likewise.
1207         * doc/fdl.texi: Likewise.
1208         * lib/argp-pin.c: Likewise.
1209         * lib/round.c: Likewise.
1210         * lib/unicase/u16-totitle.c: Likewise.
1211         * lib/unictype/block_test.c: Likewise.
1212         * lib/uninorm/canonical-decomposition.c: Likewise.
1213         * m4/README: Likewise.
1214         * m4/relocatable-lib.m4: Likewise.
1215         * tests/test-isnand-nolibm.c: Likewise.
1216         * tests/test-isnand.c: Likewise.
1217         * tests/uninorm/NormalizationTest.txt: Likewise.
1218
1219 2012-01-17  Jim Meyering  <meyering@redhat.com>
1220
1221         maint: add framework to run syntax-check rules against gnulib sources
1222         * cfg.mk: New file, to disable all currently-failing tests.
1223         We'll enable them one by one, as they are made to pass.
1224         * Makefile (sc_maint): New rule.
1225
1226 2012-01-21  Bruno Haible  <bruno@clisp.org>
1227
1228         stdint: Add support for Android.
1229         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1230         include the system's <stdint.h>.
1231         Reported by Simon Josefsson <simon@josefsson.org>.
1232
1233 2012-01-19  Jim Meyering  <meyering@redhat.com>
1234
1235         bootstrap: add bootstrap_post_import_hook
1236         Bison does still need something like the gnulib_mk_hook whose
1237         invocation I had to remove along with slurp in commit 767ccd40.
1238         Technically, we could get along without it, but doing so would
1239         have required living with a warning and a mandatory post-bootstrap
1240         automake rerun.
1241         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1242         (bootstrap_post_import_hook): New function.
1243         Invoke it after gnulib-tool --import and before autoreconf.
1244
1245 2012-01-18  Jim Meyering  <meyering@redhat.com>
1246
1247         gitlog-to-changelog: don't use "no_"-prefixed variable name
1248         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1249         to enable both --cluster and --no-cluster.  Change variable name,
1250         s/\$no_cluster/$cluster/, and reverse usage to match.
1251
1252         gitlog-to-changelog: use "||", not "or" in expressions
1253         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1254         expressions.
1255
1256 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1257
1258         gitlog-to-changelog: new option --no-cluster
1259         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1260         clustering of adjacent commit messages.
1261
1262 2012-01-17  Jim Meyering  <meyering@redhat.com>
1263
1264         maint: spell file systems with two words, not one
1265         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1266         two words, not one.
1267
1268 2012-01-16  Jim Meyering  <meyering@redhat.com>
1269
1270         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1271         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1272
1273 2012-01-16  Eric Blake  <eblake@redhat.com>
1274
1275         bootstrap: cater to autoconf 2.59
1276         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1277         is not available.
1278
1279         bootstrap: properly check for libtool
1280         * build-aux/bootstrap (libtoolize): Also run libtool when older
1281         usage is detected.
1282
1283 2012-01-15  Bruno Haible  <bruno@clisp.org>
1284
1285         Improve support for MSVC 9.
1286         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1287         clashes on MSVC.
1288         * lib/fcntl.in.h: Likewise.
1289         * lib/stdlib.in.h: Likewise.
1290         * lib/sys_stat.in.h: Likewise.
1291
1292 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1293
1294         gnupload: we hold the master copy of this script now
1295         For motivation and more information, see:
1296         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1297         * build-aux/gnupload: Make it clear in the heading comments that the
1298         master copy of this file is maintained by gnulib.  Since we are at
1299         it, bump its copyright year and ...
1300         ($scriptversion): ... the date in its version.
1301         ($usage): Patches and bug reports should be sent to the gnulib list,
1302         not the automake one.
1303         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1304         anymore.
1305
1306 2012-01-15  Bruno Haible  <bruno@clisp.org>
1307
1308         Fix module 'random'.
1309         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1310         initstate, setstate are declared.
1311
1312 2012-01-14  Bruno Haible  <bruno@clisp.org>
1313
1314         Tests for module 'random'.
1315         * modules/random-tests: New file.
1316         * tests/test-random.c: New file, based on tests/test-random_r.c.
1317
1318         New module 'random'.
1319         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1320         declarations.
1321         * lib/random.c: New file, based on glibc/stdlib/random.c.
1322         * m4/random.m4: New file.
1323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1324         HAVE_RANDOM.
1325         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1326         * modules/random: New file.
1327         * config/srclist.txt: Add an entry for random.c.
1328         * doc/posix-functions/random.texi: Mention the 'random' module.
1329         * doc/posix-functions/initstate.texi: Likewise.
1330         * doc/posix-functions/setstate.texi: Likewise.
1331         * doc/posix-functions/srandom.texi: Likewise.
1332
1333 2012-01-12  Bruno Haible  <bruno@clisp.org>
1334
1335         random_r: Use common idioms.
1336         * lib/random_r.c: Include <stdlib.h> first.
1337
1338         random_r: Override incompatible API on AIX, OSF/1.
1339         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1340         Override the system function if REPLACE_RANDOM_R is 1.
1341         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1342         and OSF/1, set REPLACE_RANDOM_R.
1343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1344         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1345         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1346         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1347         * doc/glibc-functions/random_r.texi: Likewise.
1348         * doc/glibc-functions/setstate_r.texi: Likewise.
1349
1350         random_r: Support for MSVC 9.
1351         * lib/random_r.c: Include stdint.h, not inttypes.h.
1352
1353 2012-01-12  Eric Blake  <eblake@redhat.com>
1354
1355         inet_ntop: guard extra work by IF_LINT
1356         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1357         better code generation when not checking for warnings.
1358         Suggested by Paul Eggert and Jim Meyering.
1359
1360         strptime: fix regression on mingw
1361         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1362         Fix regression.  Reported by Bruno Haible.
1363
1364 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1365             Bruno Haible  <bruno@clisp.org>
1366
1367         copy-file: add error-code-returning variant.
1368         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1369         (qcopy_file_preserving): New declaration.
1370         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1371         copy_file_preserving. Change return type to 'int'. Don't emit an error
1372         message here.
1373         (copy_file_preserving): New function.
1374         * tests/test-copy-file.c: Include <stdlib.h>.
1375         (main): Test qcopy_file_preserving if the environment variable
1376         NO_STDERR_OUTPUT is set.
1377         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1378         with NO_STDERR_OUTPUT
1379         * tests/test-copy-file-2.sh: Likewise.
1380
1381 2012-01-10  Bruno Haible  <bruno@clisp.org>
1382
1383         copy-file: Use 'quote' module consistently.
1384         * lib/copy-file.c (copy_file_preserving): Use quote().
1385
1386         copy-file: Refactor.
1387         * lib/copy-file.c: Include quote.h.
1388         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1389         message here.
1390         * modules/copy-file (Depends-on): Add quote.
1391
1392         acl: Export qcopy_acl.
1393         * lib/acl.h (qcopy_acl): New declaration.
1394         * lib/copy-acl.c (qcopy_acl): Make non-static.
1395
1396         acl: Rename a local variable.
1397         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1398
1399         acl: Align return values of copy_acl and qcopy_acl.
1400         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1401         maybe < -1.
1402
1403 2012-01-11  Eric Blake  <eblake@redhat.com>
1404
1405         strptime: silence gcc warnings
1406         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1407         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1408         Reported by Daniel P. Berrange.
1409
1410         inet_ntop: silence gcc warning
1411         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1412         Reported by Daniel P. Berrange.
1413
1414 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1415
1416         getloadavg test: skip the test on GNU/Linux without /proc mounted
1417         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1418         file.  When /proc is not mounted, it always fails with ENOENT.
1419         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1420         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1421
1422 2012-01-10  Bruno Haible  <bruno@clisp.org>
1423
1424         regex: Avoid link error on MSVC 9.
1425         * modules/regex (Depends-on): Add wctype.
1426
1427 2012-01-10  Bruno Haible  <bruno@clisp.org>
1428
1429         doc: Mention --with-tests option.
1430         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1431         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1432         --with-tests.
1433         Reported by Reuben Thomas.
1434
1435 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1436
1437         users.txt: order package names lexicographically.
1438         * users.txt: Order package names lexicographically.
1439
1440 2012-01-10  Jim Meyering  <meyering@redhat.com>
1441
1442         maint.mk: fix description in comment
1443         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1444
1445         ignore-value: remove deprecated ignore_ptr function
1446         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1447         * NEWS: Note this.
1448
1449 2012-01-09  Jim Meyering  <meyering@redhat.com>
1450
1451         test-init.sh: avoid a subshell
1452         * tests/test-init.sh: Remove protective subshell.
1453         Suggested by Bernhard Voelker.  While a subshell is normally
1454         required to protect against older shells (Solaris, FreeBSD) that
1455         warn about a missing program before performing redirection, the
1456         shell-selection tests performed by init.sh probably exclude any
1457         offending shell.
1458
1459 2012-01-08  Bruno Haible  <bruno@clisp.org>
1460
1461         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1462         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1463         variable.
1464
1465 2012-01-08  Bruno Haible  <bruno@clisp.org>
1466
1467         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1468         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1469         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1470         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1471         macro.
1472         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1473         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1474         * lib/spawn_faction_addopen.c: Add workaround implementation if
1475         HAVE_WORKING_POSIX_SPAWN.
1476         * modules/spawn (Makefile): Substitute
1477         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1478         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1479         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1480         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1481         (Depends-on): Update conditions.
1482         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1483         the Solaris 11 bug.
1484
1485 2012-01-08  Bruno Haible  <bruno@clisp.org>
1486
1487         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1488         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1489         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1490         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1491         macro.
1492         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1493         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1494         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1495         HAVE_WORKING_POSIX_SPAWN.
1496         * modules/spawn (Makefile): Substitute
1497         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1498         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1499         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1500         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1501         (Depends-on): Update conditions.
1502         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1503         the Solaris 11 bug.
1504
1505 2012-01-08  Bruno Haible  <bruno@clisp.org>
1506
1507         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1508         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1509         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1510         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1511         HAVE_WORKING_POSIX_SPAWN.
1512         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1513         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1514         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1515         * lib/spawn_faction_addclose.c: Add workaround implementation if
1516         HAVE_WORKING_POSIX_SPAWN.
1517         * modules/spawn (Makefile): Substitute
1518         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1519         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1520         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1521         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1522         (Depends-on): Update conditions.
1523         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1524         the Solaris 11 bug.
1525
1526 2012-01-08  Bruno Haible  <bruno@clisp.org>
1527
1528         doc: Update for Solaris 11 2011-11.
1529         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1530         * m4/printf.m4: Update comments.
1531
1532 2012-01-08  Bruno Haible  <bruno@clisp.org>
1533
1534         mktime: Avoid compilation error on Solaris 11.
1535         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1536
1537 2012-01-08  Bruno Haible  <bruno@clisp.org>
1538
1539         doc: Small fix.
1540         * doc/posix-headers/nl_types.texi: Correct platforms list.
1541
1542 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1543
1544         Add lgpl-3.0 module.
1545         * MODULES.html.sh (Support for building documentation): Add
1546         lgpl-3.0.
1547         * modules/lgpl-3.0: New file.
1548
1549 2012-01-08  Jim Meyering  <meyering@redhat.com>
1550
1551         select.c: indent with spaces, not TABs
1552         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1553
1554 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1555
1556         quotearg: do not use grave accent for left quote
1557         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1558         locale_quoting_style.
1559         (quotearg_buffer_restyled): Fix example.
1560         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1561
1562 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1563
1564         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1565         Most programs do not have translation catalogs for English and much
1566         less separate catalogs for British and American English.  Drop the
1567         suggestion to translators about these two, and provide it
1568         automatically for Unicode locales.  Like most programs, even those
1569         using American English, we use single quotation marks.  This conflicts
1570         with the American typographic convention, but works better when you
1571         cite the entire error message within double quotes.  It also tries not
1572         to clash with established practice and with what non-gnulib programs
1573         will usually do.
1574         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1575         using an UTF-8 or GB-18030 locale.  The list of other locales with
1576         quotes was provided by Bruno Haible.
1577         (quotearg_buffer_restyled): Adjust instructions to translators.
1578         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1579         text, since this would be wrong when using Unicode.
1580         * modules/quotearg: Depend on c-strcaseeq.
1581
1582 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1583
1584         quotearg: fix Wikipedia link
1585         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1586
1587 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1588
1589         Fix for mingw with MSVC9.
1590         * m4/ld-version-script.m4: Check that compiler rejects version
1591         scripts with syntax errors.  Reported by Bruno Haible
1592         <bruno@clisp.org>.
1593
1594 2012-01-06  Bruno Haible  <bruno@clisp.org>
1595
1596         Talk about "native Windows API", not "Woe32".
1597         * lib/accept4.c: Update comments to mention native Windows.
1598         * lib/execute.c: Likewise.
1599         * lib/fatal-signal.c: Likewise.
1600         * lib/localcharset.c: Likewise.
1601         * lib/nanosleep.c: Likewise.
1602         * lib/nl_langinfo.c: Likewise.
1603         * lib/pclose.c: Likewise.
1604         * lib/pipe-filter-gi.c: Likewise.
1605         * lib/pipe-filter-ii.c: Likewise.
1606         * lib/pipe.c: Likewise.
1607         * lib/pipe2.c: Likewise.
1608         * lib/popen.c: Likewise.
1609         * lib/progreloc.c: Likewise.
1610         * lib/relocatable.c: Likewise.
1611         * lib/sigaction.c: Likewise.
1612         * lib/sigprocmask.c: Likewise.
1613         * lib/spawn-pipe.h: Likewise.
1614         * lib/spawn-pipe.c: Likewise.
1615         * lib/spawni.c: Likewise.
1616         * lib/stat-time.h: Likewise.
1617         * lib/w32spawn.h: Likewise.
1618         * tests/test-isatty.c: Likewise.
1619         * lib/config.charset: More comments.
1620         * doc/gnulib-intro.texi: Mention native Windows.
1621         * doc/posix-functions/_Exit_C99.texi: Likewise.
1622         * doc/posix-headers/fcntl.texi: Likewise.
1623
1624 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1625
1626         argp: Avoid crash if translator uses % characters in a translation.
1627         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1628         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1629
1630 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1631
1632         doc: C11 and C++11 are now official
1633         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1634         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1635         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1636         * modules/stdalign:
1637         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1638
1639 2012-01-06  Bruno Haible  <bruno@clisp.org>
1640
1641         uc-is-grapheme-break tests: Tweak.
1642         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1643         message.
1644
1645 2012-01-06  Bruno Haible  <bruno@clisp.org>
1646
1647         test-init.sh: correct the test for diff -u
1648         * tests/test-init.sh: Also redirect stdout to /dev/null.
1649
1650 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1651
1652         Use ', not `, for quoting output.
1653         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1654         (print_changelog_deltas, get_tool_versions, main program):
1655         * build-aux/git-version-gen:
1656         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1657         * build-aux/move-if-change (help):
1658         * build-aux/useless-if-before-free (usage, main program):
1659         * check-module (parse_module_file, usage)
1660         (find_included_lib_files, check_module):
1661         * lib/argmatch.c (main) [TEST]:
1662         * lib/argp-help.c (_help):
1663         * lib/getopt1.c (main) [TEST]:
1664         * lib/git-merge-changelog.c (usage):
1665         * lib/xstrtol-error.c (xstrtol_error):
1666         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1667         * m4/argz.m4 (gl_FUNC_ARGZ):
1668         * m4/bison.m4 (gl_BISON):
1669         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1670         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1671         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1672         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1673         * m4/gc-random.m4 (gl_GC_RANDOM):
1674         * m4/intl.m4 (gt_CHECK_DECL):
1675         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1676         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1677         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1678         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1679         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1680         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1681         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1682         * tests/test-dirname.c (main):
1683         * tests/test-getpass.c (main):
1684         * tests/test-iconvme.c (main):
1685         * tests/test-parse-datetime.c (LOG):
1686         * tests/test-xstrtoimax.sh:
1687         * tests/test-xstrtol.sh:
1688         * tests/test-xstrtoll.sh:
1689         * tests/test-xstrtoumax.sh:
1690         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1691         * top/GNUmakefile (abort-due-to-no-makefile):
1692         Quote 'like this', not `like this', as per the recent change to
1693         the GNU coding standards.
1694
1695 2012-01-05  Bruno Haible  <bruno@clisp.org>
1696
1697         strtoimax: Don't force a replacement on systems where intmax_t is int.
1698         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1699         'intmax_t' is not larger than 'int'.
1700         Reported by Pádraig Brady <P@draigBrady.com>.
1701
1702 2012-01-05  Bruno Haible  <bruno@clisp.org>
1703
1704         doc: Mention NetBSD bugs.
1705         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1706         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1707
1708 2012-01-05  Bruno Haible  <bruno@clisp.org>
1709
1710         strtoumax tests: Enhance tests.
1711         * tests/test-strtoumax.c (main): Add tests for large values.
1712
1713 2012-01-05  Bruno Haible  <bruno@clisp.org>
1714
1715         strtoimax: Work around AIX 5.1 bug.
1716         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1717         definition.
1718         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1719         Set HAVE_STRTOIMAX.
1720         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1721         REPLACE_STRTOIMAX.
1722         * modules/inttypes-incomplete (Makefile.am): Substitute
1723         REPLACE_STRTOIMAX.
1724         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1725         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1726         (Depends-on): Update conditions.
1727         * tests/test-strtoimax.c (main): Add tests for large values.
1728         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1729
1730 2012-01-05  Bruno Haible  <bruno@clisp.org>
1731
1732         inttypes: Modernize.
1733         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1734         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1735         (Makefile.am): Update inttypes.h rule.
1736
1737 2012-01-05  Jim Meyering  <meyering@redhat.com>
1738
1739         init.sh: don't waste a subshell just to redirect stderr
1740         * tests/init.sh: In testing for diff -u and diff -c, use a
1741         stderr-redirecting exec inside `...` rather than a subshell.
1742
1743         test-init.sh: avoid failure on HP-UX 11.00
1744         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1745         resolves to diff -c or cmp.  Reported by Bruno Haible.
1746
1747 2012-01-05  Bruno Haible  <bruno@clisp.org>
1748
1749         Tests for module 'strtoull'.
1750         * modules/strtoull-tests: New file.
1751         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1752
1753 2012-01-05  Bruno Haible  <bruno@clisp.org>
1754
1755         Tests for module 'strtoll'.
1756         * modules/strtoll-tests: New file.
1757         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1758
1759 2012-01-05  Bruno Haible  <bruno@clisp.org>
1760
1761         Tests for module 'strtoul'.
1762         * modules/strtoul-tests: New file.
1763         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1764
1765 2012-01-05  Bruno Haible  <bruno@clisp.org>
1766
1767         Tests for module 'strtol'.
1768         * modules/strtol-tests: New file.
1769         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1770
1771 2012-01-04  Jim Meyering  <meyering@redhat.com>
1772
1773         test-init.sh: accommodate Solaris 5.10's different diff -u output
1774         * tests/test-init.sh: Also exempt @@ lines from the comparison
1775         of diff output, since Solaris 5.10 and GNU diff formats differ.
1776         Reported by Stefano Lattarini.
1777
1778 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1779
1780         test-posixtm: don't assume signed integer wraparound
1781         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1782         after signed integer overflow.  Inspired by (though it may not
1783         fix) Bruno Haible's bug report in
1784         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1785
1786         Spell out "Windows 9x" and "Windows XP".
1787         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1788         "Windows 9x" and "WinXP" with "Windows XP".
1789
1790 2012-01-04  Jim Meyering  <meyering@redhat.com>
1791
1792         test-vc-list-files-cvs.sh: remove obsolete comment
1793         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1794         double exit.  Now that's all encapsulated via skip_ and Exit.
1795
1796 2012-01-04  Bruno Haible  <bruno@clisp.org>
1797
1798         Talk about "native Windows API", not "Win32".
1799         * lib/classpath.c: Update comments to mention native Windows.
1800         * lib/csharpexec.c: Likewise.
1801         * lib/dup2.c: Likewise.
1802         * lib/error.c: Likewise.
1803         * lib/fcntl.c: Likewise.
1804         * lib/filename.h: Likewise.
1805         * lib/findprog.c: Likewise.
1806         * lib/get-rusage-as.c: Likewise.
1807         * lib/get-rusage-data.c: Likewise.
1808         * lib/getpagesize.c: Likewise.
1809         * lib/javaexec.c: Likewise.
1810         * lib/msvc-inval.c: Likewise.
1811         * lib/msvc-nothrow.c: Likewise.
1812         * lib/nanosleep.c: Likewise.
1813         * lib/nonblocking.c: Likewise.
1814         * lib/printf-parse.c: Likewise.
1815         * lib/setlocale.c: Likewise.
1816         * lib/sigaction.c: Likewise.
1817         * lib/strerror_r.c: Likewise.
1818         * lib/tmpdir.c: Likewise.
1819         * lib/vasnprintf.c: Likewise.
1820         * lib/w32spawn.h: Likewise.
1821         * lib/waitpid.c: Likewise.
1822         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1823         * m4/locale-ar.m4: Likewise.
1824         * m4/locale-fr.m4: Likewise.
1825         * m4/locale-ja.m4: Likewise.
1826         * m4/locale-tr.m4: Likewise.
1827         * m4/locale-zh.m4: Likewise.
1828         * m4/printf.m4: Likewise.
1829         * tests/test-cloexec.c: Likewise.
1830         * tests/test-copy-acl.sh: Likewise.
1831         * tests/test-copy-file.sh: Likewise.
1832         * tests/test-file-has-acl.sh: Likewise.
1833         * tests/test-set-mode-acl.sh: Likewise.
1834         * tests/test-dup-safer.c: Likewise.
1835         * tests/test-dup2.c: Likewise.
1836         * tests/test-dup3.c: Likewise.
1837         * tests/test-fcntl.c: Likewise.
1838         * tests/test-nonblocking-pipe.h: Likewise.
1839         * tests/test-nonblocking-socket.h: Likewise.
1840         * tests/test-pipe.c: Likewise.
1841         * tests/test-pipe2.c: Likewise.
1842         * tests/test-spawn-pipe-child.c: Likewise.
1843         * doc/acl-resources.txt: Likewise.
1844         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1845         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1846         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1847         * lib/localcharset.c: Update comments to mention native Windows.
1848         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1849         * lib/localename.c: Likewise.
1850         * lib/progreloc.c: Likewise.
1851         * lib/relocatable.c: Likewise.
1852         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1853         (windows_compute_revents): Renamed from win32_compute_revents.
1854         (windows_compute_revents_socket): Renamed from
1855         win32_compute_revents_socket.
1856         * lib/select.c: Update comments to mention native Windows.
1857         (windows_poll_handle): Renamed from win32_poll_handle.
1858         * m4/threadlib.m4: Update comments to mention native Windows.
1859         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1860         --enable-threads=windows instead of --enable-threads=win32. Set
1861         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1862         * lib/glthread/lock.h: Update comments to mention native Windows.
1863         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1864         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1865         USE_WIN32_THREADS.
1866         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1867         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1868         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1869         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1870         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1871         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1872         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1873         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1874         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1875         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1876         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1877         * tests/test-tls.c: Likewise.
1878         Rationale:
1879         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1880         on both 32-bit and 64-bit Windows systems.
1881         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1882         line of distinction is between "native Windows" on one side and Unix/
1883         POSIX systems on the other side. More details in
1884         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1885         Suggested by Paul Eggert.
1886
1887 2012-01-03  Bruno Haible  <bruno@clisp.org>
1888
1889         isatty: Support for MSVC 9.
1890         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1891         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1892         (_isatty_nothrow): New function.
1893         (isatty): Use it instead of _isatty.
1894         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1895         * lib/poll.c (IsConsoleHandle): Likewise.
1896         * lib/select.c (IsConsoleHandle): Likewise.
1897         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1898         (gl_PREREQ_ISATTY): New macro.
1899         * modules/isatty (Depends-on): Add msvc-inval.
1900         (configure.ac): Invoke gl_PREREQ_ISATTY.
1901
1902 2012-01-03  Jim Meyering  <meyering@redhat.com>
1903
1904         maint.mk: remove temporary transition aid from over 1.5 years ago
1905         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1906         purpose was to aid in the transition (avoiding silent malfunction)
1907         from that old name to the new _sc_search_regexp.  This shim was
1908         added by commit 219c504b.
1909
1910         init.sh: do not try to accommodate compare arguments starting with "-"
1911         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1912         compare arguments that start with "-".  Besides, we do not worry
1913         about this when invoking diff or cmp; why start now with sed?
1914         Using "--" to separate options from argument would trigger sed
1915         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1916         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1917
1918 2012-01-02  Bruno Haible  <bruno@clisp.org>
1919
1920         Enhance tests for module 'isatty'.
1921         * modules/isatty-tests (Depends-on): Add pipe-posix.
1922         * tests/test-isatty.c: Include <fcntl.h>.
1923         (DEV_NULL): New macro.
1924         (main): Test the resut of isatty() also on regular files, pipes, and
1925         /dev/null.
1926
1927         New module 'isatty'.
1928         * lib/unistd.in.h (isatty): New declaration.
1929         * lib/isatty.c: New file, based on an idea of
1930         Bastien Roucariès <roucaries.bastien@gmail.com>.
1931         * m4/isatty.m4: New file.
1932         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1933         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1934         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1935         REPLACE_ISATTY.
1936         * modules/isatty: New file.
1937         * doc/posix-functions/isatty.texi: Mention the new module.
1938         Suggested by Paolo Bonzini.
1939
1940 2012-01-02  Bruno Haible  <bruno@clisp.org>
1941
1942         canonicalize: Tweak 2011-12-29 commit.
1943         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1944         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1945
1946 2012-01-02  Jim Meyering  <meyering@redhat.com>
1947
1948         gitlog-to-changelog: describe input syntax in --help output
1949         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1950
1951         gitlog-to-changelog: fix typo in --help: show backslash before email @
1952         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1953         in sources, but not in actual output.
1954
1955 2011-12-30  Jim Meyering  <meyering@redhat.com>
1956
1957         gitlog-to-changelog: don't malfunction when name contains %-directive
1958         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1959         in a name string cause trouble.  E.g., with a user name of "%s",
1960         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1961
1962 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1963
1964         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1965         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1966         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1967         the "  (tiny change)" notation that is appended to the standard
1968         ChangeLog "date  name  email" header line.
1969
1970 2012-01-01  Jim Meyering  <meyering@redhat.com>
1971
1972         test-framework-sh: init.sh: fix "make dist" failure
1973         When using gnulib-tool's --with-tests option and any module that
1974         depends on test-framework-sh, "make dist" would fail due to the
1975         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1976         in the gltests directory, and not in the gllib/ directory.
1977         One way to work around that is to move the EXTRA_DIST += init.sh
1978         from the primary module to the -tests one:
1979         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1980         * modules/test-framework-sh (Makefile.am): ...not here.
1981         Reported by Tom G. Christensen in
1982         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1983
1984         version-etc: update copyright year reported by --version
1985         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1986
1987 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1988
1989         canonicalize: only stat() if required
1990         * lib/canonicalize.c (canonicalize_filename_mode):
1991         Avoid calling l?stat() when both CAN_MISSING,
1992         and CAN_NOLINKS are set, as we neither need
1993         to resolve symlinks or test component existence.
1994
1995 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1996
1997         doc: cover st_ino issues once; add OpenVMS etc.
1998         * doc/posix-functions/stat.texi (stat):
1999         * doc/posix-functions/lstat.texi (lstat):
2000         * doc/posix-functions/fstatat.texi (fstatat):
2001         * doc/posix-functions/fstat.texi (fstat):
2002         Move general 'struct stat' stuff to sys_stat.texi,
2003         leaving behind a pointer.
2004         * doc/posix-headers/sys_stat.texi (sys/stat.h):
2005         Merge duplicate info about 'struct stat' problems into here.
2006         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
2007         and suggest partial workarounds.
2008
2009         same-inode: port to OpenVMS
2010         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
2011         three st_ino values.
2012
2013 2011-12-30  Pádraig Brady  <P@draigBrady.com>
2014
2015         canonicalize: fix references to stat() and lstat()
2016         * lib/canonicalize.c (canonicalize_filename_mode):
2017         Ensure references always resolve to a replacement
2018         function if required (even via a macro).
2019
2020 2011-12-30  Jim Meyering  <meyering@redhat.com>
2021
2022         gitlog-to-changelog: remove a little duplication
2023         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2024         rather than twice.
2025
2026 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2027
2028         canonicalize: add support for not resolving symlinks
2029         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2030         indicate we don't want to follow symlinks.  Also
2031         provide CAN_MODE_MASK to aid setting these existing
2032         mutually exclusive values.
2033         * lib/canonicalize.c (canonicalize_filename_mode):
2034         Extract the flags from can_mode parameter, which
2035         are currently just used to select between stat()
2036         and lstat().  Also ensure that mutually exclusive
2037         values are flagged immediately as invalid.
2038         * tests/test-canonicalize.c: Verify symlinks are
2039         not followed, and that invalid flag combinations
2040         are diagnosed.
2041
2042 2011-12-25  Jim Meyering  <meyering@redhat.com>
2043
2044         gitlog-to-changelog: do not clump multi-paragraph entries
2045         Identical header lines (date,name,email+coauthors) are suppressed,
2046         thus putting all entries with those same characteristics under
2047         a single header.  However, when a log entry consists of two or
2048         more paragraphs, it may not be clear where it starts and ends.
2049         This change makes it so that such an entry is always separated
2050         from others by a header line, even when that header would
2051         otherwise be suppressed.
2052         * build-aux/gitlog-to-changelog: Implement the above.
2053         Inspired by a related request from Stefano Lattarini in
2054         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2055
2056 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2057
2058         announce-gen: fix `cmd' typo in diagnostic
2059         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2060         diagnostic: a missing '$' meant that the command was not output.
2061
2062 2011-12-23  Jim Meyering  <meyering@redhat.com>
2063
2064         test-framework-sh: distribute init.sh
2065         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2066         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2067         fail due to the lack of init.sh.
2068
2069         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2070         * modules/atexit-tests: Rather than listing tests/init.sh,
2071         now that there's a module for it, simply depend on that new module.
2072         * modules/closein-tests: Likewise.
2073         * modules/exclude-tests: Likewise.
2074         * modules/getcwd-tests: Likewise.
2075         * modules/perror-tests: Likewise.
2076         * modules/pread-tests: Likewise.
2077         * modules/pwrite-tests: Likewise.
2078         * modules/vc-list-files-tests: Likewise.
2079         * modules/verify-tests: Likewise.
2080         * modules/xalloc-die-tests: Likewise.
2081         * modules/xstrtoimax-tests: Likewise.
2082         * modules/xstrtol-tests: Likewise.
2083         * modules/xstrtoll-tests: Likewise.
2084         * modules/xstrtoumax-tests: Likewise.
2085         * modules/yesno-tests: Likewise.
2086
2087 2011-12-22  Jim Meyering  <meyering@redhat.com>
2088
2089         test-framework-sh: add minimal tests of init.sh's compare function
2090         * modules/test-framework-sh-tests: New file.
2091         * tests/test-init.sh: New file.
2092
2093         test-framework-sh: new module
2094         * modules/test-framework-sh: New file.
2095         * MODULES.html.sh (Support for maintaining and releasing projects):
2096         List it.
2097
2098         init.sh: do not emit simulated diff output to stderr
2099         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2100
2101 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2102
2103         .gitignore: ignore gnulib.dvi and regex.info
2104         * doc/.gitignore:add gnulib.dvi and regex.info
2105
2106 2011-12-22  Jim Meyering  <meyering@redhat.com>
2107
2108         init.sh: correct previous change
2109         * tests/init.sh (compare): My previous change was wrong.
2110         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2111
2112         init.sh: avoid unwarranted test failure when using "set -e"
2113         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2114         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2115         a use like "compare exp out" would get evoke an unconditional failure.
2116
2117 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2118
2119         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2120         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2121         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2122         autoreconf that did not.
2123         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2124         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2125
2126 2011-12-17  Jim Meyering  <meyering@redhat.com>
2127
2128         bootstrap: remove some now-unneeded code
2129         This script arose back when gnulib-tool was young.
2130         Since then, it has seen improvements that render much of this
2131         script unnecessary.  In particular, it can now make symlinks
2132         to the files it uses.  Also, I no longer see as much value in
2133         marking files as read-only via comments.
2134         If you relied on the symlink-creation feature of the preceding
2135         version of this script, you can get most of that functionality
2136         by adding the --symlink option to the definition of
2137         gnulib_tool_option_extras in your bootstrap.conf file.
2138         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2139         Run autopoint and libtoolize *before* gnulib-tool.
2140         After it, run an abbreviated autoreconf, rather than a loop around
2141         all tools.
2142         (slirp, bt_mark_as_generated): Remove functions.
2143
2144 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2145
2146         ftoastr: fix typo
2147         * lib/ftoastr.h: Fix misspelling in comment.
2148
2149 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2150
2151         * top/README-release: fix punctuation.
2152
2153 2011-12-17  Jim Meyering  <meyering@redhat.com>
2154
2155         bootstrap: correct the recent buildreq change
2156         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2157         had no effect.
2158         * build-aux/bootstrap (buildreq): Bracket each search term with
2159         "*...*", so that the shell "case" statement works as intended.
2160         Add comments.
2161
2162 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2163
2164         build: let bootstrap resort to wget when downloading .po files
2165         * build-aux/bootstrap (download_po_files): Fallback to wget when
2166         downloading the .po files via rsync fails.  This is necessary to
2167         bootstrap from behind a strict firewall.
2168
2169 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2170
2171         stdint: don't assume C++11 when compiling with g++
2172         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2174         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2175         work also in C++ before C++11, as that improperly inhibits
2176         generating a substitute stdint.h for that case.
2177
2178 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2179
2180         alloca: protect comment from gnulib-tool
2181         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2182         that gnulib-tool doesn't think it's a license, and munge it to
2183         say "GCC version 3".
2184
2185 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2186
2187         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2188         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2189         $(abs_top_builddir) instead of $(top_builddir).
2190
2191 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2192
2193         strftime-tests: also test nanoseconds
2194         * tests/test-strftime.c (T): Add a test of %N.
2195
2196 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2197
2198         inttypes, stdint: add C++11 support
2199         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2200         when including inttypes.h and stdint.h.  Support this change to
2201         the standard.
2202         * doc/posix-headers/inttypes.texi (inttypes.h):
2203         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2204         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2205         Define if not defined already, for the benefit of pre-C++11 hosts.
2206         Define the standard format macros (e.g., PRId8) always.
2207         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2208         Likewise, if __cpluspus.  Define the standard constant and limit
2209         macros (e.g., INT8_C, INT8_MAX) always.
2210         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2211         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2212         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2213         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2214         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2215         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2216         Likewise.
2217
2218 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2219
2220         nonblocking tests: Fix test failure on Linux/PPC.
2221         Suggested by Prerna Saxena in
2222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2223         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2224         Set to 1100000.
2225
2226 2011-12-12  Jim Meyering  <meyering@redhat.com>
2227
2228         argmatch: don't hard-code `' when listing valid option arguments
2229         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2230         use the quote function to add quotes.  Use fputs rather than
2231         fprintf for the format string with no format directive.
2232
2233 2011-12-07  Eric Blake  <eblake@redhat.com>
2234
2235         bootstrap: detect tools required by gnulib-tool
2236         * build-aux/bootstrap (buildreq): Provide minimum implicit
2237         dependencies.
2238         * DEPENDENCIES: Mention patch as a prereq.
2239
2240 2011-12-04  Bruno Haible  <bruno@clisp.org>
2241
2242         sethostname: Port to Windows platforms.
2243         * lib/sethostname.c: Provide an alternate implementation for Windows
2244         platforms.
2245         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2246         (main): Skip the test if sethostname() fails with EPERM. On Windows
2247         platforms, don't check the result of gethostname().
2248
2249 2011-12-04  Bruno Haible  <bruno@clisp.org>
2250             Jim Meyering  <meyering@redhat.com>
2251
2252         tests: Avoid spurious error message on platforms without mktemp program.
2253         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2254
2255 2011-12-04  Bruno Haible  <bruno@clisp.org>
2256
2257         sethostname: Fix documentation.
2258         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2259         "not fixed" section.
2260
2261 2011-12-03  Bruno Haible  <bruno@clisp.org>
2262
2263         gnulib-tool: Verify that the License field is present and non-empty.
2264         * gnulib-tool (func_get_license_raw): New function, extracted from
2265         func_get_license.
2266         (func_get_license): Use it. Warn if the module is not a test module and
2267         has no license.
2268         Suggested by Jim Meyering.
2269
2270 2011-12-03  Bruno Haible  <bruno@clisp.org>
2271
2272         sethostname tests: Fix link error on mingw.
2273         * tests/test-sethostname1.c: New file, extracted from
2274         tests/test-sethostname.c.
2275         * tests/test-sethostname2.c: New file, extracted from
2276         tests/test-sethostname.c.
2277         * tests/test-sethostname.c: Remove file.
2278         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2279         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2280         (Depends-on): Add gethostname.
2281         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2282         Link the latter with $(GETHOSTNAME_LIB).
2283
2284         sethostname tests: Fix compilation error on mingw.
2285         * tests/test-sethostname.c: Don't include <sys/types.h>.
2286         (geteuid): Use a dummy value without uid_t.
2287         * modules/sethostname-tests (Depends-on): Remove sys_types.
2288
2289         sethostname tests: Avoid a gcc warning.
2290         * tests/test-sethostname.c (main): Remove an unused variable.
2291
2292         Tweak last commit.
2293         * modules/sethostname-tests (Files): Sort by decreasing importance.
2294         (configure.ac): Check for geteuid.
2295         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2296         the test when there's nothing to test. Drop an unnecessary cast.
2297         Improve an error message. Verify that the final sethostname() call
2298         succeeds.
2299
2300 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2301
2302         Add a test suite for the sethostname module.
2303         * modules/sethostname-tests: New file.  A test program
2304         for the sethostname module.
2305         * tests/test-sethostname.c: Likewise.
2306
2307 2011-12-03  Bruno Haible  <bruno@clisp.org>
2308
2309         Tweak last commit.
2310         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2311         Fix preprocessor directives indentation. Fix typos.
2312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2313         * modules/unistd (Makefile): Likewise.
2314
2315 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2316
2317         Integrate the sethostname module into unistd.
2318         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2319         into the unistd.h header.
2320         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2321         preprocessor directives.
2322         * modules/unistd: Setup the Makefile substitutions of the
2323         SETHOSTNAME preprocessor directives.
2324
2325 2011-12-03  Bruno Haible  <bruno@clisp.org>
2326
2327         Tweak last commit.
2328         * lib/sethostname.c: Don't include <string.h>.
2329         (sethostname): No need to copy the argument string to the stack. Don't
2330         call clearerr. Preserve errno when fprintf failed.
2331         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2332         Don't invoke AC_REPLACE_FUNCS.
2333         * modules/sethostname (Link): Remove empty section.
2334         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2335         failure problem.
2336
2337 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2338
2339         New module 'sethostname'.
2340         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2341         for systems that lack it.
2342         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2343         sethostname declaration and function.
2344         * modules/sethostname: New file.  Define the sethostname module.
2345
2346 2011-12-03  Bruno Haible  <bruno@clisp.org>
2347
2348         Tweak last commit.
2349         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2350
2351 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2352
2353         Split the HOST_NAME_MAX detection into a separate m4 macro.
2354         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2355         macro so it can be used by the pending sethostname module.
2356
2357 2011-12-03  Bruno Haible  <bruno@clisp.org>
2358
2359         Fix module descriptions syntax.
2360         * modules/argv-iter (License): Fix syntax.
2361         * modules/di-set (License): Likewise.
2362         * modules/ino-map (License): Likewise.
2363         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2364
2365 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2366
2367         stdalign: port to Clang 3.0
2368         Problem reported by Simon Josefsson in
2369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2370         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2371         which has <stdalign.h> but which does not define alignof.
2372         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2373
2374 2011-12-01  Eric Blake  <eblake@redhat.com>
2375
2376         mktempd: silence dd usage
2377         * build-aux/mktempd (rand_bytes): Silence dd.
2378
2379 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2380
2381         manywarnings: Don't mention gcc version in docstring.
2382         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2383         Jim Meyering <meyering@redhat.com>.
2384
2385 2011-11-30  Jim Meyering  <meyering@redhat.com>
2386
2387         hash: mark a few floating point constants with "f" suffix
2388         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2389         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2390         floating point constants with "f", since they're destined to be
2391         saved/used as "float"s.
2392
2393 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2394
2395         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2396         * tests/test-float.c (test_long_double): Correct and re-enable the
2397         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2398
2399 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2400
2401         Avoid subtracting two pointers that don't point into the same block.
2402         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2403         only pointers into the same memory block are subtracted. We cannot
2404         assume that sizeof (ptrdiff_t) == sizeof (void *).
2405
2406 2011-11-29  Eric Blake  <eblake@redhat.com>
2407
2408         maint.mk: add syntax check for use of compare from init.sh
2409         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2410         moved here from coreutils.
2411
2412         manywarnings: drop -Wunsuffixed-float-constants
2413         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2414         '1.0D', which is the only way to silence this warning for 'double'.
2415
2416 2011-11-29  Jim Meyering  <meyering@redhat.com>
2417
2418         hash: mark compute_bucket_size with the pure attribute
2419         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2420
2421         quotearg, propername: correct pragma guard expression
2422         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2423         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2424
2425 2011-11-28  Jim Meyering  <meyering@redhat.com>
2426
2427         propername: do not mark proper_name with the const attribute
2428         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2429         since it examines data pointed to by its parameter.
2430         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2431         the suggestion from -Wsuggest-attribute=const.
2432
2433         propername: mark one more function as const
2434         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2435
2436 2011-11-27  Jim Meyering  <meyering@redhat.com>
2437
2438         mark functions with const and pure attributes
2439
2440         Mark functions per suggestions from gcc-4.6 when using these options:
2441         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2442         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2443         Follow these guidelines: when possible, apply the attribute to
2444         an extern declaration, not to its definition.  Apply it to the
2445         definition only when the definition is static.
2446         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2447         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2448         * lib/base64.h (isbase64): Likewise.
2449         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2450         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2451         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2452         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2453         (c_tolower, c_toupper): Likewise.
2454         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2455         * lib/chdir-long.c (find_non_slash): Likewise.
2456         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2457         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2458         * lib/file-type.h (file_type): Likewise.
2459         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2460         * lib/filevercmp.c (verrevcmp): Likewise.
2461         * lib/freadahead.h (freadahead): Likewise.
2462         * lib/fts.c (fts_maxarglen): Likewise.
2463         * lib/hash-pjw.h (hash_pjw): Likewise.
2464         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2465         * lib/hash.c (is_prime, next_prime): Likewise.
2466         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2467         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2468         (hash_table_ok, hash_get_first, hash_string): Likewise.
2469         (compute_bucket_size): Likewise.
2470         * lib/i-ring.h (i_ring_empty): Likewise.
2471         * lib/isnan.c (isnanl): Likewise.
2472         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2473         * lib/memcasecmp.h (memcasecmp): Likewise.
2474         * lib/memchr2.h (memchr2): Likewise.
2475         * lib/memcmp2.h (memcmp2): Likewise.
2476         * lib/parse-datetime.y (lookup_zone): Likewise.
2477         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2478         [!WINDOWS_SOCKETS]: Likewise.
2479         * lib/strnlen1.h (strnlen1): Likewise.
2480         * lib/uniwidth.in.h (uc_width): Likewise.
2481         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2482         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2483         (quoting_options_from_style): Add a comment.
2484         * lib/propername.h (proper_name): Add a comment.
2485
2486 2011-11-27  Bruno Haible  <bruno@clisp.org>
2487
2488         Remove unused macros from !_LIBC code in glibc-borrowed files.
2489         * lib/fnmatch.c (STRCOLL): Remove macro.
2490         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2491         * lib/glob.c (__stat, __readdir64): Remove macros.
2492         * lib/tempname.c (__open64, __xstat64): Remove macros.
2493         Suggested by Paul Eggert.
2494
2495 2011-11-27  Bruno Haible  <bruno@clisp.org>
2496
2497         getcwd: Fix link error on MSVC 9.
2498         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2499
2500 2011-11-27  Bruno Haible  <bruno@clisp.org>
2501
2502         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2503         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2504         HAVE_OPENDIR is 0.
2505         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2506         HAVE_CLOSEDIR is 0.
2507         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2508         is 0.
2509         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2510
2511 2011-11-27  Bruno Haible  <bruno@clisp.org>
2512
2513         getcwd: Fix bug from 2011-08-17.
2514         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2515         platforms that need it.
2516         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2517         code of 4 to be a failure, not a success. This ensures that
2518         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2519
2520 2011-11-27  Bruno Haible  <bruno@clisp.org>
2521
2522         binary-io tests: Avoid test failure on mingw when libtool is used.
2523         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2524         Don't verify the size of t-bin-out1.tmp here.
2525         * tests/test-binary-io.sh: Verify it here.
2526         Reported by Simon Josefsson.
2527
2528 2011-11-26  Bruno Haible  <bruno@clisp.org>
2529
2530         Fix conflict between two instantiations of module 'unistd'.
2531         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2532         ${include_guard_prefix} also in the autoconf snippet.
2533         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2535         GNULIB_UNISTD_H_GETOPT.
2536         * modules/getopt-posix (configure.ac): Set the
2537         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2538         * modules/getopt-gnu (configure.ac): Likewise.
2539         * modules/unistd (Makefile.am): Change the substitution value of
2540         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2541         Reported by Simon Josefsson.
2542
2543 2011-11-25  Bruno Haible  <bruno@clisp.org>
2544
2545         pagealign_alloc: Doc and comments.
2546         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2547         module.
2548         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2549
2550 2011-11-25  Jim Meyering  <meyering@redhat.com>
2551
2552         test-update-copyright.sh: avoid false-positive failure
2553         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2554         around false positive failure on Cygwin/Windows.  The latter was
2555         matching erroneously-created files with names like
2556         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2557
2558 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2559
2560         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2561         * m4/valgrind-tests.m4: Check that the parameters that will be
2562         used works, not just a subset of them.  Reported by Bruno Haible
2563         <bruno@clisp.org>.
2564
2565 2011-11-24  Jim Meyering  <meyering@redhat.com>
2566
2567         test-stdalign.c: comment out long double tests
2568         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2569         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2570         error: '_Alignas' specifiers cannot reduce alignment of \
2571         'static_longdouble_alignas'.
2572
2573 2011-11-22  Jim Meyering  <meyering@redhat.com>
2574
2575         init.sh: make "compare /dev/null FILE" output more readable
2576         * tests/init.sh (compare_): Document the preferred order of arguments.
2577         (emit_diff_u_header_): New function.
2578         (compare_dev_null_): Emit a simulated diff, rather than just the
2579         contents of the unexpected file.  Suggestion from Bruno Haible.
2580
2581 2011-11-21  Jim Meyering  <meyering@redhat.com>
2582             Eric Blake  <eblake@redhat.com>
2583
2584         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2585         * tests/init.sh: Make our compare function slightly more portable.
2586         Reported by Bruno Haible in
2587         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2588
2589 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2590
2591         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2592         before using it, in code that ends up in config.h.
2593
2594 2011-11-20  Bruno Haible  <bruno@clisp.org>
2595
2596         getcwd: Work around getcwd bug on AIX 5..7.
2597         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2598         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2599         Use a different value for gl_cv_func_getcwd_path_max. Move the
2600         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2601         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2602         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2603         Define HAVE_MINIMALLY_WORKING_GETCWD.
2604         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2605         where it is not even minimally working, that is, on AIX.
2606         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2607         m4/getcwd-path-max.m4.
2608         (main): Update exit code computation.
2609         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2610         getcwd does not handle long file names.
2611
2612 2011-11-20  Bruno Haible  <bruno@clisp.org>
2613
2614         getcwd: Fix bug from 2009-09-10.
2615         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2616         like "no".
2617
2618 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2619
2620         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2621
2622 2011-11-20  Bruno Haible  <bruno@clisp.org>
2623
2624         fma tests: Avoid shadowing local variables.
2625         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2626         expected.
2627
2628 2011-11-20  Bruno Haible  <bruno@clisp.org>
2629
2630         copysignf tests: Fix.
2631         * tests/test-copysignf.c: Fix signature check.
2632
2633 2011-11-20  Bruno Haible  <bruno@clisp.org>
2634
2635         fma: Remove unused code.
2636         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2637         unused macros.
2638
2639 2011-11-20  Bruno Haible  <bruno@clisp.org>
2640
2641         sethostname: Fix doc about AIX.
2642         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2643         sethostname; it has it.
2644
2645         sethostname: Mention more portability problems.
2646         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2647         problem.
2648         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2649
2650 2011-11-19  Bruno Haible  <bruno@clisp.org>
2651
2652         Depend on module fcntl-h when AT_FDCWD is used.
2653         * modules/utimens (Depends-on): Add fcntl-h.
2654         * modules/areadlinkat (Depends-on): Likewise.
2655         * modules/areadlinkat-with-size (Depends-on): Likewise.
2656         * modules/faccessat (Depends-on): Likewise.
2657         * modules/fchmodat (Depends-on): Likewise.
2658         * modules/fchownat (Depends-on): Likewise.
2659         * modules/getcwd (Depends-on): Likewise.
2660         * modules/mkdirat (Depends-on): Likewise.
2661         * modules/mkfifoat (Depends-on): Likewise.
2662         * modules/readlinkat (Depends-on): Likewise.
2663         * modules/symlinkat (Depends-on): Likewise.
2664         * modules/dup2-tests (Depends-on): Likewise.
2665         * modules/fdutimensat-tests (Depends-on): Likewise.
2666         * modules/futimens-tests (Depends-on): Likewise.
2667
2668 2011-11-19  Bruno Haible  <bruno@clisp.org>
2669
2670         euidaccess: Update a comment.
2671         * lib/euidaccess.c: Update comment about platforms with faccessat.
2672
2673 2011-11-19  Bruno Haible  <bruno@clisp.org>
2674
2675         openat: Fix file list.
2676         * modules/openat (Files): Remove lib/at-func.c.
2677
2678 2011-11-19  Bruno Haible  <bruno@clisp.org>
2679
2680         fstatat: Simplify.
2681         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2682         gnulib should define rpl_fstatat, there is a
2683         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2684
2685 2011-11-19  Bruno Haible  <bruno@clisp.org>
2686
2687         Ensure 'inline' can be used in tests/test-utimens-common.h.
2688         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2689         * modules/futimens-tests (configure.ac): Likewise.
2690         * modules/utimens-tests (configure.ac): Likewise.
2691         * modules/utimensat-tests (configure.ac): Likewise.
2692
2693 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2694
2695         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2696         not hash_insert0.
2697         (hash_insert_if_absent): Doc fix.
2698
2699 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2700
2701         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2702
2703 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2704
2705         test-getcwd: disambiguate exit status
2706         * tests/test-getcwd.c (test_long_name): Return 0..7.
2707         (main): Exit with an unambiguous exit status.  The old
2708         code yielded a mysterious mixture of two failure codes.
2709
2710         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2711         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2712         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2713         rpl_fstatat or fstatat.  This should fix the other problem
2714         reported by Kai Habel in
2715         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2716         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2718         and I reproduced it on a Solaris 8 host we still have in production.
2719
2720 2011-11-18  Jim Meyering  <meyering@redhat.com>
2721
2722         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2723         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2724         Add a sentence to the comment.
2725         (hash_insert0): New function that simply calls hash_insert_if_absent.
2726         * lib/hash.h (hash_insert_if_absent): Declare it.
2727         (hash_insert0): Add deprecation attribute.
2728         (_GL_ATTRIBUTE_DEPRECATED): Define.
2729         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2730         not hash_insert0.
2731         * NEWS: Mention it, even though it's not really an incompatible change.
2732
2733 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2734
2735         openat: avoid compilation failure due to lack of <errno.h> inclusion
2736         * lib/openat.c: Include <errno.h>.
2737
2738 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2739
2740         * modules/getcwd (Depends-on): Add fdopendir.
2741         This fixes one of the two problems reported by Kai Habel in
2742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2743
2744         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2745         stdalign problem reported by Ian Beckwith in
2746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2747         * modules/crypto/gc-arcfour (Depends-on):
2748         Depend conditionally on crypto/arcfour.
2749         * modules/crypto/gc-arctwo (Depends-on):
2750         Depend conditionally on crypto/arctwo.
2751         * modules/crypto/gc-des (Depends-on):
2752         Depend conditionally on crypto/des.
2753         * modules/crypto/gc-hmac-md5 (Depends-on):
2754         Depend conditionally on crypto/hmac-md5.
2755         * modules/crypto/gc-hmac-sha1 (Depends-on):
2756         Depend conditionally on crypto/hmac-sha1.
2757         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2758         * modules/crypto/gc-md4 (Depends-on):
2759         Depend conditionally on crypto/md4.
2760         * modules/crypto/gc-md5 (Depends-on):
2761         Depend conditionally on crypto/md5.
2762         * modules/crypto/gc-rijndael (Depends-on):
2763         Depend conditionally on crypto/rijndael.
2764         * modules/crypto/gc-sha1 (Depends-on):
2765         Depend conditionally on crypto/sha1.
2766         * modules/crypto/gc-arcfour:
2767         * modules/crypto/gc-arctwo:
2768         * modules/crypto/gc-des:
2769         * modules/crypto/gc-hmac-md5:
2770         * modules/crypto/gc-hmac-sha1:
2771         * modules/crypto/gc-md2:
2772         * modules/crypto/gc-md4:
2773         * modules/crypto/gc-md5:
2774         * modules/crypto/gc-rijndael:
2775         * modules/crypto/gc-sha1:
2776         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2777         now that the conditional dependencies do the work for us.
2778
2779 2011-11-17  Jim Meyering  <meyering@redhat.com>
2780
2781         tests: factor st_ctime-comparison out of two headers
2782         * tests/test-utimens-common.h (ctime_compare): Define.
2783         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2784         * tests/test-lutimens.h (test_lutimens): Likewise.
2785         * tests/test-utimens.h (test_utimens): Likewise.
2786
2787         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2788         Invoke the test program via an init.sh-using wrapper.
2789         * tests/test-getcwd.sh: New file.
2790         * modules/getcwd-tests (Files): Add it.
2791         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2792
2793 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2794
2795         gitlog-to-changelog: support multi-author commits.
2796         The FSF cares about keeping track of all authors of patches to its
2797         projects, but Git doesn't provide obvious support for multi-author
2798         changesets. Consensus seems to be forming around the use of extra
2799         Signed-off-by inspired lines in the log message formatted as
2800         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2801         multi-author commits between version control systems.
2802         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2803         log message and output in standard ChangeLog multi-author format.
2804         Reported by Peter Rosin <peda@lysator.liu.se>
2805
2806 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2807             Bruno Haible  <bruno@clisp.org>
2808
2809         Fix some modules' file list.
2810         * modules/fstatat (Files): Add m4/lstat.m4.
2811         * modules/openat (Files): Likewise.
2812         * modules/unlinkat (Files): Likewise.
2813
2814 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2815
2816         maint.mk: fix tight-scope.mk generation in VPATH builds.
2817         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2818         reference with $(srcdir) so that the file is found correctly even
2819         when running `make syntax-check' in a VPATH build.
2820
2821 2011-11-13  Bruno Haible  <bruno@clisp.org>
2822             Jim Meyering  <meyering@redhat.com>
2823
2824         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2825         * tests/init.sh (compare): Remove "No differences encountered" or
2826         synonymous output from the 'diff' program.
2827
2828 2011-11-13  Bruno Haible  <bruno@clisp.org>
2829
2830         Makefile: Tweak indentation.
2831         * Makefile: Use tab as first character in every line that contains rule
2832         commands.
2833
2834 2011-11-13  Bruno Haible  <bruno@clisp.org>
2835
2836         Syntax check for copyright statements.
2837         * check-copyright: New file.
2838         * Makefile (sc_check_copyright): New rule.
2839
2840 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2841
2842         * build-aux/git-version-gen: Add --prefix to configure the tag
2843         match string.
2844
2845 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2846
2847         * build-aux/git-version-gen: Add --help and --version.
2848
2849 2011-11-12  Jim Meyering  <meyering@redhat.com>
2850
2851         revamp the other test-exclude?.sh scripts to use init.sh, too
2852         * tests/test-exclude1.sh: Use init.sh.
2853         * tests/test-exclude2.sh: Likewise.
2854         * tests/test-exclude3.sh: Likewise.
2855         * tests/test-exclude4.sh: Likewise.
2856         * tests/test-exclude5.sh: Likewise.
2857         * tests/test-exclude6.sh: Likewise.
2858         * tests/test-exclude7.sh: Likewise.
2859         * tests/test-exclude8.sh: Likewise.
2860         * modules/exclude-tests (Files): List init.sh.
2861
2862         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2863         These shell scripts ignored failure of the binary test-exclude,
2864         so making the latter return 77 didn't cause them to be skipped.
2865         * tests/test-exclude5.sh: Exit with test-exclude's error status
2866         when that program fails.  Revamp to use init.sh.
2867         * tests/test-exclude2.sh: Likewise.
2868
2869         test-exclude: fix a typo
2870         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2871
2872 2011-11-11  Bruno Haible  <bruno@clisp.org>
2873
2874         obstack: Fix compilation error on MSVC 9.
2875         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2876
2877 2011-11-11  Jim Meyering  <meyering@redhat.com>
2878
2879         test-exclude: skip tests rather than failing on deficient systems
2880         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2881         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2882         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2883         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2884
2885 2011-11-10  Bruno Haible  <bruno@clisp.org>
2886
2887         ptsname_r test: Avoid gcc warning on glibc systems.
2888         * tests/test-ptsname_r.c (null_ptr): New function.
2889         (test_errors): Use it.
2890
2891 2011-11-10  Bruno Haible  <bruno@clisp.org>
2892
2893         ptsname_r: Avoid compilation error on OSF/1 5.1.
2894         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2896         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2897         function is not declared or incompatibly declared.
2898         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2899         * modules/ptsname_r (Depends-on, configure.ac): Update.
2900         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2901
2902 2011-11-10  Bruno Haible  <bruno@clisp.org>
2903
2904         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2905         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2906         When cross-compiling, guess yes on all platforms except AIX.
2907         Reported by Ludovic Courtès <ludo@gnu.org>.
2908
2909 2011-11-09  Bruno Haible  <bruno@clisp.org>
2910
2911         ptsname_r tests: Fix bugs.
2912         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2913         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2914
2915 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2916
2917         fstatat: work with cross-compilation
2918         Problem reported by Ludovic Courtès in
2919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2920         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2921         "cross-compiling" and assume the bug is present.  Replace
2922         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2923         an inverted sense, to be more conservative about our assumptions.
2924         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2925
2926 2011-11-09  Bruno Haible  <bruno@clisp.org>
2927
2928         Improve MODULES.html output.
2929         * modules/mkfifoat (Description): Use the word "function".
2930         * modules/readlinkat (Description): Likewise.
2931         * modules/symlinkat (Description): Likewise.
2932
2933 2011-11-09  Eric Blake  <eblake@redhat.com>
2934
2935         ptsname_r-tests: new test module
2936         * modules/ptsname_r-tests: New module.
2937         * tests/test-ptsname_r.c: New file.
2938
2939         ptsname_r: new module
2940         * modules/ptsname_r: New module.
2941         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2942         * lib/ptsname.c (__ptsname_r): Split...
2943         * lib/ptsname_r.c: ...into new file.
2944         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2945         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2946         * modules/stdlib (Makefile.am): Substitute witnesses.
2947         * lib/stdlib.in.h (ptsname_r): Declare it.
2948         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2949         * MODULES.html.sh (Misc): Likewise.
2950         * modules/ptsname (Depends-on): Alter dependency.
2951         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2952
2953 2011-11-09  Jim Meyering  <meyering@redhat.com>
2954
2955         announce-gen: be more concise when there's only one URL+tarball
2956         * build-aux/announce-gen (get_tool_versions): When you distribute
2957         only one type of tarball, combine the first two "Here are..."
2958         sections and make the key-checking grammar independent of
2959         how many tarballs there are.
2960
2961 2011-11-09  Eric Blake  <eblake@redhat.com>
2962
2963         openpty: provide a stub on mingw
2964         * lib/pty.in.h (includes): Provide forward declarations.
2965         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2966
2967         raise: fix mingw handling of SIGPIPE
2968         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2969
2970 2011-11-08  Bruno Haible  <bruno@clisp.org>
2971
2972         More conditional dependencies.
2973         * modules/faccessat (Depends-on): Add conditions.
2974         * modules/fchmodat (Depends-on): Likewise.
2975         * modules/fchownat (Depends-on): Likewise.
2976         * modules/fstatat (Depends-on): Likewise.
2977         * modules/mkfifoat (Depends-on): Likewise.
2978         * modules/readlinkat (Depends-on): Likewise.
2979         * modules/symlinkat (Depends-on): Likewise.
2980         * modules/unlinkat (Depends-on): Likewise.
2981         * modules/utimensat (Depends-on): Likewise.
2982         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2983         * modules/linkat (Depends-on): Refine the conditions.
2984         * modules/renameat (Depends-on): Likewise.
2985
2986 2011-11-08  Bruno Haible  <bruno@clisp.org>
2987
2988         faccessat: Move AC_LIBOBJ invocation to module description.
2989         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2990         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2991         invocation from here...
2992         * modules/faccessat (configure.ac): ... to here. Invoke
2993         gl_PREREQ_FACCESSAT.
2994
2995 2011-11-08  Bruno Haible  <bruno@clisp.org>
2996
2997         faccessat: Simplify autoconf macro.
2998         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2999         gl_FUNC_EUIDACCESS.
3000
3001 2011-11-08  Bruno Haible  <bruno@clisp.org>
3002
3003         renameat: Fix dependencies.
3004         * modules/renameat (Depends-on): Add stdbool.
3005
3006 2011-11-08  Bruno Haible  <bruno@clisp.org>
3007
3008         mkfifoat: Fix module description.
3009         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
3010         not gl_UNISTD_MODULE_INDICATOR.
3011
3012 2011-11-08  Bruno Haible  <bruno@clisp.org>
3013
3014         fstatat: Remove unused dependency.
3015         * modules/fstatat (Depends-on): Remove fstat.
3016
3017 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3018
3019         GNUmakefile: behave when Makefile is missing.
3020         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3021
3022 2011-11-08  Bruno Haible  <bruno@clisp.org>
3023
3024         openat: Conditionalize dependencies.
3025         * lib/openat.c: Reduce the scope of some #includes.
3026         * modules/openat (Depends-on): Add conditions.
3027
3028 2011-11-07  Jim Meyering  <meyering@redhat.com>
3029
3030         maint.mk: extract GPG key ID without using a temporary file
3031         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3032         without using a temporary file.  Based on a suggestion from Werner Koch
3033         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3034
3035 2011-11-07  Eric Blake  <eblake@redhat.com>
3036
3037         grantpt: fix typo
3038         * lib/stdlib.in.h (grantpt): Check correct function.
3039
3040         maint.mk: silence new syntax check
3041         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3042
3043 2011-11-06  Bruno Haible  <bruno@clisp.org>
3044
3045         Doc about floating-point and math API.
3046         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3047         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3048
3049 2011-11-06  Bruno Haible  <bruno@clisp.org>
3050
3051         stdalign tests: Skip the test when compiled by Sun C.
3052         * tests/test-stdalign.c (main): Skip the test on Sun C.
3053
3054 2011-11-06  Bruno Haible  <bruno@clisp.org>
3055
3056         ansi-c++-opt: Complete the 2011-06-05 change.
3057         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3058         does not support namespaces, set the variable to "no", not to ":".
3059
3060 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3061
3062         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3063
3064 2011-11-06  Bruno Haible  <bruno@clisp.org>
3065
3066         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3067         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3068         (minus_zerol) [HP-UX]: New macro.
3069         (unary_minus) [HP-UX]: New function.
3070         (copysignl) [HP-UX]: Use unary_minus function.
3071
3072 2011-11-06  Bruno Haible  <bruno@clisp.org>
3073
3074         ldexp, ldexpf, ldexpl: Enhance tests.
3075         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3076         and tests/test-ldexpl.c.
3077         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3078         LDEXP, MIN_EXP, MAX_EXP): New macros.
3079         Include test-ldexp.h.
3080         (main): Just call test_function.
3081         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3082         infinity.h, nan.h.
3083         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3084         MAX_EXP): New macros.
3085         Include test-ldexp.h.
3086         (x, y): Remove variables.
3087         (main): Just call test_function.
3088         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3089         infinity.h, nan.h.
3090         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3091         MAX_EXP): New macros.
3092         Include test-ldexp.h.
3093         (x, y): Remove variables.
3094         (main): Just call test_function.
3095         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3096         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3097         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3098         (Depends-on): Add isnand-nolibm, signbit, float.
3099         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3100         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3101         (Depends-on): Add isnanf-nolibm, signbit, float.
3102
3103 2011-11-06  Bruno Haible  <bruno@clisp.org>
3104
3105         math tests: Cosmetics.
3106         * tests/test-math-c++.cc: Reorder declarations.
3107
3108 2011-11-05  Bruno Haible  <bruno@clisp.org>
3109
3110         fma*: Simplify test.
3111         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3112         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3113
3114         Tests for module 'fmal'.
3115         * modules/fmal-tests: New file.
3116         * tests/test-fmal1.c: New file.
3117         * tests/test-fmal2.c: New file.
3118
3119         New module 'fmal'.
3120         * lib/math.in.h (fmal): New declaration.
3121         * lib/fmal.c: New file.
3122         * m4/fmal.m4: New file.
3123         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3125         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3126         REPLACE_FMAL.
3127         * modules/fmal: New file.
3128         * doc/posix-functions/fmal.texi: Mention the new module and the various
3129         bugs.
3130
3131         Tests for module 'fmaf'.
3132         * modules/fmaf-tests: New file.
3133         * tests/test-fmaf1.c: New file.
3134         * tests/test-fmaf2.c: New file.
3135
3136         New module 'fmaf'.
3137         * lib/math.in.h (fmaf): New declaration.
3138         * lib/fmaf.c: New file.
3139         * m4/fmaf.m4: New file.
3140         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3141         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3142         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3143         REPLACE_FMAF.
3144         * modules/fmaf: New file.
3145         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3146         bugs.
3147
3148         Tests for module 'fma'.
3149         * modules/fma-tests: New file.
3150         * tests/test-fma1.c: New file.
3151         * tests/test-fma1.h: New file.
3152         * tests/test-fma2.c: New file.
3153         * tests/test-fma2.h: New file.
3154
3155         New module 'fma'.
3156         * lib/math.in.h (fma): New declaration.
3157         * lib/fma.c: New file.
3158         * m4/fma.m4: New file.
3159         * m4/fegetround.m4: New file.
3160         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3162         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3163         REPLACE_FMA.
3164         * modules/fma: New file.
3165         * doc/posix-functions/fma.texi: Mention the new module and the various
3166         bugs.
3167
3168         Extend gl_MATHFUNC.
3169         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3170         Support 'void' as argument type.
3171         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3172
3173 2011-11-05  Jim Meyering  <meyering@redhat.com>
3174
3175         maint.mk: also prohibit inclusion of dirent.h without use
3176         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3177
3178 2011-11-05  Bruno Haible  <bruno@clisp.org>
3179
3180         ldexpl tests: Avoid test failure on MSVC 9.
3181         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3182         value. Needed in order to enforce the conversion from a value greater
3183         than LDBL_MAX to Infinity.
3184
3185 2011-11-05  Bruno Haible  <bruno@clisp.org>
3186
3187         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3188         * modules/at-internal: New file, extracted from modules/openat.
3189         * modules/openat-h: New file.
3190         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3191         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3192         * modules/openat (Description): Add reference to POSIX function.
3193         (Files): Remove lib/openat.h, lib/openat-proc.c.
3194         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3195         intprops, unistd.
3196         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3197         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3198         gl_FCNTL_MODULE_INDICATOR.
3199         (Include): Remove unistd.h, openat.h.
3200         * modules/areadlinkat (Files): Add lib/at-func.c.
3201         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3202         openat-die, openat-h, save-cwd.
3203         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3204         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3205         openat-die, openat-h, save-cwd, unistd.
3206         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3207         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3208         openat-h, save-cwd. Remove fcntl-h, openat.
3209         * modules/fchmodat (Files): Remove lib/openat.h.
3210         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3211         openat, stdbool, unistd.
3212         * modules/fchownat (Files): Remove lib/openat.h.
3213         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3214         openat, stdbool, sys_stat.
3215         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3216         lib/openat-proc.c.
3217         (Depends-on): Add at-internal.
3218         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3219         * modules/fstatat (Files): Remove lib/openat.h.
3220         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3221         stdbool, unistd.
3222         * modules/fts (Depends-on): Add openat-h.
3223         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3224         openat.
3225         * modules/mkdirat (Files): Remove lib/openat.h.
3226         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3227         openat, stdbool, sys_stat.
3228         * modules/mkfifoat (Files): Add lib/at-func.c.
3229         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3230         openat-h, save-cwd. Remove fcntl-h, openat.
3231         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3232         * modules/readlinkat (Files): Add lib/at-func.c.
3233         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3234         openat-h, save-cwd. Remove fcntl-h, openat.
3235         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3236         openat.
3237         * modules/selinux-at (Files): Add lib/at-func.c.
3238         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3239         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3240         * modules/symlinkat (Files): Add lib/at-func.c.
3241         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3242         openat-h, save-cwd. Remove fcntl-h, openat.
3243         * modules/unlinkat (Files): Remove lib/openat.h.
3244         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3245         stdbool.
3246         * modules/utimensat (Files): Add lib/at-func.c.
3247         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3248         openat-die, openat-h, save-cwd.
3249         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3250         * modules/fdutimensat-tests (Depends-on): Add openat.
3251         * modules/fstatat-tests (Depends-on): Add openat-h.
3252         * modules/readlinkat-tests (Depends-on): Add openat.
3253         * modules/symlinkat-tests (Depends-on): Add openat.
3254
3255 2011-11-05  Bruno Haible  <bruno@clisp.org>
3256
3257         openat: Include <stdbool.h>.
3258         * lib/openat.c: Include <stdbool.h>.
3259
3260 2011-11-04  Bruno Haible  <bruno@clisp.org>
3261
3262         fchownat, renameat, unlinkat: Fix dependencies.
3263         * modules/fchownat (Depends-on): Add fstatat.
3264         * modules/renameat (Depends-on): Likewise.
3265         * modules/unlinkat (Depends-on): Likewise.
3266
3267 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3268
3269         openat: remove direct dependency on dirent
3270         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3271         and hasn't been needed ever since fdopendir was split into its own
3272         module on 2009-08-31.
3273         * modules/openat (Depends-on): Remove dirent.
3274
3275 2011-11-04  Bruno Haible  <bruno@clisp.org>
3276
3277         renameat: Optimize code size.
3278         * modules/renameat (configure.ac): Don't compile at-func2.c if
3279         REPLACE_RENAMEAT is 1.
3280
3281 2011-11-04  Bruno Haible  <bruno@clisp.org>
3282
3283         openat tests: Fix file list.
3284         * modules/openat-tests (Files): Add tests/test-open.h.
3285
3286 2011-11-04  Bruno Haible  <bruno@clisp.org>
3287
3288         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3289         * modules/fchmodat (Depends-on): Add openat-die.
3290         * modules/fchownat (Depends-on): Likewise.
3291         * modules/linkat (Depends-on): Likewise.
3292         * modules/renameat (Depends-on): Likewise.
3293         * modules/openat (Depends-on): Add dirent.
3294
3295 2011-11-04  Jim Meyering  <meyering@redhat.com>
3296
3297         at-func*.c: fix comments
3298         * lib/at-func2.c: Correct/improve first-line comment.
3299         * lib/at-func.c: Correct grammar in first-line comment.
3300
3301 2011-11-04  Bruno Haible  <bruno@clisp.org>
3302
3303         New module 'mkdirat', split off from module 'openat'.
3304         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3305         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3306         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3307         * modules/mkdirat: New file, extracted from modules/openat.
3308         * modules/openat (Files): Remove lib/mkdirat.c.
3309         (Depends-on): Remove mkdir.
3310         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3311         (Include): Remove <sys/stat.h>.
3312         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3313         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3314         tests/test-mkdir.h.
3315         (Depends-on): Remove ignore-value.
3316         (Makefile.am): Remove rules for test-mkdirat.
3317         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3318         of module 'openat'.
3319         * NEWS: Mention the change.
3320
3321 2011-11-04  Bruno Haible  <bruno@clisp.org>
3322
3323         closedir: Avoid warning on mingw.
3324         * lib/closedir.c: Include <unistd.h>.
3325
3326 2011-11-04  Bruno Haible  <bruno@clisp.org>
3327
3328         New module 'fstatat', split off from module 'openat'.
3329         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3330         defined.
3331         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3332         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3333         gl_FUNC_FSTATAT.
3334         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3335         * modules/fstatat: New file, extracted from modules/openat.
3336         * modules/openat (Files): Remove lib/fstatat.c.
3337         (Depends-on): Remove lstat.
3338         (configure.ac): Remove AC_LIBOBJ of fstatat.
3339         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3340         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3341         tests/test-lstat.h, tests/test-stat.h.
3342         (Depends-on): Remove getcwd-lgpl.
3343         (Makefile.am): Remove rules for test-fstatat.
3344         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3345         of module 'openat'.
3346         * NEWS: Mention the change.
3347         * modules/getcwd (Depends-on): Add fstatat.
3348         * modules/linkat (Depends-on): Likewise.
3349         * modules/mkfifoat-tests (Depends-on): Likewise.
3350         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3351
3352 2011-11-03  Bruno Haible  <bruno@clisp.org>
3353
3354         New module 'unlinkat', split off from module 'openat'.
3355         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3356         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3357         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3358         * modules/unlinkat: New file, extracted from modules/openat. Correct
3359         the dependency conditions.
3360         * modules/openat (Files): Remove lib/unlinkat.c.
3361         (Depends-on): Remove rmdir, unlink.
3362         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3363         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3364         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3365         tests/test-rmdir.h, tests/test-unlink.h.
3366         (Depends-on): Remove unlinkdir.
3367         (Makefile.am): Remove rules for test-unlinkat.
3368         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3369         of module 'openat'.
3370         * NEWS: Mention the change.
3371         * modules/linkat-tests (Depends-on): Add unlinkat.
3372         * modules/mkfifoat-tests (Depends-on): Likewise.
3373         * modules/readlinkat-tests (Depends-on): Likewise.
3374
3375 2011-11-02  Bruno Haible  <bruno@clisp.org>
3376
3377         New module 'fchmodat', split off from module 'openat'.
3378         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3379         defined.
3380         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3381         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3382         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3383         * modules/fchmodat: New file, extracted from modules/openat.
3384         * modules/openat (Files): Remove lib/fchmodat.c.
3385         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3386         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3387         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3388         (Makefile.am): Remove rules for test-fchmodat.
3389         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3390         of module 'openat'.
3391         * NEWS: Mention the change.
3392
3393 2011-11-02  Jim Meyering  <meyering@redhat.com>
3394
3395         putenv: indent #definition of "environ" to placate cppi
3396         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3397
3398         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3399         Git logs are often treated as immutable, because editing them
3400         changes the SHA1 checksums of all descendants.  Thus, errors in
3401         git logs tend to stay there forever.  However, when we generate
3402         a ChangeLog file -- typically for distribution -- from that git log,
3403         we can actually make corrections in the generated file.  The key
3404         lies in recording in machine-readable/applicable form the desired
3405         corrections.  See --help for description and an example.
3406         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3407         (usage): Describe it; alphabetize option descriptions.
3408         (main): Honor the new option, carefully.
3409
3410 2011-11-01  Jim Meyering  <meyering@redhat.com>
3411
3412         gitlog-to-changelog: avoid an infloop
3413         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3414         that ends up being empty.
3415
3416 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3417
3418         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3419         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3420         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3421         contains (possibly-quoted) backslashes.  This should avoid
3422         all-too-common shell bugs if COMPLICATED contains backslashes in
3423         the "wrong" places.  Reported by David Evans in
3424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3425         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3426         because we want ASCII ranges.  Is there some reason we don't use
3427         the C locale everywhere in this script?
3428         (func_module, top level): Avoid unwanted pathname expansion when
3429         $repo_url_prefix or $repo_url_suffix_repl contain shell
3430         metacharacters like '?' and '*'.
3431
3432 2011-11-01  Bruno Haible  <bruno@clisp.org>
3433
3434         fchownat: Improve description.
3435         * modules/fchownat (Description): Add link to function.
3436
3437 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3438
3439         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3440         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3441         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3442         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3443
3444 2011-11-01  Bruno Haible  <bruno@clisp.org>
3445
3446         alignof: Avoid collision with stdalign module.
3447         * lib/alignof.h (alignof): Remove macro.
3448         * NEWS: Mention the change.
3449         Reported by Paul Eggert.
3450
3451 2011-11-01  Bruno Haible  <bruno@clisp.org>
3452
3453         New module 'fchownat', split off from module 'openat'.
3454         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3455         defined.
3456         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3457         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3458         invoke gl_FUNC_FCHOWNAT.
3459         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3460         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3461         * modules/fchownat: New file, extracted from modules/openat.
3462         * modules/openat (Files): Remove lib/fchownat.c.
3463         (Depends-on): Remove lchown.
3464         (configure.ac): Remove AC_LIBOBJ of fchownat.
3465         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3466         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3467         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3468         (Depends-on): Remove mgetgroups, usleep, stat-time.
3469         (configure.ac): Remove test for getegid.
3470         (Makefile.am): Remove rules for test-fchownat.
3471         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3472         of module 'openat'.
3473         * NEWS: Mention the change.
3474
3475 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3476
3477         stdalign: port better to MSVC and to Sun C 5.11
3478         This fixes some of the problems reported by Bruno Haible in
3479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3480         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3481         shortcomings of MSVC and of Sun C 5.11.
3482         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3483         around __declspec arg.
3484         * modules/stdalign-tests (Files): Add tests/macros.h.
3485         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3486         Include macros.h, for ASSERT.
3487         (DECLARE_ALIGNED): Remove.
3488         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3489         to catch bug), and to 1 if not (simplifies the rest of the code).
3490         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3491         (CHECK_AUTO): Remove.
3492         (CHECK_ALIGNED): Check only the alignment of the static vars,
3493         since auto var alignment isn't supported by Sun C 5.11.
3494         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3495         ASSERT failures are easier to diagnose.
3496
3497 2011-10-31  Bruno Haible  <bruno@clisp.org>
3498
3499         doc about some IRIX 5.3 problems.
3500         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3501         on IRIX 5.3.
3502         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3503         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3504         5.3.
3505         * doc/posix-functions/grantpt.texi: Likewise.
3506         * doc/posix-functions/unlockpt.texi: Likewise.
3507         * doc/posix-functions/lgamma.texi: Likewise.
3508         * doc/posix-functions/nextafter.texi: Likewise.
3509         * doc/posix-functions/remainder.texi: Likewise.
3510         * doc/posix-functions/select.texi: Mention misplaced declaration on
3511         IRIX 5.3.
3512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3513
3514 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3515
3516         gitlog-to-changelog: fix git-log invocation.
3517         git-log mishandles date strings before 1970-01-01 UTC, and there is
3518         no use to specify --since=1970-01-01 by default anyway.
3519         * build-aux/gitlog-to-changelog: By default, when no --since option
3520         was given, do not specify explicit --since option to git-log.
3521
3522 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3523
3524         gitlog-to-changelog: new option --append-dot.
3525         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3526         first non-blank line of each commit message terminated with a dot.
3527
3528 2011-10-30  Bruno Haible  <bruno@clisp.org>
3529
3530         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3531         * lib/ffsl.h: Include <config.h>.
3532         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3533
3534 2011-10-30  Jim Meyering  <meyering@redhat.com>
3535
3536         GNUmakefile: reenable "make syntax-check" for most projects
3537         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3538         build-aux variable", "syntax-check" would do nothing but succeed with
3539         the "No version control files detected..." diagnostic (unless you
3540         happened to override _build-aux via cfg.mk).
3541         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3542         to precede inclusion of maint.mk.  Otherwise, these variables would
3543         be used undefined in any project that does not override the default.
3544
3545 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3546
3547         gitlog-to-changelog: treat a message with only blank lines as empty.
3548         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3549         trailing blank lines before the code that issues a warning about an
3550         empty commit message.
3551
3552 2011-10-30  Jim Meyering  <meyering@redhat.com>
3553
3554         test-parse-datetime.c: avoid new DST-related false positive test failure
3555         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3556         based on the time/date we'll convert, not the current time.
3557         Otherwise, the moment we cross a DST boundary like today's in
3558         Europe, (CEST to CET), that offset ends up being one hour off.
3559
3560 2011-10-27  Bruno Haible  <bruno@clisp.org>
3561
3562         fstat: Tweak documentation.
3563         * modules/fstat (Description): More precise description.
3564
3565 2011-10-27  Bruno Haible  <bruno@clisp.org>
3566
3567         Update documentation regarding 'largefile' module.
3568         * doc/posix-functions/fstat.texi: Tweak wording.
3569         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3570         problems with huge directories and/or small ino_t types.
3571         * doc/posix-functions/readdir.texi: Likewise.
3572         * doc/posix-functions/rewinddir.texi: Likewise.
3573
3574 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3575
3576         maint.mk: don't maintain a second build-aux variable.
3577         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3578         depends on GNUmakefile, which already maintains a cfg.mk
3579         overridable $(_build-aux) for projects with a non-standard
3580         build-aux directory location, although without the $(srcdir)
3581         prefix.  Use that variable consistently instead of introducing a
3582         second one.  Adjust all call sites.
3583
3584 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3585
3586         Add stdalign module and use it in other modules.
3587         This is based on a previous proposal by Bruno Haible
3588         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3589
3590         stdalign: new module
3591         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3592         * modules/stdalign: New files.
3593         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3594         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3595
3596         stdalign-tests: new module
3597         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3598
3599         argp: use stdalign
3600         * lib/argp-parse.c: Include <stdalign.h>.
3601         (alignof): Remove.
3602         * modules/argp (Depends-on): Add stdalign.
3603
3604         crypto libraries: use stdalign
3605         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3606         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3607         Do not include <stdlib.h> twice, in md4.c.
3608         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3609         because we are accessing a pointer's bit-pattern, not a size.
3610         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3611         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3612         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3613         * modules/crypto/sha512: Likewise.
3614
3615         sys_socket: use stdalign, not alignof
3616         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3617         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3618
3619 2011-10-27  Bruno Haible  <bruno@clisp.org>
3620
3621         raise test: Avoid a test failure on Linux/MIPS.
3622         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3623         because 99 is a valid signal on Linux/MIPS.
3624
3625 2011-10-27  Bruno Haible  <bruno@clisp.org>
3626
3627         nonblocking tests: Fix test failure on Linux/MIPS.
3628         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3629         Set to 270000.
3630
3631 2011-10-27  Bruno Haible  <bruno@clisp.org>
3632
3633         utimensat: Work around problem on Linux/hppa.
3634         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3635         values.
3636         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3637
3638 2011-10-25  Jim Meyering  <meyering@redhat.com>
3639
3640         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3641         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3642         after symbols like NULL, size_t, etc.
3643         Reported by Alfred M. Szmidt.
3644
3645         maint.mk: exempt ENODATA from a syntax-check rule
3646         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3647         from the sc_prohibit_always-defined_macros syntax-check rule.
3648         Add a comment.  See this for more details:
3649         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3650
3651 2011-10-23  Jim Meyering  <meyering@redhat.com>
3652
3653         fts: close parent dir FD before returning from post-traversal fts_read
3654         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3655         unlink A, even though an FD open on A remained.  This is suboptimal
3656         (holding a file descriptor open longer than needed), but otherwise not
3657         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3658         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3659         that represents a real problem: it causes the removal of A to fail
3660         with e.g., "rm: cannot remove `A': Device or resource busy"
3661
3662         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3663         directory file descriptors.  After completing the final, FTS_DP,
3664         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3665         cache, but then proceeded to add a new FD to it via the subsequent
3666         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3667         final file descriptor would be closed only via fts_close's call to
3668         fd_ring_clear.  Now, it is usually closed earlier, via the final
3669         FTS_DP-returning fts_read call.
3670         * lib/fts.c (restore_initial_cwd): New function, converted from
3671         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3672         Update callers.
3673         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3674         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3675
3676 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3677             Bruno Haible  <bruno@clisp.org>
3678             Jim Meyering  <jim@meyering.net>
3679
3680         readme-release: improve safety of release prep instructions.
3681         * README-release: Don't git pull all branches when only master
3682         is needed for the release process.
3683         Run make maintainer-clean before changing trees and merging.
3684         Don't try to run ./configure right after git pull in case files
3685         that influence the bootstrap process have changed, move the
3686         ./configure step to after running ./bootstrap.
3687         Don't bootstrap "one last time"... it's the first time!
3688
3689 2011-10-22  Bruno Haible  <bruno@clisp.org>
3690
3691         errno, strerror-override: Support for MSVC 10.
3692         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3693         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3694         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3695         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3696         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3697         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3698         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3699         Assign values compatible with MSVC 10.
3700         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3701         New macros.
3702         (GNULIB_defined_EWINSOCK): New macro.
3703         * lib/strerror-override.c (strerror_override): Update accordingly.
3704         * lib/strerror-override.h: Likewise.
3705         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3706         longer equal to the corresponding errno value.
3707         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3708
3709 2011-10-22  Bruno Haible  <bruno@clisp.org>
3710
3711         perror: Recognize when test program crashes.
3712         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3713         strerror, set gl_cv_func_perror_works to no.
3714         Reported by Daniel Richard G. <skunk@iskunk.org>.
3715
3716         perror: Fix indentation.
3717         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3718
3719 2011-10-22  Bruno Haible  <bruno@clisp.org>
3720
3721         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3722         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3723         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3724         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3725         functions, not as a macro.
3726         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3727         macros.
3728         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3729         absence of macro.
3730         Suggested by Eric Blake.
3731         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3732
3733 2011-10-21  Bruno Haible  <bruno@clisp.org>
3734
3735         relocatable-prog-wrapper: Don't leave object files behind.
3736         * build-aux/install-reloc: Re-synchronize list of .o files to be
3737         removed with list of compilation units.
3738
3739 2011-10-20  Bruno Haible  <bruno@clisp.org>
3740
3741         openpty, posix_openpt: Remove code duplication.
3742         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3743         * lib/openpty.c: Include <stdlib.h>.
3744         (openpty): Use posix_openpt on all platforms except IRIX.
3745         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3746
3747 2011-10-20  Bruno Haible  <bruno@clisp.org>
3748
3749         unlockpt: Detect invalid argument.
3750         * lib/unlockpt.c: Include <fcntl.h>.
3751         (unlockpt): Check whether fd is valid, using fcntl().
3752         * modules/unlockpt (Depends-on): Add fcntl-h.
3753
3754 2011-10-20  Bruno Haible  <bruno@clisp.org>
3755
3756         openpty: Avoid compilation error on AIX 6.1.
3757         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3758
3759 2011-10-20  Bruno Haible  <bruno@clisp.org>
3760
3761         posix_openpt: Support for OpenBSD.
3762         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3763         (posix_openpt) [OpenBSD]: New code.
3764         * lib/grantpt.c: Include <fcntl.h>.
3765         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3766         * modules/grantpt (Depends-on): Add fcntl-h.
3767
3768 2011-10-20  Bruno Haible  <bruno@clisp.org>
3769
3770         posix_openpt test: Coding style.
3771         * tests/test-posix_openpt.c: Use GNU coding style.
3772
3773 2011-10-20  Bruno Haible  <bruno@clisp.org>
3774
3775         grantpt: Support --avoid=pt_chown.
3776         * modules/grantpt (Files): Add lib/pty-private.h.
3777
3778 2011-10-20  Bruno Haible  <bruno@clisp.org>
3779
3780         posix_openpt: Fix autoconf macro.
3781         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3782         unneeded check for _getpty.
3783
3784 2011-10-20  Bruno Haible  <bruno@clisp.org>
3785
3786         openpty: Update comments.
3787         * lib/openpty.c: Add comments about Minix.
3788
3789 2011-10-19  Eric Blake  <eblake@redhat.com>
3790
3791         openpty: relax license
3792         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3793
3794         pt_chown: use configmake to simplify build
3795         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3796
3797         ptsname and others: relax license
3798         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3799         * modules/unlockpt (License): Likewise.
3800         * modules/pt_chown (License): Likewise.
3801         * modules/ptsname (License): Likewise.
3802         * modules/ttyname_r (License): Likewise.
3803
3804 2011-10-19  Jim Meyering  <meyering@redhat.com>
3805
3806         posix_openpt: remove spurious #endif
3807         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3808
3809 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3810
3811         maint.mk: Respect $(build_aux) in web-manual rule.
3812         * top/maint.mk (web-manual): Find gen-announce script in user's
3813         $(build_aux) directory instead of hard-coding 'build-aux'.
3814
3815 2011-10-19  Bruno Haible  <bruno@clisp.org>
3816
3817         posix_openpt: Fix compilation error.
3818         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3819         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3820         Mention the openpty module as an alternative.
3821
3822 2011-10-19  Bruno Haible  <bruno@clisp.org>
3823
3824         Support for old NeXTstep 3.3 frexp().
3825         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3826         execution time of the test to 5 seconds.
3827         Reported by Daniel Richard G. <skunk@iskunk.org>.
3828
3829 2011-10-19  Bruno Haible  <bruno@clisp.org>
3830
3831         Support for old NeXTstep 3.3 sed.
3832         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3833         part, use /.../, not \|...|. Escape periods in the header file name.
3834         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3835         Reported by Daniel Richard G. <skunk@iskunk.org>.
3836
3837 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3838
3839         Support for old NeXTstep 3.3 gcc.
3840         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3841         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3842         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3843         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3844         * lib/regex.h (_Restrict_arr_): Likewise.
3845         * lib/regex_internal.h (re_token_t): Likewise.
3846         * lib/regexec.c (check_node_accept_bytes): Likewise.
3847         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3848
3849 2011-10-18  Eric Blake  <eblake@redhat.com>
3850
3851         posix_openpt: new module
3852         * modules/posix_openpt: New module.
3853         * m4/posix_openpt.m4: New file.
3854         * lib/posix_openpt.c: Likewise.
3855         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3856         (gl_STDLIB_H_DEFAULTS): Set defaults.
3857         * modules/stdlib (Makefile.am): Substitute macros.
3858         * lib/stdlib.in.h (posix_openpt): Declare.
3859         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3860         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3861         * modules/posix_openpt-tests: New test module.
3862         * tests/test-posix_openpt.c: New test.
3863
3864 2011-10-15  Bruno Haible  <bruno@clisp.org>
3865
3866         xstrtoll: Fix compilation failure.
3867         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3868         from lib/strtol.c.
3869         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3870         some platforms.
3871         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3872
3873 2011-10-15  Bruno Haible  <bruno@clisp.org>
3874
3875         vasnprintf: Optimize bit search operation.
3876         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3878         gl_DOUBLE_EXPONENT_LOCATION.
3879         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3880         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3881         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3882         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3883         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3884         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3885         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3886         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3887         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3888
3889 2011-10-15  Bruno Haible  <bruno@clisp.org>
3890
3891         vasnprintf: Fix comments.
3892         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3893
3894 2011-10-14  Bruno Haible  <bruno@clisp.org>
3895
3896         Tests for module 'integer_length_ll'.
3897         * modules/integer_length_ll-tests: New file.
3898         * tests/test-integer_length_ll.c: New file.
3899
3900         New module 'integer_length_ll'.
3901         * lib/integer_length_ll.c: New file.
3902         * modules/integer_length_ll: New file.
3903
3904 2011-10-14  Bruno Haible  <bruno@clisp.org>
3905
3906         Tests for module 'integer_length_l'.
3907         * modules/integer_length_l-tests: New file.
3908         * tests/test-integer_length_l.c: New file.
3909
3910         New module 'integer_length_l'.
3911         * lib/integer_length_l.c: New file.
3912         * modules/integer_length_l: New file.
3913
3914 2011-10-14  Bruno Haible  <bruno@clisp.org>
3915
3916         Tests for module 'integer_length'.
3917         * modules/integer_length-tests: New file.
3918         * tests/test-integer_length.c: New file.
3919
3920         New module 'integer_length'.
3921         * lib/integer_length.h: New file.
3922         * lib/integer_length.c: New file.
3923         * modules/integer_length: New file.
3924
3925 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3926
3927         popen: Fix dependency conditions.
3928         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3929
3930 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3931
3932         perror: Fix autoconf test.
3933         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3934         <stdlib.h> and <string.h>.
3935
3936 2011-10-14  Bruno Haible  <bruno@clisp.org>
3937
3938         ffsl: Optimize on 64-bit platforms.
3939         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3940         unrolling.
3941
3942 2011-10-13  Bruno Haible  <bruno@clisp.org>
3943
3944         ffsl: Optimize on 32-bit platforms.
3945         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3946         use ffs() without a loop.
3947
3948         ffsl, ffsll: Optimize for GCC.
3949         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3950         * lib/ffsl.c (GCC_BUILTIN): New macro.
3951         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3952
3953 2011-10-13  Bruno Haible  <bruno@clisp.org>
3954
3955         ffs, bcopy, memset: Support symbol renaming via config.h.
3956         * lib/ffs.c: Include <config.h>.
3957         * lib/bcopy.c: Likewise.
3958         * lib/memset.c: Likewise.
3959
3960 2011-10-10  Bruno Haible  <bruno@clisp.org>
3961
3962         atanl: Simplify for platforms where 'long double' == 'double'.
3963         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3964         alternative implementation.
3965         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3966         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3967         * modules/atanl (Depends-on): Add atan. Update conditions.
3968
3969 2011-10-10  Bruno Haible  <bruno@clisp.org>
3970
3971         acosl: Simplify for platforms where 'long double' == 'double'.
3972         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3973         alternative implementation.
3974         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3975         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3976         * modules/acosl (Depends-on): Add acos. Update conditions.
3977
3978 2011-10-10  Bruno Haible  <bruno@clisp.org>
3979
3980         asinl: Simplify for platforms where 'long double' == 'double'.
3981         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3982         alternative implementation.
3983         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3984         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3985         * modules/asinl (Depends-on): Add asin. Update conditions.
3986
3987 2011-10-10  Bruno Haible  <bruno@clisp.org>
3988
3989         tanl: Simplify for platforms where 'long double' == 'double'.
3990         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3991         implementation.
3992         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3993         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3994         * modules/tanl (Depends-on): Add tan. Update conditions.
3995         (configure.ac): Don't compile trigl.c if
3996         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3997
3998 2011-10-10  Bruno Haible  <bruno@clisp.org>
3999
4000         cosl: Simplify for platforms where 'long double' == 'double'.
4001         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4002         implementation.
4003         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4004         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4005         * modules/cosl (Depends-on): Add cos. Update conditions.
4006         (configure.ac): Don't compile sincosl.c and trigl.c if
4007         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4008
4009 2011-10-10  Bruno Haible  <bruno@clisp.org>
4010
4011         sinl: Simplify for platforms where 'long double' == 'double'.
4012         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4013         implementation.
4014         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4015         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4016         * modules/sinl (Depends-on): Add sin. Update conditions.
4017         (configure.ac): Don't compile sincosl.c and trigl.c if
4018         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4019
4020 2011-10-10  Bruno Haible  <bruno@clisp.org>
4021
4022         logl: Simplify for platforms where 'long double' == 'double'.
4023         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4024         implementation.
4025         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4026         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4027         * modules/logl (Depends-on): Add log. Update conditions.
4028
4029 2011-10-10  Bruno Haible  <bruno@clisp.org>
4030
4031         expl: Simplify for platforms where 'long double' == 'double'.
4032         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4033         implementation.
4034         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4035         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4036         * modules/expl (Depends-on): Add exp. Update conditions.
4037
4038 2011-10-10  Bruno Haible  <bruno@clisp.org>
4039
4040         sqrtl: Simplify for platforms where 'long double' == 'double'.
4041         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4042         alternative implementation.
4043         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4044         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4045         * modules/sqrtl (Depends-on): Update conditions.
4046
4047 2011-10-10  Bruno Haible  <bruno@clisp.org>
4048
4049         ldexpl: Simplify for platforms where 'long double' == 'double'.
4050         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4051         alternative implementation.
4052         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4053         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4054         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4055
4056 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4057
4058         ffsll: set correct witness
4059         * modules/ffsll (configure.ac): Fix typo.
4060
4061 2011-10-10  Bruno Haible  <bruno@clisp.org>
4062
4063         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4064         * lib/printf-frexpl.c: Include <config.h>.
4065         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4066         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4067         second time.
4068         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4069         gl_LONG_DOUBLE_VS_DOUBLE.
4070         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4071         conditions.
4072
4073 2011-10-10  Bruno Haible  <bruno@clisp.org>
4074
4075         frexpl: Simplify for platforms where 'long double' == 'double'.
4076         * lib/frexpl.c: Include <config.h>.
4077         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4078         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4079         time.
4080         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4081         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4082         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4083         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4084         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4085         conditions.
4086
4087 2011-10-10  Jim Meyering  <meyering@redhat.com>
4088
4089         test-renameat: don't leave behind a temporary file
4090         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4091           ERROR: files left in build directory after distclean:
4092           ./gltests/test-renameat.too
4093           make[1]: *** [distcleancheck] Error 1
4094         Reported by Tom G. Christensen.
4095
4096 2011-10-09  Bruno Haible  <bruno@clisp.org>
4097
4098         rint: Determine RINT_LIBM correctly on AIX 7.
4099         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4100         directly, not only through a function pointer. Also accept an optional
4101         4th argument with extra code.
4102         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4103         rintf() call by gcc when optimizing.
4104
4105         mathfunc.m4: Refactor.
4106         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4107         m4 variable.
4108
4109 2011-10-09  Bruno Haible  <bruno@clisp.org>
4110
4111         rintl: Simplify for platforms where 'long double' == 'double'.
4112         * lib/rintl.c: Include <config.h>.
4113         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4114         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4115         time.
4116         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4117         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4118         * modules/rintl (Depends-on): Add rint. Update conditions.
4119
4120 2011-10-09  Bruno Haible  <bruno@clisp.org>
4121
4122         roundl: Simplify for platforms where 'long double' == 'double'.
4123         * lib/roundl.c: Include <config.h>.
4124         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4125         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4126         time.
4127         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4128         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4129         * modules/roundl (Depends-on): Add round. Update conditions.
4130
4131 2011-10-09  Bruno Haible  <bruno@clisp.org>
4132
4133         truncl: Simplify for platforms where 'long double' == 'double'.
4134         * lib/truncl.c: Include <config.h>.
4135         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4136         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4137         time.
4138         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4139         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4140         * modules/truncl (Depends-on): Add trunc. Update conditions.
4141
4142 2011-10-09  Bruno Haible  <bruno@clisp.org>
4143
4144         ceill: Simplify for platforms where 'long double' == 'double'.
4145         * lib/ceill.c: Include <config.h>.
4146         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4147         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4148         time.
4149         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4150         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4151         * modules/ceill (Depends-on): Add ceil. Update conditions.
4152
4153 2011-10-09  Bruno Haible  <bruno@clisp.org>
4154
4155         floorl: Simplify for platforms where 'long double' == 'double'.
4156         * lib/floorl.c: Include <config.h>.
4157         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4158         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4159         time.
4160         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4161         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4162         * modules/floorl (Depends-on): Add floor. Update conditions.
4163
4164 2011-10-09  Bruno Haible  <bruno@clisp.org>
4165
4166         rint: Fix ordering constraints.
4167         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4168         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4169         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4170
4171 2011-10-09  Bruno Haible  <bruno@clisp.org>
4172
4173         copysignl: Simplify for platforms where 'long double' == 'double'.
4174         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4175         alternative.
4176         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4177         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4178         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4179
4180 2011-10-09  Bruno Haible  <bruno@clisp.org>
4181
4182         Tests for module 'rintl'.
4183         * modules/rintl-tests: New file.
4184         * tests/test-rintl.c: New file.
4185
4186         New module 'rintl'.
4187         * lib/math.in.h (rintl): New declaration.
4188         * lib/rintl.c: New file.
4189         * m4/rintl.m4: New file.
4190         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4191         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4192         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4193         * modules/rintl: New file.
4194         * tests/test-math-c++.cc: Check the declaration of rintl.
4195         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4196         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4197         * doc/posix-functions/rintl.texi: Mention the new module.
4198
4199 2011-10-09  Bruno Haible  <bruno@clisp.org>
4200
4201         Tests for module 'rintf'.
4202         * modules/rintf-tests: New file.
4203         * tests/test-rintf.c: New file.
4204
4205         New module 'rintf'.
4206         * lib/math.in.h (rintf): New declaration.
4207         * lib/rintf.c: New file.
4208         * m4/rintf.m4: New file.
4209         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4211         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4212         * modules/rintf: New file.
4213         * tests/test-math-c++.cc: Check the declaration of rintf.
4214         * doc/posix-functions/rintf.texi: Mention the new module.
4215
4216 2011-10-09  Bruno Haible  <bruno@clisp.org>
4217
4218         rint: Support for MSVC.
4219         * lib/math.in.h (rint): New declaration.
4220         * lib/rint.c: New file.
4221         * m4/rint.m4: New file.
4222         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4224         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4225         * modules/rint (Description): Fix.
4226         (Files): Add lib/rint.c, m4/rint.m4.
4227         (Depends-on): Add math.
4228         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4229         gl_MATH_MODULE_INDICATOR.
4230         * tests/test-math-c++.cc: Check the declaration of rint.
4231         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4232         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4233         * doc/posix-functions/rint.texi: Mention the replacement provided by
4234         the module.
4235
4236         rint tests: More tests.
4237         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4238         minus-zero.h, infinity.h, nan.h.
4239         (main): Skip the test if the current rounding mode is not standard. Add
4240         tests for negative numbers, minus zero, infinity, NaN.
4241         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4242         tests/nan.h.
4243         (Depends-on): Add isnand-nolibm.
4244
4245 2011-10-09  Bruno Haible  <bruno@clisp.org>
4246
4247         Tests for module 'copysignl'.
4248         * modules/copysignl-tests: New file.
4249         * tests/test-copysignl.c: New file.
4250
4251         New module 'copysignl'.
4252         * lib/math.in.h (copysignl): New declaration.
4253         * lib/copysignl.c: New file.
4254         * m4/copysignl.m4: New file.
4255         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4257         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4258         HAVE_COPYSIGNL.
4259         * modules/copysignl: New file.
4260         * tests/test-math-c++.cc: Check the declaration of copysignl.
4261         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4262         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4263         * doc/posix-functions/copysignl.texi: Mention the new module.
4264
4265 2011-10-09  Bruno Haible  <bruno@clisp.org>
4266
4267         Tests for module 'copysignf'.
4268         * modules/copysignf-tests: New file.
4269         * tests/test-copysignf.c: New file.
4270
4271         New module 'copysignf'.
4272         * lib/math.in.h (copysignf): New declaration.
4273         * lib/copysignf.c: New file.
4274         * m4/copysignf.m4: New file.
4275         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4277         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4278         HAVE_COPYSIGNF.
4279         * modules/copysignf: New file.
4280         * tests/test-math-c++.cc: Check the declaration of copysignf.
4281         * doc/posix-functions/copysignf.texi: Mention the new module.
4282
4283 2011-10-09  Bruno Haible  <bruno@clisp.org>
4284
4285         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4286         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4287         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4288         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4289         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4290         gl_SIGNAL_H_DEFAULTS.
4291
4292 2011-10-09  Bruno Haible  <bruno@clisp.org>
4293
4294         poll: Make macro safer.
4295         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4296         ac_cv_header_poll_h is not set.
4297
4298 2011-10-09  Bruno Haible  <bruno@clisp.org>
4299
4300         copysign: Provide replacement.
4301         * lib/math.in.h (copysign): New declaration.
4302         * lib/copysign.c: New file.
4303         * m4/copysign.m4: New file.
4304         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4306         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4307         HAVE_COPYSIGN.
4308         * modules/copysign (Description): Clarify.
4309         (Files): Add lib/copysign.c, m4/copysign.m4.
4310         (Depends-on): Add math, signbit.
4311         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4312         gl_MATH_MODULE_INDICATOR.
4313         * tests/test-math-c++.cc: Check the declaration of copysign.
4314         * doc/posix-functions/copysign.texi: Mention the effects of the module
4315         on Minix and MSVC.
4316
4317 2011-10-09  Bruno Haible  <bruno@clisp.org>
4318
4319         isinf: Ensure macro on AIX 5.1.
4320         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4321         macro.
4322         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4323
4324 2011-10-09  Bruno Haible  <bruno@clisp.org>
4325
4326         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4327         * modules/snprintf-posix-tests (configure.ac): Require
4328         gl_LONG_DOUBLE_VS_DOUBLE.
4329         * modules/sprintf-posix-tests (configure.ac): Likewise.
4330         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4331         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4332         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4333         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4334         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4335         tests on platforms where 'long double' is the same as 'double'.
4336         * tests/test-sprintf-posix.h (test_function): Likewise.
4337         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4338         * tests/test-vasprintf-posix.c (test_function): Likewise.
4339
4340         *printf: Fix for platforms where 'long double' == 'double'.
4341         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4342         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4343         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4344         * modules/fprintf-posix (Files): Likewise.
4345         * modules/obstack-printf-posix (Files): Likewise.
4346         * modules/snprintf-posix (Files): Likewise.
4347         * modules/sprintf-posix (Files): Likewise.
4348         * modules/vasnprintf (Files): Likewise.
4349         * modules/vasnprintf-posix (Files): Likewise.
4350         * modules/vasprintf-posix (Files): Likewise.
4351         * modules/vdprintf-posix (Files): Likewise.
4352         * modules/vfprintf-posix (Files): Likewise.
4353         * modules/vsnprintf-posix (Files): Likewise.
4354         * modules/vsprintf-posix (Files): Likewise.
4355         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4356         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4357         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4358         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4359         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4360         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4361         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4362
4363         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4364         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4365         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4366         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4367         'long double'.
4368         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4369
4370         isinf: Fix for platforms where 'long double' == 'double'.
4371         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4372         Don't blindly assume 80-bit 'long double'.
4373
4374         isfinite: Fix for platforms where 'long double' == 'double'.
4375         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4376         Don't blindly assume 80-bit 'long double'.
4377
4378         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4379         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4380         * modules/isfinite-tests (configure.ac): Require
4381         gl_LONG_DOUBLE_VS_DOUBLE.
4382         * modules/isinf-tests (configure.ac): Likewise.
4383         * modules/isnan-tests (configure.ac): Likewise.
4384         * modules/isnanl-tests (configure.ac): Likewise.
4385         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4386         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4387         tests on platforms where 'long double' is the same as 'double'.
4388         * tests/test-isinf.c (test_isinfl): Likewise.
4389         * tests/test-isnan.c (test_long_double): Likewise.
4390         * tests/test-isnanl.h (main): Likewise.
4391
4392 2011-10-08  Bruno Haible  <bruno@clisp.org>
4393
4394         Tests for module 'tanhf'.
4395         * modules/tanhf-tests: New file.
4396         * tests/test-tanhf.c: New file.
4397
4398         New module 'tanhf'.
4399         * lib/math.in.h (tanhf): New declaration.
4400         * lib/tanhf.c: New file.
4401         * m4/tanhf.m4: New file.
4402         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4404         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4405         * modules/tanhf: New file.
4406         * tests/test-math-c++.cc: Check the declaration of tanhf.
4407         * doc/posix-functions/tanhf.texi: Mention the new module.
4408
4409         tanh: Use a .m4 file.
4410         * m4/tanh.m4: New file.
4411         * modules/tanh (Files): Add it.
4412         (configure.ac): Just invoke gl_FUNC_TANH.
4413
4414 2011-10-08  Bruno Haible  <bruno@clisp.org>
4415
4416         Tests for module 'coshf'.
4417         * modules/coshf-tests: New file.
4418         * tests/test-coshf.c: New file.
4419
4420         New module 'coshf'.
4421         * lib/math.in.h (coshf): New declaration.
4422         * lib/coshf.c: New file.
4423         * m4/coshf.m4: New file.
4424         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4426         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4427         * modules/coshf: New file.
4428         * tests/test-math-c++.cc: Check the declaration of coshf.
4429         * doc/posix-functions/coshf.texi: Mention the new module.
4430
4431         cosh: Use a .m4 file.
4432         * m4/cosh.m4: New file.
4433         * modules/cosh (Files): Add it.
4434         (configure.ac): Just invoke gl_FUNC_COSH.
4435
4436 2011-10-08  Bruno Haible  <bruno@clisp.org>
4437
4438         Tests for module 'sinhf'.
4439         * modules/sinhf-tests: New file.
4440         * tests/test-sinhf.c: New file.
4441
4442         New module 'sinhf'.
4443         * lib/math.in.h (sinhf): New declaration.
4444         * lib/sinhf.c: New file.
4445         * m4/sinhf.m4: New file.
4446         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4448         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4449         * modules/sinhf: New file.
4450         * tests/test-math-c++.cc: Check the declaration of sinhf.
4451         * doc/posix-functions/sinhf.texi: Mention the new module.
4452
4453         sinh: Use a .m4 file.
4454         * m4/sinh.m4: New file.
4455         * modules/sinh (Files): Add it.
4456         (configure.ac): Just invoke gl_FUNC_SINH.
4457
4458 2011-10-08  Bruno Haible  <bruno@clisp.org>
4459
4460         Tests for module 'atan2f'.
4461         * modules/atan2f-tests: New file.
4462         * tests/test-atan2f.c: New file.
4463
4464         New module 'atan2f'.
4465         * lib/math.in.h (atan2f): New declaration.
4466         * lib/atan2f.c: New file.
4467         * m4/atan2f.m4: New file.
4468         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4470         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4471         * modules/atan2f: New file.
4472         * tests/test-math-c++.cc: Check the declaration of atan2f.
4473         * doc/posix-functions/atan2f.texi: Mention the new module.
4474
4475         atan2: Use a .m4 file.
4476         * m4/atan2.m4: New file.
4477         * modules/atan2 (Files): Add it.
4478         (configure.ac): Just invoke gl_FUNC_ATAN2.
4479
4480 2011-10-08  Bruno Haible  <bruno@clisp.org>
4481
4482         Tests for module 'atanf'.
4483         * modules/atanf-tests: New file.
4484         * tests/test-atanf.c: New file.
4485
4486         New module 'atanf'.
4487         * lib/math.in.h (atanf): New declaration.
4488         * lib/atanf.c: New file.
4489         * m4/atanf.m4: New file.
4490         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4492         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4493         * modules/atanf: New file.
4494         * tests/test-math-c++.cc: Check the declaration of atanf.
4495         * doc/posix-functions/atanf.texi: Mention the new module.
4496
4497         atan: Use a .m4 file.
4498         * m4/atan.m4: New file.
4499         * modules/atan (Files): Add it.
4500         (configure.ac): Just invoke gl_FUNC_ATAN.
4501
4502 2011-10-08  Bruno Haible  <bruno@clisp.org>
4503
4504         Tests for module 'acosf'.
4505         * modules/acosf-tests: New file.
4506         * tests/test-acosf.c: New file.
4507
4508         New module 'acosf'.
4509         * lib/math.in.h (acosf): New declaration.
4510         * lib/acosf.c: New file.
4511         * m4/acosf.m4: New file.
4512         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4514         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4515         * modules/acosf: New file.
4516         * tests/test-math-c++.cc: Check the declaration of acosf.
4517         * doc/posix-functions/acosf.texi: Mention the new module.
4518
4519         acos: Use a .m4 file.
4520         * m4/acos.m4: New file.
4521         * modules/acos (Files): Add it.
4522         (configure.ac): Just invoke gl_FUNC_ACOS.
4523
4524 2011-10-08  Bruno Haible  <bruno@clisp.org>
4525
4526         Tests for module 'asinf'.
4527         * modules/asinf-tests: New file.
4528         * tests/test-asinf.c: New file.
4529
4530         New module 'asinf'.
4531         * lib/math.in.h (asinf): New declaration.
4532         * lib/asinf.c: New file.
4533         * m4/asinf.m4: New file.
4534         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4536         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4537         * modules/asinf: New file.
4538         * tests/test-math-c++.cc: Check the declaration of asinf.
4539         * doc/posix-functions/asinf.texi: Mention the new module.
4540
4541         asin: Use a .m4 file.
4542         * m4/asin.m4: New file.
4543         * modules/asin (Files): Add it.
4544         (configure.ac): Just invoke gl_FUNC_ASIN.
4545
4546 2011-10-08  Bruno Haible  <bruno@clisp.org>
4547
4548         Tests for module 'tanf'.
4549         * modules/tanf-tests: New file.
4550         * tests/test-tanf.c: New file.
4551
4552         New module 'tanf'.
4553         * lib/math.in.h (tanf): New declaration.
4554         * lib/tanf.c: New file.
4555         * m4/tanf.m4: New file.
4556         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4558         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4559         * modules/tanf: New file.
4560         * tests/test-math-c++.cc: Check the declaration of tanf.
4561         * doc/posix-functions/tanf.texi: Mention the new module.
4562
4563         tan: Use a .m4 file.
4564         * m4/tan.m4: New file.
4565         * modules/tan (Files): Add it.
4566         (configure.ac): Just invoke gl_FUNC_TAN.
4567
4568 2011-10-08  Bruno Haible  <bruno@clisp.org>
4569
4570         Tests for module 'cosf'.
4571         * modules/cosf-tests: New file.
4572         * tests/test-cosf.c: New file.
4573
4574         New module 'cosf'.
4575         * lib/math.in.h (cosf): New declaration.
4576         * lib/cosf.c: New file.
4577         * m4/cosf.m4: New file.
4578         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4580         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4581         * modules/cosf: New file.
4582         * tests/test-math-c++.cc: Check the declaration of cosf.
4583         * doc/posix-functions/cosf.texi: Mention the new module.
4584
4585         cos: Use a .m4 file.
4586         * m4/cos.m4: New file.
4587         * modules/cos (Files): Add it.
4588         (configure.ac): Just invoke gl_FUNC_COS.
4589
4590 2011-10-08  Bruno Haible  <bruno@clisp.org>
4591
4592         Tests for module 'sinf'.
4593         * modules/sinf-tests: New file.
4594         * tests/test-sinf.c: New file.
4595
4596         New module 'sinf'.
4597         * lib/math.in.h (sinf): New declaration.
4598         * lib/sinf.c: New file.
4599         * m4/sinf.m4: New file.
4600         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4602         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4603         * modules/sinf: New file.
4604         * tests/test-math-c++.cc: Check the declaration of sinf.
4605         * doc/posix-functions/sinf.texi: Mention the new module.
4606
4607         sin: Use a .m4 file.
4608         * m4/sin.m4: New file.
4609         * modules/sin (Files): Add it.
4610         (configure.ac): Just invoke gl_FUNC_SIN.
4611
4612 2011-10-08  Bruno Haible  <bruno@clisp.org>
4613
4614         Tests for module 'powf'.
4615         * modules/powf-tests: New file.
4616         * tests/test-powf.c: New file.
4617
4618         New module 'powf'.
4619         * lib/math.in.h (powf): New declaration.
4620         * lib/powf.c: New file.
4621         * m4/powf.m4: New file.
4622         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4623         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4624         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4625         * modules/powf: New file.
4626         * tests/test-math-c++.cc: Check the declaration of powf.
4627         * doc/posix-functions/powf.texi: Mention the new module.
4628
4629         pow: Use a .m4 file.
4630         * m4/pow.m4: New file.
4631         * modules/pow (Files): Add it.
4632         (configure.ac): Just invoke gl_FUNC_POW.
4633
4634 2011-10-08  Bruno Haible  <bruno@clisp.org>
4635
4636         Tests for module 'log10f'.
4637         * modules/log10f-tests: New file.
4638         * tests/test-log10f.c: New file.
4639
4640         New module 'log10f'.
4641         * lib/math.in.h (log10f): New declaration.
4642         * lib/log10f.c: New file.
4643         * m4/log10f.m4: New file.
4644         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4645         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4646         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4647         * modules/log10f: New file.
4648         * tests/test-math-c++.cc: Check the declaration of log10f.
4649         * doc/posix-functions/log10f.texi: Mention the new module.
4650
4651         log10: Use a .m4 file.
4652         * m4/log10.m4: New file.
4653         * modules/log10 (Files): Add it.
4654         (configure.ac): Just invoke gl_FUNC_LOG10.
4655
4656 2011-10-08  Bruno Haible  <bruno@clisp.org>
4657
4658         Tests for module 'logf'.
4659         * modules/logf-tests: New file.
4660         * tests/test-logf.c: New file.
4661
4662         New module 'logf'.
4663         * lib/math.in.h (logf): New declaration.
4664         * lib/logf.c: New file.
4665         * m4/logf.m4: New file.
4666         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4668         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4669         * modules/logf: New file.
4670         * tests/test-math-c++.cc: Check the declaration of logf.
4671         * doc/posix-functions/logf.texi: Mention the new module.
4672
4673         log: Use a .m4 file.
4674         * m4/log.m4: New file.
4675         * modules/log (Files): Add it.
4676         (configure.ac): Just invoke gl_FUNC_LOG.
4677
4678 2011-10-08  Bruno Haible  <bruno@clisp.org>
4679
4680         Tests for module 'expf'.
4681         * modules/expf-tests: New file.
4682         * tests/test-expf.c: New file.
4683
4684         New module 'expf'.
4685         * lib/math.in.h (expf): New declaration.
4686         * lib/expf.c: New file.
4687         * m4/expf.m4: New file.
4688         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4690         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4691         * modules/expf: New file.
4692         * tests/test-math-c++.cc: Check the declaration of expf.
4693         * doc/posix-functions/expf.texi: Mention the new module.
4694
4695         exp: Use a .m4 file.
4696         * m4/exp.m4: New file.
4697         * modules/exp (Files): Add it.
4698         (configure.ac): Just invoke gl_FUNC_EXP.
4699
4700 2011-10-08  Bruno Haible  <bruno@clisp.org>
4701
4702         Tests for module 'sqrtf'.
4703         * modules/sqrtf-tests: New file.
4704         * tests/test-sqrtf.c: New file.
4705
4706         New module 'sqrtf'.
4707         * lib/math.in.h (sqrtf): New declaration.
4708         * lib/sqrtf.c: New file.
4709         * m4/sqrtf.m4: New file.
4710         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4712         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4713         * modules/sqrtf: New file.
4714         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4715         * doc/posix-functions/sqrtf.texi: Mention the new module.
4716
4717 2011-10-08  Bruno Haible  <bruno@clisp.org>
4718
4719         Tests: Avoid link failures w.r.t. libintl.
4720         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4721         $(LIBINTL).
4722         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4723         $(LIBINTL).
4724         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4725         against $(LIBINTL).
4726         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4727         $(LIBINTL).
4728         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4729         $(LIBINTL).
4730         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4731
4732 2011-10-08  Bruno Haible  <bruno@clisp.org>
4733
4734         pow tests: Defeat compiler optimizations.
4735         * tests/test-pow.c (main): Assign arguments to x and y before use.
4736
4737 2011-10-08  Bruno Haible  <bruno@clisp.org>
4738
4739         gnulib-tool: Improve last commit.
4740         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4741         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4742         ignore dependencies that are not among the modules list.
4743
4744 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4745
4746         gnulib-tool: don't follow dependencies to avoided modules
4747         This fixes a bug that is related to the previous one.
4748         * gnulib-tool (func_modules_transitive_closure)
4749         (func_emit_autoconf_snippets):
4750         Check whether a dependency is acceptable before using it.
4751         (--extract-dependencies): Report an error if --avoid is also used,
4752         since this combination of options is not yet supported.
4753
4754         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4755         Problem reported by Peter Dyballa in
4756         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4757         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4758         when echoing "$condition".
4759
4760 2011-10-07  Bruno Haible  <bruno@clisp.org>
4761
4762         Fix documentation about math functions on MacOS X.
4763         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4764         MacOS X 10.5.
4765         * doc/posix-functions/fdim.texi: Likewise.
4766         * doc/posix-functions/feclearexcept.texi: Likewise.
4767         * doc/posix-functions/fegetenv.texi: Likewise.
4768         * doc/posix-functions/fegetround.texi: Likewise.
4769         * doc/posix-functions/feholdexcept.texi: Likewise.
4770         * doc/posix-functions/feraiseexcept.texi: Likewise.
4771         * doc/posix-functions/fesetenv.texi: Likewise.
4772         * doc/posix-functions/fesetround.texi: Likewise.
4773         * doc/posix-functions/fetestexcept.texi: Likewise.
4774         * doc/posix-functions/feupdateenv.texi: Likewise.
4775         * doc/posix-functions/fmax.texi: Likewise.
4776         * doc/posix-functions/fmin.texi: Likewise.
4777         * doc/posix-functions/log2.texi: Likewise.
4778         * doc/posix-functions/modff.texi: Likewise.
4779         * doc/posix-functions/nan.texi: Likewise.
4780         * doc/posix-functions/nanf.texi: Likewise.
4781         * doc/posix-functions/nextafterf.texi: Likewise.
4782         * doc/posix-functions/remquo.texi: Likewise.
4783
4784 2011-10-07  Bruno Haible  <bruno@clisp.org>
4785
4786         modff: Drop assumption about library that defines modff.
4787         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4788         AC_CHECK_FUNCS.
4789         * modules/modff (Files): Add m4/mathfunc.m4.
4790
4791 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4792
4793         raise tests: Avoid a GCC warning.
4794         * tests/test-raise.c (handler): Use _Noreturn.
4795
4796 2011-10-07  Bruno Haible  <bruno@clisp.org>
4797
4798         Tests for module 'ldexpf'.
4799         * modules/ldexpf-tests: New file.
4800         * tests/test-ldexpf.c: New file.
4801
4802         New module 'ldexpf'.
4803         * lib/math.in.h (ldexpf): New declaration.
4804         * lib/ldexpf.c: New file.
4805         * m4/ldexpf.m4: New file.
4806         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4807         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4808         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4809         * modules/ldexpf: New file.
4810         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4811         * doc/posix-functions/ldexpf.texi: Mention the new module.
4812
4813 2011-10-06  Bruno Haible  <bruno@clisp.org>
4814
4815         frexpf: Work around problems on IRIX and mingw.
4816         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4818         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4819         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4820         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4821         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4822         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4823
4824 2011-10-06  Bruno Haible  <bruno@clisp.org>
4825
4826         fabsf: Drop assumption about library that defines fabsf.
4827         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4828         AC_CHECK_FUNCS.
4829         * modules/fabsf (Files): Add m4/mathfunc.m4.
4830
4831 2011-10-06  Bruno Haible  <bruno@clisp.org>
4832
4833         frexpf: Drop assumption about library that defines frexpf.
4834         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4835         'int *', 'float *', 'long double *', 'float', 'long double'.
4836         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4837         AC_CHECK_FUNCS.
4838         * modules/frexpf (Files): Add m4/mathfunc.m4.
4839
4840         Tests for module 'frexpf'.
4841         * modules/frexpf-tests: New file.
4842         * tests/test-frexpf.c: New file.
4843
4844         New module 'frexpf'.
4845         * lib/math.in.h (frexpf): New declaration.
4846         * lib/frexpf.c: New file.
4847         * m4/frexpf.m4: New file.
4848         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4849         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4850         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4851         * modules/frexpf: New file.
4852         * tests/test-math-c++.cc: Check the declaration of frexpf.
4853         * doc/posix-functions/frexpf.texi: Mention the new module.
4854
4855 2011-10-06  Bruno Haible  <bruno@clisp.org>
4856
4857         math: Sort function declarations of math.in.h.
4858         * lib/math.in.h (frexp, logb): Move declarations.
4859
4860 2011-10-05  Bruno Haible  <bruno@clisp.org>
4861
4862         Tests for module 'modff'.
4863         * modules/modff-tests: New file.
4864         * tests/test-modff.c: New file.
4865
4866         New module 'modff'.
4867         * lib/math.in.h (modff): New declaration.
4868         * lib/modff.c: New file.
4869         * m4/modff.m4: New file.
4870         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4872         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4873         * modules/modff: New file.
4874         * tests/test-math-c++.cc: Check the declaration of modff.
4875         * doc/posix-functions/modff.texi: Mention the new module.
4876
4877         modf tests: Make test sharper.
4878         * tests/test-modf.c (main): Strengthen upper bound.
4879
4880         modf: Use a .m4 file.
4881         * m4/modf.m4: New file.
4882         * modules/modf (Files): Add it.
4883         (configure.ac): Just invoke gl_FUNC_MODF.
4884
4885 2011-10-05  Bruno Haible  <bruno@clisp.org>
4886
4887         Tests for module 'fmodf'.
4888         * modules/fmodf-tests: New file.
4889         * tests/test-fmodf.c: New file.
4890
4891         New module 'fmodf'.
4892         * lib/math.in.h (fmodf): New declaration.
4893         * lib/fmodf.c: New file.
4894         * m4/fmodf.m4: New file.
4895         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4897         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4898         * modules/fmodf: New file.
4899         * tests/test-math-c++.cc: Check the declaration of fmodf.
4900         * doc/posix-functions/fmodf.texi: Mention the new module.
4901
4902         fmod: Use a .m4 file.
4903         * m4/fmod.m4: New file.
4904         * modules/fmod (Files): Add it.
4905         (configure.ac): Just invoke gl_FUNC_FMOD.
4906
4907 2011-10-05  Bruno Haible  <bruno@clisp.org>
4908
4909         Tests for module 'fabsf'.
4910         * modules/fabsf-tests: New file.
4911         * tests/test-fabsf.c: New file.
4912
4913         New module 'fabsf'.
4914         * lib/math.in.h (fabsf): New declaration.
4915         * lib/fabsf.c: New file.
4916         * m4/fabsf.m4: New file.
4917         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4919         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4920         * modules/fabsf: New file.
4921         * tests/test-math-c++.cc: Check the declaration of fabsf.
4922         * doc/posix-functions/fabsf.texi: Mention the new module.
4923
4924         fabs: Use a .m4 file.
4925         * m4/fabs.m4: New file.
4926         * modules/fabs (Files): Add it.
4927         (configure.ac): Just invoke gl_FUNC_FABS.
4928
4929 2011-10-05  Jim Meyering  <meyering@redhat.com>
4930
4931         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4932         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4933         ls -lL regression introduced in coreutils-8.12, it does so at the
4934         cost of an additional stat call in the common case.  Besides, now
4935         that the kernel change that prompted commit 95f7c57f has been reverted
4936         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4937         we have no use for commit 95f7c57f, "file-has-acl: use
4938         acl_extended_file_nofollow if available".
4939
4940 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4941
4942         file-has-acl: revert unintended change in behavior of ls -L
4943         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4944         derived from...
4945         (file_has_acl): ...code here.  Call it.
4946         This problem was introduced with 2011-07-22 commit 95f7c57f,
4947         "file-has-acl: use acl_extended_file_nofollow if available".
4948         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4949
4950 2011-10-03  Bruno Haible  <bruno@clisp.org>
4951
4952         poll: Avoid link errors on MSVC.
4953         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4954         * modules/poll (Depends-on): Add sockets.
4955         (Link): New section.
4956         * NEWS: Mention the change.
4957         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4958         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4959         $(LIB_POLL) instead of $(LIBSOCKET).
4960
4961 2011-10-03  Bruno Haible  <bruno@clisp.org>
4962
4963         sys_select tests: Fix link error on MSVC 9.
4964         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4965         with $(LIB_SELECT) instead of $(LIBSOCKET).
4966
4967 2011-10-03  Bruno Haible  <bruno@clisp.org>
4968
4969         sys_select: Fix compilation error on mingw.
4970         * lib/sys_select.in.h: On native Windows, include <io.h>.
4971
4972 2011-10-03  Bruno Haible  <bruno@clisp.org>
4973
4974         wmemset: Support for MSVC.
4975         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4976         whether wmemset() exists.
4977
4978 2011-10-03  Bruno Haible  <bruno@clisp.org>
4979
4980         wmemmove: Support for MSVC.
4981         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4982         whether wmemmove() exists.
4983
4984 2011-10-03  Bruno Haible  <bruno@clisp.org>
4985
4986         wmemcpy: Support for MSVC.
4987         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4988         whether wmemcpy() exists.
4989
4990 2011-10-03  Bruno Haible  <bruno@clisp.org>
4991
4992         wmemcmp: Support for MSVC.
4993         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4994         whether wmemcmp() exists.
4995
4996 2011-10-03  Bruno Haible  <bruno@clisp.org>
4997
4998         wmemchr: Support for MSVC.
4999         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
5000         whether wmemchr() exists.
5001
5002 2011-10-03  Bruno Haible  <bruno@clisp.org>
5003
5004         glthread/*, strsignal: Support for MSVC.
5005         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
5006         including <winsock.h> on MSVC 9.
5007         * lib/glthread/lock.h: Likewise.
5008         * lib/glthread/thread.h: Likewise.
5009         * lib/glthread/tls.h: Likewise.
5010         * lib/glthread/yield.h: Likewise.
5011         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
5012         if HAVE_UNISTD_H is false.
5013         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
5014
5015 2011-10-03  Bruno Haible  <bruno@clisp.org>
5016
5017         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5018         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5019         Set to 100000.
5020
5021 2011-10-03  Bruno Haible  <bruno@clisp.org>
5022
5023         acl: Fix specification.
5024         * lib/file-has-acl.c (file_has_acl): Fix specification.
5025
5026 2011-10-03  Bruno Haible  <bruno@clisp.org>
5027
5028         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5029         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5030         (compute_curr_prefix, shared_library_fullname,
5031         find_shared_library_fullname, get_shared_library_fullname, relocate):
5032         Use it together with PIC && INSTALLDIR.
5033         Reported by <jojelino@gmail.com>
5034         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5035
5036 2011-10-01  Jim Meyering  <meyering@redhat.com>
5037
5038         maint.mk: adjust a release-related rule not to require use of gzip
5039         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5040         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5041         projects that build only .tar.xz files.  Also fix an erroneous test.
5042
5043         test-linkat: don't leave behind a temporary file
5044         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5045         Otherwise, coreutils' "make distcheck" would fail with this:
5046           Only in /c/cu/tests/torture/coreutils/test/\
5047             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5048           make[2]: *** [my-distcheck] Error 1
5049
5050         float, math: add omitted file
5051         * lib/itold.c: Add file, required for yesterday's float change.
5052
5053 2011-10-01  Bruno Haible  <bruno@clisp.org>
5054
5055         isinf: Fix for OpenBSD/x86.
5056         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5057         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5058         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5059
5060 2011-10-01  Bruno Haible  <bruno@clisp.org>
5061
5062         isfinite: Fix syntax error in configure test.
5063         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5064
5065         isfinite: Fix typo.
5066         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5067         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5068
5069 2011-10-01  Bruno Haible  <bruno@clisp.org>
5070
5071         nonblocking tests: Fix test failure on Linux/IA-64.
5072         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5073         Set to 270000.
5074
5075 2011-10-01  Bruno Haible  <bruno@clisp.org>
5076
5077         mkfifoat tests: Fix a test failure on mingw.
5078         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5079         with error ENOSYS.
5080
5081 2011-09-30  Bruno Haible  <bruno@clisp.org>
5082
5083         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5084         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5085         'long double'. Set REPLACE_ITOLD.
5086         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5087         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5088         * lib/itold.c: New file.
5089         * modules/float (Files): Add lib/itold.c.
5090         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5091         (Makefile.am): Substitute REPLACE_ITOLD.
5092         * modules/math (Depends-on): Add float.
5093         (Makefile.am): Substitute REPLACE_ITOLD.
5094         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5095         * doc/posix-headers/math.texi: Likewise.
5096         * doc/posix-functions/logl.texi: Likewise.
5097
5098 2011-09-30  Bruno Haible  <bruno@clisp.org>
5099
5100         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5101         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5102         Set to 140000.
5103
5104 2011-09-30  Bruno Haible  <bruno@clisp.org>
5105
5106         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5107         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5108         invocation, say "right after AC_PROG_CC_STDC", not "right after
5109         AC_PROG_CC".
5110         Reported by Gary V. Vaughan <gary@gnu.org>.
5111
5112 2011-09-30  Bruno Haible  <bruno@clisp.org>
5113
5114         Centralize C99 requirement.
5115         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5116         * modules/stdarg (configure.ac-early): Invoke it instead of
5117         AC_PROG_CC_STDC.
5118         Reported by Gary V. Vaughan and Paul Eggert.
5119
5120 2011-09-29  Bruno Haible  <bruno@clisp.org>
5121
5122         float: Fix LDBL_MAX value on Linux/PowerPC.
5123         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5124         on Linux/PowerPC.
5125         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5126         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5127         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5128         platform.
5129         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5130
5131 2011-09-29  Bruno Haible  <bruno@clisp.org>
5132
5133         doc: Improve doc about gl_EARLY.
5134         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5135         AC_PROG_CC_STDC invocation.
5136         Reported by Gary V. Vaughan <gary@gnu.org>.
5137
5138 2011-09-28  Bruno Haible  <bruno@clisp.org>
5139
5140         fgetc, fputc, fread, fwrite tests: Fix link error.
5141         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5142         on non-MSVC platforms.
5143         * tests/test-fputc.c (main): Likewise.
5144         * tests/test-fread.c (main): Likewise.
5145         * tests/test-fwrite.c (main): Likewise.
5146         Reported by Jim Meyering.
5147
5148 2011-09-27  Bruno Haible  <bruno@clisp.org>
5149
5150         fputc, fwrite tests: Avoid test failure on MSVC.
5151         * tests/test-fgetc.c: Include msvc-inval.h.
5152         (main): Invoke gl_msvc_inval_ensure_handler.
5153         * tests/test-fputc.c: Include msvc-inval.h.
5154         (main): Invoke gl_msvc_inval_ensure_handler.
5155         * tests/test-fread.c: Include msvc-inval.h.
5156         (main): Invoke gl_msvc_inval_ensure_handler.
5157         * tests/test-fwrite.c: Include msvc-inval.h.
5158         (main): Invoke gl_msvc_inval_ensure_handler.
5159         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5160         * modules/fputc-tests (Depends-on): Likewise.
5161         * modules/fread-tests (Depends-on): Likewise.
5162         * modules/fwrite-tests (Depends-on): Likewise.
5163
5164 2011-09-27  Bruno Haible  <bruno@clisp.org>
5165
5166         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5167         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5168         (raise): Remove older, duplicated declaration.
5169         (_gl_raise_SIGPIPE): New declaration.
5170         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5171         (rpl_raise): Remove function.
5172         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5173         a gnulib-defined SIGPIPE here.
5174         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5175         'sigprocmask' has detected missing signal-blocking and the module
5176         'sigpipe' is enabled.
5177         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5178
5179 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5180
5181         base64-tests: avoid memory leak
5182         * tests/test-base64.c (main): Plug memory leak.
5183
5184         base32: new module
5185         * modules/base32: New module.
5186         * lib/base32.c: New file.
5187         * lib/base32.h: Likewise.
5188         * m4/base32.m4: Likewise.
5189         * modules/base32-tests: New test.
5190         * tests/test-base32.c: Likewise.
5191         * MODULES.html.sh (Misc): Mention it.
5192
5193 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5194
5195         gnulib: use more-standard license notice wording
5196         * gnulib-tool (func_emit_copyright_notice): When emitting a
5197         license notice into a file, use the standard wording as suggested
5198         by the current information for GNU maintainers, except say "file"
5199         rather than "program".  The new wording gives a license version
5200         number, which addresses an issue raised by Glenn Morris in
5201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5202         * m4/onceonly.m4: Use that same wording here, too.
5203
5204         dup2: minor simplification
5205         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5206         as lib/dup2.c no longer uses 'inline'.
5207
5208 2011-09-25  Bruno Haible  <bruno@clisp.org>
5209
5210         strings: Fix compilation error on MSVC.
5211         * lib/strings.in.h: Include <stddef.h> for size_t.
5212
5213 2011-09-25  Bruno Haible  <bruno@clisp.org>
5214
5215         fflush et al.: Document limitation on MSVC.
5216         * doc/posix-functions/fflush.texi: Document possible crash in handling
5217         mode other than DEFAULT_HANDLING.
5218         * doc/posix-functions/fgetc.texi: Likewise.
5219         * doc/posix-functions/fputc.texi: Likewise.
5220         * doc/posix-functions/fread.texi: Likewise.
5221         * doc/posix-functions/fwrite.texi: Likewise.
5222
5223 2011-09-25  Bruno Haible  <bruno@clisp.org>
5224
5225         msvc-inval: Allow three invalid parameter handling modes.
5226         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5227         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5228         macros.
5229         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5230         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5231         SANE_LIBRARY_HANDLING as a no-op.
5232         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5233         <stdlib.h>.
5234         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5235
5236 2011-09-25  Bruno Haible  <bruno@clisp.org>
5237
5238         msvc-inval: Make handler multithread-safe.
5239         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5240         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5241         declarations.
5242         (gl_msvc_inval_current): New declaration.
5243         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5244         Operate on the structure returned by gl_msvc_inval_current().
5245         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5246         Remove varaiables.
5247         (tls_index, tls_initialized): New variables.
5248         (not_per_thread): New variable.
5249         (gl_msvc_inval_current): New function.
5250         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5251         returned by gl_msvc_inval_current().
5252
5253 2011-09-25  Bruno Haible  <bruno@clisp.org>
5254
5255         msvc-inval: Install handler globally.
5256         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5257         !_MSC_VER.
5258         (gl_msvc_invalid_parameter_handler): Remove declaration.
5259         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5260         declarations.
5261         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5262         Install the handler globally, don't uninstall it.
5263         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5264         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5265         currently valid, call RaiseException instead.
5266         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5267         for !_MSC_VER.
5268
5269 2011-09-25  Bruno Haible  <bruno@clisp.org>
5270
5271         strerror_r-posix: Fix for MSVC 9.
5272         * lib/strerror_r.c (local_snprintf): New function.
5273         (snprintf): Define to local_snprintf, not to _snprintf.
5274
5275 2011-09-25  Bruno Haible  <bruno@clisp.org>
5276
5277         ftruncate: Support for MSVC 9.
5278         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5279         (chsize_nothrow): New function.
5280         (chsize): Redefine as a macro.
5281         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5282         * modules/ftruncate (Depends-on): Add msvc-inval.
5283
5284 2011-09-25  Bruno Haible  <bruno@clisp.org>
5285
5286         New module 'fstat'.
5287         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5288         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5289         * lib/fchdir.c (rpl_fstat): Remove function.
5290         * m4/fstat.m4: New file.
5291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5292         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5293         declared.
5294         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5295         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5296         * modules/fstat: New file.
5297         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5298         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5299         is set.
5300         * doc/posix-functions/fstat.texi: Mention the new module and the
5301         problem on MSVC.
5302         * NEWS: Mention the change.
5303         * modules/acl (Depends-on): Add fstat.
5304         * modules/chdir-safer (Depends-on): Likewise.
5305         * modules/chown (Depends-on): Likewise.
5306         * modules/copy-file (Depends-on): Likewise.
5307         * modules/fchdir (Depends-on): Likewise.
5308         * modules/fdopendir (Depends-on): Likewise.
5309         * modules/fopen (Depends-on): Likewise.
5310         * modules/fts (Depends-on): Likewise.
5311         * modules/getcwd (Depends-on): Likewise.
5312         * modules/isapipe (Depends-on): Likewise.
5313         * modules/linkat (Depends-on): Likewise.
5314         * modules/lseek (Depends-on): Likewise.
5315         * modules/mkdir-p (Depends-on): Likewise.
5316         * modules/open (Depends-on): Likewise.
5317         * modules/openat (Depends-on): Likewise.
5318         * modules/read-file (Depends-on): Likewise.
5319         * modules/renameat (Depends-on): Likewise.
5320         * modules/utimens (Depends-on): Likewise.
5321
5322 2011-09-25  Bruno Haible  <bruno@clisp.org>
5323
5324         linkat: Fix compilation on MSVC 9.
5325         * lib/linkat.c: Don't include <stdint.h>.
5326
5327 2011-09-25  Bruno Haible  <bruno@clisp.org>
5328
5329         fclose: Support for MSVC 9.
5330         * lib/fclose.c: Include msvc-inval.h.
5331         (fclose_nothrow): New function.
5332         (rpl_fclose): Use it.
5333         * modules/fclose (Depends-on): Add msvc-inval.
5334         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5335
5336 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5337
5338         dup2: minor simplifications
5339         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5340         that it's a performance win.
5341         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5342         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5343
5344 2011-09-24  Jim Meyering  <meyering@redhat.com>
5345
5346         test-futimens: avoid a warning from gcc -Wshadow
5347         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5348         to avoid a shadowing warning.
5349
5350 2011-09-24  Bruno Haible  <bruno@clisp.org>
5351
5352         fdopen: Support for MSVC 9.
5353         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5354         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5355         * lib/fdopen.c: Include msvc-inval.h.
5356         (fdopen_nothrow): New function.
5357         (rpl_fdopen): Use it.
5358         * modules/fdopen (Depends-on): Add msvc-inval.
5359         * modules/fclose-tests (Depends-on): Add fdopen.
5360         * modules/fflush-tests (Depends-on): Likewise.
5361         * modules/fgetc-tests (Depends-on): Likewise.
5362         * modules/fputc-tests (Depends-on): Likewise.
5363         * modules/fread-tests (Depends-on): Likewise.
5364         * modules/freopen-tests (Depends-on): Likewise.
5365         * modules/fseeko-tests (Depends-on): Likewise.
5366         * modules/ftello-tests (Depends-on): Likewise.
5367         * modules/fwrite-tests  (Depends-on): Likewise.
5368         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5369
5370 2011-09-24  Bruno Haible  <bruno@clisp.org>
5371
5372         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5373         * modules/fgetc-tests (Depends-on): Add unistd.
5374         * modules/fputc-tests (Depends-on): Likewise.
5375         * modules/fread-tests (Depends-on): Likewise.
5376         * modules/fwrite-tests (Depends-on): Likewise.
5377
5378 2011-09-24  Bruno Haible  <bruno@clisp.org>
5379
5380         dup: Simplify autoconf test.
5381         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5382         on gl_MSVC_INVAL's result.
5383
5384 2011-09-24  Bruno Haible  <bruno@clisp.org>
5385
5386         Tests for function fwrite().
5387         * modules/fwrite-tests: New file.
5388         * tests/test-fwrite.c: New file.
5389         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5390
5391         Tests for function fread().
5392         * modules/fread-tests: New file.
5393         * tests/test-fread.c: New file.
5394         * modules/stdio-tests (Depends-on): Add fread-tests.
5395
5396         Activate fputc tests.
5397         * modules/stdio-tests (Depends-on): Add fputc-tests.
5398
5399         Enhance fgetc, fputc tests.
5400         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5401         * tests/test-fputc.c (main): Likewise.
5402
5403 2011-09-24  Bruno Haible  <bruno@clisp.org>
5404
5405         write: Support for MSVC 9.
5406         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5407         is not 1.
5408         * lib/write.c (write_nothrow): New function.
5409         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5410         not 1. Use write_nothrow.
5411         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5412         invalid parameter handler.
5413         (gl_PREREQ_WRITE): New macro.
5414         * modules/write (Depends-on): Add msvc-inval.
5415         (configure.ac): Invoke gl_PREREQ_WRITE.
5416         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5417
5418 2011-09-24  Bruno Haible  <bruno@clisp.org>
5419
5420         read: Fix last commit.
5421         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5422
5423 2011-09-24  Bruno Haible  <bruno@clisp.org>
5424
5425         dup2: Fix last commit.
5426         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5427         (rpl_dup2): Disable fcntl workaround on native Windows.
5428
5429         sigprocmask: Make code safer.
5430         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5431         section that changes macro definitions for this compilation unit.
5432
5433 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5434
5435         dup2: clarify by coalescing Windows-specific material
5436         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5437         "msvc-nothrow.h"' to the Windows-specific section, so that the
5438         Emacs source need not contain these include files.
5439         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5440         Windows-specific fixes into this function rather than just the
5441         nothrow fix, as this shortens and clarifies the code.  Always
5442         define as a function, as that's a bit cleaner than having it be
5443         sometimes a function and sometimes a macro.
5444         (rpl_dup2): Move the Windows-specific stuff out of here and into
5445         ms_windows_dup2.  Don't protect the Haiku-related fix with
5446         "#if !defined __linux__", as the same code also works around
5447         a Linux kernel bug, and it doesn't add any system calls on any
5448         platform.  Add comment about FreeBSD 6.1.
5449
5450         sigprocmask: move #include directive
5451         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5452         Windows-specific section, so that the Emacs source need not
5453         contain msvc-inval.h.
5454
5455 2011-09-23  Bruno Haible  <bruno@clisp.org>
5456
5457         read: Support for MSVC 9.
5458         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5459         is not 1.
5460         * lib/read.c (read_nothrow): New function.
5461         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5462         read_nothrow.
5463         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5464         invalid parameter handler.
5465         (gl_PREREQ_READ): New macro.
5466         * modules/read (Depends-on): Add msvc-inval.
5467         (configure.ac): Invoke gl_PREREQ_READ.
5468         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5469
5470 2011-09-23  Bruno Haible  <bruno@clisp.org>
5471
5472         close: Support for MSVC 9.
5473         * lib/close.c: Include <errno.h>, msvc-inval.h.
5474         (close_nothrow): New function.
5475         (rpl_close): Use it.
5476         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5477         invalid parameter handler.
5478         * modules/close (Depends-on): Add msvc-inval.
5479         * modules/dup2-tests (Depends-on): Add close.
5480         * modules/dup3-tests (Depends-on): Likewise.
5481         * modules/fcntl-tests (Depends-on): Likewise.
5482         * modules/spawn-pipe-tests (Depends-on): Likewise.
5483         * modules/unistd-safer-tests (Depends-on): Likewise.
5484         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5485
5486 2011-09-23  Bruno Haible  <bruno@clisp.org>
5487
5488         New module 'dup'.
5489         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5490         Allow replacement.
5491         * lib/dup.c: New file.
5492         * lib/fchdir.c (rpl_dup): Remove function.
5493         * m4/dup.m4: New file.
5494         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5495         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5496         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5497         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5498         * modules/dup: New file.
5499         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5500         'dup' module is in use.
5501         * modules/fdopendir (Depends-on): Add dup.
5502         * modules/fdutimensat-tests (Depends-on): Likewise.
5503         * modules/fts (Depends-on): Likewise.
5504         * modules/futimens-tests (Depends-on): Likewise.
5505         * modules/posix_spawnp-tests (Depends-on): Likewise.
5506         * modules/unistd-safer-tests (Depends-on): Likewise.
5507         * modules/utimens-tests (Depends-on): Likewise.
5508         * doc/posix-functions/dup.texi: Mention the new module and the problem
5509         on MSVC.
5510
5511 2011-09-23  Bruno Haible  <bruno@clisp.org>
5512
5513         getdtablesize: Support for MSVC 9.
5514         * lib/getdtablesize.c: Include msvc-inval.h.
5515         (_setmaxstdio_nothrow): New function.
5516         (_setmaxstdio): Redefine it.
5517         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5518         * modules/getdtablesize (Depends-on): Add msvc-inval.
5519         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5520
5521 2011-09-23  Bruno Haible  <bruno@clisp.org>
5522
5523         signal-h: Rename from signal.
5524         * modules/signal-h: Renamed from modules/signal.
5525         * modules/pthread_sigmask (Depends-on): Update.
5526         * modules/raise (Depends-on): Likewise.
5527         * modules/sigaction (Depends-on): Likewise.
5528         * modules/sigpipe (Depends-on): Likewise.
5529         * modules/sigprocmask (Depends-on): Likewise.
5530         * modules/sys_select (Depends-on): Likewise.
5531         * modules/signal-h-tests: Renamed from modules/signal-tests.
5532         (Files, Depends-on, Makefile.am): Update.
5533         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5534         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5535         (Files, Makefile.am): Update.
5536         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5537         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5538         * modules/signal: New placeholder file.
5539         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5540         * doc/posix-headers/signal.texi: Update.
5541         * NEWS: Mention the change.
5542
5543 2011-09-23  Bruno Haible  <bruno@clisp.org>
5544
5545         sigprocmask: Avoid crashes through signal() on MSVC 9.
5546         * lib/sigprocmask.c: Include msvc-inval.h.
5547         (signal_nothrow): New function.
5548         (signal): Redefine it.
5549         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5550         * modules/sigprocmask (Depends-on): Add msvc-inval.
5551         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5552
5553 2011-09-23  Bruno Haible  <bruno@clisp.org>
5554
5555         Tests for module 'raise'.
5556         * modules/raise-tests: New file.
5557         * tests/test-raise.c: New file.
5558
5559         raise: Support for MSVC.
5560         * lib/signal.in.h (raise): New declaration.
5561         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5562         for native Windows platforms.
5563         * m4/raise.m4: New file.
5564         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5565         HAVE_RAISE, REPLACE_RAISE.
5566         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5567         REPLACE_RAISE.
5568         * modules/raise (Status, Notice): Remove fields.
5569         (Files): Add m4/raise.m4.
5570         (Depends-on): Add signal, msvc-inval.
5571         (configure.ac): Use the common idioms.
5572         (Maintainer): Add me.
5573         * tests/test-signal-c++.cc: Check the signature of raise.
5574         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5575
5576 2011-09-23  Bruno Haible  <bruno@clisp.org>
5577
5578         pipe2: Fix compilation on pre-C99 compilers.
5579         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5580
5581 2011-09-23  Bruno Haible  <bruno@clisp.org>
5582
5583         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5584         * lib/msvc-nothrow.h: New file.
5585         * lib/msvc-nothrow.c: New file.
5586         * m4/msvc-nothrow.m4: New file.
5587         * modules/msvc-nothrow: New file.
5588         * lib/dup2.c: Include msvc-nothrow.h.
5589         (rpl_dup2): No need to protect _get_osfhandle call here.
5590         * lib/accept4.c: Include msvc-nothrow.h.
5591         * lib/error.c: Likewise.
5592         * lib/fcntl.c: Likewise.
5593         * lib/lseek.c: Likewise.
5594         * lib/nonblocking.c: Likewise.
5595         * lib/poll.c: Likewise.
5596         * lib/read.c: Likewise.
5597         * lib/select.c: Likewise.
5598         * lib/sockets.h: Likewise.
5599         * lib/sockets.c: Likewise.
5600         * lib/stdio-read.c: Likewise.
5601         * lib/stdio-write.c: Likewise.
5602         * lib/write.c: Likewise.
5603         * lib/w32sock.h: Likewise.
5604         * lib/w32spawn.h: Likewise.
5605         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5606         * lib/fsync.c: Likewise.
5607         * lib/isapipe.c: Likewise.
5608         * modules/dup2 (Depends-on): Add msvc-nothrow.
5609         * modules/accept4 (Depends-on): Likewise.
5610         * modules/error (Depends-on): Likewise.
5611         * modules/fcntl (Depends-on): Likewise.
5612         * modules/lseek (Depends-on): Likewise.
5613         * modules/nonblocking (Depends-on): Likewise.
5614         * modules/poll (Depends-on): Likewise.
5615         * modules/read (Depends-on): Likewise.
5616         * modules/select (Depends-on): Likewise.
5617         * modules/sockets (Depends-on): Likewise.
5618         * modules/sigpipe (Depends-on): Likewise.
5619         * modules/write (Depends-on): Likewise.
5620         * modules/accept (Depends-on): Likewise.
5621         * modules/bind (Depends-on): Likewise.
5622         * modules/connect (Depends-on): Likewise.
5623         * modules/gethostname (Depends-on): Likewise.
5624         * modules/getpeername (Depends-on): Likewise.
5625         * modules/getsockname (Depends-on): Likewise.
5626         * modules/getsockopt (Depends-on): Likewise.
5627         * modules/ioctl (Depends-on): Likewise.
5628         * modules/listen (Depends-on): Likewise.
5629         * modules/recv (Depends-on): Likewise.
5630         * modules/recvfrom (Depends-on): Likewise.
5631         * modules/send (Depends-on): Likewise.
5632         * modules/sendto (Depends-on): Likewise.
5633         * modules/setsockopt (Depends-on): Likewise.
5634         * modules/shutdown (Depends-on): Likewise.
5635         * modules/socket (Depends-on): Likewise.
5636         * modules/execute (Depends-on): Likewise.
5637         * modules/spawn-pipe (Depends-on): Likewise.
5638         * modules/flock (Depends-on): Likewise.
5639         * modules/fsync (Depends-on): Likewise.
5640         * modules/isapipe (Depends-on): Likewise.
5641         * tests/test-cloexec.c: Include msvc-nothrow.h.
5642         * tests/test-dup-safer.c: Likewise.
5643         * tests/test-dup2.c: Likewise.
5644         * tests/test-dup3.c: Likewise.
5645         * tests/test-fcntl.c: Likewise.
5646         * tests/test-pipe.c: Likewise.
5647         * tests/test-pipe2.c: Likewise.
5648         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5649         * modules/unistd-safer-tests (Depends-on): Likewise.
5650         * modules/dup2-tests (Depends-on): Likewise.
5651         * modules/dup3-tests (Depends-on): Likewise.
5652         * modules/fcntl-tests (Depends-on): Likewise.
5653         * modules/pipe-posix-tests (Depends-on): Likewise.
5654         * modules/pipe2-tests (Depends-on): Likewise.
5655
5656 2011-09-23  Bruno Haible  <bruno@clisp.org>
5657
5658         dup2: Make code more maintainable.
5659         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5660         (rpl_dup2): Use it.
5661         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5662         * modules/dup2 (configure.ac): Invoke it.
5663         Reported by Paul Eggert.
5664
5665 2011-09-23  Bruno Haible  <bruno@clisp.org>
5666
5667         msvc-inval: Fix compilation error.
5668         * lib/msvc-inval.h: Include <excpt.h>.
5669
5670 2011-09-23  Bruno Haible  <bruno@clisp.org>
5671
5672         mkdir: Tweak for MSVC 9.
5673         * lib/sys_stat.in.h: Update comments.
5674         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5675
5676         Tests for module 'chdir'.
5677         * modules/chdir-tests: New file.
5678         * tests/test-chdir.c: New file.
5679
5680         New module 'chdir'.
5681         * modules/chdir: New file.
5682         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5683         (chdir): New declaration.
5684         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5685         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5686         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5687         * tests/test-unistd-c++.cc: Check signature of chdir.
5688         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5689         * modules/chdir-long (Depends-on): Add chdir.
5690         * modules/fchdir (Depends-on): Likewise.
5691         * modules/rename (Depends-on): Likewise.
5692         * modules/savewd (Depends-on): Likewise.
5693
5694         rmdir: Support for mingw, MSVC 9.
5695         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5696         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5697
5698         getcwd: Tweak for MSVC 9.
5699         * lib/unistd.in.h: Update comments.
5700         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5701
5702 2011-09-22  Bruno Haible  <bruno@clisp.org>
5703
5704         strerror_r-posix: Avoid a link error on MSVC.
5705         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5706         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5707
5708 2011-09-22  Bruno Haible  <bruno@clisp.org>
5709
5710         select: Avoid link errors on MSVC.
5711         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5712         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5713         * modules/pselect (Link): Likewise.
5714         * NEWS: Mention the change.
5715         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5716         test-select-stdin against $(LIB_SELECT).
5717         * modules/pselect-tests (Makefile.am): Link test-pselect against
5718         $(LIB_SELECT).
5719
5720 2011-09-22  Bruno Haible  <bruno@clisp.org>
5721
5722         select: Avoid compilation error on MSVC.
5723         * lib/select.c: Don't include <stdbool.h>.
5724
5725 2011-09-21  Bruno Haible  <bruno@clisp.org>
5726
5727         Consolidate all uses of PATH_MAX in *.m4 files.
5728         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5729         macros.
5730         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5731         and gl_PATHMAX_SNIPPET.
5732         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5733         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5734         * modules/chdir-long (Files): Add m4/pathmax.m4.
5735         * modules/getcwd (Files): Likewise.
5736
5737 2011-09-21  Bruno Haible  <bruno@clisp.org>
5738
5739         ftruncate: Un-deprecate, concentrate on Win32 support.
5740         * modules/ftruncate (Status, Notice): Remove sections.
5741         (Depends-on): Add largefile.
5742         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5743         non-mingw platforms.
5744         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5745         include <io.h>.
5746         * modules/perror-tests (Depends-on): Add ftruncate.
5747         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5748         'ftruncate' module.
5749
5750 2011-09-21  Bruno Haible  <bruno@clisp.org>
5751
5752         Add dependencies to new dirent related modules.
5753         * modules/opendir (Depends-on): Add closedir.
5754         * modules/getcwd (Depends-on): Add opendir, closedir.
5755         * modules/dirent-safer-tests (Depends-on): Likewise.
5756         * modules/fdopendir-tests (Depends-on): Likewise.
5757         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5758         * modules/renameat-tests (Depends-on): Likewise.
5759
5760 2011-09-21  Bruno Haible  <bruno@clisp.org>
5761
5762         opendir: Avoid compilation error on mingw.
5763         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5764         * modules/opendir (Depends-on): Add unistd.
5765
5766 2011-09-21  Bruno Haible  <bruno@clisp.org>
5767
5768         ftruncate tests: Avoid a test failure on mingw.
5769         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5770
5771 2011-09-21  Bruno Haible  <bruno@clisp.org>
5772
5773         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5774         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5775         native Windows.
5776
5777 2011-09-21  Bruno Haible  <bruno@clisp.org>
5778
5779         New module 'fdopen'.
5780         * lib/stdio.in.h (fdopen): New declaration.
5781         * lib/fdopen.c: New file.
5782         * m4/fdopen.m4: New file.
5783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5784         REPLACE_FDOPEN.
5785         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5786         REPLACE_FDOPEN.
5787         * modules/fdopen: New file.
5788         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5789         * tests/test-stdio-c++.cc: Check signature of fdopen.
5790         * doc/posix-functions/fdopen.texi: Mention the new module.
5791
5792 2011-09-21  Bruno Haible  <bruno@clisp.org>
5793
5794         unlockpt tests: Avoid test failure on NetBSD 5.1.
5795         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5796         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5797
5798 2011-09-21  Bruno Haible  <bruno@clisp.org>
5799
5800         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5801         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5802         * tests/test-getlogin_r.c (main): Likewise.
5803
5804 2011-09-20  Bruno Haible  <bruno@clisp.org>
5805
5806         time tests: Don't require pid_t.
5807         * doc/posix-headers/time.texi: Revert last change.
5808         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5809         * tests/test-time.c: Comment out the check for pid_t.
5810
5811 2011-09-20  Bruno Haible  <bruno@clisp.org>
5812
5813         fsync tests: Avoid a test failure on mingw.
5814         * tests/test-fsync.c (main): Allow a failure with EIO.
5815
5816 2011-09-20  Bruno Haible  <bruno@clisp.org>
5817
5818         euidaccess: Update comments.
5819         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5820
5821 2011-09-20  Bruno Haible  <bruno@clisp.org>
5822
5823         Ensure EBADF returns for socket functions on mingw.
5824         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5825         descriptor is invalid.
5826         * lib/bind.c (rpl_bind): Likewise.
5827         * lib/connect.c (rpl_connect): Likewise.
5828         * lib/getpeername.c (rpl_getpeername): Likewise.
5829         * lib/getsockname.c (rpl_getsockname): Likewise.
5830         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5831         * lib/listen.c (rpl_listen): Likewise.
5832         * lib/recv.c (rpl_recv): Likewise.
5833         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5834         * lib/send.c (rpl_send): Likewise.
5835         * lib/sendto.c (rpl_sendto): Likewise.
5836         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5837         * lib/shutdown.c (rpl_shutdown): Likewise.
5838
5839 2011-09-20  Bruno Haible  <bruno@clisp.org>
5840
5841         select tests: EBADF tests.
5842         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5843         test_bad_fd): New functions.
5844         (test_function): Invoke also test_bad_fd.
5845
5846 2011-09-20  Bruno Haible  <bruno@clisp.org>
5847
5848         Tests for module 'posix_spawn_file_actions_addopen.
5849         * modules/posix_spawn_file_actions_addopen-tests: New file.
5850         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5851
5852         Tests for module 'posix_spawn_file_actions_adddup2'.
5853         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5854         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5855
5856         Tests for module 'posix_spawn_file_actions_addclose'.
5857         * modules/posix_spawn_file_actions_addclose-tests: New file.
5858         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5859
5860 2011-09-20  Bruno Haible  <bruno@clisp.org>
5861
5862         Tests for module 'unlockpt'.
5863         * modules/unlockpt-tests: New file.
5864         * tests/test-unlockpt.c: New file.
5865         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5866
5867         Tests for module 'grantpt'.
5868         * modules/grantpt-tests: New file.
5869         * tests/test-grantpt.c: New file.
5870         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5871
5872 2011-09-20  Bruno Haible  <bruno@clisp.org>
5873
5874         freopen tests: EBADF tests.
5875         * tests/test-freopen.c: Include errno.h, unistd.h.
5876         (main): Add tests for EBADF, commented out for the moment.
5877
5878         fclose tests: EBADF tests.
5879         * tests/test-fclose.c (main): Add tests for EBADF.
5880
5881         fflush tests: EBADF tests.
5882         * tests/test-fflush.c: Include errno.h, macros.h.
5883         (main): Add tests for EBADF.
5884
5885         ftello tests: EBADF tests.
5886         * tests/test-ftello4.sh: New file.
5887         * tests/test-ftello4.c: New file.
5888         * modules/ftello-tests (Files): Add them.
5889         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5890
5891         fseeko tests: EBADF tests.
5892         * tests/test-fseeko4.sh: New file.
5893         * tests/test-fseeko4.c: New file.
5894         * modules/fseeko-tests (Files): Add them.
5895         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5896
5897         Tests for function fputc().
5898         * modules/fputc-tests: New file.
5899         * tests/test-fputc.c: New file.
5900         * modules/stdio-tests (Depends-on): Add fputc-tests.
5901
5902         Tests for function fgetc().
5903         * modules/fgetc-tests: New file.
5904         * tests/test-fgetc.c: New file.
5905         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5906
5907         Tests for function fdopen().
5908         * modules/fdopen-tests: New file.
5909         * tests/test-fdopen.c: New file.
5910         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5911
5912         Tests for module 'vdprintf'.
5913         * modules/vdprintf-tests: New file.
5914         * tests/test-vdprintf.c: New file.
5915
5916         Tests for module 'dprintf'.
5917         * modules/dprintf-tests: New file.
5918         * tests/test-dprintf.c: New file.
5919
5920 2011-09-20  Bruno Haible  <bruno@clisp.org>
5921
5922         Tests for module 'ioctl'.
5923         * modules/ioctl-tests: New file.
5924         * tests/test-ioctl.c: New file.
5925
5926 2011-09-20  Bruno Haible  <bruno@clisp.org>
5927
5928         fcntl tests: EBADF tests.
5929         * tests/test-fcntl.c (main): Add more tests for EBADF.
5930
5931 2011-09-20  Bruno Haible  <bruno@clisp.org>
5932
5933         utimensat tests: EBADF tests.
5934         * tests/test-utimensat.c (main): Add tests for EBADF.
5935
5936         renameat tests: EBADF tests.
5937         * tests/test-renameat.c (main): Add tests for EBADF.
5938
5939         mkfifoat tests: EBADF tests.
5940         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5941
5942         readlinkat tests: EBADF tests.
5943         * tests/test-readlinkat.c (main): Add tests for EBADF.
5944
5945         symlinkat tests: EBADF tests.
5946         * tests/test-symlinkat.c (main): Add tests for EBADF.
5947
5948         linkat tests: EBADF tests.
5949         * tests/test-linkat.c (main): Add tests for EBADF.
5950
5951         Tests for module 'faccessat'.
5952         * modules/faccessat-tests: New file.
5953         * tests/test-faccessat.c: New file.
5954
5955         fdopendir tests: EBADF tests.
5956         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5957
5958         openat tests: EBADF tests.
5959         * tests/test-fchownat.c (main): Add tests for EBADF.
5960         * tests/test-fstatat.c (main): Likewise.
5961         * tests/test-mkdirat.c (main): Likewise.
5962         * tests/test-openat.c (main): Likewise.
5963         * tests/test-unlinkat.c (main): Likewise.
5964         * tests/test-fchmodat.c: New file.
5965         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5966         (Makefile.am): Also run 'test-fchmodat'.
5967
5968 2011-09-20  Bruno Haible  <bruno@clisp.org>
5969
5970         utimens, futimens, fdutimensat tests: EBADF tests.
5971         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5972
5973         Tests for function fstat().
5974         * modules/fstat-tests: New file.
5975         * tests/test-fstat.c: New file.
5976         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5977
5978 2011-09-20  Bruno Haible  <bruno@clisp.org>
5979
5980         test-ttyname_r tests: EBADF tests.
5981         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5982
5983         Tests for module 'isatty'.
5984         * modules/isatty-tests: New file.
5985         * tests/test-isatty.c: New file.
5986
5987         Tests for module 'write'.
5988         * modules/write-tests: New file.
5989         * tests/test-write.c: New file.
5990
5991         Tests for module 'read'.
5992         * modules/read-tests: New file.
5993         * tests/test-read.c: New file.
5994
5995         pwrite tests: EBADF tests.
5996         * tests/test-pwrite.c (main): Add tests for EBADF.
5997
5998         pread tests: EBADF tests.
5999         * tests/test-pread.c (main): Add tests for EBADF.
6000
6001         lseek tests: EBADF tests.
6002         * tests/test-lseek.c (main): Add more tests for EBADF.
6003
6004         Tests for module 'ftruncate'.
6005         * modules/ftruncate-tests: New file.
6006         * tests/test-ftruncate.sh: New file.
6007         * tests/test-ftruncate.c: New file.
6008
6009         fsync tests: EBADF tests.
6010         * tests/test-fsync.c (main): Add more tests for EBADF.
6011
6012         fdatasync tests: EBADF tests.
6013         * tests/test-fdatasync.c (main): Add more tests for EBADF.
6014
6015         Tests for module 'fchown'.
6016         * modules/fchown-tests: New file.
6017         * tests/test-fchown.c: New file.
6018
6019         Tests for module 'fchmod'.
6020         * modules/fchmod-tests: New file.
6021         * tests/test-fchmod.c: New file.
6022
6023         fchdir tests: EBADF tests.
6024         * tests/test-fchdir.c (main): Add more tests for EBADF.
6025
6026         dup2 tests: EBADF tests.
6027         * tests/test-dup2.c (main): Add more tests for EBADF.
6028
6029         Tests for module 'dup'.
6030         * modules/dup-tests: New file.
6031         * tests/test-dup.c: New file.
6032
6033         Tests for module 'close'.
6034         * modules/close-tests: New file.
6035         * tests/test-close.c: New file.
6036
6037 2011-09-20  Bruno Haible  <bruno@clisp.org>
6038
6039         Tests for module 'shutdown'.
6040         * modules/shutdown-tests: New file.
6041         * tests/test-shutdown.c: New file.
6042
6043         Tests for module 'setsockopt'.
6044         * modules/setsockopt-tests: New file.
6045         * tests/test-setsockopt.c: New file.
6046
6047         Tests for module 'sendto'.
6048         * modules/sendto-tests: New file.
6049         * tests/test-sendto.c: New file.
6050
6051         Tests for module 'send'.
6052         * modules/send-tests: New file.
6053         * tests/test-send.c: New file.
6054
6055         Tests for module 'recvfrom'.
6056         * modules/recvfrom-tests: New file.
6057         * tests/test-recvfrom.c: New file.
6058
6059         Tests for module 'recv'.
6060         * modules/recv-tests: New file.
6061         * tests/test-recv.c: New file.
6062
6063         Tests for module 'listen'.
6064         * modules/listen-tests: New file.
6065         * tests/test-listen.c: New file.
6066
6067         Tests for module 'getsockopt'.
6068         * modules/getsockopt-tests: New file.
6069         * tests/test-getsockopt.c: New file.
6070
6071         Tests for module 'getsockname'.
6072         * modules/getsockname-tests: New file.
6073         * tests/test-getsockname.c: New file.
6074
6075         Tests for module 'getpeername'.
6076         * modules/getpeername-tests: New file.
6077         * tests/test-getpeername.c: New file.
6078
6079         Tests for module 'connect'.
6080         * modules/connect-tests: New file.
6081         * tests/test-connect.c: New file.
6082
6083         Tests for module 'bind'.
6084         * modules/bind-tests: New file.
6085         * tests/test-bind.c: New file.
6086
6087         accept4 tests: Fix for native Windows.
6088         * tests/test-accept4.c: Include sockets.h.
6089         (main): Invoke gl_sockets_startup.
6090         * modules/accept4-tests (Depends-on): Add sockets.
6091
6092         accept tests: Fix for native Windows.
6093         * tests/test-accept.c: Include sockets.h.
6094         (main): Invoke gl_sockets_startup.
6095         * modules/accept-tests (Depends-on): Add sockets.
6096
6097 2011-09-19  Bruno Haible  <bruno@clisp.org>
6098
6099         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6100         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6101         do...while(0).
6102         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6103         Suggested by Paul Eggert.
6104
6105 2011-09-19  Bruno Haible  <bruno@clisp.org>
6106
6107         sched: Ensure pid_t is defined.
6108         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6109         not define pid_t.
6110         * lib/sched.in.h: Include <sys/types.h>.
6111         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6113
6114 2011-09-19  Bruno Haible  <bruno@clisp.org>
6115
6116         msvc-inval: Ensure the entire expansion is a single statement.
6117         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6118         of braces.
6119
6120 2011-09-19  Jim Meyering  <meyering@redhat.com>
6121
6122         tests: use printf, not echo in init.sh's warn_ function
6123         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6124         misbehave when given strings containing a backslash or starting
6125         with e.g., -n.  James Youngman suggested setting IFS.
6126
6127 2011-09-19  Eric Blake  <eblake@redhat.com>
6128
6129         futimens: enhance test
6130         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6131         closed non-negative fd.
6132
6133         date: accept 'hence' as opposite of 'ago'
6134         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6135         * tests/test-parse-datetime.c (main): Enhance test.
6136         Suggested by Jesse Wilson.
6137
6138 2011-09-19  Jim Meyering  <meyering@redhat.com>
6139
6140         getcwd: don't fail in a deep directory on a system without openat
6141         Before this change, getcwd would fail when called from a directory
6142         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6143         the non-openat implementation used "..", "../..", "../../..", etc.
6144         to access ancestor directories.  With too many, that string would
6145         be longer than PATH_MAX.
6146         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6147         using gnulib's openat replacement.
6148         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6149         we're using the replacement function.
6150
6151 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6152
6153         maint.mk: avoid warnings from perl about missing files
6154         * top/maint.mk (def_sym_regex): Ignore files listed in
6155         $(gl_other_headers_) that do not exist, say because a project
6156         does not use a corresponding module.
6157
6158 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6159
6160         stat: use pathmax.h only if needed
6161         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6162         This is better for Emacs, which does not have a mingw port and
6163         therefore can avoid the pathmax module.
6164
6165         utimens: remove dependency on dup2
6166         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6167         to work around the Linux kernel bug.
6168         * modules/utimens (Depends-on): Remove dup2.
6169
6170 2011-09-18  Bruno Haible  <bruno@clisp.org>
6171
6172         inet_ntop, inet_pton: Look for it also in libresolv.
6173         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6174         libnsl, search for it in libresolv.
6175         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6176         Needed on Solaris 7.
6177
6178 2011-09-18  Bruno Haible  <bruno@clisp.org>
6179
6180         accept, accept4 tests: Avoid link error on Solaris.
6181         * modules/accept-tests (Makefile.am): Link test-accept against
6182         $(LIBSOCKET).
6183         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6184         $(LIBSOCKET).
6185
6186         accept4: Avoid link error on Solaris.
6187         * modules/accept4 (Link): New section.
6188
6189         socket functions: Avoid link errors on Solaris.
6190         * modules/accept (Depends-on): Add socketlib.
6191         (Link): New section.
6192         * modules/bind (Depends-on): Add socketlib.
6193         (Link): New section.
6194         * modules/connect (Depends-on): Add socketlib.
6195         (Link): New section.
6196         * modules/getpeername (Depends-on): Add socketlib.
6197         (Link): New section.
6198         * modules/getsockname (Depends-on): Add socketlib.
6199         (Link): New section.
6200         * modules/getsockopt (Depends-on): Add socketlib.
6201         (Link): New section.
6202         * modules/listen (Depends-on): Add socketlib.
6203         (Link): New section.
6204         * modules/recv (Depends-on): Add socketlib.
6205         (Link): New section.
6206         * modules/recvfrom (Depends-on): Add socketlib.
6207         (Link): New section.
6208         * modules/send (Depends-on): Add socketlib.
6209         (Link): New section.
6210         * modules/sendto (Depends-on): Add socketlib.
6211         (Link): New section.
6212         * modules/setsockopt (Depends-on): Add socketlib.
6213         (Link): New section.
6214         * modules/shutdown (Depends-on): Add socketlib.
6215         (Link): New section.
6216         * modules/socket (Depends-on): Add socketlib.
6217         (Link): New section.
6218
6219 2011-09-18  Bruno Haible  <bruno@clisp.org>
6220
6221         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6222         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6223         than 5 seconds.
6224         * modules/ptsname-tests (configure.ac): Test for alarm.
6225
6226 2011-09-18  Bruno Haible  <bruno@clisp.org>
6227
6228         posix_spawn_file_actions_add*: Fix module dependencies.
6229         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6230         posix_spawn_file_actions_init.
6231         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6232         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6233
6234 2011-09-18  Bruno Haible  <bruno@clisp.org>
6235
6236         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6237         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6238         * tests/test-renameat.c (main): Likewise.
6239
6240 2011-09-18  Bruno Haible  <bruno@clisp.org>
6241
6242         Tests for module 'accept4'.
6243         * modules/accept4-tests: New file.
6244         * tests/test-accept4.c: New file.
6245
6246 2011-09-18  Bruno Haible  <bruno@clisp.org>
6247
6248         Tests for module 'accept'.
6249         * modules/accept-tests: New file.
6250         * tests/test-accept.c: New file.
6251
6252 2011-09-18  Bruno Haible  <bruno@clisp.org>
6253
6254         dup2: Support for MSVC.
6255         * lib/dup2.c: Include msvc-inval.h.
6256         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6257         _get_osfhandle calls.
6258         * modules/dup2 (Depends-on): Add msvc-inval.
6259         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6260
6261         New module 'msvc-inval'.
6262         * lib/msvc-inval.h: New file.
6263         * lib/msvc-inval.c: New file.
6264         * m4/msvc-inval.m4: New file.
6265         * modules/msvc-inval: New file.
6266
6267 2011-09-17  Bruno Haible  <bruno@clisp.org>
6268
6269         Tests for module 'pclose'.
6270         * modules/pclose-tests: New file.
6271
6272         New module 'pclose'.
6273         * lib/stdio.in.h (pclose): New declaration.
6274         * lib/pclose.c: New file.
6275         * m4/pclose.m4: New file.
6276         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6277         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6278         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6279         * modules/pclose: New file.
6280         * modules/popen-tests (Depends-on): Add pclose.
6281         * modules/popen-safer-tests (Depends-on): Likewise.
6282         * doc/posix-functions/pclose.texi: Mention the new module.
6283
6284 2011-09-17  Bruno Haible  <bruno@clisp.org>
6285
6286         popen: Support for MSVC.
6287         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6288         * lib/popen.c (popen): Provide alternate definition for native Windows.
6289         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6291         * modules/popen (Depends-on, configure.ac): Update condition.
6292         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6293         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6294         fixed.
6295
6296 2011-09-17  Bruno Haible  <bruno@clisp.org>
6297
6298         isnanl, isnand, isnanf: Work around MSVC bug.
6299         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6300
6301 2011-09-17  Bruno Haible  <bruno@clisp.org>
6302
6303         sys_socket tests: Fix recent mistake.
6304         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6305
6306 2011-09-17  Bruno Haible  <bruno@clisp.org>
6307
6308         putenv: Support for MSVC.
6309         * modules/putenv (Depends-on): Add environ.
6310         * lib/putenv.c (environ): Disable declaration.
6311         * lib/unistd.in.h: Update comment.
6312
6313 2011-09-17  Bruno Haible  <bruno@clisp.org>
6314
6315         math: Avoid macro redefinition warnings on MSVC.
6316         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6317         Undefine before redefining.
6318
6319 2011-09-17  Bruno Haible  <bruno@clisp.org>
6320
6321         doc: Mention functions which are declared as macros.
6322         * doc/posix-functions/*[fl].texi: Mention that some functions are
6323         defined as macros with arguments only.
6324
6325 2011-09-17  Bruno Haible  <bruno@clisp.org>
6326
6327         Add dependencies to new dirent related modules.
6328         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6329         * modules/fts (Depends-on): Likewise.
6330         * modules/glob (Depends-on): Likewise.
6331         * modules/savedir (Depends-on): Likewise.
6332         * modules/scandir (Depends-on): Likewise.
6333         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6334         * modules/fdopendir (Depends-on): Add opendir.
6335
6336 2011-09-17  Bruno Haible  <bruno@clisp.org>
6337
6338         inet_pton: Support for MSVC on Windows Vista or newer.
6339         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6340         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6341         HAVE_DECL_INET_PTON is defined.
6342         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6343         On platforms with <winsock2.h>, test whether inet_pton is declared in
6344         <ws2tcpip.h>. If so, arrange to replace it.
6345         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6346         REPLACE_INET_PTON.
6347         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6348         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6349         (Depends-on, configure.ac): Update condition.
6350         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6351
6352 2011-09-17  Bruno Haible  <bruno@clisp.org>
6353
6354         inet_ntop: Support for MSVC on Windows Vista or newer.
6355         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6356         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6357         HAVE_DECL_INET_NTOP is defined.
6358         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6359         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6360         <ws2tcpip.h>. If so, arrange to replace it.
6361         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6362         REPLACE_INET_NTOP.
6363         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6364         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6365         (Depends-on, configure.ac): Update condition.
6366         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6367
6368 2011-09-16  Eric Blake  <eblake@redhat.com>
6369
6370         test-fsync: yet another enhancement
6371         * tests/test-fsync.c (main): Also test behavior on read-only text
6372         file.
6373
6374 2011-09-16  Bruno Haible  <bruno@clisp.org>
6375
6376         Enhance fsync, fdatasync tests.
6377         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6378         * tests/test-fdatasync.c (main): Likewise.
6379
6380 2011-09-16  Bruno Haible  <bruno@clisp.org>
6381
6382         Support for MSVC compiler: Ensure mode_t gets defined.
6383         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6384         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6385         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6386         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6387         * tests/test-fcntl-h.c: Check that mode_t is defined.
6388         * tests/test-sys_stat.c: Likewise.
6389         * tests/test-sys_types.c: Likewise.
6390         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6391         * doc/posix-headers/sys_stat.texi: Likewise.
6392         * doc/posix-headers/sys_types.texi: Likewise.
6393
6394 2011-09-16  Bruno Haible  <bruno@clisp.org>
6395
6396         sys_stat: Support for MSVC.
6397         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6398         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6399         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6400         MSVC.
6401
6402 2011-09-16  Bruno Haible  <bruno@clisp.org>
6403
6404         Support for MSVC compiler: Ensure off_t gets defined.
6405         * lib/unistd.in.h: Include <sys/types.h>.
6406         * tests/test-fcntl-h.c: Check that off_t is defined.
6407         * tests/test-sys_stat.c: Likewise.
6408         * tests/test-sys_types.c: Likewise.
6409
6410 2011-09-16  Eric Blake  <eblake@redhat.com>
6411
6412         fdatasync: port to Solaris
6413         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6414         * modules/fdatasync (Link): Document it.
6415         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6416
6417         fdatasync: port to MacOS X 10.7
6418         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6419         declared.
6420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6421         * modules/unistd (Makefile.am): Substitute it.
6422         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6423         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6424
6425         fdatasync: minor improvements
6426         * modules/fdatasync (Depends-on): Add condition for fsync.
6427         * lib/fdatasync.c (fdatasync): Add comment.
6428         * tests/test-unistd-c++.cc: Test fdatasync.
6429
6430         unistd: update refs to newer POSIX
6431         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6432         Suggested by Bruno Haible.
6433
6434         fdatasync: new module
6435         * modules/fsync (Description): Document difference to fdatasync.
6436         * modules/fdatasync: New module.
6437         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6438         * lib/fdatasync.c (fdatasync): Likewise.
6439         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6440         defaults.
6441         * modules/unistd (Makefile.am): Set witnesses.
6442         * lib/unistd.in.h (fdatasync): Declare.
6443         * MODULES.html.sh: Document it.
6444         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6445         * modules/fdatasync-tests: New test.
6446         * tests/test-fdatasync.c: Likewise.
6447
6448 2011-09-16  Eric Blake  <eblake@redhat.com>
6449
6450         test-fsync: enhance tests
6451         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6452         * tests/test-fsync.c (main): Enhance test.
6453
6454 2011-09-15  Bruno Haible  <bruno@clisp.org>
6455
6456         Support for MSVC compiler: Ensure ssize_t gets defined.
6457         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6458         * doc/posix-headers/stdio.texi: Likewise.
6459         * modules/stdio (Depends-on): Add ssize_t.
6460         * modules/sys_socket (Depends-on): Likewise.
6461         * modules/sys_types (Depends-on): Likewise.
6462         * modules/sys_uio (Depends-on): Likewise.
6463         * modules/unistd (Depends-on): Likewise.
6464         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6465         * tests/test-sys_types.c: Check that ssize_t is defined.
6466
6467 2011-09-14  Bruno Haible  <bruno@clisp.org>
6468
6469         Avoid using #, the m4 comment starter character, near brackets.
6470         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6471         delimiter character in sed expressions.
6472         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6473         Suggested by Eric Blake.
6474
6475         Properly quote AC_CHECK_DECLS' 4th argument.
6476         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6477         argument.
6478         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6479         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6480         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6481         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6482         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6483         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6484         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6485         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6486         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6487         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6488         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6489         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6490         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6491         * m4/isinf.m4 (gl_ISINF): Likewise.
6492         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6493         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6494         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6495         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6496         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6497         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6498         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6499         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6500         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6501         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6502         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6503         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6504         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6505         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6506         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6507         Reported by Eric Blake.
6508
6509         Properly quote AC_CHECK_DECL's 4th argument.
6510         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6511         argument.
6512         * m4/argp.m4 (gl_ARGP): Likewise.
6513         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6514         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6515         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6516         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6517         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6518         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6519         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6520         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6521         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6522         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6523         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6524         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6525         Reported by Eric Blake.
6526
6527 2011-09-14  Eric Blake  <eblake@redhat.com>
6528
6529         opendir: avoid compile warning
6530         * lib/opendir.c (includes): Always include errno.h.
6531         Reported by Tatsuro MATSUOKA.
6532
6533 2011-09-14  Jim Meyering  <meyering@redhat.com>
6534
6535         maint.mk: sc_tight_scope: propagate failure from sub-make
6536         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6537         Reported by Martin von Gagern.
6538
6539 2011-09-13  Bruno Haible  <bruno@clisp.org>
6540
6541         tempname: Support for MSVC.
6542         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6543         MSVC.
6544         * modules/tempname (Depends-on): Add fcntl-h.
6545
6546 2011-09-13  Bruno Haible  <bruno@clisp.org>
6547
6548         sys_time: Support for MSVC.
6549         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6550         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6551         include <winsock2.h>.
6552         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6553         function declarations that collide with POSIX.
6554         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6555         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6556
6557 2011-09-13  Bruno Haible  <bruno@clisp.org>
6558
6559         stat: Support for MSVC.
6560         * lib/stat.c: Include pathmax.h.
6561         * modules/stat (Depends-on): Add pathmax.
6562
6563         pathmax: Support for native Windows.
6564         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6565
6566 2011-09-12  Bruno Haible  <bruno@clisp.org>
6567
6568         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6569         * lib/dirent.in.h (struct dirent): New type.
6570         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6571         DT_WHT): New macros.
6572         (DIR): New type.
6573         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6574         (readdir, rewinddir): New declarations.
6575         * lib/dirent-private.h: New file.
6576         * lib/opendir.c: New file.
6577         * lib/readdir.c: New file.
6578         * lib/rewinddir.c: New file.
6579         * lib/closedir.c: New file.
6580         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6581         * m4/opendir.m4: New file.
6582         * m4/readdir.m4: New file.
6583         * m4/rewinddir.m4: New file.
6584         * m4/closedir.m4: New file.
6585         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6586         REPLACE_CLOSEDIR here.
6587         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6588         readdir, rewinddir are declared.
6589         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6590         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6591         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6592         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6593         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6594         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6595         * modules/opendir: New file.
6596         * modules/readdir: New file.
6597         * modules/rewinddir: New file.
6598         * modules/closedir: New file.
6599         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6600         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6601         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6602         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6603         * NEWS: Mention the 'fchdir' change.
6604
6605 2011-09-11  Bruno Haible  <bruno@clisp.org>
6606
6607         asm-underscore.m4: Support for MSVC.
6608         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6609         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6610
6611 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6612
6613         Doc about crypt functions.
6614         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6615         needing for _GNU_SOURCE to get crypt.
6616         * doc/posix-functions/encrypt.texi: Likewise.
6617         * doc/posix-functions/setkey.texi: Likewise.
6618
6619 2011-09-11  Bruno Haible  <bruno@clisp.org>
6620
6621         doc: Update regarding MSVC 9.
6622         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6623         tested".
6624         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6625         * doc/posix-headers/*.texi: Likewise.
6626         * doc/pastposix-functions/*.texi: Likewise.
6627         * doc/glibc-functions/*.texi: Likewise.
6628         * doc/glibc-headers/*.texi: Likewise.
6629
6630 2011-09-11  Bruno Haible  <bruno@clisp.org>
6631
6632         unistd et al.: Don't assume <unistd.h> exists.
6633         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6634         does not exist.
6635         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6636         exist. But include <stdlib.h>.
6637         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6638         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6639         symlink() does not exist.
6640         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6641         include <io.h> instead.
6642         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6643         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6644         include <direct.h> instead.
6645         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6646         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6647         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6648         <io.h> instead.
6649         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6650         correctly if the system does not have hard links.
6651         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6652         <direct.h> instead.
6653         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6654         it when looking for function declarations.
6655         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6656         <direct.h> and <io.h> instead.
6657         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6658
6659 2011-09-11  Bruno Haible  <bruno@clisp.org>
6660
6661         strcase: Support for MSVC.
6662         * modules/strcase (Status, Notice): Remove obsoletion mark.
6663         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6664         * doc/posix-functions/strncasecmp.texi: Likewise.
6665
6666         strings: Don't assume <strings.h> exists.
6667         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6668         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6669         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6670         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6671
6672 2011-09-11  Bruno Haible  <bruno@clisp.org>
6673
6674         dirent: Don't assume <dirent.h> exists.
6675         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6676         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6677         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6678         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6679
6680 2011-09-11  Bruno Haible  <bruno@clisp.org>
6681
6682         Fix wint_t on MSVC.
6683         * lib/wchar.in.h (wint_t): On MSVC, override it.
6684         * lib/wctype.in.h (wint_t): Likewise.
6685         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6686         MSVC.
6687         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6688         * doc/posix-headers/wctype.texi: Likewise.
6689
6690 2011-09-11  Bruno Haible  <bruno@clisp.org>
6691
6692         sys_types: Fix typo.
6693         * lib/sys_types.in.h: Fix typo in comment.
6694         Reported by Paul Eggert.
6695
6696         Support for MSVC compiler: Ensure size_t gets defined.
6697         * modules/strings (Depends-on): Add 'sys_types'.
6698         * modules/sys_uio (Depends-on): Likewise.
6699         * lib/sys_uio.in.h: Update comment.
6700
6701         C++ tests for module 'sys_types'.
6702         * modules/sys_types-c++-tests: New file.
6703         * tests/test-sys_types-c++.cc: New file.
6704
6705         Tests for module 'sys_types'.
6706         * modules/sys_types-tests: New file.
6707         * tests/test-sys_types.c: New file.
6708
6709         New module 'sys_types'.
6710         * lib/sys_types.in.h: New file.
6711         * m4/sys_types_h.m4: New file.
6712         * modules/sys_types: New file.
6713         * doc/posix-headers/sys_types.texi: Mention the new module and the
6714         size_t problem on MSVC 9.
6715
6716 2011-09-11  Bruno Haible  <bruno@clisp.org>
6717
6718         Support for MSVC compiler: Avoid division by a literal 0.
6719         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6720         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6721         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6722         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6723         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6724         * tests/infinity.h: New file.
6725         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6726         on MSVC.
6727         * tests/test-ceilf1.c: Include infinity.h.
6728         (main): Use Infinityf.
6729         * tests/test-ceil1.c: Include infinity.h.
6730         (main): Use Infinityd.
6731         * tests/test-ceill.c: Include infinity.h.
6732         (main): Use Infinityl.
6733         * tests/test-dprintf-posix.c: Include infinity.h.
6734         (test_function): Use Infinityd.
6735         * tests/test-floorf1.c: Include infinity.h.
6736         (main): Use Infinityf.
6737         * tests/test-floor1.c: Include infinity.h.
6738         (main): Use Infinityd.
6739         * tests/test-floorl.c: Include infinity.h.
6740         (main): Use Infinityl.
6741         * tests/test-fprintf-posix.c: Include infinity.h.
6742         (test_function): Use Infinityd.
6743         * tests/test-frexp.c: Include infinity.h.
6744         (main): Use Infinityd.
6745         * tests/test-frexpl.c: Include infinity.h.
6746         (main): Use Infinityl.
6747         * tests/test-isfinite.c: Include infinity.h.
6748         (test_isfinitef): Use Infinityf.
6749         (test_isfinited): Use Infinityd.
6750         (test_isfinitel): Use Infinityl.
6751         * tests/test-isinf.c: Include infinity.h.
6752         (test_isinff): Use Infinityf.
6753         (test_isinfd): Use Infinityd.
6754         (test_isinfl): Use Infinityl.
6755         * tests/test-isnan.c: Include infinity.h.
6756         (test_float): Use Infinityf.
6757         (test_double): Use Infinityd.
6758         (test_long_double): Use Infinityl.
6759         * tests/test-isnanf.h: Include infinity.h.
6760         (main): Use Infinityf.
6761         * tests/test-isnand.h: Include infinity.h.
6762         (main): Use Infinityd.
6763         * tests/test-isnanl.h: Include infinity.h.
6764         (main): Use Infinityl.
6765         * tests/test-ldexpl.c: Include infinity.h.
6766         (main): Use Infinityl.
6767         * tests/test-printf-posix.h: Include infinity.h.
6768         (test_function): Use Infinityd.
6769         * tests/test-roundf1.c: Include infinity.h.
6770         (main): Use Infinityf.
6771         * tests/test-round1.c: Include infinity.h.
6772         (main): Use Infinityd.
6773         * tests/test-roundl.c: Include infinity.h.
6774         (main): Use Infinityl.
6775         * tests/test-signbit.c: Include infinity.h.
6776         (test_signbitf): Use Infinityf.
6777         (test_signbitd): Use Infinityd.
6778         (test_signbitl): Use Infinityl.
6779         * tests/test-snprintf-posix.h: Include infinity.h.
6780         (test_function): Use Infinityd, Infinityl.
6781         * tests/test-sprintf-posix.h: Include infinity.h.
6782         (test_function): Use Infinityd, Infinityl.
6783         * tests/test-truncf1.c: Include infinity.h.
6784         (main): Use Infinityf.
6785         * tests/test-trunc1.c: Include infinity.h.
6786         (main): Use Infinityd.
6787         * tests/test-truncl.c: Include infinity.h.
6788         (main): Use Infinityl.
6789         * tests/test-vasnprintf-posix.c: Include infinity.h.
6790         (test_function): Use Infinityd, Infinityl.
6791         * tests/test-vasprintf-posix.c: Include infinity.h.
6792         (test_function): Use Infinityd, Infinityl.
6793         * modules/ceilf-tests (Files): Add tests/infinity.h.
6794         * modules/ceil-tests (Files): Likewise.
6795         * modules/ceill-tests (Files): Likewise.
6796         * modules/dprintf-posix-tests (Files): Likewise.
6797         * modules/floorf-tests (Files): Likewise.
6798         * modules/floor-tests (Files): Likewise.
6799         * modules/floorl-tests (Files): Likewise.
6800         * modules/fprintf-posix-tests (Files): Likewise.
6801         * modules/frexp-tests (Files): Likewise.
6802         * modules/frexp-nolibm-tests (Files): Likewise.
6803         * modules/frexpl-tests (Files): Likewise.
6804         * modules/frexpl-nolibm-tests (Files): Likewise.
6805         * modules/isfinite-tests (Files): Likewise.
6806         * modules/isinf-tests (Files): Likewise.
6807         * modules/isnan-tests (Files): Likewise.
6808         * modules/isnanf-tests (Files): Likewise.
6809         * modules/isnanf-nolibm-tests (Files): Likewise.
6810         * modules/isnand-tests (Files): Likewise.
6811         * modules/isnand-nolibm-tests (Files): Likewise.
6812         * modules/isnanl-tests (Files): Likewise.
6813         * modules/isnanl-nolibm-tests (Files): Likewise.
6814         * modules/ldexpl-tests (Files): Likewise.
6815         * modules/printf-posix-tests (Files): Likewise.
6816         * modules/roundf-tests (Files): Likewise.
6817         * modules/round-tests (Files): Likewise.
6818         * modules/roundl-tests (Files): Likewise.
6819         * modules/signbit-tests (Files): Likewise.
6820         * modules/snprintf-posix-tests (Files): Likewise.
6821         * modules/sprintf-posix-tests (Files): Likewise.
6822         * modules/truncf-tests (Files): Likewise.
6823         * modules/trunc-tests (Files): Likewise.
6824         * modules/truncl-tests (Files): Likewise.
6825         * modules/vasnprintf-posix-tests (Files): Likewise.
6826         * modules/vasprintf-posix-tests (Files): Likewise.
6827         * modules/vdprintf-posix-tests (Files): Likewise.
6828         * modules/vfprintf-posix-tests (Files): Likewise.
6829         * modules/vprintf-posix-tests (Files): Likewise.
6830         * modules/vsnprintf-posix-tests (Files): Likewise.
6831         * modules/vsprintf-posix-tests (Files): Likewise.
6832         * modules/xprintf-posix-tests (Files): Likewise.
6833
6834 2011-09-11  Bruno Haible  <bruno@clisp.org>
6835
6836         Ensure pid_t gets defined.
6837         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6838         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6839         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6840         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6841         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6842         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6843         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6844         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6845         * tests/test-fcntl-h.c: Check that pid_t is defined.
6846         * tests/test-sched.c: Likewise.
6847         * tests/test-termios.c: Likewise.
6848         * tests/test-time.c: Likewise.
6849         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6850         * doc/posix-headers/signal.texi: Likewise.
6851         * doc/posix-headers/sys_types.texi: Likewise.
6852         * doc/posix-headers/time.texi: Likewise.
6853
6854 2011-09-11  Bruno Haible  <bruno@clisp.org>
6855
6856         acl: Fix compilation on Solaris 10 (older version).
6857         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6858         of ACE_EVERYONE.
6859         * lib/set-mode-acl.c (qset_acl): Likewise.
6860         Reported by Christian Jullien <eligis@orange.fr>.
6861
6862 2011-09-10  Bruno Haible  <bruno@clisp.org>
6863
6864         iconv, unsetenv: Add support for MSVC compiler.
6865         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6866         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6867
6868 2011-09-10  Bruno Haible  <bruno@clisp.org>
6869
6870         *printf: Add support for MSVC compiler.
6871         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6872         handles the exception caused by the %n directive. When cross-compiling,
6873         guess no on native Windows.
6874         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6875         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6876         emulate it through vsnprintf.
6877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6878         * doc/posix-functions/dprintf.texi: Update documentation regarding
6879         MSVC 9.
6880         * doc/posix-functions/fprintf.texi: Likewise.
6881         * doc/posix-functions/printf.texi: Likewise.
6882         * doc/posix-functions/snprintf.texi: Likewise.
6883         * doc/posix-functions/sprintf.texi: Likewise.
6884         * doc/posix-functions/swprintf.texi: Likewise.
6885         * doc/posix-functions/vdprintf.texi: Likewise.
6886         * doc/posix-functions/vfprintf.texi: Likewise.
6887         * doc/posix-functions/vprintf.texi: Likewise.
6888         * doc/posix-functions/vsnprintf.texi: Likewise.
6889         * doc/posix-functions/vsprintf.texi: Likewise.
6890         * doc/glibc-functions/asprintf.texi: Likewise.
6891         * doc/glibc-functions/obstack_printf.texi: Likewise.
6892         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6893         * doc/glibc-functions/vasprintf.texi: Likewise.
6894
6895 2011-09-10  Bruno Haible  <bruno@clisp.org>
6896
6897         nocrash: Add support for native Windows.
6898         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6899
6900 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6901             Bruno Haible  <bruno@clisp.org>
6902
6903         absolute-header, include-next: Add support for MSVC compiler.
6904         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6905         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6906         directory separator in #line directives.
6907         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6908         recognize also backslash as directory separator in #line directives.
6909
6910 2011-09-08  Jim Meyering  <meyering@redhat.com>
6911
6912         maint.mk: mark the post-release commit log with "maint: " prefix
6913         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6914         one-line commit-log summary.
6915
6916 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6917             Bruno Haible  <bruno@clisp.org>
6918
6919         Doc about crypt functions.
6920         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6921         systems.
6922         * doc/posix-functions/encrypt.texi: Likewise.
6923         * doc/posix-functions/setkey.texi: Likewise.
6924
6925 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6926
6927         * lib/gc.h: Fix copyright header.
6928
6929 2011-09-07  Bruno Haible  <bruno@clisp.org>
6930
6931         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6932         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6933         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6934
6935 2011-09-07  Bruno Haible  <bruno@clisp.org>
6936
6937         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6938         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6939         * lib/freopen.c: Likewise.
6940         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6941         * lib/lstat.c: Likewise.
6942         * lib/stat.c: Likewise.
6943         * lib/open.c: Use different syntax for include of <fcntl.h>.
6944         * lib/openat.c: Include fcntl.h again, explicitly.
6945
6946 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6947
6948         parse-datetime: document the newly accepted format
6949         * doc/parse-datetime.texi (Combined date and time of day items):
6950         New section.
6951
6952 2011-09-06  Bruno Haible  <bruno@clisp.org>
6953
6954         acl: Fix a test failure on newer Solaris 10 with ZFS.
6955         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6956         ENOSYS as no ACL.
6957         Reported by Jim Meyering.
6958
6959 2011-09-06  Bruno Haible  <bruno@clisp.org>
6960
6961         acl: Update for AIX >= 5.3 with NFS.
6962         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6963         ENOSYS as no ACL.
6964
6965         acl: Fix a test failure on AIX >= 5.3 with NFS.
6966         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6967         as no ACL.
6968
6969 2011-09-06  Bruno Haible  <bruno@clisp.org>
6970
6971         acl: Fix a test failure on IRIX 6.5 with NFS.
6972         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6973         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6974         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6975         * lib/copy-acl.c (qcopy_acl): Likewise.
6976
6977 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6978
6979         openat: port to AIX 7.1 with large files
6980         AIX 7.1 does a "#define openat open64at" if large files are in use,
6981         so we can't simply #undef openat.  Use the orig_openat trick (similar
6982         to orig_open in lib/open.c) to work around the problem.  Problem
6983         reported by Kevin Brott for GNU tar, in the thread containing
6984         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6985         * lib/openat.c (__need_system_fcntl_h): Define first.
6986         Include <fcntl.h> and <sys/types.h> before undefining.
6987         (orig_openat) [HAVE_OPENAT]: New inline function.
6988         (openat) [HAVE_OPENAT]: Do not undef.
6989         (rpl_openat): Use orig_openat, not openat.
6990
6991 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6992             Bruno Haible  <bruno@clisp.org>
6993
6994         acl: Avoid errors on NonStop Kernel.
6995         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6996         ENOTSUP errors.
6997
6998 2011-09-05  Bruno Haible  <bruno@clisp.org>
6999
7000         acl: Clean up Solaris code.
7001         * lib/acl-internal.h: Remove no-op #if.
7002         * lib/file-has-acl.c: Likewise.
7003         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
7004         * lib/copy-acl.c (qcopy_acl): Likewise.
7005
7006 2011-09-05  Bruno Haible  <bruno@clisp.org>
7007
7008         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
7009         binaries built on the original Solaris 10.
7010         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
7011         trivial.
7012
7013 2011-09-05  Bruno Haible  <bruno@clisp.org>
7014
7015         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7016         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7017         10.
7018         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7019         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7020         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7021         instead of acl_get, facl_get, acl_set, facl_set.
7022
7023 2011-09-05  Bruno Haible  <bruno@clisp.org>
7024
7025         copy-file: Try unit tests on more file systems.
7026         * tests/test-copy-file-1.sh: New file.
7027         * tests/test-copy-file-2.sh: New file.
7028         * modules/copy-file-tests (Files): Add them.
7029         (Makefile.am): Add them to TESTS.
7030
7031         acl: Try unit tests on more file systems.
7032         * tests/test-file-has-acl-1.sh: New file.
7033         * tests/test-file-has-acl-2.sh: New file.
7034         * tests/test-set-mode-acl-1.sh: New file.
7035         * tests/test-set-mode-acl-2.sh: New file.
7036         * tests/test-copy-acl-1.sh: New file.
7037         * tests/test-copy-acl-2.sh: New file.
7038         * modules/acl-tests (Files): Add them.
7039         (Makefile.am): Add them to TESTS.
7040
7041 2011-09-04  Bruno Haible  <bruno@clisp.org>
7042
7043         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7044         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7045         10.
7046         (OLD_ALLOW, OLD_DENY): New macros.
7047         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7048         ACE_ACCESS_ALLOWED_ACE_TYPE.
7049         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7050         ACE_ACCESS_DENIED_ACE_TYPE.
7051         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7052         (NEW_ACE_EXECUTE): Fix value.
7053         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7054         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7055         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7056         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7057         NEW_ACE_SYNCHRONIZE): New macros.
7058         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7059         instead of acl_fromtext, acl_set, facl_set.
7060         Fixes a coreutils/tests/cp/perm failure.
7061
7062 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7063
7064         openat: test for fstatat (..., 0) bug
7065         Further testing with tar suggests that fstatat (..., 0)
7066         does not work in general, on AIX 7.1; see
7067         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7068         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7069         replacement fstatat (which is what older AIX releases were using
7070         anyway).
7071         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7072         use is now changed to orig_fstatat.  This was probably the right
7073         thing to do anyway.
7074         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7075         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7076         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7077         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7078         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7079         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7080         if the bug is found.
7081
7082         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7083         This tests for another fstatat bug on AIX 7.1:
7084         fstatat (AT_FDCWD, ..., 0) does not work.  See
7085         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7086         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7087         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7088         (rpl_fstatat): Adjust so that it works around either (or both)
7089         bugs if present.
7090         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7091
7092 2011-09-03  Karl Berry  <karl@gnu.org>
7093
7094         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7095         in index entries.
7096
7097 2011-09-02  Bruno Haible  <bruno@clisp.org>
7098
7099         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7100         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7101         values of AR, ARFLAGS, RANLIB.
7102         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7103
7104 2011-09-02  Bruno Haible  <bruno@clisp.org>
7105
7106         Find 'ar' program that fits with --host argument.
7107         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7108
7109 2011-09-02  Bruno Haible  <bruno@clisp.org>
7110
7111         tests: init.sh: Support any non-GNU diff.
7112         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7113         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7114         Solaris 8.
7115
7116 2011-09-02  Bruno Haible  <bruno@clisp.org>
7117
7118         tests: init.sh: work also with any non-GNU diff that supports -u
7119         * tests/init.sh: Relax check for diff -u support.
7120         Rather than checking for GNU diff via --version, simply check
7121         for support for -u itself.  Useful at least on OpenBSD 4.9,
7122         AIX 7.1, IRIX 6.5, and Solaris 10.
7123
7124 2011-09-01  Bruno Haible  <bruno@clisp.org>
7125
7126         strtoimax, strtoumax: Document problem on HP-UX 11.
7127         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7128         * doc/posix-functions/strtoumax.texi: Likewise.
7129
7130 2011-09-01  Bruno Haible  <bruno@clisp.org>
7131
7132         strtoumax: Avoid link error on OSF/1 with DTK cc.
7133         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7134         defined as a function.
7135         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7136         strtoumax is defined, not whether it is declared.
7137
7138 2011-09-01  Bruno Haible  <bruno@clisp.org>
7139
7140         strtoimax: Avoid link error on OSF/1 with DTK cc.
7141         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7142         defined as a function.
7143         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7144         strtoimax is defined, not whether it is declared.
7145
7146 2011-09-01  Bruno Haible  <bruno@clisp.org>
7147
7148         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7149         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7150         as a function.
7151         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7152         whether it is declared.
7153
7154 2011-09-01  Bruno Haible  <bruno@clisp.org>
7155
7156         imaxabs: Avoid link error on OSF/1 with DTK cc.
7157         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7158         as a function.
7159         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7160         whether it is declared.
7161
7162 2011-09-01  Bruno Haible  <bruno@clisp.org>
7163
7164         Tests for module 'strtoumax'.
7165         * modules/strtoumax-tests: New file.
7166         * tests/test-strtoumax.c: New file.
7167
7168         Tests for module 'strtoimax'.
7169         * modules/strtoimax-tests: New file.
7170         * tests/test-strtoimax.c: New file.
7171
7172         Tests for module 'imaxdiv'.
7173         * modules/imaxdiv-tests: New file.
7174         * tests/test-imaxdiv.c: New file.
7175
7176         Tests for module 'imaxabs'.
7177         * modules/imaxabs-tests: New file.
7178         * tests/test-imaxabs.c: New file.
7179
7180 2011-09-01  Bruno Haible  <bruno@clisp.org>
7181
7182         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7183         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7184         pthread_create.
7185
7186 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7187
7188         openat: work around AIX 7.1 fstatat issue
7189         This should fix the problem that was not properly fixed
7190         in the previous change, dated 2011-08-30.
7191         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7192         __need_system_stat_h defined.
7193         (orig_fstatat) [HAVE_FSTATAT]: New function.
7194         (rpl_fstatat): Go back to the old way of doing things,
7195         except call orig_fstatat instead of fstatat.
7196         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7197         Remove unnecessary check whether fstatat fills in st_size etc.
7198
7199 2011-09-01  Bruno Haible  <bruno@clisp.org>
7200
7201         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7202         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7203         just include the system's header.
7204
7205 2011-08-31  Jim Meyering  <meyering@redhat.com>
7206
7207         tests: avoid spurious assertion failure in test-float.c on ppc64
7208         * tests/test-float.c (test_long_double): Comment out an assertion,
7209         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7210         with gcc-4.4.4.
7211
7212         maint: indent with spaces, not TABs
7213         I need to get in the habit of running gnulib's "make check".
7214         Both of these would have been caught.
7215         * m4/largefile.m4: Indent with spaces, not TABs.
7216         * lib/parse-datetime.y (iso_8601_time): Likewise.
7217         Spotted by Pádraig Brady.
7218
7219         test-parse-datetime.c: accommodate a relatively strict gcc warning
7220         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7221         to avoid a warning from gcc's -Werror=missing-declarations.
7222         Insert a few spaces-before-funcall-parenthesis.
7223
7224 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7225
7226         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7227         The parser now accepts ISO 8601 date-time strings with "T" as the
7228         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7229         with a space between the date and time strings.  Now it also parses
7230         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7231         variants like "2004-02-29T16:21:42.333-07:00"
7232         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7233         of day representation using the 'T' separator character.
7234         * doc/parse-datetime.texi (General date syntax): replace use of
7235         deprecated --iso-8601 option with --rfc-3339 in example of date
7236         command output formats that can be parsed.
7237         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7238         lib/parse-datetime.y.
7239         (gmt_offset): New function.
7240         (main): Add additional test cases to validate ISO8601 extended
7241         date and time of day parsing.
7242
7243 2011-08-31  Bruno Haible  <bruno@clisp.org>
7244
7245         freopen: Documentation.
7246         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7247         name.
7248         Reported by Claudio Bley <claudio.bley@gmail.com>.
7249
7250 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7251
7252         freopen: Don't crash if the filename argument is NULL.
7253         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7254         NULL.
7255
7256 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7257
7258         openat: work around AIX 7.1 fstatat bug
7259         Problem reported by Kevin Brott for GNU tar, in the thread containing
7260         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7261         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7262         FSTATAT_ST_SIZE_ETC_BROKEN.
7263         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7264         rpl_fstatat.
7265         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7266         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7267         AC_CHECK_FUNCS_ONCE for fstatat.
7268         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7269         fchmodat, mkdirat, openat and unlinkat.
7270
7271 2011-08-30  Bruno Haible  <bruno@clisp.org>
7272
7273         Avoid endless recursions if config.h includes some header files.
7274         * lib/fopen.c (__need_FILE): Define already before including config.h.
7275         * lib/freopen.c (__need_FILE): Likewise.
7276         * lib/open.c (__need_system_fcntl_h): Likewise.
7277         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7278         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7279         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7280
7281 2011-08-25  Karl Berry  <karl@gnu.org>
7282
7283         * config/srclist.txt (ylwrap): new try.
7284         * build-aux/ylwrap: new file.
7285
7286 2011-08-23  Bruno Haible  <bruno@clisp.org>
7287
7288         tmpdir: Use a good default directory on native Windows.
7289         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7290         (P_tmpdir): Default to _P_tmpdir on native Windows.
7291         (path_search): On native Windows, try the value returned by GetTempPath
7292         before trying P_tmpdir.
7293         * modules/tmpdir (Depends-on): Add pathmax.
7294         Suggested by John Darrington <john@darrington.wattle.id.au>.
7295
7296 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7297
7298         doc: fix typo in README-release
7299         * top/README-release: Capitalize first word of a sentence.
7300
7301 2011-08-19  Jim Meyering  <meyering@redhat.com>
7302
7303         fts: do not exhaust memory when processing million-entry directories
7304         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7305         directory would require about 256*N bytes of memory.  Thus, it was
7306         easy to construct a directory too large to be processed by any of
7307         those tools.  With this change, fts' maximum memory utilization is
7308         now limited to around 30MB.
7309         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7310         (fts_read): When we've processed the final entry (i.e., when
7311         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7312         using the parent entry to read any remaining entries.  Dispatch
7313         depending on what fts_build returns:
7314         - NULL+stop, aka failure: stop
7315         - NULL otherwise: move up in the dir hierarchy
7316         - non-NULL: handle this new entry
7317         (fts_build): Declare and use new local, continue_readdir.
7318         Prepare to be called from fts_read, when the entries
7319         from a partially-read directory have just been exhausted.
7320         In that case, we'll skip the opendir and instead use the parent's
7321         fts_dirp and derive dir_fd from that.
7322         Finally, in the readdir loop, if we read max_entries entries,
7323         exit the loop ensuring *not* to call closedir.  This is required
7324         so that fts_dirp can be reused on a subsequent call.
7325         Prompted by Ben England's report of memory exhaustion in find
7326         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7327
7328         maint: fts: move decl of `dp' down into while loop; split a long line
7329         * lib/fts.c (fts_build): No semantic change.
7330
7331         fts: add/use new struct member, fts_dirp
7332         We are about to use this to manage any directory with
7333         too many entries to read all of them into memory at once.
7334         To do that, we'll need to save the DIR* pointer in each
7335         affected FTSENT struct.
7336         * lib/fts_.h: Include <dirent.h>.
7337         (struct FTSENT) [fts_dirp]: New member.
7338         * lib/fts.c (closedir_and_clear): Define.
7339         Use it in place of closedir so that we are sure to
7340         clear the new fts_dirp member when done with it.
7341         (fts_alloc): Initialize the new member.
7342         (fts_lfree): Free, if needed.
7343
7344         maint: fts: give __opendir2 a new parameter and rename
7345         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7346         than surreptitiously using sole caller's "dir_fd".
7347         (fts_opendir): Rename from __opendir2.
7348
7349         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7350         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7351
7352         maint: fts.c: correct off-by-one indentation
7353         * lib/fts.c (fts_build): Correct indentation, change style
7354         of a couple of block comments, and bracing style.
7355
7356         maint: fts.c: move __opendir2 #define "up" out of function body
7357         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7358
7359         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7360         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7361         out for a long time and besides was useful only on BSD systems.
7362
7363 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7364
7365         regex: port to Stratus OpenVOS
7366         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7367         define to empty, rather than attempting nonportable optimizations.
7368         Problem reported by Paul Green in:
7369         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7370         and fix suggested by Eric Blake in:
7371         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7372
7373 2011-08-17  Eric Blake  <eblake@redhat.com>
7374
7375         getcwd: fix test failures on mingw
7376         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7377         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7378         test if long directory cannot be created, and allow mingw errno.
7379
7380         getcwd-lgpl: fix m4 to match relaxed test for BSD
7381         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7382         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7383         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7384         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7385         signature problem.
7386
7387         getcwd: fix compilation on mingw64
7388         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7389         getcwd.
7390         Reported by Marc-André Lureau.
7391
7392         pipe2: silence compiler warning
7393         * lib/pipe2.c (pipe2): Hide label if it is not used.
7394
7395 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7396
7397         relocatable-prog: fix link error
7398         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7399         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7400         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7401         into modules/relocatable-lib without noticing that
7402         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7403         also needs to build relocatable.c.
7404
7405 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7406
7407         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7408         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7409         shell code: it contained a 'break' that was not in a loop.
7410         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7411         via a shell-language loop; this may have been true in old Autoconf
7412         versions, but it's not true in Autoconf 2.68.  I found this bug
7413         when testing coreutils git on Solaris 8, whose shell complains
7414         about the syntax error.
7415
7416 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7417
7418         * lib/base64.c: Fix comment to reference RFC 4648.
7419         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7420         <gvtulder@gmail.com>.
7421
7422 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7423
7424         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7425
7426         po/Makefile.in.in: fix make -q problem
7427         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7428         rule, since there's no file named 'check-macro-version' and its
7429         use as a file breaks make -q.
7430         (all): Don't depend on check-macro-version.
7431         (CHECK_MACRO_VERSION): New macro.
7432         (stamp-po): Use it.
7433
7434         configmake: fix make -q problem
7435         * modules/configmake (configmake.h): Update configmake.h's time stamp
7436         even if the file does not change.  Otherwise, 'make -q' fails.
7437         Problem reported by Simon Josefsson in
7438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7439
7440 2011-08-11  Jim Meyering  <meyering@redhat.com>
7441
7442         git-version-gen: correct the advice in a comment
7443         * build-aux/git-version-gen: Correct comment.
7444         Don't recommend to list .tarball-version in .gitignore.
7445
7446 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7447
7448         base64: fix off-by-one buffer size bug
7449         Problem and (trivial) fix reported by Gijs van Tulder in
7450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7451         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7452         * tests/test-base64.c (main): Catch the bug.
7453
7454 2011-08-10  Eric Blake  <eblake@redhat.com>
7455
7456         closein: correct comments
7457         * lib/closein.c (close_stdin): Improve comments.
7458
7459 2011-08-09  Bruno Haible  <bruno@clisp.org>
7460
7461         More tests for 'fseeko'.
7462         * tests/test-fseeko3.c: New file, from Eric Blake.
7463         * tests/test-fseeko3.sh: New file.
7464         * modules/fseeko-tests (Files): Add them.
7465         (TESTS): Add test-fseeko3.sh.
7466         (check_PROGRAMS): Add test-fseeko3.
7467
7468 2011-08-09  Eric Blake  <eblake@redhat.com>
7469
7470         fseeko: remove unneeded hack
7471         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7472
7473         fseeko: fix bug on glibc
7474         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7475         Reported by John W. Eaton.
7476
7477 2011-08-08  Bruno Haible  <bruno@clisp.org>
7478
7479         unictype/base: Fix interoperability with preinstalled libunistring.
7480         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7481         Reported by Simon Josefsson.
7482
7483 2011-08-08  Bruno Haible  <bruno@clisp.org>
7484
7485         iswblank: Detect declaration correctly.
7486         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7487         AC_CHECK_DECLS invocation.
7488
7489 2011-08-08  Bruno Haible  <bruno@clisp.org>
7490
7491         tcgetsid: Detect declaration correctly.
7492         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7493         AC_CHECK_DECLS invocation.
7494         Reported by Simon Josefsson.
7495
7496 2011-08-08  Eric Blake  <eblake@redhat.com>
7497
7498         largefile: fix typo that regressed large file support
7499         * modules/largefile (configure.ac-early): Fix section name.
7500
7501 2011-08-06  Karl Berry  <karl@gnu.org>
7502
7503         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7504         a separate module.
7505
7506 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7507
7508         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7509         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7510         get prototype for free.
7511
7512 2011-08-04  Bruno Haible  <bruno@clisp.org>
7513
7514         Tests for module 'pathmax'.
7515         * modules/pathmax-tests: New file.
7516         * tests/test-pathmax.c: New file.
7517
7518         canonicalize-lgpl: Support larger filenames on the Hurd.
7519         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7520         Reported by Paul Eggert.
7521
7522         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7523         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7524         * lib/chdir-long.h: Include pathmax.h.
7525         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7526         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7527         (PATH_MAX): Remove code that is done by pathmax.h.
7528         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7529         * lib/tmpfile.c: Add a comment.
7530         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7531         * modules/chdir-long (Depends-on): Add pathmax.
7532         * modules/getcwd (Depends-on): Add pathmax.
7533         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7534         is not defined.
7535         * doc/posix-headers/limits.texi: Mention the pathmax module.
7536         * NEWS: Mention the change.
7537
7538 2011-08-02  Bruno Haible  <bruno@clisp.org>
7539
7540         pthread_sigmask: Actually use results of gl_THREADLIB.
7541         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7542         gl_THREADLIB, not gl_[]THREADLIB.
7543         Reported by Eric Blake.
7544
7545 2011-08-02  Jim Meyering  <meyering@redhat.com>
7546
7547         maint.mk: relax the default _gl_TS_function_match regexp
7548         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7549         space between function name and "(" in an "extern" declaration.
7550         That would fail to match a decl with no space there: extern void foo();
7551
7552 2011-07-31  Iain Nicol  <iain@thenicols.net>
7553
7554         git-version-gen: document that EXTRA_DIST must include .version
7555         * build-aux/git-version-gen: In the how-to-use comment, document
7556         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7557         will fail when run from an unpacked distribution tarball.
7558
7559 2011-08-01  Bruno Haible  <bruno@clisp.org>
7560
7561         wctype-h: Fix last change.
7562         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7563         REPLACE_TOWLOWER to 0.
7564         Reported by Sam Steingold <sds@gnu.org>.
7565
7566 2011-07-31  Bruno Haible  <bruno@clisp.org>
7567
7568         frexpl: Update autoconf test.
7569         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7570         according to changes of 2011-06-20.
7571
7572 2011-07-31  Bruno Haible  <bruno@clisp.org>
7573
7574         sys_utsname: Add support for Minix.
7575         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7576         <sys/utsname.h>.
7577         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7578         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7579
7580 2011-07-31  Bruno Haible  <bruno@clisp.org>
7581
7582         strings: Add support for Minix.
7583         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7584         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7585         * doc/posix-headers/strings.texi: Document the Minix problem.
7586
7587 2011-07-31  Bruno Haible  <bruno@clisp.org>
7588
7589         wctype-h: Add support for Minix.
7590         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7591         REPLACE_TOWLOWER.
7592         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7593         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7594         REPLACE_ISWCNTRL.
7595
7596 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7597
7598         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7599         This is a performance improvement for 64-bit hosts: it causes the
7600         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7601
7602 2011-07-31  Bruno Haible  <bruno@clisp.org>
7603
7604         stdioext: Add support for Minix.
7605         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7606         * lib/fpurge.c (fpurge): Likewise.
7607         * lib/freadahead.c (freadahead): Likewise.
7608         * lib/freadable.c (freadable): Likewise.
7609         * lib/freading.c (freading): Likewise.
7610         * lib/freadptr.c (freadptr): Likewise.
7611         * lib/freadseek.c (freadptrinc): Likewise.
7612         * lib/fseeko.c (rpl_fseeko): Likewise.
7613         * lib/fseterr.c (fseterr): Likewise.
7614         * lib/fwritable.c (fwritable): Likewise.
7615         * lib/fwriting.c (fwriting): Likewise.
7616         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7617         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7618
7619 2011-07-31  Bruno Haible  <bruno@clisp.org>
7620
7621         errno: Port to Minix.
7622         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7623         ECONNABORTED are defined.
7624         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7625         GNULIB_defined_ECONNABORTED): New macros.
7626         * lib/strerror-override.h (strerror_override): Test also
7627         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7628         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7629         ECONNABORTED.
7630         * doc/posix-headers/errno.texi: Mention the Minix problem.
7631
7632 2011-07-31  Bruno Haible  <bruno@clisp.org>
7633
7634         Work around declaration collisions on Minix.
7635         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7636         defined, set REPLACE_MBSINIT.
7637         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7638         defined, set REPLACE_MBRTOWC.
7639         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7640         set REPLACE_MBRLEN.
7641         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7642         defined, set REPLACE_MBSRTOWCS.
7643         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7644         defined, set REPLACE_WCRTOMB.
7645         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7646         defined, set REPLACE_WCSRTOMBS.
7647
7648 2011-07-31  Bruno Haible  <bruno@clisp.org>
7649
7650         Add support for Minix with ACK compiler.
7651         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7652         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7653         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7654
7655 2011-07-31  Bruno Haible  <bruno@clisp.org>
7656
7657         Documentation about Minix.
7658         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7659         * doc/glibc-headers/*.texi: Likewise.
7660         * doc/posix-functions/*.texi: Likewise.
7661         * doc/glibc-functions/*.texi: Likewise.
7662
7663 2011-07-31  Bruno Haible  <bruno@clisp.org>
7664
7665         snippet/warn-on-use: Fix indentation.
7666         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7667
7668 2011-07-25  Jim Meyering  <meyering@redhat.com>
7669
7670         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7671         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7672         commands.
7673
7674 2011-07-27  Jim Meyering  <meyering@redhat.com>
7675
7676         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7677         * top/maint.mk (gl_extract_significant_defines_): Now that
7678         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7679         gnulib/lib/signal.in.h, and now that we recommend to
7680         define-if-undefined those two symbols in application code,
7681         we must filter them out of the "significant" list.
7682         This avoids a "make syntax-check" failure in coreutils.
7683
7684 2011-07-26  Eric Blake  <eblake@redhat.com>
7685
7686         warnings: add comments about previous patch
7687         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7688         * m4/include_next.m4: Likewise.
7689         * m4/warn-on-use.m4: Likewise.
7690         * m4/warnings.m4: Likewise, and simplify use.
7691         Suggested by Stefano Lattarini.
7692
7693         include-next, warnings: support older autoconf
7694         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7695         AS_VAR_PUSHDEF in a way that works with older autoconf.
7696         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7697         Reported by Daniel P. Berrange.
7698
7699 2011-07-25  Bruno Haible  <bruno@clisp.org>
7700
7701         fseek, ftell: Fix doc.
7702         * doc/posix-functions/fseek.texi: Reword statement about
7703         AC_SYS_LARGEFILE.
7704         * doc/posix-functions/ftell.texi: Likewise.
7705
7706 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7707             Bruno Haible  <bruno@clisp.org>
7708
7709         Add dependencies to the 'largefile' module.
7710         * modules/fopen (Depends-on): Add 'largefile'.
7711         * modules/freopen (Depends-on): Likewise.
7712         * modules/fseeko (Depends-on): Likewise.
7713         * modules/ftello (Depends-on): Likewise.
7714         * modules/glob (Depends-on): Likewise.
7715         * modules/lseek (Depends-on): Likewise.
7716         * modules/lstat (Depends-on): Likewise.
7717         * modules/mkostemp (Depends-on): Likewise.
7718         * modules/mkostemps (Depends-on): Likewise.
7719         * modules/mkstemp (Depends-on): Likewise.
7720         * modules/mkstemps (Depends-on): Likewise.
7721         * modules/open (Depends-on): Likewise.
7722         * modules/openat (Depends-on): Likewise.
7723         * modules/pread (Depends-on): Likewise.
7724         * modules/pwrite (Depends-on): Likewise.
7725         * modules/scandir (Depends-on): Likewise.
7726         * modules/stat (Depends-on): Likewise.
7727         * modules/tmpfile (Depends-on): Likewise.
7728         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7729         since the containing module now depends on the largefile module.
7730         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7731         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7732         off_t is fixed by gnulib.
7733         * doc/posix-functions/freopen.texi: Likewise.
7734         * doc/posix-functions/fseeko.texi: Likewise.
7735         * doc/posix-functions/fstatat.texi: Likewise.
7736         * doc/posix-functions/ftello.texi: Likewise.
7737         * doc/posix-functions/glob.texi: Likewise.
7738         * doc/posix-functions/lseek.texi: Likewise.
7739         * doc/posix-functions/lstat.texi: Likewise.
7740         * doc/posix-functions/mkstemp.texi: Likewise.
7741         * doc/posix-functions/open.texi: Likewise.
7742         * doc/posix-functions/openat.texi: Likewise.
7743         * doc/posix-functions/pread.texi: Likewise.
7744         * doc/posix-functions/pwrite.texi: Likewise.
7745         * doc/posix-functions/scandir.texi: Likewise.
7746         * doc/posix-functions/stat.texi: Likewise.
7747         * doc/posix-functions/tmpfile.texi: Likewise.
7748         * doc/glibc-functions/mkostemp.texi: Likewise.
7749         * doc/glibc-functions/mkostemps.texi: Likewise.
7750         * doc/glibc-functions/mkstemps.texi: Likewise.
7751
7752 2011-07-25  Bruno Haible  <bruno@clisp.org>
7753
7754         fcntl: Move AC_LIBOBJ invocation to module description.
7755         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7756         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7757
7758         fcntl: Remove call-in from fchdir.m4.
7759         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7760         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7761
7762         dup3: Remove potential call-in from fchdir.m4.
7763         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7764         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7765
7766         dup2: Move AC_LIBOBJ invocation to module description.
7767         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7768         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7769         Don't invoke AC_LIBOBJ.
7770         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7771
7772         dup2: Remove call-in from fchdir.m4.
7773         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7774         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7775
7776         fclose: Move AC_LIBOBJ invocation to module description.
7777         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7778         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7779         to 1.
7780         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7781
7782         fclose: Remove call-in from close.m4.
7783         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7784         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7785
7786         close: Move AC_LIBOBJ invocation to module description.
7787         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7788         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7789         1.
7790         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7791
7792         close: Remove call-in from fchdir.m4.
7793         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7795
7796         open: Move AC_LIBOBJ invocation to module description.
7797         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7798         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7799         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7800
7801         open: Remove call-in from fchdir.m4.
7802         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7803         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7804
7805         fchdir: Start to remove gl_REPLACE_* idiom.
7806         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7807         (gl_FUNC_FCHDIR): Invoke it.
7808
7809 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7810
7811         * lib/ftell.c (ftell): Comment out cast.
7812
7813         close: use gl_REPLACE_FCLOSE only if defined
7814         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7815         is defined.  The close module doesn't depend on the fclose module
7816         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7817         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7818         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7819
7820 2011-07-24  Jim Meyering  <meyering@redhat.com>
7821
7822         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7823         * tests/test-select.h (test_function): Declare as "static".
7824
7825 2011-07-24  Bruno Haible  <bruno@clisp.org>
7826
7827         doc: Mention the effects of AC_SYS_LARGEFILE.
7828         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7829         on this function.
7830         * doc/posix-functions/aio_error.texi: Likewise.
7831         * doc/posix-functions/aio_fsync.texi: Likewise.
7832         * doc/posix-functions/aio_read.texi: Likewise.
7833         * doc/posix-functions/aio_return.texi: Likewise.
7834         * doc/posix-functions/aio_suspend.texi: Likewise.
7835         * doc/posix-functions/aio_write.texi: Likewise.
7836         * doc/posix-functions/fgetpos.texi: Likewise.
7837         * doc/posix-functions/fopen.texi: Likewise.
7838         * doc/posix-functions/freopen.texi: Likewise.
7839         * doc/posix-functions/fsetpos.texi: Likewise.
7840         * doc/posix-functions/fstatvfs.texi: Likewise.
7841         * doc/posix-functions/ftruncate.texi: Likewise.
7842         * doc/posix-functions/ftw.texi: Likewise.
7843         * doc/posix-functions/getrlimit.texi: Likewise.
7844         * doc/posix-functions/glob.texi: Likewise.
7845         * doc/posix-functions/lio_listio.texi: Likewise.
7846         * doc/posix-functions/lockf.texi: Likewise.
7847         * doc/posix-functions/mkstemp.texi: Likewise.
7848         * doc/posix-functions/mmap.texi: Likewise.
7849         * doc/posix-functions/nftw.texi: Likewise.
7850         * doc/posix-functions/openat.texi: Likewise.
7851         * doc/posix-functions/opendir.texi: Likewise.
7852         * doc/posix-functions/posix_fadvise.texi: Likewise.
7853         * doc/posix-functions/posix_fallocate.texi: Likewise.
7854         * doc/posix-functions/pread.texi: Likewise.
7855         * doc/posix-functions/pwrite.texi: Likewise.
7856         * doc/posix-functions/readdir.texi: Likewise.
7857         * doc/posix-functions/readdir_r.texi: Likewise.
7858         * doc/posix-functions/rewinddir.texi: Likewise.
7859         * doc/posix-functions/scandir.texi: Likewise.
7860         * doc/posix-functions/seekdir.texi: Likewise.
7861         * doc/posix-functions/setrlimit.texi: Likewise.
7862         * doc/posix-functions/statvfs.texi: Likewise.
7863         * doc/posix-functions/telldir.texi: Likewise.
7864         * doc/posix-functions/tmpfile.texi: Likewise.
7865         * doc/posix-functions/truncate.texi: Likewise.
7866         * doc/glibc-functions/fallocate.texi: Likewise.
7867         * doc/glibc-functions/fstatfs.texi: Likewise.
7868         * doc/glibc-functions/fts_children.texi: Likewise.
7869         * doc/glibc-functions/fts_read.texi: Likewise.
7870         * doc/glibc-functions/getdirentries.texi: Likewise.
7871         * doc/glibc-functions/mkostemp.texi: Likewise.
7872         * doc/glibc-functions/mkostemps.texi: Likewise.
7873         * doc/glibc-functions/mkstemps.texi: Likewise.
7874         * doc/glibc-functions/preadv.texi: Likewise.
7875         * doc/glibc-functions/pwritev.texi: Likewise.
7876         * doc/glibc-functions/sendfile.texi: Likewise.
7877         * doc/glibc-functions/statfs.texi: Likewise.
7878
7879 2011-07-24  Bruno Haible  <bruno@clisp.org>
7880
7881         doc: Fix typo.
7882         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7883
7884 2011-07-24  Bruno Haible  <bruno@clisp.org>
7885
7886         doc: Mention fsusage.
7887         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7888
7889 2011-07-24  Bruno Haible  <bruno@clisp.org>
7890
7891         doc: Mention new glibc headers and functions.
7892         * doc/glibc-headers/gshadow.texi: New file.
7893         * doc/glibc-functions/endsgent.texi: New file.
7894         * doc/glibc-functions/fgetsgent.texi: New file.
7895         * doc/glibc-functions/fgetsgent_r.texi: New file.
7896         * doc/glibc-functions/getsgent.texi: New file.
7897         * doc/glibc-functions/getsgent_r.texi: New file.
7898         * doc/glibc-functions/getsgnam.texi: New file.
7899         * doc/glibc-functions/getsgnam_r.texi: New file.
7900         * doc/glibc-functions/putsgent.texi: New file.
7901         * doc/glibc-functions/setsgent.texi: New file.
7902         * doc/glibc-functions/sgetsgent.texi: New file.
7903         * doc/glibc-functions/sgetsgent_r.texi: New file.
7904         * doc/glibc-functions/malloc_info.texi: New file.
7905         * doc/glibc-functions/preadv.texi: New file.
7906         * doc/glibc-functions/pwritev.texi: New file.
7907         * doc/glibc-functions/register_printf_modifier.texi: New file.
7908         * doc/glibc-functions/register_printf_specifier.texi: New file.
7909         * doc/glibc-functions/register_printf_type.texi: New file.
7910         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7911         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7912         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7913         * doc/glibc-functions/pthread_getname_np.texi: New file.
7914         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7915         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7916         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7917         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7918         * doc/glibc-functions/pthread_setname_np.texi: New file.
7919         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7920         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7921         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7922         * doc/glibc-functions/qsort_r.texi: New file.
7923         * doc/glibc-functions/quick_exit.texi: New file.
7924         * doc/glibc-functions/syncfs.texi: New file.
7925         * doc/gnulib.texi: Include them.
7926         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7927         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7928         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7929         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7930         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7931         * doc/glibc-functions/execvpe.texi: Likewise.
7932
7933 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7934
7935         ftell: don't include <unistd.h>
7936         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7937         guaranteed to define off_t, and the ftell module depends on the
7938         stdio module.
7939
7940         ftell: do not assume wraparound signed arithmetic
7941         * lib/ftell.c: Include <limits.h>.
7942         (ftell): Don't assume wraparound signed arithmetic.
7943
7944 2011-07-24  Bruno Haible  <bruno@clisp.org>
7945
7946         close: No longer depend on module 'fclose'.
7947         * modules/close (Depends-on): Remove fclose.
7948         * NEWS: Mention the change.
7949         Suggested by Sam Steingold <sds@gnu.org>.
7950
7951 2011-07-24  Bruno Haible  <bruno@clisp.org>
7952
7953         fsusage: Enable large volume support on AIX >= 5.2.
7954         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7955         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7956         instead of STAT_STATVFS.
7957         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7958
7959         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7961         f_blocks field only on MacOS X.
7962
7963         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7964         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7965         * modules/fsusage (Depends-on): Add largefile.
7966
7967 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7968
7969         * README: Modernize discussion of signed integers.
7970         Assuming overflow wraparound is no longer safe.
7971         Mention ones' complement and signed magnitude.
7972
7973 2011-07-22  Bruno Haible  <bruno@clisp.org>
7974
7975         select tests, pselect tests: Refactor.
7976         * tests/test-select.h: New file, extracted from tests/test-select.c.
7977         (select_fn): New type.
7978         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7979         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7980         test_pipe): Add my_select argument.
7981         (test_function): Renamed from main. Add my_select argument.
7982         * tests/test-select.c: Move most code to tests/test-select.h. Include
7983         test-select.h.
7984         * modules/select-tests (Files): Add tests/test-select.h.
7985         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7986         (my_select, main): New functions.
7987         * modules/pselect-tests (Files): Add tests/test-select.h,
7988         tests/macros.h, tests/signature.h.
7989         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7990         (configure.ac): Check for <sys/wait.h>.
7991
7992 2011-07-22  Bruno Haible  <bruno@clisp.org>
7993
7994         sys_select tests: Check the signature of FD_*.
7995         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7996         signature tests from here...
7997         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7998         here.
7999         * modules/sys_select-tests (Files): Add tests/signature.h.
8000
8001 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8002
8003         largefile: new module, replacing large-inode
8004         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
8005         * MODULES.html.sh: Add largefile, remove large-inode.
8006         * modules/largefile, m4/largefile.m4: New files.
8007         * modules/large-inode, m4/large-inode.m4: Remove.
8008
8009         fsusage: port to MacOS X 10.7 with 4 TiB file systems
8010         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
8011         implementations that use only 32 bits to count blocks.
8012         On typical hosts with 1024-byte blocks, this fails with file
8013         systems as small as 4 TiB.  Problem reported by Herb Wartens
8014         <http://debbugs.gnu.org/9140> and this should also fix a similar
8015         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8016
8017         large-inode: New module
8018         * MODULES.html.sh: Add it.
8019         * modules/large-inode, m4/large-inode.m4: New files.
8020
8021         extensions: Enable extensions on MacOS X 10.5 and later.
8022         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8023
8024 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8025
8026         file-has-acl: use acl_extended_file_nofollow if available
8027         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8028         (acl_extended_file): New macro.
8029         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8030         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8031
8032 2011-07-21  Bruno Haible  <bruno@clisp.org>
8033
8034         Declare system functions in a way that works with C++.
8035         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8036         declare fdopendir as extern "C".
8037         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8038         declare frexpl as extern "C".
8039         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8040         declare gai_strerror as extern "C".
8041         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8042         programs, declare gai_strerror as extern "C".
8043         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8044         declare getlogin_r as extern "C".
8045         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8046         as extern "C".
8047         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8048         declare ldexpl as extern "C".
8049         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8050         as extern "C".
8051         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8052         program, declare getmntinfo as extern "C".
8053         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8054         stpncpy as extern "C".
8055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8056         program, declare __xpg_strerror_r as extern "C".
8057         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8058         strndup as extern "C".
8059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8060         declare memset and bzero as extern "C".
8061         Reported by Sam Steingold <sds@gnu.org>.
8062
8063 2011-07-12  Jim Meyering  <meyering@redhat.com>
8064
8065         maint.mk: prohibit inclusion of "verify.h" without use
8066         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8067
8068 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8069
8070         timer-time: A new module to check for timer_settime()
8071         * m4/timer_time.m4: Check for the posix function.
8072         * modules/timer-time: Add the new module.
8073         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8074         Mention it.
8075
8076 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8077             Bruno Haible  <bruno@clisp.org>
8078
8079         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8080         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8081         not defined, assume POSIX threads and look for pthread_sigmask in
8082         $LIBS, without changing $CPPFLAGS.
8083
8084 2011-07-19  Bruno Haible  <bruno@clisp.org>
8085
8086         strstr: Update cross-compilation guess.
8087         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8088         CPUs, guess no, in view of glibc
8089         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8090         Suggested by Eric Blake. Reported by Reuben Thomas.
8091
8092 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8093
8094         getopt-gnu: suppress core dumps from detection code
8095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8096         to suppress core dumps that may well occur on glibc systems.
8097         * modules/getopt-gnu: Depend on nocrash.
8098
8099 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8100
8101         pthread_sigmask: ensure usleep is declared
8102         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8103         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8104
8105 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8106
8107         doc: Document NonStop portability issues.
8108         * doc/posix-functions/sigaction.texi (sigaction):
8109         * doc/posix-headers/signal.texi (signal.h):
8110         Document NonStop.  See Joachim Schmitz in
8111         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8112
8113 2011-07-15  Bruno Haible  <bruno@clisp.org>
8114
8115         ffsl, ffsll: Avoid unportable behaviour.
8116         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8117
8118 2011-07-15  Bruno Haible  <bruno@clisp.org>
8119
8120         ffs: More tests.
8121         * tests/test-ffs.c (NBITS): New macro.
8122         (main): Add more tests.
8123         * tests/test-ffsl.c (NBITS): New macro.
8124         (main): Add more tests.
8125         * tests/test-ffsll.c (NBITS): New macro.
8126         (main): Add more tests.
8127
8128 2011-07-15  Eric Blake  <eblake@redhat.com>
8129
8130         ffsl, ffsll: new modules
8131         * modules/ffsl: New file.
8132         * modules/ffsll: Likewise.
8133         * m4/ffsl.m4: Likewise.
8134         * m4/ffsll.m4: Likewise.
8135         * lib/ffsl.c: Likewise.
8136         * lib/ffsl.h: Likewise.
8137         * lib/ffsll.c: Likewise.
8138         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8139         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8140         * modules/string (Makefile.am): Substitute witnesses.
8141         * lib/strings.in.h (ffsl, ffsll): Declare.
8142         * modules/ffsl-tests: New test file.
8143         * modules/ffsll-tests: Likewise.
8144         * tests/test-ffsl.c: Likewise.
8145         * tests/test-ffsll.c: Likewise.
8146         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8147         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8148         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8149
8150         ffs: fix m4 prerequisite
8151         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8152
8153         ffs: avoid undefined behavior
8154         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8155         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8156         Reported by Bruno Haible.
8157
8158 2011-07-12  Bruno Haible  <bruno@clisp.org>
8159
8160         pthread_sigmask: Rely on module 'threadlib'.
8161         * modules/pthread_sigmask (Depends-on): Add threadlib.
8162         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8163         is defined.
8164
8165 2011-07-12  Bruno Haible  <bruno@clisp.org>
8166
8167         regex: Depend on module 'strcase'.
8168         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8169
8170 2011-07-12  Jim Meyering  <meyering@redhat.com>
8171
8172         warn-on-use: fix typo in file name
8173         * modules/snippet/warn-on-use (Files): Correct file name:
8174         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8175
8176 2011-07-12  Bruno Haible  <bruno@clisp.org>
8177
8178         strings: Document module.
8179         * doc/posix-headers/strings.texi: Mention module 'strings'.
8180
8181 2011-07-12  Bruno Haible  <bruno@clisp.org>
8182
8183         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8184         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8185         (Files, Makefile.am): Update.
8186         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8187         * modules/stdlib (Depends-on): Update.
8188
8189 2011-07-12  Bruno Haible  <bruno@clisp.org>
8190
8191         * NEWS: Mention the changes.
8192
8193         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8194         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8195         (Files, Makefile.am): Update.
8196         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8197         * modules/arpa_inet (Depends-on): Update.
8198         * modules/ctype (Depends-on): Update.
8199         * modules/dirent (Depends-on): Update.
8200         * modules/fcntl-h (Depends-on): Update.
8201         * modules/glob (Depends-on): Update.
8202         * modules/iconv-h (Depends-on): Update.
8203         * modules/inttypes-incomplete (Depends-on): Update.
8204         * modules/langinfo (Depends-on): Update.
8205         * modules/locale (Depends-on): Update.
8206         * modules/math (Depends-on): Update.
8207         * modules/netdb (Depends-on): Update.
8208         * modules/poll-h (Depends-on): Update.
8209         * modules/pty (Depends-on): Update.
8210         * modules/search (Depends-on): Update.
8211         * modules/signal (Depends-on): Update.
8212         * modules/spawn (Depends-on): Update.
8213         * modules/stdio (Depends-on): Update.
8214         * modules/stdlib (Depends-on): Update.
8215         * modules/string (Depends-on): Update.
8216         * modules/strings (Depends-on): Update.
8217         * modules/sys_file (Depends-on): Update.
8218         * modules/sys_ioctl (Depends-on): Update.
8219         * modules/sys_select (Depends-on): Update.
8220         * modules/sys_socket (Depends-on): Update.
8221         * modules/sys_stat (Depends-on): Update.
8222         * modules/sys_time (Depends-on): Update.
8223         * modules/sys_times (Depends-on): Update.
8224         * modules/sys_utsname (Depends-on): Update.
8225         * modules/sys_wait (Depends-on): Update.
8226         * modules/termios (Depends-on): Update.
8227         * modules/time (Depends-on): Update.
8228         * modules/unistd (Depends-on): Update.
8229         * modules/wchar (Depends-on): Update.
8230         * modules/wctype-h (Depends-on): Update.
8231         * MODULES.html.sh (Support for building libraries and executables):
8232         Update.
8233
8234         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8235         * modules/snippet/unused-parameter: Renamed from
8236         modules/unused-parameter.
8237         (Files, Makefile.am): Update.
8238         * build-aux/snippet/unused-parameter.h: Renamed from
8239         build-aux/unused-parameter.h.
8240         * modules/selinux-h (Depends-on): Update.
8241         * modules/unistr/base (Depends-on): Update.
8242         * MODULES.html.sh (Core language properties): Update.
8243
8244         Rename module 'link-warning' to 'snippet/link-warning'.
8245         * modules/snippet/link-warning: Renamed from modules/link-warning.
8246         (Files, Makefile.am): Update.
8247         * build-aux/snippet/link-warning.h: Renamed from
8248         build-aux/link-warning.h.
8249         * MODULES.html.sh (Support for building libraries and executables):
8250         Update.
8251
8252         Rename module 'c++defs' to 'snippet/c++defs'.
8253         * modules/snippet/c++defs: Renamed from modules/c++defs.
8254         (Files, Makefile.am): Update.
8255         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8256         * modules/arpa_inet (Depends-on): Update.
8257         * modules/ctype (Depends-on): Update.
8258         * modules/dirent (Depends-on): Update.
8259         * modules/fcntl-h (Depends-on): Update.
8260         * modules/glob (Depends-on): Update.
8261         * modules/iconv-h (Depends-on): Update.
8262         * modules/langinfo (Depends-on): Update.
8263         * modules/locale (Depends-on): Update.
8264         * modules/math (Depends-on): Update.
8265         * modules/netdb (Depends-on): Update.
8266         * modules/poll-h (Depends-on): Update.
8267         * modules/pty (Depends-on): Update.
8268         * modules/search (Depends-on): Update.
8269         * modules/signal (Depends-on): Update.
8270         * modules/spawn (Depends-on): Update.
8271         * modules/stdio (Depends-on): Update.
8272         * modules/stdlib (Depends-on): Update.
8273         * modules/string (Depends-on): Update.
8274         * modules/strings (Depends-on): Update.
8275         * modules/sys_ioctl (Depends-on): Update.
8276         * modules/sys_select (Depends-on): Update.
8277         * modules/sys_socket (Depends-on): Update.
8278         * modules/sys_stat (Depends-on): Update.
8279         * modules/sys_time (Depends-on): Update.
8280         * modules/sys_wait (Depends-on): Update.
8281         * modules/termios (Depends-on): Update.
8282         * modules/time (Depends-on): Update.
8283         * modules/unistd (Depends-on): Update.
8284         * modules/wchar (Depends-on): Update.
8285         * modules/wctype-h (Depends-on): Update.
8286
8287         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8288         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8289         (Files, Makefile.am): Update.
8290         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8291         * modules/argv-iter (Depends-on): Update.
8292         * modules/arpa_inet (Depends-on): Update.
8293         * modules/dirent (Depends-on): Update.
8294         * modules/fcntl-h (Depends-on): Update.
8295         * modules/fnmatch (Depends-on): Update.
8296         * modules/getopt-posix (Depends-on): Update.
8297         * modules/glob (Depends-on): Update.
8298         * modules/iconv-h (Depends-on): Update.
8299         * modules/inttypes-incomplete (Depends-on): Update.
8300         * modules/locale (Depends-on): Update.
8301         * modules/math (Depends-on): Update.
8302         * modules/netdb (Depends-on): Update.
8303         * modules/search (Depends-on): Update.
8304         * modules/signal (Depends-on): Update.
8305         * modules/spawn (Depends-on): Update.
8306         * modules/stdio (Depends-on): Update.
8307         * modules/stdlib (Depends-on): Update.
8308         * modules/string (Depends-on): Update.
8309         * modules/strings (Depends-on): Update.
8310         * modules/sys_socket (Depends-on): Update.
8311         * modules/sys_stat (Depends-on): Update.
8312         * modules/sys_time (Depends-on): Update.
8313         * modules/sys_times (Depends-on): Update.
8314         * modules/sys_utsname (Depends-on): Update.
8315         * modules/time (Depends-on): Update.
8316         * modules/unistd (Depends-on): Update.
8317         * modules/wchar (Depends-on): Update.
8318         * MODULES.html.sh (Support for building libraries and executables):
8319         Update.
8320
8321 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8322
8323         Improvements on _Noreturn and related modules.
8324
8325         modules/_Exit-tests: test _Noreturn too
8326         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8327         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8328         (main): Use them.
8329
8330         stdnoreturn, stdnoreturn-tests: remove modules
8331         They're not needed here and a bit premature for use elsewhere.  See
8332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8333         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8334         * tests/test-stdnoreturn.c: Remove files.
8335         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8336         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8337         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8338         and using noreturn.
8339         * modules/openat, modules/sigpipe-die, modules/xalloc:
8340         * modules/xmemdup0, modules/xstrtol:
8341         Remove dependency on stdnoreturn.
8342
8343         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8344         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8345         Reparenthesize to avoid GCC warning.
8346         Support Microsoft's syntax.
8347         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8348
8349         _Noreturn-tests: remove module
8350         * modules/_Noreturn-tests: Remove.
8351         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8352         * tests/test-_Noreturn.c: Remove.
8353         * tests/test-stdnoreturn.c: Merge from the old
8354         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8355
8356 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8357
8358         _Noreturn, stdnoreturn, and related modules.
8359
8360         * top/maint.mk: Adjust to new noreturn support.
8361         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8362         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8363
8364         xalloc: use stdnoreturn.h
8365         * lib/xalloc.h: Include <stdnoreturn.h>.
8366         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8367         * modules/xalloc (Depends-on): Add stdnoreturn.
8368
8369         xstrtol: use stdnoreturn.h
8370         * lib/xstrtol.h: Include <stdnoreturn.h>.
8371         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8372         * modules/xstrtol (Depends-on): Add stdnoreturn.
8373
8374         xmemdup0: use stdnoreturn.h
8375         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8376         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8377         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8378
8379         sigpipe-die: use stdnoreturn.h
8380         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8381         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8382         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8383
8384         openat: use stdnoreturn.h
8385         * lib/openat.h: Include <stdnoreturn.h>.
8386         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8387         * modules/openat (Depends-on): Add stdnoreturn.
8388
8389         * lib/openat-die.c (openat_save_fail): Modernize comment.
8390
8391         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8392
8393         * lib/glthread/thread.h: Modernize comment.
8394
8395         obstack: use _Noreturn
8396         * lib/obstack.c (__attribute__): Remove macro.
8397         (print_and_abort): Use _Noreturn.
8398
8399         c-stack: use _Noreturn
8400         * lib/c-stack.c (die, overflow_handler, segv_handler):
8401         Use _Noreturn rather than __attribute__((noreturn)).
8402
8403         argmatch-tests, exclude_tests: use _Noreturn
8404         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8405         Remove.
8406         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8407
8408         stdlib: use _Noreturn
8409         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8410         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8411         * modules/stdlib (Depends-on): Add _Noreturn.
8412         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8413
8414         stdnoreturn-tests: new module
8415         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8416
8417         stdnoreturn: new module
8418         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8419         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8420
8421         _Noreturn-tests: new module
8422         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8423
8424         _Noreturn: new module
8425         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8426         New section, mentioning it.
8427         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8428
8429         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8430
8431 2011-07-11  Eric Blake  <eblake@redhat.com>
8432
8433         ffs: new module
8434         * modules/ffs: New file.
8435         * m4/ffs.m4: Likewise.
8436         * lib/ffs.c: Likewise.
8437         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8438         * modules/strings (Makefile.am): Substitute witness.
8439         (Depends-on): Add c++defs.
8440         * lib/strings.in.h (ffs): Declare.
8441         * modules/ffs-tests: New test file.
8442         * tests/test-ffs.c: Test new module.
8443         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8444         * doc/posix-functions/ffs.texi (ffs): Likewise.
8445
8446         regex: avoid compiler warning
8447         * lib/regex.c (includes): Include <strings.h>, for use of
8448         strcasecmp in regcomp.c.
8449         Reported by Joachim Schmitz.
8450
8451 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8452
8453         stdint: respect system's intmax_t if INTMAX_MAX
8454         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8455         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8456         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8457         long but int64_t is long long, and where we will clash with the
8458         system intmax_t if we override it.  See
8459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8460         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8461         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8462         similarly for UINTMAX_C.
8463
8464 2011-07-08  Bruno Haible  <bruno@clisp.org>
8465
8466         pthread_sigmask tests: Avoid a compiler warning.
8467         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8468         non-zero.
8469
8470         sigprocmask tests: A better way to avoid a compiler warning.
8471         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8472         (main): Complain if system() returns non-zero.
8473         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8474
8475 2011-07-08  Bruno Haible  <bruno@clisp.org>
8476
8477         pthread_sigmask: Work around IRIX bug.
8478         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8479         bug.
8480         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8481         there may be unblocked pending signals.
8482         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8483
8484 2011-07-08  Bruno Haible  <bruno@clisp.org>
8485
8486         pthread_sigmask: Work around Cygwin bug.
8487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8488         bug.
8489         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8490         the system's pthread_sigmask function.
8491         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8492
8493 2011-07-08  Bruno Haible  <bruno@clisp.org>
8494
8495         pthread_sigmask: Work around bug in single-threaded implementation.
8496         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8497         FreeBSD, HP-UX, Solaris bug.
8498         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8499         * lib/pthread_sigmask.c: Include <stddef.h>.
8500         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8501         the system's pthread_sigmask function.
8502         * modules/pthread_sigmask (configure.ac): Invoke
8503         gl_PREREQ_PTHREAD_SIGMASK.
8504         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8505         HP-UX, Solaris.
8506
8507 2011-07-08  Eric Blake  <eblake@redhat.com>
8508
8509         test-sigprocmask: avoid compiler warning
8510         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8511         * tests/test-sigprocmask.c (main): Use it to silence warning.
8512         Reported by Jim Meyering.
8513
8514         test-snprintf: avoid compiler warning
8515         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8516         * tests/test-vsnprintf.c (main): Likewise.
8517         Reported by Jim Meyering.
8518
8519 2011-07-08  Bruno Haible  <bruno@clisp.org>
8520
8521         Tests for module 'pthread_sigmask'.
8522         * modules/pthread_sigmask-tests: New file.
8523         * tests/test-pthread_sigmask1.c: New file, based on
8524         tests/test-sigprocmask.c.
8525         * tests/test-pthread_sigmask2.c: New file.
8526
8527 2011-07-08  Jim Meyering  <meyering@redhat.com>
8528
8529         test-getopt.h: avoid warning about an unused variable
8530         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8531
8532 2011-07-07  Jim Meyering  <meyering@redhat.com>
8533
8534         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8535         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8536         now that it no longer contains leading TABs.
8537         Remove unused "url=FIXME" statement.
8538
8539 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8540
8541         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8542         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8543         When gl_THREADLIB is not in use, assume that the POSIX sematics
8544         are desired.  This is better for Emacs, which uses POSIX semantics
8545         on GNUish and/or POSIXish platforms, and does not use threads at
8546         all otherwise.
8547
8548         pthread_sigmask: fix typo when testing for libraries
8549         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8550         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8551
8552 2011-07-08  Eric Blake  <eblake@redhat.com>
8553
8554         fts: introduce FTS_NOATIME
8555         * lib/fts_.h (FTS_NOATIME): New bit flag.
8556         (FTS_OPTIONMASK): Adjust.
8557         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8558         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8559
8560 2011-07-08  Bruno Haible  <bruno@clisp.org>
8561
8562         Tests for module 'thread'.
8563         * modules/thread-tests: New file.
8564         * tests/test-thread_self.c: New file.
8565         * tests/test-thread_create.cc: New file.
8566
8567 2011-07-08  Bruno Haible  <bruno@clisp.org>
8568
8569         thread: Avoid gcc warnings when using gl_thread_self().
8570         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8571         'void *'.
8572         (gl_thread_self_pointer): Update.
8573
8574 2011-07-07  Bruno Haible  <bruno@clisp.org>
8575
8576         signal-c++-tests: Check declaration of pthread_sigmask.
8577         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8578         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8579         $(LIB_PTHREAD_SIGMASK).
8580
8581 2011-07-07  Bruno Haible  <bruno@clisp.org>
8582
8583         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8584         * lib/signal.in.h (pthread_sigmask): Override if
8585         REPLACE_PTHREAD_SIGMASK is 1.
8586         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8587         REPLACE_PTHREAD_SIGMASK.
8588         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8589         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8590         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8591         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8592         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8593
8594 2011-07-07  Bruno Haible  <bruno@clisp.org>
8595
8596         pthread_sigmask: Ensure declaration in <signal.h>.
8597         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8598         include <pthread.h>.
8599         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8600         problem.
8601
8602 2011-07-07  Bruno Haible  <bruno@clisp.org>
8603
8604         pthread_sigmask: Document the module.
8605         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8606
8607 2011-07-07  Bruno Haible  <bruno@clisp.org>
8608
8609         pthread_sigmask: Follow gnulib conventions.
8610         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8611         gl_PTHREAD_SIGMASK.
8612         * modules/pthread_sigmask (configure.ac): Update.
8613
8614 2011-07-07  Bruno Haible  <bruno@clisp.org>
8615
8616         pthread_sigmask: Make declaration C++ safe.
8617         * lib/signal.in.h: In two special conditions, just do an #include_next.
8618         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8619         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8620         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8621         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8622         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8623         not REPLACE_PTHREAD_MASK.
8624         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8625         not REPLACE_PTHREAD_MASK.
8626         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8627
8628 2011-07-07  Bruno Haible  <bruno@clisp.org>
8629
8630         pthread_sigmask: Fix return value.
8631         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8632         * lib/pthread_sigmask.c: New file.
8633         * modules/pthread_sigmask (Files): Add it.
8634         (configure.ac): Invoke AC_LIBOBJ.
8635
8636 2011-07-07  Eric Blake  <eblake@redhat.com>
8637
8638         getopt: more portable argv creation
8639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8640         const, use char arrays rather than strings.
8641         Suggested by Paul Eggert.
8642
8643 2011-07-07  Bruno Haible  <bruno@clisp.org>
8644
8645         Tests for module 'sigprocmask'.
8646         * modules/sigprocmask-tests: New file.
8647         * tests/test-sigprocmask.c: New file.
8648
8649 2011-07-07  Bruno Haible  <bruno@clisp.org>
8650
8651         float tests: Tweak.
8652         * tests/test-float.c (main): Tweak skip message.
8653
8654 2011-07-07  Eric Blake  <eblake@redhat.com>
8655
8656         getopt: avoid compiler warning during configure
8657         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8658         assigning string literals to non-const pointer.
8659
8660         getopt-gnu: avoid crash in glibc getopt
8661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8662         * tests/test-getopt.h (test_getopt): Enhance test.
8663         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8664         * doc/posix-functions/getopt.texi (getopt): Document it.
8665         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8666         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8667         Likewise.
8668
8669 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8670
8671         getopt: handle W; without long options in getopt [BZ #12922]
8672         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8673         but no long options are defined, just return 'W'.
8674
8675 2011-07-07  Bruno Haible  <bruno@clisp.org>
8676
8677         Avoid literal tabs.
8678         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8679         variable containing a tab instead of a literal tab.
8680         Reported by Jim Meyering.
8681
8682 2011-07-07  Bruno Haible  <bruno@clisp.org>
8683
8684         Comments.
8685         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8686
8687 2011-07-06  Bruno Haible  <bruno@clisp.org>
8688
8689         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8690         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8691         <winsock2.h>.
8692         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8693         lib/sys_socket.in.h.
8694         (close, gethostname): Hide declarations from <winsock2.h>.
8695         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8696         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8697         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8698         (select): Don't override if gnulib's <sys/select.h> was already
8699         included.
8700         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8701         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8702         setsockopt, shutdown, select): Tweak indentation.
8703
8704 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8705
8706         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8707         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8708         in an application that does not use the sys_select module.
8709
8710 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8711
8712         poll: do not return 0 on timeout=-1
8713         * lib/poll.c: Loop with yield if no events occured
8714
8715 2011-07-06  Eric Blake  <eblake@redhat.com>
8716
8717         pthread_sigmask: always replace when not using pthread
8718         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8719         replacement when using some threading other than pthread.  Fix
8720         logic bug.
8721
8722 2011-07-06  Bruno Haible  <bruno@clisp.org>
8723
8724         Comments.
8725         * m4/printf.m4: Update comments about mingw.
8726
8727 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8728
8729         sys_select: define sigset_t more portably
8730         * lib/sys_select.in.h: Always include <sys/types.h>, since
8731         we now need sigset_t and mingw defines it there.
8732         Include <signal.h> before split inclusion guard, to avoid
8733         mishaps on Solaris, whose <signal.h> eventually includes us.
8734         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8735         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8736         which come from ...
8737         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8738         gl_CHECK_TYPE_SIGSET_T.
8739         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8740         does the real work.
8741         * modules/sys_select (Depends-on): Add 'signal'.
8742
8743         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8744         Suggested by Bruno Haible.
8745
8746         pselect: Use pthread_sigmask, not sigprocmask.
8747         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8748         multithreaded apps better than sigprocmask does.
8749         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8750         sigprocmask directly.
8751
8752 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8753
8754         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8755         Don't #undef,  since we don't need any underlying pselect.
8756         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8757         (Depends-on): Add select.
8758         (Link): Add $(LIBSOCKET).
8759         These changes suggested by Bruno Haible.
8760
8761         pselect: document better
8762         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8763         * doc/posix-functions/pselect.texi (pselect): Document new module.
8764
8765         pthread_sigmask: new module
8766         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8767         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8768         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8769         This is done only as a macro; I don't know how well that'll
8770         work for C++.  Move <sys/types.h> include before the include_next,
8771         to avoid mishap on Solaris.
8772         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8773         * modules/signal (Makefile.am): Substitute the check's results.
8774         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8775
8776         test-pselect: new module
8777         * modules/pselect-tests, tests/test-pselect.c: New files.
8778         * tests/test-select.c, tests/test-sys_select-c++.cc:
8779         If TEST_PSELECT is defined, test pselect instead of testing select.
8780
8781         * tests/test-sys_select.c (sigset_t): Test for it, too.
8782         Suggested by Bruno Haible.
8783
8784 2011-07-05  Eric Blake  <eblake@redhat.com>
8785
8786         snprintf: guarantee %1$d, for libintl
8787         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8788         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8789         * doc/posix-functions/snprintf.texi (snprintf): Update.
8790         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8791         * tests/test-snprintf.c (main): Enhance test.
8792         * tests/test-vsnprintf.c (main): Likewise.
8793
8794 2011-07-05  Jim Meyering  <meyering@redhat.com>
8795
8796         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8797         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8798         per Bruno's request, to accommodate this idiom (no space after "#")
8799         even when the function is inside an #if block:
8800         char *
8801         gets (char *s)
8802         #undef gets
8803         {
8804           ...
8805         }
8806
8807 2011-07-04  Jim Meyering  <meyering@redhat.com>
8808
8809         maint: indent with spaces, not TABs, and add a rule to check this
8810         * tests/test-userspec.c: Indent with spaces, not TABs.
8811         * tests/test-argp.c: Likewise.
8812         * tests/test-c-stack2.sh: Likewise.
8813         * tests/test-parse-duration.sh: Likewise
8814         * m4/strtod.m4: Likewise.
8815         * m4/alloca.m4: Likewise.
8816         * m4/pselect.m4: Likewise.
8817         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8818
8819 2011-07-03  Jim Meyering  <meyering@redhat.com>
8820
8821         maint.mk: correct omissions in prohibit_argmatch_without_use check
8822         This rule would mistakenly report that argmatch.h is included without
8823         use even when both the argmatch and invalid_arg macro were used.
8824         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8825         of argmatch and invalid_arg.
8826
8827 2011-07-03  Bruno Haible  <bruno@clisp.org>
8828
8829         Comments about EINTR.
8830         * lib/safe-read.h: Explain the purpose of this module.
8831         * lib/safe-write.h: Likewise.
8832         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8833         module.
8834         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8835         module.
8836         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8837
8838 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8839
8840         xnanosleep: Rewrite to use new dtotimespec module.
8841         It has the conversion code that used to be in xnanosleep.
8842         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8843         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8844         (TIME_T_MAX): Remove.
8845         (xnanosleep): Rewrite in terms of dtotimespec.
8846         * modules/xnanosleep (Depends-on): Add dtotimespec.
8847         Remove intprops, stdbool.
8848
8849         timespec-add, timespec-sub: new modules
8850         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8851         * lib/timespec-add.c, lib/timespec-sub.c:
8852         * modules/timespec-add, modules/timespec-sub: New files.
8853
8854         dtotimespec: new module
8855         * lib/timespec.h (dtotimespec): New decl.
8856         * lib/dtotimespec.c, modules/dtotimespec: New files.
8857
8858         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8859
8860         pselect: new module
8861         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8862         (pselect): New decls.
8863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8864         since the standard pselect decl uses 'restrict'.
8865         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8866         HAVE_PSELECT, REPLACE_PSELECT.
8867         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8868         HAVE_PSELECT, REPLACE_PSELECT.
8869         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8870
8871         sys_select: don't depend on sys_socket
8872         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8874         This fix works on GNU and GNU-like platforms, but has not been tested
8875         on native Windows.
8876         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8877         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8878         gl_HEADER_SYS_SOCKET.
8879         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8880         gl_PREREQ_SYS_H_WINSOCK2.
8881
8882 2011-06-29  Eric Blake  <eblake@redhat.com>
8883
8884         pipe2: fix C89 compile problem
8885         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8886         Reported by Bruno Haible.
8887
8888         pipe, pipe2: don't corrupt fd on error
8889         * lib/pipe.c (pipe): Leave fd unchanged on error.
8890         * lib/pipe2.c (pipe2): Likewise.
8891         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8892         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8893
8894 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8895
8896         mmap-anon: do not use regular expressions inadvertently
8897         * m4/mmap-anon.m4: Remove trailing period from strings sought
8898         in the output.
8899
8900 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8901
8902         nanosleep: fix integer overflow problem
8903         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8904         arithmetic wraps around on overflow.
8905
8906         nanosleep: simplify carrying
8907         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8908         first call to the underyling nanosleep, not for the last one.
8909         This doesn't fix any bugs, but it simplifies the computation of
8910         the remaining delay.  Found while auditing integer overflow issues.
8911
8912         dup2: remove test for existence of fcntl
8913         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8914         "#if HAVE_FCNTL", in the configure-time test program.
8915         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8916         and therefore speeds up "configure" a bit.  Found while
8917         adding the dup2 module to Emacs.
8918
8919 2011-06-24  Eric Blake  <eblake@redhat.com>
8920
8921         maint.mk: enhance useless header checks
8922         * top/maint.mk (_sc_header_without_use): Check both include
8923         styles.
8924         (sc_prohibit_assert_without_use)
8925         (sc_prohibit_close_stream_without_use)
8926         (sc_prohibit_getopt_without_use)
8927         (sc_prohibit_quotearg_without_use)
8928         (sc_prohibit_quote_without_use)
8929         (sc_prohibit_long_options_without_use)
8930         (sc_prohibit_inttostr_without_use)
8931         (sc_prohibit_ignore_value_without_use)
8932         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8933         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8934         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8935         (sc_prohibit_hash_pjw_without_use)
8936         (sc_prohibit_safe_read_without_use)
8937         (sc_prohibit_argmatch_without_use)
8938         (sc_prohibit_canonicalize_without_use)
8939         (sc_prohibit_root_dev_ino_without_use)
8940         (sc_prohibit_openat_without_use)
8941         (sc_prohibit_c_ctype_without_use)
8942         (sc_prohibit_signal_without_use)
8943         (sc_prohibit_stdio--_without_use)
8944         (sc_prohibit_stdio-safer_without_use)
8945         (sc_prohibit_strings_without_use)
8946         (sc_prohibit_intprops_without_use)
8947         (sc_prohibit_stddef_without_use)
8948         (sc_prohibit_xfreopen_without_use): Update clients.
8949
8950 2011-06-24  Jim Meyering  <meyering@redhat.com>
8951
8952         syntax-check: keep one maint.mk rule in sync with its header
8953         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8954         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8955         I prefer to avoid temporary files here, so use <(...), but that
8956         is not supported by /bin/sh, so...
8957         (SHELL): Define to /bin/bash.
8958
8959 2011-06-24  Eric Blake  <eblake@redhat.com>
8960
8961         maint.mk: update sc_prohibit_intprops_without_use
8962         * top/maint.mk (_intprops_names): Match recent changes.
8963
8964 2011-06-24  Bruno Haible  <bruno@clisp.org>
8965
8966         strerror-override: No-op tweak.
8967         * lib/strerror-override.h (strerror_override): Reorder conditions,
8968         for consistency with lib/strerror-override.c.
8969
8970 2011-06-23  Eric Blake  <eblake@redhat.com>
8971
8972         maint.mk: test further PATH_MAX issues
8973         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8974         (sc_prohibit_path_max_allocation): ...and also test alloca.
8975         Suggested by Jim Meyering.
8976
8977 2011-06-22  Eric Blake  <eblake@redhat.com>
8978
8979         maint.mk: add syntax-check to avoid char[PATH_MAX]
8980         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8981
8982         stat: be robust to PATH_MAX definition
8983         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8984         * modules/stat (Depends-on): Add verify.
8985
8986         link: work around IRIX bug
8987         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8988         * lib/link.c (rpl_link): Work around it.
8989         * tests/test-link.h (test_link): Enhance test.
8990         * doc/posix-functions/link.texi (link): Document the bug.
8991
8992         getopt: silence clang warning
8993         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8994         dereference.
8995         Reported by Gustavo Martin Domato.
8996
8997 2011-06-22  Jim Meyering  <meyering@redhat.com>
8998
8999         bootstrap: do not insert a blank line into each .gitignore file
9000         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
9001
9002 2011-06-21  Eric Blake  <eblake@redhat.com>
9003
9004         perror: test for output mismatch
9005         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
9006         perror on IRIX.
9007
9008         strerror_r: fix OpenBSD behavior on out-of-range
9009         * lib/strerror_r.c (strerror_r): Always use maximal string.
9010         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9011
9012         strerror_r: fix OpenBSD behavior on 0
9013         * lib/strerror-override.c (strerror_override): Also override 0
9014         when needed.
9015         * lib/strerror-override.h (strerror_override): Likewise.
9016         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9017         earlier.
9018         * lib/strerror_r.c (strerror_r): Likewise.
9019         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9020         behavior...
9021         (gl_FUNC_STRERROR_0): ...into new macro.
9022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9023         is overridden.
9024         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9025         * modules/strerror-override (Files): Add strerror.m4.
9026         (configure.ac): Also provide override for 0 when needed.
9027         * doc/posix-functions/strerror.texi (strerror): Document this.
9028         * doc/posix-functions/perror.texi (perror): Likewise.
9029
9030         perror: adjust array size
9031         * modules/perror (Depends-on): Add strerror-override.
9032         * lib/perror.c (perror): Use it to avoid magic number.
9033
9034         strerror-override: reduce size
9035         * lib/strerror-override.c (strerror_override): Use fewer lines.
9036
9037 2011-06-20  Bruno Haible  <bruno@clisp.org>
9038
9039         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9040         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9041
9042 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9043
9044         alloca: port to compilers that can optimize like GCC 4.6.0
9045         * lib/alloca.c (find_stack_direction): New signature, taken from
9046         Autoconf git.  This works with GCC 4.6.0.  This code should never
9047         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9048         be used with other compilers that optimize as well as GCC 4.6.0 does.
9049         (alloca): Adjust to new signature.
9050         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9051         New macro, which patches Autoconf in a similar way.
9052
9053         c-stack: stop worrying about stack direction
9054         * lib/c-stack.c (find_stack_direction): Remove.
9055         (segv_handler): Don't worry about stack direction growth, as it's
9056         too much of a pain to configure this correctly, given how compilers
9057         are optimizing-away our stack-growth detection code.  Instead, assume
9058         that any access to just before or just after the stack is OK.
9059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9060         Don't require AC_FUNC_ALLOCA; no longer needed.
9061
9062 2011-06-20  Eric Blake  <eblake@redhat.com>
9063
9064         test-stat: don't allocate PATH_MAX bytes
9065         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9066         PATH_MAX-sized buffer.
9067         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9068         * modules/stat-tests (Depends-on): Likewise.
9069         * tests/test-fstatat.c (includes): Drop pathmax.h.
9070         * tests/test-stat.c (includes): Likewise.
9071         Reported by Bruno Haible.
9072
9073 2011-06-20  Bruno Haible  <bruno@clisp.org>
9074
9075         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9076         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9077         * lib/float.c: New file.
9078         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9079         REPLACE_FLOAT_LDBL.
9080         * modules/float (Files): Add lib/float.c.
9081         (configure.ac): Invoke AC_LIBOBJ.
9082         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9083
9084 2011-06-20  Bruno Haible  <bruno@clisp.org>
9085
9086         Tests for module 'float'.
9087         * modules/float-tests: New file.
9088         * tests/test-float.c: New file.
9089
9090 2011-06-19  Bruno Haible  <bruno@clisp.org>
9091
9092         isinf: Coding style.
9093         * lib/isinf.c: Use GNU coding style.
9094
9095 2011-06-19  Bruno Haible  <bruno@clisp.org>
9096
9097         linkat test: Avoid test failure on AIX 7.1.
9098         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9099         * tests/test-link.h (test_link): Likewise.
9100
9101 2011-06-19  Bruno Haible  <bruno@clisp.org>
9102
9103         pread test: Avoid test failure on OpenBSD 4.9.
9104         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9105
9106 2011-06-19  Bruno Haible  <bruno@clisp.org>
9107
9108         sprintf-posix: Fix test failure on AIX 7.1.
9109         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9110         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9111         on AIX.
9112         * doc/posix-functions/fprintf.texi: Likewise.
9113         * doc/posix-functions/printf.texi: Likewise.
9114         * doc/posix-functions/snprintf.texi: Likewise.
9115         * doc/posix-functions/sprintf.texi: Likewise.
9116         * doc/posix-functions/vdprintf.texi: Likewise.
9117         * doc/posix-functions/vfprintf.texi: Likewise.
9118         * doc/posix-functions/vprintf.texi: Likewise.
9119         * doc/posix-functions/vsnprintf.texi: Likewise.
9120         * doc/posix-functions/vsprintf.texi: Likewise.
9121
9122 2011-06-19  Bruno Haible  <bruno@clisp.org>
9123
9124         roundl-ieee: Fix test failure on AIX 7.1.
9125         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9126         * doc/posix-functions/roundl.texi: Mention problem with negative
9127         arguments.
9128
9129 2011-06-19  Bruno Haible  <bruno@clisp.org>
9130
9131         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9132         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9133         * doc/posix-functions/round.texi: Mention problem with negative
9134         arguments.
9135         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9136
9137 2011-06-19  Bruno Haible  <bruno@clisp.org>
9138
9139         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9140         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9141         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9142         * doc/posix-functions/roundf.texi: Mention problem with negative
9143         arguments.
9144         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9145
9146 2011-06-19  Bruno Haible  <bruno@clisp.org>
9147
9148         ceilf-ieee: Work around bug on MacOS X 10.5.
9149         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9150
9151         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9152         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9153         IEEE compliant, avoid compiler optimizations.
9154         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9155         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9156         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9157         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9158         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9159         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9161         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9162         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9163         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9164
9165 2011-06-19  Bruno Haible  <bruno@clisp.org>
9166
9167         ceilf-ieee: Work around bug on AIX 7.1.
9168         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9169         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9170
9171 2011-06-19  Bruno Haible  <bruno@clisp.org>
9172
9173         ceil-ieee: Work around bug on AIX 7.1.
9174         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9175         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9176
9177 2011-06-18  Bruno Haible  <bruno@clisp.org>
9178
9179         fsync test: Avoid test failure on MacOS X and AIX.
9180         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9181         EINVAL.
9182
9183 2011-06-18  Bruno Haible  <bruno@clisp.org>
9184
9185         openat, fdopendir tests: Fix link errors.
9186         * modules/openat-tests (Depends-on): Add progname.
9187         * modules/fdopendir-tests (Depends-on): Likewise.
9188         * tests/test-fchownat.c: Include progname.h.
9189         (main): Call set_program_name.
9190         * tests/test-fstatat.c: Include progname.h.
9191         (main): Call set_program_name.
9192         * tests/test-mkdirat.c: Include progname.h.
9193         (main): Call set_program_name.
9194         * tests/test-openat.c: Include progname.h.
9195         (main): Call set_program_name.
9196         * tests/test-unlinkat.c: Include progname.h.
9197         (main): Call set_program_name.
9198         * tests/test-fdopendir.c: Include progname.h.
9199         (main): Call set_program_name.
9200
9201 2011-06-18  Bruno Haible  <bruno@clisp.org>
9202
9203         Doc update.
9204         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9205         HP-UX.
9206         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9207
9208 2011-06-18  Bruno Haible  <bruno@clisp.org>
9209
9210         getcwd tests: Avoid compilation error on HP-UX 11.31.
9211         * modules/getcwd-tests (Depends-on): Add pathmax.
9212         * tests/test-getcwd.c: Include pathmax.h.
9213
9214 2011-06-18  Bruno Haible  <bruno@clisp.org>
9215
9216         isfinite, isinf: Fix link error on AIX 6 and 7.
9217         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9218         needed, also test the macro with a 'float' argument.
9219         * m4/isinf.m4 (gl_ISINF): Likewise.
9220
9221 2011-06-18  Bruno Haible  <bruno@clisp.org>
9222
9223         getloadavg: Don't clobber LIBS. Regression from previous commit.
9224         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9225         AC_CHECK_LIB from here...
9226         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9227         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9228         gl_func_getloadavg_done.
9229         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9230
9231 2011-06-18  Bruno Haible  <bruno@clisp.org>
9232
9233         clean-temp: Improve documentation.
9234         * lib/clean-temp.h: Explain better how to use this module.
9235         Reported by John Darrington <john@darrington.wattle.id.au>.
9236
9237 2011-06-17  Bruno Haible  <bruno@clisp.org>
9238
9239         pread, pwrite: Avoid cc warning on AIX.
9240         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9241         (pwrite): Likewise.
9242
9243 2011-06-17  Bruno Haible  <bruno@clisp.org>
9244
9245         spawn-pipe tests: Fix link error.
9246         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9248
9249 2011-06-17  Bruno Haible  <bruno@clisp.org>
9250
9251         Tests: Remove unnecessary dependency.
9252         * modules/canonicalize-tests (Depends-on): Remove progname.
9253         * modules/chown-tests (Depends-on): Likewise.
9254         * modules/dirname-tests (Depends-on): Likewise.
9255         * modules/fdopendir-tests (Depends-on): Likewise.
9256         * modules/fdutimensat-tests (Depends-on): Likewise.
9257         * modules/hash-tests (Depends-on): Likewise.
9258         * modules/lchown-tests (Depends-on): Likewise.
9259         * modules/linkat-tests (Depends-on): Likewise.
9260         * modules/renameat-tests (Depends-on): Likewise.
9261         * modules/spawn-pipe-tests (Depends-on): Likewise.
9262         * modules/utimensat-tests (Depends-on): Likewise.
9263
9264 2011-06-17  Bruno Haible  <bruno@clisp.org>
9265
9266         spawn-pipe tests: Fix link error.
9267         * tests/test-spawn-pipe-child.c: Undefine fflush.
9268
9269 2011-06-17  Bruno Haible  <bruno@clisp.org>
9270
9271         Fix tests link errors.
9272         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9273         * modules/chown-tests (Makefile.am): Don't link test-chown with
9274         LIBINTL.
9275         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9276         LIBINTL.
9277         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9278         LIBINTL.
9279         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9280         LIBINTL.
9281
9282 2011-06-16  Bruno Haible  <bruno@clisp.org>
9283
9284         crypto/gc-sha1: Fix recent regression.
9285         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9286         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9287
9288         crypto/gc-md5: Fix recent regression.
9289         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9290
9291         crypto/gc-md4: Fix recent regression.
9292         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9293         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9294
9295         crypto/gc-arctwo: Fix recent regression.
9296         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9297         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9298
9299         crypto/gc-rijndael: Fix recent regression.
9300         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9301         (configure.ac): Invoke AC_LIBOBJ here.
9302         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9303         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9304
9305         crypto/gc-hmac-sha1: Fix recent regression.
9306         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9307         (configure.ac): Invoke AC_LIBOBJ here.
9308         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9310
9311         crypto/gc-hmac-md5: Fix recent regression.
9312         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9313         (configure.ac): Invoke AC_LIBOBJ here.
9314         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9315         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9316
9317         crypto/gc-des: Fix recent regression.
9318         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9319         (configure.ac): Invoke AC_LIBOBJ here.
9320         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9321         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9322
9323         crypto/gc-arcfour: Fix recent regression.
9324         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9325         (configure.ac): Invoke AC_LIBOBJ here.
9326         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9327         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9328
9329 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9330
9331         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9332         After the 2011-05-21 change, this macro requires
9333         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9334         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9335
9336 2011-06-16  Bruno Haible  <bruno@clisp.org>
9337
9338         fprintftime: Move AC_LIBOBJ invocations to module description.
9339         * m4/fprintftime.m4: Remove file.
9340         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9341         (configure.ac): Remove gl_FPRINTFTIME call.
9342         (Makefile.am): Augment lib_SOURCES.
9343         Reported by Jim Meyering.
9344
9345 2011-06-16  Bruno Haible  <bruno@clisp.org>
9346
9347         tmpfile-safer: Finish 2011-05-23 commit.
9348         * m4/stdio-safer.m4: Really remove file.
9349         Reported by Jim Meyering.
9350
9351 2011-06-16  Bruno Haible  <bruno@clisp.org>
9352
9353         syntax-check: Fix typo.
9354         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9355         printf-posix.m4.
9356         Reported by Jim Meyering.
9357
9358 2011-06-13  Jim Meyering  <meyering@redhat.com>
9359
9360         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9361         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9362
9363 2011-05-23  Bruno Haible  <bruno@clisp.org>
9364
9365         yesno: Move AC_LIBOBJ invocations to module description.
9366         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9367         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9368
9369 2011-05-23  Bruno Haible  <bruno@clisp.org>
9370
9371         xstrtol: Move AC_LIBOBJ invocations to module description.
9372         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9373         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9374
9375 2011-05-23  Bruno Haible  <bruno@clisp.org>
9376
9377         xstrtold: Move AC_LIBOBJ invocations to module description.
9378         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9379         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9380
9381 2011-05-23  Bruno Haible  <bruno@clisp.org>
9382
9383         xstrtod: Move AC_LIBOBJ invocations to module description.
9384         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9385         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9386
9387 2011-05-23  Bruno Haible  <bruno@clisp.org>
9388
9389         xnanosleep: Move AC_LIBOBJ invocations to module description.
9390         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9391         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9392
9393 2011-05-23  Bruno Haible  <bruno@clisp.org>
9394
9395         xgetcwd: Move AC_LIBOBJ invocations to module description.
9396         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9397         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9398
9399 2011-05-23  Bruno Haible  <bruno@clisp.org>
9400
9401         xalloc: Move AC_LIBOBJ invocations to module description.
9402         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9403         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9404
9405 2011-05-23  Bruno Haible  <bruno@clisp.org>
9406
9407         write-any-file: Move AC_LIBOBJ invocations to module description.
9408         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9409         invocation.
9410         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9411
9412 2011-05-23  Bruno Haible  <bruno@clisp.org>
9413
9414         utimens: Move AC_LIBOBJ invocations to module description.
9415         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9416         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9417
9418 2011-05-23  Bruno Haible  <bruno@clisp.org>
9419
9420         utimecmp: Move AC_LIBOBJ invocations to module description.
9421         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9422         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9423
9424 2011-05-23  Bruno Haible  <bruno@clisp.org>
9425
9426         userspec: Move AC_LIBOBJ invocations to module description.
9427         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9428         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9429
9430 2011-05-23  Bruno Haible  <bruno@clisp.org>
9431
9432         unlinkdir: Move AC_LIBOBJ invocations to module description.
9433         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9434         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9435
9436 2011-05-23  Bruno Haible  <bruno@clisp.org>
9437
9438         unistd-safer: Move AC_LIBOBJ invocations to module description.
9439         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9440         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9441
9442 2011-05-23  Bruno Haible  <bruno@clisp.org>
9443
9444         tempname: Move AC_LIBOBJ invocations to module description.
9445         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9446         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9447
9448 2011-05-23  Bruno Haible  <bruno@clisp.org>
9449
9450         strftime: Move AC_LIBOBJ invocations to module description.
9451         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9452         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9453
9454 2011-05-23  Bruno Haible  <bruno@clisp.org>
9455
9456         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9457         * m4/stdlib-safer.m4: Remove file.
9458         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9459         (configure.ac): Remove gl_STDLIB_SAFER call.
9460         (Makefile.am): Augment lib_SOURCES.
9461
9462 2011-05-23  Bruno Haible  <bruno@clisp.org>
9463
9464         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9465         * m4/stdio-safer.m4: Remove file.
9466         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9467         (configure.ac): Remove gl_TMPFILE_SAFER call.
9468         (Makefile.am): Augment lib_SOURCES.
9469
9470 2011-05-23  Bruno Haible  <bruno@clisp.org>
9471
9472         popen-safer: Move AC_LIBOBJ invocations to module description.
9473         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9474         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9475         (configure.ac): Remove gl_POPEN_SAFER call.
9476         (Makefile.am): Augment lib_SOURCES.
9477
9478 2011-05-23  Bruno Haible  <bruno@clisp.org>
9479
9480         freopen-safer: Move AC_LIBOBJ invocations to module description.
9481         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9482         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9483         (configure.ac): Remove gl_FREOPEN_SAFER call.
9484         (Makefile.am): Augment lib_SOURCES.
9485
9486 2011-05-23  Bruno Haible  <bruno@clisp.org>
9487
9488         fopen-safer: Move AC_LIBOBJ invocations to module description.
9489         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9490         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9491         (configure.ac): Remove gl_FOPEN_SAFER call.
9492         (Makefile.am): Augment lib_SOURCES.
9493
9494 2011-05-23  Bruno Haible  <bruno@clisp.org>
9495
9496         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9497         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9498         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9499
9500 2011-05-23  Bruno Haible  <bruno@clisp.org>
9501
9502         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9503         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9504         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9505
9506 2011-05-23  Bruno Haible  <bruno@clisp.org>
9507
9508         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9509         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9510         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9511
9512 2011-05-23  Bruno Haible  <bruno@clisp.org>
9513
9514         settime: Move AC_LIBOBJ invocations to module description.
9515         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9516         * modules/settime (Makefile.am): Augment lib_SOURCES.
9517
9518 2011-05-23  Bruno Haible  <bruno@clisp.org>
9519
9520         savedir: Move AC_LIBOBJ invocations to module description.
9521         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9522         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9523
9524 2011-05-23  Bruno Haible  <bruno@clisp.org>
9525
9526         save-cwd: Move AC_LIBOBJ invocations to module description.
9527         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9528         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9529
9530 2011-05-23  Bruno Haible  <bruno@clisp.org>
9531
9532         same: Move AC_LIBOBJ invocations to module description.
9533         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9534         * modules/same (Makefile.am): Augment lib_SOURCES.
9535
9536 2011-05-23  Bruno Haible  <bruno@clisp.org>
9537
9538         safe-write: Move AC_LIBOBJ invocations to module description.
9539         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9540         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9541         instead of gl_SAFE_WRITE.
9542         (Makefile.am): Augment lib_SOURCES.
9543
9544 2011-05-23  Bruno Haible  <bruno@clisp.org>
9545
9546         safe-read: Move AC_LIBOBJ invocations to module description.
9547         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9548         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9549         of gl_SAFE_READ.
9550         (Makefile.am): Augment lib_SOURCES.
9551
9552 2011-05-23  Bruno Haible  <bruno@clisp.org>
9553
9554         safe-alloc: Move AC_LIBOBJ invocations to module description.
9555         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9556         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9557
9558 2011-05-23  Bruno Haible  <bruno@clisp.org>
9559
9560         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9561         * m4/rijndael.m4: Remove file.
9562         * modules/crypto/rijndael (Files): Remove it.
9563         (configure.ac): Remove gl_RIJNDAEL call.
9564         (Makefile.am): Augment lib_SOURCES.
9565
9566 2011-05-23  Bruno Haible  <bruno@clisp.org>
9567
9568         readtokens: Move AC_LIBOBJ invocations to module description.
9569         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9570         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9571
9572 2011-05-23  Bruno Haible  <bruno@clisp.org>
9573
9574         read-file: Move AC_LIBOBJ invocations to module description.
9575         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9576         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9577         of gl_FUNC_READ_FILE.
9578         (Makefile.am): Augment lib_SOURCES.
9579
9580 2011-05-23  Bruno Haible  <bruno@clisp.org>
9581
9582         quotearg: Move AC_LIBOBJ invocations to module description.
9583         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9584         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9585
9586 2011-05-23  Bruno Haible  <bruno@clisp.org>
9587
9588         quote: Move AC_LIBOBJ invocations to module description.
9589         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9590         * modules/quote (Makefile.am): Augment lib_SOURCES.
9591
9592 2011-05-23  Bruno Haible  <bruno@clisp.org>
9593
9594         posixver: Move AC_LIBOBJ invocations to module description.
9595         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9596         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9597
9598 2011-05-23  Bruno Haible  <bruno@clisp.org>
9599
9600         posixtm: Move AC_LIBOBJ invocations to module description.
9601         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9602         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9603
9604 2011-05-23  Bruno Haible  <bruno@clisp.org>
9605
9606         physmem: Move AC_LIBOBJ invocations to module description.
9607         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9608         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9609
9610 2011-05-23  Bruno Haible  <bruno@clisp.org>
9611
9612         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9613         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9614         invocation.
9615         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9616
9617 2011-05-23  Bruno Haible  <bruno@clisp.org>
9618
9619         mpsort: Move AC_LIBOBJ invocations to module description.
9620         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9621         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9622
9623 2011-05-23  Bruno Haible  <bruno@clisp.org>
9624
9625         modechange: Move AC_LIBOBJ invocations to module description.
9626         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9627         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9628
9629 2011-05-23  Bruno Haible  <bruno@clisp.org>
9630
9631         mkdir-p: Move AC_LIBOBJ invocations to module description.
9632         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9633         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9634
9635 2011-05-23  Bruno Haible  <bruno@clisp.org>
9636
9637         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9638         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9639         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9640
9641 2011-05-23  Bruno Haible  <bruno@clisp.org>
9642
9643         mgetgroups: Move AC_LIBOBJ invocations to module description.
9644         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9645         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9646
9647 2011-05-23  Bruno Haible  <bruno@clisp.org>
9648
9649         memxor: Move AC_LIBOBJ invocations to module description.
9650         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9651         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9652
9653 2011-05-23  Bruno Haible  <bruno@clisp.org>
9654
9655         memcoll: Move AC_LIBOBJ invocations to module description.
9656         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9657         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9658
9659 2011-05-23  Bruno Haible  <bruno@clisp.org>
9660
9661         memcasecmp: Move AC_LIBOBJ invocations to module description.
9662         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9663         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9664
9665 2011-05-23  Bruno Haible  <bruno@clisp.org>
9666
9667         crypto/md5: Move AC_LIBOBJ invocations to module description.
9668         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9669         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9670
9671 2011-05-23  Bruno Haible  <bruno@clisp.org>
9672
9673         crypto/md4: Move AC_LIBOBJ invocations to module description.
9674         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9675         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9676
9677 2011-05-23  Bruno Haible  <bruno@clisp.org>
9678
9679         crypto/md2: Move AC_LIBOBJ invocations to module description.
9680         * m4/md2.m4: Remove file.
9681         * modules/crypto/md2 (Files): Remove it.
9682         (configure.ac): Remove gl_MD2 call.
9683         (Makefile.am): Augment lib_SOURCES.
9684
9685 2011-05-23  Bruno Haible  <bruno@clisp.org>
9686
9687         long-options: Move AC_LIBOBJ invocations to module description.
9688         * m4/long-options.m4: Remove file.
9689         * modules/long-options (Files): Remove it.
9690         (configure.ac): Remove gl_LONG_OPTIONS call.
9691         (Makefile.am): Augment lib_SOURCES.
9692
9693 2011-05-23  Bruno Haible  <bruno@clisp.org>
9694
9695         i-ring: Move AC_LIBOBJ invocations to module description.
9696         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9697         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9698
9699 2011-05-23  Bruno Haible  <bruno@clisp.org>
9700
9701         idcache: Move AC_LIBOBJ invocations to module description.
9702         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9703         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9704
9705 2011-05-23  Bruno Haible  <bruno@clisp.org>
9706
9707         human: Move AC_LIBOBJ invocations to module description.
9708         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9709         * modules/human (Makefile.am): Augment lib_SOURCES.
9710
9711 2011-05-23  Bruno Haible  <bruno@clisp.org>
9712
9713         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9714         * m4/hmac-sha1.m4: Remove file.
9715         * modules/crypto/hmac-sha1 (Files): Remove it.
9716         (configure.ac): Remove gl_HMAC_SHA1 call.
9717         (Makefile.am): Augment lib_SOURCES.
9718
9719 2011-05-23  Bruno Haible  <bruno@clisp.org>
9720
9721         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9722         * m4/hmac-md5.m4: Remove file.
9723         * modules/crypto/hmac-md5 (Files): Remove it.
9724         (configure.ac): Remove gl_HMAC_MD5 call.
9725         (Makefile.am): Augment lib_SOURCES.
9726
9727 2011-05-23  Bruno Haible  <bruno@clisp.org>
9728
9729         hash: Move AC_LIBOBJ invocations to module description.
9730         * m4/hash.m4: Remove file.
9731         * modules/hash (Files): Remove it.
9732         (configure.ac): Remove gl_HASH call.
9733         (Makefile.am): Augment lib_SOURCES.
9734
9735 2011-05-23  Bruno Haible  <bruno@clisp.org>
9736
9737         hard-locale: Move AC_LIBOBJ invocations to module description.
9738         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9739         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9740
9741 2011-05-23  Bruno Haible  <bruno@clisp.org>
9742
9743         getugroups: Move AC_LIBOBJ invocations to module description.
9744         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9745         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9746
9747 2011-05-23  Bruno Haible  <bruno@clisp.org>
9748
9749         gettime: Move AC_LIBOBJ invocations to module description.
9750         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9751         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9752
9753 2011-05-23  Bruno Haible  <bruno@clisp.org>
9754
9755         getndelim2: Move AC_LIBOBJ invocations to module description.
9756         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9757         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9758
9759 2011-05-23  Bruno Haible  <bruno@clisp.org>
9760
9761         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9762         * m4/gc-pbkdf2-sha1.m4: Remove file.
9763         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9764         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9765         (Makefile.am): Augment lib_SOURCES.
9766
9767 2011-05-23  Bruno Haible  <bruno@clisp.org>
9768
9769         fts: Move AC_LIBOBJ invocations to module description.
9770         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9771         * modules/fts (configure.ac): ... to here.
9772
9773 2011-05-23  Bruno Haible  <bruno@clisp.org>
9774
9775         file-type: Move AC_LIBOBJ invocations to module description.
9776         * m4/file-type.m4: Remove file.
9777         * modules/file-type (Files): Remove it.
9778         (configure.ac): Remove gl_FILE_TYPE call.
9779         (Makefile.am): Augment lib_SOURCES.
9780
9781 2011-05-23  Bruno Haible  <bruno@clisp.org>
9782
9783         filenamecat*: Respect rules for use of AC_LIBOBJ.
9784         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9785         Remove AC_LIBOBJ invocation.
9786         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9787         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9788
9789 2011-05-23  Bruno Haible  <bruno@clisp.org>
9790
9791         filemode: Move AC_LIBOBJ invocations to module description.
9792         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9793         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9794
9795 2011-05-23  Bruno Haible  <bruno@clisp.org>
9796
9797         openat-safer: Move AC_LIBOBJ invocations to module description.
9798         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9799         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9800
9801 2011-05-23  Bruno Haible  <bruno@clisp.org>
9802
9803         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9804         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9805         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9806
9807 2011-05-23  Bruno Haible  <bruno@clisp.org>
9808
9809         exclude: Move AC_LIBOBJ invocations to module description.
9810         * m4/exclude.m4: Remove file.
9811         * modules/exclude (Files): Remove it.
9812         (configure.ac): Remove gl_EXCLUDE call.
9813         (Makefile.am): Augment lib_SOURCES.
9814
9815 2011-05-23  Bruno Haible  <bruno@clisp.org>
9816
9817         dirname*: Respect rules for use of AC_LIBOBJ.
9818         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9819         invocations.
9820         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9821         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9822
9823 2011-05-23  Bruno Haible  <bruno@clisp.org>
9824
9825         dirent-safer: Move AC_LIBOBJ invocations to module description.
9826         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9827         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9828
9829 2011-05-23  Bruno Haible  <bruno@clisp.org>
9830
9831         crypto/des: Move AC_LIBOBJ invocations to module description.
9832         * m4/des.m4: Remove file.
9833         * modules/crypto/des (Files): Remove it.
9834         (configure.ac): Remove gl_DES call.
9835         (Makefile.am): Augment lib_SOURCES.
9836
9837 2011-05-23  Bruno Haible  <bruno@clisp.org>
9838
9839         cycle-check: Move AC_LIBOBJ invocations to module description.
9840         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9841         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9842
9843 2011-05-23  Bruno Haible  <bruno@clisp.org>
9844
9845         c-strtold: Move AC_LIBOBJ invocations to module description.
9846         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9847         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9848
9849 2011-05-23  Bruno Haible  <bruno@clisp.org>
9850
9851         c-strtod: Move AC_LIBOBJ invocations to module description.
9852         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9853         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9854
9855 2011-05-23  Bruno Haible  <bruno@clisp.org>
9856
9857         crc: Move AC_LIBOBJ invocations to module description.
9858         * m4/crc.m4: Remove file.
9859         * modules/crc (Files): Remove it.
9860         (configure.ac): Remove gl_CRC call.
9861         (Makefile.am): Augment lib_SOURCES.
9862
9863 2011-05-23  Bruno Haible  <bruno@clisp.org>
9864
9865         close-stream: Move AC_LIBOBJ invocations to module description.
9866         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9867         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9868
9869 2011-05-23  Bruno Haible  <bruno@clisp.org>
9870
9871         closeout: Move AC_LIBOBJ invocations to module description.
9872         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9873         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9874
9875 2011-05-23  Bruno Haible  <bruno@clisp.org>
9876
9877         closein: Move AC_LIBOBJ invocations to module description.
9878         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9879         * modules/closein (Makefile.am): Augment lib_SOURCES.
9880
9881 2011-05-23  Bruno Haible  <bruno@clisp.org>
9882
9883         cloexec: Move AC_LIBOBJ invocations to module description.
9884         * m4/cloexec.m4: Remove file.
9885         * modules/cloexec (Files): Remove it.
9886         (configure.ac): Remove gl_CLOEXEC call.
9887         (Makefile.am): Augment lib_SOURCES.
9888
9889 2011-05-23  Bruno Haible  <bruno@clisp.org>
9890
9891         check-version: Move AC_LIBOBJ invocations to module description.
9892         * m4/check-version.m4: Remove file.
9893         * modules/check-version (Files): Remove it.
9894         (configure.ac): Remove gl_CHECK_VERSION call.
9895         (Makefile.am): Augment lib_SOURCES.
9896
9897 2011-05-23  Bruno Haible  <bruno@clisp.org>
9898
9899         chdir-safer: Move AC_LIBOBJ invocations to module description.
9900         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9901         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9902
9903 2011-05-23  Bruno Haible  <bruno@clisp.org>
9904
9905         canonicalize: Move AC_LIBOBJ invocations to module description.
9906         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9907         AC_LIBOBJ invocation.
9908         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9909
9910 2011-05-23  Bruno Haible  <bruno@clisp.org>
9911
9912         canon-host: Move AC_LIBOBJ invocations to module description.
9913         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9914         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9915         instead of gl_CANON_HOST.
9916         (Makefile.am): Augment lib_SOURCES.
9917
9918 2011-05-23  Bruno Haible  <bruno@clisp.org>
9919
9920         backupfile: Move AC_LIBOBJ invocations to module description.
9921         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9922         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9923
9924 2011-05-23  Bruno Haible  <bruno@clisp.org>
9925
9926         argmatch: Move AC_LIBOBJ invocations to module description.
9927         * m4/argmatch.m4: Remove file.
9928         * modules/argmatch (Files): Remove it.
9929         (configure.ac): Remove gl_ARGMATCH call.
9930         (Makefile.am): Augment lib_SOURCES.
9931
9932 2011-05-23  Bruno Haible  <bruno@clisp.org>
9933
9934         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9935         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9936         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9937
9938 2011-05-23  Bruno Haible  <bruno@clisp.org>
9939
9940         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9941         * m4/arcfour.m4: Remove file.
9942         * modules/crypto/arcfour (Files): Remove it.
9943         (configure.ac): Remove gl_ARCFOUR call.
9944         (Makefile.am): Augment lib_SOURCES.
9945
9946 2011-05-22  Bruno Haible  <bruno@clisp.org>
9947
9948         write: Move AC_LIBOBJ invocations to module description.
9949         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9950         * modules/write (configure.ac): ... to here.
9951
9952 2011-05-22  Bruno Haible  <bruno@clisp.org>
9953
9954         wmemset: Move AC_LIBOBJ invocations to module description.
9955         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9956         here...
9957         * modules/wmemset (configure.ac): ... to here.
9958
9959 2011-05-22  Bruno Haible  <bruno@clisp.org>
9960
9961         wmemmove: Move AC_LIBOBJ invocations to module description.
9962         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9963         here...
9964         * modules/wmemmove (configure.ac): ... to here.
9965
9966 2011-05-22  Bruno Haible  <bruno@clisp.org>
9967
9968         wmemcpy: Move AC_LIBOBJ invocations to module description.
9969         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9970         here...
9971         * modules/wmemcpy (configure.ac): ... to here.
9972
9973 2011-05-22  Bruno Haible  <bruno@clisp.org>
9974
9975         wmemcmp: Move AC_LIBOBJ invocations to module description.
9976         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9977         here...
9978         * modules/wmemcmp (configure.ac): ... to here.
9979
9980 2011-05-22  Bruno Haible  <bruno@clisp.org>
9981
9982         wmemchr: Move AC_LIBOBJ invocations to module description.
9983         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9984         here...
9985         * modules/wmemchr (configure.ac): ... to here.
9986
9987 2011-05-22  Bruno Haible  <bruno@clisp.org>
9988
9989         wcswidth: Move AC_LIBOBJ invocations to module description.
9990         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9991         here...
9992         * modules/wcswidth (configure.ac): ... to here.
9993
9994 2011-05-22  Bruno Haible  <bruno@clisp.org>
9995
9996         wcwidth: Respect rules for use of AC_LIBOBJ.
9997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9998         invocation from here...
9999         * modules/wcwidth (configure.ac): ... to here.
10000         (Depends-on): Update conditions.
10001
10002 2011-05-22  Bruno Haible  <bruno@clisp.org>
10003
10004         wctype: Move AC_LIBOBJ invocations to module description.
10005         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
10006         invocation from here...
10007         * modules/wctype (configure.ac): ... to here.
10008         (Depends-on): Update conditions.
10009
10010 2011-05-22  Bruno Haible  <bruno@clisp.org>
10011
10012         wctrans: Move AC_LIBOBJ invocations to module description.
10013         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
10014         invocation from here...
10015         * modules/wctrans (configure.ac): ... to here.
10016
10017 2011-05-22  Bruno Haible  <bruno@clisp.org>
10018
10019         wctomb: Move AC_LIBOBJ invocations to module description.
10020         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10021         invocations from here...
10022         * modules/wctomb (configure.ac): ... to here.
10023
10024 2011-05-22  Bruno Haible  <bruno@clisp.org>
10025
10026         wctob: Move AC_LIBOBJ invocations to module description.
10027         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10028         gl_PREREQ_WCTOB invocations from here...
10029         * modules/wctob (configure.ac): ... to here.
10030         (Depends-on): Update conditions.
10031
10032 2011-05-22  Bruno Haible  <bruno@clisp.org>
10033
10034         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10035         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10036         here...
10037         * modules/wcsxfrm (configure.ac): ... to here.
10038
10039 2011-05-22  Bruno Haible  <bruno@clisp.org>
10040
10041         wcstok: Move AC_LIBOBJ invocations to module description.
10042         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10043         * modules/wcstok (configure.ac): ... to here.
10044
10045 2011-05-22  Bruno Haible  <bruno@clisp.org>
10046
10047         wcsstr: Move AC_LIBOBJ invocations to module description.
10048         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10049         * modules/wcsstr (configure.ac): ... to here.
10050
10051 2011-05-22  Bruno Haible  <bruno@clisp.org>
10052
10053         wcsspn: Move AC_LIBOBJ invocations to module description.
10054         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10055         * modules/wcsspn (configure.ac): ... to here.
10056
10057 2011-05-22  Bruno Haible  <bruno@clisp.org>
10058
10059         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10060         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10061         gl_PREREQ_WCSRTOMBS invocations from here...
10062         * modules/wcsrtombs (configure.ac): ... to here.
10063
10064 2011-05-22  Bruno Haible  <bruno@clisp.org>
10065
10066         wcsrchr: Move AC_LIBOBJ invocations to module description.
10067         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10068         here...
10069         * modules/wcsrchr (configure.ac): ... to here.
10070
10071 2011-05-22  Bruno Haible  <bruno@clisp.org>
10072
10073         wcspbrk: Move AC_LIBOBJ invocations to module description.
10074         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10075         here...
10076         * modules/wcspbrk (configure.ac): ... to here.
10077
10078 2011-05-22  Bruno Haible  <bruno@clisp.org>
10079
10080         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10081         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10082         gl_PREREQ_WCSNRTOMBS invocations from here...
10083         * modules/wcsnrtombs (configure.ac): ... to here.
10084
10085 2011-05-22  Bruno Haible  <bruno@clisp.org>
10086
10087         wcsnlen: Move AC_LIBOBJ invocations to module description.
10088         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10089         here...
10090         * modules/wcsnlen (configure.ac): ... to here.
10091
10092 2011-05-22  Bruno Haible  <bruno@clisp.org>
10093
10094         wcsncpy: Move AC_LIBOBJ invocations to module description.
10095         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10096         here...
10097         * modules/wcsncpy (configure.ac): ... to here.
10098
10099 2011-05-22  Bruno Haible  <bruno@clisp.org>
10100
10101         wcsncmp: Move AC_LIBOBJ invocations to module description.
10102         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10103         here...
10104         * modules/wcsncmp (configure.ac): ... to here.
10105
10106 2011-05-22  Bruno Haible  <bruno@clisp.org>
10107
10108         wcsncat: Move AC_LIBOBJ invocations to module description.
10109         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10110         here...
10111         * modules/wcsncat (configure.ac): ... to here.
10112
10113 2011-05-22  Bruno Haible  <bruno@clisp.org>
10114
10115         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10116         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10117         from here...
10118         * modules/wcsncasecmp (configure.ac): ... to here.
10119
10120 2011-05-22  Bruno Haible  <bruno@clisp.org>
10121
10122         wcslen: Move AC_LIBOBJ invocations to module description.
10123         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10124         * modules/wcslen (configure.ac): ... to here.
10125
10126 2011-05-22  Bruno Haible  <bruno@clisp.org>
10127
10128         wcsdup: Move AC_LIBOBJ invocations to module description.
10129         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10130         * modules/wcsdup (configure.ac): ... to here.
10131
10132 2011-05-22  Bruno Haible  <bruno@clisp.org>
10133
10134         wcscspn: Move AC_LIBOBJ invocations to module description.
10135         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10136         here...
10137         * modules/wcscspn (configure.ac): ... to here.
10138
10139 2011-05-22  Bruno Haible  <bruno@clisp.org>
10140
10141         wcscpy: Move AC_LIBOBJ invocations to module description.
10142         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10143         * modules/wcscpy (configure.ac): ... to here.
10144
10145 2011-05-22  Bruno Haible  <bruno@clisp.org>
10146
10147         wcscoll: Move AC_LIBOBJ invocations to module description.
10148         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10149         here...
10150         * modules/wcscoll (configure.ac): ... to here.
10151
10152 2011-05-22  Bruno Haible  <bruno@clisp.org>
10153
10154         wcscmp: Move AC_LIBOBJ invocations to module description.
10155         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10156         * modules/wcscmp (configure.ac): ... to here.
10157
10158 2011-05-22  Bruno Haible  <bruno@clisp.org>
10159
10160         wcschr: Move AC_LIBOBJ invocations to module description.
10161         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10162         * modules/wcschr (configure.ac): ... to here.
10163
10164 2011-05-22  Bruno Haible  <bruno@clisp.org>
10165
10166         wcscat: Move AC_LIBOBJ invocations to module description.
10167         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10168         * modules/wcscat (configure.ac): ... to here.
10169
10170 2011-05-22  Bruno Haible  <bruno@clisp.org>
10171
10172         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10173         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10174         here...
10175         * modules/wcscasecmp (configure.ac): ... to here.
10176
10177 2011-05-22  Bruno Haible  <bruno@clisp.org>
10178
10179         wcrtomb: Move AC_LIBOBJ invocations to module description.
10180         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10181         invocations from here...
10182         * modules/wcrtomb (configure.ac): ... to here.
10183
10184 2011-05-22  Bruno Haible  <bruno@clisp.org>
10185
10186         wcpncpy: Move AC_LIBOBJ invocations to module description.
10187         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10188         here...
10189         * modules/wcpncpy (configure.ac): ... to here.
10190
10191 2011-05-22  Bruno Haible  <bruno@clisp.org>
10192
10193         wcpcpy: Move AC_LIBOBJ invocations to module description.
10194         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10195         * modules/wcpcpy (configure.ac): ... to here.
10196
10197 2011-05-22  Bruno Haible  <bruno@clisp.org>
10198
10199         waitpid: Move AC_LIBOBJ invocations to module description.
10200         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10201         invocation from here...
10202         * modules/waitpid (configure.ac): ... to here.
10203
10204 2011-05-22  Bruno Haible  <bruno@clisp.org>
10205
10206         utimensat: Move AC_LIBOBJ invocations to module description.
10207         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10208         here...
10209         * modules/utimensat (configure.ac): ... to here.
10210
10211 2011-05-22  Bruno Haible  <bruno@clisp.org>
10212
10213         usleep: Move AC_LIBOBJ invocations to module description.
10214         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10215         here...
10216         * modules/usleep (configure.ac): ... to here.
10217
10218 2011-05-22  Bruno Haible  <bruno@clisp.org>
10219
10220         unlockpt: Move AC_LIBOBJ invocations to module description.
10221         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10222         gl_PREREQ_UNLOCKPT invocations from here...
10223         * modules/unlockpt (configure.ac): ... to here.
10224
10225 2011-05-22  Bruno Haible  <bruno@clisp.org>
10226
10227         unlink: Respect rules for use of AC_LIBOBJ.
10228         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10229         * modules/unlink (configure.ac): ... to here.
10230
10231 2011-05-22  Bruno Haible  <bruno@clisp.org>
10232
10233         uname: Move AC_LIBOBJ invocations to module description.
10234         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10235         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10236         here...
10237         * modules/uname (configure.ac): ... to here.
10238
10239 2011-05-22  Bruno Haible  <bruno@clisp.org>
10240
10241         ttyname_r: Move AC_LIBOBJ invocations to module description.
10242         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10243         gl_PREREQ_TTYNAME_R invocations from here...
10244         * modules/ttyname_r (configure.ac): ... to here.
10245
10246 2011-05-22  Bruno Haible  <bruno@clisp.org>
10247
10248         tsearch: Move AC_LIBOBJ invocations to module description.
10249         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10250         invocations from here...
10251         * modules/tsearch (configure.ac): ... to here.
10252
10253 2011-05-22  Bruno Haible  <bruno@clisp.org>
10254
10255         towctrans: Move AC_LIBOBJ invocations to module description.
10256         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10257         AC_LIBOBJ invocation from here...
10258         * modules/towctrans (configure.ac): ... to here.
10259
10260 2011-05-22  Bruno Haible  <bruno@clisp.org>
10261
10262         tmpfile: Move AC_LIBOBJ invocations to module description.
10263         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10264         invocations from here...
10265         * modules/tmpfile (configure.ac): ... to here.
10266
10267 2011-05-22  Bruno Haible  <bruno@clisp.org>
10268
10269         times: Move AC_LIBOBJ invocations to module description.
10270         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10271         * modules/times (configure.ac): ... to here.
10272
10273 2011-05-22  Bruno Haible  <bruno@clisp.org>
10274
10275         time_r: Move AC_LIBOBJ invocations to module description.
10276         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10277         invocations from here...
10278         * modules/time_r (configure.ac): ... to here.
10279
10280 2011-05-22  Bruno Haible  <bruno@clisp.org>
10281
10282         timegm: Move AC_LIBOBJ invocations to module description.
10283         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10284         invocations from here...
10285         * modules/timegm (configure.ac): ... to here.
10286
10287 2011-05-22  Bruno Haible  <bruno@clisp.org>
10288
10289         tcgetsid: Move AC_LIBOBJ invocations to module description.
10290         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10291         and gl_PREREQ_TCGETSID invocations from here...
10292         * modules/tcgetsid (configure.ac): ... to here.
10293         (Depends-on): Update conditions.
10294
10295 2011-05-22  Bruno Haible  <bruno@clisp.org>
10296
10297         symlinkat: Move AC_LIBOBJ invocations to module description.
10298         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10299         here...
10300         * modules/symlinkat (configure.ac): ... to here.
10301
10302 2011-05-22  Bruno Haible  <bruno@clisp.org>
10303
10304         symlink: Move AC_LIBOBJ invocations to module description.
10305         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10306         here...
10307         * modules/symlink (configure.ac): ... to here.
10308
10309 2011-05-22  Bruno Haible  <bruno@clisp.org>
10310
10311         strverscmp: Move AC_LIBOBJ invocations to module description.
10312         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10314         from here...
10315         * modules/strverscmp (configure.ac): ... to here.
10316
10317 2011-05-22  Bruno Haible  <bruno@clisp.org>
10318
10319         strtok_r: Move AC_LIBOBJ invocations to module description.
10320         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10321         and gl_PREREQ_STRTOK_R invocations from here...
10322         * modules/strtok_r (configure.ac): ... to here.
10323         (Depends-on): Update conditions.
10324
10325 2011-05-22  Bruno Haible  <bruno@clisp.org>
10326
10327         strtoumax: Move AC_LIBOBJ invocations to module description.
10328         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10330         from here...
10331         * modules/strtoumax (configure.ac): ... to here.
10332
10333 2011-05-22  Bruno Haible  <bruno@clisp.org>
10334
10335         strtoimax: Move AC_LIBOBJ invocations to module description.
10336         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10337         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10338         from here...
10339         * modules/strtoimax (configure.ac): ... to here.
10340
10341 2011-05-22  Bruno Haible  <bruno@clisp.org>
10342
10343         strtoull: Move AC_LIBOBJ invocations to module description.
10344         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10346         from here...
10347         * modules/strtoull (configure.ac): ... to here.
10348
10349 2011-05-22  Bruno Haible  <bruno@clisp.org>
10350
10351         strtoll: Move AC_LIBOBJ invocations to module description.
10352         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10354         here...
10355         * modules/strtoll (configure.ac): ... to here.
10356
10357 2011-05-22  Bruno Haible  <bruno@clisp.org>
10358
10359         strtoul: Move AC_LIBOBJ invocations to module description.
10360         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10361         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10362         * modules/strtoul (configure.ac): ... to here.
10363
10364 2011-05-22  Bruno Haible  <bruno@clisp.org>
10365
10366         strtol: Move AC_LIBOBJ invocations to module description.
10367         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10368         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10369         * modules/strtol (configure.ac): ... to here.
10370
10371 2011-05-22  Bruno Haible  <bruno@clisp.org>
10372
10373         strtod: Move AC_LIBOBJ invocations to module description.
10374         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10375         invocations from here...
10376         * modules/strtod (configure.ac): ... to here.
10377
10378 2011-05-22  Bruno Haible  <bruno@clisp.org>
10379
10380         strstr*: Move AC_LIBOBJ invocations to module description.
10381         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10382         invocations from here...
10383         * modules/strstr-simple (configure.ac): ... to here.
10384         * modules/strstr (configure.ac): ... and here.
10385
10386 2011-05-22  Bruno Haible  <bruno@clisp.org>
10387
10388         strsignal: Move AC_LIBOBJ invocations to module description.
10389         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10390         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10391         * modules/strsignal (configure.ac): ... to here.
10392         (Depends-on): Update conditions.
10393
10394 2011-05-22  Bruno Haible  <bruno@clisp.org>
10395
10396         strsep: Move AC_LIBOBJ invocations to module description.
10397         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10398         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10399         here...
10400         * modules/strsep (configure.ac): ... to here.
10401
10402 2011-05-22  Bruno Haible  <bruno@clisp.org>
10403
10404         strptime: Move AC_LIBOBJ invocations to module description.
10405         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10406         gl_PREREQ_STRPTIME invocations from here...
10407         * modules/strptime (configure.ac): ... to here.
10408
10409 2011-05-22  Bruno Haible  <bruno@clisp.org>
10410
10411         strpbrk: Move AC_LIBOBJ invocations to module description.
10412         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10414         here...
10415         * modules/strpbrk (configure.ac): ... to here.
10416
10417 2011-05-22  Bruno Haible  <bruno@clisp.org>
10418
10419         strnlen: Move AC_LIBOBJ invocations to module description.
10420         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10421         invocations from here...
10422         * modules/strnlen (configure.ac): ... to here.
10423
10424 2011-05-22  Bruno Haible  <bruno@clisp.org>
10425
10426         strndup: Move AC_LIBOBJ invocations to module description.
10427         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10428         invocations from here...
10429         * modules/strndup (configure.ac): ... to here.
10430         (Depends-on): Update conditions.
10431
10432 2011-05-22  Bruno Haible  <bruno@clisp.org>
10433
10434         strncat: Move AC_LIBOBJ invocations to module description.
10435         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10436         invocations from here...
10437         * modules/strncat (configure.ac): ... to here.
10438
10439 2011-05-22  Bruno Haible  <bruno@clisp.org>
10440
10441         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10442         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10443         invocations from here...
10444         * modules/strdup (configure.ac): ... to here.
10445         * modules/strdup-posix (configure.ac): ... and here.
10446
10447 2011-05-22  Bruno Haible  <bruno@clisp.org>
10448
10449         strcspn: Move AC_LIBOBJ invocations to module description.
10450         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10451         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10452         here...
10453         * modules/strcspn (configure.ac): ... to here.
10454
10455 2011-05-22  Bruno Haible  <bruno@clisp.org>
10456
10457         strchrnul: Move AC_LIBOBJ invocations to module description.
10458         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10459         gl_PREREQ_STRCHRNUL invocations from here...
10460         * modules/strchrnul (configure.ac): ... to here.
10461
10462 2011-05-22  Bruno Haible  <bruno@clisp.org>
10463
10464         strcasestr*: Move AC_LIBOBJ invocations to module description.
10465         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10466         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10467         * modules/strcasestr-simple (configure.ac): ... to here.
10468         * modules/strcasestr (configure.ac): ... and here.
10469
10470 2011-05-22  Bruno Haible  <bruno@clisp.org>
10471
10472         strcase: Move AC_LIBOBJ invocations to module description.
10473         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10474         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10475         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10476         gl_PREREQ_STRNCASECMP invocations from here...
10477         * modules/strcase (configure.ac): ... to here.
10478
10479 2011-05-22  Bruno Haible  <bruno@clisp.org>
10480
10481         stpncpy: Move AC_LIBOBJ invocations to module description.
10482         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10483         here...
10484         * modules/stpncpy (configure.ac): ... to here.
10485
10486 2011-05-22  Bruno Haible  <bruno@clisp.org>
10487
10488         stpcpy: Move AC_LIBOBJ invocations to module description.
10489         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10491         here...
10492         * modules/stpcpy (configure.ac): ... to here.
10493
10494 2011-05-21  Bruno Haible  <bruno@clisp.org>
10495
10496         stat: Move AC_LIBOBJ invocations to module description.
10497         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10498         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10499         here...
10500         * modules/stat (configure.ac): ... to here.
10501
10502 2011-05-21  Bruno Haible  <bruno@clisp.org>
10503
10504         sleep: Move AC_LIBOBJ invocations to module description.
10505         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10506         * modules/sleep (configure.ac): ... to here.
10507
10508 2011-05-21  Bruno Haible  <bruno@clisp.org>
10509
10510         signbit: Move AC_LIBOBJ invocations to module description.
10511         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10512         * modules/signbit (configure.ac): ... to here.
10513
10514 2011-05-21  Bruno Haible  <bruno@clisp.org>
10515
10516         sigprocmask: Move AC_LIBOBJ invocations to module description.
10517         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10518         gl_PREREQ_SIGPROMASK invocations from here...
10519         * modules/sigprocmask (configure.ac): ... to here.
10520
10521 2011-05-21  Bruno Haible  <bruno@clisp.org>
10522
10523         sigaction: Move AC_LIBOBJ invocations to module description.
10524         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10525         gl_PREREQ_SIGACTION invocations from here...
10526         * modules/sigaction (configure.ac): ... to here.
10527
10528 2011-05-21  Bruno Haible  <bruno@clisp.org>
10529
10530         sig2str: Move AC_LIBOBJ invocations to module description.
10531         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10533         here...
10534         * modules/sig2str (configure.ac): ... to here.
10535
10536 2011-05-21  Bruno Haible  <bruno@clisp.org>
10537
10538         setlocale: Move AC_LIBOBJ invocations to module description.
10539         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10540         gl_PREREQ_SETLOCALE invocations from here...
10541         * modules/setlocale (configure.ac): ... to here.
10542
10543 2011-05-21  Bruno Haible  <bruno@clisp.org>
10544
10545         unsetenv: Move AC_LIBOBJ invocations to module description.
10546         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10547         and gl_PREREQ_UNSETENV invocations from here...
10548         * modules/unsetenv (configure.ac): ... to here.
10549         (Depends-on): Update.
10550
10551 2011-05-21  Bruno Haible  <bruno@clisp.org>
10552
10553         setenv: Move AC_LIBOBJ invocations to module description.
10554         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10555         here...
10556         * modules/setenv (configure.ac): ... to here.
10557
10558 2011-05-21  Bruno Haible  <bruno@clisp.org>
10559
10560         selinux-h: Move AC_LIBOBJ invocations to module description.
10561         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10562         AC_LIBOBJ invocation from here...
10563         * modules/selinux-h (configure.ac): ... to here.
10564
10565 2011-05-21  Bruno Haible  <bruno@clisp.org>
10566
10567         select: Respect rules for use of AC_LIBOBJ.
10568         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10569         here...
10570         * modules/select (configure.ac): ... to here.
10571
10572 2011-05-21  Bruno Haible  <bruno@clisp.org>
10573
10574         scandir: Move AC_LIBOBJ invocations to module description.
10575         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10576         invocations from here...
10577         * modules/scandir (configure.ac): ... to here.
10578
10579 2011-05-21  Bruno Haible  <bruno@clisp.org>
10580
10581         rpmatch: Move AC_LIBOBJ invocations to module description.
10582         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10583         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10584         here...
10585         * modules/rpmatch (configure.ac): ... to here.
10586
10587 2011-05-21  Bruno Haible  <bruno@clisp.org>
10588
10589         rmdir: Respect rules for use of AC_LIBOBJ.
10590         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10591         * modules/rmdir (configure.ac): ... to here.
10592
10593 2011-05-21  Bruno Haible  <bruno@clisp.org>
10594
10595         renameat: Move AC_LIBOBJ invocations to module description.
10596         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10597         here...
10598         * modules/renameat (configure.ac): ... to here.
10599
10600 2011-05-21  Bruno Haible  <bruno@clisp.org>
10601
10602         rename: Respect rules for use of AC_LIBOBJ.
10603         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10604         here...
10605         * modules/rename (configure.ac): ... to here.
10606
10607 2011-05-21  Bruno Haible  <bruno@clisp.org>
10608
10609         remove: Move AC_LIBOBJ invocations to module description.
10610         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10611         here...
10612         * modules/remove (configure.ac): ... to here.
10613
10614 2011-05-21  Bruno Haible  <bruno@clisp.org>
10615
10616         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10617         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10618         macro.
10619         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10620         * modules/relocatable-lib (configure.ac): ... to here.
10621         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10622         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10623
10624 2011-05-21  Bruno Haible  <bruno@clisp.org>
10625
10626         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10627         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10628         here...
10629         * modules/relocatable-prog (configure.ac): ... to here.
10630
10631 2011-05-21  Bruno Haible  <bruno@clisp.org>
10632
10633         regex: Move AC_LIBOBJ invocations to module description.
10634         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10635         invocations from here...
10636         * modules/regex (configure.ac): ... to here.
10637
10638 2011-05-21  Bruno Haible  <bruno@clisp.org>
10639
10640         realloc-*: Move AC_LIBOBJ invocations to module description.
10641         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10642         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10643         AC_LIBOBJ invocations from here...
10644         * modules/realloc-gnu (configure.ac): ... to here.
10645         * modules/realloc-posix (configure.ac): ... and here.
10646
10647 2011-05-21  Bruno Haible  <bruno@clisp.org>
10648
10649         readutmp: Move AC_LIBOBJ invocations to module description.
10650         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10651         * modules/readutmp (configure.ac): ... to here.
10652
10653 2011-05-21  Bruno Haible  <bruno@clisp.org>
10654
10655         readlinkat: Move AC_LIBOBJ invocations to module description.
10656         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10657         here...
10658         * modules/readlinkat (configure.ac): ... to here.
10659
10660 2011-05-21  Bruno Haible  <bruno@clisp.org>
10661
10662         readlink: Move AC_LIBOBJ invocations to module description.
10663         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10664         gl_PREREQ_READLINK invocations from here...
10665         * modules/readlink (configure.ac): ... to here.
10666
10667 2011-05-21  Bruno Haible  <bruno@clisp.org>
10668
10669         readline: Move AC_LIBOBJ invocations to module description.
10670         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10671         gl_PREREQ_READLINE invocations from here...
10672         * modules/readline (configure.ac): ... to here.
10673
10674 2011-05-21  Bruno Haible  <bruno@clisp.org>
10675
10676         read: Move AC_LIBOBJ invocations to module description.
10677         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10678         * modules/read (configure.ac): ... to here.
10679
10680 2011-05-21  Bruno Haible  <bruno@clisp.org>
10681
10682         rawmemchr: Move AC_LIBOBJ invocations to module description.
10683         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10685         from here...
10686         * modules/rawmemchr (configure.ac): ... to here.
10687
10688 2011-05-21  Bruno Haible  <bruno@clisp.org>
10689
10690         random_r: Move AC_LIBOBJ invocations to module description.
10691         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10692         gl_PREREQ_RANDOM_R invocations from here...
10693         * modules/random_r (configure.ac): ... to here.
10694
10695 2011-05-21  Bruno Haible  <bruno@clisp.org>
10696
10697         pwrite: Move AC_LIBOBJ invocations to module description.
10698         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10699         * modules/pwrite (configure.ac): ... to here.
10700
10701 2011-05-21  Bruno Haible  <bruno@clisp.org>
10702
10703         putenv: Move AC_LIBOBJ invocations to module description.
10704         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10705         * modules/putenv (configure.ac): ... to here.
10706
10707 2011-05-21  Bruno Haible  <bruno@clisp.org>
10708
10709         login_tty: Move AC_LIBOBJ invocations to module description.
10710         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10711         * modules/login_tty (configure.ac): ... to here.
10712
10713 2011-05-21  Bruno Haible  <bruno@clisp.org>
10714
10715         openpty: Move AC_LIBOBJ invocations to module description.
10716         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10717         * modules/openpty (configure.ac): ... to here.
10718
10719 2011-05-21  Bruno Haible  <bruno@clisp.org>
10720
10721         forkpty: Move AC_LIBOBJ invocations to module description.
10722         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10723         * modules/forkpty (configure.ac): ... to here.
10724
10725 2011-05-21  Bruno Haible  <bruno@clisp.org>
10726
10727         ptsname: Move AC_LIBOBJ invocations to module description.
10728         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10729         invocations from here...
10730         * modules/ptsname (configure.ac): ... to here.
10731
10732 2011-05-21  Bruno Haible  <bruno@clisp.org>
10733
10734         pread: Move AC_LIBOBJ invocations to module description.
10735         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10736         * modules/pread (configure.ac): ... to here.
10737
10738 2011-05-21  Bruno Haible  <bruno@clisp.org>
10739
10740         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10741         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10742         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10743         * modules/posix_spawn (configure.ac): ... to here.
10744         * modules/posix_spawnp (configure.ac): ... and here.
10745
10746 2011-05-21  Bruno Haible  <bruno@clisp.org>
10747
10748         popen: Move AC_LIBOBJ invocations to module description.
10749         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10750         invocations from here...
10751         * modules/popen (configure.ac): ... to here.
10752
10753 2011-05-21  Bruno Haible  <bruno@clisp.org>
10754
10755         poll: Move AC_LIBOBJ invocations to module description.
10756         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10757         invocations from here...
10758         * modules/poll (configure.ac): ... to here.
10759
10760 2011-05-21  Bruno Haible  <bruno@clisp.org>
10761
10762         pipe-posix: Move AC_LIBOBJ invocations to module description.
10763         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10764         * modules/pipe-posix (configure.ac): ... to here.
10765
10766 2011-05-21  Bruno Haible  <bruno@clisp.org>
10767
10768         openat: Respect rules for use of AC_LIBOBJ.
10769         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10770         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10771         * modules/openat (configure.ac): ... to here.
10772
10773 2011-05-21  Bruno Haible  <bruno@clisp.org>
10774
10775         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10776         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10777         invocation from here...
10778         * modules/obstack-printf (configure.ac): ... to here.
10779         * modules/obstack-printf-posix (configure.ac): ... and here.
10780
10781 2011-05-21  Bruno Haible  <bruno@clisp.org>
10782
10783         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10784         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10785         from here...
10786         * modules/nl_langinfo (configure.ac): ... to here.
10787
10788 2011-05-21  Bruno Haible  <bruno@clisp.org>
10789
10790         nanosleep: Move AC_LIBOBJ invocations to module description.
10791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10792         gl_PREREQ_NANOSLEEP invocations from here...
10793         * modules/nanosleep (configure.ac): ... to here.
10794
10795 2011-05-21  Bruno Haible  <bruno@clisp.org>
10796
10797         mountlist: Move AC_LIBOBJ invocations to module description.
10798         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10799         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10800         * modules/mountlist (configure.ac): ... to here.
10801
10802 2011-05-21  Bruno Haible  <bruno@clisp.org>
10803
10804         mktime: Respect rules for use of AC_LIBOBJ.
10805         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10806         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10807         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10808         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10809         * modules/mktime (configure.ac): ... to here.
10810         * modules/mktime-internal (configure.ac): ... and here.
10811         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10812
10813 2011-05-21  Bruno Haible  <bruno@clisp.org>
10814
10815         mkstemps: Move AC_LIBOBJ invocations to module description.
10816         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10817         here...
10818         * modules/mkstemps (configure.ac): ... to here.
10819
10820 2011-05-21  Bruno Haible  <bruno@clisp.org>
10821
10822         mkstemp: Move AC_LIBOBJ invocations to module description.
10823         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10824         gl_PREREQ_MKSTEMP invocations from here...
10825         * modules/mkstemp (configure.ac): ... to here.
10826
10827 2011-05-21  Bruno Haible  <bruno@clisp.org>
10828
10829         mkostemps: Move AC_LIBOBJ invocations to module description.
10830         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10831         here...
10832         * modules/mkostemps (configure.ac): ... to here.
10833
10834 2011-05-21  Bruno Haible  <bruno@clisp.org>
10835
10836         mkostemp: Move AC_LIBOBJ invocations to module description.
10837         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10838         gl_PREREQ_MKOSTEMP invocations from here...
10839         * modules/mkostemp (configure.ac): ... to here.
10840
10841 2011-05-21  Bruno Haible  <bruno@clisp.org>
10842
10843         mknod: Move AC_LIBOBJ invocations to module description.
10844         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10845         * modules/mknod (configure.ac): ... to here.
10846
10847 2011-05-21  Bruno Haible  <bruno@clisp.org>
10848
10849         mkfifoat: Move AC_LIBOBJ invocations to module description.
10850         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10851         here...
10852         * modules/mkfifoat (configure.ac): ... to here.
10853
10854 2011-05-21  Bruno Haible  <bruno@clisp.org>
10855
10856         mkfifo: Respect rules for use of AC_LIBOBJ.
10857         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10858         here...
10859         * modules/mkfifo (configure.ac): ... to here.
10860
10861 2011-05-21  Bruno Haible  <bruno@clisp.org>
10862
10863         mkdtemp: Move AC_LIBOBJ invocations to module description.
10864         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10865         invocations from here...
10866         * modules/mkdtemp (configure.ac): ... to here.
10867
10868 2011-05-21  Bruno Haible  <bruno@clisp.org>
10869
10870         mkdir: Move AC_LIBOBJ invocations to module description.
10871         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10872         * modules/mkdir (configure.ac): ... to here.
10873
10874 2011-05-21  Bruno Haible  <bruno@clisp.org>
10875
10876         memset: Move AC_LIBOBJ invocations to module description.
10877         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10878         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10879         here...
10880         * modules/memset (configure.ac): ... to here.
10881
10882 2011-05-21  Bruno Haible  <bruno@clisp.org>
10883
10884         memrchr: Move AC_LIBOBJ invocations to module description.
10885         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10887         here...
10888         * modules/memrchr (configure.ac): ... to here.
10889
10890 2011-05-21  Bruno Haible  <bruno@clisp.org>
10891
10892         mempcpy: Move AC_LIBOBJ invocations to module description.
10893         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10894         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10895         here...
10896         * modules/mempcpy (configure.ac): ... to here.
10897
10898 2011-05-21  Bruno Haible  <bruno@clisp.org>
10899
10900         memmove: Move AC_LIBOBJ invocations to module description.
10901         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10902         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10903         here...
10904         * modules/memmove (configure.ac): ... to here.
10905
10906 2011-05-21  Bruno Haible  <bruno@clisp.org>
10907
10908         memmem*: Move AC_LIBOBJ invocations to module description.
10909         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10910         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10911         here...
10912         (gl_FUNC_MEMMEM): ... and here...
10913         * modules/memmem-simple (configure.ac): ... to here.
10914         * modules/memmem (configure.ac): ... and here.
10915
10916 2011-05-21  Bruno Haible  <bruno@clisp.org>
10917
10918         memcpy: Move AC_LIBOBJ invocations to module description.
10919         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10920         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10921         here...
10922         * modules/memcpy (configure.ac): ... to here.
10923
10924 2011-05-21  Bruno Haible  <bruno@clisp.org>
10925
10926         memcmp: Simplify autoconf macro.
10927         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10928         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10929         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10930
10931 2011-05-21  Bruno Haible  <bruno@clisp.org>
10932
10933         memcmp: Move AC_LIBOBJ invocations to module description.
10934         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10935         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10936         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10937         * modules/memcmp (configure.ac): ... to here.
10938         (Depends-on): Update conditions.
10939
10940 2011-05-21  Bruno Haible  <bruno@clisp.org>
10941
10942         memchr: Respect rules for use of AC_LIBOBJ.
10943         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10944         invocations from here...
10945         * modules/memchr (configure.ac): ... to here.
10946
10947 2011-05-21  Bruno Haible  <bruno@clisp.org>
10948
10949         mbtowc: Move AC_LIBOBJ invocations to module description.
10950         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10951         invocations from here...
10952         * modules/mbtowc (configure.ac): ... to here.
10953
10954 2011-05-21  Bruno Haible  <bruno@clisp.org>
10955
10956         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10957         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10958         gl_PREREQ_MBSRTOWCS invocations from here...
10959         * modules/mbsrtowcs (configure.ac): ... to here.
10960
10961 2011-05-21  Bruno Haible  <bruno@clisp.org>
10962
10963         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10964         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10965         gl_PREREQ_MBSNRTOWCS invocations from here...
10966         * modules/mbsnrtowcs (configure.ac): ... to here.
10967
10968 2011-05-21  Bruno Haible  <bruno@clisp.org>
10969
10970         mbsinit: Move AC_LIBOBJ invocations to module description.
10971         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10972         invocations from here...
10973         * modules/mbsinit (configure.ac): ... to here.
10974
10975 2011-05-21  Bruno Haible  <bruno@clisp.org>
10976
10977         mbrlen: Move AC_LIBOBJ invocations to module description.
10978         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10979         invocations from here...
10980         * modules/mbrlen (configure.ac): ... to here.
10981
10982 2011-05-21  Bruno Haible  <bruno@clisp.org>
10983
10984         mbrtowc: Respect rules for use of AC_LIBOBJ.
10985         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10986         invocations from here...
10987         * modules/mbrtowc (configure.ac): ... to here.
10988
10989 2011-05-21  Bruno Haible  <bruno@clisp.org>
10990
10991         malloc-*: Move AC_LIBOBJ invocations to module description.
10992         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10993         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10994         AC_LIBOBJ invocations from here...
10995         * modules/malloc-gnu (configure.ac): ... to here.
10996         * modules/malloc-posix (configure.ac): ... and here.
10997
10998 2011-05-21  Bruno Haible  <bruno@clisp.org>
10999
11000         lstat, openat: Respect rules for use of AC_LIBOBJ.
11001         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
11002         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
11003         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
11004         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
11005         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
11006         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
11007         here.
11008         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
11009
11010 2011-05-21  Bruno Haible  <bruno@clisp.org>
11011
11012         lseek: Move AC_LIBOBJ invocations to module description.
11013         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
11014         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11015         * modules/lseek (configure.ac): ... to here.
11016
11017 2011-05-21  Bruno Haible  <bruno@clisp.org>
11018
11019         linkat: Move AC_LIBOBJ invocations to module description.
11020         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11021         here...
11022         * modules/linkat (configure.ac): ... to here.
11023
11024 2011-05-21  Bruno Haible  <bruno@clisp.org>
11025
11026         link: Respect rules for use of AC_LIBOBJ.
11027         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11028         * modules/link (configure.ac): ... to here.
11029
11030 2011-05-21  Bruno Haible  <bruno@clisp.org>
11031
11032         lchown: Move AC_LIBOBJ invocations to module description.
11033         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11034         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11035         * modules/lchown (configure.ac): ... to here.
11036
11037 2011-05-21  Bruno Haible  <bruno@clisp.org>
11038
11039         iswctype: Move AC_LIBOBJ invocations to module description.
11040         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11041         here...
11042         * modules/iswctype (configure.ac): ... to here.
11043
11044 2011-05-21  Bruno Haible  <bruno@clisp.org>
11045
11046         iswblank: Move AC_LIBOBJ invocations to module description.
11047         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11048         here...
11049         * modules/iswblank (configure.ac): ... to here.
11050
11051 2011-05-21  Bruno Haible  <bruno@clisp.org>
11052
11053         atanl: Move AC_LIBOBJ invocations to module description.
11054         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11055         * modules/atanl (configure.ac): ... to here.
11056
11057 2011-05-21  Bruno Haible  <bruno@clisp.org>
11058
11059         acosl: Move AC_LIBOBJ invocations to module description.
11060         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11061         * modules/acosl (configure.ac): ... to here.
11062
11063 2011-05-21  Bruno Haible  <bruno@clisp.org>
11064
11065         asinl: Respect rules for use of AC_LIBOBJ.
11066         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11067         * modules/asinl (configure.ac): ... to here.
11068
11069 2011-05-21  Bruno Haible  <bruno@clisp.org>
11070
11071         tanl: Move AC_LIBOBJ invocations to module description.
11072         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11073         * modules/tanl (configure.ac): ... to here.
11074
11075 2011-05-21  Bruno Haible  <bruno@clisp.org>
11076
11077         cosl: Move AC_LIBOBJ invocations to module description.
11078         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11079         * modules/cosl (configure.ac): ... to here.
11080
11081 2011-05-21  Bruno Haible  <bruno@clisp.org>
11082
11083         sinl: Move AC_LIBOBJ invocations to module description.
11084         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11085         * modules/sinl (configure.ac): ... to here.
11086
11087 2011-05-21  Bruno Haible  <bruno@clisp.org>
11088
11089         logl: Move AC_LIBOBJ invocations to module description.
11090         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11091         * modules/logl (configure.ac): ... to here.
11092
11093 2011-05-21  Bruno Haible  <bruno@clisp.org>
11094
11095         expl: Move AC_LIBOBJ invocations to module description.
11096         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11097         * modules/expl (configure.ac): ... to here.
11098
11099 2011-05-21  Bruno Haible  <bruno@clisp.org>
11100
11101         roundl: Move AC_LIBOBJ invocations to module description.
11102         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11103         * modules/roundl (configure.ac): ... to here.
11104
11105 2011-05-21  Bruno Haible  <bruno@clisp.org>
11106
11107         round: Move AC_LIBOBJ invocations to module description.
11108         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11109         * modules/round (configure.ac): ... to here.
11110
11111 2011-05-21  Bruno Haible  <bruno@clisp.org>
11112
11113         roundf: Move AC_LIBOBJ invocations to module description.
11114         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11115         * modules/roundf (configure.ac): ... to here.
11116
11117 2011-05-21  Bruno Haible  <bruno@clisp.org>
11118
11119         truncl: Move AC_LIBOBJ invocations to module description.
11120         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11121         * modules/truncl (configure.ac): ... to here.
11122
11123 2011-05-21  Bruno Haible  <bruno@clisp.org>
11124
11125         trunc: Move AC_LIBOBJ invocations to module description.
11126         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11127         * modules/trunc (configure.ac): ... to here.
11128
11129 2011-05-21  Bruno Haible  <bruno@clisp.org>
11130
11131         truncf: Move AC_LIBOBJ invocations to module description.
11132         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11133         * modules/truncf (configure.ac): ... to here.
11134
11135 2011-05-21  Bruno Haible  <bruno@clisp.org>
11136
11137         ceill: Move AC_LIBOBJ invocations to module description.
11138         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11139         * modules/ceill (configure.ac): ... to here.
11140
11141 2011-05-21  Bruno Haible  <bruno@clisp.org>
11142
11143         ceil: Move AC_LIBOBJ invocations to module description.
11144         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11145         * modules/ceil (configure.ac): ... to here.
11146
11147 2011-05-21  Bruno Haible  <bruno@clisp.org>
11148
11149         ceilf: Move AC_LIBOBJ invocations to module description.
11150         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11151         * modules/ceilf (configure.ac): ... to here.
11152
11153 2011-05-21  Bruno Haible  <bruno@clisp.org>
11154
11155         floorl: Respect rules for use of AC_LIBOBJ.
11156         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11157         * modules/floorl (configure.ac): ... to here.
11158
11159 2011-05-21  Bruno Haible  <bruno@clisp.org>
11160
11161         floor: Respect rules for use of AC_LIBOBJ.
11162         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11163         * modules/floor (configure.ac): ... to here.
11164
11165 2011-05-21  Bruno Haible  <bruno@clisp.org>
11166
11167         floorf: Move AC_LIBOBJ invocations to module description.
11168         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11169         * modules/floorf (configure.ac): ... to here.
11170
11171 2011-05-20  Bruno Haible  <bruno@clisp.org>
11172
11173         sqrtl: Respect rules for use of AC_LIBOBJ.
11174         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11175         * modules/sqrtl (configure.ac): ... to here.
11176
11177 2011-05-20  Bruno Haible  <bruno@clisp.org>
11178
11179         ldexpl: Respect rules for use of AC_LIBOBJ.
11180         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11181         * modules/ldexpl (configure.ac): ... to here.
11182
11183 2011-05-20  Bruno Haible  <bruno@clisp.org>
11184
11185         frexpl*: Respect rules for use of AC_LIBOBJ.
11186         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11187         invocation from here...
11188         * modules/frexpl (configure.ac): ... to here.
11189         * modules/frexpl-nolibm (configure.ac): ... and here.
11190
11191 2011-05-20  Bruno Haible  <bruno@clisp.org>
11192
11193         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11194         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11195         invocation from here...
11196         * modules/frexp (configure.ac): ... to here.
11197         * modules/frexp-nolibm (configure.ac): ... and here.
11198
11199 2011-05-20  Bruno Haible  <bruno@clisp.org>
11200
11201         isnan: Respect rules for use of AC_LIBOBJ.
11202         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11203         invocations here.
11204         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11205         REPLACE_ISNAN.
11206         * modules/isnand (configure.ac): Likewise.
11207         * modules/isnanl (configure.ac): Likewise.
11208
11209 2011-05-20  Bruno Haible  <bruno@clisp.org>
11210
11211         isnanl*: Respect rules for use of AC_LIBOBJ.
11212         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11213         invocation from here...
11214         * modules/isnanl (configure.ac): ... to here.
11215         * modules/isnanl-nolibm (configure.ac): ... and here.
11216
11217 2011-05-20  Bruno Haible  <bruno@clisp.org>
11218
11219         isnand*: Move AC_LIBOBJ invocations to module description.
11220         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11221         invocation from here...
11222         * modules/isnand (configure.ac): ... to here.
11223         * modules/isnand-nolibm (configure.ac): ... and here.
11224
11225 2011-05-20  Bruno Haible  <bruno@clisp.org>
11226
11227         isnanf*: Move AC_LIBOBJ invocations to module description.
11228         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11229         invocation from here...
11230         * modules/isnanf (configure.ac): ... to here.
11231         * modules/isnanf-nolibm (configure.ac): ... and here.
11232
11233 2011-05-20  Bruno Haible  <bruno@clisp.org>
11234
11235         isnan*: Separate the AC_LIBOBJ invocations.
11236         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11237         AC_LIBOBJ invocation.
11238         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11239         here.
11240         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11241         AC_LIBOBJ invocation.
11242         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11243         here.
11244         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11245         AC_LIBOBJ invocation.
11246         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11247         here.
11248         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11249
11250 2011-05-08  Bruno Haible  <bruno@clisp.org>
11251
11252         isinf: Move AC_LIBOBJ invocations to module description.
11253         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11254         * modules/isinf (configure.ac): ... to here.
11255
11256 2011-05-08  Bruno Haible  <bruno@clisp.org>
11257
11258         isfinite: Move AC_LIBOBJ invocations to module description.
11259         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11260         * modules/isfinite (configure.ac): ... to here.
11261
11262 2011-05-08  Bruno Haible  <bruno@clisp.org>
11263
11264         isblank: Move AC_LIBOBJ invocations to module description.
11265         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11266         here...
11267         * modules/isblank (configure.ac): ... to here.
11268
11269 2011-05-08  Bruno Haible  <bruno@clisp.org>
11270
11271         isapipe: Move AC_LIBOBJ invocations to module description.
11272         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11273         gl_PREREQ_ISAPIPE invocations from here...
11274         * modules/isapipe (configure.ac): ... to here.
11275         (Depends-on): Update condition.
11276
11277 2011-05-08  Bruno Haible  <bruno@clisp.org>
11278
11279         ioctl: Move AC_LIBOBJ invocations to module description.
11280         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11281         invocations from here...
11282         * modules/ioctl (configure.ac): ... to here.
11283         (Depends-on): Update condition.
11284
11285 2011-05-08  Bruno Haible  <bruno@clisp.org>
11286
11287         imaxdiv: Move AC_LIBOBJ invocations to module description.
11288         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11289         invocations from here...
11290         * modules/imaxdiv (configure.ac): ... to here.
11291
11292 2011-05-08  Bruno Haible  <bruno@clisp.org>
11293
11294         imaxabs: Move AC_LIBOBJ invocations to module description.
11295         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11296         invocations from here...
11297         * modules/imaxabs (configure.ac): ... to here.
11298
11299 2011-05-08  Bruno Haible  <bruno@clisp.org>
11300
11301         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11302         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11303         AC_LIBOBJ invocations from here...
11304         * modules/getaddrinfo (configure.ac): ... to here.
11305         (Depends-on): Add conditions.
11306
11307 2011-05-08  Bruno Haible  <bruno@clisp.org>
11308
11309         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11310         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11311         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11312         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11313         (gl_PREREQ_INET_PTON): ... from here.
11314         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11315         gl_PREREQ_INET_PTON here.
11316         (Depends-on): Update condition.
11317
11318 2011-05-08  Bruno Haible  <bruno@clisp.org>
11319
11320         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11321         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11322         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11323         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11324         (gl_PREREQ_INET_NTOP): ... from here.
11325         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11326         gl_PREREQ_INET_NTOP here.
11327         (Depends-on): Update condition.
11328
11329 2011-05-08  Bruno Haible  <bruno@clisp.org>
11330
11331         iconv_open: Move AC_LIBOBJ invocations to module description.
11332         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11333         AC_LIBOBJ invocations from here...
11334         * modules/iconv_open (configure.ac): ... to here.
11335
11336 2011-05-08  Bruno Haible  <bruno@clisp.org>
11337
11338         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11339         If module 'iconv_open' is among the main modules and module
11340         'iconv_open-utf' is among the tests dependencies, then
11341         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11342         return the special iconv_t values. Therefore iconv() and iconv_close()
11343         must support these special iconv_t values, already in lib, not only in
11344         tests.
11345         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11346         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11347         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11348         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11349         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11350         (Depends-on): Add the dependencies of iconv_open-utf.
11351         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11352         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11353         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11354
11355 2011-05-08  Bruno Haible  <bruno@clisp.org>
11356
11357         group-member: Move AC_LIBOBJ invocations to module description.
11358         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11359         gl_PREREQ_GROUP_MEMBER invocations from here...
11360         * modules/group-member (configure.ac): ... to here.
11361
11362 2011-05-08  Bruno Haible  <bruno@clisp.org>
11363
11364         grantpt: Move AC_LIBOBJ invocations to module description.
11365         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11366         invocations from here...
11367         * modules/grantpt (configure.ac): ... to here.
11368
11369 2011-05-08  Bruno Haible  <bruno@clisp.org>
11370
11371         glob: Move AC_LIBOBJ invocations to module description.
11372         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11373         from here...
11374         * modules/glob (configure.ac): ... to here.
11375
11376 2011-05-08  Bruno Haible  <bruno@clisp.org>
11377
11378         getusershell: Move AC_LIBOBJ invocations to module description.
11379         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11380         Move AC_LIBOBJ invocation from here...
11381         * modules/getusershell (configure.ac): ... to here.
11382         (Depends-on): Update condition.
11383
11384 2011-05-08  Bruno Haible  <bruno@clisp.org>
11385
11386         gettimeofday: Move AC_LIBOBJ invocations to module description.
11387         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11388         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11389         gl_PREREQ_GETTIMEOFDAY invocations from here...
11390         * modules/gettimeofday (configure.ac): ... to here.
11391
11392 2011-05-08  Bruno Haible  <bruno@clisp.org>
11393
11394         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11395         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11396         just gl_FUNC_TZSET.
11397         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11398         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11399         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11400         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11401
11402 2011-05-08  Bruno Haible  <bruno@clisp.org>
11403
11404         getsubopt: Move AC_LIBOBJ invocations to module description.
11405         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11406         gl_PREREQ_GETSUBOPT invocations from here...
11407         * modules/getsubopt (configure.ac): ... to here.
11408
11409 2011-05-08  Bruno Haible  <bruno@clisp.org>
11410
11411         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11412         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11413         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11414         * modules/getpass-gnu (configure.ac): ... to here.
11415
11416 2011-05-08  Bruno Haible  <bruno@clisp.org>
11417
11418         getpass: Move AC_LIBOBJ invocations to module description.
11419         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11420         gl_PREREQ_GETPASS invocations from here...
11421         * modules/getpass (configure.ac): ... to here.
11422
11423 2011-05-08  Bruno Haible  <bruno@clisp.org>
11424
11425         getpagesize: Move AC_LIBOBJ invocations to module description.
11426         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11427         from here...
11428         * modules/getpagesize (configure.ac): ... to here.
11429
11430 2011-05-08  Bruno Haible  <bruno@clisp.org>
11431
11432         getopt: Move AC_LIBOBJ invocations to module description.
11433         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11434         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11435         invocations from here...
11436         * modules/getopt-gnu (configure.ac): ... to here.
11437         * modules/getopt-posix (configure.ac): ... and here.
11438         (Depends-on): Update condition.
11439
11440 2011-05-08  Bruno Haible  <bruno@clisp.org>
11441
11442         getopt, argp: Respect rules for use of AC_LIBOBJ.
11443         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11444         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11445         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11446         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11447
11448 2011-05-08  Bruno Haible  <bruno@clisp.org>
11449
11450         getlogin_r: Move AC_LIBOBJ invocations to module description.
11451         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11452         gl_PREREQ_GETLOGIN_R invocations from here...
11453         * modules/getlogin_r (configure.ac): ... to here.
11454
11455 2011-05-08  Bruno Haible  <bruno@clisp.org>
11456
11457         getlogin: Move AC_LIBOBJ invocations to module description.
11458         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11459         here...
11460         * modules/getlogin (configure.ac): ... to here.
11461
11462 2011-05-08  Bruno Haible  <bruno@clisp.org>
11463
11464         getloadavg: Move AC_LIBOBJ invocations to module description.
11465         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11466         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11467         * modules/getloadavg (configure.ac): ... to here.
11468
11469 2011-05-08  Bruno Haible  <bruno@clisp.org>
11470
11471         gethrxtime: Move AC_LIBOBJ invocations to module description.
11472         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11473         LIB_GETHRXTIME from here...
11474         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11475         invocations from here...
11476         * modules/gethrxtime (configure.ac): ... to here.
11477
11478 2011-05-08  Bruno Haible  <bruno@clisp.org>
11479
11480         gethostname: Move AC_LIBOBJ invocations to module description.
11481         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11482         gl_PREREQ_GETHOSTNAME invocations from here...
11483         * modules/gethostname (configure.ac): ... to here.
11484
11485 2011-05-08  Bruno Haible  <bruno@clisp.org>
11486
11487         getgroups: Move AC_LIBOBJ invocations to module description.
11488         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11489         here...
11490         * modules/getgroups (configure.ac): ... to here.
11491
11492 2011-05-08  Bruno Haible  <bruno@clisp.org>
11493
11494         getdtablesize: Move AC_LIBOBJ invocations to module description.
11495         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11496         invocation from here...
11497         * modules/getdtablesize (configure.ac): ... to here.
11498
11499 2011-05-08  Bruno Haible  <bruno@clisp.org>
11500
11501         getdomainname: Move AC_LIBOBJ invocations to module description.
11502         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11503         gl_PREREQ_GETDOMAINNAME invocations from here...
11504         * modules/getdomainname (configure.ac): ... to here.
11505
11506 2011-05-08  Bruno Haible  <bruno@clisp.org>
11507
11508         getline: Move AC_LIBOBJ invocations to module description.
11509         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11510         invocations from here...
11511         * modules/getline (configure.ac): ... to here.
11512
11513 2011-05-08  Bruno Haible  <bruno@clisp.org>
11514
11515         getline: Simplify.
11516         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11517         It's already handled through the module dependency.
11518
11519 2011-05-08  Bruno Haible  <bruno@clisp.org>
11520
11521         getdelim: Move AC_LIBOBJ invocations to module description.
11522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11523         and gl_PREREQ_GETDELIM invocations from here...
11524         * modules/getdelim (configure.ac): ... to here.
11525         (Depends-on): Fix condition.
11526
11527 2011-05-08  Bruno Haible  <bruno@clisp.org>
11528
11529         getcwd: Move AC_LIBOBJ invocations to module description.
11530         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11531         invocations from here...
11532         * modules/getcwd (configure.ac): ... to here.
11533
11534 2011-05-08  Bruno Haible  <bruno@clisp.org>
11535
11536         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11537         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11538         here...
11539         * modules/getcwd-lgpl (configure.ac): ... to here.
11540
11541 2011-05-07  Bruno Haible  <bruno@clisp.org>
11542
11543         crypto/gc: Move AC_LIBOBJ invocations to module description.
11544         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11545         * modules/crypto/gc (configure.ac): ... to here.
11546
11547 2011-05-07  Bruno Haible  <bruno@clisp.org>
11548
11549         fwriting: Move AC_LIBOBJ invocations to module description.
11550         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11551         here...
11552         * modules/fwriting (configure.ac): ... to here.
11553
11554 2011-05-07  Bruno Haible  <bruno@clisp.org>
11555
11556         fwritable: Move AC_LIBOBJ invocations to module description.
11557         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11558         here...
11559         * modules/fwritable (configure.ac): ... to here.
11560
11561 2011-05-07  Bruno Haible  <bruno@clisp.org>
11562
11563         futimens: Move AC_LIBOBJ invocations to module description.
11564         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11565         here...
11566         * modules/futimens (configure.ac): ... to here.
11567
11568 2011-05-07  Bruno Haible  <bruno@clisp.org>
11569
11570         ftruncate: Move AC_LIBOBJ invocations to module description.
11571         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11572         gl_PREREQ_FTRUNCATE invocations from here...
11573         * modules/ftruncate (configure.ac): ... to here.
11574
11575 2011-05-07  Bruno Haible  <bruno@clisp.org>
11576
11577         fsync: Move AC_LIBOBJ invocations to module description.
11578         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11579         invocations from here...
11580         * modules/fsync (configure.ac): ... to here.
11581
11582 2011-05-07  Bruno Haible  <bruno@clisp.org>
11583
11584         fsusage: Move AC_LIBOBJ invocations to module description.
11585         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11586         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11587         * modules/fsusage (configure.ac): ... to here.
11588
11589 2011-05-07  Bruno Haible  <bruno@clisp.org>
11590
11591         freopen: Move AC_LIBOBJ invocations to module description.
11592         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11593         invocations from here...
11594         * modules/freopen (configure.ac): ... to here.
11595
11596 2011-05-07  Bruno Haible  <bruno@clisp.org>
11597
11598         free: Move AC_LIBOBJ invocations to module description.
11599         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11600         invocations from here...
11601         * modules/free (configure.ac): ... to here.
11602
11603 2011-05-07  Bruno Haible  <bruno@clisp.org>
11604
11605         freadable: Move AC_LIBOBJ invocations to module description.
11606         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11607         here...
11608         * modules/freadable (configure.ac): ... to here.
11609
11610 2011-05-07  Bruno Haible  <bruno@clisp.org>
11611
11612         fpurge: Move AC_LIBOBJ invocations to module description.
11613         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11614         invocations from here...
11615         * modules/fpurge (configure.ac): ... to here.
11616
11617 2011-05-07  Bruno Haible  <bruno@clisp.org>
11618
11619         fpending: Move AC_LIBOBJ invocations to module description.
11620         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11621         gl_FUNC_FPENDING.
11622         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11623         invocations from here...
11624         * modules/fpending (configure.ac): ... to here.
11625
11626 2011-05-07  Bruno Haible  <bruno@clisp.org>
11627
11628         fopen: Move AC_LIBOBJ invocations to module description.
11629         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11630         invocations from here...
11631         * modules/fopen (configure.ac): ... to here.
11632
11633 2011-05-07  Bruno Haible  <bruno@clisp.org>
11634
11635         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11636         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11637         gl_FUNC_FNMATCH_POSIX.
11638         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11639         invocations from here...
11640         * modules/fnmatch (configure.ac): ... to here.
11641         * modules/fnmatch-gnu (configure.ac): ... and here.
11642
11643 2011-05-07  Bruno Haible  <bruno@clisp.org>
11644
11645         flock: Move AC_LIBOBJ invocations to module description.
11646         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11647         invocations from here...
11648         * modules/flock (configure.ac): ... to here.
11649
11650 2011-05-07  Bruno Haible  <bruno@clisp.org>
11651
11652         fileblocks: Move AC_LIBOBJ invocations to module description.
11653         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11654         gl_PREREQ_FILEBLOCKS invocations from here...
11655         * modules/fileblocks (configure.ac): ... to here.
11656
11657 2011-05-06  Bruno Haible  <bruno@clisp.org>
11658
11659         fflush: Move AC_LIBOBJ invocations to module description.
11660         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11661         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11662         invocations from here...
11663         * modules/fflush (configure.ac): ... to here.
11664
11665 2011-05-06  Bruno Haible  <bruno@clisp.org>
11666
11667         fdopendir: Move AC_LIBOBJ invocations to module description.
11668         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11669         here...
11670         * modules/fdopendir (configure.ac): ... to here.
11671         (Depends-on): Improve conditions.
11672
11673 2011-05-06  Bruno Haible  <bruno@clisp.org>
11674
11675         _Exit: Move AC_LIBOBJ invocations to module description.
11676         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11677         invocations from here...
11678         * modules/_Exit (configure.ac): ... to here.
11679
11680 2011-05-21  Bruno Haible  <bruno@clisp.org>
11681
11682         euidaccess: Respect rules for use of AC_LIBOBJ.
11683         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11684         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11685         from here...
11686         * modules/euidaccess (configure.ac): ... to here.
11687
11688 2011-05-06  Bruno Haible  <bruno@clisp.org>
11689
11690         error: Move AC_LIBOBJ invocations to module description.
11691         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11692         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11693         invocations from here...
11694         * modules/error (configure.ac): ... to here.
11695
11696 2011-05-06  Bruno Haible  <bruno@clisp.org>
11697
11698         duplocale: Move AC_LIBOBJ invocations to module description.
11699         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11700         gl_PREREQ_DUPLOCALE invocations from here...
11701         * modules/duplocale (configure.ac): ... to here.
11702
11703 2011-05-05  Bruno Haible  <bruno@clisp.org>
11704
11705         dirfd: Move AC_LIBOBJ invocations to module description.
11706         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11707         gl_FUNC_DIRFD.
11708         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11709         here...
11710         * modules/dirfd (configure.ac): ... to here.
11711         (Depends-on): Fix condition.
11712
11713 2011-05-05  Bruno Haible  <bruno@clisp.org>
11714
11715         chown: Respect rules for use of AC_LIBOBJ.
11716         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11717         * modules/chown (configure.ac): ... to here.
11718
11719 2011-05-05  Bruno Haible  <bruno@clisp.org>
11720
11721         chdir-long: Move AC_LIBOBJ invocations to module description.
11722         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11723         gl_PREREQ_CHDIR_LONG invocations from here...
11724         * modules/chdir-long (configure.ac): ... to here.
11725
11726 2011-05-05  Bruno Haible  <bruno@clisp.org>
11727
11728         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11729         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11730         from here...
11731         * modules/canonicalize-lgpl (configure.ac): ... to here.
11732
11733 2011-05-05  Bruno Haible  <bruno@clisp.org>
11734
11735         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11736         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11737         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11738         REPLACE_CALLOC.
11739         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11740         * modules/calloc-gnu (configure.ac): Likewise.
11741
11742 2011-05-05  Bruno Haible  <bruno@clisp.org>
11743
11744         btowc: Move AC_LIBOBJ invocations to module description.
11745         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11746         invocations from here...
11747         * modules/btowc (configure.ac): ... to here.
11748
11749 2011-05-21  Bruno Haible  <bruno@clisp.org>
11750
11751         atexit: Move AC_LIBOBJ invocations to module description.
11752         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11753         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11754         here...
11755         * modules/atexit (configure.ac): ... to here.
11756
11757 2011-05-05  Bruno Haible  <bruno@clisp.org>
11758
11759         atoll: Move AC_LIBOBJ invocations to module description.
11760         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11761         invocations from here...
11762         * modules/atoll (configure.ac): ... to here.
11763
11764 2011-05-05  Bruno Haible  <bruno@clisp.org>
11765
11766         argz: Move AC_LIBOBJ invocations to module description.
11767         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11768         * modules/argz (configure.ac): ... to here.
11769
11770 2011-05-05  Bruno Haible  <bruno@clisp.org>
11771
11772         alphasort: Move AC_LIBOBJ invocations to module description.
11773         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11774         gl_PREREQ_ALPHASORT invocations from here...
11775         * modules/alphasort (configure.ac): ... to here.
11776
11777 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11778
11779         verify: new macro verify_expr; verify_true deprecated
11780         * NEWS: Mention this.
11781         * doc/verify.texi (Compile-time Assertions): Document this.
11782         * lib/verify.h (verify_true): Deprecate.
11783         (verify_expr): New macro.
11784         * tests/test-verify.c (function): Test verify_expr.
11785
11786 2011-06-14  Jim Meyering  <meyering@redhat.com>
11787
11788         init.sh: give more portable redirection-related advice in a comment
11789         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11790         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11791         for lots of discussion.  Stefano Lattarini suggested the solution
11792         of putting "9>&2" after the command.  Reported by Bruno Haible.
11793
11794 2011-06-13  Bruno Haible  <bruno@clisp.org>
11795
11796         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11797         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11798         'none'.
11799
11800 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11801
11802         ftoastr: use strtof only if HAVE_STRTOF
11803         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11805         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11806         * modules/ftoastr (configure.ac): Check for strtof.
11807
11808 2011-06-13  Bruno Haible  <bruno@clisp.org>
11809
11810         gnulib-tool: Addendum to 2011-06-08 commit.
11811         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11812         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11813
11814 2011-06-13  Bruno Haible  <bruno@clisp.org>
11815
11816         fseeko: Provide a non-inline replacement of fseek().
11817         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11818         * modules/fseeko (Depends-on): Add fseek.
11819         * modules/fseek (License): Change to LGPLv2+.
11820
11821 2011-06-13  Bruno Haible  <bruno@clisp.org>
11822
11823         ftello: Provide a non-inline replacement of ftell().
11824         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11825         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11826         not have ftello() (such as on mingw).
11827         * modules/ftello (Depends-on): Add ftell.
11828         * modules/ftell (License): Change to LGPLv2+.
11829
11830 2011-05-07  Bruno Haible  <bruno@clisp.org>
11831
11832         ftell: Move AC_LIBOBJ invocations to module description.
11833         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11834         * modules/ftell (configure.ac): ... to here.
11835
11836 2011-05-07  Bruno Haible  <bruno@clisp.org>
11837
11838         ftello: Respect rules for use of AC_LIBOBJ.
11839         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11840         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11841         here...
11842         * modules/ftello (configure.ac): ... to here.
11843
11844 2011-05-07  Bruno Haible  <bruno@clisp.org>
11845
11846         fseeko: Simplify.
11847         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11848         (gl_FUNC_FSEEKO): Inline it here.
11849
11850 2011-05-07  Bruno Haible  <bruno@clisp.org>
11851
11852         fseek: Move AC_LIBOBJ invocations to module description.
11853         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11854         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11855         * modules/fseek (configure.ac): ... to here.
11856
11857 2011-05-07  Bruno Haible  <bruno@clisp.org>
11858
11859         fseek: Respect rules for use of AC_LIBOBJ.
11860         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11861         here...
11862         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11863
11864 2011-05-07  Bruno Haible  <bruno@clisp.org>
11865
11866         fseeko: Respect rules for use of AC_LIBOBJ.
11867         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11868         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11869         here...
11870         * modules/fseeko (configure.ac): ... to here.
11871
11872 2011-06-13  Bruno Haible  <bruno@clisp.org>
11873
11874         gnulib-tool: Allow comments in the 'Depends-on' section.
11875         * doc/gnulib.texi (Module description): Mention comment syntax in the
11876         Depends-on section.
11877         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11878
11879 2011-06-13  Bruno Haible  <bruno@clisp.org>
11880
11881         file-set.h: guard __attibute__ use, now that it's not always defined
11882         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11883         versions that support it.  This fixes a coreutils build failure with
11884         the vendor cc on HP-UX 11.31.
11885
11886 2011-06-12  Bruno Haible  <bruno@clisp.org>
11887
11888         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11889         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11890         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11891         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11892         (acl, aclsort): New declarations.
11893         (aclv_nontrivial): New declaration.
11894         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11895         (file_has_acl): Read also the second kind of HP-UX ACLs.
11896         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11897         kind of HP-UX ACLs if the first kind fails.
11898         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11899         second kind of HP-UX ACLs.
11900         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11901         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11902         agree.
11903         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11904         hpuxjfs.
11905         Handle hpuxjfs.
11906         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11907         hpuxjfs.
11908         Handle hpuxjfs.
11909         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11910         (func_test_same_acls): Use both lsacl and getacl.
11911         Handle hpuxjfs.
11912         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11913         (func_test_same_acls): Use both lsacl and getacl.
11914         Handle hpuxjfs.
11915
11916 2011-06-12  Bruno Haible  <bruno@clisp.org>
11917
11918         acl: Complete the 2010-08-10 fix.
11919         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11920         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11921         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11922         explicitly.
11923         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11924         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11925
11926 2011-06-12  Bruno Haible  <bruno@clisp.org>
11927
11928         spawn-pipe tests: Comments.
11929         * tests/test-spawn-pipe-child.c (main): Update comment.
11930         Reported by James Youngman <jay@gnu.org>.
11931
11932 2011-06-11  James Youngman  <jay@gnu.org>
11933
11934         New module 'stat-size'.
11935         * modules/stat-size: New module.  Provides macros for accessing
11936         file size information in instances of struct stat.  Depends on the
11937         fileblocks module because it calls st_blocks.
11938         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11939         * doc/gnulib.texi: Include stat-size.texi.
11940         * doc/stat-size.texi: Documentation for this module.
11941         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11942         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11943         AC_STRUCT_ST_BLOCKS.
11944
11945 2011-06-09  Bruno Haible  <bruno@clisp.org>
11946
11947         thread: Support pthreads-win32.
11948         * lib/glthread/thread.h (gl_thread_self): Define differently on
11949         pthreads-win32.
11950         (gl_null_thread): New declaration.
11951         (gl_thread_self_pointer): New macro.
11952         * lib/glthread/thread.c (gl_null_thread): New constant.
11953         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11954         gl_thread_self.
11955         * tests/test-tls.c: Likewise.
11956         Suggested by Paul Eggert. Reported by Eric Blake.
11957
11958 2011-06-09  Bruno Haible  <bruno@clisp.org>
11959
11960         thread: Fix confusion between NULL and 0.
11961         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11962         Reported by Paul Eggert.
11963
11964 2011-06-09  Bruno Haible  <bruno@clisp.org>
11965
11966         spawn-pipe tests: Avoid test failure on HP-UX 11.
11967         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11968         is closed.
11969
11970 2011-06-09  Bruno Haible  <bruno@clisp.org>
11971
11972         acl tests: Fix compilation error on HP-UX 11.
11973         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11974
11975 2011-06-09  Bruno Haible  <bruno@clisp.org>
11976
11977         rmdir: Avoid test failure on HP-UX 10.20.
11978         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11979         EEXIST.
11980
11981 2011-06-08  Eric Blake  <eblake@redhat.com>
11982
11983         perror: fix test on mingw
11984         * modules/perror-tests (Depends-on): Add dup2.
11985
11986         strerror_r-posix: fix on MacOS
11987         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11989         logic bug.
11990         * lib/strerror_r.c (strerror_r): Fix the bug.
11991         * lib/strerror.c (strerror): Likewise.
11992         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11993         problem.
11994         * doc/posix-functions/strerror.texi (strerror): Likewise.
11995         * doc/posix-functions/perror.texi (perror): Likewise.
11996         * tests/test-strerror.c (main): Enhance test.
11997         * tests/test-strerror_r.c (main): Likewise.
11998
11999 2011-06-08  Bruno Haible  <bruno@clisp.org>
12000
12001         gnulib-tool: Better isolation between different gnulib-tool invocations.
12002         * gnulib-tool: New option --witness-c-macro.
12003         (witness_c_macro): New variable.
12004         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
12005         AM_CPPFLAGS define it as a C macro.
12006         (func_emit_tests_Makefile_am): Likewise.
12007         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
12008         read it from there.
12009         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
12010         m4_define, not AC_DEFUN.
12011         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
12012         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
12013         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
12014         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
12015         s|...|...|, to substitute the values of the GNULIB_* module indicator
12016         variables.
12017         * modules/dirent (Makefile.am): Likewise.
12018         * modules/fcntl-h (Makefile.am): Likewise.
12019         * modules/iconv-h (Makefile.am): Likewise.
12020         * modules/langinfo (Makefile.am): Likewise.
12021         * modules/locale (Makefile.am): Likewise.
12022         * modules/math (Makefile.am): Likewise.
12023         * modules/netdb (Makefile.am): Likewise.
12024         * modules/poll-h (Makefile.am): Likewise.
12025         * modules/pty (Makefile.am): Likewise.
12026         * modules/search (Makefile.am): Likewise.
12027         * modules/signal (Makefile.am): Likewise.
12028         * modules/spawn (Makefile.am): Likewise.
12029         * modules/stdio (Makefile.am): Likewise.
12030         * modules/stdlib (Makefile.am): Likewise.
12031         * modules/string (Makefile.am): Likewise.
12032         * modules/sys_ioctl (Makefile.am): Likewise.
12033         * modules/sys_select (Makefile.am): Likewise.
12034         * modules/sys_socket (Makefile.am): Likewise.
12035         * modules/sys_stat (Makefile.am): Likewise.
12036         * modules/sys_times (Makefile.am): Likewise.
12037         * modules/sys_utsname (Makefile.am): Likewise.
12038         * modules/sys_wait (Makefile.am): Likewise.
12039         * modules/termios (Makefile.am): Likewise.
12040         * modules/time (Makefile.am): Likewise.
12041         * modules/unistd (Makefile.am): Likewise.
12042         * modules/wchar (Makefile.am): Likewise.
12043
12044 2011-06-08  Eric Blake  <eblake@redhat.com>
12045
12046         strerror: simplify replacement
12047         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12048         * modules/strerror (configure.ac): No prereqs needed here...
12049         * modules/strerror-override (configure.ac): ...but this needs it.
12050         (Files): Add file for needed prereq macro.
12051
12052 2011-06-08  Bruno Haible  <bruno@clisp.org>
12053
12054         strerror_r-posix: Tweaks.
12055         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12056         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12057         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12058         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12059         (gl_FUNC_STRERROR_R): ... to here.
12060         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12061
12062 2011-06-07  Eric Blake  <eblake@redhat.com>
12063
12064         perror: document fixed bugs
12065         * doc/posix-functions/perror.texi (perror): Document recent
12066         patches.
12067
12068 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12069
12070         stat-time: get_stat_birthtime failure is better-defined
12071         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12072         return a timestamp whose tv_sec and tv_nsec values are both -1.
12073         Previously, the spec said only that the tv_nsec value was negative.
12074         This upward-compatible change simplifies GNU tar a bit.
12075
12076 2011-06-07  Eric Blake  <eblake@redhat.com>
12077
12078         strerror_r-posix: work around cygwin 1.7.9
12079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12080         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12081         bug without replacing strerror_r.
12082         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12083         strerror_r is buggy, but without requiring strerror_r compilation.
12084         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12085
12086         test-perror: relax test to ignore cygwin bug
12087         * tests/test-perror2.c (main): Relax test on requiring detection
12088         of stream errors, and use unbuffered stream.
12089         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12090         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12091         * doc/posix-functions/fputc.texi (fputc): Likewise.
12092         * doc/posix-functions/fputs.texi (fputs): Likewise.
12093         * doc/posix-functions/fputws.texi (fputws): Likewise.
12094         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12095         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12096         * doc/posix-functions/getopt.texi (getopt): Likewise.
12097         * doc/posix-functions/perror.texi (perror): Likewise.
12098         * doc/posix-functions/printf.texi (printf): Likewise.
12099         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12100         * doc/posix-functions/psignal.texi (psignal): Likewise.
12101         * doc/posix-functions/putc.texi (putc): Likewise.
12102         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12103         Likewise.
12104         * doc/posix-functions/putchar.texi (putchar): Likewise.
12105         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12106         Likewise.
12107         * doc/posix-functions/puts.texi (puts): Likewise.
12108         * doc/posix-functions/putwc.texi (putwc): Likewise.
12109         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12110         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12111         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12112         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12113         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12114         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12115         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12116         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12117
12118 2011-05-22  Bruno Haible  <bruno@clisp.org>
12119
12120         strerror: Move AC_LIBOBJ invocations to module description.
12121         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12122         gl_PREREQ_STRERROR invocations from here...
12123         * modules/strerror (configure.ac): ... to here.
12124
12125 2011-05-21  Bruno Haible  <bruno@clisp.org>
12126
12127         perror: Use common idiom.
12128         * modules/perror (configure.ac): Reorder statements.
12129
12130 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12131
12132         tests: fix usage message in 'mktempd_'
12133         * tests/init.sh (mktempd_): In the usage message, use literal
12134         'mktempd_', not '$ME' (which is even undefined), as the name of
12135         the subroutine.
12136
12137 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12138
12139         tests init: new function 'fatal_', for hard errors
12140         Before this patch, the only way offered by tests/init.sh to
12141         properly signal a hard error was the `framework_failure_'
12142         function.  But the error message issued by that function,
12143         as its name would suggest, refers to a set-up failure in the
12144         testsuite, while hard errors can obviously also be due to
12145         other reasons.  The best way to fix this inconsistency is to
12146         introduce a new function with a more general error message.
12147         * tests/init.sh (fatal_): New function.
12148
12149 2011-06-06  Eric Blake  <eblake@redhat.com>
12150
12151         canonicalize-lgpl: use common idiom
12152         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12153         over newer POSIX -Rf.
12154         Reported by Bruno Haible.
12155
12156         canonicalize-lgpl: work around AIX realpath bug
12157         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12158         * doc/posix-functions/realpath.texi (realpath): Document it.
12159         Reported by Bruno Haible.
12160
12161         strerror: work around FreeBSD bug
12162         * lib/strerror.c (strerror): Special case 0.
12163         Reported by Bruno Haible.
12164
12165         strerror-override: avoid bloating errno module
12166         * modules/errno (Files, configure.ac): Move replacement strings...
12167         * modules/strerror-override: ...to new module.
12168         * modules/strerror (Depends-on): Add strerror-override.
12169         * modules/strerror_r-posix (Depends-on): Likewise.
12170         * MODULES.html.sh: Document new module.
12171         Reported by Bruno Haible.
12172
12173 2011-06-06  Bruno Haible  <bruno@clisp.org>
12174
12175         spawn-pipe tests: Rename program.
12176         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12177         * tests/test-spawn-pipe-child.c: Update comment.
12178         * tests/test-spawn-pipe.sh: Update.
12179         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12180
12181         spawn-pipe tests: Link the child program only against libc.
12182         * tests/test-spawn-pipe-child.c: New file, extracted from
12183         tests/test-spawn-pipe.c.
12184         (main): Expect only one argument.
12185         (is_open): New function, copied from tests/test-pipe.c.
12186         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12187         (child_main): Remove function.
12188         (test_pipe): Pass only one argument to the child program.
12189         (main): Remove child process code. Expect the child program's name as
12190         first argument.
12191         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12192         argument.
12193         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12194         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12195         test-spawn-pipe-child against no libraries.
12196
12197 2011-06-06  Bruno Haible  <bruno@clisp.org>
12198
12199         careadlinkat: Avoid mismatch between ssize_t and int.
12200         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12201         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12202
12203 2011-06-06  Jim Meyering  <meyering@redhat.com>
12204
12205         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12206         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12207         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12208
12209 2011-06-05  Bruno Haible  <bruno@clisp.org>
12210
12211         ansi-c++-opt: Interoperability with libtool.
12212         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12213         set the variable to "no", not to ":".
12214         * NEWS: Mention the change.
12215
12216 2011-06-05  Bruno Haible  <bruno@clisp.org>
12217
12218         acl: Fix test failure on AIX 7.
12219         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12220         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12221
12222 2011-06-05  Bruno Haible  <bruno@clisp.org>
12223
12224         pipe-filter-ii: Fix test failure on AIX and IRIX.
12225         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12226         with EAGAIN, retry with a smaller buffer size.
12227
12228 2011-06-05  Bruno Haible  <bruno@clisp.org>
12229
12230         localename: Fix link dependencies.
12231         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12232         * modules/localename-tests (Makefile.am): Link test-localename with
12233         $(LIBTHREAD).
12234
12235 2011-06-05  Bruno Haible  <bruno@clisp.org>
12236
12237         error: Avoid gcc warning.
12238         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12239
12240 2011-06-05  Bruno Haible  <bruno@clisp.org>
12241
12242         unsetenv: Avoid gcc warning.
12243         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12244
12245 2011-06-05  Bruno Haible  <bruno@clisp.org>
12246
12247         setenv: Avoid gcc warning.
12248         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12249
12250 2011-06-05  Bruno Haible  <bruno@clisp.org>
12251
12252         sys_select: Ensure memset is declared also on AIX 7.
12253         * lib/sys_select.in.h: Include <string.h> also on AIX.
12254         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12255         self-contained also on AIX 7.1.
12256
12257 2011-06-04  Jim Meyering  <meyering@redhat.com>
12258
12259         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12260         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12261         function name, "error".
12262         (_gl_translatable_diag_func_re): New configurable variable.
12263
12264 2011-06-04  Bruno Haible  <bruno@clisp.org>
12265
12266         getopt: Avoid gcc warning.
12267         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12268
12269 2011-06-04  Bruno Haible  <bruno@clisp.org>
12270
12271         strerror_r: Fix comments.
12272         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12273         commit.
12274
12275 2011-06-04  Bruno Haible  <bruno@clisp.org>
12276
12277         perror: Fix compilation error.
12278         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12279         Undefine fprintf, not sprintf.
12280         * modules/perror (Depends-on): Remove intprops, verify.
12281
12282 2011-06-04  Bruno Haible  <bruno@clisp.org>
12283
12284         setlocale: Enable replacement on Cygwin 1.5.
12285         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12286         Cygwin 1.5.x.
12287         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12288         LC_CTYPE category also exists on Cygwin 1.5.x.
12289
12290 2011-06-04  Bruno Haible  <bruno@clisp.org>
12291
12292         strerror-override: Don't disable symbol renamings.
12293         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12294         * lib/strerror-override.c: Include config.h.
12295         (strerror_override): Don't undefine.
12296
12297 2011-06-03  Bruno Haible  <bruno@clisp.org>
12298
12299         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12300         * lib/localename.h: Update copyright header.
12301         * lib/localename.c: Likewise.
12302         * lib/relocatable.h: Likewise.
12303         * lib/relocatable.c: Likewise.
12304
12305 2011-06-02  Bruno Haible  <bruno@clisp.org>
12306
12307         doc: Fix a module name.
12308         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12309
12310 2011-06-02  Bruno Haible  <bruno@clisp.org>
12311
12312         pipe2: Remove dependency on 'nonblocking' module.
12313         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12314         O_NONBLOCK is defined by gnulib.
12315         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12316         is zero.
12317         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12318         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12319         defined by gnulib.
12320         (get_nonblocking_flag): New function.
12321         (main): Test O_NONBLOCK flag only if it is nonzero.
12322         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12323
12324 2011-06-03  Jim Meyering  <meyering@redhat.com>
12325
12326         maint: three new prohibit-header-without-use rules
12327         Prohibit use of cloexec.h, posixver.h, same.h without use.
12328         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12329         (sc_prohibit_posixver_without_use): Likewise.
12330         (sc_prohibit_same_without_use): Likewise.
12331
12332 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12333
12334         allocator: 'die' routine is now given requested size
12335         * lib/allocator.h (struct allocator.die): New size arg.
12336         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12337         If the actual problem is an ssize_t limitation, not a size_t or
12338         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12339
12340 2011-06-01  Eric Blake  <eblake@redhat.com>
12341
12342         strerror: drop strerror_r dependency
12343         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12344         * lib/strerror-override.c (strerror_override): ...to new file.
12345         * lib/strerror-override.h: Add prototype.
12346         * lib/strerror-impl.h: Delete.
12347         * lib/strerror.c (strerror): New implementation.
12348         * modules/errno (Files): Add new files.
12349         (configure.ac): Compile new file as appropriate.
12350         * modules/strerror (Files): Drop unused file.
12351         (Depends-on): Drop strerror_r-posix.
12352         * MODULES.html.sh: Document strerror_r-posix.
12353         Requested by Sam Steingold.
12354
12355         perror: call strerror_r directly
12356         * modules/perror (Files): Drop strerror-impl.h.
12357         * lib/perror.c (perror): Use our own stack buffer, rather than
12358         calling a wrapper that uses static storage.
12359         * doc/posix-functions/perror.texi (perror): Document a limitation
12360         of our replacement.
12361
12362         strerror_r: fix includes for FreeBSD
12363         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12364         since we use abort on some platforms.
12365         Reported by Matthias Bolte.
12366
12367 2011-05-31  Bruno Haible  <bruno@clisp.org>
12368
12369         Fix link errors in tests: openat-die uses gettext-h.
12370         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12371         against $(LIBINTL).
12372         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12373         against $(LIBINTL).
12374         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12375         $(LIBINTL).
12376         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12377         against $(LIBINTL).
12378         * modules/linkat-tests (Makefile.am): Link test-linkat against
12379         $(LIBINTL).
12380         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12381         $(LIBINTL).
12382         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12383         against $(LIBINTL).
12384         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12385         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12386         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12387         $(LIBINTL).
12388         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12389         $(LIBINTL).
12390         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12391         $(LIBINTL).
12392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12393
12394 2011-05-31  Bruno Haible  <bruno@clisp.org>
12395
12396         Fix link errors in tests: wait-process uses gettext-h.
12397         * modules/nonblocking-pipe-tests (Makefile.am): Set
12398         test_nonblocking_pipe_main_LDADD.
12399         * modules/nonblocking-socket-tests (Makefile.am): Link
12400         test-nonblocking-socket-main against $(LIBINTL).
12401         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12402
12403 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12404
12405         assert-h: work around 'verify' incompatibility
12406         * lib/verify.h: Use @...@ directives, not ifdef.
12407         * modules/assert-h (assert.h): Implement the directives.
12408         (assert.h): Substitute the symbol-prefix more consistently.
12409
12410 2011-05-29  Jim Meyering  <meyering@redhat.com>
12411
12412         trim: remove three superfluous assignments
12413         * lib/trim.c (trim2): Remove three superfluous assignments
12414         and correct brace positioning.
12415
12416 2011-05-29  Bruno Haible  <bruno@clisp.org>
12417
12418         wctype-h: Avoid namespace pollution on Solaris 2.6.
12419         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12420         identifiers.
12421         * doc/posix-headers/wctype.texi: Mention the problem.
12422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12423
12424 2011-05-28  Jim Meyering  <meyering@redhat.com>
12425
12426         parse-datetime.y: accommodate -Wstrict-overflow
12427         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12428         placate -Wstrict-overflow.
12429
12430         trim: avoid a warning from -O2 -Wstrict-overflow
12431         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12432
12433 2011-05-29  Bruno Haible  <bruno@clisp.org>
12434
12435         gnulib-tool: Fix bug in yesterday's commit.
12436         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12437         twice.
12438
12439 2011-05-29  Bruno Haible  <bruno@clisp.org>
12440
12441         Allow multiple gnulib generated include files to be combined.
12442         * gnulib-tool (func_compute_include_guard_prefix): New function.
12443         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12444         ${gl_include_guard_prefix} references.
12445         (func_import, func_create_testdir): Invoke
12446         func_compute_include_guard_prefix.
12447         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12448         * lib/ctype.in.h: Likewise.
12449         * lib/dirent.in.h: Likewise.
12450         * lib/errno.in.h: Likewise.
12451         * lib/fcntl.in.h: Likewise.
12452         * lib/float.in.h: Likewise.
12453         * lib/getopt.in.h: Likewise.
12454         * lib/iconv.in.h: Likewise.
12455         * lib/langinfo.in.h: Likewise.
12456         * lib/locale.in.h: Likewise.
12457         * lib/math.in.h: Likewise.
12458         * lib/netdb.in.h: Likewise.
12459         * lib/netinet_in.in.h: Likewise.
12460         * lib/poll.in.h: Likewise.
12461         * lib/pthread.in.h: Likewise.
12462         * lib/pty.in.h: Likewise.
12463         * lib/sched.in.h: Likewise.
12464         * lib/se-selinux.in.h: Likewise.
12465         * lib/search.in.h: Likewise.
12466         * lib/signal.in.h: Likewise.
12467         * lib/spawn.in.h: Likewise.
12468         * lib/stdarg.in.h: Likewise.
12469         * lib/stddef.in.h: Likewise.
12470         * lib/stdint.in.h: Likewise.
12471         * lib/stdio.in.h: Likewise.
12472         * lib/stdlib.in.h: Likewise.
12473         * lib/string.in.h: Likewise.
12474         * lib/strings.in.h: Likewise.
12475         * lib/sys_file.in.h: Likewise.
12476         * lib/sys_ioctl.in.h: Likewise.
12477         * lib/sys_select.in.h: Likewise.
12478         * lib/sys_socket.in.h: Likewise.
12479         * lib/sys_stat.in.h: Likewise.
12480         * lib/sys_time.in.h: Likewise.
12481         * lib/sys_times.in.h: Likewise.
12482         * lib/sys_uio.in.h: Likewise.
12483         * lib/sys_utsname.in.h: Likewise.
12484         * lib/sys_wait.in.h: Likewise.
12485         * lib/sysexits.in.h: Likewise.
12486         * lib/termios.in.h: Likewise.
12487         * lib/time.in.h: Likewise.
12488         * lib/unistd.in.h: Likewise.
12489         * lib/wchar.in.h: Likewise.
12490         * lib/wctype.in.h: Likewise.
12491         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12492         * modules/ctype (Makefile.am): Likewise.
12493         * modules/dirent (Makefile.am): Likewise.
12494         * modules/errno (Makefile.am): Likewise.
12495         * modules/fcntl-h (Makefile.am): Likewise.
12496         * modules/float (Makefile.am): Likewise.
12497         * modules/getopt-posix (Makefile.am): Likewise.
12498         * modules/iconv-h (Makefile.am): Likewise.
12499         * modules/langinfo (Makefile.am): Likewise.
12500         * modules/locale (Makefile.am): Likewise.
12501         * modules/math (Makefile.am): Likewise.
12502         * modules/netdb (Makefile.am): Likewise.
12503         * modules/netinet_in (Makefile.am): Likewise.
12504         * modules/poll-h (Makefile.am): Likewise.
12505         * modules/pthread (Makefile.am): Likewise.
12506         * modules/pty (Makefile.am): Likewise.
12507         * modules/sched (Makefile.am): Likewise.
12508         * modules/search (Makefile.am): Likewise.
12509         * modules/selinux-h (Makefile.am): Likewise.
12510         * modules/signal (Makefile.am): Likewise.
12511         * modules/spawn (Makefile.am): Likewise.
12512         * modules/stdarg (Makefile.am): Likewise.
12513         * modules/stddef (Makefile.am): Likewise.
12514         * modules/stdint (Makefile.am): Likewise.
12515         * modules/stdio (Makefile.am): Likewise.
12516         * modules/stdlib (Makefile.am): Likewise.
12517         * modules/string (Makefile.am): Likewise.
12518         * modules/strings (Makefile.am): Likewise.
12519         * modules/sys_file (Makefile.am): Likewise.
12520         * modules/sys_ioctl (Makefile.am): Likewise.
12521         * modules/sys_select (Makefile.am): Likewise.
12522         * modules/sys_socket (Makefile.am): Likewise.
12523         * modules/sys_stat (Makefile.am): Likewise.
12524         * modules/sys_time (Makefile.am): Likewise.
12525         * modules/sys_times (Makefile.am): Likewise.
12526         * modules/sys_uio (Makefile.am): Likewise.
12527         * modules/sys_utsname (Makefile.am): Likewise.
12528         * modules/sys_wait (Makefile.am): Likewise.
12529         * modules/sysexits (Makefile.am): Likewise.
12530         * modules/termios (Makefile.am): Likewise.
12531         * modules/time (Makefile.am): Likewise.
12532         * modules/unistd (Makefile.am): Likewise.
12533         * modules/wchar (Makefile.am): Likewise.
12534         * modules/wctype-h (Makefile.am): Likewise.
12535         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12536
12537 2011-05-29  Bruno Haible  <bruno@clisp.org>
12538
12539         assert-h: Allow multiple gnulib generated replacements to coexist.
12540         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12541
12542 2011-05-29  Bruno Haible  <bruno@clisp.org>
12543
12544         argp: Allow coexistence with strerror_r-posix module.
12545         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12546         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12547         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12548         not the glibc signature.
12549
12550 2011-05-28  Bruno Haible  <bruno@clisp.org>
12551
12552         gnulib-tool: Alternative structure of testdirs, similar to --import.
12553         * gnulib-tool: New option --single-configure.
12554         (func_usage): Document it.
12555         (single_configure): New variable.
12556         (func_modules_transitive_closure_separately,
12557         func_modules_transitive_closure_separately,
12558         func_determine_use_libtests, func_modules_add_dummy_separately,
12559         func_modules_to_filelist_separately): New functions, extracted from
12560         func_import.
12561         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12562         (func_import): Use the new functions.
12563         (func_create_testdir): Set final_modules. Handle $single_configure =
12564         true case.
12565
12566 2011-05-28  Bruno Haible  <bruno@clisp.org>
12567
12568         getloadavg: Remove an unreliable safety check.
12569         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12570         getloadavg.c is in place.
12571         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12572         Reported by Sam Steingold <sds@gnu.org>.
12573
12574 2011-05-28  Bruno Haible  <bruno@clisp.org>
12575
12576         doc: Cleanup yet another file produced by texinfo.tex.
12577         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12578
12579 2011-05-28  Bruno Haible  <bruno@clisp.org>
12580
12581         Finish the conditional dependencies mechanism.
12582         * gnulib-tool: New option --no-conditional-dependencies.
12583         (func_usage): Document it. Don't mark --conditional-dependencies as
12584         experimental.
12585         (cond_dependencies): The possible values can now be true, false, empty.
12586         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12587         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12588         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12589
12590 2011-05-28  Bruno Haible  <bruno@clisp.org>
12591
12592         doc: Use a recent texinfo.tex.
12593         * doc/Makefile (tex_opts): New variable.
12594         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12595
12596 2011-05-28  Jim Meyering  <meyering@redhat.com>
12597
12598         intprops.h: adjust comment to match code change
12599         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12600         only once, it *may* have side effects.  Also fix an unrelated typo.
12601         (_GL_INT_SIGNED): Likewise.
12602
12603 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12604
12605         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12606
12607 2011-05-26  Bruno Haible  <bruno@clisp.org>
12608
12609         mbsrchr: Avoid collision with system function on Interix.
12610         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12611         Reported by Markus Duft <mduft@gentoo.org>.
12612
12613 2011-05-15  James Youngman  <jay@gnu.org>
12614
12615         getopt: for ambiguous options, enumerate the possibilities.
12616         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12617         the ambiguous options when an ambiguous prefix is given. This was
12618         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12619         glibc change was
12620         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12621
12622 2011-05-25  Eric Blake  <eblake@redhat.com>
12623
12624         getcwd: work around mingw bug
12625         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12626         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12627         Reported by Matthias Bolte.
12628
12629 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12630
12631         test-intprops: disable -Wtype-limits diagnostics
12632         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12633         diagnostics.  Otherwise, the integer overflow macros generate many
12634         diagnostics.  Reported by Jim Meyering in
12635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12636
12637         intprops: shorten, to pacify gcc -Woverlength-strings
12638         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12639         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12640         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12641         likely to run afoul of C compiler limits for string constant lengths.
12642         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12643
12644 2011-05-24  Eric Blake  <eblake@redhat.com>
12645
12646         docs: document recently fixed glibc printf bug
12647         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12648         * doc/posix-functions/printf.texi (printf): Likewise.
12649         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12650         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12651
12652         closein-tests: convert to init.sh
12653         * modules/closein-tests (Files): Add init.sh
12654         * tests/test-closein.sh Use it.
12655
12656         yesno-tests: convert to init.sh
12657         * modules/yesno-tests (Files): Add init.sh.
12658         * tests/test-yesno.sh: Use it.
12659
12660         atexit-tests: ensure reliable exit status
12661         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12662         Reported by Bruno Haible.
12663
12664 2011-05-24  Bruno Haible  <bruno@clisp.org>
12665
12666         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12667         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12668         gl_PREREQ_STRERROR_R invocations from here...
12669         * modules/strerror_r-posix (configure.ac): ... to here.
12670
12671 2011-05-24  Eric Blake  <eblake@redhat.com>
12672
12673         strerror_r: fix missing header
12674         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12675
12676         strerror_r: fix AIX test failures
12677         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12678         ERANGE failure.
12679
12680         strerror_r: fix Solaris test failures
12681         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12682         failures.
12683         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12684
12685         strerror_r: enforce POSIX recommendations
12686         * lib/strerror_r.c (safe_copy): New helper method.
12687         (strerror_r): Guarantee a non-empty string.
12688         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12689         recent POSIX rulings and to match our strerror guarantees.
12690         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12691
12692 2011-05-24  Jim Meyering  <meyering@redhat.com>
12693
12694         test-perror2.c: avoid warning about unused variable
12695         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12696
12697 2011-05-24  Eric Blake  <eblake@redhat.com>
12698
12699         perror: avoid spurious test failure on HP-UX
12700         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12701
12702         tests: fix logic bug in init.sh
12703         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12704         shell.
12705
12706 2011-05-24  Jim Meyering  <meyering@redhat.com>
12707
12708         utimensat: do not reference an out-of-scope buffer
12709         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12710         declared in an inner scope, yet "times" would be dereferenced outside
12711         the scope in which "ts" was valid.
12712         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12713         of ts[2] "out/up", so that the use of aliased "times" (via
12714         "times = ts;") does not end up referencing an out-of-scope "ts"
12715
12716         opendir-safer.c: don't clobber errno; don't close negative FD
12717         * lib/opendir-safer.c (opendir_safer):
12718         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12719         file descriptor, and more importantly, don't clobber the
12720         offending errno value with EINVAL.  Before, upon failure
12721         of dup_safer, we would pass the negative file descriptor to
12722         fdopendir, which would clobber errno.
12723
12724 2011-05-23  Bruno Haible  <bruno@clisp.org>
12725
12726         idcache: Fix module description.
12727         * modules/idcache (Include): Set to "idcache.h".
12728
12729 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12730
12731         gnulib-tool: fix portability problem with MacOS sed
12732         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12733         before the "}".  Problem reported by Leo in
12734         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12735         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12736         sed_extract_condition1, sed_extract_condition2.
12737
12738 2011-05-23  Bruno Haible  <bruno@clisp.org>
12739
12740         hash: Simplify autoconf macro.
12741         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12742
12743 2011-05-23  Bruno Haible  <bruno@clisp.org>
12744
12745         getugroups: Fix module description.
12746         * modules/getugroups (Include): Set to "getugroups.h".
12747
12748 2011-05-23  Bruno Haible  <bruno@clisp.org>
12749
12750         linkat: Simplify autoconf macro.
12751         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12752
12753 2011-05-23  Bruno Haible  <bruno@clisp.org>
12754             Eric Blake  <eblake@redhat.com>
12755
12756         linkat, renameat: Update dependencies.
12757         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12758         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12759         symlinkat.
12760
12761 2011-05-23  Jim Meyering  <meyering@redhat.com>
12762
12763         maint.mk: more tight_scope improvements
12764         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12765         (_gl_TS_headers): Define only in if-0'd block.
12766         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12767         sometimes we must *not* use it.  Adjust uses accordingly.
12768         (sc_tight_scope): Use much simpler grep-based test to determine
12769         whether we skip this rule.
12770
12771         maint.mk: generalize/improve the tight-scope rule
12772         * top/maint.mk: Emit a warning when the test is skipped.
12773         (_gl_TS_dir): Add $(srcdir)/ prefix.
12774         (_gl_TS_function_match): Simplify, rather than trying
12775         to enumerate common types.  Otherwise, it would fail to match an
12776         "extern unsigned char const *" declaration in idutils.
12777         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12778         a way to support use of that type of macro.
12779         (_gl_TS_var_match): Simplify regexp.
12780         (_gl_TS_obj_files): New configurable variable.
12781         (_gl_TS_headers): Likewise.
12782
12783 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12784
12785         verify: fix bug when gnulib <assert.h> is also included
12786         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12787         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12788         Perhaps there's a better way, but this fixes the immediate problem.
12789         Problem reported by Bruno Haible in
12790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12791
12792 2011-05-22  Bruno Haible  <bruno@clisp.org>
12793
12794         xgetcwd: Simplify autoconf macro.
12795         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12796
12797 2011-05-22  Bruno Haible  <bruno@clisp.org>
12798
12799         New module 'mktime-internal'.
12800         * modules/mktime-internal: New file.
12801         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12802         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12803         mktime_internal as a C macro if libc has __mktime_internal.
12804         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12805         conditions.
12806         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12807
12808 2011-05-22  Bruno Haible  <bruno@clisp.org>
12809
12810         timegm: Correct mktime replacement statements.
12811         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12812         defining mktime as a C macro. This completes a 2009-07-28 commit.
12813
12814 2011-05-22  Bruno Haible  <bruno@clisp.org>
12815
12816         timegm: Simplify autoconf macro.
12817         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12818
12819 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12820
12821         clock-time: change to LGPLv2+.
12822         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12823         BSD-like but we have no mark for that; this is good enough for now.
12824
12825 2011-05-21  Bruno Haible  <bruno@clisp.org>
12826
12827         strerror_r: Fix comments.
12828         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12829
12830 2011-05-21  Bruno Haible  <bruno@clisp.org>
12831
12832         relocatable-prog-wrapper: Fix possible link error.
12833         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12834         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12835         (gl_FUNC_SETENV): ... to here.
12836         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12837         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12838
12839 2011-05-21  Bruno Haible  <bruno@clisp.org>
12840
12841         relocatable-prog-wrapper: Assume strerror() exists.
12842         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12843         m4/strerror.m4.
12844         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12845         * lib/relocwrapper.c: Remove mention of strerror module.
12846         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12847         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12848         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12849         C macro.
12850
12851 2011-05-21  Bruno Haible  <bruno@clisp.org>
12852
12853         select: Simplify replacement idiom.
12854         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12855         Win32 platforms.
12856         * lib/sys_select.in.h (select): Simplify accordingly.
12857         * modules/select (Depends-on): Likewise.
12858
12859 2011-05-21  Bruno Haible  <bruno@clisp.org>
12860
12861         mkdir-p: Simplify autoconf macro.
12862         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12863         gl_FUNC_LCHOWN.
12864
12865 2011-05-21  Eric Blake  <eblake@redhat.com>
12866
12867         strerror_r: avoid clobbering strerror on cygwin
12868         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12869         fall back instead to sys_errlist.
12870         * modules/strerror (configure.ac): Add witness.
12871         * tests/test-strerror_r.c (main): Enhance test.
12872         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12873         * tests/test-perror2.c (main): Free memory before exit.
12874
12875 2011-05-21  Bruno Haible  <bruno@clisp.org>
12876
12877         mkdtemp: Use gnulib naming conventions.
12878         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12879         * modules/mkdtemp (configure.ac): Update.
12880
12881 2011-05-20  Eric Blake  <eblake@redhat.com>
12882
12883         strerror_r: avoid corrupting errno on Solaris
12884         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12885         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12886
12887         strerror_r: avoid compiler warning
12888         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12889
12890         strerror_r: simplify AIX code
12891         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12892
12893         test-perror: avoid spurious failure on FreeBSD
12894         * modules/perror-tests (Depends-on): Add strerror, now that
12895         strerror_r no longer pulls it in.
12896
12897 2011-05-20  Bruno Haible  <bruno@clisp.org>
12898
12899         strerror_r-posix: Remove unused dependencies.
12900         * modules/strerror_r-posix (Depends-on): Remove strerror.
12901         Reported by Eric Blake.
12902
12903 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12904
12905         intprops: remove assumption about A|B representation
12906         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12907         is a valid integer if both A and B are.  Although this is true for
12908         all known practical hosts, the C standard doesn't guarantee it,
12909         and the code need not assume it.  Also, this change may work around
12910         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12912
12913 2011-05-20  Eric Blake  <eblake@redhat.com>
12914
12915         perror: work around FreeBSD bug
12916         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12917         is broken.  Move AC_LIBOBJ...
12918         * modules/perror (configure.ac): Here.
12919         * doc/posix-functions/perror.texi (perror): Document this.
12920         * tests/test-perror2.c (main): Enhance test.
12921
12922         test-perror: check for strerror interactions
12923         * tests/macros.h (STREQ): Add macro.
12924         * modules/perror-tests (Files): Add second test.
12925         * tests/test-perror2.c (main): New file.
12926         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12927
12928         test-perror: rewrite to use init script
12929         * modules/perror-tests (Files): Add init.sh.
12930         * tests/test-perror.sh: Use temporary directory.
12931
12932 2011-05-20  Jim Meyering  <meyering@redhat.com>
12933
12934         maint: replace misused "a" with "an"
12935         * doc/intprops.texi: "a integer"
12936         * doc/regex.texi: "a explanation"
12937         * lib/alignof.h: "a object"
12938         * lib/argmatch.h: "a explanation"
12939         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12940         * lib/stdint.in.h: "a integer"
12941         * lib/userspec.c: "a owner"
12942         * doc/gnulib.texi: Fix "a idea", and reword.
12943
12944 2011-05-19  Jim Meyering  <meyering@redhat.com>
12945
12946         maint: correct misuse of "a" and "an"
12947         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12948         * lib/argp-help.c: "an docum...": s/an/a/
12949         * lib/argp-parse.c: "An vector": s/An/A/
12950         * lib/execute.c: "an native": s/an/a/
12951         * lib/spawn-pipe.c: Likewise.
12952         * lib/gc.h: "an Gc_rc": s/an/a/
12953         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12954         * lib/fts.c: "an stat.st_dev": s/an/a/
12955
12956 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12957
12958         intprops-tests: work around HP-UX 11.23 cc bug with constants
12959         * tests/test-intprops.c (VERIFY): New macro.
12960         (main): Use it, instead of verify, to work around the compiler bug; see
12961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12962
12963         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12964         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12965         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12966         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12967         (_GL_REMAINDER_OVERFLOW): Use it.
12968
12969         intprops-tests: revert unsigned part of previous change
12970         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12971         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12972         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12974
12975 2011-05-19  Bruno Haible  <bruno@clisp.org>
12976
12977         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12978         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12979         strerror_r() returned without filling the buffer.
12980         Reported by Eric Blake.
12981
12982 2011-05-19  Eric Blake  <eblake@redhat.com>
12983
12984         strerror_r: guarantee unchanged errno
12985         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12986         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12987         failure.
12988         * tests/test-strerror_r.c (main): Enhance test.
12989
12990 2011-05-19  Bruno Haible  <bruno@clisp.org>
12991
12992         strerror_r: Reorder #if blocks.
12993         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12994         for consistency with the previous commit.
12995
12996 2011-05-19  Bruno Haible  <bruno@clisp.org>
12997
12998         perror: Avoid clobbering the strerror buffer when possible.
12999         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
13000         * lib/strerror.c: Include it.
13001         * modules/strerror (Files): Add lib/strerror-impl.h.
13002         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
13003         (my_strerror): New function, defined through lib/strerror-impl.h.
13004         (perror): Use it instead of strerror.
13005         * modules/perror (Files): Add lib/strerror-impl.h.
13006         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
13007
13008 2011-05-19  Eric Blake  <eblake@redhat.com>
13009
13010         strerror_r: fix on newer cygwin
13011         * lib/strerror_r.c (strerror_r): Cygwin now has
13012         __xpg_strerror_r, use it.
13013
13014 2011-05-19  Bruno Haible  <bruno@clisp.org>
13015
13016         strerror_r: Avoid clobbering the strerror buffer when possible.
13017         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13018         (sys_nerr, sys_errlist): New declarations.
13019         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13020         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13021         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13022
13023 2011-05-19  Bruno Haible  <bruno@clisp.org>
13024
13025         strerror_r: Fix test failure on mingw.
13026         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13027         EXTEND_STRERROR_R.
13028         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13029         macros from errno.in.h instead.
13030
13031 2011-05-19  Eric Blake  <eblake@redhat.com>
13032
13033         strerror: relax test for Solaris
13034         * tests/test-strerror.c (main): Permit Solaris behavior.
13035         * tests/test-strerror_r.c (main): Likewise.
13036
13037         strerror: enforce POSIX ruling on strerror(0)
13038         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13039         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13040         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13041         * doc/posix-functions/strerror.texi (strerror): Document it.
13042         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13043         * tests/test-strerror.c (main): Strengthen test.
13044         * tests/test-strerror_r.c (main): Likewise.
13045
13046 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13047
13048         intprop-tests: port to older and more-pedantic compilers
13049         * modules/intprops-tests (Files): Add tests/macros.h.
13050         * tests/test-intprops.c: Include macros.h.
13051         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13052         it's no longer documented to expand to an integer constant expression.
13053         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13054         argument is floating point, as it's no longer documented to expand
13055         to an integer constant expression in that case.
13056         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13057         compiler bugs reported by Bruno Haible.  See
13058         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13059         (U0, U1): New constants, to work around the same bugs.  Also,
13060         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13061
13062         intprops: work around C compiler bugs
13063         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13064         bug in Sun C 5.11 2010/08/13 and other compilers; see
13065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13066
13067         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13068         * doc/intprops.texi (Integer Type Determination): Fix
13069         documentation for TYPE_IS_INTEGER: it returns an constant
13070         expression, not an integer constant expression.  Fix doc for
13071         TYPE_SIGNED: it returns an integer constant expression only if its
13072         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13073         hardly worth documented that way....)
13074
13075 2011-05-18  Bruno Haible  <bruno@clisp.org>
13076
13077         strerror_r: Avoid clobbering the strerror buffer when possible.
13078         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13079         Handle gnulib defined errno values here. When strerror() returns NULL
13080         or an empty string, return EINVAL.
13081         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13082         gnulib defined errno values here.
13083         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13084
13085 2011-05-18  Eric Blake  <eblake@redhat.com>
13086
13087         fnmatch: avoid compiler warning
13088         * lib/fnmatch_loop.c (FCT): Use correct type.
13089         Reported by Matthias Bolte.
13090
13091 2011-05-13  Jim Meyering  <meyering@redhat.com>
13092
13093         maint.mk: three new prohibit_<HDR>_without_use rules
13094         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13095         (sc_prohibit_stdio-safer_without_use): Likewise.
13096         (sc_prohibit_xfreopen_without_use): Likewise.
13097
13098 2011-05-17  Jim Meyering  <meyering@redhat.com>
13099
13100         announce-gen: fail if the NEWS delta is empty
13101         If there's nothing noteworthy in NEWS, then either you forgot
13102         or you shouldn't be releasing.
13103         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13104
13105 2011-05-17  Pádraig Brady <P@draigBrady.com>
13106
13107         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13108         reserved symbols starting with double underscore from the check.
13109
13110 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13111
13112         intprops: add doc
13113         * doc/intprops.texi: New file, documenting intprops.
13114         * doc/gnulib.texi (Particular Modules): Include it.
13115
13116         verify: add doc to gnulib manual and fix example
13117         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13118         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13119         (Compile-time Assertions): Fix example so it can't overflow.
13120
13121 2011-05-17  Jim Meyering  <meyering@redhat.com>
13122
13123         warnings.m4: don't usurp save_CPPFLAGS variable name
13124         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13125
13126         doc: fix typo
13127         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13128
13129 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13130             Bruno Haible  <bruno@clisp.org>
13131
13132         doc: Tweak recent change.
13133         * README (Portability guidelines): Tweak new text.
13134         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13135         Interix 6.1.
13136
13137 2011-05-16  Eric Blake  <eblake@redhat.com>
13138
13139         inttypes: avoid autoconf warning
13140         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13141         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13142
13143 2011-05-16  Sam Steingold <sds@gnu.org>
13144         and Eric Blake  <eblake@redhat.com>
13145
13146         vc-list-files: accept multiple directory operands
13147         * build-aux/vc-list-files: Iterate over all remaining operands.
13148
13149 2011-05-16  Bruno Haible  <bruno@clisp.org>
13150
13151         Fix confusion regarding deprecated modules.
13152         * modules/calloc (Status, Notice): Mark module as deprecated, not
13153         obsolete.
13154         * modules/fnmatch-posix (Status, Notice): Likewise.
13155         * modules/getdate (Status, Notice): Likewise.
13156         * modules/getopt (Status, Notice): Likewise.
13157         * modules/malloc (Status, Notice): Likewise.
13158         * modules/pipe (Status, Notice): Likewise.
13159         * modules/realloc (Status, Notice): Likewise.
13160         * modules/rename-dest-slash (Status, Notice): Likewise.
13161         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13162         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13163         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13164         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13165         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13166
13167 2011-05-16  Bruno Haible  <bruno@clisp.org>
13168
13169         doc: List the target platforms.
13170         * doc/gnulib-intro.texi (Target Platforms): New section.
13171         * doc/gnulib.texi (Introduction): Update menu.
13172         * README (Portability guidelines): Refer to the new section. Update
13173         statement about oldest supported environment. Remove rationale why
13174         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13175         unportable C89 function.
13176         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13177         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13178
13179 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13180
13181         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13182
13183 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13184
13185         intprops-tests: new module
13186         * modules/intprops-tests, tests/test-intprops.c: New files.
13187
13188         intprops: add safe, portable integer overflow checking
13189         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13190         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13191         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13192         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13193         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13194         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13195         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13196         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13197         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13198         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13199         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13200
13201 2011-05-12  James Youngman  <jay@gnu.org>
13202
13203         Add a test for glibc's Bugzilla bug #12378.
13204         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13205         doesn't allow the literal matching of a lone "[" (which is
13206         required by POSIX).
13207         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13208
13209 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13210
13211         Sync glibc change fixing Bugzilla bug #12378.
13212         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13213         beginning and fall back to matching as normal character if the
13214         string ends before the matching ']' is found.  This is what POSIX
13215         requires.
13216
13217 2011-05-13  Eric Blake  <eblake@redhat.com>
13218
13219         getcwd-lgpl: relax test for FreeBSD
13220         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13221         issue.
13222         * tests/test-getcwd-lgpl.c (main): Relax test.
13223         Reported by Matthias Bolte.
13224
13225 2011-05-11  Eric Blake  <eblake@redhat.com>
13226
13227         test-fflush: silence compiler warning
13228         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13229
13230 2011-05-11  Bruno Haible  <bruno@clisp.org>
13231
13232         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13233         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13234         * modules/canonicalize (Depends-on): Add 'nocrash'.
13235         * modules/canonicalize-lgpl (Depends-on): Likewise.
13236         * doc/posix-functions/realpath.texi: Update platforms list.
13237         Reported by Ryan Schmidt <ryandesign@macports.org>.
13238
13239 2011-05-11  Bruno Haible  <bruno@clisp.org>
13240
13241         group-member: Declare function in <unistd.h>.
13242         * lib/unistd.in.h (group_member): New declaration.
13243         * lib/group-member.h: Remove file.
13244         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13245         * tests/test-unistd-c++.cc: Check signature of group_member.
13246         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13247         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13248         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13249         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13250         HAVE_GROUP_MEMBER.
13251         * modules/group-member (Files): Remove lib/group-member.h.
13252         (Depends-on): Add unistd. Specify conditions.
13253         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13254         (Include): Change to <unistd.h>.
13255         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13256         HAVE_GROUP_MEMBER.
13257         * NEWS: Mention the change.
13258         * lib/euidaccess.c: Don't include group-member.h.
13259
13260 2011-05-11  Bruno Haible  <bruno@clisp.org>
13261
13262         group-member: Document module.
13263         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13264         module.
13265
13266 2011-05-11  Bruno Haible  <bruno@clisp.org>
13267
13268         fclose: Fix mistake earlier today.
13269         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13270
13271 2011-05-11  Eric Blake  <eblake@redhat.com>
13272
13273         fclose: preserve fflush errors
13274         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13275         Reported by Jim Meyering.
13276
13277         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13278         * build-aux/bootstrap (check_versions): When no specific version
13279         is required, merely check that the app produces an exit status
13280         that indicates its existence.
13281
13282         maint.mk: drop redundant check
13283         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13284         the same but better.
13285
13286 2011-05-11  Bruno Haible  <bruno@clisp.org>
13287
13288         fclose: Fix possible link error.
13289         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13290         unregister_shadow_fd. Improve comments.
13291         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13292         Eric Blake.
13293
13294 2011-05-11  Jim Meyering  <meyering@redhat.com>
13295
13296         maint.mk: improve "can not" detection and generalize rule name
13297         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13298         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13299         Use the same technique as in sc_prohibit_doubled_word, so that
13300         we recognize "can not" also when the words are separated by a newline.
13301         Suggested by Eric Blake.
13302         (perl_filename_lineno_text_): Define.  Factored out of...
13303         (prohibit_doubled_word_): ...here.  Use the new definition.
13304         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13305         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13306         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13307
13308 2011-05-10  Eric Blake  <eblake@redhat.com>
13309
13310         fclose: avoid double close race when possible
13311         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13312         all but WINDOWS_SOCKETS.
13313
13314 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13315
13316         openat: correct new comment
13317         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13318
13319 2011-05-10  Jim Meyering  <meyering@redhat.com>
13320
13321         openat: add comments
13322         * lib/openat-proc.c (openat_proc_name): Add comments,
13323         mostly from Eric Blake.
13324
13325 2011-05-09  Eric Blake  <eblake@redhat.com>
13326
13327         openat: reduce syscalls in first probe of /proc
13328         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13329         be a directory.  Simplify the probe for .. bugs.
13330         * modules/openat (Depends-on): Drop same-inode.
13331         Reported by Bastien ROUCARIES.
13332
13333 2011-05-09  Jim Meyering  <meyering@redhat.com>
13334
13335         maint.mk: change semantics/name of tight_scope variables
13336         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13337         Rename variables to align with semantics that make them more useful.
13338
13339         maint.mk: tweak new rule's name not to impinge
13340         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13341         (sc_tight_scope): Use new rule name rather than $@-0.
13342
13343         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13344         * top/maint.mk (sc_tight_scope): New rule.
13345         (sc_tight_scope-0): New rule, ifdef'd out.
13346         (_gl_TS_dir): Default.
13347         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13348         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13349
13350 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13351
13352         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13353         Haible <bruno@clisp.org>.
13354
13355 2011-05-08  Bruno Haible  <bruno@clisp.org>
13356
13357         Comments.
13358         * m4/isnanf.m4: Add comment.
13359         * m4/isnanl.m4: Likewise.
13360
13361 2011-05-08  Bruno Haible  <bruno@clisp.org>
13362
13363         glob: Remove obsolete macro.
13364         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13365
13366 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13367
13368         intprops: Sun C 5.11 supports __typeof__
13369         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13370         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13371         which is new.
13372         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13373
13374         intprops: switch to usual gnulib indenting and naming
13375         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13376         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13377
13378         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13379
13380 2011-05-08  Jim Meyering  <meyering@redhat.com>
13381
13382         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13383         * top/maint.mk (release-prep): Use make's --no-print-directory
13384         option when generating the announcement.  This eliminates the
13385         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13386         generated announcement template.
13387
13388 2011-05-08  Bruno Haible  <bruno@clisp.org>
13389
13390         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13391         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13392         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13393
13394 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13395
13396         ignore-value, verify: Omit include files from lib_SOURCES.
13397         * modules/ignore-value, modules/verify (Makefile.am):
13398         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13399         that leads Automake to duplicate use of am__objects_... variables
13400         in Makefile.in.  See
13401         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13402
13403 2011-05-07  Bruno Haible  <bruno@clisp.org>
13404
13405         fclose: Simplify autoconf macro.
13406         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13407         defined.
13408
13409 2011-05-07  Bruno Haible  <bruno@clisp.org>
13410
13411         canonicalize-lgpl: Fix autoconf macro ordering bug.
13412         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13413         gl_STDLIB_H_DEFAULTS.
13414
13415 2011-05-06  Eric Blake  <eblake@redhat.com>
13416
13417         maintainer-makefile: make sc_po_check easier to tune
13418         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13419         to probe for strings, such as an alternate location for gnulib.
13420
13421         fclose: guarantee behavior on seekable stdin
13422         * modules/fclose (Depends-on): Add fflush.
13423         * doc/posix-functions/fclose.texi (fclose): Document this.
13424         * tests/test-fclose.c (main): Make test for this unconditional.
13425
13426 2011-05-06  Bruno Haible  <bruno@clisp.org>
13427
13428         fflush, fpurge: Relicense under LGPLv2+.
13429         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13430         * modules/fpurge (License): Likewise.
13431         With permission from Eric Blake and Jim Meyering.
13432         Suggested by Eric Blake.
13433
13434 2011-05-06  Karl Berry  <karl@gnu.org>
13435
13436         * MODULES.html.sh (func_all_modules): remove exit.
13437
13438 2011-05-06  Jim Meyering  <meyering@redhat.com>
13439
13440         maint.mk: use info-gnu@ as the default only for a stable release
13441         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13442         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13443         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13444         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13445
13446 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13447
13448         assert-h: new module, which supports C1X-style static_assert
13449         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13450         * lib/verify.h: Revamp so that this can be copied into assert.h,
13451         while retaining the ability to use it standalone as before.
13452         Rename private identifiers so as not to encroach on the
13453         standard C namespace, since this is now used by assert.h.
13454         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13455         the old verify_true.
13456         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13457         the old verify_true.  Use _GL_VERIFY_TYPE.
13458         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13459         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13460         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13461         defined when this file is copied into the replacement assert.h.
13462         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13463         and _Static_assert is not built in.
13464         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13465         defined, and use the new macros mentioned above.
13466         * doc/posix-headers/assert.texi: Document this.
13467
13468 2011-05-05  Bruno Haible  <bruno@clisp.org>
13469
13470         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13471         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13472         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13473         gl_REPLACE_FCLOSE here.
13474         * modules/fflush (Depends-on): Remove fclose.
13475         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13476         combination with module 'fclose'.
13477
13478 2011-05-05  Bruno Haible  <bruno@clisp.org>
13479
13480         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13481         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13482         gl_FUNC_FFLUSH.
13483         (gl_FUNC_FFLUSH): Use it.
13484         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13485         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13486         gl_REPLACE_FSEEKO here.
13487
13488 2011-05-05  Bruno Haible  <bruno@clisp.org>
13489
13490         tzset: Relicense under LGPL.
13491         * modules/tzset (License): Change to LGPL.
13492         No agreement needed; it's a no-op.
13493
13494         strtoimax, strtoumax: Relicense under LGPL.
13495         * modules/strtoimax (License): Change to LGPL.
13496         * modules/strtoumax (License): Likewise.
13497         With permission from Jim Meyering, Paul Eggert:
13498         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13500
13501         getgroups: Relicense under LGPL.
13502         * modules/getgroups (License): Change to LGPL.
13503         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13505         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13507
13508         nanosleep: Relicense under LGPL.
13509         * modules/nanosleep (License): Change to LGPL.
13510         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13511         Haible:
13512         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13513         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13516
13517         futimens: Relicense under LGPL.
13518         * modules/futimens (License): Change to LGPL.
13519         With permission from Eric Blake:
13520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13521
13522         fflush: Relicense under LGPL.
13523         * modules/fflush (License): Change to LGPL.
13524         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13528
13529         tmpfile: Relicense under LGPL.
13530         * modules/tmpfile (License): Change to LGPL.
13531         With permission from Ben Pfaff:
13532         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13533
13534         isfinite: Relicense under LGPL.
13535         * modules/isfinite (License): Change to LGPL.
13536         With permission from Ben Pfaff, Bruno Haible:
13537         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13539
13540         acosl..tanl: Relicense under LGPL.
13541         * modules/acosl (License): Change to LGPL.
13542         * modules/asinl (License): Likewise.
13543         * modules/atanl (License): Likewise.
13544         * modules/cosl (License): Likewise.
13545         * modules/expl (License): Likewise.
13546         * modules/logl (License): Likewise.
13547         * modules/sinl (License): Likewise.
13548         * modules/sqrtl (License): Likewise.
13549         * modules/tanl (License): Likewise.
13550         Source code originally from glibc and Paolo Bonzini. Agreements:
13551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13553
13554 2011-05-05  Bruno Haible  <bruno@clisp.org>
13555
13556         signal: Define sighandler_t.
13557         * lib/signal.in.h (sighandler_t): New type.
13558         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13559         whether sighandler_t is defined.
13560         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13561         * modules/signal (Depends-on): Add extensions.
13562         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13563         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13564         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13565
13566 2011-05-05  Eric Blake  <eblake@redhat.com>
13567
13568         maint: remove useless REPLACE_*_H macros
13569         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13570         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13571         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13572         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13573         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13574         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13575         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13576         * m4/btowc.m4: Update callers.
13577         * m4/dirfd.m4: Likewise.
13578         * m4/duplocale.m4: Likewise.
13579         * m4/fchdir.m4: Likewise.
13580         * m4/fdopendir.m4: Likewise.
13581         * m4/inet_ntop.m4: Likewise.
13582         * m4/inet_pton.m4: Likewise.
13583         * m4/ioctl.m4: Likewise.
13584         * m4/mbrlen.m4: Likewise.
13585         * m4/mbrtowc.m4: Likewise.
13586         * m4/mbsinit.m4: Likewise.
13587         * m4/mbsnrtowcs.m4: Likewise.
13588         * m4/mbsrtowcs.m4: Likewise.
13589         * m4/poll.m4: Likewise.
13590         * m4/setlocale.m4: Likewise.
13591         * m4/wcrtomb.m4: Likewise.
13592         * m4/wcsnrtombs.m4: Likewise.
13593         * m4/wcsrtombs.m4: Likewise.
13594         * m4/wctob.m4: Likewise.
13595         * m4/wcwidth.m4: Likewise.
13596         * modules/posix_spawn: Likewise.
13597         * modules/posix_spawn_file_actions_addclose: Likewise.
13598         * modules/posix_spawn_file_actions_adddup2: Likewise.
13599         * modules/posix_spawn_file_actions_addopen: Likewise.
13600         * modules/posix_spawn_file_actions_destroy: Likewise.
13601         * modules/posix_spawn_file_actions_init: Likewise.
13602         * modules/posix_spawnattr_destroy: Likewise.
13603         * modules/posix_spawnattr_getflags: Likewise.
13604         * modules/posix_spawnattr_getpgroup: Likewise.
13605         * modules/posix_spawnattr_getschedparam: Likewise.
13606         * modules/posix_spawnattr_getschedpolicy: Likewise.
13607         * modules/posix_spawnattr_getsigdefault: Likewise.
13608         * modules/posix_spawnattr_getsigmask: Likewise.
13609         * modules/posix_spawnattr_init: Likewise.
13610         * modules/posix_spawnattr_setflags: Likewise.
13611         * modules/posix_spawnattr_setpgroup: Likewise.
13612         * modules/posix_spawnattr_setschedparam: Likewise.
13613         * modules/posix_spawnattr_setschedpolicy: Likewise.
13614         * modules/posix_spawnattr_setsigdefault: Likewise.
13615         * modules/posix_spawnattr_setsigmask: Likewise.
13616         * modules/posix_spawnp: Likewise.
13617
13618 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13619
13620         Add option to do-release-commit-and-tag to specify branch.
13621         * build-aux/do-release-commit-and-tag: Add --branch.
13622
13623 2011-05-03  Bruno Haible  <bruno@clisp.org>
13624
13625         Avoid unnecessary compilation units, through conditional dependencies.
13626         * modules/accept (Depends-on): Add conditions to the dependencies.
13627         * modules/acosl (Depends-on): Likewise.
13628         * modules/argz (Depends-on): Likewise.
13629         * modules/asinl (Depends-on): Likewise.
13630         * modules/atanl (Depends-on): Likewise.
13631         * modules/atoll (Depends-on): Likewise.
13632         * modules/bind (Depends-on): Likewise.
13633         * modules/btowc (Depends-on): Likewise.
13634         * modules/canonicalize-lgpl (Depends-on): Likewise.
13635         * modules/ceil (Depends-on): Likewise.
13636         * modules/ceilf (Depends-on): Likewise.
13637         * modules/ceill (Depends-on): Likewise.
13638         * modules/chdir-long (Depends-on): Likewise.
13639         * modules/chown (Depends-on): Likewise.
13640         * modules/close (Depends-on): Likewise.
13641         * modules/connect (Depends-on): Likewise.
13642         * modules/cosl (Depends-on): Likewise.
13643         * modules/dirfd (Depends-on): Likewise.
13644         * modules/dprintf (Depends-on): Likewise.
13645         * modules/dprintf-posix (Depends-on): Likewise.
13646         * modules/error (Depends-on): Likewise.
13647         * modules/euidaccess (Depends-on): Likewise.
13648         * modules/expl (Depends-on): Likewise.
13649         * modules/faccessat (Depends-on): Likewise.
13650         * modules/fchdir (Depends-on): Likewise.
13651         * modules/fclose (Depends-on): Likewise.
13652         * modules/fcntl (Depends-on): Likewise.
13653         * modules/fdopendir (Depends-on): Likewise.
13654         * modules/fflush (Depends-on): Likewise.
13655         * modules/floor (Depends-on): Likewise.
13656         * modules/floorf (Depends-on): Likewise.
13657         * modules/floorl (Depends-on): Likewise.
13658         * modules/fnmatch (Depends-on): Likewise.
13659         * modules/fopen (Depends-on): Likewise.
13660         * modules/fprintf-posix (Depends-on): Likewise.
13661         * modules/frexp (Depends-on): Likewise.
13662         * modules/frexp-nolibm (Depends-on): Likewise.
13663         * modules/frexpl (Depends-on): Likewise.
13664         * modules/frexpl-nolibm (Depends-on): Likewise.
13665         * modules/fseek (Depends-on): Likewise.
13666         * modules/fsusage (Depends-on): Likewise.
13667         * modules/ftell (Depends-on): Likewise.
13668         * modules/ftello (Depends-on): Likewise.
13669         * modules/futimens (Depends-on): Likewise.
13670         * modules/getcwd (Depends-on): Likewise.
13671         * modules/getcwd-lgpl (Depends-on): Likewise.
13672         * modules/getdelim (Depends-on): Likewise.
13673         * modules/getdomainname (Depends-on): Likewise.
13674         * modules/getgroups (Depends-on): Likewise.
13675         * modules/gethostname (Depends-on): Likewise.
13676         * modules/getline (Depends-on): Likewise.
13677         * modules/getlogin_r (Depends-on): Likewise.
13678         * modules/getopt-posix (Depends-on): Likewise.
13679         * modules/getpeername (Depends-on): Likewise.
13680         * modules/getsockname (Depends-on): Likewise.
13681         * modules/getsockopt (Depends-on): Likewise.
13682         * modules/getsubopt (Depends-on): Likewise.
13683         * modules/getusershell (Depends-on): Likewise.
13684         * modules/glob (Depends-on): Likewise.
13685         * modules/grantpt (Depends-on): Likewise.
13686         * modules/iconv_open (Depends-on): Likewise.
13687         * modules/iconv_open-utf (Depends-on): Likewise.
13688         * modules/inet_ntop (Depends-on): Likewise.
13689         * modules/inet_pton (Depends-on): Likewise.
13690         * modules/ioctl (Depends-on): Likewise.
13691         * modules/isapipe (Depends-on): Likewise.
13692         * modules/isfinite (Depends-on): Likewise.
13693         * modules/isinf (Depends-on): Likewise.
13694         * modules/lchown (Depends-on): Likewise.
13695         * modules/ldexpl (Depends-on): Likewise.
13696         * modules/link (Depends-on): Likewise.
13697         * modules/linkat (Depends-on): Likewise.
13698         * modules/listen (Depends-on): Likewise.
13699         * modules/logl (Depends-on): Likewise.
13700         * modules/lstat (Depends-on): Likewise.
13701         * modules/mbrlen (Depends-on): Likewise.
13702         * modules/mbrtowc (Depends-on): Likewise.
13703         * modules/mbsinit (Depends-on): Likewise.
13704         * modules/mbsnrtowcs (Depends-on): Likewise.
13705         * modules/mbsrtowcs (Depends-on): Likewise.
13706         * modules/mbtowc (Depends-on): Likewise.
13707         * modules/memcmp (Depends-on): Likewise.
13708         * modules/mkdir (Depends-on): Likewise.
13709         * modules/mkdtemp (Depends-on): Likewise.
13710         * modules/mkfifo (Depends-on): Likewise.
13711         * modules/mkfifoat (Depends-on): Likewise.
13712         * modules/mknod (Depends-on): Likewise.
13713         * modules/mkostemp (Depends-on): Likewise.
13714         * modules/mkostemps (Depends-on): Likewise.
13715         * modules/mkstemp (Depends-on): Likewise.
13716         * modules/mkstemps (Depends-on): Likewise.
13717         * modules/mktime (Depends-on): Likewise.
13718         * modules/nanosleep (Depends-on): Likewise.
13719         * modules/open (Depends-on): Likewise.
13720         * modules/openat (Depends-on): Likewise.
13721         * modules/perror (Depends-on): Likewise.
13722         * modules/poll (Depends-on): Likewise.
13723         * modules/popen (Depends-on): Likewise.
13724         * modules/posix_spawn (Depends-on): Likewise.
13725         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13726         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13727         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13728         * modules/posix_spawnp (Depends-on): Likewise.
13729         * modules/pread (Depends-on): Likewise.
13730         * modules/printf-posix (Depends-on): Likewise.
13731         * modules/ptsname (Depends-on): Likewise.
13732         * modules/putenv (Depends-on): Likewise.
13733         * modules/pwrite (Depends-on): Likewise.
13734         * modules/readline (Depends-on): Likewise.
13735         * modules/readlink (Depends-on): Likewise.
13736         * modules/readlinkat (Depends-on): Likewise.
13737         * modules/recv (Depends-on): Likewise.
13738         * modules/recvfrom (Depends-on): Likewise.
13739         * modules/regex (Depends-on): Likewise.
13740         * modules/remove (Depends-on): Likewise.
13741         * modules/rename (Depends-on): Likewise.
13742         * modules/renameat (Depends-on): Likewise.
13743         * modules/rmdir (Depends-on): Likewise.
13744         * modules/round (Depends-on): Likewise.
13745         * modules/roundf (Depends-on): Likewise.
13746         * modules/roundl (Depends-on): Likewise.
13747         * modules/rpmatch (Depends-on): Likewise.
13748         * modules/select (Depends-on): Likewise.
13749         * modules/send (Depends-on): Likewise.
13750         * modules/sendto (Depends-on): Likewise.
13751         * modules/setenv (Depends-on): Likewise.
13752         * modules/setlocale (Depends-on): Likewise.
13753         * modules/setsockopt (Depends-on): Likewise.
13754         * modules/shutdown (Depends-on): Likewise.
13755         * modules/sigaction (Depends-on): Likewise.
13756         * modules/signbit (Depends-on): Likewise.
13757         * modules/sigprocmask (Depends-on): Likewise.
13758         * modules/sinl (Depends-on): Likewise.
13759         * modules/sleep (Depends-on): Likewise.
13760         * modules/snprintf (Depends-on): Likewise.
13761         * modules/snprintf-posix (Depends-on): Likewise.
13762         * modules/socket (Depends-on): Likewise.
13763         * modules/sprintf-posix (Depends-on): Likewise.
13764         * modules/sqrtl (Depends-on): Likewise.
13765         * modules/stat (Depends-on): Likewise.
13766         * modules/strchrnul (Depends-on): Likewise.
13767         * modules/strdup-posix (Depends-on): Likewise.
13768         * modules/strerror (Depends-on): Likewise.
13769         * modules/strerror_r-posix (Depends-on): Likewise.
13770         * modules/strndup (Depends-on): Likewise.
13771         * modules/strnlen (Depends-on): Likewise.
13772         * modules/strptime (Depends-on): Likewise.
13773         * modules/strsep (Depends-on): Likewise.
13774         * modules/strsignal (Depends-on): Likewise.
13775         * modules/strstr-simple (Depends-on): Likewise.
13776         * modules/strtod (Depends-on): Likewise.
13777         * modules/strtoimax (Depends-on): Likewise.
13778         * modules/strtok_r (Depends-on): Likewise.
13779         * modules/strtoumax (Depends-on): Likewise.
13780         * modules/symlink (Depends-on): Likewise.
13781         * modules/symlinkat (Depends-on): Likewise.
13782         * modules/tanl (Depends-on): Likewise.
13783         * modules/tcgetsid (Depends-on): Likewise.
13784         * modules/tmpfile (Depends-on): Likewise.
13785         * modules/trunc (Depends-on): Likewise.
13786         * modules/truncf (Depends-on): Likewise.
13787         * modules/truncl (Depends-on): Likewise.
13788         * modules/uname (Depends-on): Likewise.
13789         * modules/unlink (Depends-on): Likewise.
13790         * modules/unlockpt (Depends-on): Likewise.
13791         * modules/unsetenv (Depends-on): Likewise.
13792         * modules/usleep (Depends-on): Likewise.
13793         * modules/utimensat (Depends-on): Likewise.
13794         * modules/vasprintf (Depends-on): Likewise.
13795         * modules/vdprintf (Depends-on): Likewise.
13796         * modules/vdprintf-posix (Depends-on): Likewise.
13797         * modules/vfprintf-posix (Depends-on): Likewise.
13798         * modules/vprintf-posix (Depends-on): Likewise.
13799         * modules/vsnprintf (Depends-on): Likewise.
13800         * modules/vsnprintf-posix (Depends-on): Likewise.
13801         * modules/vsprintf-posix (Depends-on): Likewise.
13802         * modules/wcrtomb (Depends-on): Likewise.
13803         * modules/wcscasecmp (Depends-on): Likewise.
13804         * modules/wcscspn (Depends-on): Likewise.
13805         * modules/wcsdup (Depends-on): Likewise.
13806         * modules/wcsncasecmp (Depends-on): Likewise.
13807         * modules/wcsnrtombs (Depends-on): Likewise.
13808         * modules/wcspbrk (Depends-on): Likewise.
13809         * modules/wcsrtombs (Depends-on): Likewise.
13810         * modules/wcsspn (Depends-on): Likewise.
13811         * modules/wcsstr (Depends-on): Likewise.
13812         * modules/wcstok (Depends-on): Likewise.
13813         * modules/wcswidth (Depends-on): Likewise.
13814         * modules/wctob (Depends-on): Likewise.
13815         * modules/wctomb (Depends-on): Likewise.
13816         * modules/wctype (Depends-on): Likewise.
13817         * modules/wcwidth (Depends-on): Likewise.
13818         * modules/write (Depends-on): Likewise.
13819
13820 2011-05-03  Bruno Haible  <bruno@clisp.org>
13821
13822         Support for conditional dependencies.
13823         * doc/gnulib.texi (Module description): Document the syntax of
13824         conditional dependencies.
13825         * gnulib-tool: New option --conditional-dependencies.
13826         (func_usage): Document it.
13827         (cond_dependencies): New variable.
13828         (func_get_automake_snippet_conditional,
13829         func_get_automake_snippet_unconditional): New functions, extracted from
13830         func_get_automake_snippet.
13831         (func_get_automake_snippet): Use them.
13832         (sed_first_32_chars): New variable.
13833         (func_module_shellfunc_name): New function.
13834         (func_module_shellvar_name): New function.
13835         (func_module_conditional_name): New function.
13836         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13837         func_cond_module_condition): New functions.
13838         (func_modules_transitive_closure): Add support for conditional
13839         dependencies.
13840         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13841         conditional automake snippet in an automake conditional.
13842         (func_emit_autoconf_snippets): Emit shell functions that contain the
13843         code for conditional modules.
13844         (func_import, func_create_testdir): Update specification.
13845
13846 2011-05-03  Eric Blake  <eblake@redhat.com>
13847
13848         test-getaddrinfo: report error information
13849         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13850
13851 2011-05-03  Jim Meyering  <meyering@redhat.com>
13852
13853         bootstrap: avoid build failure when $GZIP is set
13854         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13855         program name.  If defined at all, it is supposed to list gzip options.
13856         Reported by Alan Curry in http://debbugs.gnu.org/8609
13857
13858 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13859
13860         readme-release: new module with release instructions
13861         * modules/readme-release: New module.
13862         * top/README-release: New file, from coreutils, grep, diffutils.
13863         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13864
13865 2011-05-02  Eric Blake  <eblake@redhat.com>
13866
13867         fflush: also replace fclose when fixing fflush
13868         * modules/fflush (Depends-on): Add fclose.
13869         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13870         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13871         memstreams with no backing fd.
13872         * doc/posix-functions/fclose.texi (fclose): Document the use of
13873         fflush module to fix the bug.
13874         * tests/test-fclose.c (main): Relax test when fclose is used in
13875         isolation.
13876
13877         fclose: add some tests
13878         * modules/fclose-tests: New test module.
13879         * tests/test-fclose.c: New file.
13880         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13881
13882         fclose: reduced dependencies
13883         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13884         simpler lseek.
13885         * lib/fclose.c (rpl_fclose): Likewise.
13886         Reported by Simon Josefsson.
13887
13888         exit: drop remaining clients
13889         * modules/argmatch (Depends-on): Replace exit with stdlib.
13890         * modules/copy-file (Depends-on): Likewise.
13891         * modules/execute (Depends-on): Likewise.
13892         * modules/exitfail (Depends-on): Likewise.
13893         * modules/obstack (Depends-on): Likewise.
13894         * modules/pagealign_alloc (Depends-on): Likewise.
13895         * modules/pipe-filter-gi (Depends-on): Likewise.
13896         * modules/pipe-filter-ii (Depends-on): Likewise.
13897         * modules/savewd (Depends-on): Likewise.
13898         * modules/spawn-pipe (Depends-on): Likewise.
13899         * modules/wait-process (Depends-on): Likewise.
13900         * modules/xsetenv (Depends-on): Likewise.
13901         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13902         * modules/git-merge-changelog (Depends-on): Likewise.
13903         * modules/long-options (Depends-on): Likewise.
13904         * modules/pt_chown (Depends-on): Likewise.
13905         * modules/sysexits (Depends-on): Likewise.
13906
13907         freading: relax license from LGPLv3+ to LGPLv2+
13908         * modules/freading (License): Relax LGPL version.
13909
13910 2011-05-02  Bruno Haible  <bruno@clisp.org>
13911
13912         fchdir: Remove unused dependencies.
13913         * modules/fchdir (Depends-on): Remove include_next.
13914
13915 2011-05-02  Bruno Haible  <bruno@clisp.org>
13916
13917         gnulib-tool: Refactor.
13918         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13919         from func_emit_autoconf_snippets.
13920         (func_emit_autoconf_snippets): Use it.
13921
13922 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13923
13924         * NEWS: Document removal of 'exit'.
13925         * modules/exit: Remove file.
13926
13927 2011-05-01  Bruno Haible  <bruno@clisp.org>
13928
13929         Update DEPENDENCIES.
13930         * DEPENDENCIES (gettext): Recommend the newest release.
13931         Reported by Simon Josefsson.
13932
13933 2011-05-01  Bruno Haible  <bruno@clisp.org>
13934
13935         gnulib-tool: Reduce code duplication.
13936         * gnulib-tool (func_emit_autoconf_snippets): New function.
13937         (func_import, func_create_testdir): Use it.
13938
13939 2011-04-30  Eric Blake  <eblake@redhat.com>
13940
13941         fclose: don't fail on non-seekable input stream
13942         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13943         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13944         since fflush is allowed to fail in that case.
13945
13946 2011-04-30  Bruno Haible  <bruno@clisp.org>
13947
13948         dup3: cleanup
13949         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13950
13951 2011-04-30  Bruno Haible  <bruno@clisp.org>
13952
13953         netdb: Make it work in C++ mode.
13954         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13955         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13956         module.
13957         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13958         gl_MODULE_INDICATOR_FOR_TESTS.
13959         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13960         * modules/netdb-c++-tests: New file.
13961         * tests/test-netdb-c++.cc: New file.
13962
13963 2011-04-30  Bruno Haible  <bruno@clisp.org>
13964
13965         New modules 'vfscanf', 'vscanf'.
13966         * modules/vfscanf: New file.
13967         * modules/vscanf: New file.
13968         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13969         here.
13970         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13971         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13972
13973 2011-04-30  Bruno Haible  <bruno@clisp.org>
13974
13975         passfd: Add comments.
13976         * lib/passfd.c: Add comments about platforms.
13977
13978 2011-04-30  Bruno Haible  <bruno@clisp.org>
13979
13980         sys_uio: Make <sys/uio.h> self-contained.
13981         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13982         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13983
13984 2011-04-30  Bruno Haible  <bruno@clisp.org>
13985
13986         sys_socket: Ensure 'struct iovec' definition.
13987         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13988         <sys/socket.h>.
13989         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13990
13991 2011-04-30  Bruno Haible  <bruno@clisp.org>
13992
13993         sys_uio: Protect definition of 'struct iovec'.
13994         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13995         it as a C struct.
13996
13997 2011-04-30  Bruno Haible  <bruno@clisp.org>
13998
13999         manywarnings: fix indentation
14000         * m4/manywarnings.m4: Indent by 2 spaces consistently.
14001
14002 2011-04-30  Pádraig Brady <P@draigBrady.com>
14003
14004         manywarnings: add -Wno-missing-field-initializers if needed.
14005         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
14006         option if it's needed to allow initialization with { 0, }
14007
14008 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
14009
14010         announce-gen: cosmetic improvement
14011         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
14012
14013 2011-04-29  Jim Meyering  <meyering@redhat.com>
14014
14015         vc-list-files: indent with spaces, not TABs
14016         * build-aux/vc-list-files: Convert leading TABs to spaces,
14017         to match the style of most other files in gnulib.
14018
14019         announce-gen: indent with spaces, not TABs
14020         * build-aux/announce-gen: Convert all TABs to spaces, to match
14021         the style of most other files in gnulib.
14022
14023 2011-04-29  Eric Blake  <eblake@redhat.com>
14024
14025         quotearg: avoid uninitialized variable use
14026         * lib/quotearg.c (quoting_options_from_style): Initialize
14027         remaining fields, and ensure that custom styles are only used via
14028         quoting_options rather than quoting_style.
14029
14030 2011-04-29  Jim Meyering  <meyering@redhat.com>
14031
14032         maint.mk: remove unused VC-tag variable
14033         * top/maint.mk (VC-tag): Remove unused variable.
14034
14035 2011-04-29  Bruno Haible  <bruno@clisp.org>
14036
14037         netdb: fix gai_strerror replacements
14038         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14039         * modules/netdb: Substitute it.
14040
14041 2011-04-29  Jim Meyering  <meyering@redhat.com>
14042
14043         test-getcwd.c: avoid new set-but-not-used warning
14044         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14045         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14046         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14047         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14048
14049         test-hash.c: avoid a new shadowing warning
14050         * tests/test-hash.c (main): Don't shadow "dup".
14051
14052 2011-04-28  Eric Blake  <eblake@redhat.com>
14053
14054         getaddrinfo: fix gai_strerror signature
14055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14056         and work around mingw with UNICODE defined.
14057         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14058         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14059         * modules/netdb (Makefile.am): Substitute it.
14060         * lib/netdb.in.h (gai_strerror): Declare replacement.
14061         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14062         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14063         the fix.
14064
14065         getsockopt: avoid compiler warning
14066         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14067         Reported by Matthias Bolte.
14068
14069         tests: drop unused link dependency
14070         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14071         * modules/dirent-safer-tests (Makefile.am): Likewise.
14072         * modules/fdopendir-tests (Makefile.am): Likewise.
14073         * modules/mkfifoat-tests (Makefile.am): Likewise.
14074         * modules/openat-safer-tests (Makefile.am): Likewise.
14075         * modules/openat-tests (Makefile.am): Likewise.
14076         * modules/readlinkat-tests (Makefile.am): Likewise.
14077         * modules/symlinkat-tests (Makefile.am): Likewise.
14078         * modules/linkat-tests (Makefile.am): Likewise.
14079         (Depends-on): Switch to filenamecat-lgpl.
14080         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14081         LIBINTL.
14082         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14083         * tests/test-linkat.c (main): Don't require xalloc.
14084
14085         hash, mgetgroups: drop xalloc dependency
14086         * lib/hash.c (includes): Adjust includes.
14087         * lib/mgetgroups.c (includes): Likewise.
14088         (xgetgroups): Move...
14089         * lib/xgetgroups.c: ...to new file.
14090         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14091         * modules/xgetgroups: New file, split from...
14092         * modules/mgetgroups: ...here.
14093         (Depends-on): Add xalloc-oversized.
14094         * modules/hash (Depends-on): Likewise.
14095         * modules/hash-tests (Depends-on): Drop xalloc.
14096         (test_hash_LDADD): Drop unused library.
14097         * tests/test-hash.c (main): Break xalloc dependency.
14098         (includes): Drop unused include.
14099
14100         xalloc-oversized: new module
14101         * modules/xalloc-oversized: New module.
14102         * modules/xalloc (Depends-on): Add it.
14103         * lib/xalloc.h (xalloc_oversized): Move...
14104         * lib/xalloc-oversized.h: ...into new file.
14105
14106         utimecmp: drop dependency on xmalloc
14107         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14108         due to memory pressure.
14109         * modules/utimecmp (Depends-on): Drop xalloc.
14110
14111 2011-04-27  Eric Blake  <eblake@redhat.com>
14112
14113         getcwd: fix mingw bugs
14114         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14115         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14116         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14117
14118 2011-04-27  Bruno Haible  <bruno@clisp.org>
14119
14120         mkstemps: Ensure declaration on MacOS X 10.5.
14121         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14122         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14123         MacOS X.
14124
14125 2011-04-27  Bruno Haible  <bruno@clisp.org>
14126
14127         mkstemp: More documentation.
14128         * doc/posix-functions/mkstemp.texi: Document header file problem on
14129         MacOS X.
14130
14131 2011-04-27  Bruno Haible  <bruno@clisp.org>
14132
14133         mkstemp: Tweak configure message when cross-compiling.
14134         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14135         result as a guess.
14136
14137 2011-04-27  Bruno Haible  <bruno@clisp.org>
14138
14139         clean-temp: Clarify what it does.
14140         * lib/clean-temp.h: Add more comments.
14141         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14142         module.
14143         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14144         * doc/glibc-functions/mkstemps.texi: Likewise.
14145         * doc/glibc-functions/mkostemps.texi: Likewise.
14146
14147 2011-04-27  Eric Blake  <eblake@redhat.com>
14148
14149         fchdir: avoid extra chdir and fix test
14150         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14151         getcwd-lgpl.
14152         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14153         have to be canonical.
14154         (canonicalize_file_name): Drop unused macro.
14155         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14156
14157         filenamecat-lgpl: fix licence
14158         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14159         when it was first created.
14160
14161         linkat, renameat: add missing dependency
14162         * modules/linkat (Depends-on): Require getcwd-lgpl.
14163         * modules/renameat (Depends-on): Likewise.
14164
14165         tests: reduce dependencies
14166         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14167         * tests/test-renameat.c (main): Likewise.
14168         * modules/linkat-tests (Depends-on): Relax dependency.
14169         * modules/renameat-tests (Depends-on): Likewise.
14170         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14171         dependency explicit.
14172
14173         save-cwd: reduce default dependency
14174         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14175         * lib/save-cwd.c: Update comments.
14176         * NEWS: Document the semantic change.
14177
14178         getcwd: enhance tests
14179         * tests/test-getcwd-lgpl.c: New file, taken from...
14180         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14181         repeat long path stress tests from m4 probe.
14182         * modules/getcwd-lgpl-tests: New module.
14183         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14184         * m4/getcwd-abort-bug.m4: Update comment.
14185         * m4/getcwd-path-max.m4: Likewise.
14186
14187         getcwd-lgpl: new module
14188         * modules/getcwd-lgpl: New module.
14189         * lib/getcwd-lgpl.c: New file.
14190         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14191         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14192         * modules/getcwd (configure.ac): Set C witness.
14193         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14194
14195         getcwd: tweak comments
14196         * m4/getcwd-abort-bug.m4: Fix comments.
14197         * m4/getcwd-path-max.m4: Likewise.
14198         * m4/getcwd.m4: Likewise.
14199
14200 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14201         and Eric Blake  <eblake@redhat.com>
14202
14203         mkstemp: replace if system version uses wrong permissions
14204         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14205         read/write mode bits set in file created by mkstemp.
14206         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14207
14208 2011-04-27  Eric Blake  <eblake@redhat.com>
14209
14210         passfd: avoid compiler warning
14211         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14212         Reported by Laine Stump.
14213
14214 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14215
14216         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14217         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14218
14219 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14220         and Eric Blake  <eblake@redhat.com>
14221
14222         mkstemp: mention clean-temp module
14223         * lib/mkstemp.c: Add comment.
14224         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14225
14226 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14227
14228         inttypes: also provide default values for 32-bit tests
14229         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14230         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14231
14232 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14233
14234         strtoumax: remove dependency on strtoimax
14235         This is like the strtoull change of yesterday.
14236         * modules/strtoumax (Files): Add lib/strtoimax.c.
14237         (Depends-on): Remove strtoimax and add verify.
14238
14239         inttypes-incomplete: new module
14240         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14241         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14242         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14243         of gl_INTTYPES_H.
14244         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14245         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14246         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14247         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14248         * modules/strtoumax, modules/xstrtol (Depends-on):
14249         Depend on inttypes-incomplete, not inttypes.
14250         * modules/inttypes-incomplete: New module, containing the contents
14251         of the old modules/inttypes module, except that the Files: section
14252         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14253         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14254         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14255         (Depends-on): Depend only on inttypes-incomplete.
14256         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14257
14258         inttypes: omit now-redundant strtoimax and strtoumax work
14259         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14260         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14261
14262         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14263         This supports apps that need pointers to strtoimax and strtoumax,
14264         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14265         nonexistent functions.  See
14266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14267         et seq.
14268         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14269         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14270         a macro.
14271         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14272
14273 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14274
14275         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14276
14277 2011-04-25  Bruno Haible  <bruno@clisp.org>
14278
14279         strtol, strtoul: Mark modules as obsolete.
14280         * modules/strtol (Status, Notice): New sections.
14281         * modules/strtoul (Status, Notice): New sections.
14282
14283 2011-04-25  Bruno Haible  <bruno@clisp.org>
14284
14285         strtod: Remove check for strtod, unless supporting old platforms.
14286         * modules/strtod-obsolete: New file.
14287         * m4/strtod-obsolete.m4: New file.
14288         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14289         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14290         * modules/strtod (Depends-on): Add strtod-obsolete.
14291         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14292
14293 2011-04-25  Bruno Haible  <bruno@clisp.org>
14294
14295         strcase: Make module obsolete.
14296         * modules/strcase (Status, Notice): New sections.
14297
14298 2011-04-25  Bruno Haible  <bruno@clisp.org>
14299
14300         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14301         * modules/dup2-obsolete: New file.
14302         * m4/dup2-obsolete.m4: New file.
14303         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14304         gl_FUNC_DUP2_OBSOLETE is not also defined.
14305         * modules/dup2 (Depends-on): Add dup2-obsolete.
14306         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14307
14308 2011-04-25  Bruno Haible  <bruno@clisp.org>
14309
14310         strnlen: Avoid memchr related link error on old obsolete platforms.
14311         * modules/memchr-obsolete: New file.
14312         * m4/memchr-obsolete.m4: New file.
14313         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14314         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14315         * modules/memchr (Depends-on): Add memchr-obsolete.
14316         * modules/strnlen (Depends-on): Likewise.
14317         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14318
14319 2011-04-25  Jim Meyering  <meyering@redhat.com>
14320
14321         maint.mk: makefile_at_at_check extend and clean up
14322         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14323         in addition to */Makefile.am.
14324         Exempt legitimate uses of @VAR@ notation, e.g.,
14325         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14326         Remove obsolete coreutils-specific comment.
14327         Prompted by discussion here:
14328         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14329
14330 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14331
14332         strtoul: remove dependency on strtol
14333         This is so that 'configure' need not check for strtol merely because
14334         the application needs strtoul.
14335         * modules/strtoul (Files): Add lib/strtol.c.
14336         (Depends-on): Remove strtol.
14337
14338         strtoull: remove dependency on strtoul
14339         This is like the strtoll change.
14340         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14341         (Depends-on): Remove strtoul.
14342
14343         strtoll: remove dependency on strtol
14344         This is so that 'configure' need not check for strtol merely because
14345         the application needs strtoll.
14346         * modules/strtoll (Files): Add lib/strtol.c.
14347         (Depends-on): Remove strtol.
14348
14349 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14350
14351         inttypes: Move some configure check to module 'imaxdiv'.
14352         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14353         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14354         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14355
14356 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14357
14358         inttypes: Move some configure check to module 'imaxabs'.
14359         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14360         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14361         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14362
14363 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14364
14365         inttypes: Remove configure tests that are not needed since 2009-12-31.
14366         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14367         gl_cv_header_working_inttypes_h.
14368
14369 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14370
14371         * modules/strnlen (Depends-on): Remove memchr.
14372         The strnlen implementation doesn't need the memchr module's fixes; see
14373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14374
14375         strtol: remove dependency on wchar
14376         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14377         * modules/strtol (Depends-on): Remove wchar.
14378
14379 2011-04-21  Eric Blake  <eblake@redhat.com>
14380
14381         passfd: fix test regression on Linux
14382         * modules/passfd-tests (configure.ac): Correct socketpair check.
14383
14384         passfd: speed up configure and drop unused code
14385         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14386         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14387         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14388         Instead of probing at configure for unix_scm_rights_bsd44_way,
14389         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14390         check to a struct member probe.
14391         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14392         (sendfd, recvfd): Update preprocessor checks.
14393         * modules/passfd (Files): Reflect rename, and drop unused file.
14394         (Depends-on): Drop unused dependency.
14395
14396         passfd: allow compilation on mingw
14397         * modules/sys_socket (Depends-on): Add sys_uio.
14398         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14399         iovec and a minimal struct msghdr.
14400         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14401         * tests/test-sys_socket.c (main): Enhance test.
14402         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14403         guaranteed to provide what we need.
14404         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14405         * modules/passfd-tests (Depends-on): Add sys_wait.
14406         * tests/test-passfd.c (main): Skip test on mingw, for now.
14407         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14408         partial 'struct msghdr' implementation.
14409
14410         sys_uio: new module
14411         * modules/sys_uio: New module.
14412         * modules/sys_uio-tests: Likewise.
14413         * lib/sys_uio.in.h: New file.
14414         * m4/sys_uio_h.m4: Likewise.
14415         * tests/test-sys_uio.c: Likewise.
14416         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14417         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14418
14419 2011-04-20  Jim Meyering  <meyering@redhat.com>
14420
14421         useless-if-before-free: avoid false-positive
14422         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14423         disjunct so that it too requires a terminating ";".  Without that,
14424         this script would identify as useless one statement from gcc that
14425         was not:
14426           if (aligned_ptr)
14427             free (((void **) aligned_ptr) [-1]);
14428
14429 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14430
14431         doc: update users.txt.
14432         * users.txt: Add barcode.
14433
14434 2011-04-19  Bruno Haible  <bruno@clisp.org>
14435
14436         ioctl: Remove link dependency on native Windows.
14437         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14438         (gl_close_fn, gl_ioctl_fn): New types.
14439         (struct fd_hook): Renamed from struct close_hook. Change type of
14440         private_close_fn field. Add private_ioctl_fn field.
14441         (close_hook_fn): Add parameter for primary close method.
14442         (execute_close_hooks, execute_all_close_hooks): Likewise.
14443         (ioctl_hook_fn): New type.
14444         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14445         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14446         argument.
14447         (unregister_fd_hook): Renamed from unregister_close_hook.
14448         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14449         Don't include <unistd.h>.
14450         (close): Remove undef.
14451         (anchor): Update.
14452         (execute_close_hooks): Add argument for primary close method.
14453         (execute_all_close_hooks): Likewise.
14454         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14455         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14456         argument. Allow each argument to be NULL.
14457         (unregister_fd_hook): Renamed from unregister_close_hook.
14458         * lib/close.c (rpl_close): Pass 'close' function pointer to
14459         execute_all_close_hooks.
14460         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14461         (primary_ioctl): New function.
14462         (ioctl): Don't call ioctlsocket here. Instead, call
14463         execute_all_ioctl_hooks.
14464         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14465         close method.
14466         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14467         (fd_sockets_hook): Renamed from close_sockets_hook.
14468         (gl_sockets_startup, gl_sockets_cleanup): Update.
14469         * modules/fd-hook: Renamed from modules/close-hook. Update.
14470         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14471         * modules/sockets (Depends-on): Likewise.
14472         * modules/ioctl (Depends-on): Add fd-hook.
14473         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14474         GNULIB_SOCKET.
14475
14476 2011-04-19  Bruno Haible  <bruno@clisp.org>
14477
14478         Move the support of O_NONBLOCK in open() to the 'open' module.
14479         * modules/nonblocking (Depends-on): Remove 'open'.
14480         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14481         gl_cv_have_open_O_NONBLOCK.
14482         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14483         O_NONBLOCK support.
14484         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14485
14486 2011-04-17  Bruno Haible  <bruno@clisp.org>
14487
14488         pipe2: Simplify code.
14489         * lib/pipe2.c (pipe2): Reduce code duplication.
14490
14491 2011-04-17  Bruno Haible  <bruno@clisp.org>
14492
14493         nonblocking: Add comment.
14494         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14495
14496 2011-04-17  Bruno Haible  <bruno@clisp.org>
14497
14498         nonblocking: Add tests for sockets.
14499         * tests/test-nonblocking-socket.sh: New file.
14500         * tests/test-nonblocking-socket-main.c: New file.
14501         * tests/test-nonblocking-socket-child.c: New file.
14502         * tests/test-nonblocking-socket.h: New file.
14503         * tests/socket-server.h: New file.
14504         * tests/socket-client.h: New file.
14505         * modules/nonblocking-socket-tests: New file.
14506         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14507
14508 2011-04-17  Bruno Haible  <bruno@clisp.org>
14509
14510         nonblocking: Add tests for pipes.
14511         * tests/test-nonblocking-pipe.sh: New file.
14512         * tests/test-nonblocking-pipe-main.c: New file.
14513         * tests/test-nonblocking-pipe-child.c: New file.
14514         * tests/test-nonblocking-pipe.h: New file.
14515         * tests/test-nonblocking-writer.h: New file.
14516         * tests/test-nonblocking-reader.h: New file.
14517         * tests/test-nonblocking-misc.h: New file.
14518         * modules/nonblocking-pipe-tests: New file.
14519         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14520
14521 2011-04-16  Bruno Haible  <bruno@clisp.org>
14522
14523         gettext: Clarify the needed programmer actions.
14524         * modules/gettext (Notice): New field.
14525         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14526
14527 2011-04-16  Bruno Haible  <bruno@clisp.org>
14528
14529         strchrnul: Tweak last commit.
14530         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14531         bug.
14532         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14533         as in _GL_FUNCDECL_SYS.
14534         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14535         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14536
14537 2011-04-15  Eric Blake  <eblake@redhat.com>
14538
14539         strchrnul: work around cygwin bug
14540         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14541         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14543         * modules/string (Makefile.am): Substitute it.
14544         * lib/string.in.h (strchrnul): Use it.
14545
14546 2011-04-15  Bruno Haible  <bruno@clisp.org>
14547
14548         Don't require lib/stdio-write.c when only module 'stdio' is used.
14549         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14550         invocation.
14551         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14552
14553 2011-04-14  Bruno Haible  <bruno@clisp.org>
14554
14555         Support non-blocking pipe I/O in read() on native Windows.
14556         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14557         (read): New declaration.
14558         * lib/read.c: New file.
14559         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14560         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14561         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14562         vscanf): New declarations.
14563         * lib/stdio-read.c: New file.
14564         * m4/read.m4: New file.
14565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14566         REPLACE_READ.
14567         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14568         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14569         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14570         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14571         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14572         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14573         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14574         * modules/read: New file.
14575         * modules/nonblocking (Files): Add lib/stdio-read.c.
14576         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14577         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14578         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14579         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14580         * modules/pread (Depends-on): Add read.
14581         * modules/safe-read (Depends-on): Likewise.
14582         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14583         gets, scanf, vfscanf, vscanf): Verify signatures.
14584         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14585         problem with non-blocking pipes.
14586         * doc/posix-functions/fgetc.texi: Likewise.
14587         * doc/posix-functions/fgets.texi: Likewise.
14588         * doc/posix-functions/fread.texi: Likewise.
14589         * doc/posix-functions/fscanf.texi: Likewise.
14590         * doc/posix-functions/getc.texi: Likewise.
14591         * doc/posix-functions/getchar.texi: Likewise.
14592         * doc/posix-functions/gets.texi: Likewise.
14593         * doc/posix-functions/scanf.texi: Likewise.
14594         * doc/posix-functions/vfscanf.texi: Likewise.
14595         * doc/posix-functions/vscanf.texi: Likewise.
14596
14597 2011-04-14  Bruno Haible  <bruno@clisp.org>
14598
14599         Support non-blocking pipe I/O in write() on native Windows.
14600         * lib/write.c (rpl_write): Split a write request that failed merely
14601         because the byte count was larger than the pipe buffer's size.
14602         * doc/posix-functions/write.texi: Mention the problem with large byte
14603         counts.
14604
14605 2011-04-14  Bruno Haible  <bruno@clisp.org>
14606
14607         wchar: Ensure that wchar_t gets defined on uClibc.
14608         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14609         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14610
14611 2011-04-13  Bruno Haible  <bruno@clisp.org>
14612
14613         safe-write, full-read: Avoid unnecessary compilation units.
14614         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14615         (Depends-on): Remove safe-read. Add ssize_t.
14616         * modules/full-read (Files): Add lib/full-write.c.
14617         (Depends-on): Add full-write.
14618
14619 2011-04-13  Bruno Haible  <bruno@clisp.org>
14620
14621         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14622         * modules/pwrite (Depends-on): Add 'write'.
14623
14624 2011-04-13  Bruno Haible  <bruno@clisp.org>
14625
14626         Support non-blocking pipe I/O in write() on native Windows.
14627         * lib/unistd.in.h (write): Enable replacement also if
14628         GNULIB_UNISTD_H_NONBLOCKING is 1.
14629         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14630         (rpl_write): When failing to write on a non-blocking pipe, change
14631         errno from ENOSPC to EAGAIN.
14632         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14633         putchar, puts, vfprintf, vprintf): Enable replacement also if
14634         GNULIB_STDIO_H_NONBLOCKING is 1.
14635         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14636         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14637         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14638         CALL_WITH_SIGPIPE_EMULATION.
14639         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14640         * m4/nonblocking.m4: New file.
14641         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14642         for non-blocking I/O support.
14643         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14644         GNULIB_UNISTD_H_NONBLOCKING.
14645         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14646         required for non-blocking I/O support.
14647         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14648         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14649         lib/stdio-write.c, m4/asm-underscore.m4.
14650         (Depends-on): Add stdio, unistd.
14651         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14652         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14653         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14654         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14655         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14656         problem with non-blocking pipes.
14657         * doc/posix-functions/fputc.texi: Likewise.
14658         * doc/posix-functions/fputs.texi: Likewise.
14659         * doc/posix-functions/fwrite.texi: Likewise.
14660         * doc/posix-functions/printf.texi: Likewise.
14661         * doc/posix-functions/putc.texi: Likewise.
14662         * doc/posix-functions/putchar.texi: Likewise.
14663         * doc/posix-functions/puts.texi: Likewise.
14664         * doc/posix-functions/vfprintf.texi: Likewise.
14665         * doc/posix-functions/vprintf.texi: Likewise.
14666         * doc/posix-functions/write.texi: Likewise.
14667
14668 2011-04-10  Jim Meyering  <meyering@redhat.com>
14669
14670         maint.mk: prohibit doubled words
14671         Detect them also when they're separated by a newline.
14672         There are 3 ways to customize it:
14673           - disable the test on a per file basis, as usual with rules using
14674             $(VC_LIST_EXCEPT)
14675           - replace the default doubled-word-selecting regexp (affects all files)
14676           - ignore a particular file-vs-doubled-word match
14677         I nearly used that last one to ignore the "is is" match in
14678         coreutils' NEWS file, since the text was "ls -is is ..."
14679         To do that, I would have added this line to cfg.mk:
14680           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14681         but it would have ignored any "is is" match in NEWS.
14682         Low probability, but still...
14683         Instead, I changed the text, slightly:
14684           -  ls -is is now consistent with ls -lis in ignoring values returned
14685           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14686         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14687         (prohibit_doubled_word_): Define.
14688         (sc_prohibit_doubled_word): New rule.
14689         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14690
14691 2011-04-10  Jim Meyering  <meyering@redhat.com>
14692
14693         maint: fix doubled-word typo in comment
14694         * m4/gethostname.m4: s/is is/it is/
14695         * m4/getdomainname.m4: Likewise.
14696
14697 2011-04-10  Jim Meyering  <meyering@redhat.com>
14698
14699         maint: remove doubled word: s/it it/it/
14700         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14701
14702 2011-04-10  Jim Meyering  <meyering@redhat.com>
14703
14704         maint.mk: remove useless semicolon and backslash
14705         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14706         semicolon and backslash.
14707
14708 2011-04-10  Bruno Haible  <bruno@clisp.org>
14709
14710         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14711         * modules/stdint-tests (Depends-on): Add wchar.
14712
14713 2011-04-10  Jim Meyering  <meyering@redhat.com>
14714
14715         maint: remove doubled words in comments, e.g., s/a a/a/
14716         * lib/strptime.c (day_of_the_week): s/the the/the/
14717         * tests/test-chown.h (test_chown): s/a a/a/
14718
14719         test-chown.h: correct a cast
14720         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14721         when the destination is a stat.st_gid.
14722
14723 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14724
14725         getaddrinfo: Fix test for sa_len member.
14726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14727         include <sys/types.h> before <sys/socket.h>.
14728
14729 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14730
14731         maint: change "can not" to "cannot"
14732         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14733         boundaries.
14734
14735 2011-04-09  Jim Meyering  <meyering@redhat.com>
14736
14737         maint: change "a a" to "a"
14738         * tests/test-lchown.h (test_lchown): s/a a/a/
14739
14740         maint.mk: prohibit \<the the\>
14741         * top/maint.mk (sc_prohibit_the_the): New rule.
14742
14743         maint: fix "the the" in comment
14744         * lib/count-one-bits.h: s/the the/the/
14745
14746         maint: change "can not" to "cannot"
14747         But do not change the occurrences in maintain.texi or in
14748         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14749         * doc/gnulib-tool.texi: s/can not/cannot/
14750         * doc/posix-functions/accept.texi (accept): Likewise.
14751         * doc/posix-functions/socket.texi (socket): Likewise.
14752         * lib/mbrtowc.c: Likewise.
14753
14754         maint.mk: prohibit use of "can not"
14755         * top/maint.mk (sc_prohibit_can_not): New rule.
14756         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14757
14758 2011-04-09  Bruno Haible  <bruno@clisp.org>
14759
14760         careadlinkat: Guard against misuse of careadlinkatcwd.
14761         * lib/careadlinkat.c: Include <stdlib.h>.
14762         (careadlinkatcwd): Check that the fd argument is as expected.
14763
14764 2011-04-09  Bruno Haible  <bruno@clisp.org>
14765
14766         careadlinkat: Use common coding style.
14767         * lib/careadlinkat.c: Move gnulib includes after system includes.
14768
14769 2011-04-09  Bruno Haible  <bruno@clisp.org>
14770
14771         careadlinkat: Clarify specification.
14772         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14773         (careadlinkatcwd): Add comment.
14774         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14775
14776 2011-04-09  Bruno Haible  <bruno@clisp.org>
14777
14778         areadlinkat: Avoid link error on many platforms.
14779         * modules/areadlinkat (Depends-on): Add areadlink.
14780
14781 2011-04-09  Bruno Haible  <bruno@clisp.org>
14782
14783         allocator, careadlinkat: Fix double-inclusion guard.
14784         * lib/allocator.h: Fix double-inclusion guard.
14785         * lib/careadlinkat.h: Likewise.
14786
14787 2011-04-09  Bruno Haible  <bruno@clisp.org>
14788
14789         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14790         * lib/relocwrapper.c: Update dependencies hierarchy.
14791         * build-aux/install-reloc: Update list of files to be compiled.
14792         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14793         lib/allocator.[hc].
14794
14795 2011-04-08  Eric Blake  <eblake@redhat.com>
14796
14797         strftime: silence gnulib-tool warning
14798         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14799
14800 2011-04-08  Bruno Haible  <bruno@clisp.org>
14801
14802         verify: Fix syntax error with GCC 4.6 in C++ mode.
14803         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14804         (HAVE_STATIC_ASSERT): New macro.
14805         (verify_true, verify): Use 'static_assert' if it is supported and
14806         '_Static_assert' is not supported.
14807
14808 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14809
14810         allocator: New module.
14811         * modules/allocator, lib/allocator.c: New files.
14812         * lib/allocator.h (stdlib_allocator): New decl.
14813         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14814         Remove.  Do not include <stdlib.h>.
14815         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14816         * modules/careadlinkat (Files): Remove lib/allocator.h.
14817         (Depends-on): Add allocator.
14818
14819         stdlib: let modules use system malloc, realloc
14820         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14821         if !_GL_USE_STDLIB_ALLOC.
14822         (malloc, realloc): Limit this change to a smaller scope.
14823
14824         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14825         (malloc, realloc): Don't #undef; no longer needed.
14826         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14827         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14828         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14829         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14830         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14831         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14832         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14833         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14834
14835         careadlinkat: rename members to avoid problem
14836         * lib/allocator.h (struct allocator): Rename members from
14837         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14838         and realloc are #define'd.  Reported by Eric Blake in
14839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14840         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14841
14842 2011-04-08  Eric Blake  <eblake@redhat.com>
14843
14844         nonblocking: reduce dependency
14845         * tests/test-nonblocking.c: Only test sockets when in use.
14846         * modules/nonblocking-tests (Depends-on): Drop socket.
14847         (Makefile.am): Link even if sockets are not present.
14848         * modules/pipe2-tests (Makefile.am): Likewise.
14849         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14850
14851         pipe2: fix O_NONBLOCK support on mingw
14852         * modules/pipe2 (Depends-on): Add nonblocking.
14853         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14854         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14855         * tests/test-nonblocking.c (main): Likewise.
14856         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14857
14858         fcntl-h: fix O_ACCMODE on cygwin
14859         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14860         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14861
14862         pipe-filter: drop O_NONBLOCK workarounds
14863         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14864         * modules/pipe-filter-ii (Depends-on): Likewise.
14865         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14866
14867         nonblocking: provide O_NONBLOCK for mingw
14868         * modules/nonblocking (Depends-on): Add open.
14869         (configure.ac): Set new witness macro.
14870         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14871         * modules/fcntl-h (Makefile.am): Substitute it.
14872         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14873         nonblocking module is in use.
14874         * lib/nonblocking.c: Adjust portability test.
14875         * lib/open.c (open): Don't let native open see gnulib flag.
14876         * tests/test-fcntl-h.c (main): Enhance test.
14877         * tests/test-open.h (test_open): Likewise.
14878         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14879
14880         careadlinkat: fix compilation error on mingw
14881         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14882         within struct allocator.
14883
14884 2011-04-06  Eric Blake  <eblake@redhat.com>
14885
14886         binary-io: relicense under LGPLv2+
14887         * modules/binary-io (License): Relax to LGPLv2+.
14888         Requested for libvirt, and required by pipe2.
14889
14890 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14891
14892         verify: use _Static_assert if available
14893         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14894         (verify_true, verify): Use it if available.  This generates better
14895         diagnostics with GCC 4.6.0 and later.
14896
14897 2011-04-05  Bruno Haible  <bruno@clisp.org>
14898
14899         Remove leftover generated .h files after config.status changed.
14900
14901         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14902         GL_GENERATE_ALLOCA_H.
14903         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14904         GL_GENERATE_ALLOCA_H evaluates to false.
14905
14906         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14907         GL_GENERATE_ARGZ_H.
14908         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14909         evaluates to false.
14910
14911         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14912         GL_GENERATE_BYTESWAP_H.
14913         * modules/byteswap (Makefile.am): Remove byteswap.h if
14914         GL_GENERATE_BYTESWAP_H evaluates to false.
14915
14916         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14917         GL_GENERATE_ERRNO_H.
14918         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14919         evaluates to false.
14920
14921         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14922         GL_GENERATE_FLOAT_H.
14923         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14924         evaluates to false.
14925
14926         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14927         GL_GENERATE_FNMATCH_H.
14928         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14929         GL_GENERATE_FNMATCH_H evaluates to false.
14930
14931         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14932         GL_GENERATE_GLOB_H.
14933         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14934         evaluates to false.
14935
14936         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14937         automake conditional GL_GENERATE_ICONV_H.
14938         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14939         evaluates to false.
14940
14941         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14942         GL_GENERATE_NETINET_IN_H.
14943         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14944         GL_GENERATE_NETINET_IN_H evaluates to false.
14945
14946         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14947         conditional GL_GENERATE_PTHREAD_H.
14948         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14949         * modules/pthread (Makefile.am): Remove pthread.h if
14950         GL_GENERATE_PTHREAD_H evaluates to false.
14951
14952         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14953         GL_GENERATE_SCHED_H.
14954         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14955         evaluates to false.
14956
14957         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14958         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14959         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14960         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14961
14962         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14963         GL_GENERATE_STDARG_H.
14964         * modules/stdarg (Makefile.am): Remove stdarg.h if
14965         GL_GENERATE_STDARG_H evaluates to false.
14966
14967         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14968         GL_GENERATE_STDBOOL_H.
14969         * modules/stdbool (Makefile.am): Remove stdbool.h if
14970         GL_GENERATE_STDBOOL_H evaluates to false.
14971
14972         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14973         conditional GL_GENERATE_STDDEF_H.
14974         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14975         * modules/stddef (Makefile.am): Remove stddef.h if
14976         GL_GENERATE_STDDEF_H evaluates to false.
14977
14978         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14979         GL_GENERATE_STDINT_H.
14980         * modules/stdint (Makefile.am): Remove stdint.h if
14981         GL_GENERATE_STDINT_H evaluates to false.
14982
14983         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14984         GL_GENERATE_SYSEXITS_H.
14985         * modules/sysexits (Makefile.am): Remove sysexits.h if
14986         GL_GENERATE_SYSEXITS_H evaluates to false.
14987
14988         Reported by Karl Berry and Ralf Wildenhues.
14989
14990 2011-04-05  Bruno Haible  <bruno@clisp.org>
14991
14992         Ensure to rebuild generated .h files when config.status has changed.
14993         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14994         config.status.
14995         * modules/ctype (Makefile.am): Likewise.
14996         * modules/dirent (Makefile.am): Likewise.
14997         * modules/errno (Makefile.am): Likewise.
14998         * modules/fcntl-h (Makefile.am): Likewise.
14999         * modules/float (Makefile.am): Likewise.
15000         * modules/getopt-posix (Makefile.am): Likewise.
15001         * modules/glob (Makefile.am): Likewise.
15002         * modules/iconv-h (Makefile.am): Likewise.
15003         * modules/inttypes (Makefile.am): Likewise.
15004         * modules/langinfo (Makefile.am): Likewise.
15005         * modules/locale (Makefile.am): Likewise.
15006         * modules/math (Makefile.am): Likewise.
15007         * modules/netdb (Makefile.am): Likewise.
15008         * modules/netinet_in (Makefile.am): Likewise.
15009         * modules/poll-h (Makefile.am): Likewise.
15010         * modules/pthread (Makefile.am): Likewise.
15011         * modules/pty (Makefile.am): Likewise.
15012         * modules/sched (Makefile.am): Likewise.
15013         * modules/search (Makefile.am): Likewise.
15014         * modules/selinux-h (Makefile.am): Likewise.
15015         * modules/signal (Makefile.am): Likewise.
15016         * modules/spawn (Makefile.am): Likewise.
15017         * modules/stdarg (Makefile.am): Likewise.
15018         * modules/stdbool (Makefile.am): Likewise.
15019         * modules/stddef (Makefile.am): Likewise.
15020         * modules/stdint (Makefile.am): Likewise.
15021         * modules/stdio (Makefile.am): Likewise.
15022         * modules/stdlib (Makefile.am): Likewise.
15023         * modules/string (Makefile.am): Likewise.
15024         * modules/strings (Makefile.am): Likewise.
15025         * modules/sys_file (Makefile.am): Likewise.
15026         * modules/sys_ioctl (Makefile.am): Likewise.
15027         * modules/sys_select (Makefile.am): Likewise.
15028         * modules/sys_socket (Makefile.am): Likewise.
15029         * modules/sys_stat (Makefile.am): Likewise.
15030         * modules/sys_time (Makefile.am): Likewise.
15031         * modules/sys_times (Makefile.am): Likewise.
15032         * modules/sys_utsname (Makefile.am): Likewise.
15033         * modules/sys_wait (Makefile.am): Likewise.
15034         * modules/sysexits (Makefile.am): Likewise.
15035         * modules/termios (Makefile.am): Likewise.
15036         * modules/time (Makefile.am): Likewise.
15037         * modules/unistd (Makefile.am): Likewise.
15038         * modules/wchar (Makefile.am): Likewise.
15039         * modules/wctype-h (Makefile.am): Likewise.
15040         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15041
15042 2011-04-05  Bruno Haible  <bruno@clisp.org>
15043
15044         pipe2: Relicense under LGPLv2+.
15045         * modules/pipe2 (License): Change to LGPLv2+.
15046         Requested by Eric Blake, for libvirt.
15047
15048 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15049
15050         bootstrap: compute gnulib_extra_files after updating build_aux
15051         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15052         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15053
15054 2011-04-05  Eric Blake  <eblake@redhat.com>
15055
15056         bootstrap: preserve git whitelist item sorting
15057         * build-aux/bootstrap (sort_patterns): New function.
15058         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15059
15060 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15061
15062         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15063         sc_space_tab check.
15064
15065 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15066
15067         areadlink, areadlinkat: rewrite in terms of careadlinkat
15068         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15069         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15070         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15071         (malloc, realloc): Remove #undefs.
15072         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15073         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15074         readlink, ssize_t, stdint, unistd.
15075         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15076         areadlink, stdint.
15077
15078         careadlinkat: new module
15079         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15080         * modules/careadlinkat: New files, written by me with
15081         a review and feedback from Ben Pfaff in
15082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15083
15084 2011-04-01  Bruno Haible  <bruno@clisp.org>
15085
15086         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15087         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15088         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15089         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15090         Reported by Bruce Korb <bruce.korb@gmail.com>.
15091
15092 2011-04-01  Bruno Haible  <bruno@clisp.org>
15093
15094         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15095         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15096         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15097         * modules/wcpcpy (Depends-on): Add extensions.
15098         * modules/wcpncpy (Depends-on): Likewise.
15099         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15100         systems.
15101         * doc/posix-functions/wcpncpy.texi: Likewise.
15102         * doc/posix-functions/wcwidth.texi: Likewise.
15103
15104 2011-03-31  Eric Blake  <eblake@redhat.com>
15105
15106         nonblocking: fix mingw test failures
15107         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15108         non-blocking flag on regular file.
15109         (get_nonblocking_flag): Set errno on invalid fd.
15110         * tests/test-nonblocking.c (main): Avoid test failure on
15111         directories if fchdir is not active.
15112         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15113
15114 2011-03-31  Bruno Haible  <bruno@clisp.org>
15115
15116         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15117         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15118         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15119         Reported by Simon Josefsson <simon@josefsson.org>.
15120
15121 2011-03-31  Bruno Haible  <bruno@clisp.org>
15122         and Eric Blake  <eblake@redhat.com>
15123
15124         nonblocking: new module
15125         * modules/nonblocking: New module.
15126         * modules/nonblocking-tests: Likewise.
15127         * lib/nonblocking.h: New file.
15128         * lib/nonblocking.c: Likewise.
15129         * tests/test-nonblocking.c: New test.
15130         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15131
15132 2011-03-30  Bruno Haible  <bruno@clisp.org>
15133
15134         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15135         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15136         instead of 'printf' format for GCC >= 4.4.
15137         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15138         (fprintf, printf, vfprintf, vprintf): Declare with
15139         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15140         the system's vfprintf() function.
15141         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15142
15143 2011-03-30  Eric Blake  <eblake@redhat.com>
15144
15145         passfd: fix scoping bug
15146         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15147         before sendmsg/recvmsg.
15148
15149         passfd: standardize coding conventions
15150         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15151         can be learned at compile time.
15152         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15153         ifdefs.
15154         (sendfd, recvfd): Follow gnulib code conventions.
15155
15156         passfd: fix incorrect sendmsg arguments
15157         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15158         incorrect msg_controllen value.
15159         * modules/passfd-tests (Depends-on): Check for alarm.
15160         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15161         Reported by Bastien ROUCARIES.
15162
15163 2011-03-30  Bruno Haible  <bruno@clisp.org>
15164
15165         c-strcasestr: Relicense under LGPLv2+.
15166         * modules/c-strcasestr (License): Change to LGPLv2+.
15167         Requested by Eric Blake, for libvirt.
15168
15169 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15170
15171         * users.txt: Add libidn2.  Fix libtasn1 link.
15172
15173 2011-03-30  Jim Meyering  <meyering@redhat.com>
15174
15175         tests: readlink* ("",... fails with EINVAL on newer kernels
15176         readlink and readlinkat have typically failed with ENOENT for
15177         the invalid, empty file name,  "".  However, with the advent
15178         of linux-2.6.39, they fail with EINVAL.
15179         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15180         when operating on the empty file name.
15181         * tests/test-readlink.h (test_readlink): Likewise.
15182
15183 2011-03-29  Bruno Haible  <bruno@clisp.org>
15184
15185         Relicense some modules under LGPLv2+, for libidn2.
15186         * modules/array-mergesort (License): Change to LGPLv2+.
15187         * modules/c-strcaseeq (License): Likewise.
15188         * modules/striconveh (License): Likewise.
15189         * modules/striconveha (License): Likewise.
15190         * modules/uniconv/base (License): Likewise.
15191         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15192         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15193         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15194         * modules/unictype/base (License): Likewise.
15195         * modules/unictype/bidiclass-of (License): Likewise.
15196         * modules/unictype/category-M (License): Likewise.
15197         * modules/unictype/category-none (License): Likewise.
15198         * modules/unictype/category-of (License): Likewise.
15199         * modules/unictype/category-test (License): Likewise.
15200         * modules/unictype/category-test-withtable (License): Likewise.
15201         * modules/unictype/combining-class (License): Likewise.
15202         * modules/unictype/joiningtype-of (License): Likewise.
15203         * modules/unictype/scripts (License): Likewise.
15204         * modules/uninorm/base (License): Likewise.
15205         * modules/uninorm/canonical-decomposition (License): Likewise.
15206         * modules/uninorm/composition (License): Likewise.
15207         * modules/uninorm/decompose-internal (License): Likewise.
15208         * modules/uninorm/decomposition-table (License): Likewise.
15209         * modules/uninorm/nfc (License): Likewise.
15210         * modules/uninorm/nfd (License): Likewise.
15211         * modules/uninorm/u32-normalize (License): Likewise.
15212         * modules/unistr/base (License): Likewise.
15213         * modules/unistr/u32-cpy (License): Likewise.
15214         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15215         * modules/unistr/u32-to-u8 (License): Likewise.
15216         * modules/unistr/u32-uctomb (License): Likewise.
15217         * modules/unistr/u8-check (License): Likewise.
15218         * modules/unistr/u8-mblen (License): Likewise.
15219         * modules/unistr/u8-mbtouc (License): Likewise.
15220         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15221         * modules/unistr/u8-mbtoucr (License): Likewise.
15222         * modules/unistr/u8-prev (License): Likewise.
15223         * modules/unistr/u8-strlen (License): Likewise.
15224         * modules/unistr/u8-to-u32 (License): Likewise.
15225         * modules/unistr/u8-uctomb (License): Likewise.
15226         * modules/unitypes (License): Likewise.
15227         Requested by Simon Josefsson.
15228
15229 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15230
15231         lib-symbol-visibility: Add a notice.
15232         * modules/lib-symbol-visibility (Notice): New field.
15233
15234 2011-03-29  Bruno Haible  <bruno@clisp.org>
15235
15236         getaddrinfo: Doc fix.
15237         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15238         section "fixed in Gnulib".
15239
15240 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15241
15242         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15243         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15244
15245 2011-03-26  Bruno Haible  <bruno@clisp.org>
15246
15247         unictype/property-byname: Reduce the number of load-time relocations.
15248         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15249         (UC_PROPERTY_INDEX_*): New enumeration values.
15250         (uc_property_byname): Convert an index from the lookup table to an
15251         uc_property_t.
15252         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15253         values.
15254
15255 2011-03-26  Bruno Haible  <bruno@clisp.org>
15256
15257         unictype/property-byname: Allow omitted word separators and aliases.
15258         * lib/unictype/pr_byname.gperf: Add property names without word
15259         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15260         for 'space'.
15261
15262 2011-03-26  Bruno Haible  <bruno@clisp.org>
15263
15264         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15265         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15266         also hyphens to space.
15267         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15268         without spaces.
15269         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15270
15271 2011-03-26  Bruno Haible  <bruno@clisp.org>
15272
15273         unictype/joiningtype-byname: Recognize long names as well.
15274         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15275         a long name.
15276         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15277         unictype/joiningtype_byname.h.
15278         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15279         * lib/unictype/joiningtype_byname.gperf: New file.
15280         * modules/unictype/joiningtype-byname (Files): Add
15281         lib/unictype/joiningtype_byname.gperf.
15282         (Depends-on): Add gperf.
15283         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15284         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15285         long names.
15286
15287         Tests for module 'unictype/joiningtype-longname'.
15288         * modules/unictype/joiningtype-longname-tests: New file.
15289         * tests/unictype/test-joiningtype_longname.c: New file.
15290
15291         New module 'unictype/joiningtype-longname'.
15292         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15293         * lib/unictype/joiningtype_longname.c: New file.
15294         * modules/unictype/joiningtype-longname: New file.
15295         * modules/unictype/joiningtype-all (Depends-on): Add
15296         unictype/joiningtype-longname.
15297
15298 2011-03-26  Bruno Haible  <bruno@clisp.org>
15299
15300         unictype/bidiclass-byname: Recognize long names as well.
15301         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15302         name.
15303         * lib/unictype/bidi_byname.c: Include <string.h>,
15304         unictype/bidi_byname.h.
15305         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15306         * lib/unictype/bidi_byname.gperf: New file.
15307         * modules/unictype/bidiclass-byname (Files): Add
15308         lib/unictype/bidi_byname.gperf.
15309         (Depends-on): Add gperf.
15310         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15311         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15312         long names.
15313
15314         Tests for module 'unictype/bidiclass-longname'.
15315         * modules/unictype/bidiclass-longname-tests: New file.
15316         * tests/unictype/test-bidi_longname.c: New file.
15317
15318         New module 'unictype/bidiclass-longname'.
15319         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15320         * lib/unictype/bidi_longname.c: New file.
15321         * modules/unictype/bidiclass-longname: New file.
15322         * modules/unictype/bidiclass-all (Depends-on): Add
15323         unictype/bidiclass-longname.
15324
15325 2011-03-26  Bruno Haible  <bruno@clisp.org>
15326
15327         unictype/bidi*: Rename modules.
15328         * modules/unictype/bidiclass-all: Renamed from
15329         modules/unictype/bidicategory-all.
15330         * modules/unictype/bidiclass-name: Renamed from
15331         modules/unictype/bidiclass-name.
15332         (Description): Update.
15333         * modules/unictype/bidiclass-name-tests: Renamed from
15334         modules/unictype/bidicategory-name-tests.
15335         * modules/unictype/bidiclass-byname: Renamed from
15336         modules/unictype/bidicategory-byname.
15337         (Description): Update.
15338         * modules/unictype/bidiclass-byname-tests: Renamed from
15339         modules/unictype/bidicategory-byname-tests.
15340         * modules/unictype/bidiclass-of: Renamed from
15341         modules/unictype/bidicategory-of.
15342         (Description): Update.
15343         * modules/unictype/bidiclass-of-tests: Renamed from
15344         modules/unictype/bidicategory-of-tests.
15345         * modules/unictype/bidiclass-test: Renamed from
15346         modules/unictype/bidicategory-test.
15347         (Description): Update.
15348         * modules/unictype/bidiclass-test-tests: Renamed from
15349         modules/unictype/bidicategory-test-tests.
15350         * modules/unictype/bidicategory-all: New file, a simple redirection.
15351         * modules/unictype/bidicategory-name: Likewise.
15352         * modules/unictype/bidicategory-byname: Likewise.
15353         * modules/unictype/bidicategory-of: Likewise.
15354         * modules/unictype/bidicategory-test: Likewise.
15355         * modules/unictype/property-bidi-* (Dependencies): Update.
15356         * lib/unictype/bidi_*.c: Update comment.
15357
15358 2011-03-26  Bruno Haible  <bruno@clisp.org>
15359
15360         unictype/bidi*: Rename functions, part 2.
15361         * modules/unictype/bidicategory-name (configure.ac): Update required
15362         libunistring version.
15363         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15364
15365 2011-03-25  Bruno Haible  <bruno@clisp.org>
15366
15367         New module 'unictype/combining-class-all'.
15368         * modules/unictype/combining-class-all: New file.
15369
15370         Tests for module 'unictype/combining-class-byname'.
15371         * modules/unictype/combining-class-byname-tests: New file.
15372         * tests/unictype/test-combiningclass_byname.c: New file.
15373
15374         New module 'unictype/combining-class-byname'.
15375         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15376         * lib/unictype/combiningclass_byname.c: New file.
15377         * lib/unictype/combiningclass_byname.gperf: New file.
15378         * modules/unictype/combining-class-byname: New file.
15379
15380         Tests for module 'unictype/combining-class-longname'.
15381         * modules/unictype/combining-class-longname-tests: New file.
15382         * tests/unictype/test-combiningclass_longname.c: New file.
15383
15384         New module 'unictype/combining-class-longname'.
15385         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15386         * lib/unictype/combiningclass_longname.c: New file.
15387         * modules/unictype/combining-class-longname: New file.
15388
15389         Tests for module 'unictype/combining-class-name'.
15390         * modules/unictype/combining-class-name-tests: New file.
15391         * tests/unictype/test-combiningclass_name.c: New file.
15392
15393         New module 'unictype/combining-class-name'.
15394         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15395         * lib/unictype/combiningclass_name.c: New file.
15396         * modules/unictype/combining-class-name: New file.
15397
15398 2011-03-25  Bruno Haible  <bruno@clisp.org>
15399
15400         unictype/combining-class: Rename source files.
15401         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15402         of unictype/combining.h.
15403         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15404         Update.
15405         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15406         * modules/unictype/combining-class (Description): Fix.
15407         (Files, Makefile.am): Update.
15408         * tests/unictype/test-combiningclass.c: Renamed from
15409         tests/unictype/test-combining.c.
15410         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15411
15412 2011-03-25  Bruno Haible  <bruno@clisp.org>
15413
15414         unictype: Update list of canonical combining classes.
15415         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15416
15417 2011-03-25  Bruno Haible  <bruno@clisp.org>
15418
15419         unictype/category-byname: Recognize long names as well.
15420         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15421         a long name.
15422         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15423         unictype/categ_byname.h.
15424         (UC_CATEGORY_INDEX_*): New enumeration values.
15425         (uc_general_category_byname): Use uc_general_category_lookup and
15426         convert from index to value.
15427         * lib/unictype/categ_byname.gperf: New file.
15428         * modules/unictype/category-byname (Files): Add
15429         lib/unictype/categ_byname.gperf.
15430         (Depends-on): Add gperf.
15431         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15432         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15433         long names.
15434
15435         Tests for module 'unictype/category-longname'.
15436         * modules/unictype/category-longname-tests: New file.
15437         * tests/unictype/test-categ_longname.c: New file.
15438
15439         New module 'unictype/category-longname'.
15440         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15441         * lib/unictype/categ_longname.c: New file.
15442         * modules/unictype/category-longname: New file.
15443         * modules/unictype/category-all (Depends-on): Add it.
15444
15445 2011-03-25  Bruno Haible  <bruno@clisp.org>
15446
15447         Tests for module 'unictype/category-LC'.
15448         * modules/unictype/category-LC-tests: New file.
15449         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15450
15451         New module 'unictype/category-LC'.
15452         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15453         (UC_CATEGORY_LC): New declaration.
15454         (UC_CASED_LETTER): New macro.
15455         * lib/gen-uni-tables.c (is_category_LC): New function.
15456         (output_categories): Also handle category LC.
15457         (UC_CATEGORY_MASK_LC): New enumeration value.
15458         (general_category_byname): Also handle category LC.
15459         * lib/unictype/categ_LC.c: New file.
15460         * lib/unictype/categ_LC.h: New file, automatically generated.
15461         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15462         category LC.
15463         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15464         * modules/unictype/category-LC: New file.
15465         * modules/unictype/category-byname (Depends-on): Add
15466         unictype/category-LC.
15467         * modules/unictype/category-all (Depends-on): Likewise.
15468
15469 2011-03-25  Eric Blake  <eblake@redhat.com>
15470
15471         xmalloc: revert yesterday's regression
15472         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15473         realloc's underlying behavior (allowing allocation of zero-size
15474         objects, especially if malloc-gnu is also in use).
15475
15476 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15477
15478         maint.mk: add missing version to VC-tag
15479         * top/maint.mk: git tag was missing actual tag name; add it.
15480
15481         valgrind: do leak checking, and exit with code 1 on error (not 0)
15482         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15483         to VALGRIND.
15484
15485 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15486
15487         posix-modules: say what it does.
15488         * posix-modules: Add a line to the --help output saying what it does.
15489
15490 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15491
15492         xmalloc: Do not leak if underlying realloc is C99 compatible.
15493         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15494         This avoids a leak on C99-based systems.  See
15495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15496
15497 2011-03-24  Eric Blake  <eblake@redhat.com>
15498
15499         realloc: document portability problem
15500         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15501         passing 0 size to realloc.
15502
15503 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15504
15505         doc: update users.txt
15506         * users.txt: Add cvsps, tmpwatch
15507
15508 2011-03-23  Matt Rice  <ratmice@gmail.com>
15509
15510         doc: update users.txt
15511         * users.txt: Add gdb.
15512
15513 2011-03-23  Jim Meyering  <meyering@redhat.com>
15514
15515         doc: update users.txt
15516         Looking through matches up to the following URL (there are still
15517         several more pages), I found several projects that use gnulib:
15518         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15519         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15520         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15521
15522 2011-03-22  Bruno Haible  <bruno@clisp.org>
15523
15524         unictype/bidi*: Rename functions.
15525         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15526         uc_bidi_class, uc_is_bidi_class): New declarations.
15527         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15528         uc_bidi_category_byname.
15529         (uc_bidi_category_byname): New function.
15530         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15531         u_bidi_category_name.
15532         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15533         (uc_bidi_category_name): New function.
15534         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15535         uc_bidi_category.
15536         (uc_bidi_category): New function.
15537         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15538         uc_is_bidi_category. Invoke uc_bidi_class.
15539         (uc_is_bidi_category): New function.
15540         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15541         instead of uc_bidi_category_byname.
15542         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15543         instead of uc_bidi_category_name.
15544         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15545         uc_bidi_category.
15546         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15547         instead of uc_is_bidi_category.
15548
15549 2011-03-21  Bruno Haible  <bruno@clisp.org>
15550
15551         New module 'unictype/joininggroup-all'.
15552         * modules/unictype/joininggroup-all: New file.
15553
15554         Tests for module 'unictype/joininggroup-of'.
15555         * modules/unictype/joininggroup-of-tests: New file.
15556         * tests/unictype/test-joininggroup_of.c: New file.
15557         * tests/unictype/test-joininggroup_of.h: New file, automatically
15558         generated by gen-uni-tables.
15559
15560         New module 'unictype/joininggroup-of'.
15561         * modules/unictype/joininggroup-of: New file.
15562         * lib/unictype/joininggroup_of.c: New file.
15563         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15564         gen-uni-tables.
15565
15566         Tests for module 'unictype/joininggroup-byname'.
15567         * modules/unictype/joininggroup-byname-tests: New file.
15568         * tests/unictype/test-joininggroup_byname.c: New file.
15569
15570         New module 'unictype/joininggroup-byname'.
15571         * modules/unictype/joininggroup-byname: New file.
15572         * lib/unictype/joininggroup_byname.c: New file.
15573         * lib/unictype/joininggroup_byname.gperf: New file.
15574
15575         Tests for module 'unictype/joininggroup-name'.
15576         * modules/unictype/joininggroup-name-tests: New file.
15577         * tests/unictype/test-joininggroup_name.c: New file.
15578
15579         New module 'unictype/joininggroup-name'.
15580         * modules/unictype/joininggroup-name: New file.
15581         * lib/unictype/joininggroup_name.c: New file.
15582         * lib/unictype/joininggroup_name.h: New file.
15583
15584         New module 'unictype/joiningtype-all'.
15585         * modules/unictype/joiningtype-all: New file.
15586
15587         Tests for module 'unictype/joiningtype-of'.
15588         * modules/unictype/joiningtype-of-tests: New file.
15589         * tests/unictype/test-joiningtype_of.c: New file.
15590         * tests/unictype/test-joiningtype_of.h: New file, automatically
15591         generated by gen-uni-tables.
15592
15593         New module 'unictype/joiningtype-of'.
15594         * modules/unictype/joiningtype-of: New file.
15595         * lib/unictype/joiningtype_of.c: New file.
15596         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15597         gen-uni-tables.
15598
15599         Tests for module 'unictype/joiningtype-byname'.
15600         * modules/unictype/joiningtype-byname-tests: New file.
15601         * tests/unictype/test-joiningtype_byname.c: New file.
15602
15603         New module 'unictype/joiningtype-byname'.
15604         * modules/unictype/joiningtype-byname: New file.
15605         * lib/unictype/joiningtype_byname.c: New file.
15606
15607         Tests for module 'unictype/joiningtype-name'.
15608         * modules/unictype/joiningtype-name-tests: New file.
15609         * tests/unictype/test-joiningtype_name.c: New file.
15610
15611         New module 'unictype/joiningtype-name'.
15612         * modules/unictype/joiningtype-name: New file.
15613         * lib/unictype/joiningtype_name.c: New file.
15614
15615         unictype: Add support for Arabic shaping properties.
15616         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15617         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15618         declarations.
15619         (UC_JOINING_GROUP_*): New enumeration values.
15620         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15621         declarations.
15622         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15623         (unicode_joining_type): New variable.
15624         (UC_JOINING_GROUP_*): New enumeration values.
15625         (unicode_joining_group): New variable.
15626         (fill_arabicshaping, joining_type_as_c_identifier,
15627         output_joining_type_test, output_joining_type,
15628         joining_group_as_c_identifier, output_joining_group_test,
15629         output_joining_group): New functions.
15630         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15631         fill_arabicshaping and output_joining_type_test, output_joining_type,
15632         output_joining_group_test, output_joining_group.
15633         Reported by Simon Josefsson.
15634
15635 2011-03-21  Jim Meyering  <meyering@redhat.com>
15636
15637         strftime: fix a bug in yesterday's change
15638         * lib/strftime.c (add): Accommodate width's initial value of -1.
15639         Otherwise, nstrftime would copy uninitialized data into
15640         the result buffer.
15641
15642 2011-03-21  Jim Meyering  <meyering@redhat.com>
15643
15644         tests: add strftime-tests module
15645         * tests/test-strftime.c: New file.
15646         * modules/strftime-tests: New module.
15647
15648 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15649
15650         strftime: don't assume a byte count fits in 'int'
15651         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15652         found this problem by static analysis, using gcc -Wstrict-overflow
15653         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15654         on an integer overflow having undefined behavior, but it turns out
15655         that the argument is a size, which might not fit in 'int' anyway,
15656
15657 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15658
15659         stdio: don't require ignore_value around fwrite
15660
15661         This patch works around libc bug 11959
15662         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15663         Without this patch, applications must often write
15664         ignore_value (fwrite (...)) even though the ignore_value is
15665         not helpful here.  It's common to write many objects, using
15666         fwrite/printf/etc., and then use ferror to detect output error.
15667
15668         I considered making this patch optional, but decided against it,
15669         because libc is obviously being inconsistent here: there is no
15670         reason libc should insist that user code must inspect fwrite
15671         return's value without also insisting that it inspect printf's,
15672         putchar's, etc.  If user code wants to have a strict style where
15673         all these functions' values are checked (so that ferror need not
15674         be checked), we could add support for that style in a new gnulib
15675         module, but in the meantime it's better to be consistent and to
15676         support common usage.
15677
15678         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15679         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15680         that we are compiling in checking mode, and if not C++, and
15681         if not already wrapping fwrite for some other reason.
15682         (fwrite): #define to rpl_fwrite if the latter is defined.
15683
15684 2011-03-20  Bruno Haible  <bruno@clisp.org>
15685
15686         verror: Fix compilation error introduced on 2011-02-13.
15687         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15688         instead of __attribute__.
15689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15690
15691 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15692             Bruno Haible  <bruno@clisp.org>
15693
15694         socklen: do not depend on sys_socket
15695         While trying to modify Emacs to use gnulib's socklen module,
15696         I discovered a circular dependency: socklen depends on sys_socket
15697         and vice versa.  Emacs can use socklen, but it does not need
15698         sys_socket because it has its own substitute for sys/socket.h.
15699         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15700         gl_TYPE_SOCKLEN_T.
15701         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15702         gl_PREREQ_SYS_H_SOCKET.
15703         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15704         gl_PREREQ_SYS_H_SOCKET.
15705         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15706         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15707         * modules/socklen (Depends-on): Do not depend on sys_socket.
15708         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15709
15710 2011-03-20  Jim Meyering  <meyering@redhat.com>
15711
15712         maint.mk: sort file names *after* new transformation
15713         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15714         prefix would have led to an unwarranted failure in GNU parted.
15715         Sort after that transformation.
15716
15717 2011-03-19  Jim Meyering  <meyering@redhat.com>
15718
15719         maint.mk: fix po-file syntax-check rule
15720         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15721         Patch by Bruno Haible.
15722
15723 2011-03-19  Bruno Haible  <bruno@clisp.org>
15724
15725         socklen: Update comment.
15726         * m4/socklen.m4: Update comment about platforms.
15727
15728 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15729             Bruno Haible  <bruno@clisp.org>
15730
15731         inet_ntop, inet_pton: Simplify.
15732         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15733         documented to provide socklen_t and we already depend on sys_socket.
15734         * modules/inet_pton (Depends-on): Likewise.
15735         * lib/arpa_inet.in.h: Adjust comment.
15736
15737 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15738             Bruno Haible  <bruno@clisp.org>
15739
15740         netdb: Simplify.
15741         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15742         documented to provide socklen_t and we already depend on sys_socket.
15743         * lib/netdb.in.h: Adjust comment.
15744
15745 2011-03-19  Bruno Haible  <bruno@clisp.org>
15746
15747         sys_socket, netdb: Document problem with socklen_t.
15748         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15749         platforms.
15750         * doc/posix-headers/netdb.texi: Likewise.
15751
15752 2011-03-18  Eric Blake  <eblake@redhat.com>
15753
15754         maint.mk: let po check work in VPATH build
15755         * top/maint.mk (po_file): Allow cfg.mk override.
15756         (sc_po_check): Allow VPATH use.
15757         Reported by Jiri Denemark.
15758
15759 2011-03-16  Jim Meyering  <meyering@redhat.com>
15760
15761         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15762         Before, you would have had to create one .x-sc_ file per rule in order
15763         to exempt offending files.  Now, you may instead use a Make variable --
15764         usually defined in cfg.mk -- whose name identifies the affected rule.
15765         * top/maint.mk (_sc_excl): Define.
15766         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15767         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15768
15769 2011-03-13  Bruno Haible  <bruno@clisp.org>
15770
15771         ignore-value tests: Avoid warnings.
15772         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15773         empty for gcc < 3.4.
15774
15775 2011-03-13  Bruno Haible  <bruno@clisp.org>
15776
15777         passfd: Fix link error on Solaris.
15778         * modules/passfd (Description): Correct.
15779         (Depends-on): Add socketlib.
15780         (Link): New section.
15781         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15782
15783 2011-03-13  Bruno Haible  <bruno@clisp.org>
15784
15785         passfd: Fix link error on AIX 5.2.
15786         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15787
15788 2011-03-13  Bruno Haible  <bruno@clisp.org>
15789
15790         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15791         * lib/sys_socket.in.h: Include <stddef.h>.
15792         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15793         CMSG_FIRSTHDR. Remove unused variable.
15794
15795 2011-03-13  Bruno Haible  <bruno@clisp.org>
15796
15797         passfd: Fix compilation error on OpenBSD.
15798         * lib/passfd.c: Include <sys/uio.h>.
15799
15800 2011-03-13  Bruno Haible  <bruno@clisp.org>
15801
15802         passfd test: Fix warnings.
15803         * tests/test-passfd.c: Include <sys/wait.h>.
15804         (main): Fix typo.
15805
15806 2011-03-13  Bruno Haible  <bruno@clisp.org>
15807
15808         passfd module, part 4, tweaks.
15809         * tests/test-passfd.c: Reorder includes.
15810         (main): Fix perror and printf calls.
15811
15812 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15813
15814         passfd module, part 4.
15815         * modules/passfd-tests: New file.
15816         * tests/test-passfd.c: New file.
15817
15818 2011-03-13  Jim Meyering  <meyering@redhat.com>
15819
15820         Makefile: rely on GNU make; derive syntax-check rule names
15821         Rather than requiring that each sc_ rule be listed as a dependent
15822         of "check", use features of GNU make to derive the list.
15823         * Makefile (syntax-check-rules): Define.
15824         (check): Depend on the new variable, not the hard-coded list.
15825
15826 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15827             Bruno Haible  <bruno@clisp.org>
15828
15829         passfd module, part 3.
15830         * lib/passfd.h (recvfd): Add a flags argument.
15831         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15832         (recvfd): Add a flags argument.
15833         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15834         exists.
15835         * modules/passfd (Depends-on): Add cloexec.
15836         Suggested by Eric Blake.
15837
15838 2011-03-13  Bruno Haible  <bruno@clisp.org>
15839
15840         passfd module, part 2, tweaks.
15841         * modules/passfd (Files): Reorder.
15842         (Depends-on): Remove errno.
15843         (Include): Remove <sys/socket.h>, <sys/un.h>.
15844         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15845         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15846         specification header. Include <sys/socket.h> always. Don't include
15847         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15848         (sendfd): Clarify that it sets errno when it fails.
15849         (recvfd): Fix specification.
15850
15851 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15852
15853         passfd module, part 2.
15854         * modules/passfd: New file.
15855         * lib/passfd.h: New file.
15856         * lib/passfd.c: New file.
15857
15858 2011-03-12  Bruno Haible  <bruno@clisp.org>
15859
15860         wcswidth, mbswidth: Avoid integer overflow.
15861         * lib/wcswidth.c: Include <limits.h>.
15862         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15863         * lib/mbswidth.c: Include <limits.h>.
15864         (mbsnwidth): Avoid 'int' overflow.
15865         Reported by Jim Meyering.
15866
15867 2011-03-12  Bruno Haible  <bruno@clisp.org>
15868
15869         futimens, utimensat: Avoid endless recursion on Solaris 10.
15870         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15871         Solaris.
15872         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15873         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15874
15875 2011-03-11  Jim Meyering  <meyering@redhat.com>
15876
15877         maint.mk: relax a regexp to accommodate other formatting styles
15878         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15879         between "ngettext" and the following "(".
15880
15881 2011-03-11  Pádraig Brady <P@draigBrady.com>
15882
15883         maint.mk: suppress a false positive warning
15884         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15885         diagnostics are marked with ngettext.
15886
15887 2011-03-10  Eric Blake  <eblake@redhat.com>
15888
15889         wchar: add explicit dependencies, for Tru64
15890         * modules/mbmemcasecoll (Depends-on): Add wchar.
15891         * modules/mbtowc (Depends-on): Likewise.
15892         * modules/vasnprintf (Depends-on): Likewise.
15893         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15894         * modules/wctomb (Depends-on): Likewise.
15895         Reported by Peter O'Gorman.
15896
15897 2011-03-08  Bruno Haible  <bruno@clisp.org>
15898
15899         passfd module, part 1, tweaks.
15900         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15901         Improve indentation. Improve AC_MSG_CHECKING messages.
15902         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15903         gl_SOCKET_FAMILIES.
15904
15905 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15906
15907         passfd module, part 1.
15908         * m4/afunix.m4: New file.
15909         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15910         sockets.
15911
15912 2011-03-08  Bruno Haible  <bruno@clisp.org>
15913
15914         regex-quote: New API.
15915         * lib/regex-quote.h: Include <stdbool.h>.
15916         (struct regex_quote_spec): New type.
15917         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15918         New declarations.
15919         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15920         'const struct regex_quote_spec *' argument.
15921         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15922         (pcre_special): New constant.
15923         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15924         New functions.
15925         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15926         'const struct regex_quote_spec *' argument.
15927         * modules/regex-quote (Depends-on): Add stdbool.
15928         * tests/test-regex-quote.c (check): Update for new API. Add test for
15929         anchored results.
15930         * NEWS: Mention the API change.
15931         Reported by Reuben Thomas and Eric Blake.
15932
15933 2011-03-06  Bruno Haible  <bruno@clisp.org>
15934
15935         regex-quote: Fix creation of POSIX extended regular expressions.
15936         * lib/regex-quote.c (ere_special): Add grouping and alternation
15937         operators.
15938
15939 2011-03-05  Bruno Haible  <bruno@clisp.org>
15940
15941         doc: Improve doc regarding autopoint vs. gnulib.
15942         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15943         disable autopoint while running autoreconf.
15944         Suggested by Ralf Wildenhues.
15945
15946 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15947
15948         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15949         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15950
15951 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15952
15953         parse-duration: remove xalloc.h dependency
15954         * lib/parse-duration.c (parse_period): handle NULL return from
15955         strdup instead of calling xstrdup().
15956         * modules/parse-duration: remove "xalloc" dependency
15957
15958 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15959
15960         bootstrap: honor m4_base when running aclocal
15961         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15962
15963 2011-03-02  Jim Meyering  <meyering@redhat.com>
15964
15965         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15966         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15967         on request from Matt Booth.
15968
15969 2011-03-01  Eric Blake  <eblake@redhat.com>
15970
15971         test-link: work on Hurd
15972         * tests/test-link.h (test_link): Hurd rejects linking directories
15973         with EISDIR instead of the POSIX-mandated EPERM.
15974
15975 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15976
15977         stdio: simplify by moving files to printf-posix, sigpipe
15978         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15979         since this symbol is needed only if printf is replaced.
15980         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15981         Require gl_ASM_SYMBOL_PREFIX.
15982         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15983         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15984         (Depends-on): Add 'raise'.
15985         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15986         * modules/stdio (Files): Remove lib/stdio-write.c,
15987         m4/asm-underscore.m4.
15988         (Depends-on): Remove 'raise'.
15989
15990         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15991         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15992         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15993         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15994
15995 2011-02-28  Bruno Haible  <bruno@clisp.org>
15996
15997         localcharset: Assume ANSI C behaviour of free().
15998         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15999         calling free().
16000         Suggested by Simon Josefsson <simon@josefsson.org>.
16001
16002 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
16003             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
16004             Bruno Haible  <bruno@clisp.org>  (tiny change)
16005
16006         On Cygwin, use /proc file system instead of win32 API.
16007         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
16008         Win32 file names.
16009         (DllMain): Simplify by removing Cygwin specific code.
16010         (find_shared_library_fullname): Use Linux specific implementation also
16011         for Cygwin.
16012         (get_shared_library_fullname): Update accordingly.
16013         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
16014         Win32 file names.
16015         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16016         Cygwin specific code.
16017
16018 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16019             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16020
16021         Fix OpenMP flag detection for various Fortran compilers.
16022         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16023         OpenMP-conditional compilation construct, to force compile
16024         failure with missing OpenMP flag.
16025         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16026
16027 2011-02-25  Eric Blake  <eblake@redhat.com>
16028
16029         strstr: expand test coverage
16030         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16031         compilation.
16032         * tests/test-memmem.c (main): Duplicate tests.
16033         * tests/test-strcasestr.c (main): Likewise.
16034         * tests/test-c-strcasestr.c (main): Likewise.
16035
16036 2011-02-25  Jim Meyering  <meyering@redhat.com>
16037
16038         maint.mk: detect missing-NL-at-EOF, too
16039         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16040         it also detects when a file lacks a newline at EOF.
16041         (require_exactly_one_NL_at_EOF_): Renamed from
16042         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16043         since people may well have .x-sc_... file names tied to the
16044         existing name.  Suggested by Eric Blake.
16045
16046 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16047
16048         dirname: move m4/dos.m4 functionality into lib/dosname.h
16049
16050         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16051         extracts symbols from it, puts them into config.h; but it's much
16052         easier to use the symbols directly.  filename.h already does this,
16053         but it disagrees with dos.m4 in some respects.  This patch
16054         introduces a different include file dosname.h that packages up
16055         dos.m4, and then later we can work on merging filename.h and
16056         dosname.h.  Applications that need only the easy-to-configure
16057         symbols should consider including dosname.h rather than dirname.h.
16058         * NEWS: Mention incompatible changes.
16059         * m4/dos.m4: Remove.
16060         * lib/dosname.h, modules/dosname: New files.
16061         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16062         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16063         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16064         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16065         Include dosname.h, not dirname.h.
16066         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16067         Include dosname.h, for definitions of symbols like ISSLASH
16068         that used to be in config.h.
16069         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16070         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16071         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16072         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16073         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16074         * modules/rmdir (Files): Likewise.
16075         * modules/stat (Files): Likewise.
16076         * modules/unlink (Files): Likewise.
16077         * modules/dirname-lgpl (Depends-on): Add dosname.
16078         * modules/lstat (Depends-on): Likewise.
16079         * modules/openat (Depends-on): Likewise.
16080         * modules/rmdir (Depends-on): Likewise.
16081         * modules/savewd (Depends-on): Likewise.
16082         * modules/stat (Depends-on): Likewise.
16083         * modules/unlink (Depends-on): Likewise.
16084         * modules/openat (Depends-on): Remove dirname-lgpl.
16085         * modules/savewd (Depends-on): Likewise.
16086         * tests/test-dirname.c: Do not use removed symbols like
16087         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16088         the remaining symbols, e.g., ISSLASH ('\\').
16089
16090 2011-02-25  Eric Blake  <eblake@redhat.com>
16091
16092         strstr: revert patches that introduced bug and pessimization
16093         * lib/str-two-way.h: Add another reference.
16094         (two_way_short_needle, two_way_long_needle): Revert changes from
16095         2011-02-24; they pessimize search speed.
16096         (critical_factorization): Partially revert changes from
16097         2010-06-22; they violate the requirement that the left half of the
16098         needle be smaller than the period of the needle.
16099
16100 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16101
16102         filenamecat: remove unnecessary dependency on dirname-lgpl
16103         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16104         is no direct dependency, just an indirect one via filenamecat-lgpl.
16105
16106         remove: remove unnecessary use of m4/dos.m4
16107         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16108         * modules/remove (FILES): Remove m4/dos.m4.
16109
16110         * lib/openat-proc.c: Don't include dirname.h; not needed.
16111
16112         backupfile: remove unnecessary use of m4/dos.m4
16113         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16114         of its symbols are used by the backupfile code.  backupfile.c does
16115         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16116         for the rare case of programs that want all their backup file
16117         names to live within 8+3 limits, and dos.m4 doesn't address that.
16118         * modules/backupfile (Files): Remove m4/dos.m4.
16119
16120 2011-02-24  Jim Meyering  <meyering@redhat.com>
16121
16122         strstr: fix a bug whereby strstr would mistakenly return NULL
16123         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16124         in period calculation.
16125         (two_way_long_needle): Likewise.
16126         The original problem was reported by Mike Stump in
16127         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16128         Ralf Wildenhues provided the short needle and haystack.
16129         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16130         Add a more involved test to trigger the bug in two_way_long_needle.
16131
16132 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16133
16134         gnulib-tool: remove use of bold display in help screen
16135         * gnulib-tool (func_usage): Do not use bold display anymore in the
16136         help screen.  That was just meant to be a temporary emphasis for a
16137         backward-incompatible change.
16138
16139 2011-02-23  Bruno Haible  <bruno@clisp.org>
16140
16141         Fix misindentation of preprocessor directives.
16142         * lib/argp-namefrob.h: Reindent preprocessor directives.
16143         * lib/getopt_int.h (struct _getopt_data): Likewise.
16144         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16145         * lib/vasnprintf.c (decode_long_double): Likewise.
16146         * tests/test-argmatch.c: Insert blank lines, for clarity.
16147         * tests/test-exclude.c: Likewise.
16148
16149 2011-02-22  Bruno Haible  <bruno@clisp.org>
16150
16151         ioctl: Fix for MacOS X in 64-bit mode.
16152         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16153         value.
16154         Suggested by Eric Blake.
16155         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16156
16157 2011-02-22  Jim Meyering  <meyering@redhat.com>
16158
16159         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16160         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16161         in lib/.
16162
16163 2011-02-22  Eric Blake  <eblake@redhat.com>
16164
16165         maint: avoid any CDPATH issue
16166         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16167
16168         maint: adjust cpp indentation for my modules, as well
16169         * Makefile (sc_cpp_indent_check): Add my name.
16170         * lib/fbufmode.c: Filter through cppi.
16171         * lib/fpurge.c: Likewise.
16172         * lib/freadable.c: Likewise.
16173         * lib/freading.c: Likewise.
16174         * lib/fwritable.c: Likewise.
16175         * lib/fwriting.c: Likewise.
16176         * lib/sigaction.c: Likewise.
16177
16178 2011-02-22  Jim Meyering  <meyering@redhat.com>
16179
16180         maint: adjust cpp indentation to reflect nesting depth
16181         I.e., in a block of code that begins with an unnested "#if",
16182         put one space between the "#" in column 1 and following token.
16183         For example,
16184         -#include <sys/vfs.h>
16185         +# include <sys/vfs.h>
16186         Do this only in .c files that are part of a module I maintain.
16187         * lib/linkat.c: Filter through cppi.
16188         * lib/nanosleep.c: Likewise.
16189         * lib/openat.c: Likewise.
16190         * lib/openat-die.c: Likewise.
16191         * lib/dup3.c: Likewise.
16192         * lib/fchownat.c: Likewise.
16193         * lib/flock.c: Likewise.
16194         * lib/fsync.c: Likewise.
16195         * lib/fts.c: Likewise.
16196         * lib/getpass.c: Likewise.
16197         * lib/gettimeofday.c: Likewise.
16198         * lib/userspec.c: Likewise.
16199         * Makefile (sc_cpp_indent_check): New rule, to check this.
16200
16201 2011-02-22  Bruno Haible  <bruno@clisp.org>
16202
16203         New module 'wctomb'.
16204         * lib/stdlib.in.h (wctomb): New declaration.
16205         * lib/wctomb.c: New file.
16206         * lib/wctomb-impl.h: New file.
16207         * m4/wctomb.m4: New file.
16208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16209         REPLACE_WCTOMB.
16210         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16211         REPLACE_WCTOMB.
16212         * modules/wctomb: New file.
16213         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16214         * doc/posix-functions/wctomb.texi: Mention the new module.
16215         * modules/wctob (Depends-on): Add wctomb.
16216
16217 2011-02-22  Bruno Haible  <bruno@clisp.org>
16218
16219         New module 'mbtowc'.
16220         * lib/stdlib.in.h (mbtowc): New declaration.
16221         * lib/mbtowc.c: New file.
16222         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16223         * m4/mbtowc.m4: New file.
16224         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16225         REPLACE_MBTOWC.
16226         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16227         REPLACE_MBTOWC.
16228         * modules/mbtowc: New file.
16229         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16230         * doc/posix-functions/mbtowc.texi: Mention the new module.
16231         * modules/btowc (Depends-on): Add mbtowc.
16232
16233 2011-02-22  Bruno Haible  <bruno@clisp.org>
16234
16235         wcrtomb: Add more tests for native Windows platforms.
16236         * tests/test-wcrtomb-w32-1.sh: New file.
16237         * tests/test-wcrtomb-w32-2.sh: New file.
16238         * tests/test-wcrtomb-w32-3.sh: New file.
16239         * tests/test-wcrtomb-w32-4.sh: New file.
16240         * tests/test-wcrtomb-w32-5.sh: New file.
16241         * tests/test-wcrtomb-w32.c: New file.
16242         * modules/wcrtomb-tests (Files): Add them.
16243         (Makefile.am): Arrange to run these tests.
16244         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16245         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16246
16247 2011-02-20  Bruno Haible  <bruno@clisp.org>
16248
16249         wcrtomb: Enhance test.
16250         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16251
16252 2011-02-20  Bruno Haible  <bruno@clisp.org>
16253
16254         mbrtowc: Tiny optimization.
16255         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16256
16257 2011-02-20  Jim Meyering  <meyering@redhat.com>
16258
16259         test-exclude.c: remove unmatched #endif
16260         * tests/test-exclude.c: Remove stray #endif, left over from
16261         the change of a week ago.
16262
16263 2011-02-19  Jim Meyering  <meyering@redhat.com>
16264
16265         git-version-gen: skip "-dirty" check when appropriate
16266         * build-aux/git-version-gen: Don't run any git commands when the
16267         version string comes from .tarball-version.  Prior to this, we
16268         would run git update-index --refresh even from a just-unpacked
16269         tarball directory, and that could affect a .git/ directory in a
16270         parent of the build directory.  Reported by Mike Frysinger.
16271
16272 2011-02-19  Bruno Haible  <bruno@clisp.org>
16273
16274         unictype/property-byname: Reduce the size of the 'data' segment.
16275         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16276
16277 2011-02-19  Bruno Haible  <bruno@clisp.org>
16278
16279         unictype/scripts: Reduce the size of the 'data' segment.
16280         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16281         '%pic'.
16282         * lib/unictype/scripts_byname.gperf: Regenerated.
16283
16284 2011-02-19  Bruno Haible  <bruno@clisp.org>
16285
16286         stdint: Update documentation.
16287         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16288
16289 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16290
16291         stdint: omit redundant check for wchar.h
16292         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16293         always tests whether wchar.h exists, so remove the now-redundant test.
16294
16295 2011-02-18  Bruno Haible  <bruno@clisp.org>
16296
16297         stdint: Cut dependency to module 'wchar'.
16298         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16299         include the necessary prerequisites.
16300         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16301         * modules/stdint (Depends-on): Remove wchar.
16302         (Makefile.am): Substitute HAVE_WCHAR_H.
16303         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16304
16305 2011-02-18  Eric Blake  <eblake@redhat.com>
16306
16307         longlong: skip, rather than fail, on cross-compilation
16308         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16309         when cross-compiling; regression from 2011-02-16.
16310
16311 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16312
16313         * NEWS: Mention 2011-02-08 change to stdlib.
16314
16315 2011-02-17  Bruno Haible  <bruno@clisp.org>
16316
16317         getloadavg: Add comments about platforms.
16318         * m4/getloadavg.m4: Add comment.
16319         * lib/getloadavg.c: Likewise.
16320
16321 2011-02-17  Bruno Haible  <bruno@clisp.org>
16322
16323         getloadavg: Fix link error on Solaris 2.6.
16324         * modules/getloadavg (Link): New section.
16325         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16326         linking test-getloadavg.
16327         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16328         getloadavg.
16329
16330 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16331
16332         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16333         It was 'int', but this doesn't match the IRIX 6.5 manual.
16334         Suggested by Bruno Haible in
16335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16336
16337 2011-02-17  Bruno Haible  <bruno@clisp.org>
16338
16339         havelib: Fix comments.
16340         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16341         change.
16342
16343 2011-02-17  Bruno Haible  <bruno@clisp.org>
16344
16345         havelib: Update config.rpath.
16346         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16347
16348 2011-02-17  Bruno Haible  <bruno@clisp.org>
16349
16350         getloadavg test: Add some plausibility checks.
16351         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16352         is improbable.
16353
16354 2011-02-16  Eric Blake  <eblake@redhat.com>
16355
16356         maintainer-makefile: make syntax-check a no-op from tarballs
16357         * top/maint.mk (no-vc-detected): New rule.
16358         (local-checks-available): Use it to avoid hanging if someone tries
16359         'make syntax-check' from a tarball.  Also append to any non-syntax
16360         checks already defined in cfg.mk.
16361
16362 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16363
16364         longlong: tune, particularly for common case of c99
16365
16366         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16367         or running anything if c99, or if unsigned long long int does not
16368         work.  In either case, we know the answer without further tests.
16369         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16370         it at most once, and use its results for both long long int and
16371         unsigned long long int.  This is more likely to be efficient in
16372         the common case where the program wants to check for both long
16373         long int and unsigned long long int.
16374         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16375         since the answer is already known.
16376
16377 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16378
16379         getloadavg: set errno
16380         * lib/getloadavg.c: Set errno when returning -1.  If no other
16381         error number looks appropriate, set it to ENOSYS if the getloadavg
16382         looks like it can't possibly ever work, ENOTSUP otherwise.
16383         Suggested by Bruno Haible in
16384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16385
16386         getloadavg: trim unused parts and speed up 'configure'
16387         * NEWS: Document this.
16388         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16389         always compiled if getloadavg is absent.
16390         Move test code to ...
16391         * tests/test-getloadavg.c: New file, containing previous
16392         contents of test from lib/getloadavg.c.  It also contains
16393         suggestions by Bruno Haible in
16394         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16395         * modules/getloadavg-tests: New file.
16396         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16397         Do tests in the same order as they're needed for getloadavg.c.
16398         Omit setgid-related tests that generate symbols KMEM_GROUP,
16399         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16400         Do only the tests that are needed to see whether the system has
16401         getloadavg, moving the other tests into ...
16402         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16403         NLIST_NAME_UNION; nobody should be using it.  Do not define
16404         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16405         relevant, as the user of this module shouldn't care how getloadavg
16406         is implemented.
16407
16408         getloadavg: omit unused var
16409         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16410
16411 2011-02-15  Jim Meyering  <meyering@redhat.com>
16412
16413         doc: update users.txt
16414         * users.txt: Update iwhd's URL.
16415
16416 2011-02-13  Bruno Haible  <bruno@clisp.org>
16417
16418         Consistent macro naming for macros that use GCC __attribute__.
16419         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16420         _ATTRIBUTE_NONNULL_.
16421         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16422         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16423         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16424         ATTRIBUTE_DEPRECATED.
16425         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16426         ATTRIBUTE_NORETURN.
16427         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16428         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16429         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16430         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16431         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16432         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16433         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16434         ATTRIBUTE_SENTINEL.
16435         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16436         ATTRIBUTE_RETURN_CHECK.
16437         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16438         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16439         ATTRIBUTE_NORETURN.
16440         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16441         Reported by Paul Eggert.
16442
16443 2011-02-13  Bruno Haible  <bruno@clisp.org>
16444
16445         Don't interfere with a program's definition of __attribute__.
16446         * lib/argp.h (__attribute__): Remove definition.
16447         (_GL_ATTRIBUTE_FORMAT): New macro.
16448         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16449         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16450         (_GL_ATTRIBUTE_FORMAT): New macro.
16451         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16452         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16453         GCC 3 or newer.
16454         * lib/error.h (__attribute__): Remove definition.
16455         (_GL_ATTRIBUTE_FORMAT): New macro.
16456         (error, error_at_line): Use it.
16457         * lib/hash.h (__attribute__): Remove definition.
16458         (ATTRIBUTE_WUR): Update definition. Define always.
16459         * lib/openat.h (__attribute__): Remove definition.
16460         (ATTRIBUTE_NORETURN): Update definition. Define always.
16461         * lib/sigpipe-die.h (__attribute__): Remove definition.
16462         (ATTRIBUTE_NORETURN): Update definition. Define always.
16463         * lib/vasnprintf.h (__attribute__): Remove definition.
16464         (_GL_ATTRIBUTE_FORMAT): New macro.
16465         (asnprintf, vasnprintf): Use it.
16466         * lib/xalloc.h (__attribute__): Remove definition.
16467         (ATTRIBUTE_NORETURN): Update definition. Define always.
16468         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16469         * lib/xmemdup0.h (__attribute__): Remove definition.
16470         (ATTRIBUTE_NORETURN): Update definition. Define always.
16471         * lib/xprintf.h (__attribute__): Remove definition.
16472         (_GL_ATTRIBUTE_FORMAT): New macro.
16473         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16474         * lib/xstrtol.h (__attribute__): Remove definition.
16475         (ATTRIBUTE_NORETURN): Update definition. Define always.
16476         * lib/xvasprintf.h (__attribute__): Remove definition.
16477         (_GL_ATTRIBUTE_FORMAT): New macro.
16478         (xasprintf, xvasprintf): Use it.
16479         * tests/test-argmatch.c (__attribute__): Remove definition.
16480         (ATTRIBUTE_NORETURN): Update definition. Define always.
16481         * tests/test-exclude.c (__attribute__): Remove definition.
16482         (ATTRIBUTE_NORETURN): Update definition. Define always.
16483         Reported by Paul Eggert.
16484
16485 2011-02-13  Bruno Haible  <bruno@clisp.org>
16486
16487         mbrtowc: Add more tests for native Windows platforms.
16488         * tests/test-mbrtowc-w32-1.sh: New file.
16489         * tests/test-mbrtowc-w32-2.sh: New file.
16490         * tests/test-mbrtowc-w32-3.sh: New file.
16491         * tests/test-mbrtowc-w32-4.sh: New file.
16492         * tests/test-mbrtowc-w32-5.sh: New file.
16493         * tests/test-mbrtowc-w32.c: New file.
16494         * modules/mbrtowc-tests (Files): Add them.
16495         (Makefile.am): Arrange to run these tests.
16496         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16497         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16498
16499 2011-02-13  Bruno Haible  <bruno@clisp.org>
16500
16501         mbrtowc: Work around native Windows bug.
16502         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16503         guess when no suitable locale for testing was found.
16504         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16505
16506 2011-02-13  Bruno Haible  <bruno@clisp.org>
16507
16508         mbsinit: Work around mingw bug.
16509         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16510         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16511         Windows.
16512         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16513
16514 2011-02-13  Bruno Haible  <bruno@clisp.org>
16515
16516         mbsinit: Don't crash for a NULL argument.
16517         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16518         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16519
16520 2011-02-13  Bruno Haible  <bruno@clisp.org>
16521
16522         Don't interfere with a program's definition of __attribute__.
16523         * lib/stdio.in.h (__attribute__): Remove definition.
16524         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16525         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16526         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16527         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16528         * lib/string.in.h (__attribute__): Remove definition.
16529         Reported by Paul Eggert.
16530
16531 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16532
16533         stdlib: don't get in the way of non-GCC __attribute__
16534         See thread starting at
16535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16536         Revert previous stdlib change, installing the following instead:
16537         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16538         to get in the way of a non-GCC compiler that supports __attribute__.
16539         (_GL_ATTRIBUTE_RETURN): New macro.
16540         (_Exit): Use it instead of __attribute__.
16541
16542 2011-02-12  Bruno Haible  <bruno@clisp.org>
16543
16544         quotearg test: Avoid test failure on mingw.
16545         * tests/test-quotearg.sh: Convert the locale identifier from native
16546         Windows syntax to Unix syntax.
16547
16548 2011-02-12  Bruno Haible  <bruno@clisp.org>
16549
16550         setlocale: Prefer gnulib's override over libintl's override.
16551         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16552         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16553         GNULIB_defined_setlocale is set.
16554
16555 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16556
16557         stdlib: support non-GCC __attribute__
16558
16559         Fix a serious and tricky problem encountered when attempting to
16560         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16561         5.5, but it crashed due to memory corruption on Solaris 10 with
16562         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16563         bits that are otherwise zero.  This tagging is optional inside
16564         Emacs but is preferred and is used when __attribute__ ((__aligned
16565         (8))) works, as it does with both recent-enough GCC and with Sun C
16566         5.11.  However, Sun C 5.11 is not GCC and does not #define
16567         __GNUC__ and __GNUC_MINOR__.
16568
16569         When I added the getloadavg module to Emacs, it brought in
16570         stdlib.in.h, which contained this fragment:
16571
16572            #ifndef __attribute__
16573            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16574            #  define __attribute__(Spec)   /* empty */
16575            # endif
16576            #endif
16577
16578         When files that include <stdlib.h> were compiled with Sun C 5.11,
16579         the above code disabled __attribute__ ((__aligned (8))), which
16580         caused variables to not be properly aligned, which eventually led
16581         to the pointer corruption mentioned above.  (This was a bit hard
16582         to diagnose, unfortunately.)
16583
16584         Several "#define __attribute__(X) /* empty */" code snippets need
16585         to be eradicated from Gnulib to work with non-GCC compilers that
16586         support __attribute__.  The Autoconf way to do this is to test for
16587         each kind of attribute that we want support for, and selectively
16588         enable that in source code.
16589
16590         Fix this problem just for stdlib.h, by adding a test for the
16591         __noreturn__ attribute, and change stdlib.in.h to use that test
16592         when needed.  This technique can be easily generalized to the
16593         other *.in.h files and attributes, and a similar technique can be
16594         used for *.h and *.c files.  This patch is enough to solve the
16595         problem for Emacs + getloadavg, and I thought I'd publish it for
16596         feedback before undertaking further, similar fixes in other
16597         modules.
16598
16599         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16600         because it's not needed for stdlib.h.  It merely substitutes the
16601         value directly into stdlib.h.  We may well need to #define it, or
16602         similar symbols, for other modules, but it's nice to also have an
16603         option to not #define it for applications like Emacs that do not
16604         need it.
16605
16606         * lib/stdlib.in.h (__attribute__): Do not #define.
16607         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16608         be defined only if the _Exit module is also used.
16609         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16611         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16612         platforms.
16613         * modules/_Exit (Files): Add m4/attribute.m4.
16614         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16615         * m4/attribute.m4: New file.
16616
16617 2011-02-12  Bruno Haible  <bruno@clisp.org>
16618
16619         wcsrtombs: Work around bug on native Windows.
16620         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16621         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16622         instead of len.
16623         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16624
16625 2011-02-12  Bruno Haible  <bruno@clisp.org>
16626
16627         mbsrtowcs: Work around bug on native Windows.
16628         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16629         against mingw bug.
16630         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16631
16632 2011-02-12  Bruno Haible  <bruno@clisp.org>
16633
16634         Avoid setlocale bugs in tests.
16635         * modules/btowc (Dependencies): Add setlocale.
16636         * modules/c-strcase (Dependencies): Likewise.
16637         * modules/mbmemcasecmp (Dependencies): Likewise.
16638         * modules/mbmemcasecoll (Dependencies): Likewise.
16639         * modules/mbrtowc (Dependencies): Likewise.
16640         * modules/mbscasecmp (Dependencies): Likewise.
16641         * modules/mbscasestr (Dependencies): Likewise.
16642         * modules/mbschr (Dependencies): Likewise.
16643         * modules/mbscspn (Dependencies): Likewise.
16644         * modules/mbsinit (Dependencies): Likewise.
16645         * modules/mbsncasecmp (Dependencies): Likewise.
16646         * modules/mbsnrtowcs (Dependencies): Likewise.
16647         * modules/mbspbrk (Dependencies): Likewise.
16648         * modules/mbspcasecmp (Dependencies): Likewise.
16649         * modules/mbsrchr (Dependencies): Likewise.
16650         * modules/mbsrtowcs (Dependencies): Likewise.
16651         * modules/mbsspn (Dependencies): Likewise.
16652         * modules/mbsstr (Dependencies): Likewise.
16653         * modules/nl_langinfo (Dependencies): Likewise.
16654         * modules/quotearg (Dependencies): Likewise.
16655         * modules/unicase/locale-language (Dependencies): Likewise.
16656         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16657         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16658         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16659         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16660         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16661         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16662         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16663         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16664         * modules/vasnprintf-posix (Dependencies): Likewise.
16665         * modules/wcrtomb (Dependencies): Likewise.
16666         * modules/wcsnrtombs (Dependencies): Likewise.
16667         * modules/wcsrtombs (Dependencies): Likewise.
16668
16669 2011-02-12  Bruno Haible  <bruno@clisp.org>
16670
16671         setlocale: Workaround native Windows bug.
16672         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16673         succeeds but sets LC_CTYPE to "C", report a failure.
16674         * tests/test-setlocale2.sh: New file.
16675         * tests/test-setlocale2.c: New file.
16676         * modules/setlocale-tests (Files): Add the new files.
16677         (Makefile.am): Enable test-setlocale2.sh test.
16678         * doc/posix-functions/setlocale.texi: Mention workaround.
16679
16680 2011-02-11  Bruno Haible  <bruno@clisp.org>
16681
16682         Tests for module 'setlocale'.
16683         * modules/setlocale-tests: New file.
16684         * tests/test-setlocale1.sh: New file.
16685         * tests/test-setlocale1.c: New file.
16686
16687         New module 'setlocale'.
16688         * lib/locale.in.h (setlocale): New declaration.
16689         * lib/setlocale.c: New file, based on
16690         gettext/gettext-runtime/intl/setlocale.c.
16691         * m4/setlocale.m4: New file.
16692         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16693         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16694         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16695         REPLACE_SETLOCALE.
16696         * modules/setlocale: New file.
16697         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16698         * doc/posix-functions/setlocale.texi: Mention the new module.
16699
16700 2011-02-11  Bruno Haible  <bruno@clisp.org>
16701
16702         Prepare for locale dependent tests on mingw.
16703         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16704         because it has the wrong locale encoding.
16705         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16706         French_France.1252 instead of "fr".
16707         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16708         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16709         because it has the wrong locale encoding.
16710         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16711         native Windows, try Turkish_Turkey.65001.
16712         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16713         Chinese_China.54936.
16714
16715         Prepare for locale dependent tests on mingw.
16716         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16717         differently.
16718         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16719         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16720         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16721         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16722
16723 2011-02-11  Eric Blake  <eblake@redhat.com>
16724
16725         strptime: avoid compiler warnings
16726         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16727         compiler warnings about dead code.
16728         Reported by Daniel P. Berrange.
16729
16730 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16731
16732         doc: update users.txt
16733         * users.txt: Add rcs.
16734
16735 2011-02-10  John W. Eaton  <jwe@gnu.org>
16736
16737         doc: update users.txt
16738         * users.txt: Add octave.
16739
16740 2011-02-10  Jim Meyering  <meyering@redhat.com>
16741
16742         doc: update users.txt
16743         * users.txt: Add iwhd.
16744
16745 2011-02-09  Bruno Haible  <bruno@clisp.org>
16746
16747         gnulib-tool: Make copyright notice adjustment more robust.
16748         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16749         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16750         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16751         License".
16752         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16753
16754 2011-02-06  Bruno Haible  <bruno@clisp.org>
16755
16756         New module 'towctrans'.
16757         * modules/towctrans: New file.
16758         * lib/wctype.in.h (towctrans): New declaration.
16759         * lib/towctrans.c: New file.
16760         * lib/towctrans-impl.h: New file.
16761         * m4/towctrans.m4: New file.
16762         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16763         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16764         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16765         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16766         * doc/posix-functions/towctrans.texi: Mention the new module.
16767
16768 2011-02-06  Bruno Haible  <bruno@clisp.org>
16769
16770         New module 'wctrans'.
16771         * modules/wctrans: New file.
16772         * lib/wctype.in.h (wctrans): New declaration.
16773         * lib/wctrans.c: New file.
16774         * lib/wctrans-impl.h: New file.
16775         * m4/wctrans.m4: New file.
16776         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16777         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16778         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16779         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16780         * doc/posix-functions/wctrans.texi: Mention the new module.
16781
16782 2011-02-06  Bruno Haible  <bruno@clisp.org>
16783
16784         New module 'iswctype'.
16785         * modules/iswctype: New file.
16786         * lib/wctype.in.h (iswctype): New declaration.
16787         * lib/iswctype.c: New file.
16788         * lib/iswctype-impl.h: New file.
16789         * m4/iswctype.m4: New file.
16790         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16791         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16792         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16793         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16794         * doc/posix-functions/iswctype.texi: Mention the new module and the
16795         HP-UX 11.00 problem.
16796
16797 2011-02-06  Bruno Haible  <bruno@clisp.org>
16798
16799         New module 'wctype'.
16800         * modules/wctype: Change to represent the wctype() substitute.
16801         * lib/wctype.in.h (wctype): New declaration.
16802         * lib/wctype.c: New file.
16803         * lib/wctype-impl.h: New file.
16804         * m4/wctype.m4: New file.
16805         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16806         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16807         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16808         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16809         * doc/posix-functions/wctype.texi: Mention the new module and the
16810         HP-UX 11.00 problem.
16811
16812 2011-02-06  Bruno Haible  <bruno@clisp.org>
16813
16814         wctype-h: Ensure wctype_t and wctrans_t are defined.
16815         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16816         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16817         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16818         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16819         HAVE_WCTRANS_T.
16820         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16821
16822 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16823
16824         flock: fix license typo
16825
16826         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16827         omitted.
16828
16829 2011-02-08  Bruno Haible  <bruno@clisp.org>
16830
16831         Split large sed scripts, for HP-UX sed.
16832         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16833         to avoid HP-UX limit of 99 commands, in the near future.
16834         * modules/stdlib (Makefile.am): Likewise.
16835         * modules/unistd (Makefile.am): Likewise.
16836         * modules/wchar (Makefile.am): Likewise.
16837         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16838         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16840
16841 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16842             Bruno Haible  <bruno@clisp.org>
16843
16844         stdlib: improve random_r modularization
16845         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16846         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16847         you also need the random_r module to get this material right.
16848         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16849         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16850         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16851
16852 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16853
16854         stdlib: don't depend on stdint
16855         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16856         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16857         be independent of whether stdint.h is needed.
16858         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16859         here, instead of ...
16860         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16861         struct random_data should be using the random_r module, not just
16862         the stdlib module (which wouldn't make sense: what package needs
16863         just struct random_data without also needing random_r?).
16864         * modules/stdlib (Depends-on): Remove stdint.
16865
16866         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16867         See the thread rooted at
16868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16869         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16870         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16871         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16872         __VMS)); previously it was always included (via fcntl--.h).
16873         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16874         hand; this is good enough for load averages.  Also, do not use
16875         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16876         flags directly if available and don't bother otherwise.  (Packages
16877         that need the extra reliability should use the modules that define
16878         these flags on older platforms that lack them.)
16879         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16880         fcntl-safer.
16881
16882 2011-02-08  Jim Meyering  <meyering@redhat.com>
16883
16884         di-set.h, ino-map.h: add multiple-inclusion guard
16885         Technically, the guard is required only for ino-map.h, due to its
16886         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16887         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16888         * lib/ino-map.h: Likewise.
16889
16890 2011-02-06  Bruno Haible  <bruno@clisp.org>
16891
16892         iswblank: Ensure declaration on glibc systems.
16893         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16894         * modules/iswblank (Dependencies): Add 'extensions'.
16895         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16896
16897 2011-02-06  Bruno Haible  <bruno@clisp.org>
16898
16899         New module 'iswblank'.
16900         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16901         * modules/iswblank: New file.
16902         * modules/wctype-h (Files): Remove lib/iswblank.c.
16903         (Makefile.am): Substitute GNULIB_ISWBLANK.
16904         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16905         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16906         (gl_WCTYPE_H_DEFAULTS): New macro.
16907         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16908         * modules/iswblank-tests: New file.
16909         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16910         * tests/test-wctype-h.c (main): Remove iswblank tests.
16911         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16912         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16913         of 'wctype-h'.
16914         * NEWS: Mention the change.
16915         * modules/mbchar (Depends-on): Add iswblank.
16916
16917 2011-02-08  Bruno Haible  <bruno@clisp.org>
16918
16919         di-set tests: Refactor.
16920         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16921         unnecessary includes.
16922         (ASSERT): Remove macro.
16923         (main): Make C90 compliant by avoiding variable declaration after
16924         statement.
16925         * modules/di-set-tests (Files): Add tests/macros.h.
16926
16927 2011-02-08  Bruno Haible  <bruno@clisp.org>
16928
16929         ino-map tests: Refactor.
16930         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16931         unnecessary includes.
16932         (ASSERT): Remove macro.
16933         (main): Make C90 compliant by avoiding variable declaration after
16934         statement.
16935         * modules/ino-map-tests (Files): Add tests/macros.h.
16936
16937 2011-02-08  Jim Meyering  <meyering@redhat.com>
16938
16939         di-set: add "const" to a cast
16940         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16941         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16942
16943 2011-02-06  Bruno Haible  <bruno@clisp.org>
16944
16945         Rename module 'wctype' to 'wctype-h'.
16946         * modules/wctype-h: Renamed from modules/wctype.
16947         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16948         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16949         (Files, Depends-on, Makefile.am): Update.
16950         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16951         (Files, Makefile.am): Update.
16952         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16953         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16954         * doc/posix-headers/wctype.texi: Update.
16955         * doc/posix-functions/iswalnum.texi: Update.
16956         * doc/posix-functions/iswalpha.texi: Update.
16957         * doc/posix-functions/iswblank.texi: Update.
16958         * doc/posix-functions/iswcntrl.texi: Update.
16959         * doc/posix-functions/iswdigit.texi: Update.
16960         * doc/posix-functions/iswgraph.texi: Update.
16961         * doc/posix-functions/iswlower.texi: Update.
16962         * doc/posix-functions/iswprint.texi: Update.
16963         * doc/posix-functions/iswpunct.texi: Update.
16964         * doc/posix-functions/iswspace.texi: Update.
16965         * doc/posix-functions/iswupper.texi: Update.
16966         * doc/posix-functions/iswxdigit.texi: Update.
16967         * doc/posix-functions/towlower.texi: Update.
16968         * doc/posix-functions/towupper.texi: Update.
16969         * NEWS: Mention the change.
16970         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16971         * modules/mbchar (Dependencies): Likewise.
16972         * modules/mbswidth (Dependencies): Likewise.
16973         * modules/quotearg (Dependencies): Likewise.
16974         * modules/regex (Dependencies): Likewise.
16975         * modules/wcscasecmp (Dependencies): Likewise.
16976         * modules/wcsncasecmp (Dependencies): Likewise.
16977         * modules/wcwidth (Dependencies): Likewise.
16978
16979 2011-02-06  Bruno Haible  <bruno@clisp.org>
16980
16981         New module 'wcswidth'.
16982         * modules/wcswidth: New file.
16983         * lib/wchar.in.h (wcswidth): New declaration.
16984         * lib/wcswidth.c: New file.
16985         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16986         * m4/wcswidth.m4: New file.
16987         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16988         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16989         REPLACE_WCSWIDTH.
16990         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16991         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16992         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16993         * doc/posix-functions/wcswidth.texi: Mention the new module.
16994
16995 2011-02-06  Bruno Haible  <bruno@clisp.org>
16996
16997         New module 'wcstok'.
16998         * modules/wcstok: New file.
16999         * lib/wchar.in.h (wcstok): New declaration.
17000         * lib/wcstok.c: New file.
17001         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
17002         * m4/wcstok.m4: New file.
17003         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
17004         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
17005         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
17006         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
17007         * doc/posix-functions/wcstok.texi: Mention the new module.
17008
17009 2011-02-06  Bruno Haible  <bruno@clisp.org>
17010
17011         New module 'wcsstr'.
17012         * modules/wcsstr: New file.
17013         * lib/wchar.in.h (wcsstr): New declaration.
17014         * lib/wcsstr.c: New file.
17015         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17016         * m4/wcsstr.m4: New file.
17017         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17018         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17020         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17021         * doc/posix-functions/wcsstr.texi: Mention the new module.
17022
17023 2011-02-06  Bruno Haible  <bruno@clisp.org>
17024
17025         New module 'wcspbrk'.
17026         * modules/wcspbrk: New file.
17027         * lib/wchar.in.h (wcspbrk): New declaration.
17028         * lib/wcspbrk.c: New file.
17029         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17030         * m4/wcspbrk.m4: New file.
17031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17034         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17035         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17036
17037 2011-02-06  Bruno Haible  <bruno@clisp.org>
17038
17039         New module 'wcsspn'.
17040         * modules/wcsspn: New file.
17041         * lib/wchar.in.h (wcsspn): New declaration.
17042         * lib/wcsspn.c: New file.
17043         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17044         * m4/wcsspn.m4: New file.
17045         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17046         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17047         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17048         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17049         * doc/posix-functions/wcsspn.texi: Mention the new module.
17050
17051 2011-02-06  Bruno Haible  <bruno@clisp.org>
17052
17053         New module 'wcscspn'.
17054         * modules/wcscspn: New file.
17055         * lib/wchar.in.h (wcscspn): New declaration.
17056         * lib/wcscspn.c: New file.
17057         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17058         * m4/wcscspn.m4: New file.
17059         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17060         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17062         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17063         * doc/posix-functions/wcscspn.texi: Mention the new module.
17064
17065 2011-02-06  Bruno Haible  <bruno@clisp.org>
17066
17067         New module 'wcsrchr'.
17068         * modules/wcsrchr: New file.
17069         * lib/wchar.in.h (wcsrchr): New declaration.
17070         * lib/wcsrchr.c: New file.
17071         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17072         * m4/wcsrchr.m4: New file.
17073         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17074         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17075         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17076         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17077         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17078
17079 2011-02-06  Bruno Haible  <bruno@clisp.org>
17080
17081         New module 'wcschr'.
17082         * modules/wcschr: New file.
17083         * lib/wchar.in.h (wcschr): New declaration.
17084         * lib/wcschr.c: New file.
17085         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17086         * m4/wcschr.m4: New file.
17087         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17088         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17089         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17090         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17091         * doc/posix-functions/wcschr.texi: Mention the new module.
17092
17093 2011-02-06  Bruno Haible  <bruno@clisp.org>
17094
17095         New module 'wcsdup'.
17096         * modules/wcsdup: New file.
17097         * lib/wchar.in.h (wcsdup): New declaration.
17098         * lib/wcsdup.c: New file.
17099         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17100         * m4/wcsdup.m4: New file.
17101         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17102         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17103         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17104         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17105         * doc/posix-functions/wcsdup.texi: Mention the new module.
17106
17107 2011-02-06  Bruno Haible  <bruno@clisp.org>
17108
17109         New module 'wcsxfrm'.
17110         * modules/wcsxfrm: New file.
17111         * lib/wchar.in.h (wcsxfrm): New declaration.
17112         * lib/wcsxfrm.c: New file.
17113         * lib/wcsxfrm-impl.h: New file.
17114         * m4/wcsxfrm.m4: New file.
17115         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17116         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17117         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17118         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17119         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17120
17121 2011-02-06  Bruno Haible  <bruno@clisp.org>
17122
17123         New module 'wcscoll'.
17124         * modules/wcscoll: New file.
17125         * lib/wchar.in.h (wcscoll): New declaration.
17126         * lib/wcscoll.c: New file.
17127         * lib/wcscoll-impl.h: New file.
17128         * m4/wcscoll.m4: New file.
17129         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17130         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17131         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17132         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17133         * doc/posix-functions/wcscoll.texi: Mention the new module.
17134
17135 2011-02-06  Bruno Haible  <bruno@clisp.org>
17136
17137         New module 'wcsncasecmp'.
17138         * modules/wcsncasecmp: New file.
17139         * lib/wchar.in.h (wcsncasecmp): New declaration.
17140         * lib/wcsncasecmp.c: New file.
17141         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17142         * m4/wcsncasecmp.m4: New file.
17143         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17144         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17145         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17146         HAVE_WCSNCASECMP.
17147         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17148         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17149
17150 2011-02-06  Bruno Haible  <bruno@clisp.org>
17151
17152         New module 'wcscasecmp'.
17153         * modules/wcscasecmp: New file.
17154         * lib/wchar.in.h (wcscasecmp): New declaration.
17155         * lib/wcscasecmp.c: New file.
17156         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17157         * m4/wcscasecmp.m4: New file.
17158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17161         HAVE_WCSCASECMP.
17162         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17163         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17164
17165 2011-02-05  Bruno Haible  <bruno@clisp.org>
17166
17167         New module 'wcsncmp'.
17168         * modules/wcsncmp: New file.
17169         * lib/wchar.in.h (wcsncmp): New declaration.
17170         * lib/wcsncmp.c: New file.
17171         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17172         * m4/wcsncmp.m4: New file.
17173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17175         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17176         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17177         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17178
17179 2011-02-05  Bruno Haible  <bruno@clisp.org>
17180
17181         New module 'wcscmp'.
17182         * modules/wcscmp: New file.
17183         * lib/wchar.in.h (wcscmp): New declaration.
17184         * lib/wcscmp.c: New file.
17185         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17186         * m4/wcscmp.m4: New file.
17187         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17188         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17189         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17190         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17191         * doc/posix-functions/wcscmp.texi: Mention the new module.
17192
17193 2011-02-05  Bruno Haible  <bruno@clisp.org>
17194
17195         New module 'wcsncat'.
17196         * modules/wcsncat: New file.
17197         * lib/wchar.in.h (wcsncat): New declaration.
17198         * lib/wcsncat.c: New file.
17199         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17200         * m4/wcsncat.m4: New file.
17201         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17202         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17203         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17204         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17205         * doc/posix-functions/wcsncat.texi: Mention the new module.
17206
17207 2011-02-05  Bruno Haible  <bruno@clisp.org>
17208
17209         New module 'wcscat'.
17210         * modules/wcscat: New file.
17211         * lib/wchar.in.h (wcscat): New declaration.
17212         * lib/wcscat.c: New file.
17213         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17214         * m4/wcscat.m4: New file.
17215         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17216         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17217         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17218         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17219         * doc/posix-functions/wcscat.texi: Mention the new module.
17220
17221 2011-02-05  Bruno Haible  <bruno@clisp.org>
17222
17223         New module 'wcpncpy'.
17224         * modules/wcpncpy: New file.
17225         * lib/wchar.in.h (wcpncpy): New declaration.
17226         * lib/wcpncpy.c: New file.
17227         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17228         * m4/wcpncpy.m4: New file.
17229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17231         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17232         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17233         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17234
17235 2011-02-05  Bruno Haible  <bruno@clisp.org>
17236
17237         New module 'wcsncpy'.
17238         * modules/wcsncpy: New file.
17239         * lib/wchar.in.h (wcsncpy): New declaration.
17240         * lib/wcsncpy.c: New file.
17241         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17242         * m4/wcsncpy.m4: New file.
17243         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17244         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17246         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17247         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17248
17249 2011-02-05  Bruno Haible  <bruno@clisp.org>
17250
17251         New module 'wcpcpy'.
17252         * modules/wcpcpy: New file.
17253         * lib/wchar.in.h (wcpcpy): New declaration.
17254         * lib/wcpcpy.c: New file.
17255         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17256         * m4/wcpcpy.m4: New file.
17257         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17258         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17259         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17260         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17261         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17262
17263 2011-02-05  Bruno Haible  <bruno@clisp.org>
17264
17265         New module 'wcscpy'.
17266         * modules/wcscpy: New file.
17267         * lib/wchar.in.h (wcscpy): New declaration.
17268         * lib/wcscpy.c: New file.
17269         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17270         * m4/wcscpy.m4: New file.
17271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17274         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17275         * doc/posix-functions/wcscpy.texi: Mention the new module.
17276
17277 2011-02-05  Bruno Haible  <bruno@clisp.org>
17278
17279         New module 'wcsnlen'.
17280         * modules/wcsnlen: New file.
17281         * lib/wchar.in.h (wcsnlen): New declaration.
17282         * lib/wcsnlen.c: New file.
17283         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17284         * m4/wcsnlen.m4: New file.
17285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17288         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17289         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17290
17291 2011-02-05  Bruno Haible  <bruno@clisp.org>
17292
17293         New module 'wcslen'.
17294         * modules/wcslen: New file.
17295         * lib/wchar.in.h (wcslen): New declaration.
17296         * lib/wcslen.c: New file.
17297         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17298         * m4/wcslen.m4: New file.
17299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17302         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17303         * doc/posix-functions/wcslen.texi: Mention the new module.
17304
17305 2011-02-05  Bruno Haible  <bruno@clisp.org>
17306
17307         New module 'wmemset'.
17308         * modules/wmemset: New file.
17309         * lib/wchar.in.h (wmemset): New declaration.
17310         * lib/wmemset.c: New file.
17311         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17312         * m4/wmemset.m4: New file.
17313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17315         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17316         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17317         * doc/posix-functions/wmemset.texi: Mention the new module.
17318
17319 2011-02-05  Bruno Haible  <bruno@clisp.org>
17320
17321         New module 'wmemmove'.
17322         * modules/wmemmove: New file.
17323         * lib/wchar.in.h (wmemmove): New declaration.
17324         * lib/wmemmove.c: New file.
17325         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17326         * m4/wmemmove.m4: New file.
17327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17329         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17330         HAVE_WMEMMOVE.
17331         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17332         * doc/posix-functions/wmemmove.texi: Mention the new module.
17333
17334 2011-02-05  Bruno Haible  <bruno@clisp.org>
17335
17336         New module 'wmemcpy'.
17337         * modules/wmemcpy: New file.
17338         * lib/wchar.in.h (wmemcpy): New declaration.
17339         * lib/wmemcpy.c: New file.
17340         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17341         * m4/wmemcpy.m4: New file.
17342         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17343         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17344         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17345         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17346         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17347
17348 2011-02-05  Bruno Haible  <bruno@clisp.org>
17349
17350         New module 'wmemcmp'.
17351         * modules/wmemcmp: New file.
17352         * lib/wchar.in.h (wmemcmp): New declaration.
17353         * lib/wmemcmp.c: New file.
17354         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17355         * m4/wmemcmp.m4: New file.
17356         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17357         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17358         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17359         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17360         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17361
17362 2011-02-07  Jim Meyering  <meyering@redhat.com>
17363
17364         di-set, ino-map: new modules, from coreutils
17365         * lib/di-set.c: New file.
17366         * lib/di-set.h: Likewise.
17367         * lib/ino-map.c: Likewise.
17368         * lib/ino-map.h: Likewise.
17369         * modules/di-set: Likewise.
17370         * modules/di-set-tests: Likewise.
17371         * modules/ino-map: Likewise.
17372         * modules/ino-map-tests: Likewise.
17373         * tests/test-di-set.c: Likewise.
17374         * tests/test-ino-map.c: Likewise.
17375
17376 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17377
17378         getloadavg: merge minor changes from Emacs
17379
17380         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17381         (getloadavg): Use memset, not bzero.
17382
17383         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17384         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17385         clash (bug#86).
17386
17387 2010-11-14  Bruno Haible  <bruno@clisp.org>
17388
17389         Allow multiple gnulib generated replacements to coexist.
17390         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17391         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17392         * lib/langinfo.in.h (nl_item): Likewise.
17393         * lib/math.in.h (_NaN, NAN): Likewise.
17394         * lib/netdb.in.h (struct addrinfo): Likewise.
17395         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17396         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17397         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17398         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17399         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17400         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17401         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17402         pthread_mutexattr_init, pthread_mutexattr_settype,
17403         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17404         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17405         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17406         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17407         * lib/sched.in.h (struct sched_param): Likewise.
17408         * lib/se-selinux.in.h (security_class_t, security_context_t,
17409         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17410         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17411         lsetfilecon, fsetfilecon, security_check_context,
17412         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17413         Likewise.
17414         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17415         Likewise.
17416         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17417         _gl_function_taking_int_returning_void_t, union sigval,
17418         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17419         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17420         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17421         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17422         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17423         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17424         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17425         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17426         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17427         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17428         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17429         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17430         socklen_t, rpl_fd_isset): Likewise.
17431         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17432         * lib/sys_time.in.h (struct timeval): Likewise.
17433         * lib/sys_times.in.h (struct tms): Likewise.
17434         * lib/sys_utsname.in.h (struct utsname):
17435         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17436         * lib/unistd.in.h (getpagesize): Likewise.
17437         * lib/wchar.in.h (mbstate_t): Likewise.
17438         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17439         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17440         towlower, towupper): Likewise.
17441         Reported by Sam Steingold <sds@gnu.org>.
17442
17443 2011-02-05  Eric Blake  <eblake@redhat.com>
17444
17445         unsetenv: work around Haiku issues
17446         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17447         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17448
17449 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17450
17451         libposix: avoid calling error() within libposix
17452         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17453         is defined.
17454
17455 2011-02-05  Eric Blake  <eblake@redhat.com>
17456
17457         strerror_r-posix: port to cygwin
17458         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17459         implementation.
17460         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17461         * tests/test-strerror_r.c (main): Fix test.
17462         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17463         issue.
17464
17465 2011-02-05  Bruno Haible  <bruno@clisp.org>
17466
17467         New module 'wmemchr'.
17468         * modules/wmemchr: New file.
17469         * lib/wchar.in.h (wmemchr): New declaration.
17470         * lib/wmemchr.c: New file.
17471         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17472         * m4/wmemchr.m4: New file.
17473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17475         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17476         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17477         * doc/posix-functions/wmemchr.texi: Mention the new module.
17478
17479 2011-02-04  Eric Blake  <eblake@redhat.com>
17480
17481         fdopendir: detect FreeBSD bug
17482         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17483         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17484
17485 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17486
17487         stdbool: do not define HAVE_STDBOOL_H
17488         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17489         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17490         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17491         imported from the latest Autoconf git.  It was motivated by Emacs,
17492         which uses gnulib but does not need HAVE_STDBOOL_H.
17493
17494 2011-02-04  Bruno Haible  <bruno@clisp.org>
17495
17496         wcsnrtombs: Prepare for new module wwcsnrtombs.
17497         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17498         * lib/wcsnrtombs.c: Include it.
17499         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17500
17501         wcsrtombs: Prepare for new module wwcsrtombs.
17502         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17503         * lib/wcsrtombs.c: Include it.
17504         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17505
17506         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17507         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17508         * lib/mbsnrtowcs.c: Include it.
17509         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17510
17511         mbsrtowcs: Prepare for new module mbsrtowwcs.
17512         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17513         * lib/mbsrtowcs.c: Include it.
17514         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17515
17516 2011-02-04  Bruno Haible  <bruno@clisp.org>
17517
17518         vasnprintf: Reduce use of malloc for small format strings.
17519         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17520         (arguments): Add room for the first 7 arguments.
17521         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17522         (char_directives, u8_directives, u16_directives, u32_directives): Add
17523         room for the first 7 directives.
17524         * lib/printf-parse.c: Include <string.h>.
17525         (PRINTF_PARSE): Change memory handling code so that it uses the first
17526         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17527         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17528         Reported by Pádraig Brady <P@draigbrady.com>.
17529
17530 2011-01-31  Eric Blake  <eblake@redhat.com>
17531
17532         dup2: work around Haiku bug
17533         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17534         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17535         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17536         * tests/test-dup2.c (main): Enhance test.
17537
17538 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17539
17540         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17541         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17542         declared by eglibc 2.11.2.
17543         * lib/stdio.in.h: Likewise.
17544
17545 2011-01-31  Eric Blake  <eblake@redhat.com>
17546
17547         ignore-value: add missing test dependency
17548         * tests/test-ignore-value.c: Revert previous change; stdio.h
17549         provides off_t.
17550         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17551
17552 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17553
17554         mktime: clarify long_int width checking
17555         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17556         the top level, to make it clearer that the assumption about
17557         long_int width is being checked.  See
17558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17559
17560 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17561
17562         ignore-value: Fix self-test.
17563         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17564
17565 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17566
17567         TYPE_MAXIMUM: avoid theoretically undefined behavior
17568         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17569         negative number, which the C Standard says has undefined behavior.
17570         In practice this is not a problem, but might as well do it by the book.
17571         Reported by Rich Felker and Eric Blake; see
17572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17573         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17574         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17575         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17576         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17577         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17578         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17579
17580         mktime: #undef mktime before #defining it
17581         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17582
17583         mktime: systematically normalize tm_isdst comparisons
17584         * lib/mktime.c (isdst_differ): New function.
17585         (__mktime_internal): Use it systematically for all isdst comparisons.
17586         This completes the fix for libc BZ #6723, and removes the need for
17587         normalizing tm_isdst.  See
17588         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17589         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17590
17591         mktime: fix some integer overflow issues and sidestep the rest
17592
17593         This was prompted by a bug report by Benjamin Lindner for MinGW
17594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17595         His bug is due to signed integer overflow (0 - INT_MIN), and I
17596         I scanned through mktime.c looking for other integer overflow
17597         problems, fixing all the bugs I found.
17598
17599         Although the C Standard says the resulting code is still not safe
17600         in the presence of integer overflow, in practice it should be good
17601         enough for all real-world two's-complement implementations, except
17602         for debugging environments that deliberately trap on integer
17603         overflow (e.g., gcc -ftrapv).
17604
17605         * lib/mktime.c (WRAPV): New macro.
17606         (SHR): Also check that long_int and time_t shift right in the
17607         usual way, before using the fast-but-unportable method.
17608         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17609         used.  The code already assumed two's complement, so there's
17610         no need to test for alternatives.  All uses removed.
17611         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17612         the C standard.  Problem reported by Rich Felker in
17613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17614         (twos_complement_arithmetic): Also check long_int and time_t.
17615         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17616         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17617         (__mktime_internal): Avoid integer overflow with unary subtraction
17618         in two instances where -1 - X is an adequate replacement for -X,
17619         since the calculations are approximate.
17620
17621 2011-01-29  Eric Blake  <eblake@redhat.com>
17622
17623         mktime: avoid infinite loop
17624         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17625         type; behavior is still undefined but portable to all known targets.
17626         Reported by Rich Felker.
17627
17628 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17629
17630         rename, unlink, same-inode: Relicense.
17631         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17632         * modules/unlink (License): Likewise.
17633         * modules/same-inode (License): Likewise.
17634
17635 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17636
17637         mktime: avoid problems on NetBSD 5 / i386
17638         * lib/mktime.c (long_int): New type.  This works around a problem
17639         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17640         but time_t is 64 bits, and where I expect the existing code is
17641         wrong in some cases.
17642         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17643         (ydhms_diff): Bring back the compile-time check for wide-enough
17644         year and yday.
17645
17646         mktime: fix misspelling in comment
17647         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17648         This merges all recent glibc changes of importance.
17649
17650 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17651
17652         move-if-change: cope with concurrent mv of identical file.
17653         * build-aux/move-if-change (CMPPROG): Accept environment
17654         variable as an override for `cmp'.
17655         (usage): Document CMPPROG.
17656         Adjust comparison to drop stdout.  Cope with failure of mv if
17657         the target file exists and is identical to the source, for
17658         parallel builds.
17659         Report from H.J. Lu against binutils in PR binutils/12283.
17660
17661 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17662
17663         * users.txt: Mention sharutils.
17664
17665 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17666
17667         * users.txt: Mention OATH Toolkit.
17668
17669 2011-01-27  Bruno Haible  <bruno@clisp.org>
17670
17671         Prepare for supporting FreeBSD 10.
17672         * build-aux/config.libpath: Remove handling of freebsd1*.
17673
17674 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17675
17676         Prepare for supporting FreeBSD 10.
17677         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17678         match FreeBSD 10.0.
17679
17680 2011-01-27  Bruno Haible  <bruno@clisp.org>
17681
17682         vma-iter, get-rusage-as: Add OpenBSD support.
17683         * modules/vma-iter (configure.ac): Test for mquery.
17684         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17685         * lib/vma-iter.c: Include <sys/mman.h>.
17686         (vma_iterate): Add an implementation based on mquery().
17687         * lib/resource-ext.h (get_rusage_as): Update comments.
17688         * lib/get-rusage-as.c: Likewise.
17689         * lib/get-rusage-data.c: Likewise.
17690
17691 2011-01-26  Karl Berry  <karl@gnu.org>
17692
17693         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17694         variables to make it easier to override the makeinfo program used.
17695
17696 2011-01-26  Eric Blake  <eblake@redhat.com>
17697
17698         fcntl: work around Haiku F_DUPFD bugs
17699         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17700         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17701         cloexec bit on duplication.
17702         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17703
17704 2011-01-26  Bruno Haible  <bruno@clisp.org>
17705
17706         Enable memory leak tests on AIX.
17707         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17708         * tests/test-fprintf-posix3.c (main): Likewise.
17709
17710 2011-01-26  Bruno Haible  <bruno@clisp.org>
17711
17712         Tests for module 'get-rusage-data'.
17713         * modules/get-rusage-data-tests: New file.
17714         * tests/test-get-rusage-data.c: New file.
17715
17716         New module 'get-rusage-data'.
17717         * lib/resource-ext.h (get_rusage_data): New declaration.
17718         * lib/get-rusage-data.c: New file.
17719         * modules/get-rusage-data: New file.
17720
17721 2011-01-25  Bruno Haible  <bruno@clisp.org>
17722
17723         get-rusage-as: Allow for easier testing.
17724         * lib/resource-ext.h (get_rusage_as): Add comment.
17725         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17726         (main): New function for interactive testing.
17727
17728 2011-01-25  Bruno Haible  <bruno@clisp.org>
17729
17730         vma-iter: Treat Haiku like BeOS.
17731         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17732         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17733
17734 2011-01-25  Eric Blake  <eblake@redhat.com>
17735
17736         c-stack: fix regression on cygwin when libsigsegv is present
17737         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17738
17739 2011-01-24  Bruno Haible  <bruno@clisp.org>
17740
17741         vma-iter: Avoid empty intervals.
17742         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17743         on an empty interval.
17744
17745 2011-01-24  Jim Meyering  <meyering@redhat.com>
17746
17747         u64: remove unnecessary #include
17748         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17749
17750 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17751
17752         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17753         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17754
17755 2011-01-23  Bruno Haible  <bruno@clisp.org>
17756
17757         New module 'vma-iter'.
17758         * lib/vma-iter.h: New file.
17759         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17760         * modules/vma-iter: New file.
17761         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17762         for get_rusage_as_via_iterator.
17763         (vma_iterate_callback): New function.
17764         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17765         * modules/get-rusage-as (Depends-on): Add vma-iter.
17766
17767 2011-01-23  Bruno Haible  <bruno@clisp.org>
17768
17769         uninorm: Tweak includes.
17770         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17771         Reported by Jim Meyering.
17772
17773 2011-01-23  Bruno Haible  <bruno@clisp.org>
17774
17775         get-rusage-as: Improve on NetBSD.
17776         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17777         /proc, like on FreeBSD.
17778
17779 2011-01-23  Jim Meyering  <meyering@redhat.com>
17780
17781         xreadlink.h: remove unnecessary #include
17782         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17783
17784         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17785         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17786
17787 2011-01-23  Bruno Haible  <bruno@clisp.org>
17788
17789         get-rusage-as: Fix bug.
17790         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17791         original limit when aborting the first loop.
17792
17793 2011-01-23  Bruno Haible  <bruno@clisp.org>
17794
17795         wctype: Ensure valid C syntax.
17796         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17797         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17798
17799 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17800
17801         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17802         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17803         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17804         as they are needed only for configure's test case.
17805         This removes two unnecessary symbols from config.h.
17806
17807         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17808         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17809         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17810         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17811         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17812         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17813         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17814         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17815         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17816         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17817         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17818         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17819         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17820         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17821         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17822         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17823         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17824         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17825
17826 2011-01-21  Eric Blake  <eblake@redhat.com>
17827
17828         maintainer-makefile: work with older git for submodule check
17829         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17830         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17831         Reported by Matthias Bolte.
17832
17833         bootstrap: minor portability fixes
17834         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17835         (usage): Omit leading capital and trailing . on help phrases, per
17836         GNU Coding Standards.
17837         (check_versions, top level): Prefix messages with script name.
17838
17839 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17840
17841         bootstrap: support --no-git option
17842         * build-aux/bootstrap: Add --no-git option, to be used when
17843         --gnulib-srcdir points to the exact desired checkout.
17844
17845 2011-01-21  Eric Blake  <eblake@redhat.com>
17846
17847         strerror_r-posix: work with glibc 2.13
17848         * lib/strerror_r.c (strerror_r): Fix return type.
17849
17850 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17851             Bruno Haible  <bruno@clisp.org>
17852
17853         uN_strstr: New unit tests.
17854         * modules/unistr/u8-strstr-tests: New file.
17855         * modules/unistr/u16-strstr-tests: New file.
17856         * modules/unistr/u32-strstr-tests: New file.
17857         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17858         * tests/unistr/test-u8-strstr.c: New file.
17859         * tests/unistr/test-u16-strstr.c: New file.
17860         * tests/unistr/test-u32-strstr.c: New file.
17861
17862 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17863             Bruno Haible  <bruno@clisp.org>
17864
17865         Make uN_strstr functions O(n) worst-case.
17866         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17867         16-bit and 32-bit unit cases, use the unibyte algorithm from
17868         lib/mbsstr.c.
17869         * lib/unistr/u8-strstr.c: Include <string.h>.
17870         (UNIT_IS_UINT8_T): New macro.
17871         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17872         (U_STRLEN, U_STRNLEN): New macros.
17873         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17874         (U_STRLEN, U_STRNLEN): New macros.
17875         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17876         (configure.ac): Update required libunistring version.
17877         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17878         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17879         malloca.
17880         (configure.ac): Update required libunistring version.
17881         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17882         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17883         malloca.
17884         (configure.ac): Update required libunistring version.
17885
17886 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17887             Bruno Haible  <bruno@clisp.org>
17888
17889         Prepare for faster uN_strstr functions.
17890         * lib/str-kmp.h: Support definable UNITs.
17891         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17892         needle_len argument.
17893         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17894         * lib/mbscasestr.c (mbscasestr): Likewise.
17895
17896 2011-01-21  Pádraig Brady <P@draigBrady.com>
17897
17898         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17899         * tests/test-malloca.c (main): Unset the environment variable
17900         to greatly speed up the test.
17901         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17902         * modules/malloca-tests: Depend on unsetenv.
17903
17904 2011-01-21  Pádraig Brady <P@draigBrady.com>
17905
17906         ignore-value: remove stdint dependency
17907         * lib/ignore-value.h: Remove <stdint.h>
17908         * modules/ignore-value: Remove stdint dependency.
17909
17910 2011-01-21  Jim Meyering  <meyering@redhat.com>
17911
17912         maint.mk: adjust variable name to be consistent with other gl_ vars
17913         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17914         to be lower case.
17915
17916 2011-01-20  Jim Meyering  <meyering@redhat.com>
17917
17918         maint.mk: make "check" depend on public-submodule-commit by default
17919         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17920
17921 2011-01-20  Bruno Haible  <bruno@clisp.org>
17922
17923         mbfile, mbiter: Complete change from 2008-12-21.
17924         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17925         * m4/mbiter.m4 (gl_MBITER): Likewise.
17926
17927 2011-01-20  Jim Meyering  <meyering@redhat.com>
17928
17929         init.sh: insert space between each function name and "()"
17930         * tests/init.sh: Make it a little easier to see that a function's
17931         name is "warn_", and not "warn" when looking at the first part of
17932         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17933
17934 2011-01-20  Jim Meyering  <meyering@redhat.com>
17935
17936         mountlist: clean up code formatting
17937         * lib/mountlist.c (read_file_system_list): Split a long line,
17938         correct bracing style, use NULL in place of "(struct statfs *)0",
17939         don't parenthesize return value, add spaces around "=" and after
17940         ";-in-for-stmt".
17941
17942 2011-01-14  Markus Duft <mduft@gentoo.org>
17943
17944         mountlist: add support for Interix
17945         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17946         Apply statvfs to all entries of /dev/fs.
17947         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17948         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17949
17950 2011-01-20  Jim Meyering  <meyering@redhat.com>
17951
17952         maint.mk: improve the public-submodule-commit rule
17953         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17954         to suppress printing of its commands... unless V=1.
17955         Add git submodule's --quiet option to suppress printing of e.g.,
17956         "Entering gnulib" output.
17957         "cd" into $(srcdir) before running git submodule.
17958
17959 2011-01-20  Bruno Haible  <bruno@clisp.org>
17960
17961         include_next: Fix bug introduced on 2011-01-18.
17962         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17963         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17964         ac_cv_header_... variable if the second argument is not 'check'.
17965         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17966         gl_NEXT_HEADERS_INTERNAL.
17967
17968 2011-01-20  Bruno Haible  <bruno@clisp.org>
17969
17970         Allow the user to avoid the GNULIB_TEST_* macros.
17971         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17972         Suggested by Paul Eggert.
17973
17974 2011-01-14  Jim Meyering  <meyering@redhat.com>
17975
17976         bootstrap: avoid failure when there is no .gitmodules file
17977         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17978         has been assigned to, even when its value is the empty string.
17979         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17980         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17981         Reported by John W. Eaton <jwe@gnu.org>.
17982
17983 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17984
17985         assume <ctype.h>, ..., <time.h> exist
17986         For years gnulib has been assuming the existence of the headers
17987         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17988         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17989         them, since they don't appear to be needed.
17990         * README (Portability guidelines): Document this.
17991         * lib/flock.c: Assume <fcntl.h> exists.
17992         * lib/regex_internal.h: Assume <locale.h> exists.
17993         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17994         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17995         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17996         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17997         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17998         * m4/regex.m4 (gl_REGEX): Likewise.
17999         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
18000         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
18001         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
18002         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
18003         * tests/test-argp.c: Likewise.
18004         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
18005
18006         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
18007         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
18008         AA_APPLE_UNIVERSAL_BUILD.  See
18009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
18010         * NEWS: Document this.
18011
18012 2011-01-19  Eric Blake  <eblake@redhat.com>
18013
18014         c-stack: assume stack overflow if SA_SIGINFO unsupported
18015         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18016         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18017         sigaction will work.
18018         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18019         behavior match Linux.
18020         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18021
18022         stdbool-tests: accomodate Haiku
18023         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18024
18025         binary-io: fix O_TEXT on Haiku
18026         * modules/binary-io (Depends-on): Add fcntl-h.
18027         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18028         than blindly undefining O_TEXT.
18029         Reported by Scott McCreary.
18030
18031 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18032
18033         include_next: do not check for standard headers like stddef.h
18034
18035         I found this problem when modifying Emacs to use gnulib.
18036         I noticed that it added HAVE_STDDEF_H to config.h, even though
18037         gnulib always assumes <stddef.h> exists as per README and this
18038         symbol is unnecessary.
18039         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18040         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18041         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18042         faster for headers like stddef.h that are known to exist.
18043         (gl_CHECK_NEXT_HEADERS): Use it.
18044         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18045         rather than gl_CHECK_NEXT_HEADERS.
18046         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18047         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18048
18049 2011-01-18  Eric Blake  <eblake@redhat.com>
18050
18051         ansi-c++-opt: skip C++ dependency style if C++ is unused
18052         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18053         tests when we know C++ compilation is not desired.
18054         Reported by Scott McCreary.
18055
18056 2011-01-18  Bruno Haible  <bruno@clisp.org>
18057
18058         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18059         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18060         (main): Perform test also when getrlimit and setrlimit don't exist or
18061         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18062         limiting the address space size using setrlimit, compare the address
18063         space size before and after the the test.
18064         * tests/test-dprintf-posix2.c: Likewise.
18065         * tests/test-fprintf-posix3.sh: Update skip messages.
18066         * tests/test-dprintf-posix2.sh: Likewise.
18067         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18068         * modules/dprintf-posix-tests (Depends-on): Likewise.
18069         Reported by Bruce Korb <bkorb@gnu.org> and
18070         Gary V. Vaughan <gary@gnu.org>.
18071
18072 2011-01-18  Bruno Haible  <bruno@clisp.org>
18073
18074         get-rusage-as: Improvement for Cygwin.
18075         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18076         areas that are merely reserved.
18077
18078 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18079
18080         strftime: remove dependencies on multibyte modules
18081
18082         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18083         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18084         only if __osf__ is defined, and I suspect OSF doesn't need these
18085         other modules.  If my guess is wrong, we'll need to come up with a
18086         variant of strftime that doesn't need the multibyte modules.
18087
18088         I discovered this problem when attempting modify Emacs to use the
18089         strftime module.  With the previous gnulib, this caused Emacs to
18090         need 31 new files, ranging from lib/config.charset to
18091         m4/wint_t.m4.  This was overkill and I expect would be offputting
18092         to the Emacs maintainers.  After this change, only 6 new files are
18093         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18094         stdbool.m4, and tm_gmtoff.m4.
18095
18096         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18097         Suggested by Bruno Haible in
18098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18099         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18100         and do not check for wchar.h.
18101         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18102         (Depends-on): Remove mbrlen, mbsinit, wchar.
18103
18104 2011-01-18  Bruno Haible  <bruno@clisp.org>
18105
18106         Tests for module 'get-rusage-as'.
18107         * modules/get-rusage-as-tests: New file.
18108         * tests/test-get-rusage-as.c: New file.
18109
18110         New module 'get-rusage-as'.
18111         * modules/get-rusage-as: New file.
18112         * lib/resource-ext.h: New file.
18113         * lib/get-rusage-as.c: New file.
18114
18115 2011-01-17  Eric Blake  <eblake@redhat.com>
18116
18117         sigaction: relax license from LGPLv3+ to LGPLv2+
18118         * modules/sigaction (License): Relax to LGPLv2+.
18119
18120 2011-01-14  Bruno Haible  <bruno@clisp.org>
18121
18122         filemode: Make function declarations usable in C++ mode.
18123         * lib/filemode.h: Enclose function declarations in extern "C" block.
18124         Reported by John W. Eaton <jwe@gnu.org>.
18125
18126 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18127
18128         save-cwd: no longer include "xgetcwd.h"
18129         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18130         This avoids a compilation failure in projects that use save-cwd
18131         without also using the xgetcwd module.
18132
18133 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18134
18135         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18136         This is so that a program like Emacs, which needs only dtoastr,
18137         does not have to bother with distributing and compiling ftoastr
18138         and ldtoastr.
18139         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18140         * modules/dtoastr, modules/ldtoastr: New files.
18141         * modules/ftoastr: Now works just for 'float'.
18142         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18143         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18144         dtoastr.c, ldtoastr.c.
18145
18146 2011-01-11  Jim Meyering  <meyering@redhat.com>
18147
18148         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18149         There is no need to work around the lack of the fchdir function,
18150         since gnulib can now provide a replacement when required.
18151         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18152         * modules/save-cwd (Depends-on): Add fchdir.
18153
18154 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18155
18156         openat, save-cwd: avoid xmalloc
18157
18158         This removes a direct (but undocumented) dependency of openat on
18159         xalloc, along with an indirect dependency via save-cwd.  It also
18160         removes a dependency of save-cwd on xgetcwd, and thereby
18161         indirectly on xalloc.  This change causes the openat substitute
18162         to fall back on save_cwd when memory is tight, and for save_cwd to
18163         fail instead of dying when memory is tight, but that's good enough.
18164         Problem and initial idea for fix reported by Bastien Roucaries in
18165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18166
18167         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18168         xalloc.h (for xmalloc).
18169         (openat_proc_name): Use malloc, not xmalloc.
18170         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18171         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18172
18173         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18174         This avoids heap allocation for file names whose lengths are in
18175         the range 512..1023, with the upper bound increasing to at most
18176         4031 depending on the platform's PATH_MAX.  (We do not want
18177         pathmax.h here as it might supply a non-constant PATH_MAX.)
18178         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18179         Perhaps they should be moved to malloca.h?
18180         (OPENAT_BUFFER_SIZE): Use them.
18181
18182 2011-01-10  Bruno Haible  <bruno@clisp.org>
18183
18184         doc: Update users.txt.
18185         * users.txt: Add recutils.
18186
18187 2011-01-09  Karl Berry  <karl@gnu.org>
18188
18189         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18190
18191         * doc/configmake.texi: New file.
18192         * doc/gnulib.texi: Include it.
18193         * modules/configmake: Move documentation from here.
18194
18195 2011-01-09  Bruno Haible  <bruno@clisp.org>
18196
18197         Update to Unicode 6.0.0.
18198         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18199         (get_lbp): Update for Unicode 6.0.0.
18200         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18201         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18202         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18203         U+11001, U+11038..U+11046. Remove U+06DE.
18204         (uc_width): Fix bounds of planes.
18205         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18206         lib/uniwidth/width.c.
18207         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18208         trailing whitespace removed.
18209         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18210         without comments, but with the original copyright notice.
18211         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18212         * lib/unicase/ignorable.h: Likewise.
18213         * lib/unicase/tocasefold.h: Likewise.
18214         * lib/unicase/tolower.h: Likewise.
18215         * lib/unicase/totitle.h: Likewise.
18216         * lib/unicase/toupper.h: Likewise.
18217         * lib/unictype/bidi_of.h: Likewise.
18218         * lib/unictype/blocks.h: Likewise.
18219         * lib/unictype/categ_C.h: Likewise.
18220         * lib/unictype/categ_Cn.h: Likewise.
18221         * lib/unictype/categ_L.h: Likewise.
18222         * lib/unictype/categ_Ll.h: Likewise.
18223         * lib/unictype/categ_Lm.h: Likewise.
18224         * lib/unictype/categ_Lo.h: Likewise.
18225         * lib/unictype/categ_Lu.h: Likewise.
18226         * lib/unictype/categ_M.h: Likewise.
18227         * lib/unictype/categ_Mc.h: Likewise.
18228         * lib/unictype/categ_Me.h: Likewise.
18229         * lib/unictype/categ_Mn.h: Likewise.
18230         * lib/unictype/categ_N.h: Likewise.
18231         * lib/unictype/categ_Nd.h: Likewise.
18232         * lib/unictype/categ_No.h: Likewise.
18233         * lib/unictype/categ_P.h: Likewise.
18234         * lib/unictype/categ_Po.h: Likewise.
18235         * lib/unictype/categ_S.h: Likewise.
18236         * lib/unictype/categ_Sc.h: Likewise.
18237         * lib/unictype/categ_Sk.h: Likewise.
18238         * lib/unictype/categ_Sm.h: Likewise.
18239         * lib/unictype/categ_So.h: Likewise.
18240         * lib/unictype/categ_of.h: Likewise.
18241         * lib/unictype/combining.h: Likewise.
18242         * lib/unictype/ctype_alnum.h: Likewise.
18243         * lib/unictype/ctype_alpha.h: Likewise.
18244         * lib/unictype/ctype_graph.h: Likewise.
18245         * lib/unictype/ctype_lower.h: Likewise.
18246         * lib/unictype/ctype_print.h: Likewise.
18247         * lib/unictype/ctype_punct.h: Likewise.
18248         * lib/unictype/ctype_upper.h: Likewise.
18249         * lib/unictype/decdigit.h: Likewise.
18250         * lib/unictype/digit.h: Likewise.
18251         * lib/unictype/numeric.h: Likewise.
18252         * lib/unictype/pr_alphabetic.h: Likewise.
18253         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18254         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18255         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18256         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18257         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18258         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18259         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18260         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18261         * lib/unictype/pr_case_ignorable.h: Likewise.
18262         * lib/unictype/pr_cased.h: Likewise.
18263         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18264         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18265         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18266         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18267         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18268         * lib/unictype/pr_combining.h: Likewise.
18269         * lib/unictype/pr_composite.h: Likewise.
18270         * lib/unictype/pr_currency_symbol.h: Likewise.
18271         * lib/unictype/pr_decimal_digit.h: Likewise.
18272         * lib/unictype/pr_deprecated.h: Likewise.
18273         * lib/unictype/pr_format_control.h: Likewise.
18274         * lib/unictype/pr_grapheme_base.h: Likewise.
18275         * lib/unictype/pr_grapheme_extend.h: Likewise.
18276         * lib/unictype/pr_grapheme_link.h: Likewise.
18277         * lib/unictype/pr_id_continue.h: Likewise.
18278         * lib/unictype/pr_id_start.h: Likewise.
18279         * lib/unictype/pr_ideographic.h: Likewise.
18280         * lib/unictype/pr_lowercase.h: Likewise.
18281         * lib/unictype/pr_math.h: Likewise.
18282         * lib/unictype/pr_numeric.h: Likewise.
18283         * lib/unictype/pr_other_alphabetic.h: Likewise.
18284         * lib/unictype/pr_other_id_continue.h: Likewise.
18285         * lib/unictype/pr_other_math.h: Likewise.
18286         * lib/unictype/pr_punctuation.h: Likewise.
18287         * lib/unictype/pr_sentence_terminal.h: Likewise.
18288         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18289         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18290         * lib/unictype/pr_unified_ideograph.h: Likewise.
18291         * lib/unictype/pr_uppercase.h: Likewise.
18292         * lib/unictype/pr_xid_continue.h: Likewise.
18293         * lib/unictype/pr_xid_start.h: Likewise.
18294         * lib/unictype/scripts.h: Likewise.
18295         * lib/unictype/scripts_byname.gperf: Likewise.
18296         * lib/unictype/sy_java_ident.h: Likewise.
18297         * lib/unigbrk/gbrkprop.h: Likewise.
18298         * lib/unilbrk/lbrkprop1.h: Likewise.
18299         * lib/unilbrk/lbrkprop2.h: Likewise.
18300         * lib/uninorm/decomposition-table2.h: Likewise.
18301         * lib/uniwbrk/wbrkprop.h: Likewise.
18302         * tests/unicase/test-cased.c: Likewise.
18303         * tests/unicase/test-ignorable.c: Likewise.
18304         * tests/unicase/test-uc_tolower.c: Likewise.
18305         * tests/unicase/test-uc_totitle.c: Likewise.
18306         * tests/unicase/test-uc_toupper.c: Likewise.
18307         * tests/unictype/test-categ_C.c: Likewise.
18308         * tests/unictype/test-categ_Cn.c: Likewise.
18309         * tests/unictype/test-categ_L.c: Likewise.
18310         * tests/unictype/test-categ_Ll.c: Likewise.
18311         * tests/unictype/test-categ_Lm.c: Likewise.
18312         * tests/unictype/test-categ_Lo.c: Likewise.
18313         * tests/unictype/test-categ_Lu.c: Likewise.
18314         * tests/unictype/test-categ_M.c: Likewise.
18315         * tests/unictype/test-categ_Mc.c: Likewise.
18316         * tests/unictype/test-categ_Me.c: Likewise.
18317         * tests/unictype/test-categ_Mn.c: Likewise.
18318         * tests/unictype/test-categ_N.c: Likewise.
18319         * tests/unictype/test-categ_Nd.c: Likewise.
18320         * tests/unictype/test-categ_No.c: Likewise.
18321         * tests/unictype/test-categ_P.c: Likewise.
18322         * tests/unictype/test-categ_Po.c: Likewise.
18323         * tests/unictype/test-categ_S.c: Likewise.
18324         * tests/unictype/test-categ_Sc.c: Likewise.
18325         * tests/unictype/test-categ_Sk.c: Likewise.
18326         * tests/unictype/test-categ_Sm.c: Likewise.
18327         * tests/unictype/test-categ_So.c: Likewise.
18328         * tests/unictype/test-ctype_alnum.c: Likewise.
18329         * tests/unictype/test-ctype_alpha.c: Likewise.
18330         * tests/unictype/test-ctype_graph.c: Likewise.
18331         * tests/unictype/test-ctype_lower.c: Likewise.
18332         * tests/unictype/test-ctype_print.c: Likewise.
18333         * tests/unictype/test-ctype_punct.c: Likewise.
18334         * tests/unictype/test-ctype_upper.c: Likewise.
18335         * tests/unictype/test-decdigit.h: Likewise.
18336         * tests/unictype/test-digit.h: Likewise.
18337         * tests/unictype/test-numeric.h: Likewise.
18338         * tests/unictype/test-pr_alphabetic.c: Likewise.
18339         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18340         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18341         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18342         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18343         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18344         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18345         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18346         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18347         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18348         * tests/unictype/test-pr_cased.c: Likewise.
18349         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18350         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18351         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18352         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18353         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18354         * tests/unictype/test-pr_combining.c: Likewise.
18355         * tests/unictype/test-pr_composite.c: Likewise.
18356         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18357         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18358         * tests/unictype/test-pr_deprecated.c: Likewise.
18359         * tests/unictype/test-pr_format_control.c: Likewise.
18360         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18361         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18362         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18363         * tests/unictype/test-pr_id_continue.c: Likewise.
18364         * tests/unictype/test-pr_id_start.c: Likewise.
18365         * tests/unictype/test-pr_ideographic.c: Likewise.
18366         * tests/unictype/test-pr_lowercase.c: Likewise.
18367         * tests/unictype/test-pr_math.c: Likewise.
18368         * tests/unictype/test-pr_numeric.c: Likewise.
18369         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18370         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18371         * tests/unictype/test-pr_other_math.c: Likewise.
18372         * tests/unictype/test-pr_punctuation.c: Likewise.
18373         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18374         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18375         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18376         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18377         * tests/unictype/test-pr_uppercase.c: Likewise.
18378         * tests/unictype/test-pr_xid_continue.c: Likewise.
18379         * tests/unictype/test-pr_xid_start.c: Likewise.
18380         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18381         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18382         changes.
18383         * lib/unictype/categ_Cc.h: Likewise.
18384         * lib/unictype/categ_Cf.h: Likewise.
18385         * lib/unictype/categ_Co.h: Likewise.
18386         * lib/unictype/categ_Cs.h: Likewise.
18387         * lib/unictype/categ_Lt.h: Likewise.
18388         * lib/unictype/categ_Nl.h: Likewise.
18389         * lib/unictype/categ_Pc.h: Likewise.
18390         * lib/unictype/categ_Pd.h: Likewise.
18391         * lib/unictype/categ_Pe.h: Likewise.
18392         * lib/unictype/categ_Pf.h: Likewise.
18393         * lib/unictype/categ_Pi.h: Likewise.
18394         * lib/unictype/categ_Ps.h: Likewise.
18395         * lib/unictype/categ_Z.h: Likewise.
18396         * lib/unictype/categ_Zl.h: Likewise.
18397         * lib/unictype/categ_Zp.h: Likewise.
18398         * lib/unictype/categ_Zs.h: Likewise.
18399         * lib/unictype/ctype_blank.h: Likewise.
18400         * lib/unictype/ctype_cntrl.h: Likewise.
18401         * lib/unictype/ctype_digit.h: Likewise.
18402         * lib/unictype/ctype_space.h: Likewise.
18403         * lib/unictype/ctype_xdigit.h: Likewise.
18404         * lib/unictype/mirror.h: Likewise.
18405         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18406         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18407         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18408         * lib/unictype/pr_bidi_control.h: Likewise.
18409         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18410         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18411         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18412         * lib/unictype/pr_bidi_pdf.h: Likewise.
18413         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18414         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18415         * lib/unictype/pr_dash.h: Likewise.
18416         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18417         * lib/unictype/pr_diacritic.h: Likewise.
18418         * lib/unictype/pr_extender.h: Likewise.
18419         * lib/unictype/pr_hex_digit.h: Likewise.
18420         * lib/unictype/pr_hyphen.h: Likewise.
18421         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18422         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18423         * lib/unictype/pr_ignorable_control.h: Likewise.
18424         * lib/unictype/pr_iso_control.h: Likewise.
18425         * lib/unictype/pr_join_control.h: Likewise.
18426         * lib/unictype/pr_left_of_pair.h: Likewise.
18427         * lib/unictype/pr_line_separator.h: Likewise.
18428         * lib/unictype/pr_logical_order_exception.h: Likewise.
18429         * lib/unictype/pr_non_break.h: Likewise.
18430         * lib/unictype/pr_not_a_character.h: Likewise.
18431         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18432         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18433         * lib/unictype/pr_other_id_start.h: Likewise.
18434         * lib/unictype/pr_other_lowercase.h: Likewise.
18435         * lib/unictype/pr_other_uppercase.h: Likewise.
18436         * lib/unictype/pr_paired_punctuation.h: Likewise.
18437         * lib/unictype/pr_paragraph_separator.h: Likewise.
18438         * lib/unictype/pr_pattern_syntax.h: Likewise.
18439         * lib/unictype/pr_pattern_white_space.h: Likewise.
18440         * lib/unictype/pr_private_use.h: Likewise.
18441         * lib/unictype/pr_quotation_mark.h: Likewise.
18442         * lib/unictype/pr_radical.h: Likewise.
18443         * lib/unictype/pr_soft_dotted.h: Likewise.
18444         * lib/unictype/pr_space.h: Likewise.
18445         * lib/unictype/pr_titlecase.h: Likewise.
18446         * lib/unictype/pr_variation_selector.h: Likewise.
18447         * lib/unictype/pr_white_space.h: Likewise.
18448         * lib/unictype/pr_zero_width.h: Likewise.
18449         * lib/unictype/sy_c_ident.h: Likewise.
18450         * lib/unictype/sy_c_whitespace.h: Likewise.
18451         * lib/unictype/sy_java_whitespace.h: Likewise.
18452         * lib/uninorm/composition-table.gperf: Likewise.
18453         * lib/uninorm/decomposition-table1.h: Likewise.
18454         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18455         LB8.
18456         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18457         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18458         * modules/unictype/*: Bump version number of expected libunistring
18459         version.
18460
18461 2011-01-09  Bruno Haible  <bruno@clisp.org>
18462
18463         Update to Unicode 5.2.0.
18464         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18465         trailing whitespace removed.
18466
18467 2011-01-09  Bruno Haible  <bruno@clisp.org>
18468
18469         New Unicode character properties, from Unicode 5.2.0.
18470         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18471         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18472         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18473         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18474         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18475         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18476         uc_is_property_cased, uc_is_property_case_ignorable,
18477         uc_is_property_changes_when_lowercased,
18478         uc_is_property_changes_when_uppercased,
18479         uc_is_property_changes_when_titlecased,
18480         uc_is_property_changes_when_casefolded,
18481         uc_is_property_changes_when_casemapped): New declarations.
18482         * lib/unictype/pr_byname.gperf: Add the new properties.
18483         * modules/unictype/property-byname (Depends-on): Depend on the new
18484         properties modules.
18485         * modules/unictype/property-all (Depends-on): Likewise.
18486         * MODULES.html.sh (Unicode string functions): Add
18487         unictype/property-case-ignorable, unictype/property-cased,
18488         unictype/property-changes-when-casefolded,
18489         unictype/property-changes-when-casemapped,
18490         unictype/property-changes-when-lowercased,
18491         unictype/property-changes-when-titlecased,
18492         unictype/property-changes-when-uppercased.
18493
18494         New module 'unictype/property-changes-when-casemapped'.
18495         * modules/unictype/property-changes-when-casemapped: New file.
18496         * lib/unictype/pr_changes_when_casemapped.c: New file.
18497         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18498         generated by gen-uni-tables.
18499         * modules/unictype/property-changes-when-casemapped-tests: New file.
18500         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18501         automatically generated by gen-uni-tables.
18502
18503         New module 'unictype/property-changes-when-casefolded'.
18504         * modules/unictype/property-changes-when-casefolded: New file.
18505         * lib/unictype/pr_changes_when_casefolded.c: New file.
18506         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18507         generated by gen-uni-tables.
18508         * modules/unictype/property-changes-when-casefolded-tests: New file.
18509         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18510         automatically generated by gen-uni-tables.
18511
18512         New module 'unictype/property-changes-when-titlecased'.
18513         * modules/unictype/property-changes-when-titlecased: New file.
18514         * lib/unictype/pr_changes_when_titlecased.c: New file.
18515         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18516         generated by gen-uni-tables.
18517         * modules/unictype/property-changes-when-titlecased-tests: New file.
18518         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18519         automatically generated by gen-uni-tables.
18520
18521         New module 'unictype/property-changes-when-uppercased'.
18522         * modules/unictype/property-changes-when-uppercased: New file.
18523         * lib/unictype/pr_changes_when_uppercased.c: New file.
18524         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18525         generated by gen-uni-tables.
18526         * modules/unictype/property-changes-when-uppercased-tests: New file.
18527         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18528         automatically generated by gen-uni-tables.
18529
18530         New module 'unictype/property-changes-when-lowercased'.
18531         * modules/unictype/property-changes-when-lowercased: New file.
18532         * lib/unictype/pr_changes_when_lowercased.c: New file.
18533         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18534         generated by gen-uni-tables.
18535         * modules/unictype/property-changes-when-lowercased-tests: New file.
18536         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18537         automatically generated by gen-uni-tables.
18538
18539         New module 'unictype/property-case-ignorable'.
18540         * modules/unictype/property-case-ignorable: New file.
18541         * lib/unictype/pr_case_ignorable.c: New file.
18542         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18543         by gen-uni-tables.
18544         * modules/unictype/property-case-ignorable-tests: New file.
18545         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18546         generated by gen-uni-tables.
18547
18548         New module 'unictype/property-cased'.
18549         * modules/unictype/property-cased: New file.
18550         * lib/unictype/pr_cased.c: New file.
18551         * lib/unictype/pr_cased.h: New file, automatically generated by
18552         gen-uni-tables.
18553         * modules/unictype/property-cased-tests: New file.
18554         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18555         gen-uni-tables.
18556
18557 2011-01-09  Bruno Haible  <bruno@clisp.org>
18558
18559         Update to Unicode 5.2.0.
18560         * lib/gen-uni-tables.c (output_predicate, output_category,
18561         output_combclass, output_bidi_category, output_decimal_digit_test,
18562         output_decimal_digit, output_digit_test, output_digit,
18563         output_numeric_test, output_numeric, output_mirror, output_scripts,
18564         output_scripts_byname, output_blocks, output_ident_category): Fix
18565         comment header.
18566         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18567         get_wbp.
18568         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18569         items.
18570         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18571         Changes_When_Lowercased, Changes_When_Uppercased,
18572         Changes_When_Titlecased, Changes_When_Casefolded,
18573         Changes_When_Casemapped.
18574         (is_property_alphabetic, is_property_default_ignorable_code_point):
18575         Update for Unicode 5.2.0.
18576         (is_property_cased, is_property_case_ignorable,
18577         is_property_changes_when_lowercased,
18578         is_property_changes_when_uppercased,
18579         is_property_changes_when_titlecased,
18580         is_property_changes_when_casefolded,
18581         is_property_changes_when_casemapped): New functions.
18582         (output_properties): Output also the properties cased, case_ignorable,
18583         changes_when_lowercased, changes_when_uppercased,
18584         changes_when_titlecased, changes_when_casefolded,
18585         changes_when_casemapped.
18586         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18587         Unicode TR#11 revision 17 -> 19.
18588         (LBP_CP): New enumeration value.
18589         (LBP_*): Adjust values accordingly.
18590         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18591         TR#14 revision 22 -> 24.
18592         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18593         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18594         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18595         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18596         is_WBP_MIDLETTER.
18597         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18598         the code1 and code2 of each composition rule.
18599         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18600         * lib/unicase/ignorable.h: Likewise.
18601         * lib/unicase/tocasefold.h: Likewise.
18602         * lib/unicase/tolower.h: Likewise.
18603         * lib/unicase/totitle.h: Likewise.
18604         * lib/unicase/toupper.h: Likewise.
18605         * lib/unictype/bidi_of.h: Likewise.
18606         * lib/unictype/blocks.h: Likewise.
18607         * lib/unictype/categ_C.h: Likewise.
18608         * lib/unictype/categ_Cf.h: Likewise.
18609         * lib/unictype/categ_Cn.h: Likewise.
18610         * lib/unictype/categ_L.h: Likewise.
18611         * lib/unictype/categ_Ll.h: Likewise.
18612         * lib/unictype/categ_Lm.h: Likewise.
18613         * lib/unictype/categ_Lo.h: Likewise.
18614         * lib/unictype/categ_Lu.h: Likewise.
18615         * lib/unictype/categ_M.h: Likewise.
18616         * lib/unictype/categ_Mc.h: Likewise.
18617         * lib/unictype/categ_Mn.h: Likewise.
18618         * lib/unictype/categ_N.h: Likewise.
18619         * lib/unictype/categ_Nd.h: Likewise.
18620         * lib/unictype/categ_Nl.h: Likewise.
18621         * lib/unictype/categ_No.h: Likewise.
18622         * lib/unictype/categ_P.h: Likewise.
18623         * lib/unictype/categ_Pd.h: Likewise.
18624         * lib/unictype/categ_Po.h: Likewise.
18625         * lib/unictype/categ_S.h: Likewise.
18626         * lib/unictype/categ_Sc.h: Likewise.
18627         * lib/unictype/categ_So.h: Likewise.
18628         * lib/unictype/categ_of.h: Likewise.
18629         * lib/unictype/combining.h: Likewise.
18630         * lib/unictype/ctype_alnum.h: Likewise.
18631         * lib/unictype/ctype_alpha.h: Likewise.
18632         * lib/unictype/ctype_graph.h: Likewise.
18633         * lib/unictype/ctype_lower.h: Likewise.
18634         * lib/unictype/ctype_print.h: Likewise.
18635         * lib/unictype/ctype_punct.h: Likewise.
18636         * lib/unictype/ctype_upper.h: Likewise.
18637         * lib/unictype/decdigit.h: Likewise.
18638         * lib/unictype/digit.h: Likewise.
18639         * lib/unictype/numeric.h: Likewise.
18640         * lib/unictype/pr_alphabetic.h: Likewise.
18641         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18642         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18643         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18644         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18645         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18646         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18647         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18648         * lib/unictype/pr_combining.h: Likewise.
18649         * lib/unictype/pr_composite.h: Likewise.
18650         * lib/unictype/pr_currency_symbol.h: Likewise.
18651         * lib/unictype/pr_dash.h: Likewise.
18652         * lib/unictype/pr_decimal_digit.h: Likewise.
18653         * lib/unictype/pr_deprecated.h: Likewise.
18654         * lib/unictype/pr_diacritic.h: Likewise.
18655         * lib/unictype/pr_extender.h: Likewise.
18656         * lib/unictype/pr_grapheme_base.h: Likewise.
18657         * lib/unictype/pr_grapheme_extend.h: Likewise.
18658         * lib/unictype/pr_grapheme_link.h: Likewise.
18659         * lib/unictype/pr_id_continue.h: Likewise.
18660         * lib/unictype/pr_id_start.h: Likewise.
18661         * lib/unictype/pr_ideographic.h: Likewise.
18662         * lib/unictype/pr_ignorable_control.h: Likewise.
18663         * lib/unictype/pr_logical_order_exception.h: Likewise.
18664         * lib/unictype/pr_lowercase.h: Likewise.
18665         * lib/unictype/pr_numeric.h: Likewise.
18666         * lib/unictype/pr_other_alphabetic.h: Likewise.
18667         * lib/unictype/pr_punctuation.h: Likewise.
18668         * lib/unictype/pr_sentence_terminal.h: Likewise.
18669         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18670         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18671         * lib/unictype/pr_unified_ideograph.h: Likewise.
18672         * lib/unictype/pr_uppercase.h: Likewise.
18673         * lib/unictype/pr_xid_continue.h: Likewise.
18674         * lib/unictype/pr_xid_start.h: Likewise.
18675         * lib/unictype/pr_zero_width.h: Likewise.
18676         * lib/unictype/scripts.h: Likewise.
18677         * lib/unictype/scripts_byname.gperf: Likewise.
18678         * lib/unictype/sy_java_ident.h: Likewise.
18679         * lib/unigbrk/gbrkprop.h: Likewise.
18680         * lib/unilbrk/lbrkprop1.h: Likewise.
18681         * lib/unilbrk/lbrkprop2.h: Likewise.
18682         * lib/unilbrk/lbrktables.h: Likewise.
18683         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18684         LBP_CP. Implement rule LB30.
18685         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18686         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18687         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18688         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18689         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18690         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18691         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18692         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18693         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18694         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18695         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18696         bits instead of 16 bits in the code1 and code2 of each composition
18697         rule.
18698         (uc_composition): Update for Unicode 5.2.0.
18699         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18700         * lib/uninorm/decomposition-table2.h: Likewise.
18701         * lib/uniwbrk/wbrkprop.h: Likewise.
18702         * tests/unicase/test-cased.c: Likewise.
18703         * tests/unicase/test-ignorable.c: Likewise.
18704         * tests/unicase/test-uc_tolower.c: Likewise.
18705         * tests/unicase/test-uc_totitle.c: Likewise.
18706         * tests/unicase/test-uc_toupper.c: Likewise.
18707         * tests/unictype/test-categ_C.c: Likewise.
18708         * tests/unictype/test-categ_Cf.c: Likewise.
18709         * tests/unictype/test-categ_Cn.c: Likewise.
18710         * tests/unictype/test-categ_L.c: Likewise.
18711         * tests/unictype/test-categ_Ll.c: Likewise.
18712         * tests/unictype/test-categ_Lm.c: Likewise.
18713         * tests/unictype/test-categ_Lo.c: Likewise.
18714         * tests/unictype/test-categ_Lu.c: Likewise.
18715         * tests/unictype/test-categ_M.c: Likewise.
18716         * tests/unictype/test-categ_Mc.c: Likewise.
18717         * tests/unictype/test-categ_Mn.c: Likewise.
18718         * tests/unictype/test-categ_N.c: Likewise.
18719         * tests/unictype/test-categ_Nd.c: Likewise.
18720         * tests/unictype/test-categ_Nl.c: Likewise.
18721         * tests/unictype/test-categ_No.c: Likewise.
18722         * tests/unictype/test-categ_P.c: Likewise.
18723         * tests/unictype/test-categ_Pd.c: Likewise.
18724         * tests/unictype/test-categ_Po.c: Likewise.
18725         * tests/unictype/test-categ_S.c: Likewise.
18726         * tests/unictype/test-categ_Sc.c: Likewise.
18727         * tests/unictype/test-categ_So.c: Likewise.
18728         * tests/unictype/test-ctype_alnum.c: Likewise.
18729         * tests/unictype/test-ctype_alpha.c: Likewise.
18730         * tests/unictype/test-ctype_graph.c: Likewise.
18731         * tests/unictype/test-ctype_lower.c: Likewise.
18732         * tests/unictype/test-ctype_print.c: Likewise.
18733         * tests/unictype/test-ctype_punct.c: Likewise.
18734         * tests/unictype/test-ctype_upper.c: Likewise.
18735         * tests/unictype/test-decdigit.h: Likewise.
18736         * tests/unictype/test-digit.h: Likewise.
18737         * tests/unictype/test-numeric.h: Likewise.
18738         * tests/unictype/test-pr_alphabetic.c: Likewise.
18739         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18740         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18741         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18742         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18743         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18744         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18745         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18746         * tests/unictype/test-pr_combining.c: Likewise.
18747         * tests/unictype/test-pr_composite.c: Likewise.
18748         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18749         * tests/unictype/test-pr_dash.c: Likewise.
18750         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18751         * tests/unictype/test-pr_deprecated.c: Likewise.
18752         * tests/unictype/test-pr_diacritic.c: Likewise.
18753         * tests/unictype/test-pr_extender.c: Likewise.
18754         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18755         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18756         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18757         * tests/unictype/test-pr_id_continue.c: Likewise.
18758         * tests/unictype/test-pr_id_start.c: Likewise.
18759         * tests/unictype/test-pr_ideographic.c: Likewise.
18760         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18761         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18762         * tests/unictype/test-pr_lowercase.c: Likewise.
18763         * tests/unictype/test-pr_numeric.c: Likewise.
18764         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18765         * tests/unictype/test-pr_punctuation.c: Likewise.
18766         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18767         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18768         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18769         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18770         * tests/unictype/test-pr_uppercase.c: Likewise.
18771         * tests/unictype/test-pr_xid_continue.c: Likewise.
18772         * tests/unictype/test-pr_xid_start.c: Likewise.
18773         * tests/unictype/test-pr_zero_width.c: Likewise.
18774         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18775         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18776         changed behaviour: line breaking is now disallowed between a letter
18777         or '=' and '('.
18778         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18779         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18780         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18781         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18782         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18783         lib/uniwidth/width.c.
18784         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18785         without comments, but with the original copyright notice.
18786         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18787         changes.
18788         * lib/unictype/categ_Cc.h: Likewise.
18789         * lib/unictype/categ_Co.h: Likewise.
18790         * lib/unictype/categ_Cs.h: Likewise.
18791         * lib/unictype/categ_Lt.h: Likewise.
18792         * lib/unictype/categ_Me.h: Likewise.
18793         * lib/unictype/categ_Pc.h: Likewise.
18794         * lib/unictype/categ_Pe.h: Likewise.
18795         * lib/unictype/categ_Pf.h: Likewise.
18796         * lib/unictype/categ_Pi.h: Likewise.
18797         * lib/unictype/categ_Ps.h: Likewise.
18798         * lib/unictype/categ_Sk.h: Likewise.
18799         * lib/unictype/categ_Sm.h: Likewise.
18800         * lib/unictype/categ_Z.h: Likewise.
18801         * lib/unictype/categ_Zl.h: Likewise.
18802         * lib/unictype/categ_Zp.h: Likewise.
18803         * lib/unictype/categ_Zs.h: Likewise.
18804         * lib/unictype/ctype_blank.h: Likewise.
18805         * lib/unictype/ctype_cntrl.h: Likewise.
18806         * lib/unictype/ctype_digit.h: Likewise.
18807         * lib/unictype/ctype_space.h: Likewise.
18808         * lib/unictype/ctype_xdigit.h: Likewise.
18809         * lib/unictype/mirror.h: Likewise.
18810         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18811         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18812         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18813         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18814         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18815         * lib/unictype/pr_bidi_control.h: Likewise.
18816         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18817         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18818         * lib/unictype/pr_bidi_pdf.h: Likewise.
18819         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18820         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18821         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18822         * lib/unictype/pr_format_control.h: Likewise.
18823         * lib/unictype/pr_hex_digit.h: Likewise.
18824         * lib/unictype/pr_hyphen.h: Likewise.
18825         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18826         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18827         * lib/unictype/pr_iso_control.h: Likewise.
18828         * lib/unictype/pr_join_control.h: Likewise.
18829         * lib/unictype/pr_left_of_pair.h: Likewise.
18830         * lib/unictype/pr_line_separator.h: Likewise.
18831         * lib/unictype/pr_math.h: Likewise.
18832         * lib/unictype/pr_non_break.h: Likewise.
18833         * lib/unictype/pr_not_a_character.h: Likewise.
18834         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18835         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18836         * lib/unictype/pr_other_id_continue.h: Likewise.
18837         * lib/unictype/pr_other_id_start.h: Likewise.
18838         * lib/unictype/pr_other_lowercase.h: Likewise.
18839         * lib/unictype/pr_other_math.h: Likewise.
18840         * lib/unictype/pr_other_uppercase.h: Likewise.
18841         * lib/unictype/pr_paired_punctuation.h: Likewise.
18842         * lib/unictype/pr_paragraph_separator.h: Likewise.
18843         * lib/unictype/pr_pattern_syntax.h: Likewise.
18844         * lib/unictype/pr_pattern_white_space.h: Likewise.
18845         * lib/unictype/pr_private_use.h: Likewise.
18846         * lib/unictype/pr_quotation_mark.h: Likewise.
18847         * lib/unictype/pr_radical.h: Likewise.
18848         * lib/unictype/pr_soft_dotted.h: Likewise.
18849         * lib/unictype/pr_space.h: Likewise.
18850         * lib/unictype/pr_titlecase.h: Likewise.
18851         * lib/unictype/pr_variation_selector.h: Likewise.
18852         * lib/unictype/pr_white_space.h: Likewise.
18853         * lib/unictype/sy_c_ident.h: Likewise.
18854         * lib/unictype/sy_c_whitespace.h: Likewise.
18855         * lib/unictype/sy_java_whitespace.h: Likewise.
18856         * modules/uni*/*: Bump version number of expected libunistring version.
18857         Reported by Simon Josefsson.
18858
18859 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18860
18861         useless-if-before-free: fix typo in --help and make the internal,
18862         automatic version date update process work once again.
18863         --help output contained a NUL character instead of the
18864         backslash-zero that was intended.  Also, the "must lie within
18865         the first 8 lines" line is on line 9, and hence not getting
18866         automatically updated.
18867         * build-aux/useless-if-before-free: Fix the former by adding a
18868         backslash, and the latter by condensing the three lines of what-it-does
18869         to a single line, leaving one line of slack for the future.
18870
18871 2011-01-09  Bruno Haible  <bruno@clisp.org>
18872
18873         uniwidth/width: Fix width of U+1D173..U+1D17A.
18874         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18875         symbolic_width, output_width_property_test): New functions.
18876         (main): Invoke output_nonspacing_property, output_width_property_test.
18877         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18878         U+1D173..U+1D17A.
18879         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18880         1.
18881         * modules/uniwidth/*: Bump version number of expected libunistring
18882         version.
18883         * modules/unilbrk/*: Likewise.
18884
18885 2011-01-08  Bruno Haible  <bruno@clisp.org>
18886
18887         uninorm tests: Preserve copyright of Unicode data file.
18888         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18889         Mention modifications.
18890
18891 2011-01-08  Bruno Haible  <bruno@clisp.org>
18892
18893         gen-uni-tables: Prepare for Unicode 5.2.0.
18894         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18895         (debug_output_lbp, output_lbp): Update.
18896
18897 2011-01-08  Bruno Haible  <bruno@clisp.org>
18898
18899         unilbrk: Clarify gen-uni-tables.c code.
18900         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18901         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18902         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18903
18904 2011-01-07  Bruno Haible  <bruno@clisp.org>
18905
18906         strtod: Restore errno when successfully parsing Infinity or NaN.
18907         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18908         restore the original errno.
18909
18910 2011-01-07  Bruno Haible  <bruno@clisp.org>
18911
18912         remove test: Avoid failure on HP-UX 11.
18913         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18914
18915 2011-01-07  Bruno Haible  <bruno@clisp.org>
18916
18917         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18918         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18919         error code.
18920
18921 2011-01-07  Pádraig Brady <P@draigBrady.com>
18922
18923         ignore-value: fixup comments, and add Eric Blake
18924         as an author since he rewrote the macros.
18925         * lib/ignore-value.h (ignore_value):  State that
18926         we now support aggregates.  Also specify exactly
18927         when the GCC warn_unused_result feature was added.
18928
18929 2011-01-06  Eric Blake  <eblake@redhat.com>
18930
18931         ignore-value: support aggregate types
18932         * lib/ignore-value.h (ignore_value): Provide separate gcc
18933         definition.
18934         * modules/ignore-value-tests: New test module.
18935         * tests/test-ignore-value.c: New test.
18936
18937         maint.mk: improve sc_prohibit_strcmp regex
18938         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18939         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18940         definition of STRNEQ.
18941
18942         signal: work around Haiku issue with SIGBUS
18943         * lib/siglist.h: Add comment.
18944         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18945         strsignal's favoring of SIGSEGV.
18946         * tests/test-signal.c (main): Avoid test failure.
18947         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18948         Reported by Scott McCreary.
18949
18950         maint.mk: add pre-release check to ensure submodule commits are public
18951         * top/maint.mk (public-submodule-commit): New rule.
18952         (submodule-checks): New variable.
18953         (alpha beta stable): Depend on the variable.
18954
18955 2011-01-05  Pádraig Brady <P@draigBrady.com>
18956         and Jim Meyering  <meyering@redhat.com>
18957
18958         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18959         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18960         (ATTRIBUTE_DEPRECATED): Define.
18961         (_ignore_case): New function.
18962         (ignore_value): New macro, to replace the old function.
18963         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18964         * modules/ignore-value (Depends-on): Add stdint.
18965
18966 2011-01-04  Eric Blake  <eblake@redhat.com>
18967
18968         doc: regenerate INSTALL
18969         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18970         @firstparagraphindent support, now that autoconf dropped it.
18971         (INSTALL_PRELUDE): Reinstate old macro.
18972         * doc/install.texi: Resync from autoconf.
18973         * doc/INSTALL: Reflect recent autoconf update.
18974         * doc/INSTALL.ISO: Likewise.
18975         * doc/INSTALL.UTF-8: Likewise.
18976         Reported by Karl Berry.
18977
18978 2011-01-04  Bruce Korb  <address@hidden>
18979
18980         git-version-gen: avoid a sub-shell
18981         * build-aux/git-version-gen: Redirect stderr in `...` via
18982         "exec 2>...", rather than via an added sub-shell.
18983
18984 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18985
18986         git-version-gen: use (...) rather than sh -c '...'
18987         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18988         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18989
18990 2011-01-03  Jim Meyering  <meyering@redhat.com>
18991
18992         git-version-gen: convert leading TABs to spaces
18993         * build-aux/git-version-gen: Expand leading TABs.
18994
18995         git-version-gen: handle failed "git rev-list"
18996         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18997         from git and proceeding as if it had succeeded but printed no SHA1
18998         checksums, suppress the diagnostic and handle the failure.
18999         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
19000
19001         git-version-gen: include command name in one more diagnostic
19002         * build-aux/git-version-gen: When the required .tarball-version file
19003         was missing or unreadable, you might see the diagnostic from "cat",
19004         but no trace of the name of the invoking script.  Now, you still see
19005         the diagnostic from cat, but also get one from "git-version-gen: ".
19006         Inspired by a patch from Bruce Korb.
19007
19008         update-copyright: adjust test to match changed code
19009         * tests/test-update-copyright.sh: Change test's expected output
19010         to match new actual output.
19011
19012 2011-01-02  Bruno Haible  <bruno@clisp.org>
19013
19014         getlogin_r: Avoid test failure on HP-UX 11.
19015         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19016         ERANGE when the second argument is zero.
19017         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19018         portability problem.
19019
19020 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19021
19022         * build-aux/update-copyright: doc Simon's changes
19023
19024 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19025
19026         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19027         environment variable.
19028
19029 2011-01-02  Bruno Haible  <bruno@clisp.org>
19030
19031         unigbrk: Avoid gcc warnings.
19032         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19033         unused variable.
19034         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19035         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19036         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19037         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19038         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19039         Change type of first argument to 'const char *'.
19040         (main): Remove unused variable.
19041         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19042         type of first argument to 'const char *'.
19043         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19044         Likewise.
19045         (main): Change type of variable 's'.
19046         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19047         to 'int'.
19048
19049 2011-01-02  Bruno Haible  <bruno@clisp.org>
19050
19051         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19052         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19053         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19054         bug.
19055         * lib/pwrite.c: Undo 2010-12-31 patch.
19056         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19057
19058 2011-01-02  Bruno Haible  <bruno@clisp.org>
19059
19060         pread: Fix test whether it works.
19061         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19062
19063 2011-01-02  Bruno Haible  <bruno@clisp.org>
19064
19065         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19066         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19067         ends in "6". Don't require a specific month name. Try also the locale
19068         names found on HP-UX 11 and Solaris 7.
19069
19070 2011-01-02  Bruno Haible  <bruno@clisp.org>
19071
19072         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19073         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19074         C linkage.
19075         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19076
19077 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19078
19079         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19080         for consistency, since the "cluster" term is not used elsewhere.
19081         * lib/unigbrk.in.h: Update name.
19082         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19083         * lib/unigbrk/u16-grapheme-next.c: Update name.
19084         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19085         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19086         * lib/unigbrk/u32-grapheme-next.c: Update name.
19087         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19088         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19089         * lib/unigbrk/u8-grapheme-next.c: Update name.
19090         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19091         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19092         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19093         Suggested by Bruno Haible.
19094
19095 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19096
19097         Remove module 'u8-grapheme-len' as too redundant with
19098         'u8-grapheme-next'.
19099         * modules/unigbrk/u8-grapheme-len: Delete file.
19100         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19101         * lib/unigbrk.in.h: Remove prototype for deleted function.
19102         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19103         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19104
19105         Remove module 'u16-grapheme-len' as too redundant with
19106         'u16-grapheme-next'.
19107         * modules/unigbrk/u16-grapheme-len: Delete file.
19108         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19109         * lib/unigbrk.in.h: Remove prototype for deleted function.
19110         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19111         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19112
19113         Remove module 'u32-grapheme-len' as too redundant with
19114         'u32-grapheme-next'.
19115         * modules/unigbrk/u32-grapheme-len: Delete file.
19116         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19117         * lib/unigbrk.in.h: Remove prototype for deleted function.
19118         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19119         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19120
19121         Suggested by Bruno Haible.
19122
19123 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19124
19125         * unigbrk.in.h: Fix typo: "ben" => "been".
19126         Reported by Bruno Haible.
19127
19128 2011-01-01  Jim Meyering  <meyering@redhat.com>
19129
19130         maint: update almost all copyright ranges to include 2011
19131         Run the new "make update-copyright" rule.
19132
19133 2011-01-01  Jim Meyering  <meyering@redhat.com>
19134
19135         maint: update-copyright: exempt doc/INSTALL*
19136         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19137         since they are generated.  Suggested by Bruno Haible.
19138
19139 2011-01-01  Jim Meyering  <meyering@redhat.com>
19140
19141         maint: refine the update-copyright rule
19142         * Makefile (update-copyright): Also exclude any file that includes
19143         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19144         code that merely generates the comment.
19145
19146 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19147
19148         New module 'u8-grapheme-len'.
19149         * modules/unigbrk/u8-grapheme-len: New file.
19150         * modules/unigbrk/u8-grapheme-len-tests: New file.
19151         * lib/unigbrk.in.h: Add prototype for new function.
19152         * lib/unigbrk/u8-grapheme-len.c: New file.
19153         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19154
19155         New module 'u16-grapheme-len'.
19156         * modules/unigbrk/u16-grapheme-len: New file.
19157         * modules/unigbrk/u16-grapheme-len-tests: New file.
19158         * lib/unigbrk.in.h: Add prototype for new function.
19159         * lib/unigbrk/u16-grapheme-len.c: New file.
19160         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19161
19162         New module 'u32-grapheme-len'.
19163         * modules/unigbrk/u32-grapheme-len: New file.
19164         * modules/unigbrk/u32-grapheme-len-tests: New file.
19165         * lib/unigbrk.in.h: Add prototype for new function.
19166         * lib/unigbrk/u32-grapheme-len.c: New file.
19167         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19168
19169         New module 'u8-grapheme-next'.
19170         * modules/unigbrk/u8-grapheme-next: New file.
19171         * modules/unigbrk/u8-grapheme-next-tests: New file.
19172         * lib/unigbrk.in.h: Add prototype for new function.
19173         * lib/unigbrk/u8-grapheme-next.c: New file.
19174         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19175
19176         New module 'u16-grapheme-next'.
19177         * modules/unigbrk/u16-grapheme-next: New file.
19178         * modules/unigbrk/u16-grapheme-next-tests: New file.
19179         * lib/unigbrk.in.h: Add prototype for new function.
19180         * lib/unigbrk/u16-grapheme-next.c: New file.
19181         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19182
19183         New module 'u32-grapheme-next'.
19184         * modules/unigbrk/u32-grapheme-next: New file.
19185         * modules/unigbrk/u32-grapheme-next-tests: New file.
19186         * lib/unigbrk.in.h: Add prototype for new function.
19187         * lib/unigbrk/u32-grapheme-next.c: New file.
19188         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19189
19190         New module 'u8-grapheme-prev'.
19191         * modules/unigbrk/u8-grapheme-prev: New file.
19192         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19193         * lib/unigbrk.in.h: Add prototype for new function.
19194         * lib/unigbrk/u8-grapheme-prev.c: New file.
19195         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19196
19197         New module 'u16-grapheme-prev'.
19198         * modules/unigbrk/u16-grapheme-prev: New file.
19199         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19200         * lib/unigbrk.in.h: Add prototype for new function.
19201         * lib/unigbrk/u16-grapheme-prev.c: New file.
19202         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19203
19204         New module 'u32-grapheme-prev'.
19205         * modules/unigbrk/u32-grapheme-prev: New file.
19206         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19207         * lib/unigbrk.in.h: Add prototype for new function.
19208         * lib/unigbrk/u32-grapheme-prev.c: New file.
19209         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19210
19211         New module 'u8-grapheme-breaks'.
19212         * modules/unigbrk/u8-grapheme-breaks: New file.
19213         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19214         * lib/unigbrk.in.h: Add prototype for new function.
19215         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19216         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19217
19218         New module 'u16-grapheme-breaks'.
19219         * modules/unigbrk/u16-grapheme-breaks: New file.
19220         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19221         * lib/unigbrk.in.h: Add prototype for new function.
19222         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19223         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19224
19225         New module 'u32-grapheme-breaks'.
19226         * modules/unigbrk/u32-grapheme-breaks: New file.
19227         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19228         * lib/unigbrk.in.h: Add prototype for new function.
19229         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19230         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19231
19232         New module 'ulc-grapheme-breaks'.
19233         * modules/unigbrk/ulc-grapheme-breaks: New file.
19234         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19235         * m4/locale-ar.m4: New file.
19236         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19237         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19238         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19239
19240 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19241
19242         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19243         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19244         modified how this file was generated before I initially submitted
19245         the module, but failed to regenerate it.  This meant that several
19246         of the level2 entries were wrong.
19247         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19248         Remove the division-by-2 that is folded into the table now that
19249         gbrkprop.h has been regenerated properly.  Now -1 entries are
19250         handled correctly.
19251
19252         New module 'unigbrk/uc-gbrk-prop-tests'.
19253         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19254         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19255         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19256         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19257
19258 2011-01-01  Bruno Haible  <bruno@clisp.org>
19259
19260         Avoid use of hexadecimal escapes.
19261         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19262         instead of hexadecimal escapes.
19263
19264 2011-01-01  Jim Meyering  <meyering@redhat.com>
19265
19266         maint: new rule to update copyright year ranges
19267         * Makefile (update-copyright): New rule.
19268
19269         maint: indent with TABs in Makefile
19270         * Makefile: Expand leading sequences of spaces to TABs
19271
19272         version-etc: update the copyright year it reports
19273         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19274
19275 2010-12-31  Bruno Haible  <bruno@clisp.org>
19276
19277         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19278         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19279         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19280         zero.
19281
19282 2010-12-31  Bruno Haible  <bruno@clisp.org>
19283
19284         pwrite: Work around HP-UX 11.11 bug.
19285         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19286         works and set REPLACE_PWRITE if not.
19287         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19288         function.
19289         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19290
19291 2010-12-31  Bruno Haible  <bruno@clisp.org>
19292
19293         pread: Work around HP-UX 11 bugs.
19294         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19295         and set REPLACE_PREAD if not.
19296         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19297
19298 2010-12-31  Eric Blake  <eblake@redhat.com>
19299
19300         nl_langinfo: fix YESEXPR on Irix 6.5
19301         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19302         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19303         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19304         it.
19305
19306 2010-12-31  Bruno Haible  <bruno@clisp.org>
19307
19308         iconv: Document HP-UX 11 bug.
19309         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19310
19311 2010-12-31  Bruno Haible  <bruno@clisp.org>
19312
19313         ldexpl: Fix link error on HP-UX 11.
19314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19315         LDEXPL_LIBM, using $ISNANL_LIBM.
19316
19317 2010-12-31  Eric Blake  <eblake@redhat.com>
19318
19319         ftello: avoid compilation failure with SunStudio c89
19320         * lib/ftello.c (ftello): Use lseek, not llseek.
19321
19322         tests: avoid failing coreutils tests on cygwin
19323         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19324         (create_exe_shims_): Return 0 when skipping.
19325
19326 2010-12-31  Bruno Haible  <bruno@clisp.org>
19327
19328         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19329         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19330
19331 2010-12-31  Bruno Haible  <bruno@clisp.org>
19332
19333         waitpid: Fix link error in C++ mode.
19334         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19335
19336 2010-12-31  Bruno Haible  <bruno@clisp.org>
19337
19338         isnan: Use GCC built-ins when possible.
19339         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19340         __builtin_isnan.
19341         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19342         (isnan): Define using GCC built-ins for GCC >= 4.0.
19343
19344 2010-12-31  Bruno Haible  <bruno@clisp.org>
19345
19346         isnand: Fix mistake.
19347         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19348         __builtin_isnand.
19349
19350 2010-12-31  Bruno Haible  <bruno@clisp.org>
19351
19352         open: Avoid C++ error on HP-UX 11.
19353         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19354
19355 2010-12-31  Bruno Haible  <bruno@clisp.org>
19356
19357         time_r: Add missing declarations on HP-UX 11.
19358         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19359         instead of HAVE_LOCALTIME_R.
19360         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19361         HAVE_LOCALTIME_R always.
19362         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19363         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19364         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19365         HAVE_LOCALTIME_R.
19366         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19367         * doc/posix-functions/localtime_r.texi: Likewise.
19368
19369 2010-12-29  Eric Blake  <eblake@redhat.com>
19370
19371         mountlist: tweak previous commit
19372         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19373         Reported by Paul Eggert.
19374
19375         mountlist: fix local drive detection on cygwin
19376         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19377         that works for cygwin.
19378
19379 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19380
19381         ftoastr, snprintf: ftoastr + snprintf module
19382         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19383         since the snprintf module now should be good enough here.
19384         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19385         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19386         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19387         GNULIB_SNPRINTF only for the test directory, and the latter
19388         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19389         seems to suffice by itself.
19390
19391 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19392
19393         alloca: one step towards thread-safety
19394         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19395         need for a static variable.  All callers changed.  This does not
19396         make the alloca replacement thread-safe, but it's one step.
19397
19398         tests: minor indenting change
19399         * tests/init.sh: Sync from coreutils housekeeping patch
19400         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19401         to keep lines within 80 columns.
19402
19403 2010-12-28  Jim Meyering  <meyering@redhat.com>
19404
19405         regex: don't infloop on persistent failing calloc
19406         * lib/regexec.c (build_trtable): Return failure indication upon
19407         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19408         In glibc, this was fixed for version 2.13:
19409         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19410
19411 2010-12-28  Bruno Haible  <bruno@clisp.org>
19412             Paul Eggert <eggert@cs.ucla.edu>
19413
19414         linkat: Make implementation robust against system behaviour variations.
19415         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19416         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19417         way, and to -2 if it needs a generic runtime test.
19418         * lib/linkat.c (solaris_optimized_link_immediate,
19419         solaris_optimized_link_follow): New functions.
19420         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19421         (check_same_link): Use it.
19422
19423 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19424
19425         New module 'unigbrk/base'.
19426         * modules/unigbrk/base: New file.
19427         * lib/unigbrk.in.h: New file.
19428
19429         New module 'unigbrk/uc-gbrk-prop'.
19430         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19431         * modules/unigbrk/uc-gbrk-prop: New file.
19432         * lib/unigbrk/gbrkprop.h: New file.
19433         * lib/unigbrk/uc-gbrk-prop.c: New file.
19434
19435         New module 'unigbrk/uc-is-grapheme-break'.
19436         * modules/unigbrk/uc-is-grapheme-break: New file.
19437         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19438         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19439         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19440         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19441         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19442
19443         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19444
19445 2010-12-27  Bruno Haible  <bruno@clisp.org>
19446
19447         linkat test: Avoid failure on Solaris 11 2010-11.
19448         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19449
19450 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19451
19452         utimens: work around glibc rounding bug on more platforms
19453         * lib/utimens.c (fdutimens): Work around rounding bug even if
19454         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19455         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19456
19457 2010-12-27  Bruno Haible  <bruno@clisp.org>
19458
19459         select tests: Improve comments.
19460         * tests/test-select.c (do_select): Add comments.
19461
19462 2010-12-27  Bruno Haible  <bruno@clisp.org>
19463
19464         select tests: Safer way of handling timeout.
19465         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19466         at every invocation.
19467
19468 2010-12-27  Bruno Haible  <bruno@clisp.org>
19469
19470         select tests: Use 'bool' where appropriate.
19471         * tests/test-select.c (connect_to_socket): Change argument type to
19472         'bool'.
19473
19474 2010-12-27  Bruno Haible  <bruno@clisp.org>
19475
19476         select tests: Use existing modules.
19477         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19478         (configure.ac): Don't test for unistd.h.
19479         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19480         declared in <unistd.h>.
19481
19482 2010-12-27  Bruno Haible  <bruno@clisp.org>
19483
19484         mbrtowc: Work around a Solaris 7 bug.
19485         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19486         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19487         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19488         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19489         MBRTOWC_NULL_ARG1_BUG.
19490         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19491         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19492         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19493         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19494
19495 2010-12-27  Jim Meyering  <meyering@redhat.com>
19496
19497         read-file.c: tweak syntax
19498         * lib/read-file.c (fread_file): Remove space after "*" in function
19499         definitions.
19500
19501 2010-12-27  Bruno Haible  <bruno@clisp.org>
19502
19503         times test: Avoid gcc warnings on OSF/1.
19504         * tests/test-times.c (main): Cast printf arguments from clock_t to
19505         'long int'.
19506
19507 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19508
19509         utimens: work around glibc rounding bug on older Linux kernels
19510         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19511         on Linux with a glibc whose utimes might not work, then work
19512         around a longstanding glibc bug involving rounding rather than
19513         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19514         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19515
19516 2010-12-26  Bruno Haible  <bruno@clisp.org>
19517
19518         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19519         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19520         _GL_CXXALIAS_SYS.
19521         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19522
19523 2010-12-26  Bruno Haible  <bruno@clisp.org>
19524
19525         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19526         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19527         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19528         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19529         looking for the declaration.
19530         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19531         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19532         problem.
19533         * doc/posix-functions/inet_pton.texi: Likewise.
19534
19535 2010-12-26  Bruno Haible  <bruno@clisp.org>
19536
19537         arpa_inet: Use the common idioms with C++ support.
19538         * lib/arpa_inet.in.h: Include c++defs.h.
19539         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19540         support.
19541         * modules/arpa_inet (Depends-on): Add c++defs.
19542         (Makefile.am): Substitute the contents of c++defs.h.
19543         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19544         * modules/arpa_inet-c++-tests: New file.
19545         * tests/test-arpa_inet-c++.cc: New file.
19546
19547 2010-12-25  Bruno Haible  <bruno@clisp.org>
19548
19549         Fix more C++ link errors on Solaris 8.
19550         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19551         $(LIB_EACCESS).
19552         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19553         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19554         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19555         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19556         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19557
19558 2010-12-25  Bruno Haible  <bruno@clisp.org>
19559
19560         printf-posix: Fix link error when a non-GCC compiler is used.
19561         * lib/stdio.in.h (printf): When not using GCC, override printf
19562         correctly.
19563         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19564
19565 2010-12-25  Bruno Haible  <bruno@clisp.org>
19566
19567         strerror_r-posix: Update doc.
19568         * doc/posix-functions/strerror_r.texi: Update doc about the return
19569         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19570
19571 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19572
19573         utimens: simplify the logic of the previous change
19574         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19575         This should not affect whether the test succeeds or fails.
19576
19577         utimens: configure better on hosts with NFS clock skew
19578         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19579         uses the clock of the local host.  It might use the clock of the
19580         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19581         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19582
19583 2010-12-25  Bruno Haible  <bruno@clisp.org>
19584
19585         ptsname test: Avoid failure on Solaris.
19586         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19587         open a pseudo-terminal; don't use BSD-style ptys.
19588         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19589
19590 2010-12-25  Bruno Haible  <bruno@clisp.org>
19591
19592         ptsname: Avoid ERANGE failure on some systems.
19593         * lib/ptsname.c (buffer): Increase size.
19594
19595 2010-12-25  Bruno Haible  <bruno@clisp.org>
19596
19597         rename, renameat: Avoid test failures at NFS mounted locations.
19598         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19599         so that subsequent mkdir calls succeed.
19600
19601 2010-12-25  Bruno Haible  <bruno@clisp.org>
19602
19603         iswblank: Fix C++ link error on Solaris 8.
19604         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19605         _GL_FUNCDECL_SYS.
19606
19607 2010-12-25  Bruno Haible  <bruno@clisp.org>
19608
19609         unistd: Fix C++ link error on Solaris 8.
19610         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19611
19612 2010-12-25  Bruno Haible  <bruno@clisp.org>
19613
19614         readlink doc: Mention an old glibc bug.
19615         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19616
19617 2010-12-25  Bruno Haible  <bruno@clisp.org>
19618
19619         fcntl-h: Fix for use of C++ on glibc systems.
19620         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19621         also on glibc systems in C++ mode.
19622         Reported by Gary V. Vaughan <gary@gnu.org>.
19623
19624 2010-12-25  Bruno Haible  <bruno@clisp.org>
19625
19626         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19627         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19628
19629 2010-12-25  Bruno Haible  <bruno@clisp.org>
19630
19631         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19632         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19633         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19634         test whether truncl works according to ISO C 99 with IEC 60559.
19635         * m4/truncl-ieee.m4: New file.
19636         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19637         m4/signbit.m4.
19638         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19639
19640 2010-12-25  Bruno Haible  <bruno@clisp.org>
19641
19642         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19643         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19644         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19645         test whether ceill works according to ISO C 99 with IEC 60559.
19646         * m4/ceill-ieee.m4: New file.
19647         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19648         m4/signbit.m4.
19649         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19650
19651 2010-12-25  Bruno Haible  <bruno@clisp.org>
19652
19653         Ensure all prerequisites of <wchar.h> are included.
19654         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19655         before <wchar.h>.
19656         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19657         gl_MBRLEN_NUL_RETVAL): Likewise.
19658         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19659         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19660         AC_FUNC_MBRTOWC): Likewise.
19661         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19662         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19663         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19664         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19665         Likewise.
19666         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19667         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19668         (gl_WCHAR_H): Improve comments.
19669         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19670
19671 2010-12-25  Bruno Haible  <bruno@clisp.org>
19672
19673         strtok_r: Fix C syntax error in autoconf macro.
19674         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19675         characters in test program.
19676
19677 2010-12-24  Bruno Haible  <bruno@clisp.org>
19678
19679         ceil, trunc, round: Fix gcc warnings.
19680         * lib/ceil.c (MIN): Undefine before redefining.
19681         * lib/trunc.c (MIN): Likewise.
19682         * lib/round.c (MIN): Likewise.
19683         Include <math.h> first.
19684
19685 2010-12-24  Bruno Haible  <bruno@clisp.org>
19686
19687         select tests: Avoid failures on OSF/1 5.1.
19688         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19689         failure of closing the last socket; it may fail with ECONNRESET.
19690
19691 2010-12-24  Eric Blake  <eblake@redhat.com>
19692
19693         stdint: avoid HP-UX 10.20 preprocessor bug
19694         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19695         than #if.
19696         * tests/test-floor2.c (main): Likewise.
19697         Reported by Peter O'Gorman.
19698
19699         pipe: make obsoletion transition easier
19700         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19701         * modules/pipe (Files): Include revived file.
19702         (Include): Drop reference, to mirror getdate's behavior.
19703
19704 2010-12-24  Bruno Haible  <bruno@clisp.org>
19705
19706         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19707         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19708         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19709         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19710
19711 2010-12-24  Bruno Haible  <bruno@clisp.org>
19712
19713         gethostname: Ensure declaration on NonStop Kernel.
19714         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19715         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19716
19717 2010-12-24  Bruno Haible  <bruno@clisp.org>
19718
19719         sys_select: Ensure all necessary types on NonStop Kernel.
19720         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19721         include <sys/time.h>.
19722         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19723         NonStop Kernel.
19724         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19725
19726 2010-12-24  Bruno Haible  <bruno@clisp.org>
19727
19728         sys_select: Remove unneeded include.
19729         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19730         have <sys/select.h>.
19731
19732 2010-12-24  Bruno Haible  <bruno@clisp.org>
19733
19734         gethostname: Provide a fallback for HOST_NAME_MAX.
19735         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19736         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19737         instead.
19738         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19739
19740 2010-12-24  Bruno Haible  <bruno@clisp.org>
19741
19742         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19743         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19744         (SA_RESTART): Likewise.
19745         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19746
19747 2010-12-24  Bruno Haible  <bruno@clisp.org>
19748
19749         signal: Define NSIG.
19750         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19751         * tests/test-signal.c (nsig): New variable.
19752         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19753
19754 2010-12-24  Bruno Haible  <bruno@clisp.org>
19755
19756         rename, renameat: Avoid test failures on OSF/1 5.1.
19757         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19758         alternative error codes.
19759         * tests/test-renameat.c (main): Likewise.
19760
19761 2010-12-24  Bruno Haible  <bruno@clisp.org>
19762
19763         *printf: Detect large precisions bug on Solaris 10/SPARC.
19764         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19765         by Paul Eggert.
19766         * tests/test-snprintf-posix.h (test_function): Add this test code here
19767         too.
19768         * tests/test-sprintf-posix.h (test_function): Likewise.
19769         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19770         * tests/test-vasprintf-posix.c (test_function): Likewise.
19771         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19772         around by gnulib.
19773         * doc/posix-functions/printf.texi: Likewise.
19774         * doc/posix-functions/snprintf.texi: Likewise.
19775         * doc/posix-functions/sprintf.texi: Likewise.
19776         * doc/posix-functions/vfprintf.texi: Likewise.
19777         * doc/posix-functions/vprintf.texi: Likewise.
19778         * doc/posix-functions/vsnprintf.texi: Likewise.
19779         * doc/posix-functions/vsprintf.texi: Likewise.
19780         * doc/posix-functions/dprintf.texi: Undo last commit.
19781         * doc/posix-functions/vdprintf.texi: Likewise.
19782
19783 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19784
19785         tests: port test-fdutimensat.c to Solaris 8
19786         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19787         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19788         On Solaris 8, it fails with errno == ENOSYS, because there is no
19789         futimens (so it can't use the fd), and there is no lutimens (so it
19790         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19791
19792         vsnprintf: make more consistent with snprintf; doc fixes
19793
19794         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19795         the byte count return problem was promoted from the snprintf-posix
19796         to the snprintf module.
19797         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19798         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19799         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19800         * tests/test-snprintf.c (main): Check the byte count returned.
19801         * tests/test-vsnprintf.c (main): Likewise.
19802
19803 2010-12-23  Eric Blake  <eblake@redhat.com>
19804
19805         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19806         * modules/sigpipe (License): Relax license.
19807
19808 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19809
19810         doc: document Solaris printf bug with large float precisions
19811         * doc/posix-functions/dprintf.texi (dprintf):
19812         * doc/posix-functions/fprintf.texi (fprintf):
19813         * doc/posix-functions/printf.texi (printf):
19814         * doc/posix-functions/snprintf.texi (snprintf):
19815         * doc/posix-functions/sprintf.texi (sprintf):
19816         * doc/posix-functions/vdprintf.texi (vdprintf):
19817         * doc/posix-functions/vfprintf.texi (vfprintf):
19818         * doc/posix-functions/vprintf.texi (vprintf):
19819         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19820         * doc/posix-functions/vsprintf.texi (vsprintf):
19821         Mention that these functions mishandle large floating point
19822         precisions on Solaris 10.  The same bug is also present in Solaris
19823         8, and I assume earlier.  This causes "cd gnulib-tests; make
19824         check" to fail on Solaris 8 (and I assume, later) when building
19825         the latest coreutils, in test-vasprintf-posix's call to
19826         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19827         the wide flavors (e.g., wprintf) so this patch just updates the
19828         documentation for the narrow ones.
19829
19830         test-posixtm.c: add two tests
19831         * tests/test-posixtm.c: Add two tests, to highlight the
19832         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19833         around this bug; this is merely to document it.
19834
19835 2010-12-22  Bruno Haible  <bruno@clisp.org>
19836
19837         getlogin_r: Work around portability problem on OSF/1.
19838         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19839         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19840         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19841         test for a truncated result.
19842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19843         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19844         * modules/getlogin_r (Depends-on): Add memchr.
19845         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19846
19847 2010-12-22  Bruno Haible  <bruno@clisp.org>
19848
19849         ptsname: Avoid test failure on OSF/1 5.1.
19850         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19851         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19852         (same_slave): New function.
19853         (main): Use it to compare ptsname's result with the expected file name.
19854
19855 2010-12-22  Bruno Haible  <bruno@clisp.org>
19856
19857         Port extended stdio modules to HP NonStop Kernel.
19858         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19859         macros.
19860         * lib/fbufmode.c: Update comments.
19861         * lib/fflush.c: Likewise.
19862         * lib/fpurge.c: Likewise.
19863         * lib/freadable.c: Likewise.
19864         * lib/freadahead.c: Likewise.
19865         * lib/freading.c: Likewise.
19866         * lib/freadptr.c: Likewise.
19867         * lib/freadseek.c: Likewise.
19868         * lib/fseeko.c: Likewise.
19869         * lib/fseterr.c: Likewise.
19870         * lib/fwritable.c: Likewise.
19871         * lib/fwriting.c: Likewise.
19872         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19873
19874 2010-12-22  Bruno Haible  <bruno@clisp.org>
19875
19876         ttyname_r: Work around bug on OSF/1 5.1.
19877         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19878         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19879         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19880         present.
19881         * lib/ttyname_r.c (ttyname_r): Update comments.
19882
19883 2010-12-22  Bruno Haible  <bruno@clisp.org>
19884
19885         round: Implement result sign according to IEEE 754.
19886         * lib/round.c (MIN, MINUS_ZERO): New macros.
19887         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19888         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19889         * tests/test-round-ieee.c (main): Likewise.
19890         * tests/test-roundl-ieee.c (main): Likewise.
19891
19892         trunc: Implement result sign according to IEEE 754.
19893         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19894         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19895         * tests/test-trunc2.c: Include minus-zero.h.
19896         (MINUS_ZERO): New macro.
19897         (trunc_reference): Keep in sync with lib/trunc.c.
19898         * tests/test-truncf2.c: Include minus-zero.h.
19899         (MINUS_ZERO): New macro.
19900         (truncf_reference): Keep in sync with lib/trunc.c.
19901         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19902         * tests/test-trunc-ieee.c (main): Likewise.
19903         * tests/test-truncl-ieee.c (main): Likewise.
19904
19905         ceil: Implement result sign according to IEEE 754.
19906         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19907         (FUNC): Return -0.0 for -1 < x < 0.
19908         * tests/test-ceil2.c: Include minus-zero.h.
19909         (MINUS_ZERO): New macro.
19910         (ceil_reference): Keep in sync with lib/ceil.c.
19911         * tests/test-ceilf2.c: Include minus-zero.h.
19912         (MINUS_ZERO): New macro.
19913         (ceilf_reference): Keep in sync with lib/ceil.c.
19914         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19915         * tests/test-ceil-ieee.c (main): Likewise.
19916         * tests/test-ceill-ieee.c (main): Likewise.
19917
19918         floor: Implement result sign according to IEEE 754.
19919         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19920         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19921         * tests/test-floorf2.c (floorf_reference): Likewise.
19922         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19923         * tests/test-floor-ieee.c (main): Likewise.
19924         * tests/test-floorl-ieee.c (main): Likewise.
19925
19926 2010-12-22  Bruno Haible  <bruno@clisp.org>
19927
19928         getaddrinfo: Update doc.
19929         * doc/posix-functions/gai_strerror.texi: Return type is also different
19930         on AIX and HP-UX.
19931
19932 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19933
19934         getaddrinfo, inet_ntop: Update doc for Solaris.
19935         * doc/posix-functions/gai_strerror.texi: Return type is also an
19936         issue on Solaris 9 and earlier.
19937         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19938         on Solaris 10 and earlier.
19939
19940 2010-12-21  Bruno Haible  <bruno@clisp.org>
19941
19942         New module 'roundl-ieee'.
19943         * modules/roundl-ieee: New file.
19944         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19945         test whether roundl works according to ISO C 99 with IEC 60559.
19946         * m4/roundl-ieee.m4: New file.
19947         * modules/roundl-ieee-tests: New file.
19948         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19949         * tests/test-roundl.c (main): Remove signbit tests.
19950         * modules/roundl-tests (Depends-on): Remove signbit.
19951         * doc/posix-functions/roundl.texi: Mention the new module.
19952
19953 2010-12-21  Bruno Haible  <bruno@clisp.org>
19954
19955         New module 'truncl-ieee'.
19956         * modules/truncl-ieee: New file.
19957         * modules/truncl-ieee-tests: New file.
19958         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19959         * tests/test-truncl.c (main): Remove signbit tests.
19960         * modules/truncl-tests (Depends-on): Remove signbit.
19961         * doc/posix-functions/truncl.texi: Mention the new module.
19962
19963 2010-12-21  Bruno Haible  <bruno@clisp.org>
19964
19965         New module 'ceill-ieee'.
19966         * modules/ceill-ieee: New file.
19967         * modules/ceill-ieee-tests: New file.
19968         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19969         * tests/test-ceill.c (main): Remove signbit tests.
19970         * modules/ceill-tests (Depends-on): Remove signbit.
19971         * doc/posix-functions/ceill.texi: Mention the new module.
19972
19973 2010-12-21  Bruno Haible  <bruno@clisp.org>
19974
19975         New module 'floorl-ieee'.
19976         * modules/floorl-ieee: New file.
19977         * modules/floorl-ieee-tests: New file.
19978         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19979         * tests/test-floorl.c (main): Remove signbit tests.
19980         * modules/floorl-tests (Depends-on): Remove signbit.
19981         * doc/posix-functions/floorl.texi: Mention the new module.
19982
19983 2010-12-21  Bruno Haible  <bruno@clisp.org>
19984
19985         New module 'round-ieee'.
19986         * modules/round-ieee: New file.
19987         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19988         whether round works according to ISO C 99 with IEC 60559.
19989         * m4/round-ieee.m4: New file.
19990         * modules/round-ieee-tests: New file.
19991         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19992         * tests/test-round1.c (main): Remove signbit tests.
19993         * modules/round-tests (Depends-on): Remove 'signbit'.
19994         * doc/posix-functions/round.texi: Mention the new module.
19995
19996 2010-12-21  Bruno Haible  <bruno@clisp.org>
19997
19998         New module 'trunc-ieee'.
19999         * modules/trunc-ieee: New file.
20000         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
20001         whether trunc works according to ISO C 99 with IEC 60559.
20002         * m4/trunc-ieee.m4: New file.
20003         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
20004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
20005         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
20006         * modules/trunc-ieee-tests: New file.
20007         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
20008         * tests/test-trunc1.c (main): Remove signbit tests.
20009         * modules/trunc-tests (Depends-on): Remove 'signbit'.
20010         * doc/posix-functions/trunc.texi: Mention the new module.
20011
20012 2010-12-21  Bruno Haible  <bruno@clisp.org>
20013
20014         New module 'ceil-ieee'.
20015         * modules/ceil-ieee: New file.
20016         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20017         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20018         ISO C 99 with IEC 60559.
20019         * m4/ceil-ieee.m4: New file.
20020         * modules/ceil (Files): Add lib/ceil.c.
20021         (Depends-on): Add 'float'.
20022         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20023         * lib/math.in.h (ceil): New declaration.
20024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20025         REPLACE_CEIL.
20026         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20027         * modules/ceil-ieee-tests: New file.
20028         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20029         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20030         * doc/posix-functions/ceil.texi: Mention the new module.
20031
20032 2010-12-21  Bruno Haible  <bruno@clisp.org>
20033
20034         New module 'floor-ieee'.
20035         * modules/floor-ieee: New file.
20036         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20037         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20038         ISO C 99 with IEC 60559.
20039         * m4/floor-ieee.m4: New file.
20040         * modules/floor (Files): Add lib/floor.c.
20041         (Depends-on): Add 'float'.
20042         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20043         * lib/math.in.h (floor): New declaration.
20044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20045         REPLACE_FLOOR.
20046         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20047         * modules/floor-ieee-tests: New file.
20048         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20049         * tests/test-math-c++.cc: Check the signature of 'floor'.
20050         * doc/posix-functions/floor.texi: Mention the new module.
20051
20052 2010-12-21  Bruno Haible  <bruno@clisp.org>
20053
20054         New module 'roundf-ieee'.
20055         * modules/roundf-ieee: New file.
20056         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20057         test whether roundf works according to ISO C 99 with IEC 60559.
20058         * m4/roundf-ieee.m4: New file.
20059         * modules/roundf-ieee-tests: New file.
20060         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20061         * tests/test-roundf1.c (main): Remove signbit tests.
20062         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20063         * doc/posix-functions/roundf.texi: Mention the new module.
20064
20065 2010-12-21  Bruno Haible  <bruno@clisp.org>
20066
20067         New module 'truncf-ieee'.
20068         * modules/truncf-ieee: New file.
20069         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20070         test whether truncf works according to ISO C 99 with IEC 60559.
20071         * m4/truncf-ieee.m4: New file.
20072         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20074         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20075         * modules/truncf-ieee-tests: New file.
20076         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20077         * tests/test-truncf1.c (main): Remove signbit tests.
20078         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20079         * doc/posix-functions/truncf.texi: Mention the new module.
20080
20081 2010-12-21  Bruno Haible  <bruno@clisp.org>
20082
20083         New module 'ceilf-ieee'.
20084         * modules/ceilf-ieee: New file.
20085         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20086         test whether ceilf works according to ISO C 99 with IEC 60559.
20087         * m4/ceilf-ieee.m4: New file.
20088         * modules/ceilf-ieee-tests: New file.
20089         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20090         * tests/test-ceilf1.c (main): Remove signbit tests.
20091         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20092         * doc/posix-functions/ceilf.texi: Mention the new module.
20093
20094 2010-12-21  Bruno Haible  <bruno@clisp.org>
20095
20096         New module 'floorf-ieee'.
20097         * modules/floorf-ieee: New file.
20098         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20099         test whether floorf works according to ISO C 99 with IEC 60559.
20100         * m4/floorf-ieee.m4: New file.
20101         * modules/floorf-ieee-tests: New file.
20102         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20103         * tests/test-floorf1.c (main): Remove signbit tests.
20104         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20105         * doc/posix-functions/floorf.texi: Mention the new module.
20106
20107 2010-12-21  Bruno Haible  <bruno@clisp.org>
20108
20109         Support for minus zero in autoconf macros.
20110         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20111         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20112         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20113         * tests/minus-zero.h: Update comments.
20114
20115 2010-12-21  Bruno Haible  <bruno@clisp.org>
20116
20117         Tests for module 'ceil'.
20118         * modules/ceil-tests: New file.
20119         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20120         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20121
20122 2010-12-21  Bruno Haible  <bruno@clisp.org>
20123
20124         Tests for module 'floor'.
20125         * modules/floor-tests: New file.
20126         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20127         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20128
20129 2010-12-21  Bruno Haible  <bruno@clisp.org>
20130
20131         math: Fix indentation.
20132         * lib/math.in.h (floorf): Fix indentation.
20133
20134 2010-12-21  Bruno Haible  <bruno@clisp.org>
20135
20136         Fix cross-compilation guesses on Solaris.
20137         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20138         not match "solaris2.10".
20139         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20140         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20141         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20142
20143 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20144
20145         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20146         This fixes a problem observed with the latest coreutils snapshot
20147         that caused a test to fail on Solaris 8.  src/csplit.c's call
20148         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20149         earlier, instead of returning the number of bytes that would have
20150         been generated; this causes csplit to incorrectly report memory
20151         exhaustion.
20152         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20153         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20154         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20155         comments to match.
20156         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20157         Fix typo in matching older versions of Solaris: "solaris2.10"
20158         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20159         only for guessing while cross-compiling.
20160         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20161
20162 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20163
20164         ftoastr: fix comment again
20165         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20166         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20167         Also, simplify example a bit by using flags = 0.
20168
20169 2010-12-20  Bruno Haible  <bruno@clisp.org>
20170
20171         round*, trunc*: Update documentation regarding glibc.
20172         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20173         * doc/posix-functions/round.texi: Likewise.
20174         * doc/posix-functions/roundl.texi: Likewise.
20175         * doc/posix-functions/truncf.texi: Likewise.
20176         * doc/posix-functions/trunc.texi: Likewise.
20177         * doc/posix-functions/truncl.texi: Likewise.
20178
20179 2010-12-20  Bruno Haible  <bruno@clisp.org>
20180
20181         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20182         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20183         * doc/posix-functions/round.texi: Likewise.
20184         * doc/posix-functions/roundl.texi: Likewise.
20185
20186 2010-12-20  Bruno Haible  <bruno@clisp.org>
20187
20188         ttyname_r: Add missing declaration on HP-UX 11.
20189         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20190         HAVE_TTYNAME_R.
20191         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20192         declared. Set HAVE_TTYNAME_R always.
20193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20194         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20195         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20196         HAVE_TTYNAME_R.
20197         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20198
20199 2010-12-20  Bruno Haible  <bruno@clisp.org>
20200
20201         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20202         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20203         * doc/posix-functions/getlogin_r.texi: Likewise.
20204         * tests/test-getlogin.c: Include <errno.h>.
20205         (main): Avoid test failure on HP-UX 11.11.
20206         * tests/test-getlogin_r.c (main): Likewise.
20207
20208 2010-12-20  Bruno Haible  <bruno@clisp.org>
20209
20210         getlogin_r: Add missing declaration on HP-UX 11.
20211         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20212         declared also when it exists as a function.
20213         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20214
20215 2010-12-20  Bruno Haible  <bruno@clisp.org>
20216
20217         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20218         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20219         through wcrtomb.
20220
20221 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20222
20223         ftoastr: fix comment
20224         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20225         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20226
20227 2010-12-19  Bruno Haible  <bruno@clisp.org>
20228
20229         isnan: Ensure it is a macro.
20230         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20231         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20232         Solaris.
20233
20234 2010-12-19  Bruno Haible  <bruno@clisp.org>
20235
20236         ldexpl test: Fix link error on OSF/1 5.1.
20237         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20238
20239 2010-12-19  Bruno Haible  <bruno@clisp.org>
20240
20241         wctype: Make it work in C++ mode on OSF/1 5.1.
20242         * lib/wctype.in.h (iswblank): Declare but not define here.
20243         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20244         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20245         * modules/wctype (Files): Add lib/iswblank.c.
20246
20247 2010-12-19  Bruno Haible  <bruno@clisp.org>
20248
20249         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20250         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20251         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20252
20253 2010-12-19  Bruno Haible  <bruno@clisp.org>
20254
20255         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20256         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20257         _POSIX_PII_SOCKET.
20258         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20259         * doc/posix-functions/recvfrom.texi: Likewise.
20260         * doc/posix-functions/send.texi: Likewise.
20261         * doc/posix-functions/sendto.texi: Likewise.
20262
20263 2010-12-19  Bruno Haible  <bruno@clisp.org>
20264
20265         tcgetsid: Add missing declaration on OSF/1 5.1.
20266         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20267         HAVE_TCGETSID.
20268         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20269         Don't set HAVE_TCGETSID.
20270         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20271         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20272         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20273         HAVE_TCGETSID.
20274         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20275
20276 2010-12-19  Bruno Haible  <bruno@clisp.org>
20277
20278         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20279         * lib/stdio.in.h: During the include_next statement, let recursive
20280         includes of this file include only the system header file.
20281
20282 2010-12-19  Bruno Haible  <bruno@clisp.org>
20283
20284         iconv_open: Fix regression from 2010-12-04.
20285         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20286         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20287
20288 2010-12-19  Bruno Haible  <bruno@clisp.org>
20289
20290         stdbool test: Avoid a gcc warning.
20291         * tests/test-stdbool.c (main): Fail if e1 is false.
20292         Reported by Jim Meyering.
20293
20294 2010-12-19  Jim Meyering  <meyering@redhat.com>
20295
20296         setenv: restore to working order
20297         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20298         mistakenly removed.
20299         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20300         HAVE_SETENV.
20301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20302         HAVE_SETENV.
20303
20304 2010-12-19  Bruno Haible  <bruno@clisp.org>
20305
20306         Document some different function declarations on OSF/1 5.1.
20307         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20308         * doc/posix-functions/inet_ntop.texi: Likewise.
20309         * doc/posix-functions/gethostname.texi: Likewise.
20310         * lib/unistd.in.h (gethostname): Update comment.
20311
20312 2010-12-19  Bruno Haible  <bruno@clisp.org>
20313
20314         doc: Mention vasprintf-posix module.
20315         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20316         the 'vasprintf-posix' module.
20317         * doc/glibc-functions/vasprintf.texi: Likewise.
20318
20319 2010-12-19  Bruno Haible  <bruno@clisp.org>
20320
20321         unsetenv: Add missing declaration on OSF/1 5.1.
20322         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20323         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20324         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20326         not HAVE_UNSETENV.
20327         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20328         HAVE_UNSETENV.
20329         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20330
20331 2010-12-19  Bruno Haible  <bruno@clisp.org>
20332
20333         setenv: Add missing declaration on OSF/1 5.1.
20334         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20335         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20336         declared. Don't set HAVE_SETENV.
20337         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20338         not HAVE_SETENV.
20339         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20340         HAVE_SETENV.
20341         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20342
20343 2010-12-19  Bruno Haible  <bruno@clisp.org>
20344
20345         nl_langinfo tests: Avoid gcc warning.
20346         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20347
20348 2010-12-19  Bruno Haible  <bruno@clisp.org>
20349
20350         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20351         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20352         _GL_CXXALIAS_SYS.
20353
20354 2010-12-19  Bruno Haible  <bruno@clisp.org>
20355
20356         stdbool: Relax test.
20357         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20358         address to 'bool' work in static initializer, for compilers other than
20359         GCC.
20360
20361 2010-12-19  Bruno Haible  <bruno@clisp.org>
20362
20363         ftello: Add missing declaration on OSF/1 5.1.
20364         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20365         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20367         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20368         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20369
20370 2010-12-19  Bruno Haible  <bruno@clisp.org>
20371
20372         fseeko: Add missing declaration on OSF/1 5.1.
20373         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20374         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20376         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20377         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20378
20379 2010-12-19  Bruno Haible  <bruno@clisp.org>
20380
20381         fchdir: Add missing declaration on OSF/1 5.1.
20382         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20385         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20386         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20387
20388 2010-12-19  Bruno Haible  <bruno@clisp.org>
20389
20390         relocatable-prog-wrapper: Separate from relocatable-prog.
20391         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20392         uninstall-relocwrapper rule here.
20393         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20394         Reported by Ian Beckwith <ianb@erislabs.net>.
20395
20396 2010-12-19  Bruno Haible  <bruno@clisp.org>
20397
20398         unistr/u8-mbsnlen: Add missing dependency.
20399         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20400         Reported by Ian Beckwith <ianb@erislabs.net>.
20401
20402 2010-12-19  Bruno Haible  <bruno@clisp.org>
20403
20404         iconv: Make it possible again to use this module without 'iconv-h'.
20405         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20406         if it is not defined.
20407         Reported by Ian Beckwith <ianb@erislabs.net>.
20408
20409 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20410
20411         acl: port to Solaris 8 when copying from tmpfs to ufs
20412         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20413         error number.  Problem observed on Solaris 8 with latest
20414         coreutils, with "mv A B", where A is on a tmpfs file system and B
20415         is on a ufs file system.  This caused coreutils' mv/part-symlink
20416         test to fail.
20417
20418         tests: set fail=0 at start
20419         * tests/init.sh (setup_): Move fail=0 initialization here ...
20420         (mktempd_): ... from here, so that tests can rely on fail being
20421         set to 0 initially.  This fixes a problem in coreutils; see:
20422         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20423
20424 2010-12-18  Bruno Haible  <bruno@clisp.org>
20425
20426         memmem-simple: Stylistic changes.
20427         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20428         Fix preprocessor directive indentation.
20429
20430 2010-12-15  Pádraig Brady <P@draigBrady.com>
20431
20432         memmem, memmem-simple: reorganize and expand empty needle check
20433         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20434         functional checks to memmem-simple so that one has a fully functional
20435         memmem by using just this module.
20436         Restrict the performance only check to the memmem module.
20437         Also expand the empty needle check to ensure the correct
20438         pointer is returned, not just a non NULL pointer.
20439         * doc/glibc-functions/memmem.texi: Rearrange the portability
20440         documentation to correlate with the rearranged checks.
20441         Clarify exactly how the memmem and memmem-simple modules
20442         relate to each other.
20443
20444 2010-12-15  Pádraig Brady <P@draigBrady.com>
20445             Bruno Haible  <bruno@clisp.org>
20446
20447         Improve cross-compilation guesses for uClibc.
20448         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20449         that uClibc does not have the glibc bug.
20450         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20451         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20452
20453 2010-12-14  Eric Blake  <eblake@redhat.com>
20454
20455         configmake: provide fallbacks for oldest supported autotools
20456         * m4/configmake.m4: New file.
20457         * modules/configmake (Files): Ship it.
20458         (configure.ac): Use it to guarantee fallbacks.
20459
20460 2010-12-13  Pádraig Brady <P@draigBrady.com>
20461
20462         read-file: Improve handling of large files
20463         * lib/read-file.c (fread_file): Minimize realloc()s
20464         for regular files, and better manage sizes around SIZE_MAX.
20465
20466 2010-12-13  Eric Blake  <eblake@redhat.com>
20467
20468         cloexec, fcntl: relax license
20469         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20470         consent from all contributors.
20471         * modules/fcntl (License): Likewise.
20472
20473 2010-12-10  Bruno Haible  <bruno@clisp.org>
20474
20475         Tests for module 'pipe-posix'.
20476         * modules/pipe-posix-tests: New file.
20477         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20478
20479 2010-12-10  Bruno Haible  <bruno@clisp.org>
20480
20481         pipe-posix: Make it work in C++ mode.
20482         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20483         (pipe): Use common idiom, not a macro definition.
20484         * lib/pipe.c: New file.
20485         * m4/pipe.m4: New file.
20486         * modules/pipe-posix (Description): Enhance.
20487         (Files): Add lib/pipe.c, m4/pipe.m4.
20488         (configure.ac): Invoke gl_FUNC_PIPE.
20489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20490         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20491         * tests/test-unistd-c++.cc: Check the signature of pipe.
20492
20493 2010-12-10  Bruno Haible  <bruno@clisp.org>
20494
20495         Rename module 'pipe' to 'spawn-pipe'.
20496         * modules/spawn-pipe: New file, renamed from modules/pipe.
20497         (Files, configure.ac, Makefile.am): Update.
20498         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20499         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20500         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20501         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20502         "spawn-pipe.h" instead of "pipe.h".
20503         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20504         to gl_SPAWN_PIPE.
20505         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20506         (Files, Makefile.am): Update.
20507         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20508         Update.
20509         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20510         Include "spawn-pipe.h" instead of "pipe.h".
20511         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20512         * lib/javacomp.c: Likewise.
20513         * lib/javaversion.c: Likewise.
20514         * lib/pipe-filter-gi.c: Likewise.
20515         * lib/pipe-filter-ii.c: Likewise.
20516         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20517         * modules/javacomp (Depends-on): Likewise.
20518         * modules/javaversion (Depends-on): Likewise.
20519         * modules/pipe-filter-gi (Depends-on): Likewise.
20520         * modules/pipe-filter-ii (Depends-on): Likewise.
20521         * MODULES.html.sh (Executing programs): Update.
20522         * NEWS: Mention the change.
20523
20524 2010-12-10  Eric Blake  <eblake@redhat.com>
20525
20526         pipe-posix: new module
20527         * modules/pipe-posix: New file.
20528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20529         (gl_UNISTD_H): Check for declaration.
20530         * modules/unistd (Makefile.am): Substitute it.
20531         * lib/unistd.in.h (pipe): Provide it for mingw.
20532         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20533         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20534
20535 2010-12-07  Bruno Haible  <bruno@clisp.org>
20536
20537         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20538         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20539         u8_strcmp_gnu.
20540         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20541
20542 2010-12-06  Bruno Haible  <bruno@clisp.org>
20543
20544         Update internal documentation.
20545         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20546
20547 2010-12-04  Bruno Haible  <bruno@clisp.org>
20548
20549         Put more information about failed tests into the test return codes.
20550         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20551         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20552         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20553         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20554         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20555         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20556         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20557         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20558         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20560         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20561         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20562         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20563         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20564         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20565         returns a bit mask.
20566         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20567         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20568         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20569         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20570         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20571         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20574         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20575         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20576         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20577         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20578         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20579         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20580         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20581         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20582         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20583         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20584         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20585         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20587         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20588         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20589         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20590         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20591         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20592         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20593         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20594         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20595         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20596         gl_PRINTF_PRECISION): Likewise.
20597         * m4/regex.m4 (gl_REGEX): Likewise.
20598         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20599         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20600         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20601         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20602         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20604         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20605         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20606         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20607         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20608         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20609         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20610         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20611         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20612         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20613         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20614         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20615         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20617         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20618         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20619         enumerated value.
20620         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20621
20622 2010-12-04  Bruno Haible  <bruno@clisp.org>
20623
20624         Update for Solaris 11 2010-11.
20625         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20626         Express, released in November 2010.
20627
20628 2010-12-04  Bruno Haible  <bruno@clisp.org>
20629
20630         nproc: Relax license.
20631         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20632         and Paul Eggert.
20633         Requested by Ludovic Courtès <ludo@gnu.org>.
20634
20635 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20636
20637         utimecmp: fine-grained src to nearby coarse-grained dest
20638
20639         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20640         and the source is on a file system with higher-resolution time
20641         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20642         not work, and the time stamps are close together, the algorithm to
20643         determine the exact resolution from the read-back mtime was buggy:
20644         it had a "!=" where it should have had an "==".  This bug has been
20645         in the code ever since it was introduced to gnulib.
20646         Problem reported by Dan Jacobson in
20647         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20648
20649 2010-11-30  Bruno Haible  <bruno@clisp.org>
20650
20651         strerror_r-posix: Fix autoconf test.
20652         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20653
20654 2010-11-28  Bruno Haible  <bruno@clisp.org>
20655             Paul Eggert  <eggert@cs.ucla.edu>
20656
20657         Tests for module 'getdomainname'.
20658         * modules/getdomainname-tests: New file.
20659         * tests/test-getdomainname.c: New file, based on
20660         tests/test-gethostname.c.
20661
20662 2010-11-28  Bruno Haible  <bruno@clisp.org>
20663             Paul Eggert  <eggert@cs.ucla.edu>
20664
20665         getdomainname: Use the system function when possible.
20666         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20667         (getdomainname): Replace if needed. Provide the declaration if it is
20668         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20669         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20670         (getdomainname): When the system has getdomainname, call the system
20671         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20672         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20673         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20674         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20675         the function if its second argument is of type 'int' or if it is found
20676         in libnsl.
20677         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20678         <sys/systeminfo.h> and sysinfo().
20679         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20681         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20682         HAVE_GETDOMAINNAME.
20683         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20684         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20685         * doc/glibc-functions/getdomainname.texi: Document the problems with
20686         the getdomainname declaration.
20687
20688 2010-11-28  Bruno Haible  <bruno@clisp.org>
20689
20690         sys_socket: Ensure ss_family field on AIX.
20691         * lib/sys_socket.in.h (ss_family): New macro definition.
20692         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20693         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20694         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20695         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20696         * modules/sys_socket (Makefile.am): Substitute
20697         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20698         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20699
20700 2010-11-27  Bruno Haible  <bruno@clisp.org>
20701
20702         readline: Improve configure output.
20703         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20704         "checking for readline..." result understandable.
20705
20706 2010-11-27  Bruno Haible  <bruno@clisp.org>
20707
20708         *printf-posix: Detect a bug on Solaris 10/x86.
20709         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20710         for floating-point output.
20711         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20712         directive.
20713         * tests/test-snprintf-posix.h (test_function): Likewise.
20714         * tests/test-sprintf-posix.h (test_function): Likewise.
20715         * tests/test-vasprintf-posix.c (test_function): Likewise.
20716         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20717         * doc/posix-functions/printf.texi: Likewise.
20718         * doc/posix-functions/snprintf.texi: Likewise.
20719         * doc/posix-functions/sprintf.texi: Likewise.
20720         * doc/posix-functions/vfprintf.texi: Likewise.
20721         * doc/posix-functions/vprintf.texi: Likewise.
20722         * doc/posix-functions/vsnprintf.texi: Likewise.
20723         * doc/posix-functions/vsprintf.texi: Likewise.
20724         * doc/glibc-functions/obstack_printf.texi: Likewise.
20725         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20726
20727 2010-11-27  Bruno Haible  <bruno@clisp.org>
20728
20729         Fix link error when module libunistring-optional is in use.
20730         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20731         * modules/striconveha-tests (Makefile.am): Likewise.
20732
20733 2010-11-27  Bruno Haible  <bruno@clisp.org>
20734
20735         regex: Mention link dependencies.
20736         * modules/regex (Link): New section.
20737         * modules/rpmatch (Link): Likewise.
20738         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20739
20740 2010-11-27  Bruno Haible  <bruno@clisp.org>
20741
20742         ftoastr: Fix compilation error on Solaris.
20743         * lib/ftoastr.c: Include <config.h>.
20744
20745 2010-11-27  Bruno Haible  <bruno@clisp.org>
20746
20747         getloadavg: Update documentation.
20748         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20749
20750 2010-11-27  Bruno Haible  <bruno@clisp.org>
20751
20752         sys_socket: Fix test whether the functions are declared.
20753         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20754         not <sys/select.h>.
20755
20756 2010-11-27  Bruno Haible  <bruno@clisp.org>
20757
20758         getpass: Make sure to get system declaration on some platforms.
20759         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20760         gl_USE_SYSTEM_EXTENSIONS.
20761         * modules/getpass (Depends-on): Add extensions.
20762
20763 2010-11-26  Bruno Haible  <bruno@clisp.org>
20764
20765         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20766         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20767         'iconv' module is present.
20768         (ICONV_CONST): New macro.
20769         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20770         ICONV_CONST.
20771         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20772         set ICONV_CONST.
20773         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20774         here.
20775         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20776         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20777         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20778         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20779         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20780         present.
20781
20782 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20783
20784         ftoastr: comment fix
20785         * lib/ftoastr.c: "little" -> "little or no" in comment
20786
20787 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20788
20789         stdint: port to GCC 4.3 + OSX + Octave
20790         On this platform, stdint.h is buggy and defines int64_t to long
20791         long int.  The replacement defined it to long int, causing
20792         problems with C++ style name mangling.  Instead, trust the system
20793         definition if INT64_MAX is defined, and likewise for the unsigned
20794         variant.   Problem reported by Jarno Rajahalme in
20795         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20796         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20797         and don't mess with int64_t and INT64_MAX in this case.
20798         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20799
20800 2010-11-24  Bruno Haible  <bruno@clisp.org>
20801
20802         doc: Corrections regarding MacOS X 10.4 and 10.5.
20803         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20804         MacOS X.
20805         Reported by Simon Josefsson.
20806
20807 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20808
20809         Uninstall ".bin" files installed by relocwrapper.
20810         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20811         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20812         unless it is already there.
20813
20814 2010-11-21  Bruno Haible  <bruno@clisp.org>
20815
20816         Update for NetBSD 5.0.
20817         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20818         NetBSD; the test fails on NetBSD 5.0.
20819         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20820         about NetBSD.
20821
20822 2010-11-21  Bruno Haible  <bruno@clisp.org>
20823
20824         Update for HP-UX 11.23 and HP-UX 11.31.
20825         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20826         HP-UX.
20827
20828 2010-11-21  Bruno Haible  <bruno@clisp.org>
20829
20830         Update for MacOS X 10.5.
20831         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20832         MacOS X; the test fails on MacOS X 10.5.8.
20833         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20834         about MacOS X.
20835
20836 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20837
20838         bootstrap: add bootstrap_sync option.
20839         See discussion at
20840         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20841         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20842         * build-aux/bootstrap: Accept --bootstrap-sync to update
20843         bootstrap if it is not identical to the local gnulib's
20844         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20845         enable this by default.  Accept --no-bootstrap-sync to disable
20846         it.
20847
20848 2010-11-20  Bruno Haible  <bruno@clisp.org>
20849
20850         Ensure that <features.h> is included before __GLIBC__ is tested.
20851         * lib/printf-parse.h: Include <features.h>.
20852         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20853         Reported by Mike Frysinger <vapier@gentoo.org>.
20854
20855         Ensure that <features.h> is included before __GLIBC__ is tested.
20856         * lib/wchar.in.h: Include <features.h>.
20857         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20858         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20859         Reported by Mike Frysinger <vapier@gentoo.org>.
20860
20861         Ensure that <features.h> is included before __GLIBC__ is tested.
20862         * lib/arpa_inet.in.h: Include <features.h>.
20863         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20864         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20865         Reported by Mike Frysinger <vapier@gentoo.org>.
20866
20867         Ensure that <features.h> is included before __GLIBC__ is tested.
20868         * build-aux/link-warning.h: Include <features.h>.
20869         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20870         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20871         Reported by Mike Frysinger <vapier@gentoo.org>.
20872
20873         Ensure that <features.h> is included before __GLIBC__ is tested.
20874         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20875         Reported by Mike Frysinger <vapier@gentoo.org>.
20876
20877 2010-11-20  Bruno Haible  <bruno@clisp.org>
20878
20879         memmem: Fix autoconf test.
20880         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20881
20882 2010-11-20  Bruno Haible  <bruno@clisp.org>
20883
20884         Port to uClibc.
20885         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20886         * lib/fcntl.in.h: Likewise.
20887         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20888         * lib/mbrtowc.c (mbrtowc): Likewise.
20889         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20890         * lib/strerror_r.c: Likewise.
20891         * lib/unistr/u8-strnlen.c: Likewise.
20892         * lib/vasnprintf.c (decimal_point_char): Likewise.
20893         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20894         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20896         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20897         * tests/test-sigaction.c (handler, main): Likewise.
20898         * lib/freading.h: Treat uClibc like a non-glibc platform.
20899         * lib/freading.c: Likewise.
20900         * lib/gettext.h: Likewise.
20901         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20902         Likewise.
20903         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20904         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20905         * lib/propername.c (proper_name_utf8): Likewise.
20906         * lib/spawn.in.h: Likewise.
20907         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20908         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20909         mem_cd_iconveh_internal): Likewise.
20910         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20911         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20912         strstr, strcasestr): Likewise.
20913         * lib/unicodeio.c (unicode_to_mb): Likewise.
20914         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20915         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20916         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20917         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20918         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20919         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20920         * lib/unistr/u8-stpncpy.c: Likewise.
20921         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20922         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20923         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20924         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20925         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20926         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20927         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20928         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20930         Likewise.
20931         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20932         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20933         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20934         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20935         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20936         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20937         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20938         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20939         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20940         * tests/test-striconveha.c (main): Likewise.
20941         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20942         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20943         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20944         * doc/posix-functions/getline.texi: Likewise.
20945         Reported by Mike Frysinger <vapier@gentoo.org>.
20946
20947 2010-11-20  Bruno Haible  <bruno@clisp.org>
20948
20949         nproc: Fix condition.
20950         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20951         HAVE_PTHREAD_AFFINITY_NP.
20952
20953 2010-11-20  Bruno Haible  <bruno@clisp.org>
20954
20955         Fix a comment.
20956         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20957
20958 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20959
20960         ftoastr: don't assume snprintf
20961         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20962         Implement a subset of snprintf here, by using sprintf safely.
20963         * modules/ftoastr (Depends-on): Remove snprintf.
20964
20965 2010-11-19  Jim Meyering  <meyering@redhat.com>
20966
20967         test-rename.h: fix compilation failure
20968         * tests/test-rename.h (test_rename): Add omitted "}".
20969
20970 2010-11-17  Jim Meyering  <meyering@redhat.com>
20971
20972         maint.mk: add a URL discussing the no-@acronym policy
20973         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20974
20975 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20976
20977         ftoastr: depend on snprintf, improve comments
20978         * lib/ftoastr.c: Also mention Loitsch's draft.
20979         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20980         needed in the current implementation, but it might simplify
20981         speeding up the code later.
20982         * modules/ftoastr: Depend on snprintf; this improves portability.
20983         Suggested by Bruno Haible in the same email.
20984
20985         ftoastr: port to hosts lacking strtof and strtold
20986         Problem reported by Bruno Haible in
20987         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20988         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20989         environment and strtold (and presumably strtof) are not available.
20990         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20991         (configure.ac): Require gl_C99_STRTOLD.
20992
20993 2010-11-18  Bruno Haible  <bruno@clisp.org>
20994
20995         c-strtold: Avoid link error on AIX 7.
20996         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20997         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20998         (gl_C_STRTOLD): Test whether strtold_l exists.
20999         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21000
21001 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21002
21003         intprops: new macro INT_BITS_STRLEN_BOUND
21004         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
21005         ftoastr.h.  This exposes an internal of intprops.h that was formerly
21006         not exposed.  Also, it uses a slightly tighter bound than before;
21007         though this makes no practical difference, we might as well be as
21008         tight as we easily can.
21009
21010         ftoastr: new module, for lossless conversion of floats to short strings
21011         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
21012         * modules/ftoastr: New files.
21013
21014 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21015
21016         bootstrap: port to Solaris sed
21017         * build-aux/bootstrap (get_version): Port to Solaris sed.
21018         See Ralf Wildenhues's note in
21019         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21020
21021 2010-11-14  Jim Meyering  <meyering@redhat.com>
21022
21023         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21024         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21025         and move definition closer to sole use.
21026
21027 2010-11-13  Jim Meyering  <meyering@redhat.com>
21028
21029         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21030         Now we require at least autoconf-2.59, which means the work-around
21031         is no longer needed.
21032         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21033         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21034         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21035         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21036         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21037
21038 2010-11-13  Bruno Haible  <bruno@clisp.org>
21039
21040         rename, renameat: Avoid test failures at NFS mounted locations.
21041         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21042         functions.
21043         (test_rename): Use assert_nonexistent.
21044         * tests/test-rename.c: Include <dirent.h>.
21045         * tests/test-renameat.c: Likewise.
21046         Reported by Gary V. Vaughan <gary@gnu.org>.
21047
21048         rename, renameat: Document Linux bug with NFS
21049         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21050         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21051         * doc/posix-functions/renameat.texi: Likewise.
21052         Suggested by Eric Blake.
21053
21054 2010-11-13  Bruno Haible  <bruno@clisp.org>
21055
21056         rename test: Add comments.
21057         * tests/test-rename.h (test_rename): Add structure and comments.
21058
21059 2010-11-13  Eric Blake  <eblake@redhat.com>
21060
21061         maintainer-makefile: cover a few more files
21062         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21063         scripts generated within C files, for libvirt.
21064
21065 2010-11-13  Bruno Haible  <bruno@clisp.org>
21066
21067         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21068         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21069         character, return the number of bytes that belong together, not always
21070         1.
21071         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21072         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21073         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21074         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21075         number of bytes of an invalid character.
21076         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21077         (main): Invoke it.
21078         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21079         results.
21080         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21081         malformed byte sequences.
21082         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21083         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21084         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21085         Reported by Ben Pfaff and Paolo Bonzini.
21086
21087 2010-11-13  Bruno Haible  <bruno@clisp.org>
21088
21089         openat: Work around glibc bug with fchownat() and empty file names.
21090         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21091         (gl_FUNC_FCHOWNAT): Invoke it.
21092         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21093         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21094         Reported by Gary V. Vaughan <gary@gnu.org>.
21095
21096 2010-11-13  Bruno Haible  <bruno@clisp.org>
21097
21098         openat: Ensure autoconf macro ordering.
21099         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21100         gl_USE_SYSTEM_EXTENSIONS.
21101         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21102
21103 2010-11-13  Bruno Haible  <bruno@clisp.org>
21104
21105         Update comments.
21106         * lib/unistr/u8-check.c: Update file name in comments.
21107         * lib/unistr/u8-mblen.c: Likewise.
21108         * lib/unistr/u8-prev.c: Likewise.
21109         * lib/unistr/u8-strmblen.c: Likewise.
21110         * lib/unistr/u8-strmbtouc.c: Likewise.
21111
21112 2010-11-13  Jim Meyering  <meyering@redhat.com>
21113
21114         tests: avoid test failure on Solaris 10 due to lack of PATH export
21115         * tests/test-update-copyright.sh: Don't forget to export PATH.
21116
21117         init.sh: ensure that IFS is defined, just in case...
21118         * tests/init.sh (setup_): Ensure that IFS is defined,
21119         so that saving and restoring it works as expected.  This
21120         appears to be useful at least for an old version of dash
21121         from a long time ago (RH 6).  See here for details:
21122         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21123
21124         maint.mk: tighten "test a == b" check
21125         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21126         test to files that contain something like #!/bin/sh.
21127         Without this, coreutils would get two false positives in
21128         the comments of C source files.
21129
21130 2010-11-12  Eric Blake  <eblake@redhat.com>
21131
21132         bootstrap: fix typo in previous attempt
21133         * build-aux/bootstrap (buildreq): Correct the grouping.
21134         Reported by Paul Eggert.
21135
21136         maintainer-makefile: prohibit test x == x
21137         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21138         Based on a report by Matthias Bolte.
21139
21140         bootstrap: allow FreeBSD gzip
21141         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21142         which has no '.' and goes to stderr.
21143         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21144         Reported by Matthias Bolte.
21145
21146         maintainer-makefile: check for i18n setup
21147         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21148         will likely work.
21149
21150 2010-11-12  Bruno Haible  <bruno@clisp.org>
21151
21152         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21153         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21154         * lib/nanosleep.c (nanosleep): Likewise.
21155
21156 2010-11-11  Bruno Haible  <bruno@clisp.org>
21157
21158         fcntl-h: Fix for use of C++ on glibc systems.
21159         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21160         also on glibc systems in C++ mode.
21161         Reported by Gary V. Vaughan <gary@gnu.org>.
21162
21163 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21164
21165         mknod: avoid false failure with dash
21166         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21167
21168 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21169
21170         unlink: Fix "is it should" typo in diagnostic.
21171         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21172         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21173
21174 2010-11-11  Bruno Haible  <bruno@clisp.org>
21175
21176         Tests for module 'strerror_r-posix'.
21177         * modules/strerror_r-posix-tests: New file.
21178         * tests/test-strerror_r.c: New file.
21179         * tests/test-string-c++.cc: Check the signature of strerror_r.
21180
21181         New module 'strerror_r-posix'.
21182         * lib/string.in.h (strerror_r): New declaration.
21183         * lib/strerror_r.c: New file.
21184         * m4/strerror_r.m4: New file.
21185         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21186         of strerror_r.
21187         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21188         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21189         * modules/strerror_r-posix: New file.
21190         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21191         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21192         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21193         portability problems.
21194
21195 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21196
21197         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21198         line is also considered for output. Quoted function name in shell
21199         command, so temporary files for functions like MyClass::operator()
21200         are removed correctly without errors.
21201
21202 2010-11-09  Bruno Haible  <bruno@clisp.org>
21203
21204         * doc/posix-functions/strerror.texi: List more failing platforms.
21205
21206         * doc/posix-functions/strerror.texi: Add a comment.
21207
21208 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21209
21210         fdopendir: fix bug on MacOS X when low on file descriptors
21211
21212         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21213         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21214         All callers changed.
21215         (fdopendir): Invoke save_cwd at the top level, not after using
21216         multiple dup() calls to use up file descriptors.  Then retry
21217         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21218         less than the maximum number of open file descriptors, because
21219         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21220         on Mac OS X 10.6.4 for tar 1.24
21221         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21222         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21223         and for tar 1.25
21224         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21225
21226 2010-11-07  Bruno Haible  <bruno@clisp.org>
21227
21228         vasnprintf: Support I flag on glibc systems.
21229         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21230         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21231         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21232         snprintf function.
21233         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21234         glibc systems.
21235         * tests/test-vasnprintf-posix3.c: New file.
21236         * modules/vasnprintf-posix-tests (Files): Add it.
21237         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21238
21239 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21240
21241         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21242         * MODULES.html.sh: For compiler warnings, use name
21243         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21244
21245 2010-11-05  Eric Blake  <eblake@redhat.com>
21246
21247         ceil, floor: avoid spurious failure with icc
21248         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21249         [denormals-as-zero] when optimizing without -mieee-fp option.
21250         * tests/test-floorf2.c (floorf_reference): Likewise.
21251         * tests/test-ceilf1.c (dummy): New function.
21252         (main): Use it to outsmart icc's optimization.
21253         * tests/test-floorf1.c (dummy, main): Likewise.
21254
21255         tests: require working signbit
21256         * modules/ceilf-tests (Depends-on): Add signbit.
21257         * modules/ceill-tests (Depends-on): Likewise.
21258         * modules/floorf-tests (Depends-on): Likewise.
21259         * modules/floorl-tests (Depends-on): Likewise.
21260         * modules/round-tests (Depends-on): Likewise.
21261         * modules/roundf-tests (Depends-on): Likewise.
21262         * modules/roundl-tests (Depends-on): Likewise.
21263         * modules/trunc-tests (Depends-on): Likewise.
21264         * modules/truncf-tests (Depends-on): Likewise.
21265         * modules/truncl-tests (Depends-on): Likewise.
21266
21267         strtod: work around icc bug
21268         * lib/strtod.c (minus_zero): Define to working value.
21269         (strtod): Use it to avoid icc bug.
21270
21271         copysign: enhance tests
21272         * modules/copysign-tests (Files): Add minus-zero.h.
21273         * tests/test-copysign.c (main): Also test zeros.
21274
21275 2010-11-04  Eric Blake  <eblake@redhat.com>
21276
21277         ceil, floor, round, trunc: enhance tests of -0
21278         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21279         * tests/test-ceill.c (main): Likewise.
21280         * tests/test-floorf1.c (main): Likewise.
21281         * tests/test-floorl.c (main): Likewise.
21282         * tests/test-round1.c (main): Likewise.
21283         * tests/test-roundf1.c (main): Likewise.
21284         * tests/test-roundl.c (main): Likewise.
21285         * tests/test-trunc1.c (main): Likewise.
21286         * tests/test-truncf1.c (main): Likewise.
21287         * tests/test-truncl.c (main): Likewise.
21288
21289 2010-11-04  Eric Blake  <eblake@redhat.com>
21290
21291         frexp, tests: work around ICC bug with -zero
21292         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21293         works with more compilers.
21294         * tests/minus-zero.h: New file.
21295         * modules/ceilf-tests (Files): Include it.
21296         * modules/ceill-tests (Files): Likewise.
21297         * modules/floorf-tests (Files): Likewise.
21298         * modules/floorl-tests (Files): Likewise.
21299         * modules/frexp-nolibm-tests (Files): Likewise.
21300         * modules/frexp-tests (Files): Likewise.
21301         * modules/frexpl-nolibm-tests (Files): Likewise.
21302         * modules/frexpl-tests (Files): Likewise.
21303         * modules/isnan-tests (Files): Likewise.
21304         * modules/isnand-nolibm-tests (Files): Likewise.
21305         * modules/isnand-tests (Files): Likewise.
21306         * modules/isnanf-nolibm-tests (Files): Likewise.
21307         * modules/isnanf-tests (Files): Likewise.
21308         * modules/isnanl-nolibm-tests (Files): Likewise.
21309         * modules/isnanl-tests (Files): Likewise.
21310         * modules/round-tests (Files): Likewise.
21311         * modules/roundf-tests (Files): Likewise.
21312         * modules/roundl-tests (Files): Likewise.
21313         * modules/ldexpl-tests (Files): Likewise.
21314         * modules/signbit-tests (Files): Likewise.
21315         * modules/snprintf-posix-tests (Files): Likewise.
21316         * modules/sprintf-posix-tests (Files): Likewise.
21317         * modules/strtod-tests (Files): Likewise.
21318         * modules/trunc-tests (Files): Likewise.
21319         * modules/truncf-tests (Files): Likewise.
21320         * modules/truncl-tests (Files): Likewise.
21321         * modules/vsnprintf-posix-tests (Files): Likewise.
21322         * modules/vsprintf-posix-tests (Files): Likewise.
21323         * modules/vasnprintf-posix-tests (Files): Likewise.
21324         * modules/vasprintf-posix-tests (Files): Likewise.
21325         * tests/test-ceilf1.c (main): Use it.
21326         * tests/test-ceill.c (main): Likewise.
21327         * tests/test-floorf1.c (main): Likewise.
21328         * tests/test-floorl.c (main): Likewise.
21329         * tests/test-frexp.c (main): Likewise.
21330         * tests/test-frexpl.c (main): Likewise.
21331         * tests/test-isnan.c (main): Likewise.
21332         * tests/test-isnand.h (main): Likewise.
21333         * tests/test-isnanf.h (main): Likewise.
21334         * tests/test-isnanl.h (main): Likewise.
21335         * tests/test-ldexpl.c (main): Likewise.
21336         * tests/test-round.c (main): Likewise.
21337         * tests/test-roundf.c (main): Likewise.
21338         * tests/test-roundl.c (main): Likewise.
21339         * tests/test-signbit.c (test_signbitf, test_signbitd)
21340         (test_signbitl): Likewise.
21341         * tests/test-snprintf-posix.h (test_function): Likewise.
21342         * tests/test-sprintf-posix.h (test_function): Likewise.
21343         * tests/test-strtod.c (main): Likewise.
21344         * tests/test-trunc1.c (main): Likewise.
21345         * tests/test-truncf1.c (main): Likewise.
21346         * tests/test-truncl.c (main): Likewise.
21347
21348         isnanl: work around icc bug
21349         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21350
21351 2010-11-03  Eric Blake  <eblake@redhat.com>
21352
21353         tests: fix compiler warnings
21354         * tests/test-getopt.h (test_getopt): Fix condition.
21355         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21356         * tests/test-pipe2.c (main): Likewise.
21357         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21358
21359         utimens: fix broken m4 test
21360         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21361
21362 2010-10-28  Bruno Haible  <bruno@clisp.org>
21363
21364         posix_spawn*, getdtablesize: Relax license.
21365         * modules/posix_spawn (License): Change to LGPLv2+.
21366         * modules/posix_spawnp (License): Likewise.
21367         * modules/posix_spawn-internal (License): Likewise.
21368         * modules/posix_spawnattr_init (License): Likewise.
21369         * modules/posix_spawnattr_getflags (License): Likewise.
21370         * modules/posix_spawnattr_setflags (License): Likewise.
21371         * modules/posix_spawnattr_getpgroup (License): Likewise.
21372         * modules/posix_spawnattr_setpgroup (License): Likewise.
21373         * modules/posix_spawnattr_getschedparam (License): Likewise.
21374         * modules/posix_spawnattr_setschedparam (License): Likewise.
21375         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21376         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21377         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21378         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21379         * modules/posix_spawnattr_getsigmask (License): Likewise.
21380         * modules/posix_spawnattr_setsigmask (License): Likewise.
21381         * modules/posix_spawnattr_destroy (License): Likewise.
21382         * modules/posix_spawn_file_actions_init (License): Likewise.
21383         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21384         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21385         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21386         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21387         * modules/getdtablesize (License): Likewise.
21388         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21389
21390 2010-10-26  Bruno Haible  <bruno@clisp.org>
21391
21392         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21393         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21394         Cygwin and mingw.
21395         Suggested by Eric Blake.
21396
21397 2010-10-26  Bruno Haible  <bruno@clisp.org>
21398
21399         stdio: Work around compilation error due to renameat() on Solaris 10.
21400         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21401         * lib/renameat.c: Don't include <unistd.h> here.
21402         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21403         Reported by Paul Eggert and Eric Blake.
21404
21405 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21406
21407         renameat: port to Solaris 10, which declares renameat in unistd.h
21408
21409         * lib/renameat.c: Include unistd.h before stdio.h, because
21410         Solaris 10 declares renameat in unistd.h.  Problem encountered
21411         when building GNU tar 1.24 on Solaris 10.
21412
21413 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21414
21415         fdopendir: fix C89 compilation
21416         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21417         compilers.
21418
21419 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21420
21421         inttostr: simplify by removing unnecessary redundancy
21422         * lib/anytostr.c: Don't include verify.h.
21423         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21424         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21425         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21426         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21427         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21428         Likewise.
21429         * modules/inttostr (Depends-on): Remove 'verify'.
21430
21431 2010-10-23  Bruno Haible  <bruno@clisp.org>
21432
21433         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21434         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21435         Reported by Eric Blake.
21436
21437 2010-10-23  Bruno Haible  <bruno@clisp.org>
21438
21439         Tests: Fix LOCALE_JA on MirBSD 10.
21440         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21441         to an UTF-8 locale.
21442         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21443         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21444         Reported by Eric Blake.
21445
21446 2010-10-21  Bruno Haible  <bruno@clisp.org>
21447
21448         nl_langinfo test: Avoid test failure on NetBSD 5.
21449         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21450         Reported by Eric Blake.
21451
21452 2010-10-21  Eric Blake  <eblake@redhat.com>
21453
21454         c-stack: work around libsigsegv 2.8 bug
21455         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21456         overflow on at least PowerPC64.
21457
21458 2010-10-17  Bruno Haible  <bruno@clisp.org>
21459
21460         userspec: Drop redundant file.
21461         * modules/userspec (Files): Remove lib/inttostr.h.
21462
21463 2010-10-17  Bruno Haible  <bruno@clisp.org>
21464
21465         nl_langinfo tests: Silence some warnings.
21466         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21467         Reported by Jim Meyering.
21468
21469 2010-10-17  Bruno Haible  <bruno@clisp.org>
21470
21471         Make use of GCC's attribute __alloc_size__.
21472         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21473         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21474         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21475         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21476         __alloc_size__.
21477         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21478         Suggested by Jim Meyering.
21479
21480 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21481
21482         bootstrap: anchor .gitignore entries.
21483         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21484         with...
21485         (insert_vc_ignore): ... this new function, which prepends `/' to
21486         all .gitignore entries before passing them to
21487         insert_sorted_if_absent.
21488
21489 2010-10-16  Bruno Haible  <bruno@clisp.org>
21490
21491         nextafter: Fix configure check.
21492         * modules/nextafter (configure.ac): Correct expected prototype.
21493
21494 2010-10-16  Bruno Haible  <bruno@clisp.org>
21495
21496         termios: Update documentation.
21497         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21498
21499 2010-10-16  Bruno Haible  <bruno@clisp.org>
21500
21501         tests: Make them compile with TinyCC.
21502         * tests/test-strstr.c (main): Remove parentheses around array
21503         initializer.
21504
21505 2010-10-15  Eric Blake  <eblake@redhat.com>
21506
21507         ignore-value: make header idempotent
21508         * lib/ignore-value.h: Add double-inclusion guards.
21509         Reported by Stefan Berger.
21510
21511 2010-10-15  Jim Meyering  <meyering@redhat.com>
21512
21513         GNUmakefile: handle "stable" target, not "major"
21514         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21515         lists in maint.mk and announce-gen.  Without this, "make stable"
21516         would fail to ensure that $(VERSION) is up to date.
21517
21518 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21519
21520         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21521         & co.
21522
21523 2010-10-14  Bruno Haible  <bruno@clisp.org>
21524
21525         vasnprintf: Don't set errno to 0.
21526         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21527         block that sets it to 0.
21528         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21529
21530 2010-10-14  Bruno Haible  <bruno@clisp.org>
21531
21532         socketlib: Fix.
21533         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21534         gl_PREREQ_SYS_H_WINSOCK2.
21535         Reported by Ian Beckwith <ianb@erislabs.net>.
21536
21537 2010-10-13  Jim Meyering  <meyering@redhat.com>
21538
21539         test-select-stdin.c: avoid warn_unused_result warnings
21540         * tests/test-select-stdin.c: Include "macros.h".
21541         ASSERT that read and fflush succeed.
21542
21543 2010-10-13  Jim Meyering  <meyering@redhat.com>
21544
21545         git-version-gen: do require git-VC'd files in cwd
21546         * build-aux/git-version-gen: Reject a git version string
21547         if there are no commits associated with the current directory.
21548         This avoids an unlikely false-positive (unrelated dir whose parent
21549         repository also contains a tag matching v*), as pointed out
21550         by Giuseppe Scrivano in
21551         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21552
21553 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21554
21555         argv-iter: omit nonconforming declaration
21556         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21557         enum arg_iter_err declaration, which doesn't conform to C99.
21558         Solaris 10 cc warns about this.
21559
21560 2010-10-13  Eric Blake  <eblake@redhat.com>
21561
21562         termios: fix compilation on mingw
21563         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21564         (gl_TERMIOS_H): Adjust it on mingw.
21565         * modules/termios (Makefile.am): Substitute new key.
21566         * lib/termios.in.h (includes): Make include_next conditional.
21567         * doc/posix-headers/termios.texi (termios.h): Update
21568         documentation.
21569         Reported by Daniel P. Berrange.
21570
21571 2010-10-13  Jim Meyering  <meyering@redhat.com>
21572
21573         git-version-gen: don't require that .git/ be in the current dir
21574         * build-aux/git-version-gen: Adjust this script so that it works
21575         when run from any working directory beneath the top-level .git/-
21576         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21577         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21578
21579         test-select: avoid warn_unused_result warnings
21580         * tests/test-select.c: Include "macros.h".
21581         ASSERT that each call to read, write, and pipe succeeds.
21582         While not technically required, also check each "close".
21583         * modules/select-tests (Files): Add tests/macros.h.
21584
21585         test-symlinkat: remove declaration of unused local
21586         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21587
21588         test-inttostr: avoid shadowing warnings
21589         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21590         and use malloc rather than the stack for the same reason as
21591         mentioned in the comment justifying the other allocation.
21592
21593 2010-10-11  Bruno Haible  <bruno@clisp.org>
21594
21595         stdlib: Allow multiple gnulib generated replacements to coexist.
21596         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21597         Reported by Sam Steingold <sds@gnu.org>.
21598
21599 2010-10-11  Jim Meyering  <meyering@redhat.com>
21600
21601         fix a documentation typo
21602         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21603
21604 2010-10-11  Eric Blake  <eblake@redhat.com>
21605
21606         futimens: work around Solaris 11 bug
21607         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21608         * tests/test-futimens.h (test_futimens): Enhance, rather than
21609         weaken test.
21610         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21611
21612 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21613
21614         Indentation.
21615         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21616         higher-level operators more to the left.
21617
21618 2010-10-11  Jim Meyering  <meyering@redhat.com>
21619
21620         test-futimens: avoid unwarranted test failure on Solaris 5.11
21621         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21622         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21623         because it tries to dereference the NULL name argument.
21624
21625 2010-10-11  Bruno Haible  <bruno@clisp.org>
21626
21627         Indentation.
21628         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21629         indentation.
21630
21631 2010-10-11  Jim Meyering  <meyering@redhat.com>
21632
21633         spawn.in.h: make indentation consistent with parentheses
21634         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21635         Make indentation consistent with parentheses.
21636
21637 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21638
21639         Fix mismatched parens in previous commit
21640         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21641         parens.
21642
21643 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21644
21645         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21646
21647         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21648         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21649         * lib/malloca.c: Include "verify.h".
21650         (verify1): Remove, replacing with a verify call.
21651         * lib/relocwrapper.c (verify1): Likewise.
21652         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21653         Likewise.
21654         * modules/malloca (Depends-on): Add 'verify'.
21655         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21656         * modules/vasnprintf (Depends-on): Add 'verify'.
21657         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21658         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21659         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21660         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21661         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21662         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21663         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21664
21665         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21666
21667         Formerly the style was sometimes 2*X - 1, because the C standard
21668         was wrongly thought to disallow ?: in integral constant expressions.
21669         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21670         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21671         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21672         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21673         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21674         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21675         verify that time_t cannot be floating.
21676
21677 2010-10-08  Eric Blake  <eblake@redhat.com>
21678
21679         time: enforce recent POSIX ruling that time_t is integral
21680         * lib/time.in.h (__time_t_must_be_integral): Detect any
21681         problematic systems, allowing the rest of gnulib to assume POSIX.
21682
21683 2010-10-08  Jim Meyering  <meyering@redhat.com>
21684
21685         fdopendir: fix a bug on systems lacking openat and /proc support
21686         OpenBSD 4.7 is one such system.  The most noticeable effect was
21687         failure of any application making nontrivial use of fts: rm, du,
21688         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21689           ./rm: traversal failed: `a': Bad file descriptor
21690         Debugging that, you see that even though FD 6 was closed just
21691         prior to the opendir call in fd_clone_opendir, its resulting
21692         dir->dd_fd was 8, rather than the expected value of 6:
21693
21694         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21695         93                close (fd);
21696         (gdb) n
21697         94                dir = fd_clone_opendir (dupfd);
21698         (gdb) n
21699         95                saved_errno = errno;
21700         (gdb) p dir->dd_fd
21701         $11 = 8
21702
21703         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21704         The problem is that on OpenBSD, fd_clone_opendir has to resort
21705         to using the old-style save/restore CWD mechanism, due to its
21706         lack of openat/proc support, and *that* would steal the FD (6)
21707         that opendir was supposed to use.
21708
21709         The fix is to squirrel away the desired FD so that save_cwd uses a
21710         different one, and then free the dest FD right before calling opendir.
21711         That guarantees opendir will use the required file descriptor.
21712
21713         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21714
21715 2010-10-08  Bruno Haible  <bruno@clisp.org>
21716
21717         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21718         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21719
21720 2010-10-08  Bruno Haible  <bruno@clisp.org>
21721
21722         nanosleep: Make replacement POSIX compliant.
21723         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21724         is out of range.
21725         Reported by Jim Meyering.
21726
21727 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21728
21729         bootstrap: add hook for altering gnulib.mk, for Bison
21730         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21731         the Bison bootstrapping process can rewrite file names and variables
21732         in this file before later parts of 'bootstrap' use the file.
21733         Bison wants to include lib/gnulib.mk from the top-level makefile,
21734         so it needs the file names in this file to be relative to the top
21735         level, not relative to lib; plus it needs variable names to be
21736         rewritten.
21737         (slurp): Use the new function.
21738
21739         bootstrap: reformat for readability
21740         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21741
21742 2010-10-08  Eric Blake  <eblake@redhat.com>
21743
21744         docs: update cygwin progress
21745         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21746         1.7.7.
21747         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21748         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21749         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21750         * doc/posix-functions/carg.texi (carg): Likewise.
21751         * doc/posix-functions/cargf.texi (cargf): Likewise.
21752         * doc/posix-functions/casin.texi (casin): Likewise.
21753         * doc/posix-functions/casinf.texi (casinf): Likewise.
21754         * doc/posix-functions/casinh.texi (casinh): Likewise.
21755         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21756         * doc/posix-functions/catan.texi (catan): Likewise.
21757         * doc/posix-functions/catanf.texi (catanf): Likewise.
21758         * doc/posix-functions/catanh.texi (catanh): Likewise.
21759         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21760         * doc/posix-functions/ccos.texi (ccos): Likewise.
21761         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21762         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21763         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21764         * doc/posix-functions/cexp.texi (cexp): Likewise.
21765         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21766         * doc/posix-functions/cimag.texi (cimag): Likewise.
21767         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21768         * doc/posix-functions/clog.texi (clog): Likewise.
21769         * doc/posix-functions/clogf.texi (clogf): Likewise.
21770         * doc/posix-functions/conj.texi (conj): Likewise.
21771         * doc/posix-functions/conjf.texi (conjf): Likewise.
21772         * doc/posix-functions/cpow.texi (cpow): Likewise.
21773         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21774         * doc/posix-functions/cproj.texi (cproj): Likewise.
21775         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21776         * doc/posix-functions/creal.texi (creal): Likewise.
21777         * doc/posix-functions/crealf.texi (crealf): Likewise.
21778         * doc/posix-functions/csin.texi (csin): Likewise.
21779         * doc/posix-functions/csinf.texi (csinf): Likewise.
21780         * doc/posix-functions/csinh.texi (csinh): Likewise.
21781         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21782         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21783         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21784         * doc/posix-functions/ctan.texi (ctan): Likewise.
21785         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21786         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21787         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21788         * doc/posix-headers/complex.texi (complex.h): Likewise.
21789
21790 2010-10-07  Jim Meyering  <meyering@redhat.com>
21791
21792         parse-datetime: avoid compilation failure on OpenBSD 4.7
21793         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21794         This works around a compilation failure on OpenBSD 4.7:
21795         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21796
21797 2010-10-07  Eric Blake  <eblake@redhat.com>
21798
21799         docs: update cygwin progress
21800         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21801         1.7.6.
21802         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21803         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21804         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21805         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21806         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21807         Likewise.
21808         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21809         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21810         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21811         Likewise.
21812         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21813         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21814         Likewise.
21815         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21816         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21817         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21818         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21819         Likewise.
21820         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21821         Likewise.
21822         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21823
21824         docs: update parse-datetime history
21825         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21826         documentation of this function's history and alternatives.
21827
21828         cygwin: use more robust version check
21829         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21830         exclude an eventual cygwin 1.9.1.
21831         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21832         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21833         (gl_FUNC_STRCASESTR): Likewise.
21834         Reported by Bruno Haible.
21835
21836 2010-10-06  Bruno Haible  <bruno@clisp.org>
21837
21838         string, sys_select: Avoid #including large headers unless necessary.
21839         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21840         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21841         OSF/1, BeOS, Haiku.
21842         Reported by Jim Meyering.
21843
21844 2010-10-05  Eric Blake  <eblake@redhat.com>
21845
21846         memmem, strstr, strcasestr: fix bug with long periodic needle
21847         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21848         periodic needle having false positive.
21849         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21850         and cygwin 1.7.7.
21851         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21853         (gl_FUNC_STRCASESTR): Likewise.
21854         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21855         * tests/test-memmem.c (main): Expose the bug.
21856         * tests/test-strcasestr.c (main): Likewise.
21857         * tests/test-strstr.c (main): Likewise.
21858         * tests/test-c-strcasestr.c (main): Likewise.
21859         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21860         * doc/posix-functions/strstr.texi (strstr): Likewise.
21861         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21862         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21863
21864 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21865
21866         parse-datetime: do some more renaming
21867         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21868         parse_datetime, not get_date.  Mention the renaming.
21869         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21870         in comments.
21871         * m4/bison.m4: Likewise.
21872
21873 2010-10-05  Eric Blake  <eblake@redhat.com>
21874
21875         parse-datetime: better name than get_date
21876         * NEWS: Reword the deprecation notice.
21877         * modules/get_date: Rename to modules/parse-datetime.
21878         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21879         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21880         * lib/get_date.y: Rename to lib/parse-datetime.y.
21881         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21882         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21883         * doc/getdate.texi: Provide fallback wrapper.
21884         * lib/getdate.h: Move guts, and wrap...
21885         * lib/parse-datetime.h: ...new file.
21886         * lib/parse-datetime.y (get_date): Rename...
21887         (parse_datetime): ...to this.
21888         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21889         (gl_PARSE_DATETIME): ...to this.
21890         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21891         documentation.
21892         * modules/getdate (Files): Provide fallback docs and header.
21893         (Notice, Depends-on): Update references.
21894         * tests/test-parse-datetime.c: Likewise.
21895         * DEPENDENCIES: Likewise.
21896         * MODULES.html.sh (Date and time <time.h>): Likewise.
21897         * doc/parse-datetime.texi (Date input formats)
21898         (Authors of parse_datetime): Likewise.
21899         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21900         (Include): Likewise.
21901         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21902         * gnulib-tool: Likewise.
21903         * m4/bison.m4 (gl_BISON): Likewise.
21904         Suggested by Bruno Haible.
21905
21906 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21907
21908         more ports to Solaris tr, which needs [] around ranges
21909         * gnulib-tool: Solaris tr needs [] around ranges.
21910         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21911         * tests/test-pipe-filter-gi1.c (main): Likewise.
21912         * tests/test-pipe-filter-ii1.c (main): Likewise.
21913
21914 2010-10-05  Eric Blake  <eblake@redhat.com>
21915
21916         bootstrap: fix Solaris regression
21917         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21918         around ranges.
21919         Reported by Pádraig Brady.
21920
21921         bootstrap: work with pkg-config
21922         * build-aux/bootstrap (check_versions): Also transliterate - in
21923         prerequisite name.
21924         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21925         prerequisites that were already found, to avoid confusion.
21926         Reported by Justin Clift.
21927
21928         faccessat: remove unused wrappers
21929         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21930         presence of these wrappers dragged in -lgen on Solaris.
21931         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21932
21933 2010-10-05  Jim Meyering  <meyering@redhat.com>
21934
21935         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21936         * Makefile (sc_pragma_columns): New syntax-check rule.
21937
21938 2010-10-04  Bruno Haible  <bruno@clisp.org>
21939
21940         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21941         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21942         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21943         Reported by Bruce Korb and Eric Blake.
21944
21945 2010-10-04  Bruno Haible  <bruno@clisp.org>
21946
21947         threadlib: Make option --with-libpth-prefix work.
21948         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21949         use $LIBPTH, not just -lpth.
21950
21951 2010-10-04  Bruno Haible  <bruno@clisp.org>
21952
21953         Avoid line length limitation from HP NonStop system header files.
21954         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21955         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21956         * lib/ctype.in.h: Likewise.
21957         * lib/dirent.in.h: Likewise.
21958         * lib/errno.in.h: Likewise.
21959         * lib/fcntl.in.h: Likewise.
21960         * lib/float.in.h: Likewise.
21961         * lib/getopt.in.h: Likewise.
21962         * lib/iconv.in.h: Likewise.
21963         * lib/inttypes.in.h: Likewise.
21964         * lib/langinfo.in.h: Likewise.
21965         * lib/locale.in.h: Likewise.
21966         * lib/math.in.h: Likewise.
21967         * lib/netdb.in.h: Likewise.
21968         * lib/netinet_in.in.h: Likewise.
21969         * lib/poll.in.h: Likewise.
21970         * lib/pthread.in.h: Likewise.
21971         * lib/pty.in.h: Likewise.
21972         * lib/sched.in.h: Likewise.
21973         * lib/se-selinux.in.h: Likewise.
21974         * lib/search.in.h: Likewise.
21975         * lib/signal.in.h: Likewise.
21976         * lib/spawn.in.h: Likewise.
21977         * lib/stdarg.in.h: Likewise.
21978         * lib/stddef.in.h: Likewise.
21979         * lib/stdint.in.h: Likewise.
21980         * lib/stdio.in.h: Likewise.
21981         * lib/stdlib.in.h: Likewise.
21982         * lib/string.in.h: Likewise.
21983         * lib/strings.in.h: Likewise.
21984         * lib/sys_file.in.h: Likewise.
21985         * lib/sys_ioctl.in.h: Likewise.
21986         * lib/sys_select.in.h: Likewise.
21987         * lib/sys_socket.in.h: Likewise.
21988         * lib/sys_stat.in.h: Likewise.
21989         * lib/sys_time.in.h: Likewise.
21990         * lib/sys_times.in.h: Likewise.
21991         * lib/sys_utsname.in.h: Likewise.
21992         * lib/sys_wait.in.h: Likewise.
21993         * lib/sysexits.in.h: Likewise.
21994         * lib/termios.in.h: Likewise.
21995         * lib/time.in.h: Likewise.
21996         * lib/unistd.in.h: Likewise.
21997         * lib/wchar.in.h: Likewise.
21998         * lib/wctype.in.h: Likewise.
21999         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
22000         * modules/ctype (Makefile.am): Likewise.
22001         * modules/dirent (Makefile.am): Likewise.
22002         * modules/errno (Makefile.am): Likewise.
22003         * modules/fcntl-h (Makefile.am): Likewise.
22004         * modules/float (Makefile.am): Likewise.
22005         * modules/getopt-posix (Makefile.am): Likewise.
22006         * modules/iconv-h (Makefile.am): Likewise.
22007         * modules/inttypes (Makefile.am): Likewise.
22008         * modules/langinfo (Makefile.am): Likewise.
22009         * modules/locale (Makefile.am): Likewise.
22010         * modules/math (Makefile.am): Likewise.
22011         * modules/netdb (Makefile.am): Likewise.
22012         * modules/netinet_in (Makefile.am): Likewise.
22013         * modules/poll-h (Makefile.am): Likewise.
22014         * modules/pthread (Makefile.am): Likewise.
22015         * modules/pty (Makefile.am): Likewise.
22016         * modules/sched (Makefile.am): Likewise.
22017         * modules/search (Makefile.am): Likewise.
22018         * modules/selinux-h (Makefile.am): Likewise.
22019         * modules/signal (Makefile.am): Likewise.
22020         * modules/spawn (Makefile.am): Likewise.
22021         * modules/stdarg (Makefile.am): Likewise.
22022         * modules/stddef (Makefile.am): Likewise.
22023         * modules/stdint (Makefile.am): Likewise.
22024         * modules/stdio (Makefile.am): Likewise.
22025         * modules/stdlib (Makefile.am): Likewise.
22026         * modules/string (Makefile.am): Likewise.
22027         * modules/strings (Makefile.am): Likewise.
22028         * modules/sys_file (Makefile.am): Likewise.
22029         * modules/sys_ioctl (Makefile.am): Likewise.
22030         * modules/sys_select (Makefile.am): Likewise.
22031         * modules/sys_socket (Makefile.am): Likewise.
22032         * modules/sys_stat (Makefile.am): Likewise.
22033         * modules/sys_time (Makefile.am): Likewise.
22034         * modules/sys_times (Makefile.am): Likewise.
22035         * modules/sys_utsname (Makefile.am): Likewise.
22036         * modules/sys_wait (Makefile.am): Likewise.
22037         * modules/sysexits (Makefile.am): Likewise.
22038         * modules/termios (Makefile.am): Likewise.
22039         * modules/time (Makefile.am): Likewise.
22040         * modules/unistd (Makefile.am): Likewise.
22041         * modules/wchar (Makefile.am): Likewise.
22042         * modules/wctype (Makefile.am): Likewise.
22043
22044 2010-10-04  Bruno Haible  <bruno@clisp.org>
22045
22046         read-file tests: Avoid a test failure on NonStop Kernel.
22047         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22048         a regular file.
22049         Reported by Joachim Schmitz <schmitz@hp.com>.
22050
22051 2010-10-03  Bruno Haible  <bruno@clisp.org>
22052
22053         gnulib-tool: Fixes for --create-testdir with --libtool.
22054         * gnulib-tool (func_get_automake_snippet): Don't augment
22055         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22056         an executable.
22057         (func_create_testdir): Handle module 'alloca' like func_import.
22058         Reported by Bruce Korb <bruce.korb@gmail.com>.
22059
22060 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22061
22062         Avoid some lines longer than 80 characters.
22063         * lib/stdint.in.h: Break long comment lines.
22064         * lib/math.in.h: Likewise.
22065         (_GL_NUM_UINT_WORDS): New macro, for readability.
22066         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22067         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22068         * lib/stdlib.in.h: Likewise.
22069         * lib/spawn.in.h: Likewise.
22070         * lib/sys_socket.in.h: Update an URL.
22071         * lib/sys_stat.in.h: Break long line.
22072
22073 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22074
22075         Improve pmccabe2html.
22076         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22077         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22078         when the sources change. Remove the line in the HTML about "Used
22079         ranges" (which implied that there might be other unused ranges),
22080         rename "Resume" to "Summary" (easier to understand for more users).
22081         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22082         styles, and some unnecessary blank lines.
22083
22084 2010-10-03  Bruno Haible  <bruno@clisp.org>
22085             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22086
22087         acl: Add support for ACLs on NonStop Kernel.
22088         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22089         Check whether the function aclsort() exists.
22090         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22091         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22092         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22093         (acl_nontrivial [HAVE_ACLSORT]: New function.
22094         (file_has_acl): Implement for NonStop Kernel.
22095         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22096         (qset_acl): Implement for NonStop Kernel.
22097         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22098         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22099         (main): Implement for NonStop Kernel.
22100         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22101         Kernel. Handle this flavor.
22102         * tests/test-set-mode-acl.sh: Likewise.
22103         * tests/test-copy-acl.sh: Likewise.
22104         * tests/test-copy-file.sh: Likewise.
22105
22106 2010-10-03  Bruno Haible  <bruno@clisp.org>
22107
22108         Info about ACLs on NonStop Kernel.
22109         * doc/acl-resources.txt: Add info about NonStop Kernel.
22110         References by Joachim Schmitz <schmitz@hp.com>.
22111
22112 2010-10-02  Bruno Haible  <bruno@clisp.org>
22113
22114         Define missing EDQUOT on NonStop Kernel.
22115         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22116         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22117         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22118         missing.
22119         * doc/posix-headers/errno.texi: Mention the NSK bug.
22120         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22121         Reported by Joachim Schmitz <schmitz@hp.com>.
22122
22123 2010-10-02  Bruno Haible  <bruno@clisp.org>
22124
22125         Update doc for POSIX:2008.
22126         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22127         Update URL of POSIX specification.
22128
22129 2010-10-02  Bruno Haible  <bruno@clisp.org>
22130
22131         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22132         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22133         from gnulib, not from Automake.
22134
22135 2010-10-02  Bruno Haible  <bruno@clisp.org>
22136
22137         New module 'system-posix'.
22138         * modules/system-posix: New file.
22139         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22140         module is present.
22141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22142         GNULIB_SYSTEM_POSIX.
22143         * modules/stdlib (Depends-on): Remove sys_wait.
22144         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22145         * doc/posix-functions/system.texi: Mention the new module.
22146         * doc/posix-headers/stdlib.texi: Likewise.
22147         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22148         define test_sys_wait_macros to a no-op.
22149         Reported by Sam Steingold <sds@gnu.org>.
22150
22151 2010-09-30  Bruno Haible  <bruno@clisp.org>
22152
22153         More renaming from 'getdate' to 'get_date'.
22154         * doc/get_date.texi: Renamed from doc/getdate.texi.
22155         * modules/get_date (Files): Update.
22156         * MODULES.html.sh (Date and time <time.h>): Update.
22157         * DEPENDENCIES: Update.
22158         * gnulib-tool: Update comment.
22159         * m4/bison.m4 (gl_BISON): Likewise.
22160         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22161
22162 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22163
22164         bootstrap: support ACLOCAL_FLAGS during aclocal
22165         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22166         can add additional -I dir for third-party .m4 files.
22167
22168 2010-09-30  Eric Blake  <eblake@redhat.com>
22169
22170         bootstrap: use glibtoolize on MacOS
22171         * build-aux/bootstrap (check_versions): Convert libtool into
22172         libtoolize.
22173         (tool search): Move libtool check earlier, and look for
22174         glibtoolize for MacOS.
22175         (gnulib_tool_options): Auto-add --libtool when appropriate.
22176         Reported by Justin Clift.
22177
22178         poll: fix typo that broke test on MacOS
22179         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22180         Reported by Justin Clift.
22181
22182         getdate: rename to get_date
22183         Note: getdate.h is not renamed, to minimize client impact.
22184         * modules/getdate: Mark obsolete.  Move old contents...
22185         * modules/get_date: ...to new module name.
22186         * modules/getdate-tests: Move...
22187         * modules/get_date-tests: ...here.
22188         * m4/getdate.m4: Move...
22189         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22190         * lib/getdate.y: Move...
22191         * lib/get_date.y: ...here.
22192         * tests/test-getdate.c: Move...
22193         * tests/test-get_date.c: ...here.
22194         * doc/posix-functions/getdate.texi (getdate): Update name.
22195         * NEWS: Mention the change.
22196
22197 2010-09-29  Bruno Haible  <bruno@clisp.org>
22198
22199         Separate the module 'waitpid' from the module 'sys_wait'.
22200         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22201         present.
22202         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22203         gl_MODULE_INDICATOR_FOR_TESTS.
22204         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22205         * modules/sys_wait (Depends-on): Remove waitpid.
22206         (Makefile.am): Substitute GNULIB_WAITPID.
22207         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22208         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22209         signature only if the 'waitpid' module is present.
22210         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22211         * NEWS: Mention the change.
22212         * modules/grantpt (Depends-on): Add waitpid.
22213         * modules/wait-process (Depends-on): Likewise.
22214
22215 2010-09-29  Bruno Haible  <bruno@clisp.org>
22216
22217         More tests for module 'sys_wait'.
22218         * modules/sys_wait-c++-tests: New file.
22219         * tests/test-sys_wait-c++.cc: New file.
22220         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22221         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22222
22223 2010-09-29  Bruno Haible  <bruno@clisp.org>
22224
22225         New module 'waitpid'.
22226         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22227         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22228         Don't include <process.h>.
22229         (waitpid): Declare only, using modern idiom.
22230         * m4/waitpid.m4: New file.
22231         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22232         * modules/waitpid: New file.
22233         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22234         (Makefile.am): Update.
22235         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22236
22237 2010-09-28  Bruno Haible  <bruno@clisp.org>
22238
22239         poll: Assume ANSI C.
22240         * lib/poll.c (poll): Use an ANSI C declaration.
22241
22242 2010-09-28  Bruno Haible  <bruno@clisp.org>
22243
22244         poll-h: Create poll.h on all platforms.
22245         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22246         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22247         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22248         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22249         (gl_REPLACE_POLL_H): Don't set POLL_H.
22250         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22251         * modules/poll-h (Depends-on): Add include_next.
22252         (Makefile.am): Create poll.h unconditionally. Substitute also
22253         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22254
22255 2010-09-28  Bruno Haible  <bruno@clisp.org>
22256
22257         Tests for module 'poll-h'.
22258         * modules/poll-h-c++-tests: New file.
22259         * tests/test-poll-h-c++.cc: New file.
22260
22261         Tests for module 'poll-h'.
22262         * modules/poll-h-tests: New file.
22263         * tests/test-poll-h.c: New file.
22264
22265 2010-09-28  Bruno Haible  <bruno@clisp.org>
22266
22267         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22268         * modules/poll-h (Depends-on): Add 'extensions'.
22269
22270 2010-09-28  Bruno Haible  <bruno@clisp.org>
22271
22272         New module 'poll-h'.
22273         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22274         (poll): Use modern idiom.
22275         * modules/poll-h: New file.
22276         * modules/poll (Files): Remove lib/poll.in.h.
22277         (Depends-on): Add poll-h.
22278         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22279         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22280         * m4/poll_h.m4: New file.
22281         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22282         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22283         and invoke gl_REPLACE_POLL_H.
22284         * lib/poll.c: Use common idiom.
22285         * tests/test-poll.c: Likewise.
22286         * doc/posix-headers/poll.texi: Mention the poll-h module.
22287         Suggested by Eric Blake.
22288
22289 2010-09-26  Bruno Haible  <bruno@clisp.org>
22290
22291         sys_wait: Implement WSTOPSIG.
22292         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22293         Reported by Simon Josefsson.
22294
22295 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22296
22297         stdlib, sys_wait: Avoid compilation error on mingw.
22298         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22299
22300 2010-09-26  Bruno Haible  <bruno@clisp.org>
22301
22302         stdlib tests: Avoid code duplication.
22303         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22304         * modules/sys_wait-tests (Files): Likewise.
22305         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22306         * tests/test-stdlib.c: Include test-sys_wait.h.
22307         (main): Invoke test_sys_wait_macros.
22308         * tests/test-sys_wait.c: Include test-sys_wait.h.
22309         (main): Invoke test_sys_wait_macros.
22310
22311 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22312
22313         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22314         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22315         sure Windows sockets are working before calling getaddrinfo.
22316         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22317         * doc/gnulib.texi (Windows sockets): Fix typo.
22318
22319 2010-09-25  Bruno Haible  <bruno@clisp.org>
22320
22321         Tests for module 'regex-quote'.
22322         * modules/regex-quote-tests: New file.
22323         * tests/test-regex-quote.c: New file.
22324
22325         New module 'regex-quote'.
22326         * lib/regex-quote.h: New file.
22327         * lib/regex-quote.c: New file.
22328         * modules/regex-quote: New file.
22329         Suggested by Reuben Thomas <rrt@sc3d.org>.
22330
22331 2010-09-24  Bruno Haible  <bruno@clisp.org>
22332
22333         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22334         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22335
22336 2010-09-23  Bruno Haible  <bruno@clisp.org>
22337
22338         setenv: Relax license.
22339         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22340         Blake.
22341         Requested by Eric Blake.
22342
22343 2010-09-22  Bruno Haible  <bruno@clisp.org>
22344
22345         termios: Relax license.
22346         * modules/termios (License): Change to LGPLv2+.
22347         Requested by Eric Blake.
22348
22349 2010-09-22  Bruno Haible  <bruno@clisp.org>
22350
22351         threadlib: Allow the package to change the default to 'no'.
22352         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22353         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22354         Reported by Paul Eggert.
22355
22356 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22357             Bruno Haible  <bruno@clisp.org>
22358
22359         Fix endless loop in mbmemcasecoll.
22360         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22361         byte.
22362         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22363
22364 2010-09-22  Bruno Haible  <bruno@clisp.org>
22365
22366         Tests for module 'memcoll'.
22367         * modules/memcoll-tests: New file.
22368         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22369
22370         memcoll, xmemcoll: Clarify size vs. length.
22371         * modules/memcoll.c (memcoll0): Clarify specification.
22372         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22373         passed to collate_error.
22374
22375 2010-09-22  Bruno Haible  <bruno@clisp.org>
22376
22377         Tests for module 'memcasecmp'.
22378         * modules/memcasecmp-tests: New file.
22379         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22380
22381 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22382
22383         * lib/pthread.in.h: Add split double-inclusion guard, and include
22384         system <pthread.h> if there is one.  Use @@-style as in other
22385         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22386         pthread.h doesn't.
22387         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22388         (pthread_mutexattr_settype, pthread_mutex_trylock):
22389         New static inline functions, if there's no system <pthread.h>.
22390         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22391         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22392         Approximate with mutexes if the system lacks spinlocks, as in
22393         MacOS.
22394         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22395         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22396         @@-style.  Check for spinlocks separately.
22397         (gl_PTHREAD_DEFAULTS): New macro.
22398         * modules/pthread: Redo to use a more typical style for in.h files.
22399
22400 2010-09-21  Eric Blake  <eblake@redhat.com>
22401
22402         net_if: enhance tests
22403         * tests/test-net_if.c (main): Move signature checks earlier.
22404         Print failures to stderr.
22405         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22406         Document the bug that we do not yet fix.
22407
22408 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22409
22410         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22411         about gnulib, not GSS.
22412
22413 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22414
22415         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22416         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22417         for Emacs.
22418         * build-aux/pmccabe2html: Make Makefile.am example code more
22419         cut-and-paste friendly.
22420
22421 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22422
22423         * tests/test-net_if.c: New file.
22424         * modules/net_if-tests: New file.
22425
22426 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22427
22428         pthread: add pthread_spin_destroy
22429         * lib/pthread.in.h (pthread_spin_destroy): New function.
22430
22431 2010-09-19  Bruno Haible  <bruno@clisp.org>
22432
22433         gnulib-tool: Fix --help output.
22434         * gnulib-tool (func_usage): Fix help message.
22435         Reported by Reuben Thomas <rrt@sc3d.org>.
22436
22437 2010-09-18  Jim Meyering  <meyering@redhat.com>
22438
22439         maint.mk: avoid unexpanded \n in two diagnostics
22440         * top/maint.mk (sc_prohibit_always_true_header_tests):
22441         Don't use a literal \n in a halt=... assignment.  It would not be
22442         expanded, and the two \n bytes would appear in the diagnostic output
22443         rather than the desired newline.  Use halt=$$(printf ... instead.
22444         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22445
22446 2010-09-18  Bruno Haible  <bruno@clisp.org>
22447
22448         netinet_in: Doc tweak.
22449         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22450         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22451
22452 2010-09-18  Jim Meyering  <meyering@redhat.com>
22453
22454         init.sh: correct an outdated comment
22455         * tests/init.sh (create_exe_shims_):  s/function/alias/
22456
22457         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22458         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22459         a file named "*.exe" is removed between the glob expansion and the
22460         processing of that oddly named file.
22461
22462 2010-09-17  Eric Blake  <eblake@redhat.com>
22463
22464         mirbsd: add some more support
22465         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22466         in BSD family.
22467         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22468         devices as OpenBSD.
22469         * m4/host-os.m4 (mirbsd): Add MirBSD.
22470
22471         tests: fix unportable assumption on sys/wait.h
22472         * tests/test-sys_wait.c (main): Relax test.
22473         * tests/test-stdlib.c (main): Likewise.
22474
22475         init.sh: accomodate directory with no .exes
22476         * tests/init.sh: Accomodate directory containing only scripts.
22477
22478         tests: avoid compiler warning
22479         * tests/test-stdlib.c (main): Use the variable.
22480
22481         fdutimens, fdutimensat: update signature, again
22482         * lib/utimens.h (gl_futimens): Delete, and move signature...
22483         (fdutimens): ...here.
22484         (fdutimensat): Rearrange signature.
22485         (lutimensat): Rename variable for clarity.
22486         * lib/fdutimensat.c (fdutimensat): Update signature.
22487         * lib/utimens.c (fdutimens): Likewise.
22488         (gl_futimens): Delete.
22489         (utimens, lutimens): Update callers.
22490         * lib/futimens.c (futimens): Likewise.
22491         * tests/test-fdutimensat.c: Likewise.
22492         * tests/test-utimens.c: Likewise.
22493         * tests/test-futimens.h: Update comment.
22494         * NEWS: Mention this.
22495         Suggested by Paul Eggert.
22496
22497 2010-09-17  Bruno Haible  <bruno@clisp.org>
22498
22499         Take over the maintenance of some older macros from Autoconf.
22500         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22501         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22502         GNU Autoconf.
22503         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22504         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22505
22506 2010-09-17  Eric Blake  <eblake@redhat.com>
22507
22508         fdutimensat: drop atflag validation
22509         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22510         with valid fd, to close a race scenario where futimens is
22511         unsupported and FILE was replaced by a symlink.
22512         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22513         accordingly.
22514         Suggested by Paul Eggert.
22515
22516 2010-09-16  Bruno Haible  <bruno@clisp.org>
22517
22518         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22519         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22520
22521 2010-09-16  Bruno Haible  <bruno@clisp.org>
22522
22523         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22524         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22525         login_tty exists.
22526         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22527
22528 2010-09-16  Bruno Haible  <bruno@clisp.org>
22529
22530         login_tty: Make the replacement code work on BSD systems.
22531         * lib/login_tty.c: Include <sys/ioctl.h>.
22532         (login_tty): Use ioctl TIOCSCTTY when available.
22533         * modules/login_tty (Depends-on): Add sys_ioctl.
22534         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22535
22536 2010-09-16  Bruno Haible  <bruno@clisp.org>
22537
22538         login_tty: Stricter unit test.
22539         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22540         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22541         and tcgetsid() after login_tty.
22542         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22543
22544 2010-09-16  Bruno Haible  <bruno@clisp.org>
22545
22546         New module 'tcgetsid'.
22547         * lib/tcgetsid.c: New file.
22548         * m4/tcgetsid.m4: New file.
22549         * modules/tcgetsid: New file.
22550         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22551         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22552         GNULIB_TCGETSID, HAVE_TCGETSID.
22553         * lib/termios.in.h: Include <sys/types.h>.
22554         (tcgetsid): New declaration.
22555         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22556         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22557         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22558         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22559
22560 2010-09-16  Bruno Haible  <bruno@clisp.org>
22561
22562         Tests for module 'termios'.
22563         * modules/termios-c++-tests: New file.
22564         * modules/termios-tests: New file.
22565         * tests/test-termios-c++.cc: New file.
22566         * tests/test-termios.c: New file.
22567
22568         New module 'termios'.
22569         * modules/termios: New file.
22570         * lib/termios.in.h: New file.
22571         * m4/termios_h.m4: New file.
22572         * doc/posix-headers/termios.texi: Mention the new module.
22573
22574 2010-09-16  Eric Blake  <eblake@redhat.com>
22575
22576         fdutimensat: add an atflag parameter
22577         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22578         * lib/utimens.h (fdutimensat): Update prototype.
22579         * tests/test-fdutimensat.c: Adjust test to match.
22580         * NEWS: Document the change.
22581         Suggested by Paul Eggert.
22582
22583 2010-09-16  Bruno Haible  <bruno@clisp.org>
22584
22585         Fix typos in comments.
22586         * lib/striconveh.h: Fix typo in comment.
22587         * lib/login_tty.c (login_tty): Likewise.
22588
22589 2010-09-15  Bruno Haible  <bruno@clisp.org>
22590
22591         stdlib: clarify MirBSD WEXITSTATUS bug
22592         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22593         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22594
22595 2010-09-15  Eric Blake  <eblake@redhat.com>
22596
22597         stdlib: work around MirBSD WEXITSTATUS bug
22598         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22599         * modules/stdlib (Depends-on): Add sys_wait.
22600         * tests/test-sys_wait.c (main): Enhance test.
22601         * tests/test-stdlib.c (main): Likewise.
22602         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22603
22604         docs: mention MacOS issue with WEXITSTATUS(constant)
22605         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22606         issue.
22607         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22608
22609         strnlen: add tests
22610         * modules/strnlen-tests: New file.
22611         * tests/test-strnlen.c: Likewise.
22612
22613 2010-09-14  Bruno Haible  <bruno@clisp.org>
22614
22615         unistr/base: Avoid link errors when module 'libunistring' is also used.
22616         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22617         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22618         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22619         Declare also when HAVE_LIBUNISTRING is set.
22620         Reported by Pádraig Brady <P@draigbrady.com>.
22621
22622 2010-09-14  Eric Blake  <eblake@redhat.com>
22623
22624         test-rawmemchr: make more robust
22625         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22626         (Depends-on, configure.ac): Add needed prerequisites to use it.
22627         * modules/memchr-tests (Files, Depends-on, configure.ac):
22628         Likewise, to avoid implicit reliance on memchr module prereqs.
22629         * tests/test-memchr.c (main): Ensure proper masking.
22630         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22631         reads.
22632
22633         memchr: detect glibc Alpha bug
22634         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22635         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22636         Alpha.
22637         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22638         * tests/test-memchr.c (main): Enhance test.
22639         Reported by Nelson H. F. Beebe.
22640
22641 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22642
22643         fts, getcwd, glob: audit for dirfd returning -1
22644         * lib/fts.c (opendir): Remove #define; no longer used.
22645         (opendirat): New arg PDIR_FD.  All callers changed.
22646         (fts_build, _opendir2): Use new opendirat to avoid the need for
22647         dirfd, or for checking whether dirfd returns a negative value.
22648         Don't use opendir; always use openat followed by fdopendir.
22649         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22650         it.
22651         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22652         returns -1 here.
22653         * modules/fts (Depends-on): Remove dirfd.
22654         * modules/getcwd (Depends-on): Likewise.
22655
22656 2010-09-13  Eric Blake  <eblake@redhat.com>
22657
22658         float: fix broken MirBSD header
22659         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22660         * doc/posix-headers/float.texi (float.h): Document it.
22661
22662 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22663
22664         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22665         * lib/fts.c (opendirat): New arg extra_flags.
22666         (__opendir2): Use it to avoid following symlinks when opening
22667         a directory, if symlinks are not supposed to be followed.  See
22668         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22669
22670         fdopendir: preserve argument fd before returning
22671         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22672         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22673         (fdopendir): Use them, arranging for FD to be open to the same
22674         directory that it was when it started.  (It might be temporarily
22675         closed while fdopendir is running, so this not thread- or
22676         signal-safe.)  Be careful to do the right thing even when file
22677         descriptors are scarce and dup fails with errno == EMFILE.  See
22678         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22679
22680 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22681
22682         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22683         * NEWS: Document change.
22684         * m4/regex.m4: Disable test for regoff_t size.
22685
22686 2010-09-13  Jim Meyering  <meyering@redhat.com>
22687
22688         fts: don't operate on an invalid file descriptor after failed dup
22689         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22690         negative file descriptor.
22691
22692 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22693
22694         savedir: add streamsavedir, deprecate fdsavedir
22695         * NEWS: Mention deprecation of fdsavedir.
22696         * lib/savedir.c (streamsavedir): New extern function, whose name
22697         ends in "savedir" to be consistent with the others.  This differs
22698         from savedirstream in that it doesn't close its argument.  The
22699         next version of GNU tar will use this instead of fdsavedir, to
22700         avoid some race conditions and conserve file descriptors.
22701         (savedirstream): Reimplement as a wrapper around streamsavedir.
22702         (fdsavedir): Add a comment deprecating this function.  As far as
22703         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22704         * lib/savedir.h (streamsavedir): New decl.
22705         (fdsavedir): Add a comment deprecating this.
22706
22707 2010-09-10  Bruno Haible  <bruno@clisp.org>
22708
22709         langinfo: Fix last commit.
22710         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22711         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22713
22714 2010-09-10  Bruno Haible  <bruno@clisp.org>
22715
22716         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22717         * lib/progreloc.c (O_EXEC): Define fallback.
22718
22719 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22720
22721         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22722         * NEWS: Document recent changes to fcntl-h.
22723         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22724         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22725         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22726         Similarly for O_SEARCH; this last was already true, but not documented.
22727         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22728         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22729         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22730         Likewise.
22731         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22732         is zero, not whether it is defined.
22733         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22734         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22735         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22736
22737 2010-09-10  Bruno Haible  <bruno@clisp.org>
22738
22739         langinfo, nl_langinfo: Fix for IRIX 5.3.
22740         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22741         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22742         HAVE_LANGINFO_YESEXPR.
22743         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22744         HAVE_LANGINFO_YESEXPR.
22745         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22746         HAVE_LANGINFO_T_FMT_AMPM is 0.
22747         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22748         HAVE_LANGINFO_YESEXPR is 0.
22749         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22750         NOEXPR.
22751         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22752         * doc/posix-functions/nl_langinfo.texi: Likewise.
22753         Reported by Eric Blake.
22754
22755 2010-09-10  Bruno Haible  <bruno@clisp.org>
22756
22757         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22758         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22759         on FreeBSD 8.0 and OpenBSD 4.6.
22760         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22761         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22762         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22763         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22764         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22765         ac_includes_default.
22766         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22767
22768 2010-09-09  Eric Blake  <eblake@redhat.com>
22769
22770         strsignal: work around NetBSD bug
22771         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22772         * lib/string.in.h (includes): Likewise.
22773         * doc/posix-functions/strsignal.texi (strsignal): Document the
22774         bug.
22775         Reported by Nelson H. F. Beebe.
22776
22777         gnulib-tool: work with NetBSD /bin/sh
22778         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22779         (func_get_description, func_get_comment, func_get_status)
22780         (func_get_notice, func_get_applicability, func_get_filelist)
22781         (func_get_dependencies, func_get_autoconf_early_snippet)
22782         (func_get_autoconf_snippet, func_get_automake_snippet)
22783         (func_get_include_directive, func_get_link_directive)
22784         (func_get_license, func_get_maintainer, func_import): Avoid
22785         shell syntax errors from parsing syntax extensions.
22786
22787 2010-09-09  Bruno Haible  <bruno@clisp.org>
22788
22789         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22790         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22791         a reliable way to determine whether the 'alias' command works.
22792
22793 2010-09-08  Jim Meyering  <meyering@redhat.com>
22794
22795         init.sh: penalize a set-x-impaired shell; don't disqualify it
22796         * tests/init.sh: Too many shells corrupt application stderr when
22797         you set -x, so we can't afford to disqualify them, since at least
22798         on Irix-6.5, that would disqualify all bourne shells.
22799         Instead, use a two-pass approach.
22800         On the first pass, try to find a shell that meets the stricter
22801         condition that set -x does not corrupt stderr.
22802         If no shell meets the stricter condition, retest each candidate
22803         shell, but without that extra condition.  Finally, when
22804         VERBOSE=yes is requested and set -x might cause trouble, simply
22805         issue a warning and refrain from enabling debug output.
22806
22807 2010-09-08  Eric Blake  <eblake@redhat.com>
22808
22809         unsetenv: fix OpenBSD bug
22810         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22811         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22812         documentation.
22813         Reported by Jim Meyering.
22814
22815         strtod: work around IRIX 6.5 bug
22816         * lib/strtod.c (strtod): Reparse number on shorter string if
22817         exponent parse was invalid.
22818         * tests/test-strtod.c (main): Add check for "0x1p 2".
22819         Reported by Tom G. Christensen.
22820
22821         getopt: optimize previous patch
22822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22823         empty variable.  Speed up awk script.
22824         Reported by Paolo Bonzini.
22825
22826 2010-09-08  Jim Meyering  <meyering@redhat.com>
22827
22828         test.sh: disqualify shells for which set -x corrupts stderr
22829         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22830         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22831         appear in stderr output.  For example, this command:
22832             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22833         prints "P=1" on those two systems:
22834
22835 2010-09-08  Bruno Haible  <bruno@clisp.org>
22836
22837         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22838         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22839         commands, because some shells ignore redirections when there is an
22840         error in the command lookup.
22841         Reported by Eric Blake.
22842
22843 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22844
22845         * lib/regex.h: Fix a mention of `regex_compile' (should be
22846         `re_compile_pattern').
22847         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22848         (re_set_registers): Correct name of parameter in comment.
22849
22850         * doc/regex.texi: Add documentation for missing syntax flags.
22851         Remove commented-out documentation of defunct syntax option
22852         RE_NO_EMPTY_ALTS.
22853         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22854         Add documentation of re_set_registers.
22855         Document trick to re-use a pattern buffer by setting fastmap manually.
22856         Update documentation of struct re_pattern_buffer per public members.
22857         Uncomment documentation of equivalence class operators and
22858         collating symbol operators, since they are now implemented,
22859         Explain leftmost-longest matching in relation to alternatives.
22860         Tidy documentation of substring matching.
22861         Remove POSIX documentation, which is done better in
22862         glibc, and refer the reader there. Keep BSD API documentation, as
22863         that is not readily available elsewhere.
22864
22865 2010-09-07  Eric Blake  <eblake@redhat.com>
22866
22867         getopt: handle POSIXLY_CORRECT set but not exported
22868         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22869         export state of POSIXLY_CORRECT, due to bash set -o posix.
22870         Reported by Dustin J. Mitchell.
22871
22872 2010-09-05  Bruno Haible  <bruno@clisp.org>
22873
22874         gnulib-tool: Highlight the changed options.
22875         * gnulib-tool (func_usage): Display the --import, --add-import,
22876         --remove-import explanations in bold font.
22877
22878 2010-09-06  Karl Berry  <karl@gnu.org>
22879
22880         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22881
22882 2010-09-05  Bruno Haible  <bruno@clisp.org>
22883
22884         uniwidth/width: Update comment.
22885         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22886         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22887
22888 2010-09-05  Bruno Haible  <bruno@clisp.org>
22889
22890         isinf, isnan: Relax license.
22891         * modules/isinf (License): Change from GPL to LGPL, with consent from
22892         Ben Pfaff.
22893         * modules/isnan (License): Likewise.
22894         Requested by Ludovic Courtès.
22895
22896 2010-09-04  Bruno Haible  <bruno@clisp.org>
22897
22898         gnulib-tool: Help migration from --import to --add-import or --update.
22899         * gnulib-tool: Emit a verbose error message when --import is used
22900         without any module name.
22901
22902 2010-09-04  Bruno Haible  <bruno@clisp.org>
22903
22904         Update doc about gnulib-tool.
22905         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22906         'gnulib-tool --update' in more detail.
22907         Reported by Eric Blake.
22908
22909 2010-09-04  Bruno Haible  <bruno@clisp.org>
22910
22911         gnulib-tool: Change --import. New options --add/remove-import.
22912         * gnulib-tool: New options --add-import, --remove-import.
22913         (func_usage): Document them.
22914         (have_associative): Define always.
22915         (func_import): In import mode, don't merge the specified settings with
22916         the cached settings. Implement remove-import mode.
22917         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22918         Explain when to use them versus --import.
22919         (Simple update): Use --add-import instead of --import.
22920         * NEWS: Mention the change.
22921
22922 2010-09-04  Bruno Haible  <bruno@clisp.org>
22923
22924         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22925         separate gnulib.mk.
22926
22927 2010-09-04  Bruno Haible  <bruno@clisp.org>
22928
22929         gnulib-tool: Don't talk about CVS any more.
22930         * gnulib-tool (func_usage, func_import): Write "version control"
22931         instead of CVS.
22932
22933 2010-09-04  Jim Meyering  <meyering@redhat.com>
22934
22935         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22936         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22937         false positives (whose names may be ill-chosen) when searching
22938         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22939         would cause a false-positive.
22940
22941         avoid coreutils "make distcheck" failure
22942         Coreutils tests with an absolute build directory name that contains
22943         a space.  Not quoting this directory name caused a failure.
22944         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22945         * tests/test-vc-list-files-cvs.sh: Likewise.
22946
22947 2010-09-04  Bruno Haible  <bruno@clisp.org>
22948
22949         gnulib-tool: Avoid error when run in a package without Makefile.am.
22950         * gnulib-tool: When collecting the m4dirs in a package that does not
22951         have a Makefile.am, eliminate those directories that contain no
22952         gnulib-cache.m4. Fix expression that counts these directories.
22953
22954 2010-09-04  Bruno Haible  <bruno@clisp.org>
22955
22956         update-copyright test: Improve output when perl is missing or too old.
22957         * tests/test-update-copyright.sh: Move test of Perl version down after
22958         the test whether Perl exists. Provide an explanation relating Perl's
22959         error message to Automake's SKIP: message.
22960
22961 2010-09-04  Bruno Haible  <bruno@clisp.org>
22962
22963         Don't augment PATH in TESTS_ENVIRONMENT.
22964         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22965         set abs_aux_dir instead of augmenting PATH.
22966         * modules/vc-list-files-tests (Makefile.am): Likewise.
22967         * tests/test-update-copyright.sh: Augment PATH here.
22968         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22969         path_prepend_.
22970         * tests/test-vc-list-files-git.sh: Likewise.
22971
22972 2010-09-04  Jim Meyering  <meyering@redhat.com>
22973
22974         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22975         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22976
22977 2010-09-04  Bruno Haible  <bruno@clisp.org>
22978
22979         strdup: Fix compilation error in C++ mode.
22980         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22981         the macro.
22982
22983 2010-09-04  Bruno Haible  <bruno@clisp.org>
22984
22985         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22986         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22987         macro into a function.
22988         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22989
22990 2010-09-04  Bruno Haible  <bruno@clisp.org>
22991
22992         Set PATH_SEPARATOR the same way autoconf does.
22993         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22994         the value of PATH_SEPARATOR the same way autoconf-generated configure
22995         scripts do.
22996         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22997         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22998
22999 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23000
23001         Set PATH_SEPARATOR the same way autoconf does.
23002         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
23003         the same way autoconf-generated configure scripts do.
23004         * posix-modules: Likewise.
23005
23006 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23007
23008         hash: fix safe_hasher const typo
23009         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
23010         const; otherwise, there is a type error later.
23011
23012 2010-09-02  Jim Meyering  <meyering@redhat.com>
23013
23014         test-update-copyright.sh: require perl 5.8.0
23015         * tests/test-update-copyright.sh: Require 5.8.0,
23016         which Tom G. Christensen has confirmed is adequate,
23017         while 5.6.1 is not.
23018
23019 2010-09-02  Eric Blake  <eblake@redhat.com>
23020
23021         tests: init.sh improvements for re-exec'ing with zsh
23022         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23023         -vx through shell re-exec.
23024         Reported by Tom G. Christensen.
23025
23026         wctype: fix typo in previous commit
23027         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23028         Reported by Ludovic Courtès.
23029
23030 2010-09-02  Jim Meyering  <meyering@redhat.com>
23031
23032         test-update-copyright.sh: skip test if Perl is too old
23033         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23034         Reported by Tom G. Christensen.
23035
23036 2010-09-02  Bruno Haible  <bruno@clisp.org>
23037
23038         wctype: Avoid compilation error on IRIX 6.5.30.
23039         * lib/wctype.in.h (iswblank): Declare with a replacement if
23040         REPLACE_ISWBLANK is set.
23041         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23042         declared. Set REPLACE_ISWBLANK.
23043         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23044         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23045         * doc/posix-headers/wctype.texi: Likewise.
23046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23047
23048 2010-09-01  Bruno Haible  <bruno@clisp.org>
23049
23050         New module 'socketlib'.
23051         * modules/socketlib: New file.
23052         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23053         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23054         * modules/sockets (Depends-on): Add socketlib.
23055         Suggested by Sam Steingold <sds@gnu.org>.
23056
23057 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23058
23059         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23060
23061         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23062         when one needs search access to a directory but not read access.
23063         On systems where it is available, it works in some cases where
23064         O_RDONLY does not, namely on directories that are searchable but
23065         not readable, and which need only to be searchable.  If O_SEARCH
23066         is not available, fall back to the traditional method of using
23067         O_RDONLY.
23068
23069         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23070         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23071         when opening a directory that needs only to be searchable.
23072         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23073         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23074         * lib/openat-proc.c (openat_proc_name): Likewise.
23075         * lib/openat.c (openat_needs_fchdir): Likewise.
23076         * lib/save-cwd.c (save_cwd): Likewise.
23077         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23078
23079 2010-08-28  Bruno Haible  <bruno@clisp.org>
23080
23081         New module 'host-cpu-c-abi'.
23082         * modules/host-cpu-c-abi: New file.
23083         * m4/host-cpu-c-abi.m4: New file, based on part of
23084         clisp/src/m4/general.m4.
23085         Requested by Sam Steingold <sds@gnu.org>.
23086
23087 2010-08-31  Eric Blake  <eblake@redhat.com>
23088         and Jim Meyering  <meyering@redhat.com>
23089
23090         hash: factor, and guard against misbehaving hasher function
23091         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23092         of table->hasher's return value.  Also protect against a hash value
23093         so large that adding it to table->bucket results in a NULL pointer.
23094         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23095         Use it in place of open-coded check-and-abort.
23096
23097 2010-08-30  Bruno Haible  <bruno@clisp.org>
23098
23099         hash: silence spurious clang warning
23100         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23101         Reported by Eric Blake.
23102
23103 2010-08-30  Eric Blake  <eblake@redhat.com>
23104
23105         strstr, memmem, strcasestr: avoid leaked shell message
23106         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23107         FreeBSD.
23108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23109         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23110
23111         tests: silence clang warning
23112         * tests/test-malloca.c (do_allocation): Avoid dead store.
23113
23114 2010-08-29  Bruno Haible  <bruno@clisp.org>
23115
23116         gettext: Fix recent mistake.
23117         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23118
23119 2010-08-29  Bruno Haible  <bruno@clisp.org>
23120
23121         selinux-h: Offer a --without-selinux option.
23122         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23123         --without-selinux was specified, skip all tests and define
23124         HAVE_SELINUX_SELINUX_H to 0.
23125         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23126         set LIB_SELINUX to empty.
23127         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23128         gl_LIBSELINUX. If --without-selinux was specified, replace
23129         selinux/context.h.
23130         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23131
23132 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23133             Bruno Haible  <bruno@clisp.org>
23134
23135         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23136         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23137         of HAVE_REALLOC.
23138         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23139         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23140         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23141         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23142
23143 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23144             Bruno Haible  <bruno@clisp.org>
23145
23146         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23147         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23148         HAVE_CALLOC.
23149         * lib/xmalloc.c: Update accordingly.
23150         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23151         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23152         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23153
23154 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23155             Bruno Haible  <bruno@clisp.org>
23156
23157         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23158         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23159         HAVE_MALLOC.
23160         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23161         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23162         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23163
23164 2010-08-29  Bruno Haible  <bruno@clisp.org>
23165
23166         Update modules list.
23167         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23168         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23169         (String handling <string.h>): Add astrxfrm.
23170         (File system functions): Add readlinkat.
23171
23172 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23173
23174         Tests for module 'realloc-gnu'.
23175         * modules/realloc-gnu-tests: New file.
23176         * tests/test-realloc-gnu.c: New file.
23177
23178         Tests for module 'calloc-gnu'.
23179         * modules/calloc-gnu-tests: New file.
23180         * tests/test-calloc-gnu.c: New file.
23181
23182         Tests for module 'malloc-gnu'.
23183         * modules/malloc-gnu-tests: New file.
23184         * tests/test-malloc-gnu.c: New file.
23185
23186 2010-08-28  Bruno Haible  <bruno@clisp.org>
23187
23188         Rename module 'realloc' -> 'realloc-gnu'.
23189         * modules/realloc-gnu: New file, copied from modules/realloc.
23190         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23191         obsolete.
23192         * modules/mgetgroups (Depends-on): Update.
23193         * doc/posix-functions/realloc.texi: Update.
23194         * NEWS: Mention the change.
23195
23196         Rename module 'calloc' -> 'calloc-gnu'.
23197         * modules/calloc-gnu: New file, copied from modules/calloc.
23198         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23199         obsolete.
23200         * doc/posix-functions/calloc.texi: Update.
23201         * NEWS: Mention the change.
23202
23203         Rename module 'malloc' -> 'malloc-gnu'.
23204         * modules/malloc-gnu: New file, copied from modules/malloc.
23205         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23206         obsolete.
23207         * modules/argp (Depends-on): Update.
23208         * modules/regex (Depends-on): Update.
23209         * doc/posix-functions/malloc.texi: Update.
23210         * NEWS: Mention the change.
23211
23212 2010-08-28  Eric Blake  <eblake@redhat.com>
23213
23214         pread, pwrite: add missing dependency
23215         * modules/pread (Depends-on): Add extensions.
23216         * modules/pwrite (Depends-on): Likewise.
23217
23218 2010-08-28  Bruno Haible  <bruno@clisp.org>
23219
23220         unistr/u*-strchr: Fix tests dependencies.
23221         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23222         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23223         Reported by Ian Beckwith <ianb@erislabs.net>.
23224
23225 2010-08-28  Bruno Haible  <bruno@clisp.org>
23226
23227         read-file: Don't occupy too much unused memory.
23228         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23229
23230 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23231             Eric Blake  <eblake@redhat.com>
23232             Bruno Haible  <bruno@clisp.org>
23233
23234         read-file: Avoid memory reallocations with regular files.
23235         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23236         (fread_file): With regular files, use the remaining length as the
23237         initial buffer size.  Check against overflow.
23238         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23239         sys_stat.
23240
23241 2010-08-28  Bruno Haible  <bruno@clisp.org>
23242
23243         ftello: Relax license.
23244         * modules/ftello (License): Relax to LGPLv2+.
23245         Reported by Eric Blake.
23246
23247 2010-08-28  Bruno Haible  <bruno@clisp.org>
23248
23249         Avoid relocwrapper link errors due to gnulib replacement functions.
23250         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23251         function.
23252         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23253
23254 2010-08-28  Bruno Haible  <bruno@clisp.org>
23255
23256         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23257         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23258         defined.
23259         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23260         Suggested by Eric Blake.
23261
23262 2010-08-28  Bruno Haible  <bruno@clisp.org>
23263
23264         sys_socket, netdb: Ensure socklen_t gets defined.
23265         * modules/sys_socket (Depends-on): Add socklen.
23266         * modules/netdb (Depends-on): Likewise.
23267         * modules/getaddrinfo (Depends-on): Remove socklen.
23268         * modules/getsockopt (Depends-on): Likewise.
23269         * modules/setsockopt (Depends-on): Likewise.
23270         * tests/test-sys_socket.c: Check that socklen_t is defined.
23271         * tests/test-netdb.c: Likewise.
23272         * m4/socklen.m4: Update comments.
23273         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23274
23275 2010-08-27  Eric Blake  <eblake@redhat.com>
23276
23277         login_tty: add missing dependency
23278         * modules/login_tty (Depends-on): Add pty.
23279
23280 2010-08-26  Eric Blake  <eblake@redhat.com>
23281
23282         lib-symbol-versions: fix m4 quoting
23283         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23284         format for AC_LINK_IFELSE.
23285
23286         glob: fix compile test
23287         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23288
23289         btowc: fix missing file
23290         * modules/btowc (Files): Also ship locale-fr.m4.
23291
23292         lseek: fix link test
23293         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23294         AC_LINK_IFELSE.
23295
23296         include_next: silence autoconf 2.68 warning
23297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23298         AC_COMPILE_IFELSE as special.
23299         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23300         autoconf < 2.68.
23301
23302         acl: fix compilation test
23303         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23304         AC_COMPILE_IFELSE.
23305
23306 2010-08-26  Bruno Haible  <bruno@clisp.org>
23307
23308         Modernize AC_TRY_RUN invocations.
23309         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23310         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23311         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23312         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23313         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23314         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23317         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23318         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23319         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23320         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23321         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23322         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23323         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23324         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23325         gl_MBRLEN_NUL_RETVAL): Likewise.
23326         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23327         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23328         Likewise.
23329         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23330         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23331         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23332         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23333         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23334         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23335         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23336         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23337         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23338         Likewise.
23339         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23340         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23342         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23343         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23344         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23345         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23346         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23347         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23349
23350 2010-08-26  Bruno Haible  <bruno@clisp.org>
23351
23352         Modernize AC_TRY_LINK invocations.
23353         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23354         AC_TRY_LINK.
23355         * m4/argp.m4 (gl_ARGP): Likewise.
23356         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23357         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23358         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23359         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23360         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23361         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23362         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23363         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23364         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23365         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23366         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23367         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23368         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23369         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23370         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23371         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23372         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23373         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23374         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23375         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23376         Likewise.
23377         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23378         Likewise.
23379         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23380         Likewise.
23381         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23382         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23383         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23384         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23385         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23386         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23387         * m4/servent.m4 (gl_SERVENT): Likewise.
23388         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23389         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23390         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23391         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23392         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23393         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23394         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23395         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23396         * modules/tsearch-tests (configure.ac): Likewise.
23397
23398 2010-08-26  Bruno Haible  <bruno@clisp.org>
23399
23400         Modernize AC_TRY_COMPILE invocations.
23401         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23402         AC_TRY_COMPILE.
23403         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23404         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23405         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23406         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23407         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23408         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23409         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23410         * m4/lock.m4 (gl_LOCK): Likewise.
23411         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23412         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23413         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23414         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23415         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23416         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23417         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23418         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23419         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23420         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23421         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23422         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23423         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23424         extraneous semicolon.
23425
23426 2010-08-26  Jim Meyering  <meyering@redhat.com>
23427
23428         stat-time: relax license LGPL
23429         * modules/stat-time (License): Change from GPL to LGPL,
23430         with consent from all contributors, for use in libguile.
23431         Requested by Ludovic Courtès.
23432
23433 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23434
23435         poll: return immediately on POLLHUP.
23436         * lib/poll.c (poll): Always set timeout before wait_timeout is
23437         computed.
23438
23439 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23440
23441         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23442         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23443         rmdir ("dir/.//"), unlinkat.
23444
23445 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23446
23447         stdbool: avoid spurious failure with modern xlc
23448         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23449
23450 2010-08-24  Bruno Haible  <bruno@clisp.org>
23451
23452         getloadavg: simplify code
23453         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23454         gl_have_func. Update comments.
23455
23456 2010-08-24  Eric Blake  <eblake@redhat.com>
23457
23458         getloadavg: don't define SVR4 on cygwin
23459         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23460         only define SVR4 when -lkvm is required.
23461         Reported by Yaakov Selkowitz.
23462
23463 2010-08-24  Bruno Haible  <bruno@clisp.org>
23464
23465         priv-set: fix comment
23466         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23467
23468 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23469
23470         priv-set: fix comments
23471         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23472         to match code, as suggested by David Bartley in:
23473         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23474
23475 2010-08-23  Eric Blake  <eblake@redhat.com>
23476
23477         stdbool: avoid rejecting clang
23478         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23479         * tests/test-stdbool.c: Enable more tests if using the system
23480         <stdbool.h> instead of the gnulib replacement.
23481         (main): Move xlc bug test to a runtime test for all compilers.
23482         Reported by Anders Kaseorg.
23483
23484         argz: fix shell quoting issue
23485         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23486         Reported by Charles Wilson.
23487
23488 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23489             Erik Faye-Lund <kusmabite@gmail.com>
23490
23491         poll, select: handle ERROR_BROKEN_PIPE.
23492         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23493         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23494         * lib/select.c (win32_compute_revents): Do not mark a pipe
23495         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23496
23497 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23498
23499         fts: allow compilation with C++
23500         * lib/fts_.h: Specify extern "C" linkage with C++.
23501
23502 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23503
23504         Fix gnulib-tool sed script de-commentation for AIX sed.
23505         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23506         sed.
23507
23508 2010-08-17  Eric Blake  <eblake@redhat.com>
23509
23510         test-stddef: test for (some) offsetof bugs
23511         * tests/test-stddef.c: Enhance test to ensure correct type of
23512         offsetof.
23513         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23514         that we are not fixing at this time.
23515
23516 2010-08-15  Bruno Haible  <bruno@clisp.org>
23517
23518         stpncpy: Allow stpncpy to be defined as a macro.
23519         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23520         if it's already correctly declared.
23521         * lib/string.in.h (stpncpy): Undefine before redefining.
23522         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23523
23524 2010-08-14  Bruno Haible  <bruno@clisp.org>
23525
23526         Rename module 'memxfrm' to 'amemxfrm'.
23527         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23528         (amemxfrm): Renamed from memxfrm.
23529         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23530         (amemxfrm): Renamed from memxfrm.
23531         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23532         * NEWS: Mention the change.
23533         * MODULES.html.sh (String handling <string.h>): Update.
23534         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23535         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23536         * lib/unicase/u16-casexfrm.c: Likewise.
23537         * lib/unicase/u32-casexfrm.c: Likewise.
23538         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23539         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23540         * lib/uninorm/u16-normxfrm.c: Likewise.
23541         * lib/uninorm/u32-normxfrm.c: Likewise.
23542         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23543         memxfrm.
23544         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23545         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23546         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23547         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23548         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23549         Suggested by Paul Eggert.
23550
23551 2010-08-14  Bruno Haible  <bruno@clisp.org>
23552
23553         Tests for module 'astrxfrm'.
23554         * modules/astrxfrm-tests: New file.
23555         * tests/test-astrxfrm.c: New file.
23556
23557         New module 'astrxfrm'.
23558         * lib/astrxfrm.h: New file.
23559         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23560         * modules/astrxfrm: New file.
23561
23562 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23563
23564         regex: Tweak doc.
23565         * doc/regex.texi (Overview): Don't mention regex.c.
23566         (GNU Regular Expression Compiling): Likewise.
23567         (Match-end-of-line Operator): Mention 'not_eol'.
23568
23569 2010-08-14  Brian Gough  <bjg@gnu.org>
23570             Bruno Haible  <bruno@clisp.org>
23571
23572         git-merge-changelog: add doc relating to use with bzr and hg.
23573         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23574
23575 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23576
23577         pthread: fix pthread.h creation for srcdir != builddir
23578         * modules/pthread (Makefile.am): Fix the rule to work also in a
23579         non-srcdir build.
23580
23581 2010-08-13  Karl Berry  <karl@gnu.org>
23582
23583         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23584         * doc/posix-*/*: force line break before @url of POSIX
23585         specifications.
23586         Suggested by Werner Lemberg.
23587
23588 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23589
23590         strtod: fix const diagnostic
23591         * lib/strtod.c (strtod): Don't assign const char * to char *,
23592         as this elicits a warning from GCC when warnings are enabled.
23593
23594 2010-08-10  Pádraig Brady <P@draigbrady.com>
23595         and Eric Blake  <eblake@redhat.com>
23596
23597         copy-acl: ignore ENOTSUP on HP-UX
23598         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23599         so that it is available for HP-UX.
23600         * lib/copy-acl.c (qcopy_acl): Use it.
23601         Reported by Patrick M. Callahan.
23602
23603 2010-08-10  Eric Blake  <eblake@redhat.com>
23604
23605         open, chown: relax license
23606         * modules/open (License): Change to LGPLv2+, with consent by all
23607         authors, for use in augeas.
23608         * modules/chown (License): Likewise.
23609         * modules/lchown (Likewise): Likewise.
23610         Requested by Adam Stokes.
23611
23612 2010-08-09  Karl Berry  <karl@gnu.org>
23613
23614         * build-aux/ar-lib: new file, import from Automake.
23615         * config/srclist.txt: autocheck for updates.
23616
23617 2010-08-09  Eric Blake  <eblake@redhat.com>
23618
23619         readlinkat: adjust client modules
23620         * modules/areadlinkat (Depends-on): Use readlinkat, not
23621         symlinkat.
23622         * modules/areadlinkat-with-size (Depends-on): Likewise.
23623
23624         mknod: be more vocal about danger of running tests as root
23625         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23626         root, since that is just asking for problems.
23627         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23628
23629         readlinkat: split into its own module
23630         * modules/symlinkat: Split readlinkat...
23631         * modules/readlinkat: ...into separate module.
23632         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23633         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23634         * lib/symlinkat.c (readlinkat): Move...
23635         * lib/readlinkat.c: ...into new file.
23636         * modules/symlinkat-tests: Split readlinkat test...
23637         * modules/readlinkat-tests: ...into separate module.
23638         * tests/test-symlinkat.c: Split...
23639         * tests/test-readlinkat.c: ...into new file.
23640         * NEWS: Document the split.
23641         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23642         * lib/unistd.in.h (readlinkat): Likewise.
23643         Suggested by Bruno Haible.
23644
23645 2010-08-08  Bruno Haible  <bruno@clisp.org>
23646
23647         memxfrm: Speed up.
23648         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23649         that usually only one call to strxfrm is necessary for each string
23650         part.
23651         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23652
23653 2010-08-07  Karl Berry  <karl@gnu.org>
23654
23655         * doc/posix-headers/limits.texi,
23656         * doc/posix-functions/malloc.texi,
23657         * doc/posix-functions/strsignal.texi: missing @item.
23658         * doc/ld-version-script.texi: spurious leading i.
23659         * doc/regex.texi (Interval Operators): no commas inside @var.
23660
23661 2010-08-01  Bruno Haible  <bruno@clisp.org>
23662
23663         Integrate the regex documentation.
23664         * doc/gnulib.texi: Define 'cn' index.
23665         (Regular expressions): New a chapter that includes regex.texi and
23666         regexprops-generic.texi.
23667         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23668         syntax.
23669
23670         Whitespace cleanup.
23671         * doc/regex.texi: Remove trailing spaces.
23672
23673         Add regex documentation.
23674         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23675         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23676         Written by Kathy A. Hargreaves and Karl Berry.
23677
23678 2010-08-01  Bruno Haible  <bruno@clisp.org>
23679
23680         link: Update documentation.
23681         * doc/posix-functions/link.texi: Update regarding Solaris.
23682
23683 2010-07-31  Bruno Haible  <bruno@clisp.org>
23684
23685         Update modules list.
23686         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23687         (String handling <string.h>): Add memcmp2, memxfrm.
23688         (Container data structures): Add xlist, xsublist, xoset.
23689         (Core language properties): Add alignof, unused-parameter.
23690         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23691         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23692         (Unibyte characters <ctype.h>): New section.
23693         (String handling <string.h>): New section.
23694         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23695         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23696         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23697         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23698         tan, tanh, tanl, y0, y1, yn.
23699         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23700         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23701         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23702         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23703         unlockpt, vdprintf, vdprintf-posix.
23704         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23705         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23706         xconcat-filename.
23707         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23708         getdtablesize, pipe2, pipe2-safer.
23709         (Security): New section.
23710         (Networking functions): Add accept4.
23711         (Signal handling): Add sigpipe.
23712         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23713         mbmemcasecoll.
23714         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23715         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23716         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23717         pipe-filter-ii.
23718         (Misc): Add argp-version-etc, login_tty, parse-duration.
23719
23720 2010-07-31  Bruno Haible  <bruno@clisp.org>
23721
23722         Improve doc in MODULES.html.
23723         * modules/linkat (Description): Add the word "function".
23724         * modules/mkfifo (Description): Likewise.
23725         * modules/mknod (Description): Likewise.
23726         * modules/remove (Description): Likewise.
23727         * modules/renameat (Description): Likewise.
23728         * modules/stat (Description): Likewise.
23729         * modules/symlink (Description): Likewise.
23730         * modules/unlink (Description): Likewise.
23731
23732 2010-07-31  Bruno Haible  <bruno@clisp.org>
23733
23734         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23735         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23736         option --enable/disable-c++ instead of --enable/disable-cxx.
23737         * NEWS: Mention the change.
23738
23739 2010-07-31  Bruno Haible  <bruno@clisp.org>
23740
23741         readlink, areadlink: Relax test a bit.
23742         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23743         alternative to ENOTDIR.
23744         * tests/test-areadlink.h (test_areadlink): Likewise.
23745         Reported by Rainer Tammer.
23746
23747 2010-07-31  Bruno Haible  <bruno@clisp.org>
23748
23749         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23750         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23751         character, perform the search using U_STRCHR.
23752         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23753         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23754         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23755         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23756         Suggested by Paolo Bonzini.
23757
23758 2010-07-31  Bruno Haible  <bruno@clisp.org>
23759
23760         unistr/u*-strstr: Fix dependencies.
23761         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23762         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23763         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23764
23765 2010-07-31  Bruno Haible  <bruno@clisp.org>
23766
23767         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23768         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23769         the beginning of the loop.
23770         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23771         cases in 'switch' statement.
23772
23773         unistr/u8-strchr: Fix several bugs.
23774         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23775         the string. When not found, return NULL, not a pointer near the end.
23776
23777         More tests for unistr/u8-strchr.
23778         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23779         that the function does not read past the first occurrence of the byte
23780         being searched.
23781         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23782         * tests/unistr/test-u16-strchr.c (main): New function.
23783         * tests/unistr/test-u32-strchr.c (main): New function.
23784
23785 2010-07-31  Bruno Haible  <bruno@clisp.org>
23786
23787         posix-modules: Ignore backup files of documentation files.
23788         * posix-modules: grep only through files named *.texi.
23789
23790 2010-07-31  Bruno Haible  <bruno@clisp.org>
23791
23792         symlinkat: Fix documentation.
23793         * doc/posix-functions/readlinkat.texi: Fix module name.
23794
23795 2010-07-31  Bruno Haible  <bruno@clisp.org>
23796
23797         fchownat: Replace also when chown has the trailing slash bug.
23798         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23799         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23800         introduced on 2010-04-10.
23801         Reported by Rainer Tammer.
23802
23803 2010-07-31  Bruno Haible  <bruno@clisp.org>
23804
23805         linkat: Work around AIX 7.1 bug.
23806         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23807         whether linkat handles trailing slash correctly. If not, replace linkat
23808         and define LINKAT_TRAILING_SLASH_BUG.
23809         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23810         check whether (fd1,file1) points to a directory if file1 or file2 ends
23811         in a slash. Code taken from lib/link.c.
23812         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23813         Reported by Rainer Tammer.
23814
23815 2010-07-31  Bruno Haible  <bruno@clisp.org>
23816
23817         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23818         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23819         This disables an xlc optimization that was causing wrong test results.
23820         Reported by Rainer Tammer.
23821
23822 2010-07-31  Bruno Haible  <bruno@clisp.org>
23823
23824         iconv: Work around AIX 6.1..7.1 bug.
23825         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23826         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23827         cross-compiling, guess no on all versions of AIX.
23828         Reported by Rainer Tammer.
23829
23830 2010-07-31  Bruno Haible  <bruno@clisp.org>
23831
23832         readlink: Relax test a bit.
23833         * tests/test-readlink.h (test_readlink): Allow different errno value
23834         when readlink is called with a file name that ends in / and refers to
23835         a file.
23836         Suggested by Eric Blake.
23837         Reported by Rainer Tammer.
23838
23839 2010-07-31  Bruno Haible  <bruno@clisp.org>
23840
23841         copysign: Does not require -lm on glibc systems.
23842         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23843         gl_COMMON_DOUBLE_MATHFUNC.
23844         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23845
23846 2010-07-31  Bruno Haible  <bruno@clisp.org>
23847
23848         duplocale: Work around AIX 7.1 bug.
23849         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23850         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23851         * lib/duplocale.c (rpl_duplocale): Update comment.
23852         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23853         Reported by Rainer Tammer.
23854
23855 2010-07-30  Bruno Haible  <bruno@clisp.org>
23856
23857         dirfd: Avoid link error on AIX 7.1.
23858         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23859         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23860         exist, set REPLACE_DIRFD.
23861         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23862         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23863         * doc/posix-functions/dirfd.texi: Update.
23864         Reported by Rainer Tammer.
23865
23866 2010-07-30  Eric Blake  <eblake@redhat.com>
23867
23868         strtod: next round of AIX fixes
23869         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23870         exponent.
23871         * tests/test-strtod.c (main): Enhance tests.
23872         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23873         Reported by Rainer Tammer.
23874
23875         futimens: fix configure check
23876         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23877         Reported by Bruno Haible.
23878
23879 2010-07-30  Bruno Haible  <bruno@clisp.org>
23880
23881         getline: Update regarding AIX.
23882         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23883         Reported by Rainer Tammer.
23884
23885 2010-07-30  Bruno Haible  <bruno@clisp.org>
23886
23887         wcwidth: Drop replacement on AIX 7.
23888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23889         AIX 7.
23890         Reported by Rainer Tammer.
23891
23892 2010-07-30  Bruno Haible  <bruno@clisp.org>
23893
23894         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23895         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23896         a 'char *'.
23897         Reported by Rainer Tammer.
23898
23899 2010-07-30  Bruno Haible  <bruno@clisp.org>
23900
23901         unlink: Update regarding AIX.
23902         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23903         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23904         Reported by Rainer Tammer.
23905
23906 2010-07-30  Bruno Haible  <bruno@clisp.org>
23907
23908         symlink: Update regarding AIX.
23909         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23910         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23911         Reported by Rainer Tammer.
23912
23913 2010-07-30  Bruno Haible  <bruno@clisp.org>
23914
23915         strndup: Update regarding AIX.
23916         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23917         AIX 7.
23918         Reported by Rainer Tammer.
23919
23920 2010-07-30  Bruno Haible  <bruno@clisp.org>
23921
23922         stat: Update regarding AIX.
23923         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23924         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23925         Reported by Rainer Tammer.
23926
23927 2010-07-30  Bruno Haible  <bruno@clisp.org>
23928
23929         truncl: Fix autoconf test.
23930         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23931         whether truncl works.
23932         Reported by Rainer Tammer.
23933
23934 2010-07-30  Bruno Haible  <bruno@clisp.org>
23935
23936         round: Update regarding AIX.
23937         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23938         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23939         Reported by Rainer Tammer.
23940
23941 2010-07-30  Bruno Haible  <bruno@clisp.org>
23942
23943         rename: Update regarding AIX.
23944         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23945         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23946         Reported by Rainer Tammer.
23947
23948 2010-07-30  Bruno Haible  <bruno@clisp.org>
23949
23950         printf.m4: Update regarding AIX.
23951         * m4/printf.m4: Update comments regarding AIX.
23952         Reported by Rainer Tammer.
23953
23954 2010-07-30  Bruno Haible  <bruno@clisp.org>
23955
23956         iconv: Update regarding AIX.
23957         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23958         AIX 7.
23959         Reported by Rainer Tammer.
23960
23961 2010-07-30  Bruno Haible  <bruno@clisp.org>
23962
23963         getopt: Update regarding AIX.
23964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23965         no on AIX.
23966         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23967         Reported by Rainer Tammer.
23968
23969 2010-07-30  Bruno Haible  <bruno@clisp.org>
23970
23971         ldexpl; Update regarding AIX.
23972         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23973         on AIX 7.
23974         Reported by Rainer Tammer.
23975
23976 2010-07-30  Bruno Haible  <bruno@clisp.org>
23977
23978         frexpl: Update regarding AIX.
23979         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23980         on AIX 7.
23981         Reported by Rainer Tammer.
23982
23983 2010-07-30  Bruno Haible  <bruno@clisp.org>
23984
23985         open, fopen: Update regarding AIX.
23986         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23987         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23988         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23989         * doc/posix-functions/fopen.texi: Likewise.
23990         Reported by Rainer Tammer.
23991
23992 2010-07-30  Bruno Haible  <bruno@clisp.org>
23993
23994         chown: Update doc regarding AIX.
23995         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23996         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23997         Reported by Rainer Tammer.
23998
23999 2010-07-30  Eric Blake  <eblake@redhat.com>
24000
24001         strtod: fix bug in replacement function on AIX
24002         * lib/strtod.c (strtod): Special case broken "0x" parse in
24003         underlying strtod.
24004         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
24005         * doc/posix-functions/strtod.texi (strtod): Likewise.
24006         Reported by Rainer Tammer.
24007
24008 2010-07-30  Bruno Haible  <bruno@clisp.org>
24009
24010         mbrlen: Fix cross-compilation guess for AIX.
24011         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
24012         guess. Leftover from 2008-12-22.
24013
24014 2010-07-30  Bruno Haible  <bruno@clisp.org>
24015
24016         mbrtowc: Fix cross-compilation guess for AIX.
24017         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24018         guess. Leftover from 2008-12-21.
24019
24020 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24021
24022         init.sh: work around trap limitation of some shells
24023         * tests/init.sh (setup_): Move exit trap outside of shell function.
24024
24025 2010-07-29  Eric Blake  <eblake@redhat.com>
24026
24027         strtod: aid debugging
24028         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24029         understanding why strtod is rejected.
24030
24031 2010-07-28  Bruno Haible  <bruno@clisp.org>
24032
24033         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24034         * lib/unistr/u8-chr.c: Include <string.h>.
24035         * tests/unistr/test-u8-chr.c: Likewise.
24036         * tests/unistr/test-u16-chr.c: Likewise.
24037         * tests/unistr/test-u32-chr.c: Likewise.
24038         * tests/unistr/test-u8-strchr.c: Likewise.
24039         * tests/unistr/test-u16-strchr.c: Likewise.
24040         * tests/unistr/test-u32-strchr.c: Likewise.
24041         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24042         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24043         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24044         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24045
24046 2010-07-28  Bruno Haible  <bruno@clisp.org>
24047
24048         Use spaces for indentation, not tabs.
24049         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24050
24051 2010-07-27  Bruno Haible  <bruno@clisp.org>
24052
24053         mbspcasecmp: Fix function specification.
24054         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24055         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24056         Reported by Eric Blake <eblake@redhat.com>.
24057
24058 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24059
24060         timespec: use cast and not conditional, as truncation isn't possible
24061         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24062         instead of a conditional.  Comment about the situation in more detail.
24063         This undoes most of the 2009-10-29 patch.
24064
24065 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24066
24067         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24068         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24069         * lib/unistr/u8-strchr.c: Likewise.
24070         * modules/unistr/u8-chr: Depend on memchr.
24071
24072         unistr/u*-strchr: add tests
24073         * modules/unistr/u8-strchr-tests: New file.
24074         * modules/unistr/u16-strchr-tests: New file.
24075         * modules/unistr/u32-strchr-tests: New file.
24076         * tests/unistr/test-strchr.h: New file.
24077         * tests/unistr/test-u8-strchr.c: New file.
24078         * tests/unistr/test-u16-strchr.c: New file.
24079         * tests/unistr/test-u32-strchr.c: New file.
24080
24081         unistr/u*-chr: test multibyte sequences more
24082         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24083         test vector.
24084         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24085         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24086         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24087
24088         unistr/u*-chr: test multibyte sequences
24089         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24090
24091         unistr/u*-chr: prepare for multibyte tests
24092         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24093         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24094         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24095         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24096         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24097         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24098
24099 2010-07-18  Bruno Haible  <bruno@clisp.org>
24100
24101         unistr/u8-strchr: Optimize non-ASCII argument case.
24102         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24103         because the first byte often matches anyway.
24104         Reported by Pádraig Brady <P@draigbrady.com>.
24105
24106 2010-07-15  Karl Berry  <karl@gnu.org>
24107
24108         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24109
24110 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24111
24112         getcwd: on Solaris, work better if ancestors are inaccessible
24113         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24114         buffer and size, try again with a large buffer.  This works better
24115         on Solaris, since its getcwd succeeds even if the path to the root
24116         is inaccessible, and this is helpful in common cases such as .zfs
24117         hidden directories.  Problem reported by J Chapman Flack in
24118         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24119         Use system getcwd if it's declared, not merely if it's partly
24120         working; use the partly-working test only to avoid needless effort
24121         if the system getcwd fails.
24122         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24123         comment that was already obsolete and is now even more obsolete.
24124         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24125         now might call strdup.
24126
24127 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24128
24129         pthread: Add enough so that coreutils/src/sort.c compiles.
24130         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24131         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24132         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24133         Include <sys/types.h>, in case it defines pthread_t.
24134         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24135         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24136         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24137         (pthread_rwlockattr_t, pthread_spinlock_t):
24138         New typedefs, if HAVE_PTHREAD_T is not defined.
24139         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24140         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24141         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24142         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24143         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24144         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24145         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24146         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24147         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24148         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24149         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24150         New macros.
24151         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24152         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24153         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24154         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24155         (pthread_spin_unlock): New dummy functions.
24156         (pthread_create): Return EAGAIN; don't set errno.
24157         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24158         require AC_C_INLINE.
24159         * modules/pthread (Depends-on): Add sched, time.
24160         (pthread.h): Use AM_V_GEN.
24161
24162 2010-07-13  Bruno Haible  <bruno@clisp.org>
24163
24164         striconveh: Don't malloc memory if the result buffer is sufficient.
24165         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24166         buffer if its size is sufficient.
24167         Reported by Ludovic Courtès <ludo@gnu.org>.
24168
24169 2010-07-13  Bruno Haible  <bruno@clisp.org>
24170
24171         strtod: Add safety check.
24172         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24173
24174 2010-07-12  Bruno Haible  <bruno@clisp.org>
24175
24176         Unify tests that set gl_cv_func_ldexpl_no_libm.
24177         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24178         gl_FUNC_LDEXPL.
24179         (gl_FUNC_LDEXPL): Invoke it.
24180         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24181
24182 2010-07-12  Bruno Haible  <bruno@clisp.org>
24183
24184         Unify tests that set gl_cv_func_ldexp_no_libm.
24185         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24186         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24187         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24188         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24189         * modules/strtod (Files): Add m4/ldexp.m4.
24190
24191 2010-07-12  Bruno Haible  <bruno@clisp.org>
24192
24193         Unify tests that set gl_cv_func_frexpl_no_libm.
24194         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24195         gl_FUNC_FREXPL_NO_LIBM.
24196         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24197         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24198
24199 2010-07-12  Bruno Haible  <bruno@clisp.org>
24200
24201         Unify tests that set gl_cv_func_frexp_no_libm.
24202         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24203         gl_FUNC_FREXP_NO_LIBM.
24204         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24205         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24206
24207 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24208
24209         memcoll: clarify sizes versus lengths, document better, and tweak perf
24210         * lib/memcoll.c (strcoll_loop, memcoll0):
24211         Improve quality of descriptive comments.  Name variables
24212         consistently as to whether they are lengths (which do not include
24213         terminating null) versus sizes (which do).
24214         * lib/xmemcoll.c (xmemcoll0): Likewise.
24215         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24216         returned when s1size == 0; this is easier to compile and saves
24217         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24218
24219 2010-07-12  Bruno Haible  <bruno@clisp.org>
24220
24221         Tests for module '_Exit'.
24222         * modules/_Exit-tests: New file.
24223         * tests/test-_Exit.sh: New file.
24224         * tests/test-_Exit.c: New file.
24225
24226         New module '_Exit'.
24227         * lib/stdlib.in.h (__attribute__): New macro.
24228         (_Exit): New declaration.
24229         * lib/_Exit.c: New file.
24230         * m4/_Exit.m4: New file.
24231         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24232         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24233         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24234         * modules/_Exit: New file.
24235         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24236         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24237
24238 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24239
24240         strtod: make it more-accurate typically, and don't require libm
24241         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24242         Include limits.h.  Don't include string.h.
24243         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24244         (locale_isspace): New function, so that no casts are needed to
24245         check whether *s is a space.
24246         (ldexp): Provide an unused dummy if not available.
24247         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24248         (strtod): Use them.  This implementation prefers to use the
24249         underlying strtod if available, falling back on our own code
24250         only to fix known bugs.  This is more likely to produce an
24251         accurate result.  Also, it avoids the use of libm functions.
24252         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24253         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24254         was absent, but it caused a test failure with coreutils.
24255         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24256         with libm.
24257         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24258         * modules/strtod-tests (Makefile.am): Likewise.
24259
24260 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24261             Bruno Haible  <bruno@clisp.org>
24262
24263         unistr/u8-strchr: Optimize ASCII argument case.
24264         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24265
24266 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24267
24268         (x)memcoll: minor tweaks
24269         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24270         is after the type that it qualifies.
24271         (memcoll0): Likewise.
24272         * lib/memcoll.h (memcoll0): Likewise.
24273         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24274         * lib/xmemcoll.h (xmemcoll0): Likewise.
24275         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24276         differs from memcoll in that the NUL byte is part of the argument.
24277         Omit the abort-checks, as performance is a real issue here.  Plus,
24278         the checks were wrong anyway (an off-by-one error).  Omit local
24279         variable 'diff', as it's a bit clearer that way.
24280         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24281         no longer needed.
24282
24283 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24284
24285         (x)memcoll: speedup when input is known to be NUL delimited
24286         * lib/memcoll.c: Include stdlib.
24287         (memcoll0): New function.
24288         (strcoll_loop): New function, refactored for use in both memcoll
24289         and memcoll0.
24290         * lib/memcoll.h (memcoll0): Add prototype.
24291         * lib/xmemcoll.c (xmemcoll0): New function.
24292         (collate_error): New function, refactored for use in both xmemcoll
24293         and xmemcoll0.
24294         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24295         * m4/memcoll.m4: add inline invocation.
24296
24297 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24298
24299         * build-aux/bootstrap: Remove any local translations
24300         from the translation project synchronization directory,
24301         so that local only translations are not distributed.
24302
24303 2010-07-04  Bruno Haible  <bruno@clisp.org>
24304
24305         fsusage: Clarify which code applies to which platforms.
24306         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24307         platform.
24308         * lib/fsusage.c (get_fs_usage): Likewise.
24309
24310 2010-07-04  Bruno Haible  <bruno@clisp.org>
24311
24312         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24313         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24314         Reported by Martin Lambers <marlam@marlam.de>.
24315
24316 2010-07-04  Jim Meyering  <meyering@redhat.com>
24317
24318         hash: once again explicitly disallow insertion of NULL
24319         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24320         inserting a NULL pointer cannot work with these functions.
24321         Add a comment with details.
24322         This reverts part of the 2010-07-01 commit, 5bef1a35
24323         "hash: extend module to deal with non-pointer keys".
24324
24325 2010-07-01  Bruno Haible  <bruno@clisp.org>
24326
24327         stdbool: Update doc.
24328         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24329         Info from Christian Weisgerber <naddy@mips.inka.de>.
24330
24331 2010-07-01  Jim Meyering  <meyering@redhat.com>
24332
24333         hash: extend module to deal with non-pointer keys
24334         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24335         but that allows insertion of non-pointer entries.
24336         Do not disallow an ENTRY value of NULL.
24337         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24338         * lib/hash.h (hash_insert0): Declare.
24339
24340 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24341
24342         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24343         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24344         not present (i.e. with autoconf 2.59 and when using gettextize, not
24345         gnulib), require AC_GNU_SOURCE instead.
24346
24347 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24348
24349         idpriv-drop: Fix tests.
24350         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24351         not to the test-idpriv-droptemp program.
24352
24353 2010-06-29  Bruno Haible  <bruno@clisp.org>
24354
24355         string: Fix syntax error with g++ 2.96.
24356         * lib/string.in.h (__pure__): Remove definition.
24357         (_GL_ATTRIBUTE_PURE): New macro.
24358         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24359         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24360         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24361
24362 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24363
24364         unitypes: Fix bug introduced on 2010-05-18.
24365         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24366
24367 2010-06-22  Eric Blake  <eblake@redhat.com>
24368
24369         memmem: slight optimization
24370         * lib/str-two-way.h (critical_factorization): Update comments.
24371         Reduce work during factorization phase.
24372         Reported by Carlos Bueno <carlos@bueno.org>.
24373
24374 2010-06-21  Bruno Haible  <bruno@clisp.org>
24375
24376         Fix HAVE_CALLOC_POSIX misnomer.
24377         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24378         !HAVE_CALLOC_POSIX.
24379         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24380         HAVE_CALLOC_POSIX.
24381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24382         instead of HAVE_CALLOC_POSIX.
24383         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24384         HAVE_CALLOC_POSIX.
24385
24386         Use modern idiom for calloc() replacement.
24387         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24388         AC_FUNC_CALLOC.
24389         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24390         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24391         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24392         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24393         (gl_REPLACE_CALLOC): New macro.
24394
24395 2010-06-21  Bruno Haible  <bruno@clisp.org>
24396
24397         Fix HAVE_REALLOC_POSIX misnomer.
24398         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24399         !HAVE_REALLOC_POSIX.
24400         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24401         HAVE_REALLOC_POSIX.
24402         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24403         instead of HAVE_REALLOC_POSIX.
24404         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24405         HAVE_REALLOC_POSIX.
24406
24407         Use modern idiom for realloc() replacement.
24408         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24409         AC_FUNC_REALLOC.
24410         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24411         Autoconf's AC_FUNC_REALLOC.
24412         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24413         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24414         (gl_REPLACE_REALLOC): New macro.
24415         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24416
24417 2010-06-21  Bruno Haible  <bruno@clisp.org>
24418
24419         Fix HAVE_MALLOC_POSIX misnomer.
24420         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24421         !HAVE_MALLOC_POSIX.
24422         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24423         HAVE_MALLOC_POSIX.
24424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24425         instead of HAVE_MALLOC_POSIX.
24426         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24427         HAVE_MALLOC_POSIX.
24428
24429         Use modern idiom for malloc() replacement.
24430         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24431         AC_FUNC_MALLOC.
24432         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24433         Autoconf's AC_FUNC_MALLOC.
24434         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24435         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24436         (gl_REPLACE_MALLOC): New macro.
24437         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24438
24439 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24440
24441         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24442         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24443         This macro takes 3 arguments, not 4.
24444
24445 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24446
24447         ipv6: fix detection under mingw
24448         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24449         in6_addr.
24450
24451 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24452
24453         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24454         that strtod() works when cross-compiling to a glibc version known
24455         to work.
24456
24457 2010-06-15  Bruno Haible  <bruno@clisp.org>
24458
24459         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24460
24461 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24462
24463         select: Correct timeout.
24464         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24465
24466 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24467
24468         git-version-gen: init shell var to avoid env var influence
24469         * build-aux/git-version-gen (v): Init shell var to empty.
24470
24471 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24472
24473         priv-set: Don't assume that priv.h exists merely because getppriv does.
24474         See Jan Andersen's bug report about AIX 5L in
24475         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24476         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24477         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24478         * lib/priv-set.h: Likewise.
24479         * tests/test-priv-set.c: Likewise.
24480
24481 2010-06-13  Bruno Haible  <bruno@clisp.org>
24482
24483         relocatable: Make it easier to test whether to install wrappers.
24484         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24485         RELOCATABLE_VIA_WRAPPER.
24486
24487 2010-06-13  Bruno Haible  <bruno@clisp.org>
24488
24489         gnulib-tool: Display specified modules and dependencies differently.
24490         * gnulib-tool (func_show_module_list): New function.
24491         (func_import, func_create_testdir): Invoke it.
24492         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24493
24494 2010-06-13  Bruno Haible  <bruno@clisp.org>
24495
24496         gnulib-tool: Align code of func_import and func_create_testdir.
24497         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24498         specified_modules.
24499
24500 2010-06-12  Jim Meyering  <meyering@redhat.com>
24501
24502         test-inttostr: avoid spurious failure on Solaris 9
24503         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24504         to accept "%ju".  Reported by Bruno Haible.
24505
24506 2010-06-11  Jim Meyering  <meyering@redhat.com>
24507
24508         test-sys_socket: mark variables as used more readably
24509         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24510         as "used" explicitly via (void) statement casts.  This is more
24511         readable than using them in an artificial return expression.
24512         Suggestion from Bruno Haible.
24513
24514 2010-06-11  Bruno Haible  <bruno@clisp.org>
24515
24516         Avoid some more warnings from "gcc -Wwrite-strings".
24517         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24518         to 'const char *'.
24519         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24520         * tests/test-c-strcasestr.c (main): Likewise.
24521         * tests/test-mbscasestr1.c (main): Likewise.
24522         * tests/test-mbscasestr2.c (main): Likewise.
24523         * tests/test-memmem.c (main): Likewise.
24524         * tests/test-strstr.c (main): Likewise.
24525         * tests/test-strcasestr.c (main): Likewise.
24526
24527 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24528
24529         init.sh: change framework_failure_ to fail with status 99, not 1
24530         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24531         automake's parallel-tests rule that this is an unexpected failure,
24532         even if the test is listed in XFAIL_TESTS.
24533
24534 2010-06-11  Jim Meyering  <meyering@redhat.com>
24535
24536         test-inttostr: avoid warnings about 4-6KB literal strings
24537         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24538         Include "macros.h", for its definition of ASSERT.
24539         (CK): s/assert/ASSERT/
24540         * modules/inttostr-tests (Files): Add macros.h.
24541
24542         init.sh: don't use $ME_ or skip_ before they are defined
24543         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24544         their first uses.  Also hoist their companions: warn_, fail_,
24545         framework_failure_, $stderr_fileno.  Prompted by a patch from
24546         Stefano Lattarini.
24547
24548         test-sys_socket: avoid set-but-not-used warnings from gcc
24549         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24550         avoid warning about set-but-not-used variables.
24551
24552         test-xvasprintf: avoid 'const' discard warnings
24553         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24554         "const" when assigning from literal strings.
24555         (test_xasprintf): Add "void" in function argument list to placate
24556         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24557
24558         tests: avoid compilation warnings in argmatch and exclude tests...
24559         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24560         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24561         Since it always exits, declare with the "noreturn" attribute.
24562         * tests/test-argmatch.c: Likewise.
24563
24564         tests: avoid 'const' discard warnings in mbsstr tests
24565         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24566         * tests/test-mbsstr2.c (main): Likewise.
24567
24568         test-verify: avoid warning from gcc's -Wmissing-declarations
24569         * tests/test-verify.c (function): Declare to be static.
24570
24571         test-inttostr.c: include <string.h> for use of strcmp
24572         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24573
24574         test-linkat: avoid failed assertion on "other" architectures
24575         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24576         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24577         sparc: https://bugs.launchpad.net/bugs/591968
24578
24579 2010-06-11  Jim Meyering  <meyering@redhat.com>
24580
24581         printf.m4: avoid autoconf's "Expanded Before Required" warning
24582         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24583         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24584         autoconf warning.
24585
24586 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24587
24588         Replacement header templates are now named with ".in", not "_".
24589         * doc/gnulib-intro.texi: Correct.
24590
24591 2010-06-10  Jim Meyering  <meyering@redhat.com>
24592
24593         inttostr-tests: depend on snprintf, not snprintf-posix
24594         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24595         snprintf-posix, to avoid this aclocal failure:
24596           missing file gnulib-tests/vasnprintf.c
24597           configure.ac:45: error: expected source file, required through \
24598           AC_LIBSOURCES, not found
24599
24600 2010-06-10  Jim Meyering  <meyering@redhat.com>
24601
24602         inttostr: add a new function, inttostr, and tests
24603         The namesake function was not available.  The existence of the
24604         template file, inttostr.c makes its addition nontrivial.
24605         * lib/anytostr.c: Rename from inttostr.c.
24606         (anytostr): Rename from inttostr.
24607         * lib/inttostr.c: New file.
24608         * modules/inttostr (Files): Add anytostr.c.
24609         (Makefile.am): Set lib_SOURCES instead of ...
24610         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24611         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24612         * lib/offtostr.c: Likewise.
24613         * lib/uinttostr.c: Likewise.
24614         * lib/umaxtostr.c: Likewise.
24615         * modules/inttostr-tests: New file.
24616         * tests/test-inttostr.c: New file.  Test these functions.
24617
24618 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24619             Bruno Haible  <bruno@clisp.org>
24620
24621         Add "Extending Gnulib" chapter to manual.
24622         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24623         chapter.
24624         (Extending Gnulib): New chapter.
24625         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24626         chapter.
24627
24628 2010-06-09  Bruno Haible  <bruno@clisp.org>
24629
24630         Avoid relocwrapper link errors due to gnulib replacement functions.
24631         * lib/areadlink.c: Use the system's malloc, realloc functions.
24632         (areadlink): Set errno to ENOMEM explicitly.
24633         * modules/areadlink (Depends-on): Remove malloc-posix.
24634         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24635
24636 2010-06-09  Bruno Haible  <bruno@clisp.org>
24637
24638         Avoid relocwrapper link errors due to gnulib replacement functions.
24639         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24640         * lib/malloca.c: Likewise.
24641         * lib/relocatable.c: Likewise.
24642         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24643         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24644         * lib/setenv.c: Use the system's malloc, realloc functions.
24645         * lib/strerror.c: Use the system's sprintf function.
24646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24647
24648 2010-06-04  Bruno Haible  <bruno@clisp.org>
24649
24650         Prefer documented low-level autoconf macro names.
24651         * m4/lib-link.m4: Use m4_translit instead of translit.
24652         * m4/environ.m4: Likewise.
24653         * m4/mathfunc.m4: Likewise.
24654         * m4/onceonly.m4: Likewise.
24655         * m4/stdint.m4: Likewise.
24656         Suggested by Eric Blake.
24657
24658 2010-06-04  Martin Lambers  <marlam@marlam.de>
24659             Bruno Haible  <bruno@clisp.org>
24660
24661         havelib: Allow library names with '+' characters.
24662         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24663         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24664
24665 2010-06-09  Bruno Haible  <bruno@clisp.org>
24666
24667         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24668         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24669         realloc failed.
24670
24671 2010-06-08  Peter Simons  <simons@cryp.to>
24672
24673         maint.mk: make the news-check rule more configurable
24674         * top/maint.mk (news-check-lines-spec): New variable.
24675         (news-check): Use "sed -n 1,10p" in place of "head".
24676
24677 2010-06-07  Jim Meyering  <meyering@redhat.com>
24678
24679         do-release-commit-and-tag: fix typo in --help
24680         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24681
24682         regex: avoid new dead-code warning with gcc-4.6.0
24683         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24684         if-block containing a while-loop.  It's been unused for at least
24685         5 years.
24686
24687 2010-06-05  Bruno Haible  <bruno@clisp.org>
24688
24689         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24690         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24691
24692 2010-06-04  Bruno Haible  <bruno@clisp.org>
24693
24694         Update to GNU gettext 0.18.1.
24695         * modules/gettext (configure.ac): Require gettext infrastructure from
24696         version 0.18.1.
24697
24698 2010-06-03  Bruno Haible  <bruno@clisp.org>
24699
24700         Don't use AC_LIBOBJ with file names in subdirectories.
24701         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24702         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24703         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24704         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24705         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24706         gl_LIBUNISTRING_LIBSOURCE.
24707         (Makefile.am): Augment lib_SOURCES here, conditionally.
24708         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24709
24710 2010-06-03  Bruno Haible  <bruno@clisp.org>
24711
24712         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24713         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24714         expansion does not end with a newline.
24715         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24716         unnecessary newline.
24717
24718 2010-06-03  Bruno Haible  <bruno@clisp.org>
24719
24720         Reduce dependencies.
24721         * tests/test-quotearg.h: New file, extracted from
24722         tests/test-quotearg.c.
24723         * tests/test-quotearg-simple.c: New file, extracted from
24724         tests/test-quotearg.c.
24725         * tests/test-quotearg.c: Don't include <ctype.h>.
24726         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24727         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24728         use_quote_double_quotes, use_quotearg_colon): Moved to
24729         tests/test-quotearg.h.
24730         (results_g, flag_results, custom_quotes, custom_results): Moved
24731         to tests/test-quotearg-simple.c.
24732         (main): Moved the part that does not depend on gettext to
24733         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24734         performed.
24735         * modules/quotearg-simple: New file.
24736         * modules/quotearg-simple-tests: New file.
24737         * modules/quotearg (Depends-on): Add quotearg-simple.
24738         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24739         (Files): Add tests/test-quotearg.h.
24740         Reported by Paolo Bonzini.
24741
24742 2010-06-03  Bruno Haible  <bruno@clisp.org>
24743
24744         Reduce dependencies.
24745         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24746
24747 2010-06-03  Bruno Haible  <bruno@clisp.org>
24748
24749         time: Undefine more broken macros.
24750         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24751         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24752         Reported by Eric Blake.
24753
24754 2010-06-03  Bruno Haible  <bruno@clisp.org>
24755
24756         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24757         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24758         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24759         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24760         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24761         Reported by Ludovic Courtès <ludo@gnu.org>.
24762
24763 2010-06-02  Eric Blake  <eblake@redhat.com>
24764
24765         time: work with mingw + pthreads-win32 library
24766         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24767         if timespec is defined only in pthread.h.
24768         * modules/time (Makefile.am): Substitute it.
24769         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24770         <pthread.h>, when needed.
24771         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24772         from the library.
24773
24774 2010-05-31  Bruno Haible  <bruno@clisp.org>
24775
24776         Avoid expanding two macros in the wrong order.
24777         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24778         gl_LIBUNISTRING if it is defined.
24779         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24780         autoconf >= 2.64.
24781         Reported by Ludovic Courtès <ludo@gnu.org>.
24782
24783 2010-05-27  Jim Meyering  <meyering@redhat.com>
24784
24785         maint.mk: also prohibit "#undef" of always-defined symbols
24786         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24787         Allow more than one space before the symbol name.
24788         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24789         the regexp uses alternation.
24790
24791 2010-05-26  Eric Blake  <eblake@redhat.com>
24792
24793         maint.mk: avoid echo -e
24794         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24795         Convert all uses of echo -* to printf.
24796         Reported by Matthias Bolte.
24797
24798 2010-05-25  Bruno Haible  <bruno@clisp.org>
24799
24800         Update to GNU gettext 0.18, part 2.
24801         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24802         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24803
24804 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24805
24806         Add missing include in test-pwrite.c.
24807         * tests/test-pwrite.c: Include string.h, for strcmp.
24808
24809 2010-05-24  Bruno Haible  <bruno@clisp.org>
24810
24811         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24812
24813 2010-05-24  Bruno Haible  <bruno@clisp.org>
24814
24815         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24816         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24817         iconveh_error argument.
24818         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24819         U_STRCONV_TO_LOCALE.
24820         * lib/unistr/u16-strcoll.c: Likewise.
24821         * lib/unistr/u32-strcoll.c: Likewise.
24822         * modules/unistr/u8-strcoll (Depends-on): Add
24823         uniconv/u8-strconv-to-enc, localcharset. Remove
24824         uniconv/u8-strconv-to-locale.
24825         (configure.ac): Bump version number.
24826         * modules/unistr/u16-strcoll (Depends-on): Add
24827         uniconv/u16-strconv-to-enc, localcharset. Remove
24828         uniconv/u16-strconv-to-locale.
24829         (configure.ac): Bump version number.
24830         * modules/unistr/u32-strcoll (Depends-on): Add
24831         uniconv/u32-strconv-to-enc, localcharset. Remove
24832         uniconv/u32-strconv-to-locale.
24833         (configure.ac): Bump version number.
24834
24835 2010-05-24  Bruno Haible  <bruno@clisp.org>
24836
24837         Avoid a test failure on NetBSD 5.0.
24838         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24839         an iconv() bug.
24840
24841 2010-05-24  Bruno Haible  <bruno@clisp.org>
24842
24843         Adjust #include directive style.
24844         * modules/regex (Includes): Recommend to write <regex.h>.
24845
24846 2010-05-24  Bruno Haible  <bruno@clisp.org>
24847
24848         regex: Don't require alloca.
24849         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24850         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24851         only inside if (0).
24852
24853 2010-05-23  Jim Meyering  <meyering@redhat.com>
24854
24855         test-renameat.c: include <sys/stat.h>
24856         * tests/test-renameat.c: Include <sys/stat.h>; required for
24857         definition of S_IS* macros.
24858
24859 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24860
24861         Update maintainer documentation for 'relocatable-prog' module.
24862         * doc/relocatable-maint.texi: Update.
24863         Comments by Bruno Haible.
24864
24865 2010-05-23  Bruno Haible  <bruno@clisp.org>
24866
24867         git-merge-changelog: Enable --split-merged-entry by default.
24868         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24869         (usage): Don't mention this option any more.
24870         Reported by Ralf Wildenhues.
24871
24872 2010-05-23  Jim Meyering  <meyering@redhat.com>
24873
24874         test-pwrite: do not leave behind a test file named "out"
24875         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24876         The trivial-looking use of init.sh is really necessary.
24877         It ensures that the temporary file, "out", is created in
24878         a temporary directory, and removed upon termination.
24879         * tests/test-pwrite.sh: Re-add file.
24880         * modules/pwrite-tests: Reference it.
24881
24882 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24883
24884         Fix output redirection buglet in init.sh.
24885         * tests/init.sh: Fix redirection of stderr.
24886
24887 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24888
24889         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24890
24891 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24892
24893         * modules/valgrind-tests: New file.
24894         * m4/valgrind-tests.m4: New file.
24895         * doc/valgrind-tests.texi: New file.
24896         * doc/gnulib.texi (Running self-tests under valgrind): New
24897         section.
24898
24899 2010-05-19  Bruno Haible  <bruno@clisp.org>
24900
24901         Clean up dead code in recent commit.
24902         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24903         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24904         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24905         Suggested by Paolo Bonzini.
24906
24907 2010-05-19  Bruno Haible  <bruno@clisp.org>
24908
24909         Avoid valgrind error reports from libunistring.
24910         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24911         * modules/libunistring (Files): Add it.
24912         * modules/libunistring-optional (Files): Likewise.
24913
24914 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24915             Bruno Haible  <bruno@clisp.org>
24916
24917         New module 'libunistring-optional'.
24918         * modules/libunistring-optional: New file.
24919         * m4/libunistring-base.m4: New file.
24920         * m4/libunistring-optional.m4: New file.
24921         * lib/unicase.in.h: Renamed from lib/unicase.h.
24922         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24923         * lib/unictype.in.h: Renamed from lib/unictype.h.
24924         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24925         * lib/uniname.in.h: Renamed from lib/uniname.h.
24926         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24927         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24928         * lib/unistr.in.h: Renamed from lib/unistr.h.
24929         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24930         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24931         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24932         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24933         gl_LIBUNISTRING. If the library was found, determine the installed
24934         version and set LIBUNISTRING_VERSION.
24935         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24936         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24937         handle a configuration option --with-included-libunistring.
24938         * modules/libunistring (Files): Add m4/absolute-header.m4.
24939         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24940         Add m4/libunistring-base.m4.
24941         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24942         (Makefile.am): Build unicase.h from unicase.in.h.
24943         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24944         Add m4/libunistring-base.m4.
24945         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24946         (Makefile.am): Build uniconv.h from uniconv.in.h.
24947         * modules/unictype/base (Files): Use unictype.in.h instead of
24948         unictype.h. Add m4/libunistring-base.m4.
24949         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24950         (Makefile.am): Build unictype.h from unictype.in.h.
24951         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24952         Add m4/libunistring-base.m4.
24953         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24954         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24955         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24956         Add m4/libunistring-base.m4.
24957         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24958         (Makefile.am): Build uniname.h from uniname.in.h.
24959         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24960         Add m4/libunistring-base.m4.
24961         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24962         (Makefile.am): Build uninorm.h from uninorm.in.h.
24963         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24964         unistdio.h. Add m4/libunistring-base.m4.
24965         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24966         (Makefile.am): Build unistdio.h from unistdio.in.h.
24967         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24968         Add m4/libunistring-base.m4.
24969         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24970         (Makefile.am): Build unistr.h from unistr.in.h.
24971         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24972         Add m4/libunistring-base.m4.
24973         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24974         (Makefile.am): Build unitypes.h from unitypes.in.h.
24975         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24976         Add m4/libunistring-base.m4.
24977         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24978         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24979         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24980         uniwidth.h. Add m4/libunistring-base.m4.
24981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24982         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24983         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24984         instead of augmenting lib_SOURCES.
24985         * modules/unicase/empty-suffix-context: Likewise.
24986         * modules/unicase/locale-language: Likewise.
24987         * modules/unicase/tolower: Likewise.
24988         * modules/unicase/totitle: Likewise.
24989         * modules/unicase/toupper: Likewise.
24990         * modules/unicase/u8-casecmp: Likewise.
24991         * modules/unicase/u8-casecoll: Likewise.
24992         * modules/unicase/u8-casefold: Likewise.
24993         * modules/unicase/u8-casexfrm: Likewise.
24994         * modules/unicase/u8-ct-casefold: Likewise.
24995         * modules/unicase/u8-ct-tolower: Likewise.
24996         * modules/unicase/u8-ct-totitle: Likewise.
24997         * modules/unicase/u8-ct-toupper: Likewise.
24998         * modules/unicase/u8-is-cased: Likewise.
24999         * modules/unicase/u8-is-casefolded: Likewise.
25000         * modules/unicase/u8-is-lowercase: Likewise.
25001         * modules/unicase/u8-is-titlecase: Likewise.
25002         * modules/unicase/u8-is-uppercase: Likewise.
25003         * modules/unicase/u8-prefix-context: Likewise.
25004         * modules/unicase/u8-suffix-context: Likewise.
25005         * modules/unicase/u8-tolower: Likewise.
25006         * modules/unicase/u8-totitle: Likewise.
25007         * modules/unicase/u8-toupper: Likewise.
25008         * modules/unicase/u16-casecmp: Likewise.
25009         * modules/unicase/u16-casecoll: Likewise.
25010         * modules/unicase/u16-casefold: Likewise.
25011         * modules/unicase/u16-casexfrm: Likewise.
25012         * modules/unicase/u16-ct-casefold: Likewise.
25013         * modules/unicase/u16-ct-tolower: Likewise.
25014         * modules/unicase/u16-ct-totitle: Likewise.
25015         * modules/unicase/u16-ct-toupper: Likewise.
25016         * modules/unicase/u16-is-cased: Likewise.
25017         * modules/unicase/u16-is-casefolded: Likewise.
25018         * modules/unicase/u16-is-lowercase: Likewise.
25019         * modules/unicase/u16-is-titlecase: Likewise.
25020         * modules/unicase/u16-is-uppercase: Likewise.
25021         * modules/unicase/u16-prefix-context: Likewise.
25022         * modules/unicase/u16-suffix-context: Likewise.
25023         * modules/unicase/u16-tolower: Likewise.
25024         * modules/unicase/u16-totitle: Likewise.
25025         * modules/unicase/u16-toupper: Likewise.
25026         * modules/unicase/u32-casecmp: Likewise.
25027         * modules/unicase/u32-casecoll: Likewise.
25028         * modules/unicase/u32-casefold: Likewise.
25029         * modules/unicase/u32-casexfrm: Likewise.
25030         * modules/unicase/u32-ct-casefold: Likewise.
25031         * modules/unicase/u32-ct-tolower: Likewise.
25032         * modules/unicase/u32-ct-totitle: Likewise.
25033         * modules/unicase/u32-ct-toupper: Likewise.
25034         * modules/unicase/u32-is-cased: Likewise.
25035         * modules/unicase/u32-is-casefolded: Likewise.
25036         * modules/unicase/u32-is-lowercase: Likewise.
25037         * modules/unicase/u32-is-titlecase: Likewise.
25038         * modules/unicase/u32-is-uppercase: Likewise.
25039         * modules/unicase/u32-prefix-context: Likewise.
25040         * modules/unicase/u32-suffix-context: Likewise.
25041         * modules/unicase/u32-tolower: Likewise.
25042         * modules/unicase/u32-totitle: Likewise.
25043         * modules/unicase/u32-toupper: Likewise.
25044         * modules/unicase/ulc-casecmp: Likewise.
25045         * modules/unicase/ulc-casecoll: Likewise.
25046         * modules/unicase/ulc-casexfrm: Likewise.
25047         * modules/uniconv/u8-conv-from-enc: Likewise.
25048         * modules/uniconv/u8-conv-to-enc: Likewise.
25049         * modules/uniconv/u8-strconv-from-enc: Likewise.
25050         * modules/uniconv/u8-strconv-from-locale: Likewise.
25051         * modules/uniconv/u8-strconv-to-enc: Likewise.
25052         * modules/uniconv/u8-strconv-to-locale: Likewise.
25053         * modules/uniconv/u16-conv-from-enc: Likewise.
25054         * modules/uniconv/u16-conv-to-enc: Likewise.
25055         * modules/uniconv/u16-strconv-from-enc: Likewise.
25056         * modules/uniconv/u16-strconv-from-locale: Likewise.
25057         * modules/uniconv/u16-strconv-to-enc: Likewise.
25058         * modules/uniconv/u16-strconv-to-locale: Likewise.
25059         * modules/uniconv/u32-conv-from-enc: Likewise.
25060         * modules/uniconv/u32-conv-to-enc: Likewise.
25061         * modules/uniconv/u32-strconv-from-enc: Likewise.
25062         * modules/uniconv/u32-strconv-from-locale: Likewise.
25063         * modules/uniconv/u32-strconv-to-enc: Likewise.
25064         * modules/uniconv/u32-strconv-to-locale: Likewise.
25065         * modules/unictype/bidicategory-byname: Likewise.
25066         * modules/unictype/bidicategory-name: Likewise.
25067         * modules/unictype/bidicategory-of: Likewise.
25068         * modules/unictype/bidicategory-test: Likewise.
25069         * modules/unictype/block-list: Likewise.
25070         * modules/unictype/block-test: Likewise.
25071         * modules/unictype/category-C: Likewise.
25072         * modules/unictype/category-Cc: Likewise.
25073         * modules/unictype/category-Cf: Likewise.
25074         * modules/unictype/category-Cn: Likewise.
25075         * modules/unictype/category-Co: Likewise.
25076         * modules/unictype/category-Cs: Likewise.
25077         * modules/unictype/category-L: Likewise.
25078         * modules/unictype/category-Ll: Likewise.
25079         * modules/unictype/category-Lm: Likewise.
25080         * modules/unictype/category-Lo: Likewise.
25081         * modules/unictype/category-Lt: Likewise.
25082         * modules/unictype/category-Lu: Likewise.
25083         * modules/unictype/category-M: Likewise.
25084         * modules/unictype/category-Mc: Likewise.
25085         * modules/unictype/category-Me: Likewise.
25086         * modules/unictype/category-Mn: Likewise.
25087         * modules/unictype/category-N: Likewise.
25088         * modules/unictype/category-Nd: Likewise.
25089         * modules/unictype/category-Nl: Likewise.
25090         * modules/unictype/category-No: Likewise.
25091         * modules/unictype/category-P: Likewise.
25092         * modules/unictype/category-Pc: Likewise.
25093         * modules/unictype/category-Pd: Likewise.
25094         * modules/unictype/category-Pe: Likewise.
25095         * modules/unictype/category-Pf: Likewise.
25096         * modules/unictype/category-Pi: Likewise.
25097         * modules/unictype/category-Po: Likewise.
25098         * modules/unictype/category-Ps: Likewise.
25099         * modules/unictype/category-S: Likewise.
25100         * modules/unictype/category-Sc: Likewise.
25101         * modules/unictype/category-Sk: Likewise.
25102         * modules/unictype/category-Sm: Likewise.
25103         * modules/unictype/category-So: Likewise.
25104         * modules/unictype/category-Z: Likewise.
25105         * modules/unictype/category-Zl: Likewise.
25106         * modules/unictype/category-Zp: Likewise.
25107         * modules/unictype/category-Zs: Likewise.
25108         * modules/unictype/category-and: Likewise.
25109         * modules/unictype/category-and-not: Likewise.
25110         * modules/unictype/category-byname: Likewise.
25111         * modules/unictype/category-name: Likewise.
25112         * modules/unictype/category-none: Likewise.
25113         * modules/unictype/category-of: Likewise.
25114         * modules/unictype/category-or: Likewise.
25115         * modules/unictype/category-test: Likewise.
25116         * modules/unictype/combining-class: Likewise.
25117         * modules/unictype/ctype-alnum: Likewise.
25118         * modules/unictype/ctype-alpha: Likewise.
25119         * modules/unictype/ctype-blank: Likewise.
25120         * modules/unictype/ctype-cntrl: Likewise.
25121         * modules/unictype/ctype-digit: Likewise.
25122         * modules/unictype/ctype-graph: Likewise.
25123         * modules/unictype/ctype-lower: Likewise.
25124         * modules/unictype/ctype-print: Likewise.
25125         * modules/unictype/ctype-punct: Likewise.
25126         * modules/unictype/ctype-space: Likewise.
25127         * modules/unictype/ctype-upper: Likewise.
25128         * modules/unictype/ctype-xdigit: Likewise.
25129         * modules/unictype/decimal-digit: Likewise.
25130         * modules/unictype/digit: Likewise.
25131         * modules/unictype/mirror: Likewise.
25132         * modules/unictype/numeric: Likewise.
25133         * modules/unictype/property-alphabetic: Likewise.
25134         * modules/unictype/property-ascii-hex-digit: Likewise.
25135         * modules/unictype/property-bidi-arabic-digit: Likewise.
25136         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25137         * modules/unictype/property-bidi-block-separator: Likewise.
25138         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25139         * modules/unictype/property-bidi-common-separator: Likewise.
25140         * modules/unictype/property-bidi-control: Likewise.
25141         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25142         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25143         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25144         * modules/unictype/property-bidi-european-digit: Likewise.
25145         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25146         * modules/unictype/property-bidi-left-to-right: Likewise.
25147         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25148         * modules/unictype/property-bidi-other-neutral: Likewise.
25149         * modules/unictype/property-bidi-pdf: Likewise.
25150         * modules/unictype/property-bidi-segment-separator: Likewise.
25151         * modules/unictype/property-bidi-whitespace: Likewise.
25152         * modules/unictype/property-byname: Likewise.
25153         * modules/unictype/property-combining: Likewise.
25154         * modules/unictype/property-composite: Likewise.
25155         * modules/unictype/property-currency-symbol: Likewise.
25156         * modules/unictype/property-dash: Likewise.
25157         * modules/unictype/property-decimal-digit: Likewise.
25158         * modules/unictype/property-default-ignorable-code-point: Likewise.
25159         * modules/unictype/property-deprecated: Likewise.
25160         * modules/unictype/property-diacritic: Likewise.
25161         * modules/unictype/property-extender: Likewise.
25162         * modules/unictype/property-format-control: Likewise.
25163         * modules/unictype/property-grapheme-base: Likewise.
25164         * modules/unictype/property-grapheme-extend: Likewise.
25165         * modules/unictype/property-grapheme-link: Likewise.
25166         * modules/unictype/property-hex-digit: Likewise.
25167         * modules/unictype/property-hyphen: Likewise.
25168         * modules/unictype/property-id-continue: Likewise.
25169         * modules/unictype/property-id-start: Likewise.
25170         * modules/unictype/property-ideographic: Likewise.
25171         * modules/unictype/property-ids-binary-operator: Likewise.
25172         * modules/unictype/property-ids-trinary-operator: Likewise.
25173         * modules/unictype/property-ignorable-control: Likewise.
25174         * modules/unictype/property-iso-control: Likewise.
25175         * modules/unictype/property-join-control: Likewise.
25176         * modules/unictype/property-left-of-pair: Likewise.
25177         * modules/unictype/property-line-separator: Likewise.
25178         * modules/unictype/property-logical-order-exception: Likewise.
25179         * modules/unictype/property-lowercase: Likewise.
25180         * modules/unictype/property-math: Likewise.
25181         * modules/unictype/property-non-break: Likewise.
25182         * modules/unictype/property-not-a-character: Likewise.
25183         * modules/unictype/property-numeric: Likewise.
25184         * modules/unictype/property-other-alphabetic: Likewise.
25185         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25186         * modules/unictype/property-other-grapheme-extend: Likewise.
25187         * modules/unictype/property-other-id-continue: Likewise.
25188         * modules/unictype/property-other-id-start: Likewise.
25189         * modules/unictype/property-other-lowercase: Likewise.
25190         * modules/unictype/property-other-math: Likewise.
25191         * modules/unictype/property-other-uppercase: Likewise.
25192         * modules/unictype/property-paired-punctuation: Likewise.
25193         * modules/unictype/property-paragraph-separator: Likewise.
25194         * modules/unictype/property-pattern-syntax: Likewise.
25195         * modules/unictype/property-pattern-white-space: Likewise.
25196         * modules/unictype/property-private-use: Likewise.
25197         * modules/unictype/property-punctuation: Likewise.
25198         * modules/unictype/property-quotation-mark: Likewise.
25199         * modules/unictype/property-radical: Likewise.
25200         * modules/unictype/property-sentence-terminal: Likewise.
25201         * modules/unictype/property-soft-dotted: Likewise.
25202         * modules/unictype/property-space: Likewise.
25203         * modules/unictype/property-terminal-punctuation: Likewise.
25204         * modules/unictype/property-test: Likewise.
25205         * modules/unictype/property-titlecase: Likewise.
25206         * modules/unictype/property-unassigned-code-value: Likewise.
25207         * modules/unictype/property-unified-ideograph: Likewise.
25208         * modules/unictype/property-uppercase: Likewise.
25209         * modules/unictype/property-variation-selector: Likewise.
25210         * modules/unictype/property-white-space: Likewise.
25211         * modules/unictype/property-xid-continue: Likewise.
25212         * modules/unictype/property-xid-start: Likewise.
25213         * modules/unictype/property-zero-width: Likewise.
25214         * modules/unictype/scripts: Likewise.
25215         * modules/unictype/syntax-c-ident: Likewise.
25216         * modules/unictype/syntax-c-whitespace: Likewise.
25217         * modules/unictype/syntax-java-ident: Likewise.
25218         * modules/unictype/syntax-java-whitespace: Likewise.
25219         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25220         * modules/unilbrk/u8-width-linebreaks: Likewise.
25221         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25222         * modules/unilbrk/u16-width-linebreaks: Likewise.
25223         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25224         * modules/unilbrk/u32-width-linebreaks: Likewise.
25225         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25226         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25227         * modules/uniname/uniname: Likewise.
25228         * modules/uninorm/canonical-decomposition: Likewise.
25229         * modules/uninorm/composition: Likewise.
25230         * modules/uninorm/decomposing-form: Likewise.
25231         * modules/uninorm/decomposition: Likewise.
25232         * modules/uninorm/filter: Likewise.
25233         * modules/uninorm/nfc: Likewise.
25234         * modules/uninorm/nfd: Likewise.
25235         * modules/uninorm/nfkc: Likewise.
25236         * modules/uninorm/nfkd: Likewise.
25237         * modules/uninorm/u8-normalize: Likewise.
25238         * modules/uninorm/u8-normcmp: Likewise.
25239         * modules/uninorm/u8-normcoll: Likewise.
25240         * modules/uninorm/u8-normxfrm: Likewise.
25241         * modules/uninorm/u16-normalize: Likewise.
25242         * modules/uninorm/u16-normcmp: Likewise.
25243         * modules/uninorm/u16-normcoll: Likewise.
25244         * modules/uninorm/u16-normxfrm: Likewise.
25245         * modules/uninorm/u32-normalize: Likewise.
25246         * modules/uninorm/u32-normcmp: Likewise.
25247         * modules/uninorm/u32-normcoll: Likewise.
25248         * modules/uninorm/u32-normxfrm: Likewise.
25249         * modules/unistdio/u8-asnprintf: Likewise.
25250         * modules/unistdio/u8-asprintf: Likewise.
25251         * modules/unistdio/u8-snprintf: Likewise.
25252         * modules/unistdio/u8-sprintf: Likewise.
25253         * modules/unistdio/u8-u8-asnprintf: Likewise.
25254         * modules/unistdio/u8-u8-asprintf: Likewise.
25255         * modules/unistdio/u8-u8-snprintf: Likewise.
25256         * modules/unistdio/u8-u8-sprintf: Likewise.
25257         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25258         * modules/unistdio/u8-u8-vasprintf: Likewise.
25259         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25260         * modules/unistdio/u8-u8-vsprintf: Likewise.
25261         * modules/unistdio/u8-vasnprintf: Likewise.
25262         * modules/unistdio/u8-vasprintf: Likewise.
25263         * modules/unistdio/u8-vsnprintf: Likewise.
25264         * modules/unistdio/u8-vsprintf: Likewise.
25265         * modules/unistdio/u16-asnprintf: Likewise.
25266         * modules/unistdio/u16-asprintf: Likewise.
25267         * modules/unistdio/u16-snprintf: Likewise.
25268         * modules/unistdio/u16-sprintf: Likewise.
25269         * modules/unistdio/u16-u16-asnprintf: Likewise.
25270         * modules/unistdio/u16-u16-asprintf: Likewise.
25271         * modules/unistdio/u16-u16-snprintf: Likewise.
25272         * modules/unistdio/u16-u16-sprintf: Likewise.
25273         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25274         * modules/unistdio/u16-u16-vasprintf: Likewise.
25275         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25276         * modules/unistdio/u16-u16-vsprintf: Likewise.
25277         * modules/unistdio/u16-vasnprintf: Likewise.
25278         * modules/unistdio/u16-vasprintf: Likewise.
25279         * modules/unistdio/u16-vsnprintf: Likewise.
25280         * modules/unistdio/u16-vsprintf: Likewise.
25281         * modules/unistdio/u32-asnprintf: Likewise.
25282         * modules/unistdio/u32-asprintf: Likewise.
25283         * modules/unistdio/u32-snprintf: Likewise.
25284         * modules/unistdio/u32-sprintf: Likewise.
25285         * modules/unistdio/u32-u32-asnprintf: Likewise.
25286         * modules/unistdio/u32-u32-asprintf: Likewise.
25287         * modules/unistdio/u32-u32-snprintf: Likewise.
25288         * modules/unistdio/u32-u32-sprintf: Likewise.
25289         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25290         * modules/unistdio/u32-u32-vasprintf: Likewise.
25291         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25292         * modules/unistdio/u32-u32-vsprintf: Likewise.
25293         * modules/unistdio/u32-vasnprintf: Likewise.
25294         * modules/unistdio/u32-vasprintf: Likewise.
25295         * modules/unistdio/u32-vsnprintf: Likewise.
25296         * modules/unistdio/u32-vsprintf: Likewise.
25297         * modules/unistdio/ulc-asnprintf: Likewise.
25298         * modules/unistdio/ulc-asprintf: Likewise.
25299         * modules/unistdio/ulc-fprintf: Likewise.
25300         * modules/unistdio/ulc-snprintf: Likewise.
25301         * modules/unistdio/ulc-sprintf: Likewise.
25302         * modules/unistdio/ulc-vasnprintf: Likewise.
25303         * modules/unistdio/ulc-vasprintf: Likewise.
25304         * modules/unistdio/ulc-vfprintf: Likewise.
25305         * modules/unistdio/ulc-vsnprintf: Likewise.
25306         * modules/unistdio/ulc-vsprintf: Likewise.
25307         * modules/unistr/u8-check: Likewise.
25308         * modules/unistr/u8-chr: Likewise.
25309         * modules/unistr/u8-cmp: Likewise.
25310         * modules/unistr/u8-cmp2: Likewise.
25311         * modules/unistr/u8-cpy: Likewise.
25312         * modules/unistr/u8-cpy-alloc: Likewise.
25313         * modules/unistr/u8-endswith: Likewise.
25314         * modules/unistr/u8-mblen: Likewise.
25315         * modules/unistr/u8-mbsnlen: Likewise.
25316         * modules/unistr/u8-mbtouc: Likewise.
25317         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25318         * modules/unistr/u8-mbtoucr: Likewise.
25319         * modules/unistr/u8-move: Likewise.
25320         * modules/unistr/u8-next: Likewise.
25321         * modules/unistr/u8-prev: Likewise.
25322         * modules/unistr/u8-set: Likewise.
25323         * modules/unistr/u8-startswith: Likewise.
25324         * modules/unistr/u8-stpcpy: Likewise.
25325         * modules/unistr/u8-stpncpy: Likewise.
25326         * modules/unistr/u8-strcat: Likewise.
25327         * modules/unistr/u8-strchr: Likewise.
25328         * modules/unistr/u8-strcmp: Likewise.
25329         * modules/unistr/u8-strcoll: Likewise.
25330         * modules/unistr/u8-strcpy: Likewise.
25331         * modules/unistr/u8-strcspn: Likewise.
25332         * modules/unistr/u8-strdup: Likewise.
25333         * modules/unistr/u8-strlen: Likewise.
25334         * modules/unistr/u8-strmblen: Likewise.
25335         * modules/unistr/u8-strmbtouc: Likewise.
25336         * modules/unistr/u8-strncat: Likewise.
25337         * modules/unistr/u8-strncmp: Likewise.
25338         * modules/unistr/u8-strncpy: Likewise.
25339         * modules/unistr/u8-strnlen: Likewise.
25340         * modules/unistr/u8-strpbrk: Likewise.
25341         * modules/unistr/u8-strrchr: Likewise.
25342         * modules/unistr/u8-strspn: Likewise.
25343         * modules/unistr/u8-strstr: Likewise.
25344         * modules/unistr/u8-strtok: Likewise.
25345         * modules/unistr/u8-to-u16: Likewise.
25346         * modules/unistr/u8-to-u32: Likewise.
25347         * modules/unistr/u8-uctomb: Likewise.
25348         * modules/unistr/u16-check: Likewise.
25349         * modules/unistr/u16-chr: Likewise.
25350         * modules/unistr/u16-cmp: Likewise.
25351         * modules/unistr/u16-cmp2: Likewise.
25352         * modules/unistr/u16-cpy: Likewise.
25353         * modules/unistr/u16-cpy-alloc: Likewise.
25354         * modules/unistr/u16-endswith: Likewise.
25355         * modules/unistr/u16-mblen: Likewise.
25356         * modules/unistr/u16-mbsnlen: Likewise.
25357         * modules/unistr/u16-mbtouc: Likewise.
25358         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25359         * modules/unistr/u16-mbtoucr: Likewise.
25360         * modules/unistr/u16-move: Likewise.
25361         * modules/unistr/u16-next: Likewise.
25362         * modules/unistr/u16-prev: Likewise.
25363         * modules/unistr/u16-set: Likewise.
25364         * modules/unistr/u16-startswith: Likewise.
25365         * modules/unistr/u16-stpcpy: Likewise.
25366         * modules/unistr/u16-stpncpy: Likewise.
25367         * modules/unistr/u16-strcat: Likewise.
25368         * modules/unistr/u16-strchr: Likewise.
25369         * modules/unistr/u16-strcmp: Likewise.
25370         * modules/unistr/u16-strcoll: Likewise.
25371         * modules/unistr/u16-strcpy: Likewise.
25372         * modules/unistr/u16-strcspn: Likewise.
25373         * modules/unistr/u16-strdup: Likewise.
25374         * modules/unistr/u16-strlen: Likewise.
25375         * modules/unistr/u16-strmblen: Likewise.
25376         * modules/unistr/u16-strmbtouc: Likewise.
25377         * modules/unistr/u16-strncat: Likewise.
25378         * modules/unistr/u16-strncmp: Likewise.
25379         * modules/unistr/u16-strncpy: Likewise.
25380         * modules/unistr/u16-strnlen: Likewise.
25381         * modules/unistr/u16-strpbrk: Likewise.
25382         * modules/unistr/u16-strrchr: Likewise.
25383         * modules/unistr/u16-strspn: Likewise.
25384         * modules/unistr/u16-strstr: Likewise.
25385         * modules/unistr/u16-strtok: Likewise.
25386         * modules/unistr/u16-to-u32: Likewise.
25387         * modules/unistr/u16-to-u8: Likewise.
25388         * modules/unistr/u16-uctomb: Likewise.
25389         * modules/unistr/u32-check: Likewise.
25390         * modules/unistr/u32-chr: Likewise.
25391         * modules/unistr/u32-cmp: Likewise.
25392         * modules/unistr/u32-cmp2: Likewise.
25393         * modules/unistr/u32-cpy: Likewise.
25394         * modules/unistr/u32-cpy-alloc: Likewise.
25395         * modules/unistr/u32-endswith: Likewise.
25396         * modules/unistr/u32-mblen: Likewise.
25397         * modules/unistr/u32-mbsnlen: Likewise.
25398         * modules/unistr/u32-mbtouc: Likewise.
25399         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25400         * modules/unistr/u32-mbtoucr: Likewise.
25401         * modules/unistr/u32-move: Likewise.
25402         * modules/unistr/u32-next: Likewise.
25403         * modules/unistr/u32-prev: Likewise.
25404         * modules/unistr/u32-set: Likewise.
25405         * modules/unistr/u32-startswith: Likewise.
25406         * modules/unistr/u32-stpcpy: Likewise.
25407         * modules/unistr/u32-stpncpy: Likewise.
25408         * modules/unistr/u32-strcat: Likewise.
25409         * modules/unistr/u32-strchr: Likewise.
25410         * modules/unistr/u32-strcmp: Likewise.
25411         * modules/unistr/u32-strcoll: Likewise.
25412         * modules/unistr/u32-strcpy: Likewise.
25413         * modules/unistr/u32-strcspn: Likewise.
25414         * modules/unistr/u32-strdup: Likewise.
25415         * modules/unistr/u32-strlen: Likewise.
25416         * modules/unistr/u32-strmblen: Likewise.
25417         * modules/unistr/u32-strmbtouc: Likewise.
25418         * modules/unistr/u32-strncat: Likewise.
25419         * modules/unistr/u32-strncmp: Likewise.
25420         * modules/unistr/u32-strncpy: Likewise.
25421         * modules/unistr/u32-strnlen: Likewise.
25422         * modules/unistr/u32-strpbrk: Likewise.
25423         * modules/unistr/u32-strrchr: Likewise.
25424         * modules/unistr/u32-strspn: Likewise.
25425         * modules/unistr/u32-strstr: Likewise.
25426         * modules/unistr/u32-strtok: Likewise.
25427         * modules/unistr/u32-to-u16: Likewise.
25428         * modules/unistr/u32-to-u8: Likewise.
25429         * modules/unistr/u32-uctomb: Likewise.
25430         * modules/uniwbrk/u8-wordbreaks: Likewise.
25431         * modules/uniwbrk/u16-wordbreaks: Likewise.
25432         * modules/uniwbrk/u32-wordbreaks: Likewise.
25433         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25434         * modules/uniwbrk/wordbreak-property: Likewise.
25435         * modules/uniwidth/u8-strwidth: Likewise.
25436         * modules/uniwidth/u8-width: Likewise.
25437         * modules/uniwidth/u16-strwidth: Likewise.
25438         * modules/uniwidth/u16-width: Likewise.
25439         * modules/uniwidth/u32-strwidth: Likewise.
25440         * modules/uniwidth/u32-width: Likewise.
25441         * modules/uniwidth/width: Likewise.
25442         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25443         with $(LIBUNISTRING).
25444         * modules/unicase/ignorable-tests: Likewise.
25445         * modules/unicase/locale-language-tests: Likewise.
25446         * modules/unicase/tolower-tests: Likewise.
25447         * modules/unicase/totitle-tests: Likewise.
25448         * modules/unicase/toupper-tests: Likewise.
25449         * modules/unicase/u8-casecmp-tests: Likewise.
25450         * modules/unicase/u8-casecoll-tests: Likewise.
25451         * modules/unicase/u8-casefold-tests: Likewise.
25452         * modules/unicase/u8-is-cased-tests: Likewise.
25453         * modules/unicase/u8-is-casefolded-tests: Likewise.
25454         * modules/unicase/u8-is-lowercase-tests: Likewise.
25455         * modules/unicase/u8-is-titlecase-tests: Likewise.
25456         * modules/unicase/u8-is-uppercase-tests: Likewise.
25457         * modules/unicase/u8-tolower-tests: Likewise.
25458         * modules/unicase/u8-totitle-tests: Likewise.
25459         * modules/unicase/u8-toupper-tests: Likewise.
25460         * modules/unicase/u16-casecmp-tests: Likewise.
25461         * modules/unicase/u16-casecoll-tests: Likewise.
25462         * modules/unicase/u16-casefold-tests: Likewise.
25463         * modules/unicase/u16-is-cased-tests: Likewise.
25464         * modules/unicase/u16-is-casefolded-tests: Likewise.
25465         * modules/unicase/u16-is-lowercase-tests: Likewise.
25466         * modules/unicase/u16-is-titlecase-tests: Likewise.
25467         * modules/unicase/u16-is-uppercase-tests: Likewise.
25468         * modules/unicase/u16-tolower-tests: Likewise.
25469         * modules/unicase/u16-totitle-tests: Likewise.
25470         * modules/unicase/u16-toupper-tests: Likewise.
25471         * modules/unicase/u32-casecmp-tests: Likewise.
25472         * modules/unicase/u32-casecoll-tests: Likewise.
25473         * modules/unicase/u32-casefold-tests: Likewise.
25474         * modules/unicase/u32-is-cased-tests: Likewise.
25475         * modules/unicase/u32-is-casefolded-tests: Likewise.
25476         * modules/unicase/u32-is-lowercase-tests: Likewise.
25477         * modules/unicase/u32-is-titlecase-tests: Likewise.
25478         * modules/unicase/u32-is-uppercase-tests: Likewise.
25479         * modules/unicase/u32-tolower-tests: Likewise.
25480         * modules/unicase/u32-totitle-tests: Likewise.
25481         * modules/unicase/u32-toupper-tests: Likewise.
25482         * modules/unicase/ulc-casecmp-tests: Likewise.
25483         * modules/unicase/ulc-casecoll-tests: Likewise.
25484         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25485         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25486         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25487         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25488         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25489         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25490         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25491         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25492         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25493         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25494         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25495         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25496         * modules/unictype/bidicategory-byname-tests: Likewise.
25497         * modules/unictype/bidicategory-name-tests: Likewise.
25498         * modules/unictype/bidicategory-of-tests: Likewise.
25499         * modules/unictype/bidicategory-test-tests: Likewise.
25500         * modules/unictype/block-list-tests: Likewise.
25501         * modules/unictype/block-of-tests: Likewise.
25502         * modules/unictype/block-test-tests: Likewise.
25503         * modules/unictype/category-C-tests: Likewise.
25504         * modules/unictype/category-Cc-tests: Likewise.
25505         * modules/unictype/category-Cf-tests: Likewise.
25506         * modules/unictype/category-Cn-tests: Likewise.
25507         * modules/unictype/category-Co-tests: Likewise.
25508         * modules/unictype/category-Cs-tests: Likewise.
25509         * modules/unictype/category-L-tests: Likewise.
25510         * modules/unictype/category-Ll-tests: Likewise.
25511         * modules/unictype/category-Lm-tests: Likewise.
25512         * modules/unictype/category-Lo-tests: Likewise.
25513         * modules/unictype/category-Lt-tests: Likewise.
25514         * modules/unictype/category-Lu-tests: Likewise.
25515         * modules/unictype/category-M-tests: Likewise.
25516         * modules/unictype/category-Mc-tests: Likewise.
25517         * modules/unictype/category-Me-tests: Likewise.
25518         * modules/unictype/category-Mn-tests: Likewise.
25519         * modules/unictype/category-N-tests: Likewise.
25520         * modules/unictype/category-Nd-tests: Likewise.
25521         * modules/unictype/category-Nl-tests: Likewise.
25522         * modules/unictype/category-No-tests: Likewise.
25523         * modules/unictype/category-P-tests: Likewise.
25524         * modules/unictype/category-Pc-tests: Likewise.
25525         * modules/unictype/category-Pd-tests: Likewise.
25526         * modules/unictype/category-Pe-tests: Likewise.
25527         * modules/unictype/category-Pf-tests: Likewise.
25528         * modules/unictype/category-Pi-tests: Likewise.
25529         * modules/unictype/category-Po-tests: Likewise.
25530         * modules/unictype/category-Ps-tests: Likewise.
25531         * modules/unictype/category-S-tests: Likewise.
25532         * modules/unictype/category-Sc-tests: Likewise.
25533         * modules/unictype/category-Sk-tests: Likewise.
25534         * modules/unictype/category-Sm-tests: Likewise.
25535         * modules/unictype/category-So-tests: Likewise.
25536         * modules/unictype/category-Z-tests: Likewise.
25537         * modules/unictype/category-Zl-tests: Likewise.
25538         * modules/unictype/category-Zp-tests: Likewise.
25539         * modules/unictype/category-Zs-tests: Likewise.
25540         * modules/unictype/category-and-not-tests: Likewise.
25541         * modules/unictype/category-and-tests: Likewise.
25542         * modules/unictype/category-byname-tests: Likewise.
25543         * modules/unictype/category-name-tests: Likewise.
25544         * modules/unictype/category-none-tests: Likewise.
25545         * modules/unictype/category-of-tests: Likewise.
25546         * modules/unictype/category-or-tests: Likewise.
25547         * modules/unictype/category-test-withtable-tests: Likewise.
25548         * modules/unictype/combining-class-tests: Likewise.
25549         * modules/unictype/ctype-alnum-tests: Likewise.
25550         * modules/unictype/ctype-alpha-tests: Likewise.
25551         * modules/unictype/ctype-blank-tests: Likewise.
25552         * modules/unictype/ctype-cntrl-tests: Likewise.
25553         * modules/unictype/ctype-digit-tests: Likewise.
25554         * modules/unictype/ctype-graph-tests: Likewise.
25555         * modules/unictype/ctype-lower-tests: Likewise.
25556         * modules/unictype/ctype-print-tests: Likewise.
25557         * modules/unictype/ctype-punct-tests: Likewise.
25558         * modules/unictype/ctype-space-tests: Likewise.
25559         * modules/unictype/ctype-upper-tests: Likewise.
25560         * modules/unictype/ctype-xdigit-tests: Likewise.
25561         * modules/unictype/decimal-digit-tests: Likewise.
25562         * modules/unictype/digit-tests: Likewise.
25563         * modules/unictype/mirror-tests: Likewise.
25564         * modules/unictype/numeric-tests: Likewise.
25565         * modules/unictype/property-alphabetic-tests: Likewise.
25566         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25567         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25568         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25569         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25570         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25571         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25572         * modules/unictype/property-bidi-control-tests: Likewise.
25573         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25574         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25575         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25576         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25577         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25578         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25579         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25580         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25581         * modules/unictype/property-bidi-pdf-tests: Likewise.
25582         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25583         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25584         * modules/unictype/property-byname-tests: Likewise.
25585         * modules/unictype/property-combining-tests: Likewise.
25586         * modules/unictype/property-composite-tests: Likewise.
25587         * modules/unictype/property-currency-symbol-tests: Likewise.
25588         * modules/unictype/property-dash-tests: Likewise.
25589         * modules/unictype/property-decimal-digit-tests: Likewise.
25590         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25591         * modules/unictype/property-deprecated-tests: Likewise.
25592         * modules/unictype/property-diacritic-tests: Likewise.
25593         * modules/unictype/property-extender-tests: Likewise.
25594         * modules/unictype/property-format-control-tests: Likewise.
25595         * modules/unictype/property-grapheme-base-tests: Likewise.
25596         * modules/unictype/property-grapheme-extend-tests: Likewise.
25597         * modules/unictype/property-grapheme-link-tests: Likewise.
25598         * modules/unictype/property-hex-digit-tests: Likewise.
25599         * modules/unictype/property-hyphen-tests: Likewise.
25600         * modules/unictype/property-id-continue-tests: Likewise.
25601         * modules/unictype/property-id-start-tests: Likewise.
25602         * modules/unictype/property-ideographic-tests: Likewise.
25603         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25604         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25605         * modules/unictype/property-ignorable-control-tests: Likewise.
25606         * modules/unictype/property-iso-control-tests: Likewise.
25607         * modules/unictype/property-join-control-tests: Likewise.
25608         * modules/unictype/property-left-of-pair-tests: Likewise.
25609         * modules/unictype/property-line-separator-tests: Likewise.
25610         * modules/unictype/property-logical-order-exception-tests: Likewise.
25611         * modules/unictype/property-lowercase-tests: Likewise.
25612         * modules/unictype/property-math-tests: Likewise.
25613         * modules/unictype/property-non-break-tests: Likewise.
25614         * modules/unictype/property-not-a-character-tests: Likewise.
25615         * modules/unictype/property-numeric-tests: Likewise.
25616         * modules/unictype/property-other-alphabetic-tests: Likewise.
25617         * modules/unictype/property-other-default-ignorable-code-point-tests:
25618         Likewise.
25619         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25620         * modules/unictype/property-other-id-continue-tests: Likewise.
25621         * modules/unictype/property-other-id-start-tests: Likewise.
25622         * modules/unictype/property-other-lowercase-tests: Likewise.
25623         * modules/unictype/property-other-math-tests: Likewise.
25624         * modules/unictype/property-other-uppercase-tests: Likewise.
25625         * modules/unictype/property-paired-punctuation-tests: Likewise.
25626         * modules/unictype/property-paragraph-separator-tests: Likewise.
25627         * modules/unictype/property-pattern-syntax-tests: Likewise.
25628         * modules/unictype/property-pattern-white-space-tests: Likewise.
25629         * modules/unictype/property-private-use-tests: Likewise.
25630         * modules/unictype/property-punctuation-tests: Likewise.
25631         * modules/unictype/property-quotation-mark-tests: Likewise.
25632         * modules/unictype/property-radical-tests: Likewise.
25633         * modules/unictype/property-sentence-terminal-tests: Likewise.
25634         * modules/unictype/property-soft-dotted-tests: Likewise.
25635         * modules/unictype/property-space-tests: Likewise.
25636         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25637         * modules/unictype/property-test-tests: Likewise.
25638         * modules/unictype/property-titlecase-tests: Likewise.
25639         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25640         * modules/unictype/property-unified-ideograph-tests: Likewise.
25641         * modules/unictype/property-uppercase-tests: Likewise.
25642         * modules/unictype/property-variation-selector-tests: Likewise.
25643         * modules/unictype/property-white-space-tests: Likewise.
25644         * modules/unictype/property-xid-continue-tests: Likewise.
25645         * modules/unictype/property-xid-start-tests: Likewise.
25646         * modules/unictype/property-zero-width-tests: Likewise.
25647         * modules/unictype/scripts-tests: Likewise.
25648         * modules/unictype/syntax-c-ident-tests: Likewise.
25649         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25650         * modules/unictype/syntax-java-ident-tests: Likewise.
25651         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25652         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25653         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25654         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25655         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25656         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25657         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25658         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25659         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25660         * modules/uniname/uniname-tests: Likewise.
25661         * modules/uninorm/canonical-decomposition-tests: Likewise.
25662         * modules/uninorm/compat-decomposition-tests: Likewise.
25663         * modules/uninorm/composition-tests: Likewise.
25664         * modules/uninorm/decomposing-form-tests: Likewise.
25665         * modules/uninorm/decomposition-tests: Likewise.
25666         * modules/uninorm/filter-tests: Likewise.
25667         * modules/uninorm/nfc-tests: Likewise.
25668         * modules/uninorm/nfd-tests: Likewise.
25669         * modules/uninorm/nfkc-tests: Likewise.
25670         * modules/uninorm/nfkd-tests: Likewise.
25671         * modules/uninorm/u8-normcmp-tests: Likewise.
25672         * modules/uninorm/u8-normcoll-tests: Likewise.
25673         * modules/uninorm/u16-normcmp-tests: Likewise.
25674         * modules/uninorm/u16-normcoll-tests: Likewise.
25675         * modules/uninorm/u32-normcmp-tests: Likewise.
25676         * modules/uninorm/u32-normcoll-tests: Likewise.
25677         * modules/unistdio/u8-asnprintf-tests: Likewise.
25678         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25679         * modules/unistdio/u8-vasprintf-tests: Likewise.
25680         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25681         * modules/unistdio/u8-vsprintf-tests: Likewise.
25682         * modules/unistdio/u16-asnprintf-tests: Likewise.
25683         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25684         * modules/unistdio/u16-vasprintf-tests: Likewise.
25685         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25686         * modules/unistdio/u16-vsprintf-tests: Likewise.
25687         * modules/unistdio/u32-asnprintf-tests: Likewise.
25688         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25689         * modules/unistdio/u32-vasprintf-tests: Likewise.
25690         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25691         * modules/unistdio/u32-vsprintf-tests: Likewise.
25692         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25693         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25694         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25695         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25696         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25697         * modules/unistr/u8-check-tests: Likewise.
25698         * modules/unistr/u8-chr-tests: Likewise.
25699         * modules/unistr/u8-cmp-tests: Likewise.
25700         * modules/unistr/u8-cmp2-tests: Likewise.
25701         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25702         * modules/unistr/u8-cpy-tests: Likewise.
25703         * modules/unistr/u8-mblen-tests: Likewise.
25704         * modules/unistr/u8-mbsnlen-tests: Likewise.
25705         * modules/unistr/u8-mbtouc-tests: Likewise.
25706         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25707         * modules/unistr/u8-mbtoucr-tests: Likewise.
25708         * modules/unistr/u8-move-tests: Likewise.
25709         * modules/unistr/u8-next-tests: Likewise.
25710         * modules/unistr/u8-prev-tests: Likewise.
25711         * modules/unistr/u8-set-tests: Likewise.
25712         * modules/unistr/u8-stpcpy-tests: Likewise.
25713         * modules/unistr/u8-stpncpy-tests: Likewise.
25714         * modules/unistr/u8-strcat-tests: Likewise.
25715         * modules/unistr/u8-strcmp-tests: Likewise.
25716         * modules/unistr/u8-strcoll-tests: Likewise.
25717         * modules/unistr/u8-strcpy-tests: Likewise.
25718         * modules/unistr/u8-strdup-tests: Likewise.
25719         * modules/unistr/u8-strlen-tests: Likewise.
25720         * modules/unistr/u8-strmblen-tests: Likewise.
25721         * modules/unistr/u8-strmbtouc-tests: Likewise.
25722         * modules/unistr/u8-strncat-tests: Likewise.
25723         * modules/unistr/u8-strncmp-tests: Likewise.
25724         * modules/unistr/u8-strncpy-tests: Likewise.
25725         * modules/unistr/u8-strnlen-tests: Likewise.
25726         * modules/unistr/u8-to-u16-tests: Likewise.
25727         * modules/unistr/u8-to-u32-tests: Likewise.
25728         * modules/unistr/u8-uctomb-tests: Likewise.
25729         * modules/unistr/u16-check-tests: Likewise.
25730         * modules/unistr/u16-chr-tests: Likewise.
25731         * modules/unistr/u16-cmp-tests: Likewise.
25732         * modules/unistr/u16-cmp2-tests: Likewise.
25733         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25734         * modules/unistr/u16-cpy-tests: Likewise.
25735         * modules/unistr/u16-mblen-tests: Likewise.
25736         * modules/unistr/u16-mbsnlen-tests: Likewise.
25737         * modules/unistr/u16-mbtouc-tests: Likewise.
25738         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25739         * modules/unistr/u16-mbtoucr-tests: Likewise.
25740         * modules/unistr/u16-move-tests: Likewise.
25741         * modules/unistr/u16-next-tests: Likewise.
25742         * modules/unistr/u16-prev-tests: Likewise.
25743         * modules/unistr/u16-set-tests: Likewise.
25744         * modules/unistr/u16-stpcpy-tests: Likewise.
25745         * modules/unistr/u16-stpncpy-tests: Likewise.
25746         * modules/unistr/u16-strcat-tests: Likewise.
25747         * modules/unistr/u16-strcmp-tests: Likewise.
25748         * modules/unistr/u16-strcoll-tests: Likewise.
25749         * modules/unistr/u16-strcpy-tests: Likewise.
25750         * modules/unistr/u16-strdup-tests: Likewise.
25751         * modules/unistr/u16-strlen-tests: Likewise.
25752         * modules/unistr/u16-strmblen-tests: Likewise.
25753         * modules/unistr/u16-strmbtouc-tests: Likewise.
25754         * modules/unistr/u16-strncat-tests: Likewise.
25755         * modules/unistr/u16-strncmp-tests: Likewise.
25756         * modules/unistr/u16-strncpy-tests: Likewise.
25757         * modules/unistr/u16-strnlen-tests: Likewise.
25758         * modules/unistr/u16-to-u32-tests: Likewise.
25759         * modules/unistr/u16-to-u8-tests: Likewise.
25760         * modules/unistr/u16-uctomb-tests: Likewise.
25761         * modules/unistr/u32-check-tests: Likewise.
25762         * modules/unistr/u32-chr-tests: Likewise.
25763         * modules/unistr/u32-cmp-tests: Likewise.
25764         * modules/unistr/u32-cmp2-tests: Likewise.
25765         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25766         * modules/unistr/u32-cpy-tests: Likewise.
25767         * modules/unistr/u32-mblen-tests: Likewise.
25768         * modules/unistr/u32-mbsnlen-tests: Likewise.
25769         * modules/unistr/u32-mbtouc-tests: Likewise.
25770         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25771         * modules/unistr/u32-mbtoucr-tests: Likewise.
25772         * modules/unistr/u32-move-tests: Likewise.
25773         * modules/unistr/u32-next-tests: Likewise.
25774         * modules/unistr/u32-prev-tests: Likewise.
25775         * modules/unistr/u32-set-tests: Likewise.
25776         * modules/unistr/u32-stpcpy-tests: Likewise.
25777         * modules/unistr/u32-stpncpy-tests: Likewise.
25778         * modules/unistr/u32-strcat-tests: Likewise.
25779         * modules/unistr/u32-strcmp-tests: Likewise.
25780         * modules/unistr/u32-strcoll-tests: Likewise.
25781         * modules/unistr/u32-strcpy-tests: Likewise.
25782         * modules/unistr/u32-strdup-tests: Likewise.
25783         * modules/unistr/u32-strlen-tests: Likewise.
25784         * modules/unistr/u32-strmblen-tests: Likewise.
25785         * modules/unistr/u32-strmbtouc-tests: Likewise.
25786         * modules/unistr/u32-strncat-tests: Likewise.
25787         * modules/unistr/u32-strncmp-tests: Likewise.
25788         * modules/unistr/u32-strncpy-tests: Likewise.
25789         * modules/unistr/u32-strnlen-tests: Likewise.
25790         * modules/unistr/u32-to-u16-tests: Likewise.
25791         * modules/unistr/u32-to-u8-tests: Likewise.
25792         * modules/unistr/u32-uctomb-tests: Likewise.
25793         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25794         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25795         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25796         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25797         * modules/uniwidth/u8-strwidth-tests: Likewise.
25798         * modules/uniwidth/u8-width-tests: Likewise.
25799         * modules/uniwidth/u16-strwidth-tests: Likewise.
25800         * modules/uniwidth/u16-width-tests: Likewise.
25801         * modules/uniwidth/u32-strwidth-tests: Likewise.
25802         * modules/uniwidth/u32-width-tests: Likewise.
25803         * modules/uniwidth/width-tests: Likewise.
25804
25805 2010-05-18  Richard Jones  <rjones@redhat.com>
25806
25807         doc: users.txt: list hivex
25808         * users.txt: Add hivex.
25809
25810 2010-05-18  Richard Jones  <rjones@redhat.com>
25811
25812         doc: users.txt: list febootstrap
25813         * users.txt: Add febootstrap.
25814
25815 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25816
25817         bootstrap: fix an error when gnulib is not used as a git submodule
25818         * build-aux/bootstrap (gnulib_path): If its length is zero then
25819         assign "gnulib" to it.
25820         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25821
25822 2010-05-16  Bruno Haible  <bruno@clisp.org>
25823
25824         Avoid autoconf warnings about AM_ICONV.
25825         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25826         2.64.
25827
25828 2010-05-16  Bruno Haible  <bruno@clisp.org>
25829
25830         absolute-header: Make the macro usable in more situations.
25831         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25832         from gl_ABSOLUTE_HEADER.
25833         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25834
25835 2010-05-16  James Youngman  <jay@gnu.org>
25836
25837         doc: update users.txt
25838         * users.txt: Add CSSC.
25839
25840 2010-05-16  Jim Meyering  <meyering@redhat.com>
25841
25842         init.sh: fix an error in the previous change; add more comments
25843         * tests/init.sh: Compare exit code in loop against 9, not 2.
25844         Patch by Bruno Haible.
25845         Make the two tests more similar by adding an empty "then" clause.
25846         Add comments.
25847
25848         init.sh: avoid unnecessary shell re-exec
25849         * tests/init.sh: Improve the re-exec-required check to first test the
25850         current shell.  If it passes the test, do not search for a shell that
25851         does pass, and do not re-exec.  This test is particularly contorted to
25852         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25853         of $(...) evokes a syntax error and causes immediate shell exit with
25854         status 2.  Bruno Haible reported that the re-exec made it impossible
25855         to single-step through any init.sh-using script.
25856
25857 2010-05-16  Bruno Haible  <bruno@clisp.org>
25858
25859         Fix collision between gnulib's and libintl's printf replacements.
25860         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25861         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25862         (printf): When using GNU C, map the __printf__ function to rpl_printf
25863         via __asm__. When not using GNU C, define rpl_printf instead of
25864         __printf__.
25865         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25866         commit.
25867         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25868         commit.
25869         * m4/asm-underscore.m4: New file.
25870         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25871         * modules/stdio (Files): Add m4/asm-underscore.m4.
25872         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25873         Reported by Ben Pfaff.
25874
25875 2010-05-16  Bruno Haible  <bruno@clisp.org>
25876
25877         verify: Avoid skipping the test on openSUSE 11.0.
25878         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25879
25880 2010-05-13  Bruno Haible  <bruno@clisp.org>
25881
25882         Avoid useless warnings from G++.
25883         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25884         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25885         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25886
25887 2010-05-11  Jim Meyering  <meyering@redhat.com>
25888
25889         maint.mk: tweak preceding change
25890         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25891         regexps tighter by anchoring at EOL, and make the new group "shy"
25892         for slightly decreased overhead.
25893
25894 2010-05-11  Eric Blake  <eblake@redhat.com>
25895
25896         maint.mk: gnulib doesn't guarantee NSIG
25897         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25898
25899 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25900
25901         test-pwrite.c: Remove unused variable declaration.
25902         * tests/test-pwrite.c (main): Remove read_buf declaration.
25903
25904         Remove useless test-pwrite.sh file.
25905         * tests/test-pwrite.sh: Delete file.
25906         * modules/pwrite-tests: Remove references.
25907         Reported by Bruno Haible.
25908
25909 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25910
25911         init.sh: fix a typo
25912         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25913
25914 2010-05-10  Jim Meyering  <meyering@redhat.com>
25915
25916         maint.mk: avoid using a temporary file in the always-defined-macros check
25917         * top/maint.mk (.re-defmac): Remove rule.
25918         (gl_trap_): Remove definition.
25919         (sc_prohibit_always-defined_macros): Rewrite not to create and
25920         depend on a temporary file.  Instead, depend on GNU grep's ability
25921         to read a list of regular expressions from stdin when given "-f -".
25922
25923 2010-05-09  Bruno Haible  <bruno@clisp.org>
25924
25925         Update to GNU gettext 0.18, part 1.
25926         * m4/gettext.m4: Update to GNU gettext 0.18.
25927         * m4/intl.m4: Likewise.
25928         * m4/po.m4: Likewise.
25929         * modules/gettext (Files): Add m4/fcntl-o.m4.
25930         (configure.ac): Require gettext infrastructure from version 0.18.
25931
25932 2010-05-09  Jim Meyering  <meyering@redhat.com>
25933
25934         init.sh: enable MALLOC_PERTURB_
25935         * tests/init.sh: Enable glibc's malloc-perturbing option.
25936
25937         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25938         With my recent change in init.sh from the two-line form:
25939             -#   : ${srcdir=.}
25940             -#   . "$srcdir/init.sh"; path_prepend_ .
25941             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25942         I noticed that using the one-line form would cause this test
25943         to fail with a false-positive, or to stop working altogether,
25944         depending on whether help-version changed or all the tests did.
25945         * top/maint.mk (_hv_regex): Remove this definition.
25946         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25947         (_hv_regex_strong): Use a stronger regex to check for conformance.
25948         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25949         Give a separate diagnostic for lack of conforming use.
25950
25951         maint.mk: prohibit definition of symbols defined by gnulib
25952         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25953         definition of symbols defined by gnulib.
25954
25955 2010-05-09  Bruno Haible  <bruno@clisp.org>
25956
25957         acl: Avoid test failure on Cygwin-hosted mingw.
25958         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25959
25960 2010-05-09  Bruno Haible  <bruno@clisp.org>
25961
25962         error: Use system's fcntl function.
25963         * lib/error.c (fcntl): Undefine.
25964
25965 2010-05-09  Jim Meyering  <meyering@redhat.com>
25966
25967         verify: adjust formatting to be more consistent
25968         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25969         argument-list '('s, and after one comma.
25970
25971 2010-05-09  Bruno Haible  <bruno@clisp.org>
25972
25973         error: More reliable output on mingw.
25974         * lib/error.c: Include <windows.h>.
25975         (is_open): New function.
25976         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25977         defined.
25978
25979 2010-05-09  Bruno Haible  <bruno@clisp.org>
25980
25981         vasnprintf: Fix syntax errors in libintl build on mingw.
25982         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25983         pad_ourselves and prec_ourselves after use.
25984
25985 2010-05-08  Bruno Haible  <bruno@clisp.org>
25986
25987         * lib/config.charset: Update comments for Cygwin 1.7.
25988         * lib/localcharset.c: Likewise.
25989
25990 2010-05-07  Jim Meyering  <meyering@redhat.com>
25991
25992         init.sh: improve comments
25993         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25994         . "${srcdir=.}/init.sh"; path_prepend_ .
25995         Add a note about path_prepend_ and the alternative of using
25996         TESTS_ENVIRONMENT.
25997
25998 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25999
26000         exclude: Unescape hashed patterns in wildcard mode.
26001         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
26002         to the hash list.
26003         * tests/test-exclude8.sh: New test case.
26004         * modules/exclude-tests: Add new test.
26005
26006 2010-05-05  Eric Blake  <eblake@redhat.com>
26007
26008         verify: automate tests
26009         * modules/verify-tests: New module.
26010         * tests/test-verify.sh: New file.
26011         * tests/test-verify.c: Guard each negative test with a unique id.
26012         Also avoid warning about unused left hand of comma expressions.
26013
26014 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26015
26016         Further improvements to verify.h, suggested by Eric Blake.
26017         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26018         the GL_* versions, to avoid collision with OpenGL.
26019         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26020         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26021         than testing merely whether it's defined.
26022
26023         Modify verify.h to pacify gcc -Wredundant_decls.
26024         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26025         These use the prefix "GL_" since they're likely to be useful elsewhere.
26026         We may need to break them out into a different .h file.
26027         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26028         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26029         of verify_function__.
26030
26031 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26032
26033         Tests for module pwrite.
26034         * modules/pwrite-tests: New file.
26035         * tests/test-pwrite.sh: New file.
26036         * tests/test-pwrite.c: New file.
26037
26038         New module pwrite.
26039         * lib/unistd.in.h (pwrite): New declaration.
26040         * lib/pwrite.c: New file, from glibc with modifications.
26041         * m4/pwrite.m4: New file.
26042         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26043         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26044         REPLACE_PWRITE.
26045         * modules/pwrite: New file.
26046         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26047         REPLACE_PWRITE.
26048         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26049         * doc/posix-functions/pwrite.texi: Mention the new module.
26050
26051 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26052
26053         pread: Update documentation.
26054         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26055
26056 2010-05-04  Eric Blake  <eblake@redhat.com>
26057
26058         docs: update cygwin progress
26059         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26060         this bug.
26061         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26062         Added in cygwin 1.7.2.
26063         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26064         Likewise.
26065         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26066         Likewise.
26067         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26068         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26069         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26070         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26071         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26072         Mention nproc module.
26073         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26074         bug in cygwin 1.7.5 addition.
26075         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26076         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26077         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26078         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26079         1.7.5.
26080         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26081         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26082         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26083         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26084         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26085         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26086         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26087         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26088         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26089         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26090         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26091         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26092         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26093         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26094         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26095         Likewise.
26096         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26097         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26098         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26099         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26100         Likewise.
26101         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26102         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26103         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26104         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26105         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26106         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26107         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26108         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26109         Likewise.
26110         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26111         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26112         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26113         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26114         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26115         Likewise.
26116         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26117         Likewise.
26118         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26119         Likewise.
26120         * doc/glibc-functions/xdrrec_endofrecord.texi
26121         (xdrrec_endofrecord): Likewise.
26122         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26123         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26124         Likewise.
26125         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26126         Likewise.
26127
26128 2010-05-04  Jim Meyering  <meyering@redhat.com>
26129
26130         gendocs.sh: make its "-s FILE" option more useful
26131         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26132         $PACKAGE to reflect the probably-different basename of "FILE".
26133
26134 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26135
26136         bootstrap: don't ignore download_po_files failure
26137         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26138         failure.
26139
26140 2010-05-03  Jim Meyering  <meyering@redhat.com>
26141
26142         maint.mk: allow to pass options to gendocs.sh
26143         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26144         (gendocs_options_): New overridable variable.
26145
26146         gnu-web-doc-update: don't ignore configure or build failure
26147         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26148
26149         announce-gen: backslash-escape '@'s in --help output
26150         * build-aux/announce-gen: Fix syntax errors.
26151
26152         maint.mk, announce-gen: allow project-specific announcement mail headers
26153         * top/maint.mk (translation_project_): Define default.
26154         (announcement_Cc_, announcement_mail_headers_): Likewise.
26155         (announcement): Invoke announce-gen with new --mail-headers option.
26156         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26157
26158         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26159         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26160         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26161         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26162         line in the "err2" output file when running "make check" in verbose
26163         mode (i.e., with set -x enabled).
26164
26165 2010-05-03  Bruno Haible  <bruno@clisp.org>
26166
26167         wctob: Fix for weird platforms.
26168         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26169         argument value.
26170
26171 2010-05-03  Jim Meyering  <meyering@redhat.com>
26172
26173         maint.mk: prohibit unwarranted use of <strings.h>
26174         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26175         strings.h in a file that does not also use strcasecmp, strncasecmp,
26176         ffs or ffsll.
26177
26178         maint.mk: remove obsolete comments
26179         * top/maint.mk: Remove stale, commented-out rules.
26180
26181 2010-05-02  Bruno Haible  <bruno@clisp.org>
26182
26183         wcwidth: Declare also when it's aliased.
26184         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26185         macro.
26186
26187 2010-05-02  Bruno Haible  <bruno@clisp.org>
26188
26189         Fix regression from 2010-04-25.
26190         * gnulib-tool (func_modules_transitive_closure): Check the status of
26191         all modules, not only of the tests that are of the form foo-tests where
26192         foo is a module.
26193
26194 2010-05-02  Bruno Haible  <bruno@clisp.org>
26195
26196         wctob: Work around nasty Cygwin 1.7.2 bug.
26197         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26198         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26199
26200 2010-05-01  Bruno Haible  <bruno@clisp.org>
26201
26202         fpurge: Sharper test.
26203         * tests/test-fpurge.c (main): Add one more ftell check.
26204         * modules/fpurge-tests (Depends-on): Add ftell.
26205         Suggested by Eric Blake.
26206
26207 2010-05-01  Bruno Haible  <bruno@clisp.org>
26208
26209         ftello: Another test.
26210         * tests/test-ftello3.c: New file.
26211         * modules/ftello-tests (Files): Add it.
26212         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26213         MOSTLYCLEANFILES.
26214
26215         ftell: Another test.
26216         * tests/test-ftell3.c: New file.
26217         * modules/ftell-tests (Files): Add it.
26218         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26219         MOSTLYCLEANFILES.
26220
26221 2010-05-01  Bruno Haible  <bruno@clisp.org>
26222
26223         ftell, ftello: Work around Solaris bug.
26224         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26225         * lib/ftello.c: Include stdio-impl.h.
26226         (ftello): On Solaris, when _IOWRT is set, compute the result without
26227         looking at _IOREAD.
26228         * modules/ftello (Files): Add lib/stdio-impl.h.
26229         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26230         * doc/posix-functions/ftello.texi: Likewise.
26231         Reported by Eric Blake.
26232
26233 2010-05-01  Bruno Haible  <bruno@clisp.org>
26234
26235         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26236         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26237         the _IOWRT flag is also set.
26238
26239 2010-05-01  Bruno Haible  <bruno@clisp.org>
26240
26241         Fix doc about a HP-UX stdio bug.
26242         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26243         * doc/posix-functions/ftello.texi: Likewise.
26244
26245 2010-05-01  Bruno Haible  <bruno@clisp.org>
26246
26247         lseek test: Fix failure on Solaris.
26248         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26249         output.
26250
26251 2010-04-30  Jim Meyering  <meyering@redhat.com>
26252
26253         bootstrap: don't ignore failure to generate po*/Makevars
26254         * build-aux/bootstrap (with_gettext): Don't ignore failure
26255         to create po/Makevars or runtime-po/Makevars.
26256
26257 2010-04-29  Eric Blake  <eblake@redhat.com>
26258
26259         headers: relax license to LGPLv2+
26260         * modules/fcntl-h (License): Relax license.
26261         * modules/getopt-posix (License): Likewise.
26262         * modules/locale (License): Likewise.
26263         * modules/math (License): Likewise.
26264         * modules/pty (License): Likewise.
26265         * modules/sched (License): Likewise.
26266         * modules/search (License): Likewise.
26267         * modules/spawn (License): Likewise.
26268         * modules/stdarg (License): Likewise.
26269         * modules/sysexits (License): Likewise.
26270
26271 2010-04-29  Jim Meyering  <meyering@redhat.com>
26272
26273         inttypes: relax license to LGPLv2+
26274         * modules/inttypes (License): Relax license.
26275
26276 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26277
26278         * top/maint.mk (indent): Run twice to produce idempotent results.
26279
26280 2010-04-28  Bruno Haible  <bruno@clisp.org>
26281
26282         getdate: Generate getdate.c in the source directory.
26283         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26284         MOSTLYCLEANFILES.
26285         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26286
26287 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26288
26289         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26290         is not declared as a const *; avoid warnings in that case.
26291
26292 2010-04-28  Eric Blake  <eblake@redhat.com>
26293
26294         canonicalize-lgpl: avoid compiler warning
26295         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26296         declaration' / 'extraneous semicolon' warning with some compilers.
26297         Reported by Andreas Gruenbacher.
26298
26299 2010-04-28  Jim Meyering  <meyering@redhat.com>
26300
26301         init.sh: ensure a more reliable exit status when exiting via trap
26302         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26303         Inspired by patches from Dmitry V. Levin.
26304         Also trap on signal 3 (SIGQUIT).
26305
26306 2010-04-27  Bruno Haible  <bruno@clisp.org>
26307
26308         Update doc about utimes().
26309         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26310         'utimens' module.
26311         Reported by Andreas Gruenbacher <agruen@suse.de>.
26312
26313 2010-04-27  Eric Blake  <eblake@redhat.com>
26314
26315         full-read, full-write: relax license
26316         * modules/full-read (License): Drop to LGPLv2+.
26317         * modules/full-write (License): Likewise.
26318         * modules/safe-read (License): Likewise.
26319         * modules/safe-write (License): Likewise.
26320
26321         pthread: mention library for linking
26322         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26323
26324 2010-04-27  Jim Meyering  <meyering@redhat.com>
26325
26326         maint.mk: fix a bug introduced in last change
26327         * top/maint.mk (gl_assured_headers_): Now that all names are on
26328         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26329         is not anchored to end of word, it should be adequate.
26330
26331         maint.mk: avoid side-effect in latest syntax-check
26332         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26333         to run commands via $(shell...), and hence to incur cost only when
26334         the new rule is actually run.
26335
26336         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26337         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26338         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26339         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26340         (gl_assured_headers_, az_, AZ_): Define.
26341         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26342
26343 2010-04-26  Jim Meyering  <jim@meyering.net>
26344             Bruno Haible  <bruno@clisp.org>
26345
26346         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26347         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26348         Prompted by an exchange with Gilles Espinasse.
26349
26350 2010-04-26  Jim Meyering  <meyering@redhat.com>
26351
26352         git-version-gen: aesthetic tweak
26353         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26354         so that the command remains on a single line.
26355
26356 2010-04-26  Eric Blake  <eblake@redhat.com>
26357
26358         git-version-gen: allow use on EBCDIC hosts
26359         * build-aux/git-version-gen (dirty): Use literal rather than tying
26360         ourselves to ascii.
26361         Reported by Steve Goetze.
26362
26363 2010-04-25  Bruno Haible  <bruno@clisp.org>
26364
26365         netdb: Add support for GNULIB_POSIXCHECK.
26366         * lib/netdb.in.h: Include warn-on-use.h.
26367         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26368         functions are used when GNULIB_POSIXCHECK is defined and the
26369         getaddrinfo module is not in use.
26370         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26371         freeaddrinfo, gai_strerror, getnameinfo are declared.
26372         * modules/netdb (Depends-on): Add warn-on-use.
26373         (Makefile.am): Include warn-on-use.h in netdb.h.
26374
26375 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26376
26377         build: avoid "make check" failure without .git/ directory
26378         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26379         there is no .git/ directory.
26380
26381 2010-04-25  Bruno Haible  <bruno@clisp.org>
26382
26383         ptsname: Fix misuse of ttyname_r.
26384         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26385         of errno.
26386
26387 2010-04-25  Bruno Haible  <bruno@clisp.org>
26388
26389         ttyname_r: Make it work on Solaris 10.
26390         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26391         if the system function has the POSIX declaration. Test whether the
26392         function fails if the buffer is less than 128 bytes large.
26393         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26394         system's ttyname_r function. Provide a reasonably large buffer.
26395         * modules/ttyname_r (Depends-on): Add extensions.
26396         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26397
26398 2010-04-25  Bruno Haible  <bruno@clisp.org>
26399
26400         Use the 'extensions' module for some more functions on Solaris.
26401         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26402         module.
26403         * doc/posix-functions/ctime_r.texi: Likewise.
26404         * doc/posix-functions/getgrgid_r.texi: Likewise.
26405         * doc/posix-functions/getgrnam_r.texi: Likewise.
26406         * doc/posix-functions/getpwnam_r.texi: Likewise.
26407         * doc/posix-functions/getpwuid_r.texi: Likewise.
26408         * doc/posix-functions/readdir_r.texi: Likewise.
26409         * doc/posix-functions/sigwait.texi: Likewise.
26410         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26411         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26412
26413 2010-04-25  Bruno Haible  <bruno@clisp.org>
26414
26415         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26417         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26418         * lib/ttyname_r.c: Include <limits.h>.
26419         (ttyname_r): Define using the system's ttyname_r function, if it exists
26420         and not on Solaris.
26421         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26422         set.
26423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26424         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26425         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26426         Reported by Simon Josefsson.
26427
26428 2010-04-25  Bruno Haible  <bruno@clisp.org>
26429
26430         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26431         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26432         * doc/posix-functions/ctime_r.texi: Likewise.
26433         * doc/posix-functions/getgrgid_r.texi: Likewise.
26434         * doc/posix-functions/getgrnam_r.texi: Likewise.
26435         * doc/posix-functions/getlogin_r.texi: Likewise.
26436         * doc/posix-functions/getpwnam_r.texi: Likewise.
26437         * doc/posix-functions/getpwuid_r.texi: Likewise.
26438         * doc/posix-functions/readdir_r.texi: Likewise.
26439         * doc/posix-functions/sigwait.texi: Likewise.
26440         * doc/posix-functions/ttyname_r.texi: Likewise.
26441         Reported by Simon Josefsson.
26442
26443 2010-04-25  Bruno Haible  <bruno@clisp.org>
26444
26445         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26446         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26447         also to --create-testdir.
26448         (func_acceptable): Don't consider the status of *-tests modules here.
26449         (func_modules_transitive_closure): Consider it here, before including a
26450         test module.
26451         (func_import, func_create_testdir): Set inc_all_direct_tests,
26452         inc_all_indirect_tests.
26453         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26454         --create-testdir and --create-megatestdir.
26455
26456 2010-04-25  Bruno Haible  <bruno@clisp.org>
26457
26458         gnulib-tool: Add --without-*-tests options.
26459         * gnulib-tool (func_usage): Document the --without-*-tests options.
26460         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26461         excl_unportable_tests): New variables.
26462         Fail if they are specified with --import or --update.
26463         (func_acceptable): Respect the excl_*_tests variables.
26464         (func_import): Set the excl_*_tests variables to empty.
26465
26466 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26467             Bruno Haible  <bruno@clisp.org>
26468
26469         Work around a MacOS X 10.4 bug with openpty.
26470         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26471         * tests/test-openpty.c (main): Close the master side explicitly.
26472
26473 2010-04-25  Bruno Haible  <bruno@clisp.org>
26474
26475         strnlen: Fix a C++ test error on MacOS X and Solaris.
26476         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26477         the function is not declared.
26478         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26479         Simon Josefsson.
26480
26481 2010-04-24  Bruno Haible  <bruno@clisp.org>
26482
26483         Avoid a gcc warning.
26484         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26485         of correct type for %08lx directive.
26486         Reported by Eric Blake.
26487
26488 2010-04-24  Bruno Haible  <bruno@clisp.org>
26489
26490         vasnprintf: Correct errno value in case of out-of-memory.
26491         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26492         or sprintf. Use the errno value from SNPRINTF or sprintf.
26493         Reported by Ian Beckwith <ianb@erislabs.net>.
26494
26495 2010-04-24  Bruno Haible  <bruno@clisp.org>
26496
26497         ansi-c++-opt: Find correct compiler when cross-compiling.
26498         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26499         AC_CHECK_PROGS.
26500         Reported by Simon Josefsson.
26501
26502 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26503
26504         vc-list-files: Add support for subversion
26505         * build-aux/vc-list-files: Use "svn list" to generate the list of
26506         files controlled by subversion.
26507
26508 2010-04-23  Jim Meyering  <meyering@redhat.com>
26509
26510         vc-list-files tests: convert to use init.sh
26511         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26512         path_prepend_.
26513         Use Exit, not exit.
26514         Use skip_ rather than open coding it.
26515         Remove trap set-up and compare definitions.
26516         * tests/test-vc-list-files-git.sh: Likewise.
26517         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26518
26519 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26520
26521         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26522         backup files.
26523
26524 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26525
26526         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26527
26528 2010-04-20  Eric Blake  <eblake@redhat.com>
26529
26530         tests: be robust to ignored SIGPIPE
26531         * tests/test-select-in.sh: Consume all output.
26532         * tests/test-lseek.sh: Check correct exit status, while avoiding
26533         EPIPE.
26534
26535 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26536             Bruno Haible  <bruno@clisp.org>
26537
26538         visibility: Don't use -fvisibility if it leads to a warning.
26539         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26540         yes, don't pretend that visibility works if it leads to a warning.
26541         Reported by Mike Gran <spk121@yahoo.com>.
26542
26543 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26544
26545         * build-aux/bootstrap: Use "git -h" for testing for supported options
26546         instead of "git --help".  The short-form option only shows a summary,
26547         and doesn't layout the full man page.  Grep for the full option name
26548         in the summary, too.
26549
26550 2010-04-19  Bruno Haible  <bruno@clisp.org>
26551
26552         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26553         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26554         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26555         mention of RELOCATABLE_STRIP.
26556         Reported by Sylvain Beucler <beuc@beuc.net>.
26557
26558 2010-04-19  Bruno Haible  <bruno@clisp.org>
26559
26560         * lib/diffseq.h: Fix typo in comment.
26561         Reported by Eric Blake.
26562
26563 2010-04-19  Bruno Haible  <bruno@clisp.org>
26564
26565         ioctl: Move autoconf macro to a .m4 file.
26566         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26567         * modules/ioctl (Files): Add it.
26568         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26569         Reported by Ian Beckwith <ianb@erislabs.net>.
26570
26571 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26572             Bruno Haible  <bruno@clisp.org>
26573
26574         diffseq: Accommodate use-case with abstract arrays.
26575         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26576         is not defined.
26577         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26578         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26579
26580 2010-04-18  Bruno Haible  <bruno@clisp.org>
26581
26582         * doc/posix-headers/stdbool.texi: More precise wording.
26583
26584 2010-04-17  Jim Meyering  <meyering@redhat.com>
26585
26586         maint.mk: use gnu-style indentation in an embedded perl script
26587         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26588         Rename variable: s/two/last_two_bytes/
26589
26590 2010-04-16  Eric Blake  <eblake@redhat.com>
26591
26592         test-stdbool: skip test that fails with Solaris CC
26593         * tests/test-stdbool.c (f): Skip test that causes compilation
26594         error under buggy C++ compiler.
26595         * lib/stdbool.in.h: Document the limitation.
26596         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26597
26598         setenv: allow compilation with C++
26599         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26600         register keyword.
26601
26602         stdint: allow test to pass with C++
26603         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26604
26605         getopt: allow compilation with C++
26606         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26607         struct.
26608         * lib/getopt.c (_getopt_internal_r): Use correct type.
26609         Reported by Dagobert Michelson, via Joel E. Denny.
26610
26611 2010-04-16  Bruno Haible  <bruno@clisp.org>
26612
26613         Override netdb.h always.
26614         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26615         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26616         Reported by Ludovic Courtès <ludo@gnu.org>.
26617
26618 2010-04-15  Bruno Haible  <bruno@clisp.org>
26619
26620         openpty: Fix mistake from 2010-03-21.
26621         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26622         Reported by Simon Josefsson.
26623
26624 2010-04-15  Eric Blake  <eblake@redhat.com>
26625
26626         test-forkpty: fix expected signature
26627         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26628         Reported by Simon Josefsson.
26629
26630 2010-04-15  Jim Meyering  <meyering@redhat.com>
26631
26632         maint.mk: texinfo_suffix_re_: correct the default regexp
26633         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26634
26635         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26636         make it configurable via texinfo_suffix_re_.
26637
26638 2010-04-14  Eric Blake  <eblake@redhat.com>
26639
26640         strtok_r: relax license to LGPLv2+
26641         * modules/strtok_r (License): Relax license.
26642         Reported by Matthias Bolte.
26643
26644 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26645
26646         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26647         version 1.4.4 by default instead of requiring the libgcrypt
26648         version used during build.  This makes it possible to use the
26649         application with older but still binary compatible libgcrypt
26650         versions.
26651
26652 2010-04-13  Eric Blake  <eblake@redhat.com>
26653
26654         getopt-gnu: match recent glibc fixes and posix ruling
26655         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26656         '+' handling, when requesting extensions.
26657         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26658         'W;' handling.
26659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26660         * doc/posix-functions/getopt.texi (getopt): Document this.
26661         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26662         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26663         Likewise.
26664
26665         getopt: merge bug fixes from glibc
26666         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26667         diagnostics.  Honor '+:' correctly.  Reject ';'.
26668
26669         getopt-posix: detect MacOS bug
26670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26671         optind when missing a required argument.
26672         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26673         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26674         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26675         Likewise.
26676
26677         getopt-posix: avoid spurious failure on Solaris
26678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26679         an indicator that setting optind=1 is sufficient for reset.
26680
26681         getopt-posix: avoid spurious failure on FreeBSD
26682         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26683         in POSIX mode, since the m4 test uses it.
26684
26685         gnulib-tool: silence warning on BSD sh
26686         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26687
26688 2010-04-13  Jim Meyering  <meyering@redhat.com>
26689
26690         doc: users.txt: GNU patch now uses gnulib
26691         * users.txt: Add patch.
26692
26693 2010-04-12  Jim Meyering  <meyering@redhat.com>
26694
26695         maint.mk: generate more concise timing data for syntax-check rules
26696         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26697         " done" from each line that reports a syntax-check test duration.
26698
26699 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26700
26701         git-version-gen: use "git update-index..." rather than "git status"
26702         * build-aux/git-version-gen: Use git update-index --refresh, not
26703         "git status".  With some versions of git, "git status" would fail
26704         to update the index and result in an unwarranted "-dirty" suffix.
26705
26706 2010-04-11  Jim Meyering  <meyering@redhat.com>
26707
26708         openat: correct formatting (no semantic change)
26709         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26710         Suggested by Bruno Haible.
26711
26712 2010-04-11  Bruno Haible  <bruno@clisp.org>
26713
26714         Stricter declaration checking in testdirs.
26715         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26716         If for_tests is true, augment AM_CPPFLAGS to define
26717         GNULIB_STRICT_CHECKING.
26718         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26719         GNULIB_STRICT_CHECKING is defined, verify that the function is
26720         declared.
26721
26722 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26723             Bruno Haible  <bruno@clisp.org>
26724
26725         libunistring: Improve configure output.
26726         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26727         Don't say "consider installing GNU libunistring" when checking again
26728         with libiconv.
26729
26730 2010-04-11  Bruno Haible  <bruno@clisp.org>
26731
26732         libunistring: Correct value of $LTLIBUNISTRING.
26733         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26734         correct the value of $LTLIBUNISTRING.
26735
26736 2010-04-11  Bruno Haible  <bruno@clisp.org>
26737
26738         havelib: Add static libraries to LIBS in the right order.
26739         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26740         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26741
26742 2010-04-11  Bruno Haible  <bruno@clisp.org>
26743
26744         libunistring: Detect libunistring also when it depends on libiconv.
26745         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26746         the second AC_LIB_HAVE_LINKFLAGS invocation.
26747
26748 2010-04-11  James Youngman  <jay@gnu.org>
26749
26750         close-stream: declare local scalars to be "const"
26751         * lib/close-stream.c (close_stream): Make boolean variables const
26752         to document the fact that we set but do not change them.
26753
26754 2010-04-11  Bruno Haible  <bruno@clisp.org>
26755
26756         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26757
26758 2010-04-11  Jim Meyering  <meyering@redhat.com>
26759
26760         maint.mk: don't include dist-check.mk
26761         * top/maint.mk: Remove bogus include directive.
26762
26763         maint.mk: improve empty-line-at-EOF check
26764         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26765         solution, rather than tail+Perl-based one.  The latter would read
26766         a few kilobytes from the end of each file, and did not handle empty
26767         files properly.
26768
26769         maint.mk: print the elapsed time for each syntax-check rule
26770         * top/maint.mk (sc_m_rules_): Save start time in a file.
26771         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26772         (local-check): Interpose the .z rules
26773
26774 2010-04-11  Jim Meyering  <meyering@redhat.com>
26775
26776         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26777         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26778         empty file with one that ends in an empty line.
26779
26780 2010-04-10  Bruno Haible  <bruno@clisp.org>
26781
26782         mkdir: Make it work on mingw64.
26783         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26784         * lib/mkdir.c: Update comment.
26785         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26786
26787 2010-04-10  Bruno Haible  <bruno@clisp.org>
26788
26789         Don't override improved macro from newer autoconf.
26790         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26791         autoconf >= 2.62.
26792         Reported by Joel E. Denny <jdenny@clemson.edu>.
26793
26794 2010-04-10  Jim Meyering  <meyering@redhat.com>
26795
26796         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26797         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26798
26799         maint.mk: correct a diagnostic
26800         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26801         in diagnostic; now use $prohibit.
26802
26803 2010-04-10  Bruno Haible  <address@hidden>
26804
26805         fchownat: Fix a C++ test error on Solaris 8.
26806         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26807         the function does not exist.
26808
26809 2010-04-10  Bruno Haible  <bruno@clisp.org>
26810
26811         vasnprintf: Add more tests.
26812         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26813         (test_function): Test converting an invalid wide string.
26814
26815         vasnprintf: Correct handling of unconvertible wide string arguments.
26816         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26817         VASNPRINTF.
26818         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26819         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26820         smaller than the expected maximum need for the directive. Set errno to
26821         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26822         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26824         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26825         * modules/vasnprintf (Files): Add m4/printf.m4.
26826         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26827
26828 2010-04-10  Bruno Haible  <bruno@clisp.org>
26829
26830         vasnprintf: Fix crash in %ls directive.
26831         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26832         string is passed as argument to %ls, with no precision and no width.
26833         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26834
26835 2010-04-10  Bruno Haible  <bruno@clisp.org>
26836
26837         vasnprintf: Fix multiple test failures on mingw.
26838         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26839         _snprintf, or snwprintf, not _snwprintf.
26840
26841 2010-04-10  Bruno Haible  <bruno@clisp.org>
26842
26843         write: Fix a C++ test error on mingw.
26844         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26845
26846 2010-04-10  Bruno Haible  <bruno@clisp.org>
26847
26848         vasnprintf test: Reduce code duplication.
26849         * tests/test-vasnprintf.c (test_function): New function, extracted from
26850         test_vasnprintf.
26851         (test_vasnprintf, test_asnprintf): Invoke it.
26852
26853 2010-04-10  Bruno Haible  <bruno@clisp.org>
26854
26855         strnlen: Fix warning in C++ mode on MacOS X.
26856         * lib/string.in.h (strnlen): Use the modern idiom.
26857         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26858         defining strnlen as a macro already in <config.h>.
26859         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26860         REPLACE_STRNLEN.
26861         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26862         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26863
26864 2010-04-08  James Youngman  <jay@gnu.org>
26865
26866         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26867         the example.
26868
26869 2010-04-09  Jim Meyering  <meyering@redhat.com>
26870
26871         maint.mk: print better diagnostic when there is no $(_hv_file)
26872         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26873         announce that when $(_hv_file) (aka help-version) does not exist.
26874
26875         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26876         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26877         not try to interpret its random input bytes.  Jarno Rajahalme reported
26878         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26879         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26880         (mktempd_): Likewise, just in case.
26881
26882         ftruncate: add two years to projected module removal date: 2012
26883         * m4/ftruncate.m4: Adjust comments.
26884
26885         ftruncate: mark module as obsolete; even MinGW provides it, now
26886         * modules/ftruncate (Status): Obsolete.
26887         (Notice): Say that.
26888         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26889         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26890
26891 2010-04-08  Bruno Haible  <bruno@clisp.org>
26892
26893         Fix side effects from tests-related modules.
26894         * modules/dprintf-posix (Comment): New section.
26895         * modules/fprintf-posix (Comment): Likewise.
26896         * modules/obstack-printf-posix (Comment): Likewise.
26897         * modules/printf-posix (Comment): Likewise.
26898         * modules/snprintf-posix (Comment): Likewise.
26899         * modules/sprintf-posix (Comment): Likewise.
26900         * modules/vasnprintf-posix (Comment): Likewise.
26901         * modules/vasprintf-posix (Comment): Likewise.
26902         * modules/vdprintf-posix (Comment): Likewise.
26903         * modules/vfprintf-posix (Comment): Likewise.
26904         * modules/vprintf-posix (Comment): Likewise.
26905         * modules/vsnprintf-posix (Comment): Likewise.
26906         * modules/vsprintf-posix (Comment): Likewise.
26907         * modules/xprintf-posix (Comment): Likewise.
26908         * modules/xvasprintf-posix (Comment): Likewise.
26909         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26910         * modules/floorf-tests (Depends-on): Likewise.
26911         * modules/round-tests (Depends-on): Likewise.
26912         * modules/roundf-tests (Depends-on): Likewise.
26913         * modules/trunc-tests (Depends-on): Likewise.
26914         * modules/truncf-tests (Depends-on): Likewise.
26915         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26916         'fprintf-posix' module is not present.
26917         * tests/test-floorf2.c (check): Likewise.
26918         * tests/test-trunc2.c (check): Likewise.
26919         * tests/test-truncf2.c (check): Likewise.
26920         * tests/test-round2.c (equal): Likewise.
26921         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26922
26923 2010-04-07  Karl Berry  <karl@gnu.org>
26924
26925         * config/srclist.txt,
26926         * config/srclistvars.sh,
26927         * config/srclist-update: doc fixes.
26928
26929 2010-04-07  Jim Meyering  <meyering@redhat.com>
26930
26931         maint.mk: add a PATH crosschecking syntax-check rule
26932         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26933         Useful if you use a test like the one in help-version (coreutils,
26934         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26935         printed by prog --version.
26936
26937 2010-04-06  Bruno Haible  <bruno@clisp.org>
26938
26939         Fix link error on mingw.
26940         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26941         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26942
26943 2010-04-06  Bruno Haible  <bruno@clisp.org>
26944
26945         Assume rmdir exists.
26946         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26947
26948 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26949
26950         doc: update users.txt
26951         * users.txt: Add gcal.
26952
26953 2010-04-06  Jim Meyering  <meyering@redhat.com>
26954
26955         init.sh: simply unset TMPDIR rather than risking env -i
26956         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26957         although it probably works fine on all Unix-based systems, some
26958         systems (Cygwin?) cannot tolerate a totally cleared environment.
26959         Suggestion from Eric Blake.
26960
26961 2010-04-06  Jim Meyering  <meyering@redhat.com>
26962
26963         init.sh: portability fix: use env's POSIX-specified -i option not -u
26964         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26965         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26966
26967 2010-04-05  Bruno Haible  <bruno@clisp.org>
26968
26969         btowc: Work around Cygwin 1.7.2 bug.
26970         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26971         does not map NUL to 0.
26972         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26973
26974 2010-04-05  Bruno Haible  <bruno@clisp.org>
26975
26976         Make the multithread modules work on Cygwin 1.7.2.
26977         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26978         imported symbols can be declared weak, so that it returns "no" on
26979         Cygwin 1.7.2.
26980
26981 2010-04-05  Bruno Haible  <bruno@clisp.org>
26982
26983         Use the module 'strncat'.
26984         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26985
26986         Tests for module 'strncat'.
26987         * modules/strncat-tests: New file.
26988         * tests/test-strncat.c: New file.
26989
26990         New module 'strncat'.
26991         * lib/string.in.h (strncat): New declaration.
26992         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26993         * m4/strncat.m4: New file, based on m4/memchr.m4.
26994         * modules/strncat: New file.
26995         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26996         is declared.
26997         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26998         REPLACE_STRNCAT.
26999         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
27000         REPLACE_STRNCAT.
27001         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
27002         module.
27003         * tests/test-string-c++.cc: Check signature of strncat.
27004
27005 2010-04-05  Jim Meyering  <meyering@redhat.com>
27006
27007         xstrtoumax-tests: convert to use init.sh
27008         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
27009         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27010         Use Exit, not exit.
27011         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27012
27013         xstrtoimax-tests: convert to use init.sh
27014         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
27015         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27016         Use Exit, not exit.
27017         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27018
27019 2010-04-05  Bruno Haible  <bruno@clisp.org>
27020
27021         sys_socket: Avoid #define replacements in C++ mode.
27022         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27023         warning to the function if possible, rather than #defining the symbol
27024         to a dysfunctional alias.
27025
27026 2010-04-05  Bruno Haible  <bruno@clisp.org>
27027
27028         fseeko: Fix C++ test error on mingw.
27029         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27030         gl_FUNC_FSEEKO.
27031         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27032         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27033         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27034         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27035
27036 2010-04-05  Bruno Haible  <bruno@clisp.org>
27037
27038         duplocale: Improve test output.
27039         * tests/test-duplocale.c (main): Print reason for skipped test.
27040
27041 2010-04-05  Bruno Haible  <bruno@clisp.org>
27042
27043         Assume rmdir exists.
27044         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27045         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27046
27047 2010-04-05  Bruno Haible  <bruno@clisp.org>
27048
27049         Fix link error on Solaris 8 with cc.
27050         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27051
27052 2010-04-05  Bruno Haible  <bruno@clisp.org>
27053
27054         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27055         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27056
27057 2010-04-05  Bruno Haible  <bruno@clisp.org>
27058
27059         vasprintf: Update documentation.
27060         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27061
27062 2010-04-05  Bruno Haible  <bruno@clisp.org>
27063
27064         ptsname: Improve test.
27065         * tests/test-ptsname.c (main): Also try the various master names of BSD
27066         systems.
27067
27068 2010-04-05  Bruno Haible  <bruno@clisp.org>
27069
27070         memchr: Avoid a possible C++ test error.
27071         * lib/string.in.h (memchr): Provide declaration if function is missing.
27072         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27073         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27075         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27076
27077 2010-04-05  Bruno Haible  <bruno@clisp.org>
27078
27079         strtok_r: Improve idiom.
27080         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27081         AC_LIBOBJ is used.
27082
27083 2010-04-05  Bruno Haible  <bruno@clisp.org>
27084
27085         strdup: Improve idiom.
27086         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27087         AC_LIBOBJ is used.
27088         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27089         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27090         when AC_LIBOBJ is used.
27091
27092 2010-04-05  Bruno Haible  <bruno@clisp.org>
27093
27094         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27095         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27096         don't set REPLACE_MBSINIT to 1.
27097         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27098         don't set REPLACE_MBRTOWC to 1.
27099         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27100         exist, don't set REPLACE_MBSRTOWCS to 1.
27101         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27102         exist, don't set REPLACE_MBSNRTOWCS to 1.
27103         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27104         don't set REPLACE_WCRTOMB to 1.
27105         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27106         exist, don't set REPLACE_WCSRTOMBS to 1.
27107         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27108         exist, don't set REPLACE_WCSNRTOMBS to 1.
27109
27110 2010-04-05  Bruno Haible  <bruno@clisp.org>
27111
27112         ldexpl: Improve idiom.
27113         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27114         make sure to set HAVE_DECL_LDEXPL to 0.
27115
27116 2010-04-05  Jim Meyering  <meyering@redhat.com>
27117
27118         xstrtol-tests: convert to use init.sh
27119         * modules/xstrtol-tests (Files): Add tests/init.sh.
27120         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27121         Use Exit, not exit.
27122         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27123
27124         atexit-tests: convert to use init.sh
27125         * modules/atexit-tests (Files): Add tests/init.sh.
27126         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27127         Use Exit, not exit.
27128         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27129
27130         init.sh: fix typo
27131         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27132
27133         init.sh: make it easier for a test script to write to the tty, ...
27134         when using automake's parallel-tests mode.
27135         * tests/init.sh (stderr_fileno_): Define overridable variable.
27136         (warn_): New function, to use it.
27137         (fail_, skip_, framework_failure_): Use warn_.
27138
27139 2010-04-04  Bruno Haible  <bruno@clisp.org>
27140
27141         btowc: Avoid warning.
27142         * lib/btowc.c: Include <stdlib.h>.
27143         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27144
27145 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27146             Bruno Haible  <bruno@clisp.org>
27147
27148         wchar: Port to NetBSD 1.5.
27149         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27150         * lib/wctype.in.h (WEOF): Likewise.
27151
27152 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27153             Bruno Haible  <bruno@clisp.org>
27154
27155         Port extended stdio to NetBSD 1.5.
27156         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27157         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27158         older.
27159
27160 2010-04-04  Bruno Haible  <bruno@clisp.org>
27161
27162         string: Remove unused substitution.
27163         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27164         HAVE_DECL_STRERROR.
27165         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27166
27167 2010-04-04  Bruno Haible  <bruno@clisp.org>
27168
27169         strtod: Avoid a possible C++ test error.
27170         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27171         set REPLACE_STRTOD.
27172
27173 2010-04-04  Bruno Haible  <bruno@clisp.org>
27174
27175         strerror: Update documentation.
27176         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27177
27178 2010-04-04  Bruno Haible  <bruno@clisp.org>
27179
27180         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27181         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27182         _GL_CXXALIAS_SYS_CAST.
27183
27184 2010-04-04  Bruno Haible  <bruno@clisp.org>
27185
27186         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27187         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27188         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27189         REPLACE_FREXPL to 1.
27190         * doc/posix-functions/frexpl.texi: Update documentation.
27191
27192 2010-04-04  Bruno Haible  <bruno@clisp.org>
27193
27194         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27195         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27196
27197 2010-04-04  Bruno Haible  <bruno@clisp.org>
27198
27199         Implement nanosleep for native Windows.
27200         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27201
27202 2010-04-04  Bruno Haible  <bruno@clisp.org>
27203
27204         math: Fix some C++ test errors on Solaris 8.
27205         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27206
27207 2010-04-04  Bruno Haible  <bruno@clisp.org>
27208
27209         math: Fix some C++ test errors on Cygwin.
27210         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27211         truncl): Provide declaration if the system does not have it.
27212         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27213         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27214         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27215         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27216         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27217         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27218         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27219         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27220         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27221         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27222         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27223         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27224         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27225         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27226         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27227         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27229         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27230         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27231         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27232         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27233         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27234
27235 2010-04-04  Bruno Haible  <bruno@clisp.org>
27236
27237         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27238         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27239         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27240         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27241         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27242         * m4/isinf.m4 (gl_ISINF): Likewise.
27243         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27244
27245 2010-04-04  Bruno Haible  <bruno@clisp.org>
27246
27247         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27248         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27249
27250 2010-04-04  Bruno Haible  <bruno@clisp.org>
27251
27252         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27253         * modules/tmpfile (configure.ac): Update.
27254
27255         tmpfile: Fix C++ test error on mingw.
27256         * lib/stdio.in.h (tmpfile): New declaration.
27257         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27258         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27259         * modules/tmpfile (Depends-on): Add stdio.
27260         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27261         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27262         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27263         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27264         REPLACE_TMPFILE.
27265         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27266
27267 2010-04-04  Bruno Haible  <bruno@clisp.org>
27268
27269         ioctl: Fix C++ test error on mingw.
27270         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27271         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27272         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27273
27274 2010-04-03  Bruno Haible  <bruno@clisp.org>
27275
27276         wcwidth: Fix C++ test error on mingw.
27277         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27279         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27280
27281 2010-04-03  Bruno Haible  <bruno@clisp.org>
27282
27283         nanosleep: Fix C++ test error on mingw.
27284         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27285         * lib/time.in.h (nanosleep): Use modern idiom.
27286         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27287         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27288         REPLACE_NANOSLEEP to 1.
27289         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27290         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27291
27292 2010-04-03  Bruno Haible  <bruno@clisp.org>
27293
27294         strptime: Fix C++ test error on mingw.
27295         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27296         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27297         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27298         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27299         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27300         not REPLACE_STRPTIME.
27301         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27302         REPLACE_STRPTIME.
27303
27304 2010-04-03  Bruno Haible  <bruno@clisp.org>
27305
27306         timegm: Fix C++ test error on mingw.
27307         * lib/time.in.h (timegm): Use modern idiom.
27308         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27309         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27310         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27311         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27312
27313 2010-04-03  Bruno Haible  <bruno@clisp.org>
27314
27315         timegm: Assume declaration if function exists.
27316         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27317         if it exists. Don't clobber ac_cv_func_timegm.
27318
27319 2010-04-03  Bruno Haible  <bruno@clisp.org>
27320
27321         time_r: Fix C++ test error on mingw.
27322         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27323         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27324         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27326         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27327
27328 2010-04-03  Bruno Haible  <bruno@clisp.org>
27329
27330         time_r: Minor updates.
27331         * modules/time_r (Description): Mention the provided functions.
27332         * lib/time_r.c: Don't include <string.h>.
27333         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27334         * doc/posix-functions/localtime_r.texi: Likewise.
27335
27336 2010-04-03  Bruno Haible  <bruno@clisp.org>
27337
27338         time: Fix regression introduced on 2010-03-08.
27339         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27340         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27341
27342 2010-04-03  Jim Meyering  <meyering@redhat.com>
27343
27344         maint.mk: don't silently disable project-specific syntax-check rules
27345         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27346         that they need to convert their project-specific syntax-check rules
27347         to use the new _sc_search_regexp.
27348
27349 2010-04-03  Bruno Haible  <bruno@clisp.org>
27350
27351         fchdir: Fix regression introduced on 2010-03-08.
27352         * lib/unistd.in.h (fchdir): Fix declaration.
27353         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27355         REPLACE_FCHDIR.
27356         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27357         REPLACE_FCHDIR.
27358
27359 2010-04-03  Bruno Haible  <bruno@clisp.org>
27360
27361         getpagesize: Fix C++ test error on mingw.
27362         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27363         system does not declare the function.
27364         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27365         declared.
27366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27367         HAVE_DECL_GETPAGESIZE.
27368         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27369
27370 2010-04-03  Bruno Haible  <bruno@clisp.org>
27371
27372         stdio: Make C++ tests work on mingw.
27373         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27374         does not declare the function.
27375
27376 2010-04-03  Bruno Haible  <bruno@clisp.org>
27377
27378         ftello: Fix C++ test error on mingw.
27379         * lib/stdio.in.h (ftello): Use modern idiom.
27380         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27381         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27382         is missing and that it needs to be replaced.
27383         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27385         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27386
27387 2010-04-03  Bruno Haible  <bruno@clisp.org>
27388
27389         fseeko: Fix C++ test error on mingw.
27390         * lib/stdio.in.h (fseeko): Use modern idiom.
27391         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27392         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27393         is missing and that it needs to be replaced.
27394         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27396         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27397
27398 2010-04-03  Bruno Haible  <bruno@clisp.org>
27399
27400         mkstemp: Fix C++ test error on mingw.
27401         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27402         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27403         function is missing and that it needs to be replaced.
27404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27405         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27406
27407 2010-04-03  Bruno Haible  <bruno@clisp.org>
27408
27409         stpncpy: Fix C++ test error on mingw.
27410         * lib/string.in.h (stpncpy): Use modern idiom.
27411         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27412         function is missing and that it needs to be replaced.
27413         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27414         REPLACE_STPNCPY.
27415         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27416
27417 2010-04-03  Bruno Haible  <bruno@clisp.org>
27418
27419         sys_stat: Fix C++ test error on mingw.
27420         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27421         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27422
27423 2010-04-03  Bruno Haible  <bruno@clisp.org>
27424
27425         pty: Update doc.
27426         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27427
27428 2010-04-03  Bruno Haible  <bruno@clisp.org>
27429
27430         unistd: Fix C++ test error on mingw.
27431         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27432
27433 2010-04-03  Bruno Haible  <bruno@clisp.org>
27434
27435         Update doc regarding mingw.
27436         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27437         * doc/glibc-functions/login_tty.texi: Likewise.
27438         * doc/glibc-functions/forkpty.texi: Likewise.
27439
27440 2010-04-03  Bruno Haible  <bruno@clisp.org>
27441
27442         stdlib: Avoid compilation failure of c-strtold on mingw.
27443         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27444
27445 2010-04-03  Bruno Haible  <bruno@clisp.org>
27446
27447         locale: Make C++ tests work on Cygwin and mingw.
27448         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27449         cannot provide the function.
27450         Reported by Simon Josefsson.
27451
27452 2010-04-03  Bruno Haible  <bruno@clisp.org>
27453
27454         localename: Port to MacOS X 10.6.
27455         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27456         memory layout of the locales in MacOS X 10.6 as well.
27457         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27458
27459 2010-04-02  Bruno Haible  <bruno@clisp.org>
27460
27461         gnulib-tool: Ensure that long-running tests are executed last.
27462         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27463         running tests after the one for the other tests.
27464
27465 2010-04-02  Bruno Haible  <bruno@clisp.org>
27466
27467         gnulib-tool: Ensure the tests in the main directory are executed first.
27468         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27469         start with the current directory.
27470
27471 2010-04-02  Bruno Haible  <bruno@clisp.org>
27472
27473         Tests for module 'havelib', moved here from GNU gettext.
27474         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27475         modifications.
27476         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27477         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27478         with modifications.
27479         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27480         modifications.
27481         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27482         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27483         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27484         with modifications.
27485         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27486         with modifications.
27487         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27488         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27489         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27490         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27491         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27492         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27493         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27494         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27495         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27496         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27497         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27498         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27499         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27500         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27501         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27502         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27503         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27504         with modifications.
27505         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27506         with modifications.
27507         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27508         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27509         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27510         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27511         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27512         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27513         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27514         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27515         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27516         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27517         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27518         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27519         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27520         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27521         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27522         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27523         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27524         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27525         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27526         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27527         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27528         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27529         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27530         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27531         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27532         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27533         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27534         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27535         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27536         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27537         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27538         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27539         * tests/havelib/rpathx/rpathx.c: New file, from
27540         gettext/autoconf-lib-link.
27541         * tests/havelib/rpathx/Makefile.am: New file, from
27542         gettext/autoconf-lib-link.
27543         * tests/havelib/rpathx/configure.ac: New file, from
27544         gettext/autoconf-lib-link with modifications.
27545         * tests/havelib/rpathy/rpathy.c: New file, from
27546         gettext/autoconf-lib-link.
27547         * tests/havelib/rpathy/Makefile.am: New file, from
27548         gettext/autoconf-lib-link.
27549         * tests/havelib/rpathy/configure.ac: New file, from
27550         gettext/autoconf-lib-link with modifications.
27551         * tests/havelib/rpathz/rpathz.c: New file, from
27552         gettext/autoconf-lib-link.
27553         * tests/havelib/rpathz/Makefile.am: New file, from
27554         gettext/autoconf-lib-link.
27555         * tests/havelib/rpathz/configure.ac: New file, from
27556         gettext/autoconf-lib-link with modifications.
27557         * tests/havelib/rpathlx/usex.c: New file, from
27558         gettext/autoconf-lib-link.
27559         * tests/havelib/rpathlx/Makefile.am: New file, from
27560         gettext/autoconf-lib-link.
27561         * tests/havelib/rpathlx/configure.ac: New file, from
27562         gettext/autoconf-lib-link with modifications.
27563         * tests/havelib/rpathly/usey.c: New file, from
27564         gettext/autoconf-lib-link.
27565         * tests/havelib/rpathly/Makefile.am: New file, from
27566         gettext/autoconf-lib-link.
27567         * tests/havelib/rpathly/configure.ac: New file, from
27568         gettext/autoconf-lib-link with modifications.
27569         * tests/havelib/rpathlz/usez.c: New file, from
27570         gettext/autoconf-lib-link.
27571         * tests/havelib/rpathlz/Makefile.am: New file, from
27572         gettext/autoconf-lib-link.
27573         * tests/havelib/rpathlz/configure.ac: New file, from
27574         gettext/autoconf-lib-link with modifications.
27575         * tests/havelib/rpathlyx/usey.c: New file, from
27576         gettext/autoconf-lib-link.
27577         * tests/havelib/rpathlyx/Makefile.am: New file, from
27578         gettext/autoconf-lib-link.
27579         * tests/havelib/rpathlyx/configure.ac: New file, from
27580         gettext/autoconf-lib-link with modifications.
27581         * tests/havelib/rpathlzyx/usez.c: New file, from
27582         gettext/autoconf-lib-link.
27583         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27584         gettext/autoconf-lib-link.
27585         * tests/havelib/rpathlzyx/configure.ac: New file, from
27586         gettext/autoconf-lib-link with modifications.
27587         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27588         with modifications.
27589
27590 2010-04-02  Bruno Haible  <bruno@clisp.org>
27591
27592         gnulib-tool: Create distributed built sources also for the tests.
27593         * gnulib-tool (func_create_testdir): Also generate distributed built
27594         sources in the tests directory.
27595
27596 2010-04-02  Bruno Haible  <bruno@clisp.org>
27597
27598         gnulib-tool: Obey user's environment variables.
27599         * gnulib-tool (func_create_testdir): When creating built sources,
27600         respect the environment variables for autoconf, automake, etc. given by
27601         the user.
27602
27603 2010-04-02  Bruno Haible  <bruno@clisp.org>
27604
27605         gnulib-tool: Provide the value of --m4-base to modules.
27606         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27607         of gl_m4_base.
27608
27609 2010-04-02  Eric Blake  <eblake@redhat.com>
27610
27611         maint.mk: fix some fallout
27612         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27613         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27614
27615 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27616
27617         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27618         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27619         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27620         (sc_cast_of_x_alloc_return_value): Likewise.
27621         (sc_cast_of_alloca_return_value): Likewise.
27622         (sc_space_tab): Likewise.
27623         (sc_prohibit_atoi_atof): Likewise.
27624         (sc_prohibit_magic_number_exit): Likewise.
27625         (sc_error_exit_success): Likewise.
27626         (sc_file_system): Likewise.
27627         (sc_prohibit_have_config_h): Likewise.
27628         (sc_require_config_h): Likewise.
27629         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27630         (sc_obsolete_symbols): Likewise.
27631         (sc_changelog): Likewise.
27632         (sc_program_name): Likewise.
27633         (sc_the_the): Likewise.
27634         (sc_trailing_blank): Likewise.
27635         (sc_two_space_separator_in_usage): Likewise.
27636         (sc_useless_cpp_parens): Likewise.
27637         (sc_GPL_version): Likewise.
27638         (sc_GFDL_version): Likewise.
27639         (sc_texinfo_acronym): Likewise.
27640         (sc_prohibit_cvs_keyword): Likewise.
27641         (sc_prohibit_stat_st_blocks): Likewise.
27642         (sc_prohibit_S_IS_definition): Likewise.
27643         (sc_redundant_const): Likewise.
27644         (sc_makefile_TAB_only_indentation): Likewise.
27645         (sc_m4_quote_check): Likewise.
27646         (sc_makefile_path_separator_check): Likewise.
27647         (sc_copyright_check): Likewise.
27648         (sc_Wundef_boolean): Likewise.
27649         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27650
27651         maint.mk: match 0 or more whitespace-before-function-call '('
27652         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27653         that have zero or two-and-more spaces between the function name
27654         and the open parenthesis.
27655         (sc_error_message_warn_fatal): Likewise.
27656         (sc_error_message_uppercase): Likewise.
27657         (sc_error_message_period): Likewise.
27658
27659 2010-03-31  Eric Blake  <eblake@redhat.com>
27660
27661         maint.mk: check for [ as well as test
27662         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27663         Based on a libvirt report by Matthias Bolte.
27664
27665         gnumakefile: don't squelch _version output
27666         * top/GNUmakefile (_version): Create one-shot dependency rather
27667         than using $(shell) when version must be regenerated.
27668         (_autoreconf): Run verbosely, by default.
27669
27670         sys_time: avoid compiler warnings
27671         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27672         unconditional, fixing regression from 2010-03-29.
27673         Reported by Simon Josefsson.
27674
27675 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27676
27677         maint.mk: s/_header_without_use/_sc_header_without_use/
27678         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27679         (sc_prohibit_assert_without_use): Use the new name.
27680         (sc_prohibit_close_stream_without_use): Likewise.
27681         (sc_prohibit_getopt_without_use): Likewise.
27682         (sc_prohibit_quotearg_without_use): Likewise.
27683         (sc_prohibit_quote_without_use): Likewise.
27684         (sc_prohibit_long_options_without_use): Likewise.
27685         (sc_prohibit_inttostr_without_use): Likewise.
27686         (sc_prohibit_ignore_value_without_use): Likewise.
27687         (sc_prohibit_error_without_use): Likewise.
27688         (sc_prohibit_xalloc_without_use): Likewise.
27689         (sc_prohibit_hash_without_use): Likewise.
27690         (sc_prohibit_hash_pjw_without_use): Likewise.
27691         (sc_prohibit_safe_read_without_use): Likewise.
27692         (sc_prohibit_argmatch_without_use): Likewise.
27693         (sc_prohibit_canonicalize_without_use): Likewise.
27694         (sc_prohibit_root_dev_ino_without_use): Likewise.
27695         (sc_prohibit_openat_without_use): Likewise.
27696         (sc_prohibit_c_ctype_without_use): Likewise.
27697         (sc_prohibit_signal_without_use): Likewise.
27698         (sc_prohibit_intprops_without_use): Likewise.
27699
27700 2010-03-30  Eric Blake  <eblake@redhat.com>
27701
27702         maint: improve module indicators
27703         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27704         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27705         columns, and avoid extra macro expansion.
27706
27707         fdopendir: work around FreeBSD bug
27708         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27709         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27710         * modules/dirent (Makefile.am): Substitute it.
27711         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27712         declaration.
27713         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27714         fix.
27715         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27716
27717 2010-03-29  Bruno Haible  <bruno@clisp.org>
27718
27719         Emit #pragma system_header after the inclusion guard, not before.
27720         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27721         guard that spans the entire file, not before. This enables an
27722         optimization in GCC's preprocessor.
27723         * lib/ctype.in.h: Likewise.
27724         * lib/dirent.in.h: Likewise.
27725         * lib/errno.in.h: Likewise.
27726         * lib/float.in.h: Likewise.
27727         * lib/getopt.in.h: Likewise.
27728         * lib/iconv.in.h: Likewise.
27729         * lib/langinfo.in.h: Likewise.
27730         * lib/locale.in.h: Likewise.
27731         * lib/math.in.h: Likewise.
27732         * lib/netdb.in.h: Likewise.
27733         * lib/netinet_in.in.h: Likewise.
27734         * lib/pty.in.h: Likewise.
27735         * lib/sched.in.h: Likewise.
27736         * lib/se-selinux.in.h: Likewise.
27737         * lib/search.in.h: Likewise.
27738         * lib/spawn.in.h: Likewise.
27739         * lib/stdarg.in.h: Likewise.
27740         * lib/stdint.in.h: Likewise.
27741         * lib/string.in.h: Likewise.
27742         * lib/strings.in.h: Likewise.
27743         * lib/sys_file.in.h: Likewise.
27744         * lib/sys_ioctl.in.h: Likewise.
27745         * lib/sys_time.in.h: Likewise.
27746         * lib/sys_times.in.h: Likewise.
27747         * lib/sys_utsname.in.h: Likewise.
27748         * lib/sys_wait.in.h: Likewise.
27749         * lib/sysexits.in.h: Likewise.
27750         * lib/wctype.in.h: Likewise.
27751
27752 2010-03-28  James Youngman  <jay@gnu.org>
27753
27754         save-cwd: don't leak a file descriptor when the caller execs.
27755         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27756         saved file descriptor.
27757         * modules/save-cwd (Depends-on): Depend on cloexec.
27758
27759 2010-03-29  Bruno Haible  <bruno@clisp.org>
27760
27761         Remove vestiges of fts-lgpl module.
27762         * lib/fts_.h: Assume GNULIB_FTS is 1.
27763         * lib/fts.c: Likewise.
27764         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27765
27766 2010-03-28  Bruno Haible  <bruno@clisp.org>
27767
27768         Fix definition of tests witness macro.
27769         * gnulib-tool (func_import): Fix definition of witness macro.
27770
27771 2010-03-28  Bruno Haible  <bruno@clisp.org>
27772
27773         Fix ioctl's protoype on glibc systems.
27774         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27775         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27776         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27777         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27778         signature. If not, arrange to replace the ioctl function.
27779         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27780         REPLACE_IOCTL.
27781         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27782         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27783         Reported by Ludovic Courtès <ludo@gnu.org>.
27784
27785 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27786
27787         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27788         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27789         made it so grep -r --include=GLOB* ... did not work.
27790
27791 2010-03-26  Jim Meyering  <meyering@redhat.com>
27792             Eric Blake  <eblake@redhat.com>
27793
27794         maint.mk: prohibit use of test's -o and -a operators
27795         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27796
27797 2010-03-28  Bruno Haible  <bruno@clisp.org>
27798
27799         Remove unused GNULIB_XYZ macro definitions.
27800         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27801         invocation.
27802
27803 2010-03-28  Bruno Haible  <bruno@clisp.org>
27804
27805         Mark privileged tests modules.
27806         * modules/idpriv-drop-tests (Status): New section.
27807         * modules/idpriv-droptemp-tests (Status): New section.
27808
27809 2010-03-28  Bruno Haible  <bruno@clisp.org>
27810
27811         Split C++ tests into separate tests modules.
27812         * modules/dirent-c++-tests: New file, extracted from
27813         modules/dirent-tests.
27814         * modules/dirent-tests: Depend on it.
27815         * modules/fcntl-h-c++-tests: New file, extracted from
27816         modules/fcntl-h-tests.
27817         * modules/fcntl-h-tests: Depend on it.
27818         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27819         * modules/glob-tests: Depend on it.
27820         * modules/iconv-h-c++-tests: New file, extracted from
27821         modules/iconv-h-tests.
27822         * modules/iconv-h-tests: Depend on it.
27823         * modules/langinfo-c++-tests: New file, extracted from
27824         modules/langinfo-tests.
27825         * modules/langinfo-tests: Depend on it.
27826         * modules/locale-c++-tests: New file, extracted from
27827         modules/locale-tests.
27828         * modules/locale-tests: Depend on it.
27829         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27830         * modules/math-tests: Depend on it.
27831         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27832         * modules/pty-tests: Depend on it.
27833         * modules/search-c++-tests: New file, extracted from
27834         modules/search-tests.
27835         * modules/search-tests: Depend on it.
27836         * modules/signal-c++-tests: New file, extracted from
27837         modules/signal-tests.
27838         * modules/signal-tests: Depend on it.
27839         * modules/spawn-c++-tests: New file, extracted from
27840         modules/spawn-tests.
27841         * modules/spawn-tests: Depend on it.
27842         * modules/stdio-c++-tests: New file, extracted from
27843         modules/stdio-tests.
27844         * modules/stdio-tests: Depend on it.
27845         * modules/stdlib-c++-tests: New file, extracted from
27846         modules/stdlib-tests.
27847         * modules/stdlib-tests: Depend on it.
27848         * modules/string-c++-tests: New file, extracted from
27849         modules/string-tests.
27850         * modules/string-tests: Depend on it.
27851         * modules/sys_ioctl-c++-tests: New file, extracted from
27852         modules/sys_ioctl-tests.
27853         * modules/sys_ioctl-tests: Depend on it.
27854         * modules/sys_select-c++-tests: New file, extracted from
27855         modules/sys_select-tests.
27856         * modules/sys_select-tests: Depend on it.
27857         * modules/sys_socket-c++-tests: New file, extracted from
27858         modules/sys_socket-tests.
27859         * modules/sys_socket-tests: Depend on it.
27860         * modules/sys_stat-c++-tests: New file, extracted from
27861         modules/sys_stat-tests.
27862         * modules/sys_stat-tests: Depend on it.
27863         * modules/sys_time-c++-tests: New file, extracted from
27864         modules/sys_time-tests.
27865         * modules/sys_time-tests: Depend on it.
27866         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27867         * modules/time-tests: Depend on it.
27868         * modules/unistd-c++-tests: New file, extracted from
27869         modules/unistd-tests.
27870         * modules/unistd-tests: Depend on it.
27871         * modules/wchar-c++-tests: New file, extracted from
27872         modules/wchar-tests.
27873         * modules/wchar-tests: Depend on it.
27874         * modules/wctype-c++-tests: New file, extracted from
27875         modules/wctype-tests.
27876         * modules/wctype-tests: Depend on it.
27877         Reported by Simon Josefsson.
27878
27879 2010-03-28  Bruno Haible  <bruno@clisp.org>
27880
27881         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27882         * gnulib-tool (func_exists_module): New function, extracted from
27883         func_verify_module.
27884         (func_verify_module): Use it.
27885         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27886         'foo' only if 'foo' exists.
27887         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27888         module.
27889
27890 2010-03-28  Bruno Haible  <bruno@clisp.org>
27891
27892         gnulib-tool: Add support for special categories of tests.
27893         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27894         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27895         (func_usage): Document them.
27896         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27897         inc_unportable_tests, inc_all_tests): New variables.
27898         (func_acceptable): Consider these variables.
27899         (func_modules_transitive_closure): Make it work when the 'Status' field
27900         consists of multiple words.
27901         (func_import): Store and restore the values of inc_cxx_tests,
27902         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27903         inc_all_tests in gnulib-comp.m4.
27904         (func_create_testdir): Set inc_all_tests to true.
27905         * doc/gnulib.texi (Extra tests modules): New section.
27906         Suggested by Jim Meyering.
27907
27908 2010-03-28  Bruno Haible  <bruno@clisp.org>
27909
27910         ansi-c++-opt: Allow turning off the C++ build by default.
27911         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27912         gl_CXX_CHOICE_DEFAULT_NO is defined.
27913         Requested by Eric Blake.
27914
27915 2010-03-28  Bruno Haible  <bruno@clisp.org>
27916
27917         unistd: Avoid #define replacements in C++ mode.
27918         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27919         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27920         setsockopt, shutdown, select): In C++, attach a warning to the function
27921         if possible, rather than #defining the symbol to a dysfunctional alias.
27922         Reported by John W. Eaton <jwe@gnu.org>.
27923
27924 2010-03-28  Bruno Haible  <bruno@clisp.org>
27925
27926         Fix link errors on mingw.
27927         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27928         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27929         $(LIBSOCKET).
27930         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27931         $(LIBSOCKET).
27932
27933 2010-03-28  Bruno Haible  <bruno@clisp.org>
27934             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27935
27936         lib-ignore: Determine different options for different compilers.
27937         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27938         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27939         Add comments.
27940         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27941         * NEWS: Mention the change.
27942
27943 2010-03-27  Bruno Haible  <bruno@clisp.org>
27944
27945         Remove unused GNULIB_XYZ macro definitions.
27946         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27947         * modules/fseek (configure.ac): Likewise.
27948         * modules/ioctl (configure.ac): Likewise.
27949         * modules/open (configure.ac): Likewise.
27950         * modules/stdlib-safer (configure.ac): Likewise.
27951
27952 2010-03-27  Bruno Haible  <bruno@clisp.org>
27953
27954         Add a remark about certain modules.
27955         * modules/malloc (Comment): New section.
27956         * modules/realloc (Comment): Likewise.
27957         * modules/sigpipe (Comment): Likewise.
27958
27959 2010-03-27  Bruno Haible  <bruno@clisp.org>
27960
27961         Resolve conflict between the two kinds of module indicators.
27962         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27963         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27964         * modules/canonicalize (configure.ac): Invoke
27965         gl_MODULE_INDICATOR_FOR_TESTS.
27966         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27967         GNULIB_XYZ.
27968         * tests/test-dirent-c++.cc: Likewise.
27969         * tests/test-dirent-safer.c: Likewise.
27970         * tests/test-dup2.c: Likewise.
27971         * tests/test-fchdir.c: Likewise.
27972         * tests/test-fcntl-h-c++.cc: Likewise.
27973         * tests/test-getopt.c: Likewise.
27974         * tests/test-getopt.h: Likewise.
27975         * tests/test-langinfo-c++.cc: Likewise.
27976         * tests/test-locale-c++.cc: Likewise.
27977         * tests/test-math-c++.cc: Likewise.
27978         * tests/test-pty-c++.cc: Likewise.
27979         * tests/test-search-c++.cc: Likewise.
27980         * tests/test-signal-c++.cc: Likewise.
27981         * tests/test-spawn-c++.cc: Likewise.
27982         * tests/test-stdio-c++.cc: Likewise.
27983         * tests/test-stdlib-c++.cc: Likewise.
27984         * tests/test-string-c++.cc: Likewise.
27985         * tests/test-sys_ioctl-c++.cc: Likewise.
27986         * tests/test-sys_select-c++.cc: Likewise.
27987         * tests/test-sys_socket-c++.cc: Likewise.
27988         * tests/test-sys_stat-c++.cc: Likewise.
27989         * tests/test-sys_time-c++.cc: Likewise.
27990         * tests/test-time-c++.cc: Likewise.
27991         * tests/test-unistd-c++.cc: Likewise.
27992         * tests/test-wchar-c++.cc: Likewise.
27993         * tests/uninorm/test-u8-nfc.c: Likewise.
27994         * tests/uninorm/test-u8-nfd.c: Likewise.
27995         * tests/uninorm/test-u8-nfkc.c: Likewise.
27996         * tests/uninorm/test-u8-nfkd.c: Likewise.
27997         * tests/uninorm/test-u16-nfc.c: Likewise.
27998         * tests/uninorm/test-u16-nfd.c: Likewise.
27999         * tests/uninorm/test-u16-nfkc.c: Likewise.
28000         * tests/uninorm/test-u16-nfkd.c: Likewise.
28001         * tests/uninorm/test-u32-nfc.c: Likewise.
28002         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28003         * tests/uninorm/test-u32-nfd.c: Likewise.
28004         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28005         * tests/uninorm/test-u32-nfkc.c: Likewise.
28006         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28007         * tests/uninorm/test-u32-nfkd.c: Likewise.
28008         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28009         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28010
28011 2010-03-27  Bruno Haible  <bruno@clisp.org>
28012
28013         Distinguish two kinds of module indicators.
28014         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
28015         gl_MODULE_INDICATOR.
28016         (gl_MODULE_INDICATOR): New macro.
28017         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28018         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28019         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28020         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28021         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28022         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28023         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28024         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28025         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28026         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28027         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28028         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28030         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28031         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28032         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28033         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28034         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28035         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28036         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28037         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28038         * modules/cloexec (configure.ac): Likewise.
28039         * modules/getopt-gnu (configure.ac): Likewise.
28040         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28041         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28042         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28043         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28044
28045 2010-03-27  Bruno Haible  <bruno@clisp.org>
28046
28047         New module description field 'Comment'.
28048         * gnulib-tool: New option --extract-comment.
28049         (func_usage): Document it.
28050         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28051         (func_get_comment): New function.
28052         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28053
28054 2010-03-27  Bruno Haible  <bruno@clisp.org>
28055
28056         Addendum to 2010-02-07 commit.
28057         * gnulib-tool (func_usage): Document --extract-applicability option.
28058
28059 2010-03-27  Bruno Haible  <bruno@clisp.org>
28060
28061         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28062         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28063         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28064         rather than link errors.
28065
28066 2010-03-27  Bruno Haible  <bruno@clisp.org>
28067
28068         Avoid side effects from tests-related modules on the compilation of lib.
28069         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28070         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28071         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28072         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28073         macro.
28074         (func_import): Define a witness macro. Assign it a value that depends
28075         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28076         tests-related modules.
28077         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28078         Reported by Jim Meyering.
28079
28080 2010-03-27  Bruno Haible  <bruno@clisp.org>
28081
28082         Factorize common .m4 code.
28083         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28084         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28085         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28086         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28087         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28088         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28089         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28090         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28091         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28092         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28093         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28094         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28095         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28096         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28097         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28098         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28099         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28100         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28101         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28102         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28103         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28104         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28105         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28106         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28107         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28108         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28109         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28110         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28111         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28112         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28113         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28114         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28115
28116 2010-03-27  Bruno Haible  <bruno@clisp.org>
28117
28118         Fix a compilation error on Cygwin with g++ >= 4.3.
28119         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28120         if it is undefined or if we alias it to chmod.
28121         (lstat): Don't warn about the use of this function if it is undefined
28122         or if we alias it to stat.
28123         Reported by Simon Josefsson.
28124
28125 2010-03-27  Bruno Haible  <bruno@clisp.org>
28126
28127         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28128         * modules/getlogin (configure.ac): Update.
28129
28130         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28131         * modules/getlogin_r (configure.ac): Update.
28132
28133         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28135         * modules/inet_ntop (configure.ac): Update.
28136
28137         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28138         * modules/inet_pton (configure.ac): Update.
28139
28140         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28141         * modules/mbslen (configure.ac): Update.
28142
28143         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28144         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28145         * modules/forkpty (configure.ac): Update.
28146         * modules/openpty (configure.ac): Update.
28147
28148 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28149
28150         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28151         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28152
28153 2010-03-25  Eric Blake  <eblake@redhat.com>
28154
28155         maint: use pragma consistently across replacement headers
28156         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28157         * lib/dirent.in.h (system_header): Likewise.
28158         * lib/errno.in.h (system_header): Likewise.
28159         * lib/float.in.h (system_header): Likewise.
28160         * lib/getopt.in.h (system_header): Likewise.
28161         * lib/iconv.in.h (system_header): Likewise.
28162         * lib/inttypes.in.h (system_header): Likewise.
28163         * lib/langinfo.in.h (system_header): Likewise.
28164         * lib/locale.in.h (system_header): Likewise.
28165         * lib/math.in.h (system_header): Likewise.
28166         * lib/netdb.in.h (system_header): Likewise.
28167         * lib/netinet_in.in.h (system_header): Likewise.
28168         * lib/pty.in.h (system_header): Likewise.
28169         * lib/sched.in.h (system_header): Likewise.
28170         * lib/se-selinux.in.h (system_header): Likewise.
28171         * lib/search.in.h (system_header): Likewise.
28172         * lib/spawn.in.h (system_header): Likewise.
28173         * lib/stdarg.in.h (system_header): Likewise.
28174         * lib/stdint.in.h (system_header): Likewise.
28175         * lib/string.in.h (system_header): Likewise.
28176         * lib/strings.in.h (system_header): Likewise.
28177         * lib/sys_file.in.h (system_header): Likewise.
28178         * lib/sys_ioctl.in.h (system_header): Likewise.
28179         * lib/sys_socket.in.h (system_header): Likewise.
28180         * lib/sys_times.in.h (system_header): Likewise.
28181         * lib/sys_utsname.in.h (system_header): Likewise.
28182         * lib/sys_wait.in.h (system_header): Likewise.
28183         * lib/sysexits.in.h (system_header): Likewise.
28184         * lib/unistd.in.h (system_header): Likewise.
28185         * lib/wctype.in.h (system_header): Likewise.
28186
28187         arpa/inet: fix mingw compilation warning
28188         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28189         Reported by Matthew Bolte.
28190
28191 2010-03-25  Bruno Haible  <bruno@clisp.org>
28192
28193         Avoid collision between gnulib wrapper and libintl wrapper.
28194         * lib/printf.c (printf): Don't define if a printf wrapper is already
28195         defined in intl/printf.c.
28196         Reported by Michel Boaventura <michel@michelboaventura.com>.
28197
28198 2010-03-25  Bruno Haible  <bruno@clisp.org>
28199
28200         Use ANSI C.
28201         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28202
28203 2010-03-25  Bruno Haible  <bruno@clisp.org>
28204
28205         Minor formatting changes.
28206         * lib/acosl.c: Insert space before function argument list.
28207         * lib/argz.c: Likewise.
28208         * lib/asinl.c: Likewise.
28209         * lib/expl.c: Likewise.
28210         * lib/gen-uni-tables.c: Likewise.
28211         * lib/gettext.h: Likewise.
28212         * lib/glthread/lock.h: Likewise.
28213         * lib/tanl.c: Likewise.
28214         * lib/uniname/uniname.c: Likewise.
28215         * tests/test-idpriv-drop.c: Likewise.
28216         * tests/test-idpriv-droptemp.c: Likewise.
28217         * tests/test-lock.c: Likewise.
28218         * tests/test-tls.c: Likewise.
28219         * lib/argp-help.c: Insert space before function-like macro argument
28220         list.
28221         * lib/memcmp.c: Likewise.
28222         * tests/test-base64.c: Likewise.
28223         * lib/localename.c: Insert space before sizeof's argument list.
28224         * lib/safe-alloc.h: Likewise.
28225         * lib/file-set.h: Insert space before macro argument list.
28226         * tests/test-argp.c: Likewise.
28227         * lib/argp-namefrob.h: Insert space before function parameter list.
28228         * lib/getaddrinfo.c: Likewise.
28229         * lib/netdb.in.h: Likewise.
28230         * lib/parse-duration.h: Likewise.
28231         * lib/parse-duration.c: Likewise.
28232         * lib/poll.c: Likewise.
28233         * lib/select.c: Likewise.
28234         * lib/trim.h: Likewise.
28235         * tests/test-usleep.c: Likewise.
28236         * lib/ldexpl.c: Insert space before function parameter list and before
28237         function argument list.
28238         * lib/logl.c: Likewise.
28239         * lib/sqrtl.c: Likewise.
28240         * lib/trim.c: Likewise.
28241         * lib/cosl.c: Use GNU style indentation. Insert space before function
28242         argument list.
28243         * lib/sinl.c: Likewise.
28244         * lib/tsearch.c: Insert space after 'for'.
28245         Reported by Jim Meyering.
28246
28247 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28248
28249         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28250         config header before grepping, as it's not present before
28251         autoreconf/configure are run.  Reported by Simon Josefsson.
28252
28253 2010-03-23  Bruno Haible  <bruno@clisp.org>
28254
28255         pt_chown: Make it work with automake < 1.11.
28256         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28257         Reported by Simon Josefsson.
28258
28259 2010-03-23  Bruno Haible  <bruno@clisp.org>
28260
28261         pt_chown: Don't depend on GPLed modules.
28262         * lib/pt_chown.c: Don't include idpriv.h.
28263         (main): Don't drop privileges.
28264         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28265         Reported by Simon Josefsson.
28266
28267 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28268
28269         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28270         suggestions from karl@freefriends.org (Karl Berry).
28271
28272 2010-03-22  Eric Blake  <eblake@redhat.com>
28273
28274         gethostname: further tweaks
28275         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28276         are overriding gethostname.
28277         Suggested by Bruno Haible.
28278
28279 2010-03-21  Bruno Haible  <bruno@clisp.org>
28280
28281         Fix comments.
28282         * lib/forkpty.c (rpl_forkpty): Fix comment.
28283         * lib/openpty.c (rpl_openpty): Likewise.
28284         Reported by Eric Blake.
28285
28286 2010-03-22  Eric Blake  <eblake@redhat.com>
28287
28288         gethostname: fix build on mingw
28289         * lib/unistd.in.h (includes): Work around fact that mingw
28290         <winsock2.h> re-includes <unistd.h>, by avoiding any
28291         redeclarations if we are being included by <winsock2.h>.
28292         Reported by Matthias Bolte.
28293
28294 2010-03-21  Bruno Haible  <bruno@clisp.org>
28295
28296         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28297         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28298         modifications.
28299         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28300         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28301         provide the replacement.
28302         * modules/forkpty (Depends-on): Add openpty, login_tty.
28303         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28304         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28305         * doc/glibc-functions/forkpty.texi: More supported platforms.
28306         * config/srclist.txt: Add forkpty.c (commented).
28307
28308 2010-03-21  Bruno Haible  <bruno@clisp.org>
28309
28310         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28311         (Makefile.am): Verify that PTY_LIB is defined.
28312
28313         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28314
28315 2010-03-21  Bruno Haible  <bruno@clisp.org>
28316
28317         Tests for module 'login_tty'.
28318         * modules/login_tty-tests: New file.
28319         * tests/test-login_tty.c: New file.
28320
28321         New module 'login_tty'.
28322         * lib/login_tty.c: New file.
28323         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28324         * modules/login_tty: New file.
28325         * doc/glibc-functions/login_tty.texi: Mention the new module.
28326
28327 2010-03-21  Bruno Haible  <bruno@clisp.org>
28328
28329         login_tty: Documentation.
28330         * doc/glibc-functions/login_tty.texi: New file.
28331         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28332
28333 2010-03-21  Bruno Haible  <bruno@clisp.org>
28334
28335         pty: Consistent macro naming.
28336         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28337         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28338         * modules/pty (configure.ac): Update.
28339
28340 2010-03-21  Bruno Haible  <bruno@clisp.org>
28341
28342         Tests for openpty: Make stricter.
28343         * tests/test-openpty.c (main): Add test of canonical processing and
28344         erase.
28345         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28346
28347         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28348         * lib/openpty.c (openpty): New replacement function.
28349         * lib/pty.in.h: Include <termios.h>.
28350         (openpty): Update declaration. Add comments.
28351         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28352         is not declared, arrange to provide the replacement. Check for _getpty
28353         and posix_openpt.
28354         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28355         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28356         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28357         * modules/pty-tests (test_pty_c___LDADD): New variable.
28358         * doc/glibc-functions/openpty.texi: More supported platforms.
28359
28360 2010-03-21  Bruno Haible  <bruno@clisp.org>
28361
28362         setenv: Tweaks.
28363         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28364         the test program.
28365         * doc/posix-functions/setenv.texi: Update platforms list.
28366
28367 2010-03-21  Bruno Haible  <bruno@clisp.org>
28368
28369         New module 'unlockpt'.
28370         * lib/unlockpt.c: New file, from glibc with modifications.
28371         * m4/unlockpt.m4: New file.
28372         * modules/unlockpt: New file.
28373         * lib/stdlib.in.h (unlockpt): New declaration.
28374         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28375         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28376         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28377         HAVE_UNLOCKPT.
28378         * doc/posix-functions/unlockpt.texi: Mention the new module.
28379         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28380         * config/srclist.txt: Add unlockpt.c (commented).
28381
28382 2010-03-21  Jim Meyering  <meyering@redhat.com>
28383
28384         maint.mk: prohibit inclusion of "intprops.h" without use
28385         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28386
28387 2010-03-21  Bruno Haible  <bruno@clisp.org>
28388
28389         New module 'grantpt'.
28390         * lib/grantpt.c: New file, from glibc with modifications.
28391         * m4/grantpt.m4: New file.
28392         * modules/grantpt: New file.
28393         * lib/stdlib.in.h (grantpt): New declaration.
28394         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28395         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28396         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28397         HAVE_GRANTPT.
28398         * doc/posix-functions/grantpt.texi: Mention the new module.
28399         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28400         * config/srclist.txt: Add grantpt.c (commented).
28401
28402 2010-03-21  Bruno Haible  <bruno@clisp.org>
28403
28404         New module 'pt_chown'.
28405         * lib/pt_chown.c: New file, from glibc with modifications.
28406         * lib/pty-private.h: New file, from glibc with modifications.
28407         * modules/pt_chown: New file.
28408         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28409
28410 2010-03-21  Bruno Haible  <bruno@clisp.org>
28411
28412         Tests for module 'ptsname'.
28413         * modules/ptsname-tests: New file.
28414         * tests/test-ptsname.c: New file.
28415
28416         New module 'ptsname'.
28417         * lib/ptsname.c: New file, from glibc with modifications.
28418         * m4/ptsname.m4: New file.
28419         * modules/ptsname: New file.
28420         * lib/stdlib.in.h (ptsname): New declaration.
28421         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28422         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28423         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28424         HAVE_PTSNAME.
28425         * doc/posix-functions/ptsname.texi: Mention the new module.
28426         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28427         * config/srclist.txt: Add ptsname.c (commented).
28428
28429 2010-03-21  Bruno Haible  <bruno@clisp.org>
28430
28431         Tests for module 'ttyname_r'.
28432         * modules/ttyname_r-tests: New file.
28433         * tests/test-ttyname_r.c: New file.
28434
28435         New module 'ttyname_r'.
28436         * lib/ttyname_r.c: New file.
28437         * m4/ttyname_r.m4: New file.
28438         * modules/ttyname_r: New file.
28439         * lib/unistd.in.h (ttyname_r): New declaration.
28440         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28441         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28442         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28443         HAVE_TTYNAME_R.
28444         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28445         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28446
28447 2010-03-20  Bruno Haible  <bruno@clisp.org>
28448
28449         signal: Undefine macro definitions in C++ mode.
28450         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28451         sigfillset): Undefine macro definitions from the system header in C++
28452         mode.
28453         Reported by John W. Eaton <jwe@gnu.org>.
28454
28455 2010-03-20  Bruno Haible  <bruno@clisp.org>
28456
28457         Ensure no #include statements inside extern "C" { ... }.
28458         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28459         contain #include statements.
28460         * lib/time.in.h: Likewise.
28461
28462 2010-03-20  Bruno Haible  <bruno@clisp.org>
28463
28464         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28465         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28466         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28467         Reported by John W. Eaton <jwe@gnu.org>.
28468
28469 2010-03-20  Bruno Haible  <bruno@clisp.org>
28470
28471         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28472         Reported by Jim Meyering.
28473
28474 2010-03-20  Bruno Haible  <bruno@clisp.org>
28475
28476         pipe: Set errno upon failure.
28477         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28478         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28479         errno value in error message.
28480
28481 2010-03-20  Bruno Haible  <bruno@clisp.org>
28482             Jim Meyering  <meyering@redhat.com>
28483
28484         lchown: Avoid "unused variable" warning.
28485         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28486
28487 2010-03-20  Bruno Haible  <bruno@clisp.org>
28488
28489         Work around unlink() bug on MacOS X 10.5.6.
28490         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28491         attempting to unlink a parent directory.
28492         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28493         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28494         activate for the replacement function.
28495         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28496
28497 2010-03-20  Bruno Haible  <bruno@clisp.org>
28498
28499         Fix link errors on Solaris 8.
28500         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28501         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28502
28503 2010-03-19  Jim Meyering  <meyering@redhat.com>
28504
28505         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28506         The _LIBC implementation of build_range_exp correctly honors the
28507         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28508         However, the non-_LIBC implementation would ignore that syntax-bit
28509         flag and return REG_ERANGE unconditionally.
28510         This change makes it honor that flag.
28511         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28512         Make two pointer parameters "const".
28513         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28514         (parse_bracket_exp): Update caller.
28515
28516         regex.m4: correct the reversed range endpoint ([b-a]) test
28517         * m4/regex.m4: When requiring that [b-a] evoke failure,
28518         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28519         test pass once again for x86-based systems.
28520
28521 2010-03-19  Bruno Haible  <bruno@clisp.org>
28522
28523         scandir: Fix link error on Solaris 8.
28524         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28525         macros.
28526
28527 2010-03-19  Bruno Haible  <bruno@clisp.org>
28528
28529         getusershell: Fix documentation.
28530         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28531         module.
28532         * doc/glibc-functions/setusershell.texi: Likewise.
28533
28534         getusershell: Provide declaration, missing on Solaris 9.
28535         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28536         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28537         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28538         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28540         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28541         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28542         HAVE_GETUSERSHELL.
28543         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28544
28545 2010-03-19  Bruno Haible  <bruno@clisp.org>
28546
28547         wctype: Provide iswblank function.
28548         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28549         exists and is fine.
28550         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28551         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28552         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28553         * doc/posix-functions/iswblank.texi: Update.
28554
28555 2010-03-19  Bruno Haible  <bruno@clisp.org>
28556
28557         Tests of module 'pty' in C++ mode.
28558         * modules/pty-tests: New file.
28559         * tests/test-pty-c++.cc: New file.
28560         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28561
28562 2010-03-19  Eric Blake  <eblake@redhat.com>
28563
28564         logb: fix documentation
28565         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28566         1.5 declaration bug.
28567
28568         forkpty, openpty: prefer glibc's const-safe prototype
28569         * lib/forkpty.c (rpl_forkpty): New file.
28570         * lib/openpty.c (rpl_openpty): Likewise.
28571         * modules/forkpty (Files): Distribute it.
28572         * modules/openpty (Files): Likewise.
28573         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28574         check...
28575         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28576         replacement for for non-const BSD signature.
28577         * modules/pty (Makefile.am): Substitute witnesses.
28578         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28579         * tests/test-forkpty.c: Update signature check.
28580         * tests/test-openpty.c: Likewise.
28581         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28582         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28583
28584         forkpty, openpty: split functions into new modules
28585         * modules/pty (Makefile.am): Substitute new witnesses.
28586         (Libraries): Move library detection...
28587         * modules/forkpty: ...into new module.
28588         * modules/openpty: Another new module.
28589         * modules/pty-tests: Rename and split...
28590         * modules/forkpty-tests: ...to this...
28591         * modules/openpty-tests: ...and this.
28592         * tests/test-pty.c: Rename and split...
28593         * tests/test-forkpty.c: ...to this...
28594         * tests/test-openpty.c: ...and this.
28595         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28596         (gl_PTY): Split library searching...
28597         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28598         (gl_FORKPTY, gl_OPENPTY): New macros.
28599         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28600         * NEWS: Mention the split.
28601         * MODULES.html.sh (Misc): Document the modules.
28602         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28603         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28604
28605         pty: improve replacement header
28606         * lib/pty.in.h: New file.
28607         * modules/pty (Files): Ship it.
28608         (Makefile.am): Always build replacement.
28609         * m4/pty.m4: Rename...
28610         * m4/pty_h.m4: ...to this.
28611         (gl_PTY): Modernize setting of witness macros; update check of
28612         forkpty to take proper advantage of cache.
28613         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28614
28615         getopt: avoid compiler warning
28616         * lib/getopt.c (attribute_hidden): Remove unused macro.
28617
28618 2010-03-18  Bruno Haible  <bruno@clisp.org>
28619
28620         Fix link errors on Solaris 8.
28621         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28622         * modules/search-tests (test_search_c___LDADD): Likewise.
28623         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28624         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28625         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28626         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28627         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28628         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28629         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28630
28631 2010-03-18  Bruno Haible  <bruno@clisp.org>
28632
28633         Fix bug introduced on 2010-03-14.
28634         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28635         (gl_SPAWN_H): Require it.
28636         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28637         Reported by Simon Josefsson.
28638
28639 2010-03-18  Bruno Haible  <bruno@clisp.org>
28640
28641         Fix typo introduced on 2009-12-31.
28642         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28643         posix_spawn_file_actions_adddup2.
28644
28645 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28646         and Eric Blake  <eblake@redhat.com>
28647
28648         test-vc-list-files-git: make more robust
28649         * tests/test-vc-list-files-git.sh: Unset problematic environment
28650         variables.  Chain commands together.
28651
28652 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28653
28654         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28655         `AC_CHECK_DECL' invocation.
28656
28657 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28658
28659         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28660         appears before executable statements. Suggested by Petr Sumbera
28661         <Petr.Sumbera@Sun.COM>.
28662
28663 2010-03-14  Bruno Haible  <bruno@clisp.org>
28664
28665         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28666         portability problems. Instead use a simpler test.
28667         (main): Check that invalid arguments are rejected only on Linux.
28668
28669 2010-03-14  Bruno Haible  <bruno@clisp.org>
28670
28671         Fix bug introduced on 2009-12-31.
28672         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28673         gl_PREREQ_SYS_H_WINSOCK2 always.
28674         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28675         SYS_SOCKET_H variable.
28676         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28677         Update comments.
28678         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28679         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28680         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28681         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28682         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28683
28684 2010-03-14  Bruno Haible  <bruno@clisp.org>
28685
28686         Fix values returned by sinl, cosl.
28687         * lib/trigl.h: Add specification comments.
28688         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28689         that combines the values from the precomputed table with the values of
28690         the Chebyshev polynomials.
28691
28692 2010-03-14  Bruno Haible  <bruno@clisp.org>
28693
28694         Fix compilation error when modules 'posix_spawn[p]' are not used.
28695         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28696         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28697
28698 2010-03-14  Bruno Haible  <bruno@clisp.org>
28699
28700         Fix compilation error on mingw when module 'time_r' is not used.
28701         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28702         is 1.
28703         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28704         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28705         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28706         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28707
28708 2010-03-14  Bruno Haible  <bruno@clisp.org>
28709
28710         Fix compilation error with Sun C.
28711         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28712         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28713         instead of GCC specific ULONG_LONG_MAX.
28714         * lib/xstrtoll.c: Likewise.
28715         * lib/xstrtoull.c: Likewise.
28716
28717 2010-03-13  Bruno Haible  <bruno@clisp.org>
28718
28719         Allow the user to disable C++ code and tests.
28720         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28721         (gl_PROG_ANSI_CXX): Require it.
28722
28723 2010-03-13  Bruno Haible  <bruno@clisp.org>
28724
28725         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28726         cases.
28727
28728 2010-03-13  Bruno Haible  <bruno@clisp.org>
28729
28730         Test that gnulib does not break the standard C++ headers.
28731         * tests/test-locale-c++2.cc: New file.
28732         * modules/locale-tests (Files): Add it.
28733         (Makefile.am): Compile it for test-locale-c++.
28734         * tests/test-math-c++2.cc: New file.
28735         * modules/math-tests (Files): Add it.
28736         (Makefile.am): Compile it for test-math-c++.
28737         * tests/test-signal-c++2.cc: New file.
28738         * modules/signal-tests (Files): Add it.
28739         (Makefile.am): Compile it for test-signal-c++.
28740         * tests/test-stdio-c++2.cc: New file.
28741         * modules/stdio-tests (Files): Add it.
28742         (Makefile.am): Compile it for test-stdio-c++.
28743         * tests/test-stdlib-c++2.cc: New file.
28744         * modules/stdlib-tests (Files): Add it.
28745         (Makefile.am): Compile it for test-stdlib-c++.
28746         * tests/test-string-c++2.cc: New file.
28747         * modules/string-tests (Files): Add it.
28748         (Makefile.am): Compile it for test-string-c++.
28749         * tests/test-time-c++2.cc: New file.
28750         * modules/time-tests (Files): Add it.
28751         (Makefile.am): Compile it for test-time-c++.
28752         Reported by John W. Eaton <jwe@gnu.org>.
28753
28754 2010-03-13  Bruno Haible  <bruno@clisp.org>
28755
28756         * gnulib-tool (func_usage): Clarify which options are available for
28757         --create-testdir and --create-megatestdir.
28758
28759 2010-03-13  Bruno Haible  <bruno@clisp.org>
28760
28761         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28762         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28763         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28764         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28765         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28766         when appropriate.
28767         Reported by Jim Meyering.
28768
28769 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28770
28771         * gnulib-tool (func_import): Explain origin of code.
28772
28773 2010-03-12  Bruno Haible  <bruno@clisp.org>
28774
28775         Fix problem with automake's definition of CXXLINK.
28776         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28777         Reported by Simon Josefsson and Ludovic Courtès.
28778
28779 2010-03-12  Bruno Haible  <bruno@clisp.org>
28780
28781         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28782         stable releases.
28783
28784 2010-03-11  Bruno Haible  <bruno@clisp.org>
28785
28786         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28787         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28788         whether the system provides one variant or multiple variants of the
28789         function.
28790         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28791         C++ compilers.
28792         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28793         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28794         Reported by Jim Meyering.
28795
28796 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28797
28798         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28799
28800 2010-03-08  Bruno Haible  <bruno@clisp.org>
28801
28802         gnulib-tool: Add support for --libtool in --create-testdir.
28803         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28804         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28805
28806 2010-03-08  Eric Blake  <eblake@redhat.com>
28807
28808         gnulib-tool.texi: mention possibility of git submodule
28809         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28810         submodules.
28811         * doc/.gitignore: Ignore another generated file.
28812
28813 2010-03-08  Karl Berry  <karl@gnu.org>
28814
28815         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28816         of committing gnulib files while skipping others.
28817
28818 2010-03-07  Bruno Haible  <bruno@clisp.org>
28819
28820         Tests of module 'wctype' in C++ mode.
28821         * tests/test-wctype-c++.cc: New file.
28822         * modules/wctype-tests (Files): Add it and tests/signature.h.
28823         (Depends-on): Add ansi-c++-opt.
28824         (Makefile.am): Arrange to compile and run test-wctype-c++.
28825
28826         Tests of module 'wchar' in C++ mode.
28827         * tests/test-wchar-c++.cc: New file.
28828         * modules/wchar-tests (Files): Add it and tests/signature.h.
28829         (Depends-on): Add ansi-c++-opt.
28830         (Makefile.am): Arrange to compile and run test-wchar-c++.
28831         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28832         gl_MODULE_INDICATOR.
28833
28834         Tests of module 'unistd' in C++ mode.
28835         * tests/test-unistd-c++.cc: New file.
28836         * modules/unistd-tests (Files): Add it and tests/signature.h.
28837         (Depends-on): Add ansi-c++-opt.
28838         (Makefile.am): Arrange to compile and run test-unistd-c++.
28839         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28840         gl_MODULE_INDICATOR.
28841
28842         Tests of module 'time' in C++ mode.
28843         * tests/test-time-c++.cc: New file.
28844         * modules/time-tests (Files): Add it and tests/signature.h.
28845         (Depends-on): Add ansi-c++-opt.
28846         (Makefile.am): Arrange to compile and run test-time-c++.
28847         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28848
28849         Tests of module 'sys_time' in C++ mode.
28850         * tests/test-sys_time-c++.cc: New file.
28851         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28852         (Depends-on): Add ansi-c++-opt.
28853         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28854         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28855         gl_MODULE_INDICATOR.
28856
28857         Tests of module 'sys_stat' in C++ mode.
28858         * tests/test-sys_stat-c++.cc: New file.
28859         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28860         (Depends-on): Add ansi-c++-opt.
28861         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28862         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28863         gl_MODULE_INDICATOR.
28864
28865         Tests of module 'sys_socket' in C++ mode.
28866         * tests/test-sys_socket-c++.cc: New file.
28867         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28868         (Depends-on): Add ansi-c++-opt.
28869         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28870         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28871         gl_MODULE_INDICATOR.
28872
28873         Tests of module 'sys_select' in C++ mode.
28874         * tests/test-sys_select-c++.cc: New file.
28875         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28876         (Depends-on): Add ansi-c++-opt.
28877         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28878         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28879         gl_MODULE_INDICATOR.
28880
28881         Tests of module 'sys_ioctl' in C++ mode.
28882         * tests/test-sys_ioctl-c++.cc: New file.
28883         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28884         (Depends-on): Add ansi-c++-opt.
28885         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28886         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28887         gl_MODULE_INDICATOR.
28888
28889         Tests of module 'string' in C++ mode.
28890         * tests/test-string-c++.cc: New file.
28891         * modules/string-tests (Files): Add it and tests/signature.h.
28892         (Depends-on): Add ansi-c++-opt.
28893         (Makefile.am): Arrange to compile and run test-string-c++.
28894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28895         gl_MODULE_INDICATOR.
28896
28897         Tests of module 'stdlib' in C++ mode.
28898         * tests/test-stdlib-c++.cc: New file.
28899         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28900         (Depends-on): Add ansi-c++-opt.
28901         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28902         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28903         gl_MODULE_INDICATOR.
28904
28905         Tests of module 'stdio' in C++ mode.
28906         * tests/test-stdio-c++.cc: New file.
28907         * modules/stdio-tests (Files): Add it and tests/signature.h.
28908         (Depends-on): Add ansi-c++-opt.
28909         (Makefile.am): Arrange to compile and run test-stdio-c++.
28910         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28911         gl_MODULE_INDICATOR.
28912
28913         Tests of module 'spawn' in C++ mode.
28914         * tests/test-spawn-c++.cc: New file.
28915         * modules/spawn-tests (Files): Add it and tests/signature.h.
28916         (Depends-on): Add ansi-c++-opt.
28917         (Makefile.am): Arrange to compile and run test-spawn-c++.
28918         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28919         gl_MODULE_INDICATOR.
28920
28921         Tests of module 'signal' in C++ mode.
28922         * tests/test-signal-c++.cc: New file.
28923         * modules/signal-tests (Files): Add it and tests/signature.h.
28924         (Depends-on): Add ansi-c++-opt.
28925         (Makefile.am): Arrange to compile and run test-signal-c++.
28926         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28927         gl_MODULE_INDICATOR.
28928
28929         Tests of module 'search' in C++ mode.
28930         * tests/test-search-c++.cc: New file.
28931         * modules/search-tests (Files): Add it and tests/signature.h.
28932         (Depends-on): Add ansi-c++-opt.
28933         (Makefile.am): Arrange to compile and run test-search-c++.
28934         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28935         gl_MODULE_INDICATOR.
28936
28937         Tests of module 'math' in C++ mode.
28938         * tests/test-math-c++.cc: New file.
28939         * modules/math-tests (Files): Add it and tests/signature.h.
28940         (Depends-on): Add ansi-c++-opt.
28941         (Makefile.am): Arrange to compile and run test-math-c++.
28942         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28943
28944         Tests of module 'locale' in C++ mode.
28945         * tests/test-locale-c++.cc: New file.
28946         * modules/locale-tests (Files): Add it and tests/signature.h.
28947         (Depends-on): Add ansi-c++-opt.
28948         (Makefile.am): Arrange to compile and run test-locale-c++.
28949         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28950         gl_MODULE_INDICATOR.
28951
28952         Tests of module 'langinfo' in C++ mode.
28953         * tests/test-langinfo-c++.cc: New file.
28954         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28955         (Depends-on): Add ansi-c++-opt.
28956         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28957         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28958         gl_MODULE_INDICATOR.
28959
28960         Tests of module 'iconv-h' in C++ mode.
28961         * tests/test-iconv-h-c++.cc: New file.
28962         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28963         (Depends-on): Add ansi-c++-opt.
28964         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28965
28966         Tests of module 'glob' in C++ mode.
28967         * tests/test-glob-c++.cc: New file.
28968         * modules/glob-tests (Files): Add it.
28969         (Depends-on): Add ansi-c++-opt.
28970         (Makefile.am): Arrange to compile and run test-glob-c++.
28971
28972         Tests of module 'fcntl-h' in C++ mode.
28973         * tests/test-fcntl-h-c++.cc: New file.
28974         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28975         (Depends-on): Add ansi-c++-opt.
28976         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28977         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28978         gl_MODULE_INDICATOR.
28979
28980         Tests of module 'dirent' in C++ mode.
28981         * tests/test-dirent-c++.cc: New file.
28982         * modules/dirent-tests (Files): Add it and tests/signature.h.
28983         (Depends-on): Add ansi-c++-opt.
28984         (Makefile.am): Arrange to compile and run test-dirent-c++.
28985         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28986         gl_MODULE_INDICATOR.
28987
28988         New module 'ansi-c++-opt'.
28989         * modules/ansi-c++-opt: New file.
28990         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28991
28992         Document C++ namespace mode.
28993         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28994
28995         wctype: Avoid #define replacements in C++ mode.
28996         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28997         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28998         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28999         In C++, define a namespaced alias symbol.
29000         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
29001         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
29002         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
29003         rule.
29004
29005         wchar: Avoid #define replacements in C++ mode.
29006         * lib/wchar.in.h: Include c++defs.h.
29007         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
29008         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
29009         symbol.
29010         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
29011         * modules/wchar (Depends-on): Add c++defs.
29012         (Makefile.am): Update wchar.h rule.
29013
29014         unistd: Avoid #define replacements in C++ mode.
29015         * lib/unistd.in.h: Include c++defs.h.
29016         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29017         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29018         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29019         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29020         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29021         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29022         symbol.
29023         (environ): Update.
29024         * modules/unistd (Depends-on): Add c++defs.
29025         (Makefile.am): Update unistd.h rule.
29026
29027         time: Avoid #define replacements in C++ mode.
29028         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29029         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29030         define a namespaced alias symbol.
29031         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29032         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29033         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29034         * modules/time (Depends-on): Add c++defs, warn-on-use.
29035         (Makefile.am): Update time.h rule.
29036         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29037         * modules/nanosleep (configure.ac): Likewise.
29038         * modules/strptime (configure.ac): Likewise.
29039         * modules/timegm (configure.ac): Likewise.
29040
29041         sys_time: Avoid #define replacements in C++ mode.
29042         * lib/sys_time.in.h: Include c++defs.h.
29043         (gettimeofday): In C++, define a namespaced alias symbol.
29044         * modules/sys_time (Depends-on): Add c++defs.
29045         (Makefile.am): Update sys/time.h rule.
29046
29047         sys_stat: Avoid #define replacements in C++ mode.
29048         * lib/sys_stat.in.h: Include c++defs.h.
29049         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29050         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29051         namespaced alias symbol.
29052         In C++, define a namespaced alias symbol.
29053         * modules/sys_stat (Depends-on): Add c++defs.
29054         (Makefile.am): Update sys/stat.h rule.
29055
29056         sys_socket: Avoid #define replacements in C++ mode.
29057         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29058         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29059         definitions also when the system has a <sys/socket.h>.
29060         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29061         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29062         In C++, define a namespaced alias symbol.
29063         * modules/sys_socket (Depends-on): Add c++defs.
29064         (Makefile.am): Update sys/socket.h rule.
29065
29066         sys_select: Avoid #define replacements in C++ mode.
29067         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29068         definitions also when the system has a <sys/select.h>.
29069         (select): In C++, define a namespaced alias symbol.
29070         * modules/sys_select (Depends-on): Add c++defs.
29071         (Makefile.am): Update sys/select.h rule.
29072
29073         sys_ioctl: Avoid #define replacements in C++ mode.
29074         * lib/sys_ioctl.in.h: Include c++defs.h.
29075         (ioctl): In C++, define a namespaced alias symbol.
29076         * modules/sys_ioctl (Depends-on): Add c++defs.
29077         (Makefile.am): Update sys/ioctl.h rule.
29078
29079         string: Avoid #define replacements in C++ mode.
29080         * lib/string.in.h: Include c++defs.h.
29081         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29082         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29083         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29084         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29085         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29086         * modules/string (Depends-on): Add c++defs.
29087         (Makefile.am): Update string.h rule.
29088
29089         stdlib: Avoid #define replacements in C++ mode.
29090         * lib/stdlib.in.h: Include c++defs.h.
29091         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29092         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29093         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29094         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29095         symbol.
29096         * modules/stdlib (Depends-on): Add c++defs.
29097         (Makefile.am): Update stdlib.h rule.
29098
29099         stdio: Avoid #define replacements in C++ mode.
29100         * lib/stdio.in.h: Include c++defs.h.
29101         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29102         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29103         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29104         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29105         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29106         namespaced alias symbol.
29107         * modules/stdio (Depends-on): Add c++defs.
29108         (Makefile.am): Update stdio.h rule.
29109
29110         spawn: Avoid #define replacements in C++ mode.
29111         * lib/spawn.in.h: Include c++defs.h.
29112         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29113         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29114         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29115         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29116         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29117         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29118         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29119         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29120         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29121         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29122         In C++, define a namespaced alias symbol.
29123         * modules/spawn (Depends-on): Add c++defs.
29124         (Makefile.am): Update spawn.h rule.
29125
29126         signal: Avoid #define replacements in C++ mode.
29127         * lib/signal.in.h: Include c++defs.h.
29128         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29129         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29130         namespaced alias symbol.
29131         * modules/signal (Depends-on): Add c++defs.
29132         (Makefile.am): Update signal.h rule.
29133
29134         search: Avoid #define replacements in C++ mode.
29135         * lib/search.in.h: Include c++defs.h.
29136         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29137         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29138         symbol.
29139         * modules/search (Depends-on): Add c++defs.
29140         (Makefile.am): Update search.h rule.
29141
29142         math: Avoid #define replacements in C++ mode.
29143         * lib/math.in.h: Include c++defs.h.
29144         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29145         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29146         trunc, truncl): In C++, define a namespaced alias symbol.
29147         * modules/math (Depends-on): Add c++defs.
29148         (Makefile.am): Update math.h rule.
29149
29150         locale: Avoid #define replacements in C++ mode.
29151         * lib/locale.in.h: Include c++defs.h.
29152         (duplocale): In C++, define a namespaced alias symbol.
29153         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29154         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29155         * modules/locale (Depends-on): Add c++defs.
29156         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29157
29158         langinfo: Avoid #define replacements in C++ mode.
29159         * lib/langinfo.in.h: Include c++defs.h.
29160         (nl_langinfo): In C++, define a namespaced alias symbol.
29161         * modules/langinfo (Depends-on): Add c++defs.
29162         (Makefile.am): Update langinfo.h rule.
29163
29164         iconv-h: Avoid #define replacements in C++ mode.
29165         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29166         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29167         symbol.
29168         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29169         whenever iconv is present.
29170         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29171         (Makefile.am): Update iconv.h rule.
29172
29173         glob: Avoid #define replacements in C++ mode.
29174         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29175         (_gl_glob_errfunc_fn): New type.
29176         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29177         symbol.
29178         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29179         (Makefile.am): Update glob.h rule.
29180
29181         fcntl-h: Avoid #define replacements in C++ mode.
29182         * lib/fcntl.in.h: Include c++defs.h.
29183         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29184         * modules/fcntl-h (Depends-on): Add c++defs.
29185         (Makefile.am): Update fcntl.h rule.
29186
29187         dirent: Avoid #define replacements in C++ mode.
29188         * lib/dirent.in.h: Include c++defs.h.
29189         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29190         namespaced alias symbol.
29191         (dirfd): Update declaration.
29192         * modules/dirent (Depends-on): Add c++defs.
29193         (Makefile.am): Update dirent.h rule.
29194
29195         ctype: Make it usable in C++ code.
29196         * lib/ctype.in.h: Include c++defs.h.
29197         (isblank): Declare as extern "C".
29198         * modules/ctype (Depends-on): Add c++defs.
29199         (Makefile.am): Update ctype.h rule.
29200
29201         New module 'c++defs'.
29202         * modules/c++defs: New file.
29203         * build-aux/c++defs.h: New file.
29204         Reported by John W. Eaton <jwe@gnu.org>.
29205
29206 2010-03-07  Bruno Haible  <bruno@clisp.org>
29207
29208         logb: Provide missing declaration for Cygwin.
29209         * lib/math.in.h (logb): New declaration.
29210         * m4/logb.m4: New file.
29211         * modules/logb (Files): Add m4/logb.m4.
29212         (Depends-on): Add math.
29213         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29214         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29216         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29217         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29218
29219 2010-03-07  Bruno Haible  <bruno@clisp.org>
29220
29221         Fix test-cond link error.
29222         * tests/test-cond.c: Include <stdio.h>.
29223
29224 2010-03-07  Bruno Haible  <bruno@clisp.org>
29225
29226         Fix test-dirent-safer link error.
29227         * modules/dirent-safer-tests (Makefile.am): Define
29228         test_dirent_safer_LDADD.
29229
29230 2010-03-07  Bruno Haible  <bruno@clisp.org>
29231
29232         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29233         among default module list.
29234
29235 2010-03-07  Bruno Haible  <bruno@clisp.org>
29236
29237         Fix link error on platforms with GNU libiconv.
29238         * modules/unistr/u8-strcoll-tests (Makefile): Define
29239         test_u8_strcoll_LDADD.
29240         * modules/unistr/u16-strcoll-tests (Makefile): Define
29241         test_u16_strcoll_LDADD.
29242         * modules/unistr/u32-strcoll-tests (Makefile): Define
29243         test_u32_strcoll_LDADD.
29244
29245 2010-03-07  Bruno Haible  <bruno@clisp.org>
29246
29247         Use POSIX declarations for socket functions.
29248         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29249         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29250         rpl_sendto): Change declaration to match POSIX.
29251         * lib/connect.c (rpl_connect): Likewise.
29252         * lib/accept.c (rpl_accept): Likewise.
29253         * lib/bind.c (rpl_bind): Likewise.
29254         * lib/getpeername.c (rpl_getpeername): Likewise.
29255         * lib/getsockname.c (rpl_getsockname): Likewise.
29256         * lib/recv.c (rpl_recv): Likewise.
29257         * lib/send.c (rpl_send): Likewise.
29258         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29259         * lib/sendto.c (rpl_sendto): Likewise.
29260
29261 2010-03-06  Bruno Haible  <bruno@clisp.org>
29262
29263         Clarify access, euidaccess, faccessat.
29264         * doc/posix-functions/faccessat.texi: Mention security problem under
29265         "Other problems", not "Portability problems".
29266         * doc/posix-functions/access.texi: Likewise. Mention a related security
29267         problem.
29268         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29269         * lib/euidaccess.c: Add comments about platforms.
29270         * lib/unistd.in.h (access, euidaccess): Add warnings.
29271
29272 2010-03-07  Bruno Haible  <bruno@clisp.org>
29273
29274         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29275         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29276         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29277         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29278         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29279         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29280         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29281         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29282         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29283         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29284         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29285         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29286         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29287         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29288         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29289         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29290         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29291         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29292         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29293         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29294         Likewise.
29295         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29296         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29297         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29298         Likewise.
29299         * tests/test-spawn.c (main): Make it work when
29300         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29301
29302 2010-03-07  Bruno Haible  <bruno@clisp.org>
29303
29304         Fix incorrect Makefile.am generation in German locale.
29305         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29306         Execute sed command with character range in C locale.
29307
29308 2010-03-06  Bruno Haible  <bruno@clisp.org>
29309
29310         Tests for module 'iconv-h'.
29311         * modules/iconv-h-tests: New file.
29312         * tests/test-iconv-h.c: New file.
29313
29314         New module 'iconv-h'.
29315         * modules/iconv-h: New file.
29316         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29317         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29318         (configure.ac): Remove gl_ICONV_H.
29319         (Makefile.am): Remove rule for iconv.h.
29320
29321 2010-03-06  Bruno Haible  <bruno@clisp.org>
29322
29323         More consistent naming of *.m4 files.
29324         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29325         * modules/wctype (Files): Update.
29326
29327         More consistent naming of *.m4 files.
29328         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29329         * modules/wchar (Files): Update.
29330
29331 2010-03-06  Jim Meyering  <meyering@redhat.com>
29332
29333         euidaccess: relax license to LGPLv2+
29334         * modules/euidaccess (License): Relax to LGPLv2+.
29335
29336 2010-03-06  Bruno Haible  <bruno@clisp.org>
29337
29338         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29339         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29340         (Makefile.am): Augment lib_SOURCES instead.
29341
29342 2010-03-04  Jim Meyering  <meyering@redhat.com>
29343
29344         utime: remove obsolete module
29345         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29346         unnecessary for years, and has been marked as obsolete for 10 months.
29347         * modules/utime: Remove file.
29348         * lib/utime.c: Remove file.
29349         * m4/utime.m4: Remove file.
29350         * m4/utimes-null.m4: Remove file.
29351         * doc/posix-functions/utime.texi (utime): Remove reference to
29352         the module.  Move the sole "fixed by gnulib" item into the
29353         "problems not fixed by Gnulib" list.
29354         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29355
29356 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29357
29358         * modules/exit (License): Relax license to LGPLv2+.
29359         (Status): Mark as obsolete.
29360         * NEWS: Mention deprecated 'exit' module.
29361         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29362         of now obsolete 'exit'.
29363
29364 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29365
29366         fts-lgpl: remove unused module
29367         * modules/fts-lgpl: Remove.
29368         * MODULES.html.sh (func_all_modules): Adjust.
29369         * check-module (find_included_lib_files): Adjust.
29370         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29371
29372 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29373
29374         copy-acl: enhance Solaris ACL error handling
29375         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29376         * lib/set-mode-acl.c (qset_acl): Likewise.
29377
29378 2010-03-02  Bruno Haible  <bruno@clisp.org>
29379
29380         spawn: Don't override the system defined values on FreeBSD 8.
29381         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29382         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29383         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29384         if HAVE_POSIX_SPAWN is 1.
29385         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29386
29387 2010-03-01  Bruno Haible  <bruno@clisp.org>
29388
29389         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29390         regarding Automake.
29391
29392 2010-02-25  Bruno Haible  <bruno@clisp.org>
29393
29394         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29395         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29396         setting, not afterwards.
29397         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29398
29399 2010-02-24  Eric Blake  <eblake@redhat.com>
29400
29401         bootstrap, git-version-gen: use timestamp
29402         * build-aux/git-version-gen (scriptversion): Force UTC.
29403         * build-aux/bootstrap (scriptversion): New variable.
29404
29405         bootstrap: allow older git
29406         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29407         older than 1.6.4.  Requested by the libvirt project.
29408
29409 2010-02-23  Eric Blake  <eblake@redhat.com>
29410
29411         warn-on-use: work with old autoconf
29412         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29413         AS_VAR semantics of autoconf 2.60.
29414         Reported by Bruno Haible.
29415
29416         bootstrap: improve some comments
29417         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29418         clarification comments.
29419
29420         gettimeofday: provide correct function
29421         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29422         when replacement is declared, otherwise provide gettimeofday.
29423         Reported by Michael Goffioul.
29424
29425 2010-02-23  Jim Meyering  <meyering@redhat.com>
29426
29427         lib-ignore: relax license to "unlimited", not LGPLv2+
29428         * modules/lib-ignore (License): Relax to "unlimited".
29429
29430 2010-02-23  Jim Meyering  <meyering@redhat.com>
29431
29432         lib-ignore: relax license to LGPLv2+
29433         * modules/lib-ignore (License): Relax to LGPLv2+.
29434
29435 2010-02-22  Eric Blake  <eblake@redhat.com>
29436
29437         lseek: avoid bash 3.2 broken pipe bug
29438         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29439         warning from bash 3.2.
29440         Reported by Ben Pfaff, with analysis from Bruno Haible.
29441
29442         bootstrap: support non-FSF copyright holder
29443         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29444         bootstrap.conf override of COPYRIGHT_HOLDER.
29445         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29446
29447         bootstrap: interoperate with gettext 0.14.1
29448         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29449
29450         bootstrap: allow for alternate submodule location
29451         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29452         hardcoding submodule location.
29453         (gnulib_mk): Allow direct use of Makefile.am.
29454
29455         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29456         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29457         rather than reconfiguring where the submodule points.
29458
29459         gettimeofday: restore support for platforms that lack function
29460         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29461         replacement if function is missing.
29462         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29463         * modules/sys_time (Makefile.am): Substitute it.
29464         * lib/sys_time.in.h (gettimeofday): Check it.
29465         Reported by Michael Goffioul.
29466
29467 2010-02-21  Bruno Haible  <bruno@clisp.org>
29468
29469         * lib/stdio.in.h (obstack_printf): Fix typo.
29470
29471 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29472
29473         vc-list-files: use bzr ls's -R option
29474         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29475         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29476
29477 2010-02-21  Jim Meyering  <meyering@redhat.com>
29478
29479         init.sh: fix EXEEXT shims to work also for names like test-prog
29480         * tests/init.sh: Re-exec a better shell, when needed.
29481         If the current shell lacks support for posix $(...), an init.sh-using
29482         test will now try to find a shell that supports that.  If EXEEXT is
29483         nonempty, we also require support for hyphen-in-alias-name and shell
29484         substitutions like ${var#glob}.  Failure to find such a shell results
29485         in a skipped test.
29486
29487 2010-02-21  Bruno Haible  <bruno@clisp.org>
29488
29489         Really work around around "broken pipe" error message from bash 3.2.
29490         * gnulib-tool (func_reset_sigpipe): Remove function.
29491         (echo): In bash 3.2, define to a function that uses printf.
29492         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29493
29494 2010-02-20  Bruno Haible  <bruno@clisp.org>
29495
29496         Restore support for automake 1.9.6 with autoconf 2.61.
29497         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29498         Reported by James Youngman <jay@gnu.org>.
29499
29500 2010-02-20  Bruno Haible  <bruno@clisp.org>
29501
29502         Improve *printf warning condition.
29503         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29504         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29505         and the function is overridden due to SIGPIPE emulation.
29506
29507 2010-02-20  Bruno Haible  <bruno@clisp.org>
29508
29509         * lib/stdio.in.h: Tweak comments.
29510
29511 2010-02-19  Bruno Haible  <bruno@clisp.org>
29512
29513         Make it easier to find modules. New gnulib-tool option '--find'.
29514         * gnulib-tool: New option --find.
29515         (func_usage): Document it.
29516         (func_sanitize_modulelist): New function, extracted from
29517         func_all_modules.
29518         (func_all_modules): Invoke it.
29519         * doc/gnulib-tool.texi (Which modules?): New node.
29520
29521 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29522
29523         * lib/sys_select.in.h: Provide select replacement even if
29524         sys/select.h exists on a system, for Interix.
29525
29526 2010-02-18  Jim Meyering  <meyering@redhat.com>
29527
29528         init.sh: don't use $(...) just yet
29529         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29530         to accommodate e.g., Solaris' /bin/sh.
29531
29532 2010-02-17  Bruno Haible  <bruno@clisp.org>
29533
29534         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29535         Reported by Ludovic Courtès <ludo@gnu.org>.
29536
29537 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29538
29539         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29540         linking with -lintl.
29541
29542 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29543
29544         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29545         if not provided by the system's netdb.h.  Reported by
29546         ludo@gnu.org (Ludovic Courtès).
29547
29548 2010-02-15  Jim Meyering  <meyering@redhat.com>
29549
29550         init.sh: improve portability and efficiency
29551         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29552         "dummy" in a for loop.
29553         Use '!', not '^' to select the complement of a character set used
29554         in a "case" statement.
29555         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29556         Suggestions from Eric Blake.
29557
29558         init.sh: automatically accommodate programs with the .exe suffix
29559         Automatically arrange for an invocation of "prog" to execute the
29560         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29561         may use the simpler "prog", yet still work when built on a system
29562         that requires specifying the added suffix.
29563         Do this by constructing a function named "prog" that invokes
29564         "prog.exe" for each .exe file in selected directories.
29565         * tests/init.sh (find_exe_basenames_): New function.
29566         (create_exe_shim_functions_): New function.
29567         (path_prepend_): Use it.
29568
29569         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29570         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29571         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29572
29573 2010-02-14  Jim Meyering  <meyering@redhat.com>
29574
29575         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29576         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29577         (sc_prohibit_hash_pjw_without_use): New rule.
29578
29579         maint.mk: allow the default upload destination dir to be overridden
29580         * top/maint.mk (upload_dest_dir_): Define with a default that
29581         preserves the status quo.
29582         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29583         Reported by Peter Simons.
29584
29585         maint.mk: prohibit inclusion of "hash.h" without_use
29586         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29587
29588 2010-02-10  Jim Meyering  <meyering@redhat.com>
29589
29590         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29591         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29592
29593 2010-02-09  Eric Blake  <ebb9@byu.net>
29594         and Bruno Haible  <bruno@clisp.org>
29595
29596         obstack-printf-posix: ensure declaration
29597         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29598         extracted from gl_FUNC_OBSTACK_PRINTF.
29599         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29600         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29601         Likewise.
29602         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29603         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29604         0.
29605
29606 2010-02-08  Bruno Haible  <bruno@clisp.org>
29607
29608         gnulib-tool: Fix typo in 2010-02-07 commit.
29609         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29610         Reported by Eric Blake.
29611
29612 2010-02-07  Bruno Haible  <bruno@clisp.org>
29613
29614         gnulib-tool: Fix up caching patches.
29615         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29616         option --no-cache. Use associative arrays when supported by the shell.
29617         (sed_comments): New variable.
29618         (modcache): Renamed from do_cache.
29619         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29620         abbreviate unnecessarily.
29621         (have_associative): New variable.
29622         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29623         way also for ksh and zsh.
29624         (func_init_sed_convert_to_cache_statements): New function, extracted
29625         from func_cache_lookup_module. Add support for associative arrays.
29626         Don't set the c_MODULE_cached variable here. Ignore all lines before
29627         the first field header. Remove only the final newline, not all trailing
29628         newlines. Support empty fields correctly. Limit the use of 'eval' to
29629         assignments.
29630         (func_get_description, func_get_status, func_get_notice,
29631         func_get_applicability, func_get_filelist, func_get_dependencies,
29632         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29633         func_get_automake_snippet, func_get_include_directive,
29634         func_get_link_directive, func_get_license, func_get_maintainer):
29635         Update documentation. List the unoptimized code first. Add support for
29636         associative arrays. Limit the use of 'eval' to assignments.
29637         (func_get_applicability): Undo stylistic pessimisations.
29638         (func_get_automake_snippet, func_get_include_directive): Reduce code
29639         duplication.
29640         (func_modules_transitive_closure, func_modules_add_dummy,
29641         func_modules_notice, func_modules_to_filelist, func_add_file,
29642         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29643         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29644         func_create_testdir, func_create_megatestdir): Update documentation.
29645
29646 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29647
29648         * gnulib-tool (func_cache_lookup_module): Store the module name
29649         belonging to the cache variable; error out if two different
29650         module names map to the same cache variable name.
29651
29652 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29653
29654         gnulib-tool: Make caching optional.
29655         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29656         Update matching short versions of --no-changelog.
29657         (func_usage): Update.
29658         (sed_extract_cache_prog): Renamed from ...
29659         (sed_extract_prog): ... this; revert to old extraction script.
29660         (func_get_description, func_get_status)
29661         (func_get_notice, func_get_applicability, func_get_filelist)
29662         (func_get_dependencies, func_get_autoconf_early_snippet)
29663         (func_get_autoconf_snippet, func_get_automake_snippet)
29664         (func_get_include_directive, func_get_link_directive)
29665         (func_get_license, func_get_maintainer): If $do_cache is false,
29666         use old, non-caching extraction scripts.
29667         Suggestion by Bruno Haible.
29668
29669 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29670
29671         gnulib-tool: cache module metainformation.
29672         * gnulib-tool (sed_extract_prog): Match newline before each
29673         header, and rewrite header to a shell variable suffix.
29674         (func_cache_var, func_cache_lookup_module): New functions,
29675         to turn a module name into a cache variable prefix, and to
29676         look up and cache module metainformation.
29677         (func_get_description, func_get_status)
29678         (func_get_notice, func_get_applicability, func_get_filelist)
29679         (func_get_dependencies, func_get_autoconf_early_snippet)
29680         (func_get_autoconf_snippet, func_get_automake_snippet)
29681         (func_get_include_directive, func_get_link_directive)
29682         (func_get_license, func_get_maintainer): Use
29683         func_cache_lookup_module.
29684
29685 2010-02-07  Bruno Haible  <bruno@clisp.org>
29686
29687         fnctl: Fix missing dependency.
29688         * modules/fcntl (Depends-on): Add getdtablesize.
29689         Reported by John W. Eaton <jwe@gnu.org>.
29690
29691 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29692
29693         Argp: fix recognition of short alias options.
29694
29695         * lib/argp-parse.c (convert_options): Fix improper use of
29696         `|' between character values.
29697         * tests/test-argp.c (group1_option): New alias option
29698         --read (-r).
29699         (group1_parser): Special handling for 'r'.
29700         (test15): New test case.
29701         (test_fun): Add test15.
29702         * tests/test-argp-2.sh: Update expected --help and --usage
29703         outputs.
29704
29705 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29706
29707         * tests/test-argp.c: Fix indentation.
29708
29709 2010-02-04  Eric Blake  <ebb9@byu.net>
29710
29711         gettimeofday: expose type of second argument
29712         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29713         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29714         * tests/test-gettimeofday.c: Use it to silence warning.
29715         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29716         the issue.
29717
29718 2010-02-03  Jim Meyering  <meyering@redhat.com>
29719
29720         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29721         * lib/regcomp.c (TYPE_SIGNED): Define.
29722         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29723
29724         regcomp.c: avoid a new -Wshadow warning
29725         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29726
29727 2010-02-01  Jim Meyering  <meyering@redhat.com>
29728
29729         removing useless parentheses in cpp #define directives
29730         For motivation, see commit c0221df4, "define STREQ(a,b)
29731         consistently, removing useless parentheses"
29732         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29733         * lib/mountlist.c (MNT_IGNORE): Likewise.
29734         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29735
29736 2010-02-01  Eric Blake  <ebb9@byu.net>
29737
29738         sys_time: use link-warning
29739         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29740         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29741         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29742         * modules/sys_time (Depends-on): Add warn-on-use.
29743         (Makefile.am): Always build replacement.
29744         (configure.ac): Update substitutions.
29745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29746         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29747         bother with SYS_TIME_H.
29748         * modules/gettimeofday (configure.ac): Declare indicator.
29749         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29750         in use.
29751
29752         closein-tests: silence compiler warning
29753         * tests/test-closein.c (main): Ignore fread result.
29754         * modules/closein-tests (Depends-on): Add ignore-value.
29755
29756         tests: silence warning about system return
29757         * tests/test-areadlink-with-size.c (main): Ignore system result.
29758         * tests/test-areadlink.c (main): Likewise.
29759         * tests/test-areadlinkat-with-size.c (main): Likewise.
29760         * tests/test-areadlinkat.c (main): Likewise.
29761         * tests/test-canonicalize-lgpl.c (main): Likewise.
29762         * tests/test-canonicalize.c (main): Likewise.
29763         * tests/test-chown.c (main): Likewise.
29764         * tests/test-fchownat.c (main): Likewise.
29765         * tests/test-fdutimensat.c (main): Likewise.
29766         * tests/test-fstatat.c (main): Likewise.
29767         * tests/test-futimens.c (main): Likewise.
29768         * tests/test-lchown.c (main): Likewise.
29769         * tests/test-link.c (main): Likewise.
29770         * tests/test-linkat.c (main): Likewise.
29771         * tests/test-lstat.c (main): Likewise.
29772         * tests/test-mkdir.c (main): Likewise.
29773         * tests/test-mkdirat.c (main): Likewise.
29774         * tests/test-mkfifo.c (main): Likewise.
29775         * tests/test-mkfifoat.c (main): Likewise.
29776         * tests/test-mknod.c (main): Likewise.
29777         * tests/test-readlink.c (main): Likewise.
29778         * tests/test-remove.c (main): Likewise.
29779         * tests/test-rename.c (main): Likewise.
29780         * tests/test-renameat.c (main): Likewise.
29781         * tests/test-rmdir.c (main): Likewise.
29782         * tests/test-symlink.c (main): Likewise.
29783         * tests/test-symlinkat.c (main): Likewise.
29784         * tests/test-unlink.c (main): Likewise.
29785         * tests/test-unlinkat.c (main): Likewise.
29786         * tests/test-utimens.c (main): Likewise.
29787         * tests/test-utimensat.c (main): Likewise.
29788         * modules/areadlink-tests (Depends-on): Add ignore-value.
29789         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29790         * modules/areadlinkat-tests (Depends-on): Likewise.
29791         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29792         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29793         * modules/canonicalize-tests (Depends-on): Likewise.
29794         * modules/chown-tests (Depends-on): Likewise.
29795         * modules/fdutimensat-tests (Depends-on): Likewise.
29796         * modules/futimens-tests (Depends-on): Likewise.
29797         * modules/lchown-tests (Depends-on): Likewise.
29798         * modules/link-tests (Depends-on): Likewise.
29799         * modules/linkat-tests (Depends-on): Likewise.
29800         * modules/lstat-tests (Depends-on): Likewise.
29801         * modules/mkdir-tests (Depends-on): Likewise.
29802         * modules/mkfifo-tests (Depends-on): Likewise.
29803         * modules/mkfifoat-tests (Depends-on): Likewise.
29804         * modules/mknod-tests (Depends-on): Likewise.
29805         * modules/openat-tests (Depends-on): Likewise.
29806         * modules/readlink-tests (Depends-on): Likewise.
29807         * modules/remove-tests (Depends-on): Likewise.
29808         * modules/rename-tests (Depends-on): Likewise.
29809         * modules/renameat-tests (Depends-on): Likewise.
29810         * modules/rmdir-tests (Depends-on): Likewise.
29811         * modules/symlink-tests (Depends-on): Likewise.
29812         * modules/symlinkat-tests (Depends-on): Likewise.
29813         * modules/unlink-tests (Depends-on): Likewise.
29814         * modules/utimens-tests (Depends-on): Likewise.
29815         * modules/utimensat-tests (Depends-on): Likewise.
29816
29817 2010-01-31  Bruno Haible  <bruno@clisp.org>
29818
29819         Perform the same test for many <math.h> functions.
29820         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29821         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29822         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29823         of gl_MATHFUNC.
29824         * modules/acos (configure.ac): Likewise.
29825         * modules/asin (configure.ac): Likewise.
29826         * modules/atan (configure.ac): Likewise.
29827         * modules/atan2 (configure.ac): Likewise.
29828         * modules/cbrt (configure.ac): Likewise.
29829         * modules/copysign (configure.ac): Likewise.
29830         * modules/cos (configure.ac): Likewise.
29831         * modules/cosh (configure.ac): Likewise.
29832         * modules/erf (configure.ac): Likewise.
29833         * modules/erfc (configure.ac): Likewise.
29834         * modules/exp (configure.ac): Likewise.
29835         * modules/fmod (configure.ac): Likewise.
29836         * modules/hypot (configure.ac): Likewise.
29837         * modules/j0 (configure.ac): Likewise.
29838         * modules/j1 (configure.ac): Likewise.
29839         * modules/jn (configure.ac): Likewise.
29840         * modules/lgamma (configure.ac): Likewise.
29841         * modules/log (configure.ac): Likewise.
29842         * modules/log10 (configure.ac): Likewise.
29843         * modules/log1p (configure.ac): Likewise.
29844         * modules/pow (configure.ac): Likewise.
29845         * modules/remainder (configure.ac): Likewise.
29846         * modules/sin (configure.ac): Likewise.
29847         * modules/sinh (configure.ac): Likewise.
29848         * modules/tan (configure.ac): Likewise.
29849         * modules/tanh (configure.ac): Likewise.
29850         * modules/y0 (configure.ac): Likewise.
29851         * modules/y1 (configure.ac): Likewise.
29852         * modules/yn (configure.ac): Likewise.
29853         Suggested by Paolo Bonzini.
29854
29855 2010-01-31  Bruno Haible  <bruno@clisp.org>
29856
29857         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29858
29859 2010-01-31  Bruno Haible  <bruno@clisp.org>
29860
29861         Work around getdelim() bug on FreeBSD 8.0.
29862         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29863         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29864         not work.
29865         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29866         is 1.
29867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29868         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29869         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29870         a non-zero size.
29871         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29872
29873 2010-01-31  Bruno Haible  <bruno@clisp.org>
29874
29875         Work around getline() bug on FreeBSD 8.0.
29876         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29877         and a non-zero size.
29878         * tests/test-getline.c (main): Likewise.
29879         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29880         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29881
29882 2010-01-28  Eric Blake  <ebb9@byu.net>
29883
29884         regex: fix build failure
29885         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29886         platforms.
29887
29888 2010-01-28  Jim Meyering  <meyering@redhat.com>
29889
29890         regex: do not ignore memory allocation failure
29891         * lib/regex_internal.c (create_cd_newstate): Detect
29892         re_node_set_init_copy failure.   Extracted from glibc commit
29893         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29894
29895         regex: sync more white-space changes from libc
29896         * lib/regex_internal.c: White-space only changes.
29897         * lib/regexec.c: Likewise.
29898
29899         regex: add many uses of __attribute_warn_unused_result__
29900         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29901         * lib/regexec.c: Likewise.
29902         Extracted from a messy glibc commit.
29903
29904         regcomp.c: spelling and merge-artifact from glibc
29905         * lib/regcomp.c: Merge remainder of glibc's
29906         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29907
29908         regcomp.c: sync white-space changes from glibc
29909         * lib/regcomp.c: Merge to accommodate white space
29910         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29911
29912         regcomp.c: do not ignore internal return values
29913         * lib/regcomp.c: Do not ignore internal return values.
29914         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29915         but without its white-space changes and spelling fixes.
29916
29917         regex_internal.h: define __attribute_warn_unused_result__
29918         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29919
29920         maint: add a syntax-check rule to check for vulnerable Makefile.in
29921         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29922
29923 2010-01-27  Jim Meyering  <meyering@redhat.com>
29924
29925         ncftpput-ftp: clean up spaces
29926         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29927         Remove trailing blanks.
29928
29929 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29930
29931         * build-aux/git-version-gen: Fix copyright statement.
29932         * build-aux/gnupload: Likewise.
29933         * tests/test-arcfour.c: Likewise.
29934         * tests/test-arctwo.c: Likewise.
29935         * tests/test-count-one-bits.c: Likewise.
29936         * tests/test-crc.c: Likewise.
29937         * tests/test-des.c: Likewise.
29938         * tests/test-gc-arcfour.c: Likewise.
29939         * tests/test-gc-arctwo.c: Likewise.
29940         * tests/test-gc-des.c: Likewise.
29941         * tests/test-gc-hmac-md5.c: Likewise.
29942         * tests/test-gc-hmac-sha1.c: Likewise.
29943         * tests/test-gc-md2.c: Likewise.
29944         * tests/test-gc-md4.c: Likewise.
29945         * tests/test-gc-md5.c: Likewise.
29946         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29947         * tests/test-gc-rijndael.c: Likewise.
29948         * tests/test-gc-sha1.c: Likewise.
29949         * tests/test-gc.c: Likewise.
29950         * tests/test-gethostname.c: Likewise.
29951         * tests/test-gettimeofday.c: Likewise.
29952         * tests/test-hash.c: Likewise.
29953         * tests/test-hmac-md5.c: Likewise.
29954         * tests/test-hmac-sha1.c: Likewise.
29955         * tests/test-md2.c: Likewise.
29956         * tests/test-md4.c: Likewise.
29957         * tests/test-md5.c: Likewise.
29958         * tests/test-memchr.c: Likewise.
29959         * tests/test-memchr2.c: Likewise.
29960         * tests/test-memcmp.c: Likewise.
29961         * tests/test-memmem.c: Likewise.
29962         * tests/test-memrchr.c: Likewise.
29963         * tests/test-rawmemchr.c: Likewise.
29964         * tests/test-read-file.c: Likewise.
29965         * tests/test-rijndael.c: Likewise.
29966         * tests/test-sockets.c: Likewise.
29967         * tests/test-strchrnul.c: Likewise.
29968         * tests/test-strstr.c: Likewise.
29969         * tests/test-strtod.c: Likewise.
29970         * build-aux/ncftpput-ftp: Likewise.
29971
29972 2010-01-26  Eric Blake  <ebb9@byu.net>
29973
29974         ignore-value: update recommended header name
29975         * modules/ignore-value (Include): Only use <> for headers that
29976         exist in glibc.
29977
29978 2010-01-26  Jim Meyering  <meyering@redhat.com>
29979
29980         test-userspec.c: avoid compiler warnings
29981         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29982         and "initialization discards qualifiers..." warnings.
29983         Put the first "uid" in its own scope, and make char* members "const".
29984
29985 2010-01-25  Bruno Haible  <bruno@clisp.org>
29986
29987         gnulib-tool: Make warning diagnostics consistent.
29988         * gnulib-tool (func_warning): New function.
29989         Use it everywhere where gnulib-tool produces output to stderr and it is
29990         not a fatal error.
29991
29992 2010-01-25  Bruno Haible  <bruno@clisp.org>
29993
29994         Fix test dependencies.
29995         * modules/xstrtol-tests (Depends-on): Add inttypes.
29996         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29997
29998 2010-01-25 Pádraig Brady <P@draigBrady.com>
29999
30000         syntax-check: detect incorrect boolean macro values in config.h
30001         * modules/maintainer-makefile (configure.ac): Parameterize the location
30002         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
30003         The logic is from Eric Blake and the location indicated by Jim Meyering.
30004         Note the more natural CONFIG_HEADER name is prohibited by automake
30005         for backwards compatibility reasons.
30006         * top/maint.mk (sc_Wundef_boolean): New rule.
30007
30008 2010-01-25  Jim Meyering  <meyering@redhat.com>
30009
30010         bootstrap: detect MacOS 10.6's shasum, too
30011         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
30012         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
30013
30014 2010-01-23  Jim Meyering  <meyering@redhat.com>
30015
30016         xstrtoll: new module
30017         * modules/xstrtoll: New file.
30018         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30019         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30020         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30021         ./configure fails if you use this module and lack "long long".
30022         * modules/xstrtoll-tests: New module.
30023         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30024         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30025         new init.sh-based test framework.
30026
30027 2010-01-24  Bruno Haible  <bruno@clisp.org>
30028
30029         Tests for module 'yn'.
30030         * modules/yn-tests: New file.
30031         * tests/test-yn.c: New file.
30032
30033         Tests for module 'y1'.
30034         * modules/y1-tests: New file.
30035         * tests/test-y1.c: New file.
30036
30037         Tests for module 'y0'.
30038         * modules/y0-tests: New file.
30039         * tests/test-y0.c: New file.
30040
30041         Tests for module 'tanh'.
30042         * modules/tanh-tests: New file.
30043         * tests/test-tanh.c: New file.
30044
30045         Tests for module 'tan'.
30046         * modules/tan-tests: New file.
30047         * tests/test-tan.c: New file.
30048
30049         Tests for module 'sqrt'.
30050         * modules/sqrt-tests: New file.
30051         * tests/test-sqrt.c: New file.
30052
30053         Tests for module 'sinh'.
30054         * modules/sinh-tests: New file.
30055         * tests/test-sinh.c: New file.
30056
30057         Tests for module 'sin'.
30058         * modules/sin-tests: New file.
30059         * tests/test-sin.c: New file.
30060
30061         Tests for module 'rint'.
30062         * modules/rint-tests: New file.
30063         * tests/test-rint.c: New file.
30064
30065         Tests for module 'remainder'.
30066         * modules/remainder-tests: New file.
30067         * tests/test-remainder.c: New file.
30068
30069         Tests for module 'pow'.
30070         * modules/pow-tests: New file.
30071         * tests/test-pow.c: New file.
30072
30073         Tests for module 'nextafter'.
30074         * modules/nextafter-tests: New file.
30075         * tests/test-nextafter.c: New file.
30076
30077         Tests for module 'modf'.
30078         * modules/modf-tests: New file.
30079         * tests/test-modf.c: New file.
30080
30081         Tests for module 'logb'.
30082         * modules/logb-tests: New file.
30083         * tests/test-logb.c: New file.
30084
30085         Tests for module 'log1p'.
30086         * modules/log1p-tests: New file.
30087         * tests/test-log1p.c: New file.
30088
30089         Tests for module 'log10'.
30090         * modules/log10-tests: New file.
30091         * tests/test-log10.c: New file.
30092
30093         Tests for module 'log'.
30094         * modules/log-tests: New file.
30095         * tests/test-log.c: New file.
30096
30097         Tests for module 'lgamma'.
30098         * modules/lgamma-tests: New file.
30099         * tests/test-lgamma.c: New file.
30100
30101         Tests for module 'ldexp'.
30102         * modules/ldexp-tests: New file.
30103         * tests/test-ldexp.c: New file.
30104
30105         Tests for module 'jn'.
30106         * modules/jn-tests: New file.
30107         * tests/test-jn.c: New file.
30108
30109         Tests for module 'j1'.
30110         * modules/j1-tests: New file.
30111         * tests/test-j1.c: New file.
30112
30113         Tests for module 'j0'.
30114         * modules/j0-tests: New file.
30115         * tests/test-j0.c: New file.
30116
30117         Tests for module 'hypot'.
30118         * modules/hypot-tests: New file.
30119         * tests/test-hypot.c: New file.
30120
30121         Tests for module 'fmod'.
30122         * modules/fmod-tests: New file.
30123         * tests/test-fmod.c: New file.
30124
30125         Tests for module 'fabs'.
30126         * modules/fabs-tests: New file.
30127         * tests/test-fabs.c: New file.
30128
30129         Tests for module 'exp'.
30130         * modules/exp-tests: New file.
30131         * tests/test-exp.c: New file.
30132
30133         Tests for module 'erfc'.
30134         * modules/erfc-tests: New file.
30135         * tests/test-erfc.c: New file.
30136
30137         Tests for module 'erf'.
30138         * modules/erf-tests: New file.
30139         * tests/test-erf.c: New file.
30140
30141         Tests for module 'cosh'.
30142         * modules/cosh-tests: New file.
30143         * tests/test-cosh.c: New file.
30144
30145         Tests for module 'cos'.
30146         * modules/cos-tests: New file.
30147         * tests/test-cos.c: New file.
30148
30149         Tests for module 'copysign'.
30150         * modules/copysign-tests: New file.
30151         * tests/test-copysign.c: New file.
30152
30153         Tests for module 'cbrt'.
30154         * modules/cbrt-tests: New file.
30155         * tests/test-cbrt.c: New file.
30156
30157         Tests for module 'atan2'.
30158         * modules/atan2-tests: New file.
30159         * tests/test-atan2.c: New file.
30160
30161         Tests for module 'atan'.
30162         * modules/atan-tests: New file.
30163         * tests/test-atan.c: New file.
30164
30165         Tests for module 'asin'.
30166         * modules/asin-tests: New file.
30167         * tests/test-asin.c: New file.
30168
30169         Tests for module 'acos'.
30170         * modules/acos-tests: New file.
30171         * tests/test-acos.c: New file.
30172
30173 2010-01-24  Bruno Haible  <bruno@clisp.org>
30174
30175         Fix tests for common <math.h> functions.
30176         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30177         code snippet that references the function pointer, rather than merely
30178         calling the function. Substitute the FUNC_LIBM variable.
30179         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30180         * modules/acos (configure.ac): Likewise.
30181         * modules/asin (configure.ac): Likewise.
30182         * modules/atan (configure.ac): Likewise.
30183         * modules/atan2 (configure.ac): Likewise.
30184         * modules/cbrt (configure.ac): Likewise.
30185         * modules/copysign (configure.ac): Likewise.
30186         * modules/cos (configure.ac): Likewise.
30187         * modules/cosh (configure.ac): Likewise.
30188         * modules/erf (configure.ac): Likewise.
30189         * modules/erfc (configure.ac): Likewise.
30190         * modules/exp (configure.ac): Likewise.
30191         * modules/fabs (configure.ac): Likewise.
30192         * modules/fmod (configure.ac): Likewise.
30193         * modules/hypot (configure.ac): Likewise.
30194         * modules/j0 (configure.ac): Likewise.
30195         * modules/j1 (configure.ac): Likewise.
30196         * modules/jn (configure.ac): Likewise.
30197         * modules/ldexp (configure.ac): Likewise.
30198         * modules/lgamma (configure.ac): Likewise.
30199         * modules/log (configure.ac): Likewise.
30200         * modules/log10 (configure.ac): Likewise.
30201         * modules/log1p (configure.ac): Likewise.
30202         * modules/logb (configure.ac): Likewise.
30203         * modules/modf (configure.ac): Likewise.
30204         * modules/nextafter (configure.ac): Likewise.
30205         * modules/pow (configure.ac): Likewise.
30206         * modules/remainder (configure.ac): Likewise.
30207         * modules/rint (configure.ac): Likewise.
30208         * modules/sin (configure.ac): Likewise.
30209         * modules/sinh (configure.ac): Likewise.
30210         * modules/tan (configure.ac): Likewise.
30211         * modules/tanh (configure.ac): Likewise.
30212         * modules/y0 (configure.ac): Likewise.
30213         * modules/y1 (configure.ac): Likewise.
30214         * modules/yn (configure.ac): Likewise.
30215
30216 2010-01-24  Bruno Haible  <bruno@clisp.org>
30217
30218         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30219         * tests/test-acosl.c (x): New variable.
30220         (main): Store argument in x and fetch it from x.
30221         * tests/test-asinl.c (x): New variable.
30222         (main): Store argument in x and fetch it from x.
30223         * tests/test-atanl.c (x): New variable.
30224         (main): Store argument in x and fetch it from x.
30225         * tests/test-cosl.c (x): New variable.
30226         (main): Store argument in x and fetch it from x.
30227         * tests/test-expl.c (x): New variable.
30228         (main): Store argument in x and fetch it from x.
30229         * tests/test-logl.c (x): New variable.
30230         (main): Store argument in x and fetch it from x.
30231         * tests/test-sinl.c (x): New variable.
30232         (main): Store argument in x and fetch it from x.
30233         * tests/test-sqrtl.c (x): New variable.
30234         (main): Store argument in x and fetch it from x.
30235         * tests/test-tanl.c (x): New variable.
30236         (main): Store argument in x and fetch it from x.
30237
30238 2010-01-24  Bruno Haible  <bruno@clisp.org>
30239
30240         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30241         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30242         assignments to the initial TESTS_ENVIRONMENT.
30243         * doc/gnulib.texi (Unit test modules): Document it.
30244         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30245         TESTS_ENVIRONMENT.
30246         * modules/btowc-tests (Makefile.am): Likewise.
30247         * modules/c-stack-tests (Makefile.am): Likewise.
30248         * modules/c-strcase-tests (Makefile.am): Likewise.
30249         * modules/copy-file-tests (Makefile.am): Likewise.
30250         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30251         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30252         * modules/mbrtowc-tests (Makefile.am): Likewise.
30253         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30254         * modules/mbscasestr-tests (Makefile.am): Likewise.
30255         * modules/mbschr-tests (Makefile.am): Likewise.
30256         * modules/mbscspn-tests (Makefile.am): Likewise.
30257         * modules/mbsinit-tests (Makefile.am): Likewise.
30258         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30259         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30260         * modules/mbspbrk-tests (Makefile.am): Likewise.
30261         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30262         * modules/mbsrchr-tests (Makefile.am): Likewise.
30263         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30264         * modules/mbsspn-tests (Makefile.am): Likewise.
30265         * modules/mbsstr-tests (Makefile.am): Likewise.
30266         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30267         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30268         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30269         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30270         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30271         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30272         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30273         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30274         * modules/wcrtomb-tests (Makefile.am): Likewise.
30275         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30276         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30277         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30278         assignments from TESTS_ENVIRONMENT.
30279         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30280         augmentation.
30281         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30282         * modules/atexit-tests (Makefile.am): Likewise.
30283         * modules/binary-io-tests (Makefile.am): Likewise.
30284         * modules/closein-tests (Makefile.am): Likewise.
30285         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30286         * modules/exclude-tests (Makefile.am): Likewise.
30287         * modules/fflush-tests (Makefile.am): Likewise.
30288         * modules/fpending-tests (Makefile.am): Likewise.
30289         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30290         * modules/freadahead-tests (Makefile.am): Likewise.
30291         * modules/freadptr-tests (Makefile.am): Likewise.
30292         * modules/freadseek-tests (Makefile.am): Likewise.
30293         * modules/fseek-tests (Makefile.am): Likewise.
30294         * modules/fseeko-tests (Makefile.am): Likewise.
30295         * modules/ftell-tests (Makefile.am): Likewise.
30296         * modules/ftello-tests (Makefile.am): Likewise.
30297         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30298         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30299         * modules/lseek-tests (Makefile.am): Likewise.
30300         * modules/parse-duration-tests (Makefile.am): Likewise.
30301         * modules/perror-tests (Makefile.am): Likewise.
30302         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30303         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30304         * modules/pipe-tests (Makefile.am): Likewise.
30305         * modules/pread-tests (Makefile.am): Likewise.
30306         * modules/printf-posix-tests (Makefile.am): Likewise.
30307         * modules/select-tests (Makefile.am): Likewise.
30308         * modules/sigpipe-tests (Makefile.am): Likewise.
30309         * modules/tsearch-tests (Makefile.am): Likewise.
30310         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30311         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30312         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30313         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30314         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30315         * modules/version-etc-tests (Makefile.am): Likewise.
30316         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30317         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30318         * modules/xalloc-die-tests (Makefile.am): Likewise.
30319         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30320         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30321         * modules/xstrtol-tests (Makefile.am): Likewise.
30322         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30323         * modules/yesno-tests (Makefile.am): Likewise.
30324         Suggested by Jim Meyering.
30325
30326 2010-01-24  Bruno Haible  <bruno@clisp.org>
30327
30328         More documentation.
30329         * doc/gnulib.texi (Writing modules): New chapter.
30330         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30331         the new chapter.
30332
30333 2010-01-24  Jim Meyering  <meyering@redhat.com>
30334
30335         maint.mk: do not prepend "./" after filtering
30336         * top/maint.mk (_prepend_srcdir_prefix): New variable
30337         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30338         "./" when $(srcdir) is ".".
30339
30340         define STREQ(a,b) consistently, removing useless parentheses
30341         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30342         since the only risk is that "a" or "b" contains an unparenthesized
30343         comma, but if either did that, STREQ would have 3 or more arguments.
30344         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30345         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30346         * lib/hash-triple.c (STREQ): Likewise.
30347         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30348         * lib/getugroups.c (STREQ): Likewise.
30349
30350 2010-01-23  Jim Meyering  <meyering@redhat.com>
30351
30352         maint.mk: fix syntax-check in a non-srcdir build directory
30353         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30354         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30355
30356 2010-01-22  Jim Meyering  <meyering@redhat.com>
30357
30358         userspec: add unit tests
30359         * tests/test-userspec.c: New file.
30360         * modules/userspec-tests: Likewise.
30361
30362 2010-01-21  Jim Meyering  <meyering@redhat.com>
30363
30364         maint.mk: handle source file names containing "." robustly
30365         * top/maint.mk (_dot_escaped_srcdir): Define.
30366         (VC_LIST): Use it in LHS of sed substitution.
30367
30368 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30369
30370         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30371         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30372         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30373         from a non-srcdir build.
30374
30375 2010-01-20  Eric Blake  <ebb9@byu.net>
30376
30377         warn-on-use: use instead of link-warning
30378         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30379         * modules/unistd (Depends-on, Makefile.am): Likewise.
30380         * modules/arpa_inet (Depends-on): Replace link-warning with
30381         warn-on-use.
30382         (Makefile.am): Update rules accordingly.
30383         * modules/ctype (Depends-on, Makefile.am): Likewise.
30384         * modules/dirent (Depends-on, Makefile.am): Likewise.
30385         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30386         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30387         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30388         * modules/locale (Depends-on, Makefile.am): Likewise.
30389         * modules/math (Depends-on, Makefile.am): Likewise.
30390         * modules/search (Depends-on, Makefile.am): Likewise.
30391         * modules/signal (Depends-on, Makefile.am): Likewise.
30392         * modules/spawn (Depends-on, Makefile.am): Likewise.
30393         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30394         * modules/string (Depends-on, Makefile.am): Likewise.
30395         * modules/strings (Depends-on, Makefile.am): Likewise.
30396         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30397         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30398         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30399         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30400         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30401         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30402         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30403         * modules/wchar (Depends-on, Makefile.am): Likewise.
30404         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30405         should be poisoned.
30406         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30407         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30408         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30409         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30410         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30411         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30412         * m4/math_h.m4 (gl_MATH_H): Likewise.
30413         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30414         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30415         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30416         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30417         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30418         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30419         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30420         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30421         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30422         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30424         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30425         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30426         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30427         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30428         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30429         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30430         GL_LINK_WARNING.
30431         * lib/ctype.in.h: Likewise.
30432         * lib/dirent.in.h: Likewise.
30433         * lib/fcntl.in.h: Likewise.
30434         * lib/inttypes.in.h: Likewise.
30435         * lib/langinfo.in.h: Likewise.
30436         * lib/locale.in.h: Likewise.
30437         * lib/math.in.h: Likewise.
30438         * lib/search.in.h: Likewise.
30439         * lib/signal.in.h: Likewise.
30440         * lib/spawn.in.h: Likewise.
30441         * lib/stdio.in.h: Likewise.
30442         * lib/stdlib.in.h: Likewise.
30443         * lib/string.in.h: Likewise.
30444         * lib/strings.in.h: Likewise.
30445         * lib/sys_file.in.h: Likewise.
30446         * lib/sys_ioctl.in.h: Likewise.
30447         * lib/sys_select.in.h: Likewise.
30448         * lib/sys_socket.in.h: Likewise.
30449         * lib/sys_stat.in.h: Likewise.
30450         * lib/sys_times.in.h: Likewise.
30451         * lib/sys_utsname.in.h: Likewise.
30452         * lib/unistd.in.h: Likewise.
30453         * lib/wchar.in.h: Likewise.
30454
30455 2010-01-20  Bruno Haible  <bruno@clisp.org>
30456
30457         Avoid duplicate -lm.
30458         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30459         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30460         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30461         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30462         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30463         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30464         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30465         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30466         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30467         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30468         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30469         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30470         Reported by Paolo Bonzini.
30471
30472 2010-01-19  Bruno Haible  <bruno@clisp.org>
30473
30474         langinfo, nl_langinfo: Relicense under LGPLv2+.
30475         * modules/langinfo (License): Change to LGPLv2+.
30476         * modules/nl_langinfo (License): Likewise.
30477         Patch by David Lutterkort <lutter@redhat.com>.
30478
30479 2010-01-19  Bruno Haible  <bruno@clisp.org>
30480
30481         Avoid compilation error with cc on OSF/1 5.1.
30482         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30483         statement, not before.
30484         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30485
30486 2010-01-18  Bruno Haible  <bruno@clisp.org>
30487
30488         Avoid a link error due to the __printf__ symbol.
30489         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30490         and 2.6.x.
30491         (__format__, __printf__): Remove definitions.
30492         * lib/argp-fmtstream.h: Likewise.
30493         * lib/argp.h: Likewise.
30494         * lib/error.h: Likewise.
30495         * lib/vasnprintf.h: Likewise.
30496         * lib/xprintf.h: Likewise.
30497         * lib/xvasprintf.h: Likewise.
30498         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30499
30500 2010-01-18  Bruno Haible  <bruno@clisp.org>
30501
30502         Tests for module 'tanl'.
30503         * modules/tanl-tests: New file.
30504         * tests/test-tanl.c: New file.
30505
30506         Tests for module 'sqrtl'.
30507         * modules/sqrtl-tests: New file.
30508         * tests/test-sqrtl.c: New file.
30509
30510         Tests for module 'sinl'.
30511         * modules/sinl-tests: New file.
30512         * tests/test-sinl.c: New file.
30513
30514         Tests for module 'logl'.
30515         * modules/logl-tests: New file.
30516         * tests/test-logl.c: New file.
30517
30518         Tests for module 'expl'.
30519         * modules/expl-tests: New file.
30520         * tests/test-expl.c: New file.
30521
30522         Tests for module 'cosl'.
30523         * modules/cosl-tests: New file.
30524         * tests/test-cosl.c: New file.
30525
30526         Tests for module 'atanl'.
30527         * modules/atanl-tests: New file.
30528         * tests/test-atanl.c: New file.
30529
30530         Tests for module 'asinl'.
30531         * modules/asinl-tests: New file.
30532         * tests/test-asinl.c: New file.
30533
30534         Tests for module 'acosl'.
30535         * modules/acosl-tests: New file.
30536         * tests/test-acosl.c: New file.
30537
30538         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30539         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30540         tanl): Use the standard gnulib idiom.
30541         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30542         * lib/sinl.c: Likewise.
30543         * lib/tanl.c: Don't include trigl.c.
30544         (kernel_tanl): Make static.
30545         * lib/sincosl.c: Include trigl.h first.
30546         * lib/trigl.c: Likewise.
30547         * m4/acosl.m4: New file.
30548         * m4/asinl.m4: New file.
30549         * m4/atanl.m4: New file.
30550         * m4/cosl.m4: New file.
30551         * m4/expl.m4: New file.
30552         * m4/logl.m4: New file.
30553         * m4/sinl.m4: New file.
30554         * m4/sqrtl.m4: New file.
30555         * m4/tanl.m4: New file.
30556         * m4/mathl.m4: Remove file.
30557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30558         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30559         Don't initialize GNULIB_MATHL.
30560         * modules/acosl: New file.
30561         * modules/asinl: New file.
30562         * modules/atanl: New file.
30563         * modules/cosl: New file.
30564         * modules/expl: New file.
30565         * modules/logl: New file.
30566         * modules/sinl: New file.
30567         * modules/sqrtl: New file.
30568         * modules/tanl: New file.
30569         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30570         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30571         substitute GNULIB_MATHL.
30572         * modules/mathl: Rewritten.
30573         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30574         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30575         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30576         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30577         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30578         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30579         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30580         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30581         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30582
30583 2010-01-18  Bruno Haible  <bruno@clisp.org>
30584
30585         sqrt: Make gl_FUNC_SQRT requirable.
30586         * m4/sqrt.m4: New file.
30587         * modules/sqrt (Files): Add it.
30588         (configure.ac): Invoke gl_FUNC_SQRT.
30589
30590 2010-01-18  Bruno Haible  <bruno@clisp.org>
30591
30592         New modules for common <math.h> functions.
30593         * m4/mathfunc.m4: New file.
30594         * modules/acos: New file.
30595         * modules/asin: New file.
30596         * modules/atan: New file.
30597         * modules/atan2: New file.
30598         * modules/cbrt: New file.
30599         * modules/copysign: New file.
30600         * modules/cos: New file.
30601         * modules/cosh: New file.
30602         * modules/erf: New file.
30603         * modules/erfc: New file.
30604         * modules/exp: New file.
30605         * modules/fabs: New file.
30606         * modules/fmod: New file.
30607         * modules/hypot: New file.
30608         * modules/j0: New file.
30609         * modules/j1: New file.
30610         * modules/jn: New file.
30611         * modules/ldexp: New file.
30612         * modules/lgamma: New file.
30613         * modules/log: New file.
30614         * modules/log10: New file.
30615         * modules/log1p: New file.
30616         * modules/logb: New file.
30617         * modules/modf: New file.
30618         * modules/nextafter: New file.
30619         * modules/pow: New file.
30620         * modules/remainder: New file.
30621         * modules/rint: New file.
30622         * modules/sin: New file.
30623         * modules/sinh: New file.
30624         * modules/sqrt: New file.
30625         * modules/tan: New file.
30626         * modules/tanh: New file.
30627         * modules/y0: New file.
30628         * modules/y1: New file.
30629         * modules/yn: New file.
30630         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30631         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30632         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30633         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30634         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30635         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30636         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30637         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30638         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30639         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30640         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30641         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30642         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30643         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30644         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30645         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30646         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30647         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30648         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30649         * doc/posix-functions/log.texi: Mention the 'log' module.
30650         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30651         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30652         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30653         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30654         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30655         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30656         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30657         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30658         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30659         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30660         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30661         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30662         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30663         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30664         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30665         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30666
30667 2010-01-18  Jim Meyering  <meyering@redhat.com>
30668
30669         ignore-value: relax license to LGPLv2+
30670         * modules/ignore-value (License): Relax to LGPLv2+.
30671
30672         getdate: don't leak when TZ contains two or more '"'s
30673         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30674         double quote in TZ after the first one.
30675
30676         readtokens: do not leak internal token_lengths buffer
30677         * lib/readtokens.c (readtokens): Free the local, lengths,
30678         when the supplied "token_lengths" parameter is NULL.
30679
30680 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30681
30682         Fix a couple of missing LIBTHREAD link failures on AIX.
30683         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30684         $(LIBTHREAD).
30685         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30686
30687         Link test-poll against INET_PTON_LIB.
30688         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30689         for inet_pton on Solaris 10.
30690
30691 2010-01-17  Bruno Haible  <bruno@clisp.org>
30692
30693         unistdio/*-sprintf: Fix typo in module description.
30694         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30695         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30696         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30697         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30698         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30699         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30700         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30701         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30702
30703 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30704
30705         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30706         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30707         variables in shell case patterns, for AIX and HP-UX ksh.
30708
30709         Split large sed scripts, for HP-UX sed.
30710         * modules/stdio: Split sed scripts around 50 sed commands,
30711         to avoid HP-UX limit of 99 commands, in the near future.
30712         * modules/string: Likewise.
30713         * modules/unistd: Likewise.
30714
30715         gnulib-tool: avoid writing in the current directory.
30716         * gnulib-tool (func_emit_lib_Makefile_am)
30717         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30718         not in the current directory, so concurrent gnulib-tool
30719         instances do not interfere.
30720
30721 2010-01-16  Jim Meyering  <meyering@redhat.com>
30722
30723         doc: update users.txt
30724         * users.txt: Add grep.
30725         (diffutils, gzip): Update URLs.
30726
30727 2010-01-12  Bruno Haible  <bruno@clisp.org>
30728
30729         posix_spawn: Avoid test failure on Cygwin.
30730         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30731         characters.
30732         Reported by Simon Josefsson.
30733
30734 2010-01-12  Bruno Haible  <bruno@clisp.org>
30735
30736         * tests/test-cond.c (main): When skipping the test, show the reason.
30737
30738 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30739
30740         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30741
30742 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30743
30744         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30745         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30746
30747 2010-01-12  Eric Blake  <ebb9@byu.net>
30748
30749         build: guarantee AS_VAR_IF
30750         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30751         (gl_AS_VAR_IF): Move...
30752         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30753         Reported by Simon Josefsson.
30754
30755 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30756
30757         * lib/stdio.in.h: Fix typo.
30758
30759 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30760
30761         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30762         libgpg-error.
30763
30764 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30765
30766         * tests/test-xalloc-die.sh: Use $EXEEXT.
30767
30768 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30769             Bruno Haible  <bruno@clisp.org>
30770
30771         getlogin, getlogin_r: Avoid test failure.
30772         * tests/test-getlogin.c: Include <stdio.h>.
30773         (main): Skip the test when the function fails because stdin is not a
30774         tty.
30775         * tests/test-getlogin_r.c: Include <stdio.h>.
30776         (main): Skip the test when the function fails because stdin is not a
30777         tty.
30778
30779 2010-01-11  Eric Blake  <ebb9@byu.net>
30780
30781         tests: avoid more large file warnings
30782         * tests/test-fflush.c: Avoid warning about ftell use.
30783         * tests/test-fseek.c: Avoid warning about fseek use.
30784
30785 2010-01-10  Bruno Haible  <bruno@clisp.org>
30786
30787         nproc: Work better on Linux when /proc and /sys are not mounted.
30788         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30789         as lower bound when, on glibc/Linux systems,
30790         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30791         Suggested by Pádraig Brady <P@draigbrady.com>.
30792         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30793
30794         nproc: Refactor.
30795         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30796         extracted from num_processors.
30797         (num_processors): Call it.
30798
30799 2010-01-11  Jim Meyering  <meyering@redhat.com>
30800
30801         utimecmp: avoid new warning from upcoming gcc-4.5.0
30802         * lib/utimecmp.c (BILLION): Define using #define rather than an
30803         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30804
30805 2010-01-11  Eric Blake  <ebb9@byu.net>
30806
30807         math: add portability warnings for classification macros
30808         * modules/math (Depends-on): Add warn-on-use.
30809         (Makefile.am): Provide new substitutions.
30810         * m4/math_h.m4 (gl_MATH_H): Require inline.
30811         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30812         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30813         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30814         implement warnings.
30815
30816         unistd: warn on use of environ without module
30817         * modules/unistd (Depends-on): Add warn-on-use.
30818         (Makefile.am): Provide new substitutions.
30819         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30820         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30821
30822         stdio: warn on suspicious uses
30823         * modules/stdio (Depends-on): Add warn-on-use.
30824         (Makefile.am): Provide new substitutions.
30825         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30826         fseeko.
30827         * lib/stdio.in.h (gets): Always warn on use.
30828         (fseek, ftell): Adjust when warnings are issued, and honor
30829         _GL_NO_LARGE_FILES as a way to silence the warning.
30830         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30831         any warning about large file offsets.
30832         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30833         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30834         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30835         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30836         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30837         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30838         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30839         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30840
30841         warn-on-use: new module
30842         * modules/warn-on-use: New file.
30843         * build-aux/warn-on-use.h: Likewise.
30844         * m4/warn-on-use.m4: Likewise.
30845         * MODULES.html.sh (Support for building): Mention it.
30846
30847 2010-01-10  Bruno Haible  <bruno@clisp.org>
30848
30849         Tests for module 'unistr/u32-strdup'.
30850         * modules/unistr/u32-strdup-tests: New file.
30851         * tests/unistr/test-u32-strdup.c: New file.
30852
30853         Tests for module 'unistr/u16-strdup'.
30854         * modules/unistr/u16-strdup-tests: New file.
30855         * tests/unistr/test-u16-strdup.c: New file.
30856
30857         Tests for module 'unistr/u8-strdup'.
30858         * modules/unistr/u8-strdup-tests: New file.
30859         * tests/unistr/test-u8-strdup.c: New file.
30860         * tests/unistr/test-strdup.h: New file.
30861
30862         Tests for module 'unistr/u32-strncmp'.
30863         * modules/unistr/u32-strncmp-tests: New file.
30864         * tests/unistr/test-u32-strncmp.c: New file.
30865
30866         Tests for module 'unistr/u16-strncmp'.
30867         * modules/unistr/u16-strncmp-tests: New file.
30868         * tests/unistr/test-u16-strncmp.c: New file.
30869
30870         Tests for module 'unistr/u8-strncmp'.
30871         * modules/unistr/u8-strncmp-tests: New file.
30872         * tests/unistr/test-u8-strncmp.c: New file.
30873         * tests/unistr/test-strncmp.h: New file.
30874
30875         Tests for module 'unistr/u32-strcoll'.
30876         * modules/unistr/u32-strcoll-tests: New file.
30877         * tests/unistr/test-u32-strcoll.c: New file.
30878
30879         Tests for module 'unistr/u16-strcoll'.
30880         * modules/unistr/u16-strcoll-tests: New file.
30881         * tests/unistr/test-u16-strcoll.c: New file.
30882
30883         Tests for module 'unistr/u8-strcoll'.
30884         * modules/unistr/u8-strcoll-tests: New file.
30885         * tests/unistr/test-u8-strcoll.c: New file.
30886
30887         Tests for module 'unistr/u32-strcmp'.
30888         * modules/unistr/u32-strcmp-tests: New file.
30889         * tests/unistr/test-u32-strcmp.c: New file.
30890         * tests/unistr/test-u32-strcmp.h: New file.
30891
30892         Tests for module 'unistr/u16-strcmp'.
30893         * modules/unistr/u16-strcmp-tests: New file.
30894         * tests/unistr/test-u16-strcmp.c: New file.
30895         * tests/unistr/test-u16-strcmp.h: New file.
30896
30897         Tests for module 'unistr/u8-strcmp'.
30898         * modules/unistr/u8-strcmp-tests: New file.
30899         * tests/unistr/test-u8-strcmp.c: New file.
30900         * tests/unistr/test-u8-strcmp.h: New file.
30901         * tests/unistr/test-strcmp.h: New file.
30902
30903         Tests for module 'unistr/u32-strncat'.
30904         * modules/unistr/u32-strncat-tests: New file.
30905         * tests/unistr/test-u32-strncat.c: New file.
30906
30907         Tests for module 'unistr/u16-strncat'.
30908         * modules/unistr/u16-strncat-tests: New file.
30909         * tests/unistr/test-u16-strncat.c: New file.
30910
30911         Tests for module 'unistr/u8-strncat'.
30912         * modules/unistr/u8-strncat-tests: New file.
30913         * tests/unistr/test-u8-strncat.c: New file.
30914         * tests/unistr/test-strncat.h: New file.
30915
30916         Tests for module 'unistr/u32-strcat'.
30917         * modules/unistr/u32-strcat-tests: New file.
30918         * tests/unistr/test-u32-strcat.c: New file.
30919
30920         Tests for module 'unistr/u16-strcat'.
30921         * modules/unistr/u16-strcat-tests: New file.
30922         * tests/unistr/test-u16-strcat.c: New file.
30923
30924         Tests for module 'unistr/u8-strcat'.
30925         * modules/unistr/u8-strcat-tests: New file.
30926         * tests/unistr/test-u8-strcat.c: New file.
30927         * tests/unistr/test-strcat.h: New file.
30928
30929         Tests for module 'unistr/u32-stpncpy'.
30930         * modules/unistr/u32-stpncpy-tests: New file.
30931         * tests/unistr/test-u32-stpncpy.c: New file.
30932
30933         Tests for module 'unistr/u16-stpncpy'.
30934         * modules/unistr/u16-stpncpy-tests: New file.
30935         * tests/unistr/test-u16-stpncpy.c: New file.
30936
30937         Tests for module 'unistr/u8-stpncpy'.
30938         * modules/unistr/u8-stpncpy-tests: New file.
30939         * tests/unistr/test-u8-stpncpy.c: New file.
30940         * tests/unistr/test-stpncpy.h: New file.
30941
30942         Tests for module 'unistr/u32-strncpy'.
30943         * modules/unistr/u32-strncpy-tests: New file.
30944         * tests/unistr/test-u32-strncpy.c: New file.
30945
30946         Tests for module 'unistr/u16-strncpy'.
30947         * modules/unistr/u16-strncpy-tests: New file.
30948         * tests/unistr/test-u16-strncpy.c: New file.
30949
30950         Tests for module 'unistr/u8-strncpy'.
30951         * modules/unistr/u8-strncpy-tests: New file.
30952         * tests/unistr/test-u8-strncpy.c: New file.
30953         * tests/unistr/test-strncpy.h: New file.
30954
30955         Tests for module 'unistr/u32-stpcpy'.
30956         * modules/unistr/u32-stpcpy-tests: New file.
30957         * tests/unistr/test-u32-stpcpy.c: New file.
30958
30959         Tests for module 'unistr/u16-stpcpy'.
30960         * modules/unistr/u16-stpcpy-tests: New file.
30961         * tests/unistr/test-u16-stpcpy.c: New file.
30962
30963         Tests for module 'unistr/u8-stpcpy'.
30964         * modules/unistr/u8-stpcpy-tests: New file.
30965         * tests/unistr/test-u8-stpcpy.c: New file.
30966         * tests/unistr/test-stpcpy.h: New file.
30967
30968         Tests for module 'unistr/u32-strcpy'.
30969         * modules/unistr/u32-strcpy-tests: New file.
30970         * tests/unistr/test-u32-strcpy.c: New file.
30971
30972         Tests for module 'unistr/u16-strcpy'.
30973         * modules/unistr/u16-strcpy-tests: New file.
30974         * tests/unistr/test-u16-strcpy.c: New file.
30975
30976         Tests for module 'unistr/u8-strcpy'.
30977         * modules/unistr/u8-strcpy-tests: New file.
30978         * tests/unistr/test-u8-strcpy.c: New file.
30979         * tests/unistr/test-strcpy.h: New file.
30980
30981         Tests for module 'unistr/u32-strnlen'.
30982         * modules/unistr/u32-strnlen-tests: New file.
30983         * tests/unistr/test-u32-strnlen.c: New file.
30984
30985         Tests for module 'unistr/u16-strnlen'.
30986         * modules/unistr/u16-strnlen-tests: New file.
30987         * tests/unistr/test-u16-strnlen.c: New file.
30988
30989         Tests for module 'unistr/u8-strnlen'.
30990         * modules/unistr/u8-strnlen-tests: New file.
30991         * tests/unistr/test-u8-strnlen.c: New file.
30992         * tests/unistr/test-strnlen.h: New file.
30993
30994         Tests for module 'unistr/u32-strlen'.
30995         * modules/unistr/u32-strlen-tests: New file.
30996         * tests/unistr/test-u32-strlen.c: New file.
30997
30998         Tests for module 'unistr/u16-strlen'.
30999         * modules/unistr/u16-strlen-tests: New file.
31000         * tests/unistr/test-u16-strlen.c: New file.
31001
31002         Tests for module 'unistr/u8-strlen'.
31003         * modules/unistr/u8-strlen-tests: New file.
31004         * tests/unistr/test-u8-strlen.c: New file.
31005
31006         Tests for module 'unistr/u32-prev'.
31007         * modules/unistr/u32-prev-tests: New file.
31008         * tests/unistr/test-u32-prev.c: New file.
31009
31010         Tests for module 'unistr/u16-prev'.
31011         * modules/unistr/u16-prev-tests: New file.
31012         * tests/unistr/test-u16-prev.c: New file.
31013
31014         Tests for module 'unistr/u8-prev'.
31015         * modules/unistr/u8-prev-tests: New file.
31016         * tests/unistr/test-u8-prev.c: New file.
31017
31018         Tests for module 'unistr/u32-next'.
31019         * modules/unistr/u32-next-tests: New file.
31020         * tests/unistr/test-u32-next.c: New file.
31021
31022         Tests for module 'unistr/u16-next'.
31023         * modules/unistr/u16-next-tests: New file.
31024         * tests/unistr/test-u16-next.c: New file.
31025
31026         Tests for module 'unistr/u8-next'.
31027         * modules/unistr/u8-next-tests: New file.
31028         * tests/unistr/test-u8-next.c: New file.
31029
31030         Tests for module 'unistr/u32-strmbtouc'.
31031         * modules/unistr/u32-strmbtouc-tests: New file.
31032         * tests/unistr/test-u32-strmbtouc.c: New file.
31033
31034         Tests for module 'unistr/u16-strmbtouc'.
31035         * modules/unistr/u16-strmbtouc-tests: New file.
31036         * tests/unistr/test-u16-strmbtouc.c: New file.
31037
31038         Tests for module 'unistr/u8-strmbtouc'.
31039         * modules/unistr/u8-strmbtouc-tests: New file.
31040         * tests/unistr/test-u8-strmbtouc.c: New file.
31041
31042         Tests for module 'unistr/u32-strmblen'.
31043         * modules/unistr/u32-strmblen-tests: New file.
31044         * tests/unistr/test-u32-strmblen.c: New file.
31045
31046         Tests for module 'unistr/u16-strmblen'.
31047         * modules/unistr/u16-strmblen-tests: New file.
31048         * tests/unistr/test-u16-strmblen.c: New file.
31049
31050         Tests for module 'unistr/u8-strmblen'.
31051         * modules/unistr/u8-strmblen-tests: New file.
31052         * tests/unistr/test-u8-strmblen.c: New file.
31053
31054         Tests for module 'unistr/u32-cpy-alloc'.
31055         * modules/unistr/u32-cpy-alloc-tests: New file.
31056         * tests/unistr/test-u32-cpy-alloc.c: New file.
31057
31058         Tests for module 'unistr/u16-cpy-alloc'.
31059         * modules/unistr/u16-cpy-alloc-tests: New file.
31060         * tests/unistr/test-u16-cpy-alloc.c: New file.
31061
31062         Tests for module 'unistr/u8-cpy-alloc'.
31063         * modules/unistr/u8-cpy-alloc-tests: New file.
31064         * tests/unistr/test-u8-cpy-alloc.c: New file.
31065         * tests/unistr/test-cpy-alloc.h: New file.
31066
31067         Tests for module 'unistr/u32-mbsnlen'.
31068         * modules/unistr/u32-mbsnlen-tests: New file.
31069         * tests/unistr/test-u32-mbsnlen.c: New file.
31070
31071         Tests for module 'unistr/u16-mbsnlen'.
31072         * modules/unistr/u16-mbsnlen-tests: New file.
31073         * tests/unistr/test-u16-mbsnlen.c: New file.
31074
31075         Tests for module 'unistr/u8-mbsnlen'.
31076         * modules/unistr/u8-mbsnlen-tests: New file.
31077         * tests/unistr/test-u8-mbsnlen.c: New file.
31078
31079         Tests for module 'unistr/u32-chr'.
31080         * modules/unistr/u32-chr-tests: New file.
31081         * tests/unistr/test-u32-chr.c: New file.
31082
31083         Tests for module 'unistr/u16-chr'.
31084         * modules/unistr/u16-chr-tests: New file.
31085         * tests/unistr/test-u16-chr.c: New file.
31086
31087         Tests for module 'unistr/u8-chr'.
31088         * modules/unistr/u8-chr-tests: New file.
31089         * tests/unistr/test-u8-chr.c: New file.
31090         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31091
31092         Tests for module 'unistr/u32-cmp2'.
31093         * modules/unistr/u32-cmp2-tests: New file.
31094         * tests/unistr/test-u32-cmp2.c: New file.
31095
31096         Tests for module 'unistr/u16-cmp2'.
31097         * modules/unistr/u16-cmp2-tests: New file.
31098         * tests/unistr/test-u16-cmp2.c: New file.
31099
31100         Tests for module 'unistr/u8-cmp2'.
31101         * modules/unistr/u8-cmp2-tests: New file.
31102         * tests/unistr/test-u8-cmp2.c: New file.
31103         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31104
31105         Tests for module 'unistr/u32-cmp'.
31106         * modules/unistr/u32-cmp-tests: New file.
31107         * tests/unistr/test-u32-cmp.c: New file.
31108
31109         Tests for module 'unistr/u16-cmp'.
31110         * modules/unistr/u16-cmp-tests: New file.
31111         * tests/unistr/test-u16-cmp.c: New file.
31112
31113         Tests for module 'unistr/u8-cmp'.
31114         * modules/unistr/u8-cmp-tests: New file.
31115         * tests/unistr/test-u8-cmp.c: New file.
31116         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31117
31118         Tests for module 'unistr/u32-set'.
31119         * modules/unistr/u32-set-tests: New file.
31120         * tests/unistr/test-u32-set.c: New file.
31121
31122         Tests for module 'unistr/u16-set'.
31123         * modules/unistr/u16-set-tests: New file.
31124         * tests/unistr/test-u16-set.c: New file.
31125
31126         Tests for module 'unistr/u8-set'.
31127         * modules/unistr/u8-set-tests: New file.
31128         * tests/unistr/test-u8-set.c: New file.
31129         * tests/unistr/test-set.h: New file.
31130
31131         Tests for module 'unistr/u32-move'.
31132         * modules/unistr/u32-move-tests: New file.
31133         * tests/unistr/test-u32-move.c: New file.
31134
31135         Tests for module 'unistr/u16-move'.
31136         * modules/unistr/u16-move-tests: New file.
31137         * tests/unistr/test-u16-move.c: New file.
31138
31139         Tests for module 'unistr/u8-move'.
31140         * modules/unistr/u8-move-tests: New file.
31141         * tests/unistr/test-u8-move.c: New file.
31142         * tests/unistr/test-move.h: New file.
31143
31144         Tests for module 'unistr/u32-cpy'.
31145         * modules/unistr/u32-cpy-tests: New file.
31146         * tests/unistr/test-u32-cpy.c: New file.
31147
31148         Tests for module 'unistr/u16-cpy'.
31149         * modules/unistr/u16-cpy-tests: New file.
31150         * tests/unistr/test-u16-cpy.c: New file.
31151
31152         Tests for module 'unistr/u8-cpy'.
31153         * modules/unistr/u8-cpy-tests: New file.
31154         * tests/unistr/test-u8-cpy.c: New file.
31155         * tests/unistr/test-cpy.h: New file.
31156
31157 2010-01-09  Bruno Haible  <bruno@clisp.org>
31158
31159         Tests for module 'unistr/u32-uctomb'.
31160         * modules/unistr/u32-uctomb-tests: New file.
31161         * tests/unistr/test-u32-uctomb.c: New file.
31162
31163         Tests for module 'unistr/u16-uctomb'.
31164         * modules/unistr/u16-uctomb-tests: New file.
31165         * tests/unistr/test-u16-uctomb.c: New file.
31166
31167         Tests for module 'unistr/u8-uctomb'.
31168         * modules/unistr/u8-uctomb-tests: New file.
31169         * tests/unistr/test-u8-uctomb.c: New file.
31170
31171         Tests for module 'unistr/u32-mbtoucr'.
31172         * modules/unistr/u32-mbtoucr-tests: New file.
31173         * tests/unistr/test-u32-mbtoucr.c: New file.
31174
31175         Tests for module 'unistr/u16-mbtoucr'.
31176         * modules/unistr/u16-mbtoucr-tests: New file.
31177         * tests/unistr/test-u16-mbtoucr.c: New file.
31178
31179         Tests for module 'unistr/u8-mbtoucr'.
31180         * modules/unistr/u8-mbtoucr-tests: New file.
31181         * tests/unistr/test-u8-mbtoucr.c: New file.
31182
31183         Tests for module 'unistr/u32-mbtouc'.
31184         * modules/unistr/u32-mbtouc-tests: New file.
31185         * tests/unistr/test-u32-mbtouc.c: New file.
31186
31187         Tests for module 'unistr/u16-mbtouc'.
31188         * modules/unistr/u16-mbtouc-tests: New file.
31189         * tests/unistr/test-u16-mbtouc.c: New file.
31190
31191         Tests for module 'unistr/u8-mbtouc'.
31192         * modules/unistr/u8-mbtouc-tests: New file.
31193         * tests/unistr/test-u8-mbtouc.c: New file.
31194
31195         Tests for module 'unistr/u32-mbtouc-unsafe'.
31196         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31197         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31198         * tests/unistr/test-u32-mbtouc.h: New file.
31199
31200         Tests for module 'unistr/u16-mbtouc-unsafe'.
31201         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31202         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31203         * tests/unistr/test-u16-mbtouc.h: New file.
31204
31205         Tests for module 'unistr/u8-mbtouc-unsafe'.
31206         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31207         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31208         * tests/unistr/test-u8-mbtouc.h: New file.
31209
31210         Tests for module 'unistr/u32-mblen'.
31211         * modules/unistr/u32-mblen-tests: New file.
31212         * tests/unistr/test-u32-mblen.c: New file.
31213
31214         Tests for module 'unistr/u16-mblen'.
31215         * modules/unistr/u16-mblen-tests: New file.
31216         * tests/unistr/test-u16-mblen.c: New file.
31217
31218         Tests for module 'unistr/u8-mblen'.
31219         * modules/unistr/u8-mblen-tests: New file.
31220         * tests/unistr/test-u8-mblen.c: New file.
31221
31222         Tests for module 'unistr/u32-to-u16'.
31223         * modules/unistr/u32-to-u16-tests: New file.
31224         * tests/unistr/test-u32-to-u16.c: New file.
31225
31226         Tests for module 'unistr/u32-to-u8'.
31227         * modules/unistr/u32-to-u8-tests: New file.
31228         * tests/unistr/test-u32-to-u8.c: New file.
31229
31230         Tests for module 'unistr/u16-to-u32'.
31231         * modules/unistr/u16-to-u32-tests: New file.
31232         * tests/unistr/test-u16-to-u32.c: New file.
31233
31234         Tests for module 'unistr/u16-to-u8'.
31235         * modules/unistr/u16-to-u8-tests: New file.
31236         * tests/unistr/test-u16-to-u8.c: New file.
31237
31238         Tests for module 'unistr/u8-to-u32'.
31239         * modules/unistr/u8-to-u32-tests: New file.
31240         * tests/unistr/test-u8-to-u32.c: New file.
31241
31242         Tests for module 'unistr/u8-to-u16'.
31243         * modules/unistr/u8-to-u16-tests: New file.
31244         * tests/unistr/test-u8-to-u16.c: New file.
31245
31246         Tests for module 'unistr/u32-check'.
31247         * modules/unistr/u32-check-tests: New file.
31248         * tests/unistr/test-u32-check.c: New file.
31249
31250         Tests for module 'unistr/u16-check'.
31251         * modules/unistr/u16-check-tests: New file.
31252         * tests/unistr/test-u16-check.c: New file.
31253
31254         Tests for module 'unistr/u8-check'.
31255         * modules/unistr/u8-check-tests: New file.
31256         * tests/unistr/test-u8-check.c: New file.
31257
31258         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31259         (category_equals): New function.
31260         (main): Add more tests.
31261         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31262
31263         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31264
31265 2010-01-10  Bruno Haible  <bruno@clisp.org>
31266
31267         unistr/u*-strcoll: Try harder to distinguish different strings.
31268         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31269         compare s1 and s2 to see if they are different.
31270
31271 2010-01-10  Bruno Haible  <bruno@clisp.org>
31272
31273         unistr/u*-stpncpy: Fix the return value.
31274         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31275         description of the return value consistent with stpncpy in glibc.
31276         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31277         written non-NUL unit.
31278
31279 2010-01-10  Bruno Haible  <bruno@clisp.org>
31280
31281         unistr/u*-next: Add missing dependencies.
31282         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31283         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31284         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31285
31286 2010-01-10  Bruno Haible  <bruno@clisp.org>
31287
31288         unistr/u8-mbsnlen: Fix return value for incomplete character.
31289         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31290         u8_mblen.
31291         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31292         Remove unistr/u8-mblen.
31293         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31294         u16_mblen.
31295         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31296         Remove unistr/u16-mblen.
31297
31298 2010-01-10  Bruno Haible  <bruno@clisp.org>
31299
31300         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31301         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31302         Reported by Brian Gough <bjg@gnu.org> and
31303         Chris Clayton <chris2553@googlemail.com> via
31304         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31305
31306 2010-01-09  Bruno Haible  <bruno@clisp.org>
31307
31308         unistr/u16-to-u32: Reject invalid input.
31309         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31310         u16_mbtouc.
31311         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31312         Remove unistr/u16-mbtouc.
31313
31314         unistr/u16-to-u8: Reject invalid input.
31315         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31316         u16_mbtouc.
31317         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31318         Remove unistr/u16-mbtouc.
31319
31320         unistr/u8-to-u32: Reject invalid input.
31321         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31322         u8_mbtouc.
31323         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31324         Remove unistr/u8-mbtouc.
31325
31326         unistr/u8-to-u16: Reject invalid input.
31327         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31328         u8_mbtouc.
31329         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31330         Remove unistr/u8-mbtouc.
31331
31332 2010-01-09  Bruno Haible  <bruno@clisp.org>
31333
31334         Tests for module 'getlogin'.
31335         * modules/getlogin-tests: New file.
31336         * tests/test-getlogin.c: New file.
31337
31338         New module 'getlogin'.
31339         * lib/unistd.in.h (getlogin): New declaration.
31340         * lib/getlogin.c: New file.
31341         * m4/getlogin.m4: New file.
31342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31343         HAVE_GETLOGIN.
31344         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31345         HAVE_GETLOGIN.
31346         * modules/getlogin: New file.
31347         * doc/posix-functions/getlogin.texi: Mention the new module.
31348         Reported by John W. Eaton <jwe@gnu.org>.
31349
31350 2010-01-09  Bruno Haible  <bruno@clisp.org>
31351
31352         getlogin_r: Support for native Windows.
31353         * lib/getlogin_r.c: Include <windows.h>
31354         (getlogin_r): Implement for native Windows.
31355         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31356         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31357         via John W. Eaton <jwe@gnu.org>.
31358
31359 2010-01-09  Bruno Haible  <bruno@clisp.org>
31360
31361         getlogin_r: Small fixes.
31362         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31363         succeeds.
31364         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31365         before testing whether getlogin_r is declared. No need to set
31366         HAVE_DECL_GETLOGIN_R to 1.
31367         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31368
31369 2010-01-09  Bruno Haible  <bruno@clisp.org>
31370
31371         * lib/unistd.in.h (getlogin_r): Add comment.
31372
31373 2010-01-09  Bruno Haible  <bruno@clisp.org>
31374
31375         Tests for module 'getlogin_r'.
31376         * modules/getlogin_r-tests: New file.
31377         * tests/test-getlogin_r.c: New file.
31378
31379 2010-01-09  Jim Meyering  <meyering@redhat.com>
31380
31381         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31382         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31383         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31384
31385 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31386
31387         * lib/dup2.c (rpl_dup2): Improve comment.
31388
31389 2010-01-08  Eric Blake  <ebb9@byu.net>
31390
31391         maint.mk: allow packages to add makefile @@ exceptions
31392         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31393         (sc_makefile_check): Rename...
31394         (sc_makefile_at_at_check): ...to this, and use hook.
31395
31396         dup2: work around mingw bug
31397         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31398         Reported by Simon Josefsson.
31399
31400 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31401
31402         glob: Fix C++ compilation.
31403         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31404         C++.
31405
31406 2010-01-07  Bruno Haible  <bruno@clisp.org>
31407
31408         Fix indentation of wctype.in.h, broken since 2007-01-06.
31409         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31410
31411 2010-01-07  Bruno Haible  <bruno@clisp.org>
31412
31413         mbslen: Avoid collision with system function.
31414         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31415         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31416         * m4/mbslen.m4: New file.
31417         * modules/mbslen (Files): Add it.
31418         (configure.ac): Invoke gl_MBSLEN.
31419         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31420         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31421         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31422         via Ian Beckwith <ianb@erislabs.net>.
31423
31424 2010-01-07  Bruno Haible  <bruno@clisp.org>
31425
31426         dirent: Document the last fix.
31427         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31428
31429 2010-01-07  Bruno Haible  <bruno@clisp.org>
31430
31431         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31432         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31433         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31434         va_list are defined.
31435         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31436         Reported by Eric Blake.
31437
31438 2010-01-07  Bruno Haible  <bruno@clisp.org>
31439
31440         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31441         * modules/xlist (Depends-on): Add 'list',
31442         * modules/xoset (Depends-on): Add 'oset'.
31443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31444
31445 2010-01-07  Bruno Haible  <bruno@clisp.org>
31446
31447         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31448         * doc/posix-functions/strncasecmp.texi: Likewise.
31449
31450 2010-01-07  Bruno Haible  <bruno@clisp.org>
31451
31452         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31453
31454 2010-01-07  John W. Eaton  <jwe@octave.org>
31455
31456         wctype: allow C++ use
31457         * lib/wctype.in.h: Add extern "C" block for C++.
31458
31459 2010-01-06  Eric Blake  <ebb9@byu.net>
31460
31461         maint.mk: detect incorrect GFDL usage
31462         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31463
31464 2010-01-06  Jim Meyering  <meyering@redhat.com>
31465         and Eric Blake  <ebb9@byu.net>
31466
31467         maint.mk: ignore multi-line copyright in NEWS
31468         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31469
31470 2010-01-06  Eric Blake  <ebb9@byu.net>
31471
31472         select: add missing dependency
31473         * modules/select-tests (Depends-on): Move sockets dependency...
31474         * modules/select (Depends-on): ...here.
31475         Reported by Ian Beckwith.
31476
31477         doc: regenerate INSTALL
31478         * doc/INSTALL: Reflect recent autoconf update.
31479         * doc/INSTALL.ISO: Likewise.
31480         * doc/INSTALL.UTF-8: Likewise.
31481
31482         pread: fix compilation on glibc
31483         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31484         Reported by Ralf Wildenhues.
31485
31486         dirent: fix test failure
31487         * lib/dirent.in.h (includes): Guarantee ino_t.
31488         Reported by Ralf Wildenhues.
31489
31490 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31491
31492         linkat, renameat: avoid bad free
31493         * lib/at-func2.c (at_func2): Fix typo.
31494         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31495
31496 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31497
31498         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31499         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31500         to avoid failure of symlink test later.
31501
31502 2010-01-06  Eric Blake  <ebb9@byu.net>
31503
31504         stdio, unistd: guarantee ssize_t
31505         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31506         2008 are exposed when needed.
31507         * lib/stdio.in.h (includes): Likewise.
31508         Reported by Ralf Wildenhues.
31509
31510 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31511
31512         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31513         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31514         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31515
31516 2010-01-06  Jim Meyering  <meyering@redhat.com>
31517
31518         readtokens: this module *does* require xalloc.h
31519         It uses only functions that were omitted by the old syntax-check rule.
31520         * lib/readtokens.c: Include "xalloc.h" once again.
31521         * modules/readtokens (Depends-on): Add xalloc.
31522         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31523
31524 2010-01-05  Eric Blake  <ebb9@byu.net>
31525
31526         maint: support 'make announcement' from a VPATH build
31527         * top/maint.mk (announcement): Look for correct NEWS file.
31528
31529 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31530
31531         utimens (fdutimens): ignore a negative FD, per contract
31532         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31533         when we have a valid file descriptor.  Otherwise, using a brand
31534         new glibc (with just-patched futimens that now fails with EBADF)
31535         would cause this function to fail with ENOSYS.
31536         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31537         See also http://bugzilla.redhat.com/552320.
31538
31539 2010-01-05  Eric Blake  <ebb9@byu.net>
31540
31541         strcase: document what it provides
31542         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31543         gnulib module.
31544         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31545         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31546
31547 2010-01-05  Jim Meyering  <meyering@redhat.com>
31548
31549         maint: remove useless inclusions of "xalloc.h"
31550         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31551         * lib/readtokens.c: Likewise.
31552         * lib/same.c: Likewise.
31553         * modules/getloadavg (Depends-on): Remove xalloc.
31554         * modules/readtokens: Likewise.
31555         * modules/same: Likewise.
31556
31557         maint.mk: include 4 more function names in alloca.h-checking regexp
31558         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31559         regexp.  Before, we would give a false-positive (saying alloca.h
31560         is included unnecessarily) when the only uses involved omitted symbols.
31561
31562         xalloc.h: use consistent formatting
31563         * lib/xalloc.h: Move declarations to start in the first column.
31564
31565 2010-01-05  Eric Blake  <ebb9@byu.net>
31566
31567         mkdir: avoid xalloc
31568         * lib/mkdir.c (includes): Drop unused header.
31569         Reported by John W. Eaton.
31570
31571 2010-01-04  Jim Meyering  <meyering@redhat.com>
31572
31573         nl_langinfo: avoid configure-time syntax error
31574         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31575         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31576         the empty string.  Don't let that provoke a shell syntax error.
31577
31578         regcomp, regexec, fnmatch: avoid array bounds read error
31579         * lib/regcomp.c (build_equiv_class): From glibc:
31580         Use only the low 24 bits of a findidx return value as an index
31581         into the weights array.  Patch by Ulrich Drepper:
31582         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31583         * lib/regexec.c (check_node_accept_bytes): Likewise.
31584         * lib/fnmatch_loop.c (FCT): Likewise.
31585
31586         regcomp: skip collseq lookup when there are no rules
31587         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31588         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31589
31590         regcomp: recognize ill-formed { } expressions
31591         * lib/regcomp.c (parse_dup_op): From glibc:
31592         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31593
31594         regcomp: fix typo in comment
31595         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31596         s/satisfy/satisfies/.
31597
31598         regcomp: sync from glibc: remove dead store
31599         * lib/regcomp.c (duplicate_node_closure): Remove useless
31600         search_duplicated_node call and dead store.
31601
31602         regcomp: sync from glibc; always use nl_langinfo
31603         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31604         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31605         * modules/regex (Depends-on): Add nl_langinfo.
31606
31607 2010-01-04  Eric Blake  <ebb9@byu.net>
31608
31609         fdopendir: fix configure test
31610         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31611
31612 2010-01-01  Bruno Haible  <bruno@clisp.org>
31613
31614         wchar: Remove unused configure check.
31615         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31616
31617 2010-01-01  Eric Blake  <ebb9@byu.net>
31618
31619         headers: make check of system header explicit
31620         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31621         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31622         ourselves.
31623         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31625         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31626         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31627         internals.
31628         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31629         missing.
31630         Suggested by Bruno Haible.
31631
31632 2010-01-01  Jim Meyering  <meyering@redhat.com>
31633
31634         ChangeLog: tweak to eliminate unnecessary copyright line
31635         * ChangeLog: Remove a copyright line that was mistakenly updated
31636         by today's update-copyright run.  Reported by Eric Blake.
31637
31638         test-update-copyright: don't let envvar setting cause test failure
31639         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31640
31641 2010-01-01  Bruno Haible  <bruno@clisp.org>
31642
31643         localename: Avoid gcc warning.
31644         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31645         function if it is not used.
31646
31647 2010-01-01  Jim Meyering  <meyering@redhat.com>
31648
31649         update nearly all FSF copyright year lists to include 2010
31650         Use the same procedure as for 2009, outlined in
31651         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31652
31653         version-etc: set COPYRIGHT_YEAR to 2010
31654         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31655
31656 2009-12-31  Eric Blake  <ebb9@byu.net>
31657
31658         doc: correct availability of cygwin 1.5.x getopt
31659         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31660         variables.
31661         * doc/posix-functions/opterr.texi (opterr): Likewise.
31662         * doc/posix-functions/optind.texi (optind): Likewise.
31663         * doc/posix-functions/optopt.texi (optopt): Likewise.
31664         * doc/posix-functions/tzname.texi (tzname): Likewise.
31665
31666         openat: update maintainer
31667         * modules/openat (Maintainer): Add myself.
31668
31669         utimens: avoid shadowing warning
31670         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31671         buffers into one, to avoid shadowing, as well as avoiding a
31672         redundant stat.
31673         Reported by Jim Meyering.
31674
31675         test-dup2: avoid compiler warning
31676         * tests/test-dup2.c (is_inheritable): Only define if used.
31677
31678 2010-01-01  Bruno Haible  <bruno@clisp.org>
31679
31680         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31681         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31682         defined, use wctomb instead of wcrtomb.
31683
31684 2010-01-01  Bruno Haible  <bruno@clisp.org>
31685
31686         iconv: Reject native Solaris iconv.
31687         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31688         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31689
31690 2009-12-31  Bruno Haible  <bruno@clisp.org>
31691
31692         * tests/test-signal.c (main): Remove test of 'SIG'.
31693
31694 2009-12-31  Bruno Haible  <bruno@clisp.org>
31695
31696         spawn: Fix incomplete fix.
31697         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31698         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31699         warnings for GNULIB_POSIXCHECK again.
31700         Reported by Eric Blake.
31701
31702 2009-12-31  Bruno Haible  <bruno@clisp.org>
31703
31704         Avoid namespace pollution on glibc systems.
31705         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31706         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31707         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31708         glibc systems.
31709
31710 2009-12-31  Bruno Haible  <bruno@clisp.org>
31711
31712         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31713         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31714         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31715         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31716         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31717         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31718         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31719
31720 2009-12-31  Bruno Haible  <bruno@clisp.org>
31721
31722         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31723         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31724         afterwards.
31725
31726 2009-12-31  Bruno Haible  <bruno@clisp.org>
31727
31728         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31729         SYS_UTSNAME_H.
31730
31731 2009-12-31  Bruno Haible  <bruno@clisp.org>
31732
31733         spawn: Fix misapplied patch.
31734         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31735         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31736         warnings for GNULIB_POSIXCHECK.
31737
31738 2009-12-31  Bruno Haible  <bruno@clisp.org>
31739
31740         times: Update after sys_times changed.
31741         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31742         * modules/times (Files): Add it.
31743         (configure.ac): Invoke gl_FUNC_TIMES.
31744
31745 2009-12-31  Bruno Haible  <bruno@clisp.org>
31746
31747         Use AC_C_INLINE where necessary.
31748         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31749         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31750         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31751         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31752         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31753         * m4/mbiter.m4 (gl_MBITER): Likewise.
31754         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31755         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31756         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31757         * modules/u64 (configure.ac): Likewise.
31758
31759 2009-12-31  Bruno Haible  <bruno@clisp.org>
31760
31761         Use AC_C_INLINE instead of module 'inline' where possible.
31762         * modules/inline (Description): Clarify purpose.
31763         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31764         * modules/count-one-bits (Depends-on): Remove inline.
31765         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31766         * modules/openat (Depends-on): Remove inline.
31767         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31768         instead of depending on module 'inline'.
31769         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31770         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31771         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31772         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31773         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31774         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31775         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31776         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31777         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31778         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31779         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31780         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31781         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31782         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31783         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31784         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31785         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31786         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31787         Likewise.
31788         * modules/unictype/property-ascii-hex-digit (Depends-on,
31789         configure.ac): Likewise.
31790         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31791         configure.ac): Likewise.
31792         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31793         configure.ac): Likewise.
31794         * modules/unictype/property-bidi-block-separator (Depends-on,
31795         configure.ac): Likewise.
31796         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31797         configure.ac): Likewise.
31798         * modules/unictype/property-bidi-common-separator (Depends-on,
31799         configure.ac): Likewise.
31800         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31801         Likewise.
31802         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31803         configure.ac): Likewise.
31804         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31805         configure.ac): Likewise.
31806         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31807         configure.ac): Likewise.
31808         * modules/unictype/property-bidi-european-digit (Depends-on,
31809         configure.ac): Likewise.
31810         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31811         configure.ac): Likewise.
31812         * modules/unictype/property-bidi-left-to-right (Depends-on,
31813         configure.ac): Likewise.
31814         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31815         configure.ac): Likewise.
31816         * modules/unictype/property-bidi-other-neutral (Depends-on,
31817         configure.ac): Likewise.
31818         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31819         Likewise.
31820         * modules/unictype/property-bidi-segment-separator (Depends-on,
31821         configure.ac): Likewise.
31822         * modules/unictype/property-bidi-whitespace (Depends-on,
31823         configure.ac): Likewise.
31824         * modules/unictype/property-combining (Depends-on, configure.ac):
31825         Likewise.
31826         * modules/unictype/property-composite (Depends-on, configure.ac):
31827         Likewise.
31828         * modules/unictype/property-currency-symbol (Depends-on,
31829         configure.ac): Likewise.
31830         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31831         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31832         Likewise.
31833         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31834         configure.ac): Likewise.
31835         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31836         Likewise.
31837         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31838         Likewise.
31839         * modules/unictype/property-extender (Depends-on, configure.ac):
31840         Likewise.
31841         * modules/unictype/property-format-control (Depends-on, configure.ac):
31842         Likewise.
31843         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31844         Likewise.
31845         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31846         Likewise.
31847         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31848         Likewise.
31849         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31850         Likewise.
31851         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31852         Likewise.
31853         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31854         Likewise.
31855         * modules/unictype/property-id-start (Depends-on, configure.ac):
31856         Likewise.
31857         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31858         Likewise.
31859         * modules/unictype/property-ids-binary-operator (Depends-on,
31860         configure.ac): Likewise.
31861         * modules/unictype/property-ids-trinary-operator (Depends-on,
31862         configure.ac): Likewise.
31863         * modules/unictype/property-ignorable-control (Depends-on,
31864         configure.ac): Likewise.
31865         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31866         Likewise.
31867         * modules/unictype/property-join-control (Depends-on, configure.ac):
31868         Likewise.
31869         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31870         Likewise.
31871         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31872         Likewise.
31873         * modules/unictype/property-logical-order-exception (Depends-on,
31874         configure.ac): Likewise.
31875         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31876         Likewise.
31877         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31878         * modules/unictype/property-non-break (Depends-on, configure.ac):
31879         Likewise.
31880         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31881         Likewise.
31882         * modules/unictype/property-numeric (Depends-on, configure.ac):
31883         Likewise.
31884         * modules/unictype/property-other-alphabetic (Depends-on,
31885         configure.ac): Likewise.
31886         * modules/unictype/property-other-default-ignorable-code-point
31887         (Depends-on, configure.ac): Likewise.
31888         * modules/unictype/property-other-grapheme-extend (Depends-on,
31889         configure.ac): Likewise.
31890         * modules/unictype/property-other-id-continue (Depends-on,
31891         configure.ac): Likewise.
31892         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31893         Likewise.
31894         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31895         Likewise.
31896         * modules/unictype/property-other-math (Depends-on, configure.ac):
31897         Likewise.
31898         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31899         Likewise.
31900         * modules/unictype/property-paired-punctuation (Depends-on,
31901         configure.ac): Likewise.
31902         * modules/unictype/property-paragraph-separator (Depends-on,
31903         configure.ac): Likewise.
31904         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31905         Likewise.
31906         * modules/unictype/property-pattern-white-space (Depends-on,
31907         configure.ac): Likewise.
31908         * modules/unictype/property-private-use (Depends-on, configure.ac):
31909         Likewise.
31910         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31911         Likewise.
31912         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31913         Likewise.
31914         * modules/unictype/property-radical (Depends-on, configure.ac):
31915         Likewise.
31916         * modules/unictype/property-sentence-terminal (Depends-on,
31917         configure.ac): Likewise.
31918         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31919         Likewise.
31920         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31921         * modules/unictype/property-terminal-punctuation (Depends-on,
31922         configure.ac): Likewise.
31923         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31924         Likewise.
31925         * modules/unictype/property-unassigned-code-value (Depends-on,
31926         configure.ac): Likewise.
31927         * modules/unictype/property-unified-ideograph (Depends-on,
31928         configure.ac): Likewise.
31929         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31930         Likewise.
31931         * modules/unictype/property-variation-selector (Depends-on,
31932         configure.ac): Likewise.
31933         * modules/unictype/property-white-space (Depends-on, configure.ac):
31934         Likewise.
31935         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31936         Likewise.
31937         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31938         Likewise.
31939         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31940         Likewise.
31941         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31942         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31943         Likewise.
31944
31945 2009-12-31  Bruno Haible  <bruno@clisp.org>
31946
31947         Remove unnecessary AC_C_INLINE invocation.
31948         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31949         since 2009-08-21.
31950
31951 2009-12-31  Jim Meyering  <meyering@redhat.com>
31952
31953         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31954         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31955         With this change, we can all remove the gpg_key_ID = ... definition
31956         from our respective cfg.mk files.
31957
31958         maint.mk: create announcement template in ~/, not in /tmp
31959         * top/maint.mk (emit_upload_commands): Adjust.
31960         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31961         Remove temporary file, .ci-msg.
31962
31963 2009-12-31  Eric Blake  <ebb9@byu.net>
31964
31965         link-warning: always build headers with link warnings
31966         * modules/arpa_inet (Makefile.am): Always build replacement
31967         header.
31968         * modules/ctype (Makefile.am): Likewise.
31969         * modules/dirent (Makefile.am): Likewise.
31970         * modules/inttypes (Makefile.am): Likewise.
31971         * modules/langinfo (Makefile.am): Likewise.
31972         * modules/locale (Makefile.am): Likewise.
31973         * modules/spawn (Makefile.am): Likewise.
31974         * modules/sys_file (Makefile.am): Likewise.
31975         * modules/sys_ioctl (Makefile.am): Likewise.
31976         * modules/sys_select (Makefile.am): Likewise.
31977         * modules/sys_socket (Makefile.am): Likewise.
31978         * modules/sys_times (Makefile.am): Likewise.
31979         * modules/sys_utsname (Makefile.am): Likewise.
31980         * modules/sys_wait (Makefile.am): Likewise.
31981         * modules/wchar (Makefile.am): Likewise.
31982         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31983         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31984         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31985         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31986         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31987         Likewise.
31988         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31989         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31990         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31991         Likewise.
31992         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31993         Likewise.
31994         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31995         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31996         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31998         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31999         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32000         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32001         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
32002         (gl_WCHAR_H_DEFAULTS): Likewise.
32003
32004 2009-12-31  Eric Blake  <ebb9@byu.net>
32005
32006         signal, spawn: use link warnings
32007         * lib/signal.in.h (sigset_t): Make unconditional.
32008         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
32009         (sigpending, sigprocmask, sigaction): Add link warnings.
32010         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
32011         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
32012         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
32013         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
32014         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
32015         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32016         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32017         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32018         (posix_spawn_file_actions_destroy)
32019         (posix_spawn_file_actions_addopen)
32020         (posix_spawn_file_actions_addclose)
32021         (posix_spawn_file_actions_adddup2): Likewise.
32022         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32023         * tests/test-signal.c (main): Enhance test.
32024
32025         spawn: improve wrapper support
32026         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32027         (gl_SPAWN_H_DEFAULTS): New defaults.
32028         * modules/spawn (Makefile.am): Substitute them.
32029         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32030         Only declare if missing or broken.
32031
32032         sys_times, sys_utsname: use include_next
32033         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32034         header.
32035         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32036         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32037         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32038         * modules/sys_times (Depends-on): Add include_next.
32039         (Makefile.am): Substitute additional values.
32040         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32041         * lib/sys_times.in.h (includes): Include native header, if
32042         available.
32043         * lib/sys_utsname.in.h (includes): Likewise.
32044         * tests/test-sys_times.c (main): Enhance test.
32045
32046         fdutimensat: revert prior patch
32047         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32048         utimens.h.
32049         Reported by Bruno Haible.
32050
32051 2009-12-30  Eric Blake  <ebb9@byu.net>
32052
32053         sys_wait: drop link-warning dependency
32054         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32055         link-warning efforts.
32056         * lib/sys_wait.in.h: Likewise.
32057
32058         fdutimensat: remove bogus dependency
32059         * modules/fdutimensat (Depends-on): Drop inline.
32060
32061         unistd: fix typo
32062         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32063
32064 2009-12-30  Bruno Haible  <bruno@clisp.org>
32065
32066         Fix compilation error with Solaris cc.
32067         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32068         * lib/unicase/u16-is-invariant.c: Likewise.
32069         * lib/unicase/u32-is-invariant.c: Likewise.
32070         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32071
32072 2009-12-30  Bruno Haible  <bruno@clisp.org>
32073
32074         Fix test crash.
32075         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32076         locales.
32077         Reported by Simon Josefsson <simon@josefsson.org>.
32078
32079 2009-12-30  Bruno Haible  <bruno@clisp.org>
32080
32081         Fix compilation error on most platforms.
32082         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32083         Reported by Simon Josefsson <simon@josefsson.org>
32084         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32085
32086 2009-12-30  Eric Blake  <ebb9@byu.net>
32087
32088         futimens, utimensat: work around ntfs-3g bug
32089         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32090         a ctime bug is present, and expand workaround to cover ntfs-3g.
32091         * lib/utimens.c (fdutimens, lutimens): Likewise.
32092         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32093         (validate_timespec): Adjust return value.
32094         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32095         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32096         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32097
32098 2009-12-29  Eric Blake  <ebb9@byu.net>
32099
32100         link-warning: make usage consistent
32101         * modules/ctype (Depends-on): Add link-warning.
32102         (Makefile.am): Update rules accordingly.
32103         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32104         * modules/locale (Depends-on, Makefile.am): Likewise.
32105         * modules/sys_file (Makefile.am): Likewise.
32106         * modules/getopt-posix (Makefile.am): Delete unused link warning
32107         efforts.
32108         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32109         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32110         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32111         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32112
32113         stdio: remove unused variables
32114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32115         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32116         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32117
32118         tests: test more substitute headers
32119         * modules/ctype-tests: New file.
32120         * modules/dirent-tests: Likewise.
32121         * modules/spawn-tests: Likewise.
32122         * modules/sys_file-tests: Likewise.
32123         * modules/sys_ioctl-tests: Likewise.
32124         * modules/sys_wait-tests: Likewise.
32125         * tests/test-ctype.c: Likewise.
32126         * tests/test-dirent.c: Likewise.
32127         * tests/test-spawn.c: Likewise.
32128         * tests/test-sys_file.c: Likewise.
32129         * tests/test-sys_ioctl.c: Likewise.
32130         * tests/test-sys_wait.c: Likewise.
32131         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32132         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32133         whether or not flock is in use.
32134
32135         tests: remove License section from module
32136         * modules/arpa_inet-tests: Remove unneeded section.
32137         * modules/byteswap-tests: Likewise.
32138         * modules/ceilf-tests: Likewise.
32139         * modules/ceill-tests: Likewise.
32140         * modules/crypto/des-tests: Likewise.
32141         * modules/crypto/gc-arcfour-tests: Likewise.
32142         * modules/crypto/gc-arctwo-tests: Likewise.
32143         * modules/crypto/gc-des-tests: Likewise.
32144         * modules/crypto/gc-hmac-md5-tests: Likewise.
32145         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32146         * modules/crypto/gc-md2-tests: Likewise.
32147         * modules/crypto/gc-md4-tests: Likewise.
32148         * modules/crypto/gc-md5-tests: Likewise.
32149         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32150         * modules/crypto/gc-rijndael-tests: Likewise.
32151         * modules/crypto/gc-sha1-tests: Likewise.
32152         * modules/crypto/gc-tests: Likewise.
32153         * modules/crypto/md2-tests: Likewise.
32154         * modules/crypto/md4-tests: Likewise.
32155         * modules/fcntl-h-tests: Likewise.
32156         * modules/floorf-tests: Likewise.
32157         * modules/floorl-tests: Likewise.
32158         * modules/frexp-nolibm-tests: Likewise.
32159         * modules/frexp-tests: Likewise.
32160         * modules/frexpl-nolibm-tests: Likewise.
32161         * modules/frexpl-tests: Likewise.
32162         * modules/getaddrinfo-tests: Likewise.
32163         * modules/inttypes-tests: Likewise.
32164         * modules/isfinite-tests: Likewise.
32165         * modules/isinf-tests: Likewise.
32166         * modules/ldexpl-tests: Likewise.
32167         * modules/locale-tests: Likewise.
32168         * modules/math-tests: Likewise.
32169         * modules/netdb-tests: Likewise.
32170         * modules/netinet_in-tests: Likewise.
32171         * modules/printf-frexp-tests: Likewise.
32172         * modules/printf-frexpl-tests: Likewise.
32173         * modules/priv-set-tests: Likewise.
32174         * modules/random_r-tests: Likewise.
32175         * modules/round-tests: Likewise.
32176         * modules/roundf-tests: Likewise.
32177         * modules/roundl-tests: Likewise.
32178         * modules/search-tests: Likewise.
32179         * modules/select-tests: Likewise.
32180         * modules/signal-tests: Likewise.
32181         * modules/stdbool-tests: Likewise.
32182         * modules/stddef-tests: Likewise.
32183         * modules/stdint-tests: Likewise.
32184         * modules/stdio-tests: Likewise.
32185         * modules/stdlib-tests: Likewise.
32186         * modules/string-tests: Likewise.
32187         * modules/strings-tests: Likewise.
32188         * modules/sys_select-tests: Likewise.
32189         * modules/sys_socket-tests: Likewise.
32190         * modules/sys_stat-tests: Likewise.
32191         * modules/sys_time-tests: Likewise.
32192         * modules/sys_utsname-tests: Likewise.
32193         * modules/sysexits-tests: Likewise.
32194         * modules/time-tests: Likewise.
32195         * modules/trunc-tests: Likewise.
32196         * modules/truncf-tests: Likewise.
32197         * modules/truncl-tests: Likewise.
32198         * modules/tsearch-tests: Likewise.
32199         * modules/unistd-tests: Likewise.
32200         * modules/wchar-tests: Likewise.
32201         * modules/wctype-tests: Likewise.
32202
32203         tests: fix license on several tests
32204         * tests/test-des.c: Update to GPLv3+.
32205         * tests/test-flock.c: Likewise.
32206         * tests/test-fsync.c: Likewise.
32207         * tests/test-futimens.h: Likewise.
32208         * tests/test-gc-arcfour.c: Likewise.
32209         * tests/test-gc-arctwo.c: Likewise.
32210         * tests/test-gc-des.c: Likewise.
32211         * tests/test-gc-hmac-md5.c: Likewise.
32212         * tests/test-gc-hmac-sha1.c: Likewise.
32213         * tests/test-gc-md2.c: Likewise.
32214         * tests/test-gc-md4.c: Likewise.
32215         * tests/test-gc-md5.c: Likewise.
32216         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32217         * tests/test-gc-rijndael.c: Likewise.
32218         * tests/test-gc-sha1.c: Likewise.
32219         * tests/test-gc.c: Likewise.
32220         * tests/test-getcwd.c: Likewise.
32221         * tests/test-link.c: Likewise.
32222         * tests/test-link.h: Likewise.
32223         * tests/test-lutimens.h: Likewise.
32224         * tests/test-md2.c: Likewise.
32225         * tests/test-md4.c: Likewise.
32226         * tests/test-mkdir.h: Likewise.
32227         * tests/test-rename.c: Likewise.
32228         * tests/test-rename.h: Likewise.
32229         * tests/test-safe-alloc.c: Likewise.
32230         * tests/test-utimens-common.h: Likewise.
32231         * tests/test-utimens.h: Likewise.
32232
32233         maint: sync license texts
32234         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32235         * doc/gpl-3.0.texi: Revert copyright year update.
32236         * doc/lgpl-3.0.texi: Likewise.
32237
32238 2009-12-29  Jim Meyering  <meyering@redhat.com>
32239
32240         update nearly all FSF copyright year lists to include 2009
32241         The files named by the following are exempted:
32242             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32243               test -f "$dst" && { echo "$dst"; continue; }
32244               test -d "$dst" || continue
32245               echo "$dst"/$(basename "$src")
32246             done > exempt
32247             git ls-files tests/unictype >> exempt
32248         In the remaining files, convert to all-interval notation if
32249         - there is already at least one year interval like 2000-2003
32250         - the file is maintained by me
32251         - the file is in lib/uni*/, where that style already prevails
32252         Otherwise, use update-copyright's default.
32253
32254 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32255         and Eric Blake  <ebb9@byu.net>
32256
32257         tests: don't require debug system() to pass
32258         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32259         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32260         * tests/test-unlink.h (test_unlink_func): Likewise.
32261         * tests/test-fstatat.c (main): ...into callers.
32262         * tests/test-lstat.c (main): Likewise.
32263         * tests/test-rmdir.c (main): Likewise.
32264         * tests/test-unlink.c (main): Likewise.
32265         * tests/test-unlinkat.c (main): Likewise.
32266         * tests/test-areadlink-with-size.c (main): Don't require a
32267         debug-only system call to pass, aiding cross-testing to mingw.
32268         * tests/test-areadlink.c (main): Likewise.
32269         * tests/test-areadlinkat-with-size.c (main): Likewise.
32270         * tests/test-areadlinkat.c (main): Likewise.
32271         * tests/test-canonicalize-lgpl.c (main): Likewise.
32272         * tests/test-canonicalize.c (main): Likewise.
32273         * tests/test-chown.c (main): Likewise.
32274         * tests/test-fchownat.c (main): Likewise.
32275         * tests/test-lchown.c (main): Likewise.
32276         * tests/test-fdutimensat.c (main): Likewise.
32277         * tests/test-futimens.c (main): Likewise.
32278         * tests/test-link.c (main): Likewise.
32279         * tests/test-linkat.c (main): Likewise.
32280         * tests/test-mkdir.c (main): Likewise.
32281         * tests/test-mkdirat.c (main): Likewise.
32282         * tests/test-mkfifo.c (main): Likewise.
32283         * tests/test-mkfifoat.c (main): Likewise.
32284         * tests/test-mknod.c (main): Likewise.
32285         * tests/test-readlink.c (main): Likewise.
32286         * tests/test-remove.c (main): Likewise.
32287         * tests/test-rename.c (main): Likewise.
32288         * tests/test-renameat.c (main): Likewise.
32289         * tests/test-symlink.c (main): Likewise.
32290         * tests/test-symlinkat.c (main): Likewise.
32291         * tests/test-utimens.c (main): Likewise.
32292         * tests/test-utimensat.c (main): Likewise.
32293
32294 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32295
32296         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32297         on $(UNUSED_PARAMETER_H) to avoid build failure.
32298
32299 2009-12-28  Jim Meyering  <meyering@redhat.com>
32300
32301         update-copyright: you may specify a max. line length other than 72
32302         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32303
32304         maint: use consistent FSF copyright line syntax
32305         * lib/posixtm.c: Add missing comma in FSF copyright line.
32306         * lib/posixtm.h: Likewise.
32307         * lib/getugroups.c: Add missing ", Inc.".
32308
32309         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32310         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32311         FSF copyright line.  Remove trailing blanks.
32312
32313 2009-12-28  Eric Blake  <ebb9@byu.net>
32314
32315         test-dup2: reduce dependencies
32316         * modules/cloexec (Configure.ac): Set witness.
32317         * modules/dup2-tests (Depends-on): Drop cloexec.
32318         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32319         not present.
32320         Suggested by Bruno Haible.
32321
32322 2009-12-26  Bruno Haible  <bruno@clisp.org>
32323
32324         Remove an unneeded dependency.
32325         * modules/fseterr (Depends-on): Remove dup2.
32326
32327 2009-12-26  Eric Blake  <ebb9@byu.net>
32328
32329         tests: use macros.h in more places
32330         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32331         (ASSERT_STREAM): Provide default of stderr.
32332         * tests/test-dirent-safer.c: Include macros.h, using alternate
32333         stream for assertions.
32334         * tests/test-dup-safer.c: Likewise.
32335         * tests/test-freopen-safer.c: Likewise.
32336         * tests/test-getopt.c: Likewise.
32337         * tests/test-openat-safer.c: Likewise.
32338         * tests/test-pipe.c: Likewise.
32339         * tests/test-popen-safer.c: Likewise.
32340         * modules/dirent-safer-tests (Files): Include macros.h.
32341         * modules/unistd-safer-tests (Files): Likewise.
32342         * modules/freopen-safer-tests (Files): Likewise.
32343         * modules/getopt-posix-tests (Files): Likewise.
32344         * modules/openat-safer-tests (Files): Likewise.
32345         * modules/pipe-tests (Files): Likewise.
32346
32347 2009-12-26  Bruno Haible  <bruno@clisp.org>
32348
32349         javacomp: Portability fix.
32350         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32351         that it also works on Solaris.
32352
32353 2009-12-26  Bruno Haible  <bruno@clisp.org>
32354
32355         localename: Fix storage allocation of gl_locale_name_thread's result.
32356         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32357         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32358         all platforms that have 'uselocale'.
32359         (gl_locale_name_thread_unsafe): New function, extracted from
32360         gl_locale_name_thread.
32361         (gl_locale_name_thread): Call struniq on all platforms that have
32362         'uselocale'.
32363         * tests/test-localename.c (test_locale_name_thread): Check that the
32364         resulting strings are permanently allocated.
32365         * modules/localename-tests (Depends-on): Add strdup.
32366
32367 2009-12-26  Bruno Haible  <bruno@clisp.org>
32368
32369         * tests/test-localename.c (categories): Fill in the strings.
32370
32371 2009-12-26  Jim Meyering  <meyering@redhat.com>
32372
32373         isdir: complete the removal of m4/isdir.m4
32374         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32375
32376         isdir: clean up, since at least grep still uses it
32377         * lib/isdir.c: Include "isdir.h".
32378         (S_ISDIR): Remove now-unneeded definition.
32379         * modules/isdir (Files): Add lib/isdir.h.
32380         * lib/isdir.h: New file, with declaration.
32381         * m4/isdir.m4: Remove file -- unneeded.
32382
32383 2009-12-25  Bruno Haible  <bruno@clisp.org>
32384
32385         selinux-h: Make generated .h files standalone.
32386         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32387         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32388         * lib/se-selinux.in.h: Likewise.
32389         * modules/selinux-h (Depends-on): Add unused-parameter.
32390         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32391         selinux/selinux.h and selinux/context.h.
32392         Suggested by Eric Blake.
32393
32394 2009-12-25  Bruno Haible  <bruno@clisp.org>
32395
32396         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32397         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32398         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32399         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32400         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32401
32402 2009-12-24  Bruno Haible  <bruno@clisp.org>
32403
32404         openat: Fix warning.
32405         * lib/openat-proc.c: Include <unistd.h>.
32406
32407 2009-12-24  Bruno Haible  <bruno@clisp.org>
32408
32409         New module 'unused-parameter'.
32410         * build-aux/unused-parameter.h: New file, extracted from earlier
32411         gnulib-common.m4.
32412         * modules/unused-parameter: New file.
32413         * lib/unistr.h: Include unused-parameter.h.
32414         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32415         _GL_UNUSED.
32416         * modules/unistr/base (Depends-on): Add unused-parameter.
32417
32418 2009-12-24  Bruno Haible  <bruno@clisp.org>
32419
32420         Add missing dependencies to 'extensions' module.
32421         * m4/extensions.m4: Add comment.
32422         * modules/accept4 (Depends-on): Add extensions.
32423         * modules/dup3 (Depends-on): Likewise.
32424         * modules/fcntl (Depends-on): Likewise.
32425         * modules/futimens (Depends-on): Likewise.
32426         * modules/mknod (Depends-on): Likewise.
32427         * modules/pipe2 (Depends-on): Likewise.
32428         * modules/stat-time (Depends-on): Likewise.
32429         * modules/strcasestr-simple (Depends-on): Likewise.
32430         * modules/strsignal (Depends-on): Likewise.
32431         * modules/utimensat (Depends-on): Likewise.
32432         * modules/localcharset (Depends-on): Likewise. Needed because of
32433         gl_FCNTL_O_FLAGS.
32434         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32435         AC_TYPE_MBSTATE_T.
32436         * modules/wcsnrtombs (Depends-on): Likewise.
32437         * modules/wcsrtombs (Depends-on): Likewise.
32438
32439 2009-12-24  Bruno Haible  <bruno@clisp.org>
32440
32441         binary-io: Avoid gcc warning due to SET_BINARY.
32442         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32443         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32444
32445 2009-12-24  Bruno Haible  <bruno@clisp.org>
32446
32447         Avoid future namespace pollution on glibc systems.
32448         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32449         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32450         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32451         glibc systems.
32452
32453 2009-12-24  Bruno Haible  <bruno@clisp.org>
32454
32455         Refactor common macros used in tests.
32456         * tests/macros.h: New file.
32457         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32458         and/or <stdlib.h>, if appropriate.
32459         (ASSERT, SIZEOF): Remove macros.
32460         * tests/test-areadlink-with-size.c: Likewise.
32461         * tests/test-areadlinkat.c: Likewise.
32462         * tests/test-areadlinkat-with-size.c: Likewise.
32463         * tests/test-argmatch.c: Likewise.
32464         * tests/test-argv-iter.c: Likewise.
32465         * tests/test-array-mergesort.c: Likewise.
32466         * tests/test-array_list.c: Likewise.
32467         * tests/test-array_oset.c: Likewise.
32468         * tests/test-avltree_list.c: Likewise.
32469         * tests/test-avltree_oset.c: Likewise.
32470         * tests/test-avltreehash_list.c: Likewise.
32471         * tests/test-base64.c: Likewise.
32472         * tests/test-binary-io.c: Likewise.
32473         * tests/test-bitrotate.c: Likewise.
32474         * tests/test-btowc.c: Likewise.
32475         * tests/test-byteswap.c: Likewise.
32476         * tests/test-c-ctype.c: Likewise.
32477         * tests/test-c-stack.c: Likewise.
32478         * tests/test-c-strcasecmp.c: Likewise.
32479         * tests/test-c-strcasestr.c: Likewise.
32480         * tests/test-c-strncasecmp.c: Likewise.
32481         * tests/test-c-strstr.c: Likewise.
32482         * tests/test-canonicalize-lgpl.c: Likewise.
32483         * tests/test-canonicalize.c: Likewise.
32484         * tests/test-carray_list.c: Likewise.
32485         * tests/test-ceilf1.c: Likewise.
32486         * tests/test-ceilf2.c: Likewise.
32487         * tests/test-ceill.c: Likewise.
32488         * tests/test-chown.c: Likewise.
32489         * tests/test-cloexec.c: Likewise.
32490         * tests/test-copy-acl.c: Likewise.
32491         * tests/test-copy-file.c: Likewise.
32492         * tests/test-count-one-bits.c: Likewise.
32493         * tests/test-dprintf-posix.c: Likewise.
32494         * tests/test-dup2.c: Likewise.
32495         * tests/test-dup3.c: Likewise.
32496         * tests/test-duplocale.c: Likewise.
32497         * tests/test-fbufmode.c: Likewise.
32498         * tests/test-fchdir.c: Likewise.
32499         * tests/test-fchownat.c: Likewise.
32500         * tests/test-fcntl-safer.c: Likewise.
32501         * tests/test-fcntl.c: Likewise.
32502         * tests/test-fdopendir.c: Likewise.
32503         * tests/test-fdutimensat.c: Likewise.
32504         * tests/test-fflush2.c: Likewise.
32505         * tests/test-file-has-acl.c: Likewise.
32506         * tests/test-filevercmp.c: Likewise.
32507         * tests/test-flock.c: Likewise.
32508         * tests/test-floorf1.c: Likewise.
32509         * tests/test-floorf2.c: Likewise.
32510         * tests/test-floorl.c: Likewise.
32511         * tests/test-fnmatch.c: Likewise.
32512         * tests/test-fopen.h: Likewise.
32513         * tests/test-fpending.c: Likewise.
32514         * tests/test-fprintf-posix.c: Likewise.
32515         * tests/test-fpurge.c: Likewise.
32516         * tests/test-freadable.c: Likewise.
32517         * tests/test-freadahead.c: Likewise.
32518         * tests/test-freading.c: Likewise.
32519         * tests/test-freadptr.c: Likewise.
32520         * tests/test-freadptr2.c: Likewise.
32521         * tests/test-freadseek.c: Likewise.
32522         * tests/test-freopen.c: Likewise.
32523         * tests/test-frexp.c: Likewise.
32524         * tests/test-frexpl.c: Likewise.
32525         * tests/test-fseek.c: Likewise.
32526         * tests/test-fseeko.c: Likewise.
32527         * tests/test-fstatat.c: Likewise.
32528         * tests/test-fstrcmp.c: Likewise.
32529         * tests/test-fsync.c: Likewise.
32530         * tests/test-ftell.c: Likewise.
32531         * tests/test-ftello.c: Likewise.
32532         * tests/test-func.c: Likewise.
32533         * tests/test-futimens.c: Likewise.
32534         * tests/test-fwritable.c: Likewise.
32535         * tests/test-fwriting.c: Likewise.
32536         * tests/test-getcwd.c: Likewise.
32537         * tests/test-getdate.c: Likewise.
32538         * tests/test-getdelim.c: Likewise.
32539         * tests/test-getdtablesize.c: Likewise.
32540         * tests/test-getgroups.c: Likewise.
32541         * tests/test-getline.c: Likewise.
32542         * tests/test-getndelim2.c: Likewise.
32543         * tests/test-glob.c: Likewise.
32544         * tests/test-hash.c: Likewise.
32545         * tests/test-i-ring.c: Likewise.
32546         * tests/test-iconv-utf.c: Likewise.
32547         * tests/test-iconv.c: Likewise.
32548         * tests/test-idpriv-drop.c: Likewise.
32549         * tests/test-idpriv-droptemp.c: Likewise.
32550         * tests/test-inet_ntop.c: Likewise.
32551         * tests/test-inet_pton.c: Likewise.
32552         * tests/test-isblank.c: Likewise.
32553         * tests/test-isfinite.c: Likewise.
32554         * tests/test-isinf.c: Likewise.
32555         * tests/test-isnan.c: Likewise.
32556         * tests/test-isnand.h: Likewise.
32557         * tests/test-isnanf.h: Likewise.
32558         * tests/test-isnanl.h: Likewise.
32559         * tests/test-lchown.c: Likewise.
32560         * tests/test-ldexpl.c: Likewise.
32561         * tests/test-link.c: Likewise.
32562         * tests/test-linkat.c: Likewise.
32563         * tests/test-linked_list.c: Likewise.
32564         * tests/test-linkedhash_list.c: Likewise.
32565         * tests/test-localename.c: Likewise.
32566         * tests/test-lseek.c: Likewise.
32567         * tests/test-lstat.c: Likewise.
32568         * tests/test-mbmemcasecmp.c: Likewise.
32569         * tests/test-mbmemcasecoll.c: Likewise.
32570         * tests/test-mbrtowc.c: Likewise.
32571         * tests/test-mbscasecmp.c: Likewise.
32572         * tests/test-mbscasestr1.c: Likewise.
32573         * tests/test-mbscasestr2.c: Likewise.
32574         * tests/test-mbscasestr3.c: Likewise.
32575         * tests/test-mbscasestr4.c: Likewise.
32576         * tests/test-mbschr.c: Likewise.
32577         * tests/test-mbscspn.c: Likewise.
32578         * tests/test-mbsinit.c: Likewise.
32579         * tests/test-mbsncasecmp.c: Likewise.
32580         * tests/test-mbsnrtowcs.c: Likewise.
32581         * tests/test-mbspbrk.c: Likewise.
32582         * tests/test-mbspcasecmp.c: Likewise.
32583         * tests/test-mbsrchr.c: Likewise.
32584         * tests/test-mbsrtowcs.c: Likewise.
32585         * tests/test-mbsspn.c: Likewise.
32586         * tests/test-mbsstr1.c: Likewise.
32587         * tests/test-mbsstr2.c: Likewise.
32588         * tests/test-mbsstr3.c: Likewise.
32589         * tests/test-memchr.c: Likewise.
32590         * tests/test-memchr2.c: Likewise.
32591         * tests/test-memcmp.c: Likewise.
32592         * tests/test-memmem.c: Likewise.
32593         * tests/test-memrchr.c: Likewise.
32594         * tests/test-mkdir.c: Likewise.
32595         * tests/test-mkdirat.c: Likewise.
32596         * tests/test-mkfifo.c: Likewise.
32597         * tests/test-mkfifoat.c: Likewise.
32598         * tests/test-mknod.c: Likewise.
32599         * tests/test-nanosleep.c: Likewise.
32600         * tests/test-nl_langinfo.c: Likewise.
32601         * tests/test-obstack-printf.c: Likewise.
32602         * tests/test-open.c: Likewise.
32603         * tests/test-openat.c: Likewise.
32604         * tests/test-pipe-filter-gi1.c: Likewise.
32605         * tests/test-pipe-filter-gi2-main.c: Likewise.
32606         * tests/test-pipe-filter-ii1.c: Likewise.
32607         * tests/test-pipe-filter-ii2-main.c: Likewise.
32608         * tests/test-pipe2.c: Likewise.
32609         * tests/test-popen.h: Likewise.
32610         * tests/test-posixtm.c: Likewise.
32611         * tests/test-pread.c: Likewise.
32612         * tests/test-printf-frexp.c: Likewise.
32613         * tests/test-printf-frexpl.c: Likewise.
32614         * tests/test-printf-posix.c: Likewise.
32615         * tests/test-priv-set.c: Likewise.
32616         * tests/test-quotearg.c: Likewise.
32617         * tests/test-random_r.c: Likewise.
32618         * tests/test-rawmemchr.c: Likewise.
32619         * tests/test-rbtree_list.c: Likewise.
32620         * tests/test-rbtree_oset.c: Likewise.
32621         * tests/test-rbtreehash_list.c: Likewise.
32622         * tests/test-readlink.c: Likewise.
32623         * tests/test-remove.c: Likewise.
32624         * tests/test-rename.c: Likewise.
32625         * tests/test-renameat.c: Likewise.
32626         * tests/test-rmdir.c: Likewise.
32627         * tests/test-round1.c: Likewise.
32628         * tests/test-roundf1.c: Likewise.
32629         * tests/test-roundl.c: Likewise.
32630         * tests/test-safe-alloc.c: Likewise.
32631         * tests/test-sameacls.c: Likewise.
32632         * tests/test-set-mode-acl.c: Likewise.
32633         * tests/test-setenv.c: Likewise.
32634         * tests/test-sigaction.c: Likewise.
32635         * tests/test-signbit.c: Likewise.
32636         * tests/test-sleep.c: Likewise.
32637         * tests/test-snprintf-posix.c: Likewise.
32638         * tests/test-snprintf.c: Likewise.
32639         * tests/test-sprintf-posix.c: Likewise.
32640         * tests/test-stat-time.c: Likewise.
32641         * tests/test-stat.c: Likewise.
32642         * tests/test-strcasestr.c: Likewise.
32643         * tests/test-strchrnul.c: Likewise.
32644         * tests/test-strerror.c: Likewise.
32645         * tests/test-striconv.c: Likewise.
32646         * tests/test-striconveh.c: Likewise.
32647         * tests/test-striconveha.c: Likewise.
32648         * tests/test-strsignal.c: Likewise.
32649         * tests/test-strstr.c: Likewise.
32650         * tests/test-strtod.c: Likewise.
32651         * tests/test-strverscmp.c: Likewise.
32652         * tests/test-symlink.c: Likewise.
32653         * tests/test-symlinkat.c: Likewise.
32654         * tests/test-trunc1.c: Likewise.
32655         * tests/test-trunc2.c: Likewise.
32656         * tests/test-truncf1.c: Likewise.
32657         * tests/test-truncf2.c: Likewise.
32658         * tests/test-truncl.c: Likewise.
32659         * tests/test-uname.c: Likewise.
32660         * tests/test-unlink.c: Likewise.
32661         * tests/test-unlinkat.c: Likewise.
32662         * tests/test-unsetenv.c: Likewise.
32663         * tests/test-usleep.c: Likewise.
32664         * tests/test-utimens.c: Likewise.
32665         * tests/test-utimensat.c: Likewise.
32666         * tests/test-vasnprintf-posix.c: Likewise.
32667         * tests/test-vasnprintf-posix2.c: Likewise.
32668         * tests/test-vasnprintf.c: Likewise.
32669         * tests/test-vasprintf-posix.c: Likewise.
32670         * tests/test-vasprintf.c: Likewise.
32671         * tests/test-vdprintf-posix.c: Likewise.
32672         * tests/test-vfprintf-posix.c: Likewise.
32673         * tests/test-vprintf-posix.c: Likewise.
32674         * tests/test-vsnprintf-posix.c: Likewise.
32675         * tests/test-vsnprintf.c: Likewise.
32676         * tests/test-vsprintf-posix.c: Likewise.
32677         * tests/test-wcrtomb.c: Likewise.
32678         * tests/test-wcsnrtombs.c: Likewise.
32679         * tests/test-wcsrtombs.c: Likewise.
32680         * tests/test-wctype.c: Likewise.
32681         * tests/test-wcwidth.c: Likewise.
32682         * tests/test-xfprintf-posix.c: Likewise.
32683         * tests/test-xmemdup0.c: Likewise.
32684         * tests/test-xprintf-posix.c: Likewise.
32685         * tests/test-xvasprintf.c: Likewise.
32686         * tests/unicase/test-locale-language.c: Likewise.
32687         * tests/unicase/test-mapping-part1.h: Likewise.
32688         * tests/unicase/test-predicate-part1.h: Likewise.
32689         * tests/unicase/test-u8-casecmp.c: Likewise.
32690         * tests/unicase/test-u8-casecoll.c: Likewise.
32691         * tests/unicase/test-u8-casefold.c: Likewise.
32692         * tests/unicase/test-u8-is-cased.c: Likewise.
32693         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32694         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32695         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32696         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32697         * tests/unicase/test-u8-tolower.c: Likewise.
32698         * tests/unicase/test-u8-totitle.c: Likewise.
32699         * tests/unicase/test-u8-toupper.c: Likewise.
32700         * tests/unicase/test-u16-casecmp.c: Likewise.
32701         * tests/unicase/test-u16-casecoll.c: Likewise.
32702         * tests/unicase/test-u16-casefold.c: Likewise.
32703         * tests/unicase/test-u16-is-cased.c: Likewise.
32704         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32705         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32706         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32707         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32708         * tests/unicase/test-u16-tolower.c: Likewise.
32709         * tests/unicase/test-u16-totitle.c: Likewise.
32710         * tests/unicase/test-u16-toupper.c: Likewise.
32711         * tests/unicase/test-u32-casecmp.c: Likewise.
32712         * tests/unicase/test-u32-casecoll.c: Likewise.
32713         * tests/unicase/test-u32-casefold.c: Likewise.
32714         * tests/unicase/test-u32-is-cased.c: Likewise.
32715         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32716         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32717         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32718         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32719         * tests/unicase/test-u32-tolower.c: Likewise.
32720         * tests/unicase/test-u32-totitle.c: Likewise.
32721         * tests/unicase/test-u32-toupper.c: Likewise.
32722         * tests/unicase/test-ulc-casecmp.c: Likewise.
32723         * tests/unicase/test-ulc-casecoll.c: Likewise.
32724         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32725         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32726         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32727         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32728         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32729         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32730         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32731         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32732         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32733         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32734         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32735         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32736         * tests/unictype/test-bidi_byname.c: Likewise.
32737         * tests/unictype/test-bidi_name.c: Likewise.
32738         * tests/unictype/test-bidi_of.c: Likewise.
32739         * tests/unictype/test-bidi_test.c: Likewise.
32740         * tests/unictype/test-block_list.c: Likewise.
32741         * tests/unictype/test-block_of.c: Likewise.
32742         * tests/unictype/test-block_test.c: Likewise.
32743         * tests/unictype/test-categ_and.c: Likewise.
32744         * tests/unictype/test-categ_and_not.c: Likewise.
32745         * tests/unictype/test-categ_byname.c: Likewise.
32746         * tests/unictype/test-categ_name.c: Likewise.
32747         * tests/unictype/test-categ_none.c: Likewise.
32748         * tests/unictype/test-categ_of.c: Likewise.
32749         * tests/unictype/test-categ_or.c: Likewise.
32750         * tests/unictype/test-categ_test_withtable.c: Likewise.
32751         * tests/unictype/test-combining.c: Likewise.
32752         * tests/unictype/test-decdigit.c: Likewise.
32753         * tests/unictype/test-digit.c: Likewise.
32754         * tests/unictype/test-mirror.c: Likewise.
32755         * tests/unictype/test-numeric.c: Likewise.
32756         * tests/unictype/test-pr_byname.c: Likewise.
32757         * tests/unictype/test-pr_test.c: Likewise.
32758         * tests/unictype/test-predicate-part1.h: Likewise.
32759         * tests/unictype/test-scripts.c: Likewise.
32760         * tests/unictype/test-sy_c_ident.c: Likewise.
32761         * tests/unictype/test-sy_java_ident.c: Likewise.
32762         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32763         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32764         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32765         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32766         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32767         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32768         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32769         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32770         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32771         * tests/uninorm/test-compat-decomposition.c: Likewise.
32772         * tests/uninorm/test-composition.c: Likewise.
32773         * tests/uninorm/test-decomposing-form.c: Likewise.
32774         * tests/uninorm/test-decomposition.c: Likewise.
32775         * tests/uninorm/test-u8-nfc.c: Likewise.
32776         * tests/uninorm/test-u8-nfd.c: Likewise.
32777         * tests/uninorm/test-u8-nfkc.c: Likewise.
32778         * tests/uninorm/test-u8-nfkd.c: Likewise.
32779         * tests/uninorm/test-u8-normcmp.c: Likewise.
32780         * tests/uninorm/test-u8-normcoll.c: Likewise.
32781         * tests/uninorm/test-u16-nfc.c: Likewise.
32782         * tests/uninorm/test-u16-nfd.c: Likewise.
32783         * tests/uninorm/test-u16-nfkc.c: Likewise.
32784         * tests/uninorm/test-u16-nfkd.c: Likewise.
32785         * tests/uninorm/test-u16-normcmp.c: Likewise.
32786         * tests/uninorm/test-u16-normcoll.c: Likewise.
32787         * tests/uninorm/test-u32-nfc.c: Likewise.
32788         * tests/uninorm/test-u32-nfd.c: Likewise.
32789         * tests/uninorm/test-u32-nfkc.c: Likewise.
32790         * tests/uninorm/test-u32-nfkd.c: Likewise.
32791         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32792         * tests/uninorm/test-u32-normcmp.c: Likewise.
32793         * tests/uninorm/test-u32-normcoll.c: Likewise.
32794         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32795         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32796         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32797         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32798         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32799         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32800         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32801         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32802         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32803         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32804         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32805         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32806         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32807         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32808         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32809         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32810         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32811         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32812         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32813         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32814         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32815         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32816         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32817         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32818         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32819         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32820         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32821         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32822         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32823         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32824         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32825         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32826         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32827         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32828         * tests/uniwidth/test-u8-width.c: Likewise.
32829         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32830         * tests/uniwidth/test-u16-width.c: Likewise.
32831         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32832         * tests/uniwidth/test-u32-width.c: Likewise.
32833         * tests/uniwidth/test-uc_width.c: Likewise.
32834         * tests/uniwidth/test-uc_width2.c: Likewise.
32835         * modules/acl-tests (Files): Add tests/macros.h.
32836         * modules/areadlink-tests (Files): Likewise.
32837         * modules/areadlink-with-size-tests (Files): Likewise.
32838         * modules/areadlinkat-tests (Files): Likewise.
32839         * modules/areadlinkat-with-size-tests (Files): Likewise.
32840         * modules/argmatch-tests (Files): Likewise.
32841         * modules/argv-iter-tests (Files): Likewise.
32842         * modules/array-list-tests (Files): Likewise.
32843         * modules/array-mergesort-tests (Files): Likewise.
32844         * modules/array-oset-tests (Files): Likewise.
32845         * modules/avltree-list-tests (Files): Likewise.
32846         * modules/avltree-oset-tests (Files): Likewise.
32847         * modules/avltreehash-list-tests (Files): Likewise.
32848         * modules/base64-tests (Files): Likewise.
32849         * modules/binary-io-tests (Files): Likewise.
32850         * modules/bitrotate-tests (Files): Likewise.
32851         * modules/btowc-tests (Files): Likewise.
32852         * modules/byteswap-tests (Files): Likewise.
32853         * modules/c-ctype-tests (Files): Likewise.
32854         * modules/c-stack-tests (Files): Likewise.
32855         * modules/c-strcase-tests (Files): Likewise.
32856         * modules/c-strcasestr-tests (Files): Likewise.
32857         * modules/c-strstr-tests (Files): Likewise.
32858         * modules/canonicalize-lgpl-tests (Files): Likewise.
32859         * modules/canonicalize-tests (Files): Likewise.
32860         * modules/carray-list-tests (Files): Likewise.
32861         * modules/ceilf-tests (Files): Likewise.
32862         * modules/ceill-tests (Files): Likewise.
32863         * modules/chown-tests (Files): Likewise.
32864         * modules/cloexec-tests (Files): Likewise.
32865         * modules/copy-file-tests (Files): Likewise.
32866         * modules/count-one-bits-tests (Files): Likewise.
32867         * modules/dprintf-posix-tests (Files): Likewise.
32868         * modules/dup2-tests (Files): Likewise.
32869         * modules/dup3-tests (Files): Likewise.
32870         * modules/duplocale-tests (Files): Likewise.
32871         * modules/fbufmode-tests (Files): Likewise.
32872         * modules/fchdir-tests (Files): Likewise.
32873         * modules/fcntl-safer-tests (Files): Likewise.
32874         * modules/fcntl-tests (Files): Likewise.
32875         * modules/fdopendir-tests (Files): Likewise.
32876         * modules/fdutimensat-tests (Files): Likewise.
32877         * modules/fflush-tests (Files): Likewise.
32878         * modules/filevercmp-tests (Files): Likewise.
32879         * modules/flock-tests (Files): Likewise.
32880         * modules/floorf-tests (Files): Likewise.
32881         * modules/floorl-tests (Files): Likewise.
32882         * modules/fnmatch-tests (Files): Likewise.
32883         * modules/fopen-safer-tests (Files): Likewise.
32884         * modules/fopen-tests (Files): Likewise.
32885         * modules/fpending-tests (Files): Likewise.
32886         * modules/fprintf-posix-tests (Files): Likewise.
32887         * modules/fpurge-tests (Files): Likewise.
32888         * modules/freadable-tests (Files): Likewise.
32889         * modules/freadahead-tests (Files): Likewise.
32890         * modules/freading-tests (Files): Likewise.
32891         * modules/freadptr-tests (Files): Likewise.
32892         * modules/freadseek-tests (Files): Likewise.
32893         * modules/freopen-tests (Files): Likewise.
32894         * modules/frexp-nolibm-tests (Files): Likewise.
32895         * modules/frexp-tests (Files): Likewise.
32896         * modules/frexpl-nolibm-tests (Files): Likewise.
32897         * modules/frexpl-tests (Files): Likewise.
32898         * modules/fseek-tests (Files): Likewise.
32899         * modules/fseeko-tests (Files): Likewise.
32900         * modules/fstrcmp-tests (Files): Likewise.
32901         * modules/fsync-tests (Files): Likewise.
32902         * modules/ftell-tests (Files): Likewise.
32903         * modules/ftello-tests (Files): Likewise.
32904         * modules/func-tests (Files): Likewise.
32905         * modules/futimens-tests (Files): Likewise.
32906         * modules/fwritable-tests (Files): Likewise.
32907         * modules/fwriting-tests (Files): Likewise.
32908         * modules/getcwd-tests (Files): Likewise.
32909         * modules/getdate-tests (Files): Likewise.
32910         * modules/getdelim-tests (Files): Likewise.
32911         * modules/getdtablesize-tests (Files): Likewise.
32912         * modules/getgroups-tests (Files): Likewise.
32913         * modules/getline-tests (Files): Likewise.
32914         * modules/getndelim2-tests (Files): Likewise.
32915         * modules/glob-tests (Files): Likewise.
32916         * modules/hash-tests (Files): Likewise.
32917         * modules/i-ring-tests (Files): Likewise.
32918         * modules/iconv-tests (Files): Likewise.
32919         * modules/iconv_open-utf-tests (Files): Likewise.
32920         * modules/idpriv-drop-tests (Files): Likewise.
32921         * modules/idpriv-droptemp-tests (Files): Likewise.
32922         * modules/inet_ntop-tests (Files): Likewise.
32923         * modules/inet_pton-tests (Files): Likewise.
32924         * modules/isblank-tests (Files): Likewise.
32925         * modules/isfinite-tests (Files): Likewise.
32926         * modules/isinf-tests (Files): Likewise.
32927         * modules/isnan-tests (Files): Likewise.
32928         * modules/isnand-nolibm-tests (Files): Likewise.
32929         * modules/isnand-tests (Files): Likewise.
32930         * modules/isnanf-nolibm-tests (Files): Likewise.
32931         * modules/isnanf-tests (Files): Likewise.
32932         * modules/isnanl-nolibm-tests (Files): Likewise.
32933         * modules/isnanl-tests (Files): Likewise.
32934         * modules/lchown-tests (Files): Likewise.
32935         * modules/ldexpl-tests (Files): Likewise.
32936         * modules/link-tests (Files): Likewise.
32937         * modules/linkat-tests (Files): Likewise.
32938         * modules/linked-list-tests (Files): Likewise.
32939         * modules/linkedhash-list-tests (Files): Likewise.
32940         * modules/localename-tests (Files): Likewise.
32941         * modules/lseek-tests (Files): Likewise.
32942         * modules/lstat-tests (Files): Likewise.
32943         * modules/mbmemcasecmp-tests (Files): Likewise.
32944         * modules/mbmemcasecoll-tests (Files): Likewise.
32945         * modules/mbrtowc-tests (Files): Likewise.
32946         * modules/mbscasecmp-tests (Files): Likewise.
32947         * modules/mbscasestr-tests (Files): Likewise.
32948         * modules/mbschr-tests (Files): Likewise.
32949         * modules/mbscspn-tests (Files): Likewise.
32950         * modules/mbsinit-tests (Files): Likewise.
32951         * modules/mbsncasecmp-tests (Files): Likewise.
32952         * modules/mbsnrtowcs-tests (Files): Likewise.
32953         * modules/mbspbrk-tests (Files): Likewise.
32954         * modules/mbspcasecmp-tests (Files): Likewise.
32955         * modules/mbsrchr-tests (Files): Likewise.
32956         * modules/mbsrtowcs-tests (Files): Likewise.
32957         * modules/mbsspn-tests (Files): Likewise.
32958         * modules/mbsstr-tests (Files): Likewise.
32959         * modules/memchr-tests (Files): Likewise.
32960         * modules/memchr2-tests (Files): Likewise.
32961         * modules/memcmp-tests (Files): Likewise.
32962         * modules/memmem-tests (Files): Likewise.
32963         * modules/memrchr-tests (Files): Likewise.
32964         * modules/mkdir-tests (Files): Likewise.
32965         * modules/mkfifo-tests (Files): Likewise.
32966         * modules/mkfifoat-tests (Files): Likewise.
32967         * modules/mknod-tests (Files): Likewise.
32968         * modules/nanosleep-tests (Files): Likewise.
32969         * modules/nl_langinfo-tests (Files): Likewise.
32970         * modules/obstack-printf-tests (Files): Likewise.
32971         * modules/open-tests (Files): Likewise.
32972         * modules/openat-tests (Files): Likewise.
32973         * modules/pipe-filter-gi-tests (Files): Likewise.
32974         * modules/pipe-filter-ii-tests (Files): Likewise.
32975         * modules/pipe2-tests (Files): Likewise.
32976         * modules/popen-safer-tests (Files): Likewise.
32977         * modules/popen-tests (Files): Likewise.
32978         * modules/posixtm-tests (Files): Likewise.
32979         * modules/pread-tests (Files): Likewise.
32980         * modules/printf-frexp-tests (Files): Likewise.
32981         * modules/printf-frexpl-tests (Files): Likewise.
32982         * modules/printf-posix-tests (Files): Likewise.
32983         * modules/priv-set-tests (Files): Likewise.
32984         * modules/quotearg-tests (Files): Likewise.
32985         * modules/random_r-tests (Files): Likewise.
32986         * modules/rawmemchr-tests (Files): Likewise.
32987         * modules/rbtree-list-tests (Files): Likewise.
32988         * modules/rbtree-oset-tests (Files): Likewise.
32989         * modules/rbtreehash-list-tests (Files): Likewise.
32990         * modules/readlink-tests (Files): Likewise.
32991         * modules/remove-tests (Files): Likewise.
32992         * modules/rename-tests (Files): Likewise.
32993         * modules/renameat-tests (Files): Likewise.
32994         * modules/rmdir-tests (Files): Likewise.
32995         * modules/round-tests (Files): Likewise.
32996         * modules/roundf-tests (Files): Likewise.
32997         * modules/roundl-tests (Files): Likewise.
32998         * modules/safe-alloc-tests (Files): Likewise.
32999         * modules/setenv-tests (Files): Likewise.
33000         * modules/sigaction-tests (Files): Likewise.
33001         * modules/signbit-tests (Files): Likewise.
33002         * modules/sleep-tests (Files): Likewise.
33003         * modules/snprintf-posix-tests (Files): Likewise.
33004         * modules/snprintf-tests (Files): Likewise.
33005         * modules/sprintf-posix-tests (Files): Likewise.
33006         * modules/stat-tests (Files): Likewise.
33007         * modules/stat-time-tests (Files): Likewise.
33008         * modules/strcasestr-tests (Files): Likewise.
33009         * modules/strchrnul-tests (Files): Likewise.
33010         * modules/strerror-tests (Files): Likewise.
33011         * modules/striconv-tests (Files): Likewise.
33012         * modules/striconveh-tests (Files): Likewise.
33013         * modules/striconveha-tests (Files): Likewise.
33014         * modules/strsignal-tests (Files): Likewise.
33015         * modules/strstr-tests (Files): Likewise.
33016         * modules/strtod-tests (Files): Likewise.
33017         * modules/strverscmp-tests (Files): Likewise.
33018         * modules/symlink-tests (Files): Likewise.
33019         * modules/symlinkat-tests (Files): Likewise.
33020         * modules/trunc-tests (Files): Likewise.
33021         * modules/truncf-tests (Files): Likewise.
33022         * modules/truncl-tests (Files): Likewise.
33023         * modules/uname-tests (Files): Likewise.
33024         * modules/unicase/cased-tests (Files): Likewise.
33025         * modules/unicase/ignorable-tests (Files): Likewise.
33026         * modules/unicase/locale-language-tests (Files): Likewise.
33027         * modules/unicase/tolower-tests (Files): Likewise.
33028         * modules/unicase/totitle-tests (Files): Likewise.
33029         * modules/unicase/toupper-tests (Files): Likewise.
33030         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33031         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33032         * modules/unicase/u8-casefold-tests (Files): Likewise.
33033         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33034         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33035         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33036         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33037         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33038         * modules/unicase/u8-tolower-tests (Files): Likewise.
33039         * modules/unicase/u8-totitle-tests (Files): Likewise.
33040         * modules/unicase/u8-toupper-tests (Files): Likewise.
33041         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33042         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33043         * modules/unicase/u16-casefold-tests (Files): Likewise.
33044         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33045         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33046         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33047         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33048         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33049         * modules/unicase/u16-tolower-tests (Files): Likewise.
33050         * modules/unicase/u16-totitle-tests (Files): Likewise.
33051         * modules/unicase/u16-toupper-tests (Files): Likewise.
33052         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33053         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33054         * modules/unicase/u32-casefold-tests (Files): Likewise.
33055         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33056         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33057         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33058         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33059         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33060         * modules/unicase/u32-tolower-tests (Files): Likewise.
33061         * modules/unicase/u32-totitle-tests (Files): Likewise.
33062         * modules/unicase/u32-toupper-tests (Files): Likewise.
33063         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33064         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33065         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33066         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33067         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33068         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33069         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33070         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33071         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33072         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33073         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33074         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33075         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33076         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33077         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33078         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33079         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33080         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33081         * modules/unictype/block-list-tests (Files): Likewise.
33082         * modules/unictype/block-of-tests (Files): Likewise.
33083         * modules/unictype/block-test-tests (Files): Likewise.
33084         * modules/unictype/category-C-tests (Files): Likewise.
33085         * modules/unictype/category-Cc-tests (Files): Likewise.
33086         * modules/unictype/category-Cf-tests (Files): Likewise.
33087         * modules/unictype/category-Cn-tests (Files): Likewise.
33088         * modules/unictype/category-Co-tests (Files): Likewise.
33089         * modules/unictype/category-Cs-tests (Files): Likewise.
33090         * modules/unictype/category-L-tests (Files): Likewise.
33091         * modules/unictype/category-Ll-tests (Files): Likewise.
33092         * modules/unictype/category-Lm-tests (Files): Likewise.
33093         * modules/unictype/category-Lo-tests (Files): Likewise.
33094         * modules/unictype/category-Lt-tests (Files): Likewise.
33095         * modules/unictype/category-Lu-tests (Files): Likewise.
33096         * modules/unictype/category-M-tests (Files): Likewise.
33097         * modules/unictype/category-Mc-tests (Files): Likewise.
33098         * modules/unictype/category-Me-tests (Files): Likewise.
33099         * modules/unictype/category-Mn-tests (Files): Likewise.
33100         * modules/unictype/category-N-tests (Files): Likewise.
33101         * modules/unictype/category-Nd-tests (Files): Likewise.
33102         * modules/unictype/category-Nl-tests (Files): Likewise.
33103         * modules/unictype/category-No-tests (Files): Likewise.
33104         * modules/unictype/category-P-tests (Files): Likewise.
33105         * modules/unictype/category-Pc-tests (Files): Likewise.
33106         * modules/unictype/category-Pd-tests (Files): Likewise.
33107         * modules/unictype/category-Pe-tests (Files): Likewise.
33108         * modules/unictype/category-Pf-tests (Files): Likewise.
33109         * modules/unictype/category-Pi-tests (Files): Likewise.
33110         * modules/unictype/category-Po-tests (Files): Likewise.
33111         * modules/unictype/category-Ps-tests (Files): Likewise.
33112         * modules/unictype/category-S-tests (Files): Likewise.
33113         * modules/unictype/category-Sc-tests (Files): Likewise.
33114         * modules/unictype/category-Sk-tests (Files): Likewise.
33115         * modules/unictype/category-Sm-tests (Files): Likewise.
33116         * modules/unictype/category-So-tests (Files): Likewise.
33117         * modules/unictype/category-Z-tests (Files): Likewise.
33118         * modules/unictype/category-Zl-tests (Files): Likewise.
33119         * modules/unictype/category-Zp-tests (Files): Likewise.
33120         * modules/unictype/category-Zs-tests (Files): Likewise.
33121         * modules/unictype/category-and-not-tests (Files): Likewise.
33122         * modules/unictype/category-and-tests (Files): Likewise.
33123         * modules/unictype/category-byname-tests (Files): Likewise.
33124         * modules/unictype/category-name-tests (Files): Likewise.
33125         * modules/unictype/category-none-tests (Files): Likewise.
33126         * modules/unictype/category-of-tests (Files): Likewise.
33127         * modules/unictype/category-or-tests (Files): Likewise.
33128         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33129         * modules/unictype/combining-class-tests (Files): Likewise.
33130         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33131         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33132         * modules/unictype/ctype-blank-tests (Files): Likewise.
33133         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33134         * modules/unictype/ctype-digit-tests (Files): Likewise.
33135         * modules/unictype/ctype-graph-tests (Files): Likewise.
33136         * modules/unictype/ctype-lower-tests (Files): Likewise.
33137         * modules/unictype/ctype-print-tests (Files): Likewise.
33138         * modules/unictype/ctype-punct-tests (Files): Likewise.
33139         * modules/unictype/ctype-space-tests (Files): Likewise.
33140         * modules/unictype/ctype-upper-tests (Files): Likewise.
33141         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33142         * modules/unictype/decimal-digit-tests (Files): Likewise.
33143         * modules/unictype/digit-tests (Files): Likewise.
33144         * modules/unictype/mirror-tests (Files): Likewise.
33145         * modules/unictype/numeric-tests (Files): Likewise.
33146         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33147         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33148         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33149         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33150         Likewise.
33151         * modules/unictype/property-bidi-block-separator-tests (Files):
33152         Likewise.
33153         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33154         Likewise.
33155         * modules/unictype/property-bidi-common-separator-tests (Files):
33156         Likewise.
33157         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33158         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33159         Likewise.
33160         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33161         Likewise.
33162         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33163         Likewise.
33164         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33165         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33166         Likewise.
33167         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33168         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33169         Likewise.
33170         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33171         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33172         * modules/unictype/property-bidi-segment-separator-tests (Files):
33173         Likewise.
33174         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33175         * modules/unictype/property-byname-tests (Files): Likewise.
33176         * modules/unictype/property-combining-tests (Files): Likewise.
33177         * modules/unictype/property-composite-tests (Files): Likewise.
33178         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33179         * modules/unictype/property-dash-tests (Files): Likewise.
33180         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33181         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33182         Likewise.
33183         * modules/unictype/property-deprecated-tests (Files): Likewise.
33184         * modules/unictype/property-diacritic-tests (Files): Likewise.
33185         * modules/unictype/property-extender-tests (Files): Likewise.
33186         * modules/unictype/property-format-control-tests (Files): Likewise.
33187         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33188         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33189         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33190         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33191         * modules/unictype/property-hyphen-tests (Files): Likewise.
33192         * modules/unictype/property-id-continue-tests (Files): Likewise.
33193         * modules/unictype/property-id-start-tests (Files): Likewise.
33194         * modules/unictype/property-ideographic-tests (Files): Likewise.
33195         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33196         * modules/unictype/property-ids-trinary-operator-tests (Files):
33197         Likewise.
33198         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33199         * modules/unictype/property-iso-control-tests (Files): Likewise.
33200         * modules/unictype/property-join-control-tests (Files): Likewise.
33201         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33202         * modules/unictype/property-line-separator-tests (Files): Likewise.
33203         * modules/unictype/property-logical-order-exception-tests (Files):
33204         Likewise.
33205         * modules/unictype/property-lowercase-tests (Files): Likewise.
33206         * modules/unictype/property-math-tests (Files): Likewise.
33207         * modules/unictype/property-non-break-tests (Files): Likewise.
33208         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33209         * modules/unictype/property-numeric-tests (Files): Likewise.
33210         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33211         * modules/unictype/property-other-default-ignorable-code-point-tests
33212         (Files): Likewise.
33213         * modules/unictype/property-other-grapheme-extend-tests (Files):
33214         Likewise.
33215         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33216         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33217         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33218         * modules/unictype/property-other-math-tests (Files): Likewise.
33219         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33220         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33221         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33222         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33223         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33224         * modules/unictype/property-private-use-tests (Files): Likewise.
33225         * modules/unictype/property-punctuation-tests (Files): Likewise.
33226         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33227         * modules/unictype/property-radical-tests (Files): Likewise.
33228         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33229         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33230         * modules/unictype/property-space-tests (Files): Likewise.
33231         * modules/unictype/property-terminal-punctuation-tests (Files):
33232         Likewise.
33233         * modules/unictype/property-test-tests (Files): Likewise.
33234         * modules/unictype/property-titlecase-tests (Files): Likewise.
33235         * modules/unictype/property-unassigned-code-value-tests (Files):
33236         Likewise.
33237         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33238         * modules/unictype/property-uppercase-tests (Files): Likewise.
33239         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33240         * modules/unictype/property-white-space-tests (Files): Likewise.
33241         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33242         * modules/unictype/property-xid-start-tests (Files): Likewise.
33243         * modules/unictype/property-zero-width-tests (Files): Likewise.
33244         * modules/unictype/scripts-tests (Files): Likewise.
33245         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33246         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33247         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33248         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33249         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33250         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33251         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33252         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33253         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33254         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33255         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33256         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33257         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33258         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33259         * modules/uninorm/composition-tests (Files): Likewise.
33260         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33261         * modules/uninorm/decomposition-tests (Files): Likewise.
33262         * modules/uninorm/filter-tests (Files): Likewise.
33263         * modules/uninorm/nfc-tests (Files): Likewise.
33264         * modules/uninorm/nfd-tests (Files): Likewise.
33265         * modules/uninorm/nfkc-tests (Files): Likewise.
33266         * modules/uninorm/nfkd-tests (Files): Likewise.
33267         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33268         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33269         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33270         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33271         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33272         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33273         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33274         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33275         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33276         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33277         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33278         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33279         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33280         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33281         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33282         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33283         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33284         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33285         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33286         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33287         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33288         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33289         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33290         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33291         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33292         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33293         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33294         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33295         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33296         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33297         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33298         * modules/uniwidth/u8-width-tests (Files): Likewise.
33299         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33300         * modules/uniwidth/u16-width-tests (Files): Likewise.
33301         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33302         * modules/uniwidth/u32-width-tests (Files): Likewise.
33303         * modules/uniwidth/width-tests (Files): Likewise.
33304         * modules/unlink-tests (Files): Likewise.
33305         * modules/unsetenv-tests (Files): Likewise.
33306         * modules/usleep-tests (Files): Likewise.
33307         * modules/utimens-tests (Files): Likewise.
33308         * modules/utimensat-tests (Files): Likewise.
33309         * modules/vasnprintf-posix-tests (Files): Likewise.
33310         * modules/vasnprintf-tests (Files): Likewise.
33311         * modules/vasprintf-posix-tests (Files): Likewise.
33312         * modules/vasprintf-tests (Files): Likewise.
33313         * modules/vdprintf-posix-tests (Files): Likewise.
33314         * modules/vfprintf-posix-tests (Files): Likewise.
33315         * modules/vprintf-posix-tests (Files): Likewise.
33316         * modules/vsnprintf-posix-tests (Files): Likewise.
33317         * modules/vsnprintf-tests (Files): Likewise.
33318         * modules/vsprintf-posix-tests (Files): Likewise.
33319         * modules/wcrtomb-tests (Files): Likewise.
33320         * modules/wcsnrtombs-tests (Files): Likewise.
33321         * modules/wcsrtombs-tests (Files): Likewise.
33322         * modules/wctype-tests (Files): Likewise.
33323         * modules/wcwidth-tests (Files): Likewise.
33324         * modules/xmemdup0-tests (Files): Likewise.
33325         * modules/xprintf-posix-tests (Files): Likewise.
33326         * modules/xvasprintf-tests (Files): Likewise.
33327
33328 2009-12-24  Eric Blake  <ebb9@byu.net>
33329
33330         test-nanosleep: fix typo
33331         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33332         patch.
33333         Reported by Bruno Haible.
33334
33335 2009-12-24  Bruno Haible  <bruno@clisp.org>
33336
33337         Reduce namespace pollution on glibc systems.
33338         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33339         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33340         systems.
33341         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33342         <getopt.h> on glibc systems.
33343         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33344         systems.
33345         * lib/fcntl.c: Include <unistd.h> here instead.
33346
33347 2009-12-24  Bruno Haible  <bruno@clisp.org>
33348
33349         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33350
33351 2009-12-24  Eric Blake  <ebb9@byu.net>
33352
33353         tests: add signature checks
33354         * tests/signature.h (SIGNATURE_CHECK): New file.
33355         * modules/atexit-tests (Files): Use it.
33356         * modules/btowc-tests (Files): Likewise.
33357         * modules/canonicalize-lgpl-tests (Files): Likewise.
33358         * modules/ceilf-tests (Files): Likewise.
33359         * modules/ceill-tests (Files): Likewise.
33360         * modules/chown-tests (Files): Likewise.
33361         * modules/dprintf-posix-tests (Files): Likewise.
33362         * modules/dup2-tests (Files): Likewise.
33363         * modules/dup3-tests (Files): Likewise.
33364         * modules/duplocale-tests (Files): Likewise.
33365         * modules/fchdir-tests (Files): Likewise.
33366         * modules/fcntl-tests (Files): Likewise.
33367         * modules/fdopendir-tests (Files): Likewise.
33368         * modules/fflush-tests (Files): Likewise.
33369         * modules/flock-tests (Files): Likewise.
33370         * modules/floorf-tests (Files): Likewise.
33371         * modules/floorl-tests (Files): Likewise.
33372         * modules/fnmatch-tests (Files): Likewise.
33373         * modules/fopen-tests (Files): Likewise.
33374         * modules/fprintf-posix-tests (Files): Likewise.
33375         * modules/freopen-tests (Files): Likewise.
33376         * modules/frexp-nolibm-tests (Files): Likewise.
33377         * modules/frexp-tests (Files): Likewise.
33378         * modules/frexpl-nolibm-tests (Files): Likewise.
33379         * modules/frexpl-tests (Files): Likewise.
33380         * modules/fseek-tests (Files): Likewise.
33381         * modules/fseeko-tests (Files): Likewise.
33382         * modules/fsync-tests (Files): Likewise.
33383         * modules/ftell-tests (Files): Likewise.
33384         * modules/ftello-tests (Files): Likewise.
33385         * modules/futimens-tests (Files): Likewise.
33386         * modules/getaddrinfo-tests (Files): Likewise.
33387         * modules/getcwd-tests (Files): Likewise.
33388         * modules/getdelim-tests (Files): Likewise.
33389         * modules/getdtablesize-tests (Files): Likewise.
33390         * modules/getgroups-tests (Files): Likewise.
33391         * modules/gethostname-tests (Files): Likewise.
33392         * modules/getline-tests (Files): Likewise.
33393         * modules/getopt-posix-tests (Files): Likewise.
33394         * modules/gettimeofday-tests (Files): Likewise.
33395         * modules/glob-tests (Files): Likewise.
33396         * modules/iconv-tests (Files): Likewise.
33397         * modules/inet_ntop-tests (Files): Likewise.
33398         * modules/inet_pton-tests (Files): Likewise.
33399         * modules/isblank-tests (Files): Likewise.
33400         * modules/lchown-tests (Files): Likewise.
33401         * modules/ldexpl-tests (Files): Likewise.
33402         * modules/link-tests (Files): Likewise.
33403         * modules/linkat-tests (Files): Likewise.
33404         * modules/lseek-tests (Files): Likewise.
33405         * modules/lstat-tests (Files): Likewise.
33406         * modules/mbrtowc-tests (Files): Likewise.
33407         * modules/mbsinit-tests (Files): Likewise.
33408         * modules/mbsnrtowcs-tests (Files): Likewise.
33409         * modules/mbsrtowcs-tests (Files): Likewise.
33410         * modules/memchr-tests (Files): Likewise.
33411         * modules/memcmp-tests (Files): Likewise.
33412         * modules/memmem-tests (Files): Likewise.
33413         * modules/memrchr-tests (Files): Likewise.
33414         * modules/mkdir-tests (Files): Likewise.
33415         * modules/mkfifo-tests (Files): Likewise.
33416         * modules/mkfifoat-tests (Files): Likewise.
33417         * modules/mknod-tests (Files): Likewise.
33418         * modules/nanosleep-tests (Files): Likewise.
33419         * modules/nl_langinfo-tests (Files): Likewise.
33420         * modules/obstack-printf-tests (Files): Likewise.
33421         * modules/open-tests (Files): Likewise.
33422         * modules/openat-tests (Files): Likewise.
33423         * modules/perror-tests (Files): Likewise.
33424         * modules/pipe2-tests (Files): Likewise.
33425         * modules/poll-tests (Files): Likewise.
33426         * modules/popen-tests (Files): Likewise.
33427         * modules/posix_spawn-tests (Files): Likewise.
33428         * modules/posix_spawnp-tests (Files): Likewise.
33429         * modules/pread-tests (Files): Likewise.
33430         * modules/printf-posix-tests (Files): Likewise.
33431         * modules/pty-tests (Files): Likewise.
33432         * modules/random_r-tests (Files): Likewise.
33433         * modules/rawmemchr-tests (Files): Likewise.
33434         * modules/readlink-tests (Files): Likewise.
33435         * modules/remove-tests (Files): Likewise.
33436         * modules/rename-tests (Files): Likewise.
33437         * modules/renameat-tests (Files): Likewise.
33438         * modules/rmdir-tests (Files): Likewise.
33439         * modules/round-tests (Files): Likewise.
33440         * modules/roundf-tests (Files): Likewise.
33441         * modules/roundl-tests (Files): Likewise.
33442         * modules/select-tests (Files): Likewise.
33443         * modules/setenv-tests (Files): Likewise.
33444         * modules/sigaction-tests (Files): Likewise.
33445         * modules/sleep-tests (Files): Likewise.
33446         * modules/snprintf-posix-tests (Files): Likewise.
33447         * modules/snprintf-tests (Files): Likewise.
33448         * modules/sprintf-posix-tests (Files): Likewise.
33449         * modules/stat-tests (Files): Likewise.
33450         * modules/strcasestr-tests (Files): Likewise.
33451         * modules/strchrnul-tests (Files): Likewise.
33452         * modules/strerror-tests (Files): Likewise.
33453         * modules/strsignal-tests (Files): Likewise.
33454         * modules/strstr-tests (Files): Likewise.
33455         * modules/strtod-tests (Files): Likewise.
33456         * modules/strverscmp-tests (Files): Likewise.
33457         * modules/symlink-tests (Files): Likewise.
33458         * modules/symlinkat-tests (Files): Likewise.
33459         * modules/times-tests (Files): Likewise.
33460         * modules/trunc-tests (Files): Likewise.
33461         * modules/truncf-tests (Files): Likewise.
33462         * modules/truncl-tests (Files): Likewise.
33463         * modules/tsearch-tests (Files): Likewise.
33464         * modules/uname-tests (Files): Likewise.
33465         * modules/unlink-tests (Files): Likewise.
33466         * modules/unsetenv-tests (Files): Likewise.
33467         * modules/usleep-tests (Files): Likewise.
33468         * modules/utimensat-tests (Files): Likewise.
33469         * modules/vasprintf-tests (Files): Likewise.
33470         * modules/vdprintf-posix-tests (Files): Likewise.
33471         * modules/vfprintf-posix-tests (Files): Likewise.
33472         * modules/vprintf-posix-tests (Files): Likewise.
33473         * modules/vsnprintf-posix-tests (Files): Likewise.
33474         * modules/vsnprintf-tests (Files): Likewise.
33475         * modules/vsprintf-posix-tests (Files): Likewise.
33476         * modules/wcrtomb-tests (Files): Likewise.
33477         * modules/wcsnrtombs-tests (Files): Likewise.
33478         * modules/wcsrtombs-tests (Files): Likewise.
33479         * modules/wcwidth-tests (Files): Likewise.
33480         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33481         * tests/test-isinf.c (isinf): Likewise.
33482         * tests/test-isnan.c (isnan): Likewise.
33483         * tests/test-signbit.c (signbit): Likewise.
33484         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33485         declaration, either as macro or with correct signature.
33486         (select): Ensure function under test is declared with correct
33487         signature in correct header.
33488         * tests/test-atexit.c (atexit): Likewise.
33489         * tests/test-btowc.c (btowc): Likewise.
33490         * tests/test-canonicalize-lgpl.c (realpath)
33491         (canonicalize_file_name): Likewise.
33492         * tests/test-ceilf1.c (ceilf): Likewise.
33493         * tests/test-ceill.c (ceill): Likewise.
33494         * tests/test-chown.c (chown): Likewise.
33495         * tests/test-dprintf-posix.c (dprintf): Likewise.
33496         * tests/test-dup2.c (dup2): Likewise.
33497         * tests/test-dup3.c (dup3): Likewise.
33498         * tests/test-duplocale.c (duplocale): Likewise.
33499         * tests/test-fchdir.c (fchdir): Likewise.
33500         * tests/test-fchownat.c (fchownat): Likewise.
33501         * tests/test-fcntl.c (fcntl): Likewise.
33502         * tests/test-fdopendir.c (fdopendir): Likewise.
33503         * tests/test-fflush.c (fflush): Likewise.
33504         * tests/test-flock.c (flock): Likewise.
33505         * tests/test-floorf1.c (floorf): Likewise.
33506         * tests/test-floorl.c (floorl): Likewise.
33507         * tests/test-fnmatch.c (fnmatch): Likewise.
33508         * tests/test-fopen.c (fopen): Likewise.
33509         * tests/test-fprintf-posix.c (fprintf): Likewise.
33510         * tests/test-freopen.c (freopen): Likewise.
33511         * tests/test-frexp.c (frexp): Likewise.
33512         * tests/test-frexpl.c (frexpl): Likewise.
33513         * tests/test-fseek.c (fseek): Likewise.
33514         * tests/test-fseeko.c (fseeko): Likewise.
33515         * tests/test-fstatat.c (fstatat): Likewise.
33516         * tests/test-fsync.c (fsync): Likewise.
33517         * tests/test-ftell.c (ftell): Likewise.
33518         * tests/test-ftello.c (ftello): Likewise.
33519         * tests/test-futimens.c (futimens): Likewise.
33520         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33521         (gai_strerror): Likewise.
33522         * tests/test-getcwd.c (getcwd): Likewise.
33523         * tests/test-getdelim.c (getdelim): Likewise.
33524         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33525         * tests/test-getgroups.c (getgroups): Likewise.
33526         * tests/test-gethostname.c (gethostname): Likewise.
33527         * tests/test-getline.c (getline): Likewise.
33528         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33529         Likewise.
33530         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33531         * tests/test-glob.c (glob, globfree): Likewise.
33532         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33533         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33534         * tests/test-inet_pton.c (inet_pton): Likewise.
33535         * tests/test-isblank.c (isblank): Likewise.
33536         * tests/test-lchown.c (lchown): Likewise.
33537         * tests/test-ldexpl.c (ldexpl): Likewise.
33538         * tests/test-link.c (link): Likewise.
33539         * tests/test-linkat.c (linkat): Likewise.
33540         * tests/test-lseek.c (lseek): Likewise.
33541         * tests/test-lstat.c (lstat): Likewise.
33542         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33543         * tests/test-mbsinit.c (mbsinit): Likewise.
33544         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33545         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33546         * tests/test-memchr.c (memchr): Likewise.
33547         * tests/test-memcmp.c (memcmp): Likewise.
33548         * tests/test-memmem.c (memmem): Likewise.
33549         * tests/test-memrchr.c (memrchr): Likewise.
33550         * tests/test-mkdir.c (mkdir): Likewise.
33551         * tests/test-mkdirat.c (mkdirat): Likewise.
33552         * tests/test-mkfifo.c (mkfifo): Likewise.
33553         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33554         * tests/test-mknod.c (mknod): Likewise.
33555         * tests/test-nanosleep.c (nanosleep): Likewise.
33556         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33557         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33558         Likewise.
33559         * tests/test-open.c (open): Likewise.
33560         * tests/test-openat.c (openat): Likewise.
33561         * tests/test-perror.c (perror): Likewise.
33562         * tests/test-pipe2.c (pipe2): Likewise.
33563         * tests/test-poll.c (poll): Likewise.
33564         * tests/test-popen.c (popen, pclose): Likewise.
33565         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33566         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33567         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33568         (posix_spawn_file_actions_destroy)
33569         (posix_spawn_file_actions_addclose)
33570         (posix_spawn_file_actions_addopen)
33571         (posix_spawn_file_actions_adddup2): Likewise.
33572         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33573         * tests/test-pread.c (pread): Likewise.
33574         * tests/test-printf-posix.c (printf): Likewise.
33575         * tests/test-pty.c (openpty, forkpty): Likewise.
33576         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33577         (random_r): Likewise.
33578         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33579         * tests/test-readlink.c (readlink): Likewise.
33580         * tests/test-remove.c (remove): Likewise.
33581         * tests/test-rename.c (rename): Likewise.
33582         * tests/test-renameat.c (renameat): Likewise.
33583         * tests/test-rmdir.c (rmdir): Likewise.
33584         * tests/test-round1.c (round): Likewise.
33585         * tests/test-roundf1.c (roundf): Likewise.
33586         * tests/test-roundl.c (roundl): Likewise.
33587         * tests/test-setenv.c (setenv): Likewise.
33588         * tests/test-sigaction.c (sigaction): Likewise.
33589         * tests/test-sleep.c (sleep): Likewise.
33590         * tests/test-snprintf.c (snprintf): Likewise.
33591         * tests/test-sprintf-posix.c (sprintf): Likewise.
33592         * tests/test-stat.c (stat): Likewise.
33593         * tests/test-stpncpy.c (stpncpy): Likewise.
33594         * tests/test-strcasestr.c (strcasestr): Likewise.
33595         * tests/test-strchrnul.c (strchrnul): Likewise.
33596         * tests/test-strerror.c (strerror): Likewise.
33597         * tests/test-strsignal.c (strsignal): Likewise.
33598         * tests/test-strstr.c (strstr): Likewise.
33599         * tests/test-strtod.c (strtod): Likewise.
33600         * tests/test-strverscmp.c (strverscmp): Likewise.
33601         * tests/test-symlink.c (symlink): Likewise.
33602         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33603         * tests/test-times.c (times): Likewise.
33604         * tests/test-trunc1.c (trunc): Likewise.
33605         * tests/test-truncf1.c (truncf): Likewise.
33606         * tests/test-truncl.c (truncl): Likewise.
33607         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33608         Likewise.
33609         * tests/test-uname.c (uname): Likewise.
33610         * tests/test-unlink.c (unlink): Likewise.
33611         * tests/test-unlinkat.c (unlinkat): Likewise.
33612         * tests/test-unsetenv.c (unsetenv): Likewise.
33613         * tests/test-usleep.c (usleep): Likewise.
33614         * tests/test-utimensat.c (utimensat): Likewise.
33615         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33616         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33617         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33618         * tests/test-vprintf-posix.c (vprintf): Likewise.
33619         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33620         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33621         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33622         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33623         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33624         * tests/test-wcwidth.c (wcwidth): Likewise.
33625
33626         build: pull in conditional headers during GNULIB_POSIXCHECK
33627         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33628         definitions from any conditionally-included headers.
33629         * lib/stdlib.in.h (includes): Likewise.
33630         * lib/unistd.in.h (includes): Likewise.
33631
33632 2009-12-24  Bruno Haible  <bruno@clisp.org>
33633
33634         * tests/test-argv-iter.c: Include header file being tested immediately
33635         after config.h.
33636         * tests/test-base64.c: Likewise.
33637         * tests/test-flock.c: Likewise.
33638         * tests/test-fsync.c: Likewise.
33639         * tests/test-getdate.c: Likewise.
33640         * tests/test-getndelim2.c: Likewise.
33641         * tests/test-isfinite.c: Likewise.
33642         * tests/test-isinf.c: Likewise.
33643         * tests/test-strerror.c: Likewise.
33644         * tests/test-strsignal.c: Likewise.
33645
33646 2009-12-23  Eric Blake  <ebb9@byu.net>
33647
33648         unistd: work around cygwin bug
33649         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33650         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33651         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33652
33653 2009-12-23  Bruno Haible  <bruno@clisp.org>
33654
33655         localename: More tests.
33656         * tests/test-localename.c (SIZEOF): New macro.
33657         (categories): New variable.
33658         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33659         test_locale_name_default): Add test w.r.t. thread locale.
33660         (test_locale_name_thread): New function.
33661         (main): Invoke it.
33662
33663         localename: Make aware of thread locale.
33664         * lib/localename.h (gl_locale_name_thread): New declaration.
33665         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33666         behaviour with respect to thread locale.
33667         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33668         <langinfo.h>, glthread/lock.h.
33669         (SIZE_BITS): New macro.
33670         (string_hash): New function.
33671         (struct hash_node): New type.
33672         (HASH_TABLE_SIZE): New macro.
33673         (struniq_hash_table, struniq_lock): New variables.
33674         (struniq): New function.
33675         (gl_locale_name_thread): New function.
33676         (gl_locale_name): Invoke it.
33677         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33678         * modules/localename (Depends-on): Add lock.
33679         Reported by Mike Gran <spk121@yahoo.com>.
33680
33681 2009-12-23  Eric Blake  <ebb9@byu.net>
33682
33683         va-args: new module
33684         * modules/va-args: New file.
33685         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33686         * MODULES.html.sh (Core language properties): Mention it.
33687
33688         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33689         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33690         named alias for __attribute__((__unused__)).
33691         * lib/chown.c: Update client.
33692         * lib/fchmodat.c: Likewise.
33693         * lib/fts.c: Likewise.
33694         * lib/getdate.y: Likewise.
33695         * lib/getgroups.c: Likewise.
33696         * lib/getopt.c: Likewise.
33697         * lib/getugroups.c: Likewise.
33698         * lib/mkdir.c: Likewise.
33699         * lib/mkfifo.c: Likewise.
33700         * lib/mkfifoat.c: Likewise.
33701         * lib/mknod.c: Likewise.
33702         * lib/mknodat.c: Likewise.
33703         * lib/readlink.c: Likewise.
33704         * lib/se-context.in.h: Likewise.
33705         * lib/se-selinux.in.h: Likewise.
33706         * lib/sockets.c: Likewise.
33707         * lib/symlink.c: Likewise.
33708         * lib/symlinkat.c: Likewise.
33709         * lib/unicodeio.c: Likewise.
33710         * lib/unistr.h: Likewise.
33711         * tests/test-areadlink.c: Likewise.
33712         * tests/test-areadlinkat.c: Likewise.
33713         * tests/test-filenamecat.c: Likewise.
33714         * tests/test-fseeko.c: Likewise.
33715         * tests/test-ftello.c: Likewise.
33716         * tests/test-getdate.c: Likewise.
33717         * tests/test-getgroups.c: Likewise.
33718         * tests/test-gethostname.c: Likewise.
33719         * tests/test-quotearg.c: Likewise.
33720         * tests/test-version-etc.c: Likewise.
33721         * tests/test-xalloc-die.c: Likewise.
33722         * tests/test-xfprintf-posix.c: Likewise.
33723         * tests/test-xprintf-posix.c: Likewise.
33724         * tests/test-xvasprintf.c: Likewise.
33725
33726         tests: avoid compiler warnings
33727         * tests/test-fcntl.c (main): Delete unused parameters.
33728         * tests/test-freopen-safer.c (main): Likewise.
33729         * tests/test-xalloc-die.c (main): Mark unused parameters.
33730         * tests/test-fseeko.c (main): Likewise.
33731         * tests/test-ftello.c (main): Likewise.
33732         * tests/test-nanosleep.c (main): Avoid declaration warning.
33733         * tests/test-sleep.c (main): Likewise.
33734         * tests/test-unsetenv.c (main): Silence warning about string
33735         literal.
33736         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33737
33738 2009-12-23  Bruno Haible  <bruno@clisp.org>
33739
33740         * tests/test-localename.c (test_locale_name): New function, extracted
33741         from main. Also test mixed situations.
33742         (test_locale_name_posix, test_locale_name_environ,
33743         test_locale_name_default): New functions.
33744         (main): Invoke them all.
33745         * modules/localename-tests (configure.ac): Test for newlocale.
33746
33747 2009-12-23  Bruno Haible  <bruno@clisp.org>
33748
33749         unistd: Ensure getcwd gets declared before being overridden.
33750         * lib/unistd.in.h: Conditionally include <io.h>.
33751
33752 2009-12-22  Bruno Haible  <bruno@clisp.org>
33753
33754         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33755         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33756         (gl_WCHAR_H): Invoke it.
33757         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33758         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33759         Reported by Karl Berry <karl@freefriends.org>.
33760
33761 2009-12-22  Eric Blake  <ebb9@byu.net>
33762
33763         math, unistd: avoid redundant includes
33764         * lib/math.in.h (isnan): No need to re-include <math.h>.
33765         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33766
33767         getsubopt: work around cygwin bug
33768         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33769         avoid conflicting with system getsubopt.
33770         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33771         bug.
33772
33773         getopt: synchronize from glibc
33774         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33775         parameter order.  Adjust all callers.
33776         (_getopt_internal_r, main): Adjust quoting in error messages.
33777         Drop considerations for outdated POSIX 1003.2 error message.
33778         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33779         callers.
33780         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33781
33782         test-getopt: test stderr behavior
33783         * modules/getopt-posix-tests (Depends-on): Add dup2.
33784         * tests/test-getopt.c (ASSERT): Avoid stderr.
33785         (main): Move stderr to a temporary file.
33786         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33787         Instead, add parameter to inform caller if output occurred.
33788         (test_getopt): Adjust all existing tests to expect silence, and
33789         add new tests of leading ":".
33790         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33791         glibc shortcomings with leading "-:" or "+:" in optstring.
33792         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33793         Likewise.
33794         * doc/posix-functions/getopt.texi (getopt): Likewise.
33795
33796         test-getopt: enhance test
33797         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33798         supports optind=0.
33799         * tests/test-getopt.c (OPTIND_MIN): Move...
33800         * tests/test-getopt.h (OPTIND_MIN): ...here.
33801         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33802         Require that optind=0 works, since modern BSD supports it in
33803         addition to optreset, and since coreutils expects it.
33804         (test_getopt_long_only): New test.
33805         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33806         glibc shortcomings with 'W;', and enforcement of optind=0.
33807         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33808         Likewise.
33809
33810 2009-12-21  Bruno Haible  <bruno@clisp.org>
33811
33812         localename: Improvements for MacOS X and Cygwin.
33813         * lib/localename.h (gl_locale_name_environ): New declaration.
33814         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33815         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33816         (gl_locale_name_posix): Invoke it.
33817         (gl_locale_name_default): Add comments. Use Windows native API also on
33818         Cygwin.
33819
33820 2009-12-21  Bruno Haible  <bruno@clisp.org>
33821
33822         Update list of Win32 locale ids.
33823         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33824         (LANG_SAMI): Renamed from LANG_SAAMI.
33825         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33826         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33827         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33828         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33829         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33830         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33831         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33832         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33833         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33834         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33835         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33836         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33837         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33838         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33839         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33840         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33841         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33842         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33843         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33844         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33845         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33846         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33847         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33848         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33849         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33850         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33851         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33852         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33853         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33854         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33855         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33856         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33857         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33858         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33859         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33860         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33861         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33862         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33863         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33864         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33865         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33866         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33867         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33868         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33869         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33870         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33871         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33872         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33873         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33874         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33875         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33876         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33877         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33878         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33879         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33880         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33881         Add more languages and countries for Sami, Sorbian. Add more countries
33882         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33883         for Pashto. Change country for Syriac, Tswana.
33884
33885 2009-12-21  Eric Blake  <ebb9@byu.net>
33886
33887         test-utimens: avoid spurious failure
33888         * tests/test-chown.h (nap): Factor...
33889         * tests/nap.h: ...into new file.
33890         * tests/test-lchown.h (nap): Avoid duplication.
33891         * tests/test-utimens-common.h (nap): Use shared implementation,
33892         necessary on file systems with 1-second resolution.
33893         * modules/chown-tests (Files): Include new file.
33894         * modules/fdutimensat-tests (Files): Likewise.
33895         * modules/futimens-tests (Files): Likewise.
33896         * modules/lchown-tests (Files): Likewise.
33897         * modules/openat-tests (Files): Likewise.
33898         * modules/utimens-tests (Files): Likewise.
33899         * modules/utimensat-tests (Files): Likewise.
33900
33901 2009-12-19  Eric Blake  <ebb9@byu.net>
33902
33903         futimens, utimensat: work around Linux bug
33904         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33905         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33906         * lib/utimensat.c (rpl_utimensat): Work around it.
33907         * lib/futimens.c (rpl_futimens): Adjust comment.
33908
33909         utimens: work around Linux ctime bug
33910         * lib/utimens.c (detect_ctime_bug): New helper function.
33911         (update_timespec): Differentiate between workaround needed for
33912         this bug vs. what is needed for systems that lack utimensat.
33913         (fdutimens, lutimens): Work around bug.
33914
33915         utimens: check for ctime update
33916         * tests/test-utimens-common.h (check_ctime): Define.
33917         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33918         * tests/test-futimens.h (test_futimens): Likewise.
33919         * tests/test-lutimens.h (test_lutimens): Likewise.
33920         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33921         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33922
33923 2009-12-19  Bruno Haible  <bruno@clisp.org>
33924
33925         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33926         * tests/test-dprintf-posix2.sh: New file.
33927         * tests/test-dprintf-posix2.c: New file.
33928         * modules/dprintf-posix-tests (Files): Add them.
33929         (configure.ac): Check for getrlimit and setrlimit.
33930         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33931
33932 2009-12-19  Bruno Haible  <bruno@clisp.org>
33933
33934         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33935         * tests/test-fprintf-posix3.sh: New file.
33936         * tests/test-fprintf-posix3.c: New file.
33937         * modules/fprintf-posix-tests (Files): Add them.
33938         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33939
33940 2009-12-19  Eric Blake  <ebb9@byu.net>
33941
33942         dirfd: fix prototype
33943         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33944         * lib/dirfd.c (dirfd): Likewise.
33945
33946         canonicalize: reduce memory usage
33947         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33948         allocation to size.
33949         Reported by Solar Designer <solar@openwall.com>.
33950
33951 2009-12-19  Bruno Haible  <bruno@clisp.org>
33952
33953         New module attribute 'Applicability'.
33954         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33955         * gnulib-tool: New option --extract-applicability.
33956         (func_usage): Document it.
33957         (sed_extract_prog): Recognize it.
33958         (func_get_applicability): New function.
33959         (func_import): Generalize handling of 'link-warning' module.
33960         * modules/link-warning (Applicability): New section.
33961         * modules/arg-nonnull (Applicability): New section.
33962         Repoted by Simon Josefsson <simon@josefsson.org>.
33963
33964 2009-12-19  Bruno Haible  <bruno@clisp.org>
33965
33966         fflush: tweak
33967         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33968         * lib/fseeko.c (rpl_fseeko): Likewise.
33969
33970 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33971
33972         * lib/gl_list.h: Fix typo in comment.
33973
33974 2009-12-16  Eric Blake  <ebb9@byu.net>
33975
33976         fcntl: use to simplify other modules
33977         * modules/cloexec (Depends-on): Add fcntl.
33978         * modules/fchdir (Depends-on): Likewise.
33979         * modules/fd-safer-flag (Depends-on): Likewise.
33980         * modules/unistd-safer (Depends-on): Likewise.
33981         * modules/dup3 (configure.ac): Set module indicator.
33982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33983         missing.
33984         * lib/fchdir.c (_gl_register_dup): Fix comment.
33985         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33986         * lib/dup-safer.c (dup_safer): Likewise.
33987         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33988         * lib/dup3.c (dup3): Likewise.
33989         * tests/test-fchdir.c (main): Enhance test.
33990         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33991
33992         fcntl: port portions of fcntl to mingw
33993         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33994         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33995         replacement for mingw.
33996         * modules/fcntl (Description): Update.
33997         (Depends-on): Add dup2.
33998         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33999         * modules/fcntl-h (Makefile.am): Substitute it.
34000         * lib/fcntl.in.h (fcntl): Update declaration.
34001         (F_DUPFD, F_GETFD): New macros, when needed.
34002         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34003         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
34004         * tests/test-fcntl.c (check_flags, main): Enhance test for items
34005         we now guarantee.
34006
34007         fcntl: work around cygwin bug in F_DUPFD
34008         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
34009         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
34010         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
34011         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
34012         * doc/posix-functions/fcntl.texi (fcntl): Document it.
34013
34014         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
34015         * modules/fcntl (Files): List new files.
34016         (configure.ac): Run a test.
34017         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34018         * lib/fcntl.c (rpl_fcntl): Likewise.
34019         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34020         (gl_FCNTL_H): Always replace fcntl.h.
34021         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34022         * lib/fcntl.in.h (fcntl): Declare replacement.
34023         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34024         needed, plus a witness.
34025         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34026         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34027         * tests/test-fcntl.c: New file.
34028         * modules/fcntl-tests: Likewise.
34029
34030         binary-io: avoid potential compilation warning
34031         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34032         directives.
34033
34034         fflush: avoid compilation error on NetBSD
34035         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34036         between off_t and fpos_t, since the latter is sometimes a struct.
34037         * lib/fseeko.c (rpl_fseeko): Likewise.
34038         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34039
34040 2009-12-15  Eric Blake  <ebb9@byu.net>
34041
34042         fcntl-h, stdio, sys_ioctl: fix declarations
34043         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34044         function must not take arguments.
34045         * lib/sys_ioctl.in.h (ioctl): Likewise.
34046         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34047         (open): Add a link warning.
34048
34049 2009-12-15  Jim Meyering  <meyering@redhat.com>
34050
34051         areadlink, areadlink-with-size: relax license to LGPLv2+
34052         * modules/areadlink (License): Relax to LGPLv2+.
34053         * modules/areadlink-with-size (License): Likewise.
34054
34055 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34056             Bruno Haible  <bruno@clisp.org>
34057
34058         *printf: Fix memory leak.
34059         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34060         * lib/vfprintf.c (vfprintf): Likewise.
34061         * lib/dprintf.c (dprintf): Likewise.
34062         * lib/vdprintf.c (vdprintf): Likewise.
34063
34064 2009-12-14  Eric Blake  <ebb9@byu.net>
34065
34066         accept4: adjust module dependencies
34067         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34068
34069         utimens: one more try at avoiding compiler warning
34070         * lib/utimens.c (lutimens): Lower scope of result.
34071
34072 2009-12-13  Bruno Haible  <bruno@clisp.org>
34073
34074         Move the malloc checking from module 'list' to new module 'xlist'.
34075         * modules/xlist: New file.
34076         * lib/gl_xlist.h: New file.
34077         * lib/gl_xlist.c: New file.
34078         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34079         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34080         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34081         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34082         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34083         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34084         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34085         gl_sortedlist_nx_add): New declarations.
34086         (struct gl_list_implementation): Rename and change methods accordingly.
34087         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34088         (gl_list_nx_create): Renamed from gl_list_create.
34089         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34090         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34091         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34092         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34093         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34094         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34095         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34096         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34097         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34098         gl_list_create_empty.
34099         (gl_list_nx_create): Renamed from gl_list_create.
34100         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34101         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34102         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34103         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34104         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34105         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34106         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34107         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34108         * lib/gl_array_list.c: Don't include xalloc.h.
34109         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34110         NULL upon out-of-memory.
34111         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34112         out-of-memory.
34113         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34114         Change return type to 'int'.
34115         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34116         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34117         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34118         upon out-of-memory.
34119         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34120         upon out-of-memory.
34121         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34122         upon out-of-memory.
34123         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34124         upon out-of-memory.
34125         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34126         out-of-memory.
34127         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34128         Update.
34129         (gl_array_list_implementation): Update.
34130         * lib/gl_carray_list.c: Don't include xalloc.h.
34131         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34132         Return NULL upon out-of-memory.
34133         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34134         out-of-memory.
34135         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34136         Change return type to 'int'.
34137         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34138         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34139         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34140         upon out-of-memory.
34141         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34142         upon out-of-memory.
34143         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34144         out-of-memory.
34145         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34146         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34147         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34148         Update.
34149         (gl_carray_list_implementation): Update.
34150         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34151         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34152         gl_linked_create_empty. Return NULL upon out-of-memory.
34153         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34154         out-of-memory.
34155         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34156         Change return type to 'int'. Return -1 upon out-of-memory.
34157         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34158         out-of-memory.
34159         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34160         upon out-of-memory.
34161         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34162         upon out-of-memory.
34163         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34164         NULL upon out-of-memory.
34165         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34166         upon out-of-memory.
34167         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34168         out-of-memory.
34169         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34170         Update.
34171         * lib/gl_linked_list.c: Don't include xalloc.h.
34172         (gl_linked_list_implementation): Update.
34173         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34174         (add_to_bucket): Change return type to 'int'.
34175         (gl_linkedhash_list_implementation): Update.
34176         * lib/gl_anytree_list1.h (free_subtree): New function.
34177         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34178         gl_tree_create_empty. Return NULL upon out-of-memory.
34179         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34180         Change return type to 'int'. Return -1 upon out-of-memory.
34181         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34182         out-of-memory.
34183         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34184         (gl_tree_remove_node): New function, moved here from
34185         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34186         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34187         Update.
34188         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34189         malloc, not xmalloc. Return NULL upon out-of-memory.
34190         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34191         out-of-memory.
34192         (gl_tree_remove_node_from_tree): New function, extracted from
34193         gl_tree_remove_node.
34194         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34195         upon out-of-memory.
34196         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34197         out-of-memory.
34198         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34199         upon out-of-memory.
34200         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34201         upon out-of-memory.
34202         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34203         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34204         not xmalloc. Return NULL upon out-of-memory.
34205         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34206         out-of-memory.
34207         (gl_tree_remove_node_from_tree): New function, extracted from
34208         gl_tree_remove_node.
34209         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34210         upon out-of-memory.
34211         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34212         out-of-memory.
34213         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34214         upon out-of-memory.
34215         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34216         upon out-of-memory.
34217         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34218         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34219         gl_anytree_list1.h before gl_anyavltree_list2.h.
34220         (gl_avltree_list_implementation): Update.
34221         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34222         gl_anytree_list1.h before gl_anyavltree_list2.h.
34223         (gl_rbtree_list_implementation): Update.
34224         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34225         Change return type to 'int'. Return -1 upon out-of-memory. Use
34226         __builtin_expect.
34227         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34228         (gl_avltreehash_list_implementation): Update.
34229         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34230         (gl_rbtreehash_list_implementation): Update.
34231         * modules/array-list (Depends-on): Remove xalloc.
34232         * modules/carray-list (Depends-on): Likewise.
34233         * modules/linked-list (Depends-on): Likewise.
34234         * modules/linkedhash-list (Depends-on): Likewise.
34235         * modules/avltree-list (Depends-on): Likewise.
34236         * modules/rbtree-list (Depends-on): Likewise.
34237         * modules/avltreehash-list (Depends-on): Likewise.
34238         * modules/rbtreehash-list (Depends-on): Likewise.
34239
34240         * modules/xsublist: New file.
34241         * lib/gl_xsublist.h: New file.
34242         * lib/gl_xsublist.c: New file.
34243         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34244         (gl_sublist_nx_create): New declaration.
34245         * lib/gl_sublist.c: Don't include xalloc.h.
34246         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34247         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34248         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34249         Change return type to 'int'. Return -1 upon out-of-memory.
34250         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34251         upon out-of-memory.
34252         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34253         NULL upon out-of-memory.
34254         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34255         upon out-of-memory.
34256         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34257         NULL upon out-of-memory.
34258         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34259         NULL upon out-of-memory.
34260         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34261         upon out-of-memory.
34262         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34263         (gl_sublist_list_implementation): Update.
34264         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34265         upon out-of-memory.
34266         * modules/sublist (Depends-on): Remove xalloc.
34267
34268         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34269         * tests/test-carray_list.c: Likewise.
34270         * tests/test-linked_list.c: Likewise.
34271         * tests/test-linkedhash_list.c: Likewise.
34272         * tests/test-avltree_list.c: Likewise.
34273         * tests/test-rbtree_list.c: Likewise.
34274         * tests/test-avltreehash_list.c: Likewise.
34275         * tests/test-rbtreehash_list.c: Likewise.
34276         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34277         * modules/carray-list-tests (Makefile.am): Likewise.
34278         * modules/linked-list-tests (Makefile.am): Likewise.
34279         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34280         * modules/avltree-list-tests (Makefile.am): Likewise.
34281         * modules/rbtree-list-tests (Makefile.am): Likewise.
34282         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34283         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34284
34285         * NEWS: Mention the changes.
34286
34287         * lib/clean-temp.c: Include gl_xlist.h.
34288         * modules/clean-temp (Depends-on): Add xlist.
34289
34290         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34291         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34292
34293         * tests/test-array_oset.c: Include gl_xlist.h.
34294         * modules/array-oset-tests (Depends-on): Add xlist.
34295
34296         Reported by José E. Marchesi <jemarch@gnu.org>.
34297
34298 2009-12-13  Bruno Haible  <bruno@clisp.org>
34299
34300         Move the malloc checking from module 'oset' to new module 'xoset'.
34301         * modules/xoset: New file.
34302         * lib/gl_xoset.h: New file.
34303         * lib/gl_xoset.c: New file.
34304         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34305         declarations.
34306         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34307         (struct gl_oset_implementation): Rename and change methods accordingly.
34308         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34309         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34310         'int'. Mark as __warn_unused_result__.
34311         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34312         gl_oset_create_empty.
34313         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34314         'int'.
34315         * lib/gl_array_oset.c: Don't include xalloc.h.
34316         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34317         malloc, not xmalloc.
34318         (grow): Change return type to 'int'. Don't call xalloc_die.
34319         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34320         to 'int'.
34321         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34322         'int'.
34323         (gl_array_oset_implementation): Update.
34324         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34325         gl_tree_create_empty.
34326         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34327         'int'.
34328         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34329         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34330         xmalloc.
34331         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34332         not xmalloc.
34333         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34334         xmalloc.
34335         (gl_avltree_oset_implementation): Update.
34336         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34337         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34338         xmalloc.
34339         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34340         not xmalloc.
34341         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34342         xmalloc.
34343         (gl_rbtree_oset_implementation): Update.
34344         * modules/array-oset (Depends-on): Remove xalloc.
34345         * modules/avltree-oset (Depends-on): Likewise.
34346         * modules/rbtree-oset (Depends-on): Likewise.
34347         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34348         * tests/test-avltree_oset.c: Likewise.
34349         * tests/test-rbtree_oset.c: Likewise.
34350         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34351         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34352         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34353         * NEWS: Mention the change.
34354
34355 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34356
34357         maint.mk: allow a project to override release-prep commands
34358         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34359         commands into a new rule.
34360         (release-prep): New rule.
34361         (release-prep-hook): New overridable variable.
34362
34363 2009-12-13  Bruno Haible  <bruno@clisp.org>
34364
34365         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34366
34367 2009-12-13  Jim Meyering  <meyering@redhat.com>
34368
34369         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34370         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34371
34372 2009-12-12  Bruno Haible  <bruno@clisp.org>
34373
34374         duplocale: Tweak.
34375         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34376
34377 2009-12-12  Karl Berry  <karl@gnu.org>
34378
34379         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34380
34381 2009-12-12  Bruno Haible  <bruno@clisp.org>
34382
34383         * m4/po.m4: Undo incorrect untabification.
34384
34385 2009-12-12  Bruno Haible  <bruno@clisp.org>
34386
34387         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34388         * modules/c-strtod (Depends-on): Add locale.
34389         * modules/c-strtold (Depends-on): Likewise.
34390
34391 2009-12-12  Bruno Haible  <bruno@clisp.org>
34392
34393         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34394
34395 2009-12-11  Eric Blake  <ebb9@byu.net>
34396
34397         setenv: relax requirement in light of POSIX ruling
34398         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34399         not NULL.
34400         * tests/test-setenv.c (main): Relax test.
34401         * tests/test-unsetenv.c (main): Likewise.
34402         * doc/posix-functions/setenv.texi (setenv): Document this.
34403         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34404
34405 2009-12-11  Bruno Haible  <bruno@clisp.org>
34406
34407         New module 'fd-safer-flag'.
34408         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34409         * lib/dup-safer.c (dup_safer_flag): Remove function.
34410         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34411         * lib/fd-safer.c (fd_safer_flag): Remove function.
34412         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34413         * modules/cloexec (configure.ac): Drop indicator macro.
34414         * modules/fd-safer-flag: New file.
34415         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34416         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34417         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34418
34419 2009-12-11  Bruno Haible  <bruno@clisp.org>
34420
34421         Tests for module 'nl_langinfo'.
34422         * modules/nl_langinfo-tests: New file.
34423         * tests/test-nl_langinfo.sh: New file.
34424         * tests/test-nl_langinfo.c: New file.
34425
34426         New module 'nl_langinfo'.
34427         * lib/nl_langinfo.c: New file.
34428         * m4/nl_langinfo.m4: New file.
34429         * modules/nl_langinfo: New file.
34430         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34431
34432 2009-12-11  Bruno Haible  <bruno@clisp.org>
34433
34434         Tests for module 'langinfo'.
34435         * modules/langinfo-tests: New file.
34436         * tests/test-langinfo.c: New file.
34437
34438         New module 'langinfo'.
34439         * lib/langinfo.in.h: New file.
34440         * m4/langinfo_h.m4: New file.
34441         * modules/langinfo: New file.
34442         * doc/posix-headers/langinfo.texi: Mention the new module.
34443
34444 2009-12-11  Bruno Haible  <bruno@clisp.org>
34445
34446         * lib/config.charset: Untabify.
34447
34448 2009-12-11  Bruno Haible  <bruno@clisp.org>
34449
34450         * modules/unistd-safer (configure.ac): Drop indicator macro.
34451
34452 2009-12-11  Bruno Haible  <bruno@clisp.org>
34453
34454         Move pipe2-safer code to its own file.
34455         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34456         * lib/pipe-safer.c (pipe2_safer): Remove function.
34457         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34458         (Makefile.am): Add it to lib_SOURCES.
34459
34460 2009-12-10  Bruno Haible  <bruno@clisp.org>
34461
34462         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34463
34464 2009-12-10  Bruno Haible  <bruno@clisp.org>
34465
34466         Declare which arguments expect non-NULL values, for GCC and clang.
34467         * build-aux/arg-nonnull.h: New file.
34468         * modules/arg-nonnull: New file.
34469         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34470         (inet_ntop, inet_pton): Use it.
34471         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34472         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34473         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34474         (open, openat): Use it.
34475         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34476         (fnmatch): Use it.
34477         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34478         (getopt, getopt_long, getopt_long_only): Use it.
34479         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34480         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34481         Use it.
34482         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34483         (iconv_open): Use it.
34484         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34485         (strtoimax, strtoumax): Use it.
34486         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34487         (duplocale): Use it.
34488         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34489         (frexp, frexpl): Use it.
34490         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34491         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34492         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34493         (tsearch, tfind, tdelete, twalk): Use it.
34494         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34495         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34496         sigpending): Use it.
34497         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34498         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34499         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34500         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34501         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34502         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34503         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34504         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34505         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34506         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34507         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34508         Use it.
34509         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34510         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34511         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34512         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34513         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34514         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34515         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34516         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34517         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34518         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34519         strtoull, unsetenv): Use it.
34520         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34521         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34522         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34523         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34524         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34525         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34526         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34527         (strcasecmp, strncasecmp): Use it.
34528         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34529         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34530         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34531         rpl_setsockopt): Use it.
34532         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34533         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34534         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34535         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34536         (gettimeofday): Use it.
34537         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34538         (times): Use it.
34539         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34540         (uname): Use it.
34541         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34542         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34543         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34544         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34545         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34546         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34547         unlinkat, write): Use it.
34548         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34549         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34550         * lib/argv-iter.h: Include arg-nonnull.h.
34551         (_ATTRIBUTE_NONNULL_): Remove macro.
34552         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34553         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34554         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34555         optimization.
34556         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34557         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34558         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34559         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34560         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34561         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34562         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34563         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34564         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34565         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34566         * modules/dirent (Depends-on): Add arg-nonnull.
34567         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34568         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34569         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34570         * modules/fnmatch (Depends-on): Add arg-nonnull.
34571         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34572         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34573         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34574         * modules/glob (Depends-on): Add arg-nonnull.
34575         (Makefile.am): Insert arg-nonnull.h into glob.h.
34576         * modules/iconv_open (Depends-on): Add arg-nonnull.
34577         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34578         * modules/inttypes (Depends-on): Add arg-nonnull.
34579         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34580         * modules/locale (Depends-on): Add arg-nonnull.
34581         (Makefile.am): Insert arg-nonnull.h into locale.h.
34582         * modules/math (Depends-on): Add arg-nonnull.
34583         (Makefile.am): Insert arg-nonnull.h into math.h.
34584         * modules/netdb (Depends-on): Add arg-nonnull.
34585         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34586         * modules/search (Depends-on): Add arg-nonnull.
34587         (Makefile.am): Insert arg-nonnull.h into search.h.
34588         * modules/signal (Depends-on): Add arg-nonnull.
34589         (Makefile.am): Insert arg-nonnull.h into signal.h.
34590         * modules/spawn (Depends-on): Add arg-nonnull.
34591         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34592         * modules/stdio (Depends-on): Add arg-nonnull.
34593         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34594         * modules/stdlib (Depends-on): Add arg-nonnull.
34595         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34596         * modules/string (Depends-on): Add arg-nonnull.
34597         (Makefile.am): Insert arg-nonnull.h into string.h.
34598         * modules/strings (Depends-on): Add arg-nonnull.
34599         (Makefile.am): Insert arg-nonnull.h into strings.h.
34600         * modules/sys_socket (Depends-on): Add arg-nonnull.
34601         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34602         * modules/sys_stat (Depends-on): Add arg-nonnull.
34603         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34604         * modules/sys_time (Depends-on): Add arg-nonnull.
34605         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34606         * modules/sys_times (Depends-on): Add arg-nonnull.
34607         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34608         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34609         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34610         * modules/time (Depends-on): Add arg-nonnull.
34611         (Makefile.am): Insert arg-nonnull.h into time.h.
34612         * modules/unistd (Depends-on): Add arg-nonnull.
34613         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34614         * modules/wchar (Depends-on): Add arg-nonnull.
34615         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34616         * modules/argv-iter (Depends-on): Add arg-nonnull.
34617         * tests/test-canonicalize.c (null_ptr): New function.
34618         (main): Use it.
34619         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34620         (main): Use it.
34621         * tests/test-memmem.c (null_ptr): New function.
34622         (main): Use it.
34623         Reported by Jim Meyering.
34624
34625 2009-12-10  Bruno Haible  <bruno@clisp.org>
34626
34627         Use spaces for indentation, not tabs.
34628         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34629         * m4/*.m4: Untabify.
34630         * build-aux/*.h: Untabify.
34631         * tests/**/*.[hc]: Untabify.
34632         * README: New section "Indent with spaces, not TABs", based on
34633         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34634         * NEWS: Mention the change.
34635
34636 2009-12-10  Bruno Haible  <bruno@clisp.org>
34637
34638         pty test: Fix link error.
34639         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34640         test_pty_LDADD.
34641
34642 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34643
34644         * modules/pty: New file.
34645         * modules/pty-tests: New file.
34646         * m4/pty.m4: New file.
34647         * tests/test-pty.c: New file.
34648         * doc/glibc-headers/pty.texi: Modified.
34649         * doc/glibc-functions/forkpty.texi: Modified.
34650         * doc/glibc-functions/openpty.texi: Modified.
34651
34652 2009-12-10  Bruno Haible  <bruno@clisp.org>
34653
34654         Avoid syntax error in C++ mode.
34655         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34656
34657 2009-12-10  Bruno Haible  <bruno@clisp.org>
34658
34659         Use sed with option -e.
34660         * gnulib-tool (func_version, func_emit_copyright_notice,
34661         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34662         option -e to sed.
34663         * modules/link-warning (Makefile.am): Likewise.
34664
34665 2009-12-10  Jim Meyering  <meyering@redhat.com>
34666
34667         mgetgroups: do not write bytes beyond end of malloc'd buffer
34668         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34669         username, we call getgroups with a one-element-shorter buffer,
34670         but still told it the length was original, max_n_groups.
34671
34672 2009-12-09  Eric Blake  <ebb9@byu.net>
34673
34674         cloexec: relax license
34675         * modules/cloexec (Maintainer): Add myself.
34676         (License): Use LGPL, not GPL.
34677
34678         link-warning: optimize generation
34679         * modules/link-warning (Makefile.am): Reduce process usage.
34680
34681 2009-12-09  Bruno Haible  <bruno@clisp.org>
34682
34683         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34684         workaround was added on 2009-11-17.
34685
34686 2009-12-09  Jim Meyering  <meyering@redhat.com>
34687             Bruno Haible  <bruno@clisp.org>
34688
34689         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34690         * modules/link-warning (Makefile.am): Make the comment-removing sed
34691         command more robust in the face of bootstrap-prepended comment lines.
34692
34693 2009-12-09  Bruno Haible  <bruno@clisp.org>
34694
34695         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34696         most one group.
34697
34698 2009-12-09  Simon Josefsson <simon@josefsson.org>
34699             Bruno Haible  <bruno@clisp.org>
34700
34701         * build-aux/link-warning.h: Add copyright notice.
34702         * modules/link-warning (Makefile.am): Generate link-warning.h from
34703         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34704         * NEWS: Mention change in link-warning module.
34705         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34706         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34707         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34708         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34709         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34710         * modules/math (Makefile.am): Add dependency to math.h.
34711         * modules/search (Makefile.am): Add dependency to search.h.
34712         * modules/signal (Makefile.am): Add dependency to signal.h.
34713         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34714         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34715         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34716         * modules/string (Makefile.am): Add dependency to string.h.
34717         * modules/strings (Makefile.am): Add dependency to strings.h.
34718         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34719         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34720         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34721         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34722         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34723         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34724         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34725         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34726         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34727
34728 2009-12-09  Bruno Haible  <bruno@clisp.org>
34729
34730         fchdir: Optimize away rpl_fstat when possible.
34731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34732         REPLACE_OPEN_DIRECTORY.
34733         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34734
34735 2009-12-09  Bruno Haible  <bruno@clisp.org>
34736
34737         * lib/fchdir.c: Update comment.
34738
34739 2009-12-09  Bruno Haible  <bruno@clisp.org>
34740
34741         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34742
34743 2009-12-08  Eric Blake  <ebb9@byu.net>
34744
34745         fchdir: avoid memory leak on re-registration.
34746         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34747
34748 2009-12-08  Jim Meyering  <meyering@redhat.com>
34749
34750         init.sh: avoid Solaris 10 /bin/sh portability problem
34751         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34752         sourced script:
34753           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34754           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34755           bar
34756         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34757         and two tests used that idiom.
34758         * tests/init.sh: Update suggested usage comments.
34759         (path_prepend_): New function, to be used in place
34760         of the --src-path=DIR option.
34761         (setup_): Move PATH-prepending code into path_prepend_.
34762         * tests/test-pread.sh: Adapt to new usage.
34763         * tests/test-xalloc-die.sh: Likewise.
34764
34765 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34766
34767         * doc/gnulib.texi (Glibc pty.h): Add.
34768         * doc/glibc-functions/forkpty.texi: Add.
34769         * doc/glibc-functions/openpty.texi: Add.
34770         Suggested by Bruno Haible.
34771
34772 2009-12-08  Eric Blake  <ebb9@byu.net>
34773
34774         fchdir: fix logic bugs
34775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34776         * tests/test-fchdir.c (main): Enhance test.
34777         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34778         is in use.
34779
34780         dup2: fix logic bugs
34781         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34782         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34783         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34784         exists.
34785         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34786
34787 2009-12-07  Eric Blake  <ebb9@byu.net>
34788
34789         unlink: fix m4 detection
34790         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34791
34792         unistd-safer: add unit test
34793         * modules/unistd-safer-tests: New file.
34794         * tests/test-dup-safer.c: Likewise.
34795         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34796         * tests/test-dup2.c (setmode): Likewise.
34797         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34798
34799         cloexec: preserve text vs. binary across dup_cloexec
34800         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34801         mode.
34802         * modules/dup2-tests (Depends-on): Add binary-io.
34803         * modules/cloexec-tests (Depends-on): Likewise.
34804         * tests/test-dup2.c (setmode, is_mode): New helpers.
34805         (main): Add tests that translation mode is preserved.
34806         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34807         Reported by Bruno Haible.
34808
34809         mgetgroups: reduce duplicate listings
34810         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34811         resulting array.
34812         * tests/test-chown.h (test_chown): Simplify client.
34813         * tests/test-lchown.h (test_lchown): Likewise.
34814
34815 2009-12-06  Bruno Haible  <bruno@clisp.org>
34816
34817         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34818         value.
34819
34820 2009-12-06  Bruno Haible  <bruno@clisp.org>
34821
34822         * lib/progname.c: Include stdio.h, stdlib.h.
34823         (set_program_name): Reject a NULL argument.
34824
34825 2009-12-05  Eric Blake  <ebb9@byu.net>
34826
34827         pipe2-safer: new module
34828         * modules/pipe2-safer: New file.
34829         * lib/unistd-safer.h (pipe2_safer): New prototype.
34830         * lib/unistd--.h (pipe2): New wrapper.
34831         * lib/pipe-safer.c (pipe2_safer): New function.
34832         * modules/pipe (Depends-on): Add pipe2-safer.
34833         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34834
34835         stdlib-safer: preserve cloexec flag for mkostemp[s]
34836         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34837         fd_safer_flag.
34838
34839         unistd-safer: allow preservation of cloexec status via flag
34840         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34841         prototypes.
34842         * lib/dup-safer.c (dup_safer_flag): New function.
34843         * lib/fd-safer.c (fd_safer_flag): Likewise.
34844         * modules/cloexec (configure.ac): Set witness.
34845
34846         test-dup2: enhance test
34847         * modules/dup2-tests (Depends-on): Add cloexec.
34848         * tests/test-dup2.c (main): Enhance test.
34849
34850         cloexec: add dup_cloexec
34851         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34852         header and comments.
34853         * lib/cloexec.c (set_cloexec_flag): Add comments.
34854         (dup_cloexec): New function, with mingw implementation borrowed
34855         from...
34856         * lib/w32spawn.h (dup_noinherit): ...here.
34857         * modules/execute (Depends-on): Add cloexec.
34858         * modules/pipe (Depends-on): Likewise.
34859         * modules/cloexec (Depends-on): Add dup2.
34860         * modules/cloexec-tests (Files): New file.
34861         * tests/test-cloexec.c: Likewise.
34862
34863         test-xalloc-die: fix test for mingw
34864         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34865         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34866         directory and .exe suffix off argv[0] output.
34867
34868         test-fseeko: fix test for mingw
34869         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34870         than undefining fseek, so test will pass on mingw.
34871
34872 2009-12-05  Bruno Haible  <bruno@clisp.org>
34873
34874         * lib/progname.h (set_program_name): Clarify specification.
34875         * lib/progname.c (set_program_name): Likewise.
34876         Reported by Jim Meyering.
34877
34878 2009-12-05  Jim Meyering  <meyering@redhat.com>
34879
34880         maint.mk: backslash-escape parens in default regexp
34881         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34882         backslash-escape the literal parentheses.
34883
34884         maint.mk: news-date-check: use grep -E
34885         * top/maint.mk (today): Define a Make variable, not a...
34886         (news-date-check): ...shell variable.
34887         (news-date-regexp): Use the Make variable.
34888         Use grep's -E option.  Change the failing diagnostic to mention
34889         the variable, $(news-date-regexp).
34890
34891 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34892
34893         maintainer-makefile: allow customization of NEWS entry format
34894         * top/maint.mk (news-date-regexp): New overridable variable.
34895         (news-date-check): Use it.
34896
34897 2009-12-04  Eric Blake  <ebb9@byu.net>
34898
34899         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34900         * lib/mgetgroups.h (xgetgroups): New prototype.
34901         * lib/mgetgroups.c (xgetgroups): New wrapper.
34902         (mgetgroups): Handle ENOSYS.
34903         * modules/mgetgroups (Depends-on): Add realloc.
34904         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34905
34906         mgetgroups: avoid argument promotion issues with -1
34907         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34908         for invalid gid_t.
34909         * tests/test-chown.h (getegid, test_chown): Likewise.
34910         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34911
34912 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34913
34914         exclude: Fix header file problems.
34915         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34916
34917 2009-12-01  Jim Meyering  <meyering@redhat.com>
34918
34919         fts: fts_open: do not let an empty string cause immediate failure
34920         This is required in support of GNU rm, for which the command
34921         "rm A '' B" must process and remove both A and B, in spite of
34922         the empty string argument.
34923         * lib/fts.c (fts_open): Do not let the presence of an empty string
34924         cause fts_open to fail immediately.  Most fts-using tools must be
34925         able to process all arguments, in order, and can be expected to
34926         diagnose such arguments themselves.
34927
34928 2009-11-30  Eric Blake  <ebb9@byu.net>
34929
34930         utimens: fix compilation error
34931         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34932         Declare variable at right scope.
34933
34934 2009-11-29  Jim Meyering  <meyering@redhat.com>
34935
34936         bootstrap: handle perl-5.11's changed --version output
34937         * build-aux/bootstrap (get_version): Handle perl separately,
34938         since perl-5.11's --version output is different.
34939
34940 2009-11-28  Jim Meyering  <meyering@redhat.com>
34941
34942         userspec: depend on the inttostr module, too
34943         * modules/userspec (Depends-on): Add inttostr.
34944
34945         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34946         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34947         number of MAXUID when it evaluates to (uid_t) -1.
34948         Likewise for group ID.  Reported by Matt McCutchen in
34949         <http://savannah.gnu.org/bugs/?28113>
34950
34951         userspec: reformat to use spaces, not TABs
34952         * lib/userspec.c: Expand TABs to spaces.
34953         Add Emacs' "indent-tabs-mode: nil" hint.
34954
34955 2009-11-27  Eric Blake  <ebb9@byu.net>
34956
34957         getopt-gnu: flush out another BSD bug
34958         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34959         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34960         flush out BSD bug.
34961         * tests/test-getopt.h (test_getopt): End lists with NULL.
34962         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34963         (test_getopt_long_posix): Enhance test.
34964         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34965         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34966         getopt-gnu.
34967         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34968         Likewise.
34969
34970 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34971
34972         * modules/idpriv-droptemp-tests (Notice): Fix text.
34973
34974 2009-11-27  Jim Meyering  <meyering@redhat.com>
34975
34976         test-xalloc-die: avoid spurious failure due to libtool argv difference
34977         In a libtool-enabled project, this test would fail due to a difference
34978         in the emitted program name, e.g.,
34979         -test-xalloc-die: memory exhausted
34980         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34981         Use program to avoid that.
34982         * modules/xalloc-die-tests (Depends-on): Add progname.
34983         * tests/test-xalloc-die.c: Include progname.h".
34984         (program_name): Remove decl.
34985         (main): Call set_program_name.
34986         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34987
34988 2009-11-26  Richard Jones  <rjones@redhat.com>
34989
34990         w32sock: leave win32 error in place.
34991         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34992
34993 2009-11-26  Eric Blake  <ebb9@byu.net>
34994
34995         init.sh: suggest to use skip_ and fail_ functions in comments
34996         * tests/init.sh: Add a sentence.
34997
34998 2009-11-25  Bruno Haible  <bruno@clisp.org>
34999
35000         init.sh: add documentation in comments
35001         * tests/init.sh: Add some developer and user documentation.
35002
35003 2009-11-26  Jim Meyering  <meyering@redhat.com>
35004
35005         init.sh: accommodate even those who specify bogus srcdir manually
35006         * tests/init.sh: Normally, srcdir is guaranteed by automake and
35007         configure-time tests to be sanitized, so that there is no need to
35008         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
35009         (with no double quotes) suffices.  However, since tests may be
35010         invoked manually, and since you may explicitly set srcdir to the
35011         name of a directory containing spaces, do quote its uses here.
35012         * tests/test-pread.sh: Likewise.
35013         Suggested by Bruno Haible.
35014
35015         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35016         * tests/test-pread.sh: Write no data into the pipe, because
35017         test-pread actually reads none.  This avoids a diagnostic,
35018         "bash: echo: write error: Broken pipe", that arises in the unusual
35019         event something is ignoring SIGPIPE, and might be interpreted
35020         as some sort of failure.  Reported by Bruno Haible.
35021
35022 2009-11-25  Jim Meyering  <meyering@redhat.com>
35023
35024         test-pread: cover failure with ESPIPE and EINVAL
35025         * tests/test-pread.c (main): Test for failure, too.
35026         * tests/test-pread.sh: Invoke with stdin on a pipe.
35027         Suggested by Eric Blake.
35028
35029         pread: improvement and fix
35030         * modules/pread (Depends-on): Depend on lseek, for portability to
35031         e.g., mingw.  Suggested by Eric Blake.
35032         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35033
35034         unistd.in.h: correct declaration of pread
35035         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35036         Reported by Richard W.M. Jones.
35037
35038         test-pread.sh: distribute the test script
35039         * modules/pread-tests (Files): Include test-pread.sh.
35040
35041         test-pread.sh: clean up
35042         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35043         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35044         That is unnecessary, since it's always ".".
35045         Suggestion from Eric Blake.
35046
35047         test-pread.sh: make executable
35048         * tests/test-pread.sh: Set executable bit.
35049         Reported by Eric Blake.
35050
35051         correct typo in test-pread.sh
35052         * tests/test-pread.sh: Add #! line.
35053
35054         test pread
35055         * tests/test-pread.c: New file.
35056         * tests/test-pread.sh: Likewise.
35057         * modules/pread-tests: Likewise.
35058
35059         pread: new module
35060         * modules/pread: New file.
35061         * lib/unistd.in.h (pread): Define/declare.
35062         * lib/pread.c (pread): New file.
35063         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35064         * modules/unistd (Makefile.am): Substitute witnesses.
35065         * doc/posix-functions/pread.texi (pread): Update.
35066         * MODULES.html.sh: Add pread.
35067
35068 2009-11-25  Jim Meyering  <meyering@redhat.com>
35069
35070         tests/init.sh: new file to be used via most *.sh tests
35071         * tests/init.sh: New file.
35072
35073 2009-11-25  Eric Blake  <ebb9@byu.net>
35074
35075         utimens: work around older Linux failure with symlinks
35076         * lib/utimens.c (lutimensat_works_really): New variable.
35077         (fdutimens, lutimens): Use it to manage kernels that support
35078         nanosecond times on files, but not on symlinks.
35079         Reported by OndÅ™ej Vašík.
35080
35081         utimes: fix configure grammar
35082         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35083
35084 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35085
35086         regex: Fix fastmap for multibyte character ranges.
35087         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35088         characters when a multibyte character range is included.
35089
35090 2009-11-22  Andy Wingo  <wingo@pobox.com>
35091
35092         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35093         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35094
35095 2009-11-24  Bruno Haible  <bruno@clisp.org>
35096
35097         doc: Most *_l functions exist in MacOS X 10.5.
35098         * doc/posix-functions/duplocale.texi: Update platforms list.
35099         * doc/posix-functions/freelocale.texi: Likewise.
35100         * doc/posix-functions/newlocale.texi: Likewise.
35101         * doc/posix-functions/uselocale.texi: Likewise.
35102         * doc/posix-functions/isalnum_l.texi: Likewise.
35103         * doc/posix-functions/isalpha_l.texi: Likewise.
35104         * doc/posix-functions/isblank_l.texi: Likewise.
35105         * doc/posix-functions/iscntrl_l.texi: Likewise.
35106         * doc/posix-functions/isdigit_l.texi: Likewise.
35107         * doc/posix-functions/isgraph_l.texi: Likewise.
35108         * doc/posix-functions/islower_l.texi: Likewise.
35109         * doc/posix-functions/isprint_l.texi: Likewise.
35110         * doc/posix-functions/ispunct_l.texi: Likewise.
35111         * doc/posix-functions/isspace_l.texi: Likewise.
35112         * doc/posix-functions/isupper_l.texi: Likewise.
35113         * doc/posix-functions/iswalnum_l.texi: Likewise.
35114         * doc/posix-functions/iswalpha_l.texi: Likewise.
35115         * doc/posix-functions/iswblank_l.texi: Likewise.
35116         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35117         * doc/posix-functions/iswctype_l.texi: Likewise.
35118         * doc/posix-functions/iswdigit_l.texi: Likewise.
35119         * doc/posix-functions/iswgraph_l.texi: Likewise.
35120         * doc/posix-functions/iswlower_l.texi: Likewise.
35121         * doc/posix-functions/iswprint_l.texi: Likewise.
35122         * doc/posix-functions/iswpunct_l.texi: Likewise.
35123         * doc/posix-functions/iswspace_l.texi: Likewise.
35124         * doc/posix-functions/iswupper_l.texi: Likewise.
35125         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35126         * doc/posix-functions/isxdigit_l.texi: Likewise.
35127         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35128         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35129         * doc/posix-functions/strcoll_l.texi: Likewise.
35130         * doc/posix-functions/strfmon_l.texi: Likewise.
35131         * doc/posix-functions/strftime_l.texi: Likewise.
35132         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35133         * doc/posix-functions/strxfrm_l.texi: Likewise.
35134         * doc/posix-functions/tolower_l.texi: Likewise.
35135         * doc/posix-functions/toupper_l.texi: Likewise.
35136         * doc/posix-functions/towctrans_l.texi: Likewise.
35137         * doc/posix-functions/towlower_l.texi: Likewise.
35138         * doc/posix-functions/towupper_l.texi: Likewise.
35139         * doc/posix-functions/wcscoll_l.texi: Likewise.
35140         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35141         * doc/posix-functions/wctrans_l.texi: Likewise.
35142         * doc/posix-functions/wctype_l.texi: Likewise.
35143         * doc/glibc-functions/strptime_l.texi: Likewise.
35144         * doc/glibc-functions/strtod_l.texi: Likewise.
35145         * doc/glibc-functions/strtof_l.texi: Likewise.
35146         * doc/glibc-functions/strtol_l.texi: Likewise.
35147         * doc/glibc-functions/strtold_l.texi: Likewise.
35148         * doc/glibc-functions/strtoll_l.texi: Likewise.
35149         * doc/glibc-functions/strtoul_l.texi: Likewise.
35150         * doc/glibc-functions/strtoull_l.texi: Likewise.
35151         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35152         * doc/glibc-functions/wcstod_l.texi: Likewise.
35153         * doc/glibc-functions/wcstof_l.texi: Likewise.
35154         * doc/glibc-functions/wcstol_l.texi: Likewise.
35155         * doc/glibc-functions/wcstold_l.texi: Likewise.
35156         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35157         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35158         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35159
35160 2009-11-24  Bruno Haible  <bruno@clisp.org>
35161
35162         duplocale: Fix logic bug.
35163         * lib/duplocale.c: Don't include <langinfo.h>.
35164         (_NL_LOCALE_NAME): Remove macro.
35165         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35166         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35167
35168 2009-11-23  Jim Meyering  <meyering@redhat.com>
35169
35170         test-update-copyright: don't hard-code /usr/bin/perl
35171         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35172         perl to print the current year.  Gilles Espinasse reported that
35173         the replaced use of perl was hard-coded as /usr/bin/perl.
35174
35175 2009-11-23  Bruno Haible  <bruno@clisp.org>
35176
35177         duplocale: Add support for glibc 2.3.x.
35178         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35179
35180 2009-11-22  Bruno Haible  <bruno@clisp.org>
35181
35182         vasnprintf: Tiny optimization.
35183         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35184         MacOS X.
35185
35186 2009-11-22  Bruno Haible  <bruno@clisp.org>
35187
35188         Tests for module 'duplocale'.
35189         * modules/duplocale-tests: New file.
35190         * tests/test-duplocale.c: New file.
35191
35192         New module 'duplocale'.
35193         * m4/duplocale.m4: New file.
35194         * lib/locale.in.h (duplocale): New declaration.
35195         * lib/duplocale.c: New file.
35196         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35197         gl_LOCALE_H_DEFAULTS): New macros.
35198         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35199         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35200         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35201         REPLACE_DUPLOCALE.
35202         * modules/duplocale: New file.
35203         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35204
35205 2009-11-22  Bruno Haible  <bruno@clisp.org>
35206
35207         * modules/locale-tests (configure.ac): Test for newlocale function.
35208         * tests/test-locale.c: When the system has extended locale functions,
35209         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35210
35211         locale: Make locale_t available when possible.
35212         * lib/locale.in.h: Include <xlocale.h> when it exists.
35213         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35214         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35215         * modules/locale (Depends-on): Add extensions.
35216         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35217         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35218
35219 2009-11-22  Bruno Haible  <bruno@clisp.org>
35220
35221         Add comments.
35222         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35223         invocation.
35224         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35225         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35226         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35227
35228 2009-11-22  Bruno Haible  <bruno@clisp.org>
35229
35230         error: account for the possibility of freopen (stdout).
35231         * lib/error.c: Include <unistd.h>.
35232         (flush_stdout): New function, extracted from error and error_at_line.
35233         Determine stdout's fd dynamically.
35234         (error, error_at_line): Invoke flush_stdout.
35235         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35236         * modules/error (Depends-on): Add unistd.
35237
35238 2009-11-22  Bruno Haible  <bruno@clisp.org>
35239
35240         diffseq: Add comment.
35241         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35242
35243 2009-11-22  Jim Meyering  <meyering@redhat.com>
35244
35245         c-stack: avoid defining an unused static function
35246         * lib/c-stack.c (find_stack_direction): Do not define this function
35247         when it will not be used.
35248
35249         diffseq: avoid spurious gcc warnings
35250         * lib/diffseq.h (IF_LINT2): Define.
35251         (compareseq): Use it to initialize two members of "part".
35252         This avoids two used-uninitialized warnings.
35253
35254 2009-11-21  Jim Meyering  <meyering@redhat.com>
35255
35256         c-stack: avoid "ignoring return value of `write'" warning
35257         * lib/c-stack.c: Include "ignore-value.h".
35258         (die): Explicitly ignore each write return value.
35259         * modules/c-stack (Depends-on): Add ignore-value.
35260
35261 2009-11-21  Bruno Haible  <bruno@clisp.org>
35262
35263         diffseq: reduce scope of variable 'best'.
35264         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35265         variable, earlier used for two different purposes.
35266
35267 2009-11-21  Jim Meyering  <meyering@redhat.com>
35268
35269         diffseq: remove useless assignment to "best"
35270         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35271         assignment.  At that point "best" is already guaranteed to be zero.
35272
35273 2009-11-20  Eric Blake  <ebb9@byu.net>
35274
35275         build: mention ftp redirector in release announcements
35276         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35277         values that used to come from cfg.mk; mention FTP redirect URL.
35278         * build-aux/announce-gen: Mention the mirror list.
35279         Suggested by Karl Berry.
35280
35281         nanosleep: improve port to mingw
35282         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35284         LIB_NANOSLEEP, but only when needed.
35285         * modules/select (Link): Document LIBSOCKET.
35286         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35287         enough.
35288
35289         nanosleep: work around cygwin bug
35290         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35291         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35292         bug.
35293         (getnow): Delete, not needed.
35294         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35295         LIB_CLOCK_GETTIME.
35296         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35297         clock-time, gettime.
35298         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35299         bug.
35300         * modules/nanosleep-tests: New test.
35301         * tests/test-nanosleep.c: New file.
35302
35303         sleep: work around cygwin bug
35304         * lib/sleep.c (rpl_sleep): Work around the bug.
35305         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35306         (gl_PREREQ_SLEEP): Delete unused macro.
35307         * modules/sleep (Depends-on): Add verify.
35308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35309         * modules/unistd (Makefile.am): Substitute witness.
35310         * lib/unistd.in.h (sleep): Update prototype.
35311         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35312         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35313         * modules/sleep-tests (Depends-on): Check for alarm.
35314
35315 2009-11-20  Jim Meyering  <meyering@redhat.com>
35316
35317         maint.mk: improve sc_prohibit_magic_number_exit
35318         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35319         so it does not match uses like System.exit(1).
35320         Add comments showing how to correct all offenders.
35321
35322 2009-11-19  Eric Blake  <ebb9@byu.net>
35323
35324         xalloc-die-tests: add missing library
35325         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35326
35327         test-xvasprintf: silence compiler warnings
35328         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35329         empty string from gcc.
35330
35331 2009-11-19  Jim Meyering  <meyering@redhat.com>
35332
35333         xfreopen: new module, from coreutils
35334         * modules/xfreopen: New module.
35335         * lib/xfreopen.c: New file.
35336         * lib/xfreopen.h: New file.
35337         * MODULES.html.sh (File stream based Input/Output"): Add it.
35338
35339 2009-11-19  Eric Blake  <ebb9@byu.net>
35340
35341         manywarnings: depend on warnings
35342         * modules/manywarnings (Depends-on): Add warnings.
35343
35344         build: avoid compiler warnings
35345         * lib/select.c (rpl_select): Delete unused variable.
35346         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35347
35348 2009-11-18  Eric Blake  <ebb9@byu.net>
35349
35350         tests: avoid false negative with --with-packager
35351         * tests/test-version-etc.sh: Discard packager information.
35352         * tests/test-argp-version-etc-1.sh: Likewise.
35353         Reported by Mike Frysinger.
35354
35355         utimens: fix regression on Solaris
35356         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35357         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35358         can only change fd timestamps via futimesat.  Instead, use an
35359         additional witness macro to avoid BSD bug.
35360         Reported by Jim Meyering.
35361
35362 2009-11-17  Eric Blake  <ebb9@byu.net>
35363
35364         usleep: use it to simplify tests
35365         * modules/stat-time-tests (Depends-on): Add usleep.
35366         (configure.ac): Drop usleep check.
35367         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35368         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35369         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35370         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35371         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35372         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35373         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35374         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35375         Likewise.
35376         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35377         * tests/test-lchown.h (nap): Likewise.
35378         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35379         * tests/test-stat-time.c (nap): Likewise.
35380         * tests/test-utimens-common.h (nap): Update comments.
35381
35382         usleep: new module
35383         * modules/usleep: New file.
35384         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35385         * lib/usleep.c (usleep): Likewise.
35386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35387         * modules/unistd (Makefile.am): Substitute witnesses.
35388         * lib/unistd.in.h (usleep): Add declaration.
35389         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35390         * MODULES.html.sh (Date and time): Likewise.
35391         * modules/usleep-tests (Depends-on): New test.
35392         * tests/test-usleep.c: New file.
35393
35394         chown: work around OpenBSD bug
35395         * lib/chown.c (rpl_chown): Work around the bug.
35396         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35397         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35398         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35399         * modules/chown (Depends-on): Add stdbool.
35400         * modules/lchown (Depends-on): Likewise.
35401         * doc/posix-functions/chown.texi (chown): Document the bug.
35402         * doc/posix-functions/lchown.texi (lchown): Likewise.
35403         * tests/test-lchown.h (test_chown): Relax test.
35404
35405         mkstemp: avoid conflict with C++ keyword template
35406         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35407         * lib/mkostemp.c (mkostemp): Likewise.
35408         * lib/mkostemps.c (mkostemps): Likewise.
35409         * lib/mkstemp.c (mkstemp): Likewise.
35410         * lib/mkstemps.c (mkstemps): Likewise.
35411
35412         xalloc-die-tests: optimize
35413         * tests/test-xalloc-die.sh: Reduce number of processes.
35414
35415 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35416
35417         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35418         patch from ludo@gnu.org (Ludovic Courtès).
35419
35420 2009-11-17  Jim Meyering  <meyering@redhat.com>
35421
35422         version-etc: use proper license string
35423         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35424         * modules/version-etc-fsf: Likewise.
35425
35426 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35427
35428         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35429         printed to stdout.  Deal with EOL differences.
35430
35431 2009-11-17  Eric Blake  <ebb9@byu.net>
35432
35433         unsetenv: work around Solaris bug
35434         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35435         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35436         Reported by Jim Meyering.
35437
35438         vasnprintf: avoid compiler warnings
35439         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35440         variables.
35441         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35442
35443 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35444
35445         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35446         settings since xalloc-die is no longer the self test,
35447         xalloc-die.sh is.
35448
35449 2009-11-17  Jim Meyering  <meyering@redhat.com>
35450
35451         test-xalloc-die.sh: make the code agree with the commit log
35452         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35453         at the end, just in case you happen to have a test-xalloc-die
35454         program in some other PATH directory.
35455
35456         test-xalloc-die.sh: fix a portability bug
35457         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35458         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35459         Otherwise, argv[0] (as often seen in diagnostics) would be too
35460         system-dependent, sometimes with, and sometimes without the leading "./".
35461
35462         version-etc-fsf: relax license to LGPLv3+
35463         * modules/version-etc-fsf (License): Relax license.
35464
35465 2009-11-16  Eric Blake  <ebb9@byu.net>
35466
35467         xalloc-die-tests: avoid printing null pointer
35468         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35469         shell script.
35470         * tests/test-xalloc-die.c (program_name): Declare.
35471         * tests/test-xalloc-die.sh (tmpfiles): New file.
35472
35473         setenv, unsetenv: work around various bugs
35474         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35475         (setenv) [HAVE_SETENV]: Work around bugs.
35476         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35477         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35478         for bugs.
35479         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35480         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35481         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35482         * modules/stdlib (Makefile.am): Update substitutions.
35483         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35484         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35485         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35486         * modules/setenv-tests: New test.
35487         * modules/unsetenv-tests: Likewise.
35488         * tests/test-setenv.c: New file.
35489         * tests/test-unsetenv.c: Likewise.
35490
35491 2009-11-16  Jim Meyering  <meyering@redhat.com>
35492
35493         version-etc: relax license to LGPLv3+
35494         * modules/version-etc (License): Relax license.
35495
35496         better AC_REQUIRE expanded-before-required-warning avoidance
35497         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35498         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35499         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35500         which is no longer needed.
35501
35502 2009-11-16  Eric Blake  <ebb9@byu.net>
35503
35504         test-freading: clean up temporary file
35505         * tests/test-freading.c (main): Remove file on success, and use
35506         ASSERT more liberally.
35507         Reported by Jim Meyering.
35508
35509 2009-11-16  Jim Meyering  <meyering@redhat.com>
35510
35511         avoid new AC_REQUIRE expanded-before-required warnings
35512         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35513         merely using it.
35514         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35515         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35516
35517 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35518
35519         * tests/test-xalloc-die.c: New file.
35520         * modules/xalloc-die-tests: New file.
35521         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35522         XFAIL_TESTS so it can be appended by modules.
35523
35524 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35525
35526         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35527         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35528
35529 2009-11-14  Eric Blake  <ebb9@byu.net>
35530
35531         fnmatch: avoid compiler warning
35532         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35533         to silence compiler warning about mismatch signedness in ?:.
35534         Reported by Robert Millan.
35535
35536         intprops: add double-inclusion guard
35537         * lib/intprops.h: Allow idempotent includes.
35538         Suggested by Bruce Korb.
35539
35540         openat: detect Solaris fchownat bug
35541         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35542         penalizing glibc chownat when only lchownat is broken.
35543         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35544         trailing slash bugs.
35545         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35546         * modules/openat-tests (Files): Include more files.
35547         (Depends-on): Add mgetgroups, sleep, stat-time.
35548         (configure.ac): Add additional checks.
35549         (Makefile.am): Build new test.
35550         * tests/test-fchownat.c: New file.
35551
35552         lchown: detect Solaris and FreeBSD bug
35553         * lib/lchown.c (rpl_lchown): Work around bug.
35554         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35556         * modules/unistd (Makefile.am): Populate it.
35557         * lib/unistd.in.h (lchown): Update declaration.
35558         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35559         * modules/lchown-tests: New file.
35560         * tests/test-lchown.h (test_lchown): Likewise.
35561         * tests/test-lchown.c (main): Likewise.
35562
35563         chown: detect Solaris and FreeBSD bug
35564         * lib/chown.c (rpl_chown): Work around bug.
35565         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35566         (gl_PREREQ_CHOWN): Delete.
35567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35568         * modules/unistd (Makefile.am): Populate it.
35569         * lib/unistd.in.h (chown): Update declaration.
35570         * lib/lchown.c (chown): Update client.
35571         * modules/lchown (Depends-on): Add lstat.
35572         * doc/posix-functions/chown.texi (chown): Document the bug.
35573         * doc/posix-functions/getgroups.texi (getgroups): Document
35574         getgroups pitfall.
35575         * modules/chown-tests: New file.
35576         * tests/test-chown.h (test_chown): Likewise.
35577         * tests/test-chown.c (main): Likewise.
35578
35579 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35580
35581         gnulib-tool: correctly detect absence of m4 directories
35582         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35583
35584 2009-11-14  Jim Meyering  <meyering@redhat.com>
35585
35586         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35587         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35588
35589 2009-11-14  John W. Eaton  <jwe@gnu.org>
35590
35591         strftime.h: wrap funtion declaration in extern "C" block
35592         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35593
35594 2009-11-13  Eric Blake  <ebb9@byu.net>
35595
35596         getgroups: avoid compiler warning
35597         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35598
35599         getgroups: work around FreeBSD bug
35600         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35601         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35602         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35603         * tests/test-getgroups.c (main): Fix buffer overrun.
35604
35605         getgroups: avoid compilation failure
35606         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35607         * modules/getgroups (Depends-on): Add stdint.
35608
35609 2009-11-13  Jim Meyering  <meyering@redhat.com>
35610
35611         test-getgroups: avoid compilation failure
35612         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35613
35614 2009-11-13  Eric Blake  <ebb9@byu.net>
35615
35616         mgetgroups: new module, taken from coreutils
35617         * modules/mgetgroups: New file.
35618         * lib/mgetgroups.h: Likewise.
35619         * lib/mgetgroups.c (mgetgroups): Likewise.
35620         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35621         * MODULES.html.sh (Users and groups): Mention it.
35622
35623         getgroups: don't expose GETGROUPS_T to user
35624         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35625         an element at a time if GETGROUPS_T is wrong size.
35626         * lib/getugroups.h (getugroups): Change signature.
35627         * lib/unistd.in.h (getgroups): Likewise.
35628         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35629         signature needs fixing.
35630         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35631         AC_TYPE_GETGROUPS.
35632         * modules/group-member (Depends-on): Add getgroups.
35633         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35634         (group_member): Rely on getgroups replacement.
35635         * lib/getugroups.c (getugroups): Use gid_t.
35636         * tests/test-getgroups.c (main): Likewise.
35637         * NEWS: Mention the signature change.
35638         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35639         problem with signature.
35640         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35641         GETGROUPS_T is still useful for setgroups.
35642
35643         getgroups, getugroups: provide stubs for mingw
35644         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35645         * lib/getugroups.c (getugroups): Likewise.
35646         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35647         function.  Modernize replacement scheme.
35648         (gl_PREREQ_GETGROUPS): Delete.
35649         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35650         * modules/getgroups (configure.ac): Declare witness.
35651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35652         * modules/unistd (Depends-on): Substitute witness.
35653         * lib/unistd.in.h (getgroups): Declare replacement.
35654
35655         getgroups: avoid calling exit
35656         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35657         drop xalloc.
35658         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35659         dependencies.
35660         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35661         exiting, in the rare case of malloc failure.
35662
35663         getgroups: fix logic error
35664         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35665         has more than 20 groups.
35666         * modules/getgroups-tests: New test.
35667         * tests/test-getgroups.c: New file.
35668
35669 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35670
35671         * tests/test-base64.c: Improve.
35672
35673 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35674
35675         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35676         Blake <ebb9@byu.net>.
35677
35678 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35679
35680         * tests/test-xvasprintf.c: Add %s%s related checks.
35681
35682 2009-11-12  Eric Blake  <ebb9@byu.net>
35683
35684         version-etc: match standards.texi style
35685         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35686         and use <> only for URLs.
35687
35688 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35689
35690         fts: do not fail on a submount during traversal
35691         * lib/fts.c (fts_build): Read the stat info again after opening
35692         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35693         Original report at http://bugzilla.redhat.com/501848.
35694
35695 2009-11-12  Jim Meyering  <meyering@redhat.com>
35696
35697         bootstrap: sync from coreutils
35698         * build-aux/bootstrap (bootstrap_epilogue): New function.
35699         Use git_modules_config in one more place.  This make bootstrap's
35700         --gnulib-srcdir option more useful for testing.
35701
35702         bootstrap: generalize autoheader check
35703         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35704         AC_CONFIG_HEADERS.
35705
35706 2009-11-11  Eric Blake  <ebb9@byu.net>
35707
35708         mkfifoat: use new modules for Solaris and BSD bugs
35709         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35710         * lib/mkfifoat.c (mknodat): Split...
35711         * lib/mknodat.c (mknodat): ...into new file.
35712         * modules/mkfifoat (Files): Ship new file.
35713         (Depends-on): Add mkfifo, mknod.
35714         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35715         (Depends-on): Add symlink.
35716         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35717         redundant with test_mkfifo.h.
35718         (do_mkfifoat, do_mknodat): New helpers.
35719
35720         mknod: new module
35721         * modules/mknod: New file.
35722         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35723         * lib/mknod.c (mknod): Likewise.
35724         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35725         defaults.
35726         * modules/sys_stat (Makefile.am): Substitute them.
35727         * lib/sys_stat.in.h (mknod): Declare replacement.
35728         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35729         Document it.
35730         * doc/posix-functions/mknod.texi (mknod): Likewise.
35731         * modules/mknod-tests: New test.
35732         * tests/test-mknod.c: Likewise.
35733
35734         mkfifo: new module
35735         * modules/mkfifo: New file.
35736         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35737         * lib/mkfifo.c (mkfifo): Likewise.
35738         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35739         defaults.
35740         * modules/sys_stat (Makefile.am): Substitute them.
35741         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35742         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35743         Document it.
35744         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35745         * modules/mkfifo-tests: New test.
35746         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35747         from test-mkfifoat.c.
35748         * tests/test-mkfifo.c: New file.
35749
35750         readlink: detect FreeBSD bug
35751         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35752         slash on symlink.
35753         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35754         * tests/test-readlink.h (test_readlink): Enhance test.
35755
35756         symlink: detect FreeBSD bug
35757         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35758         slash on symlink.
35759         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35760         * tests/test-symlink.h (test_symlink): Enhance test.
35761
35762 2009-11-10  Eric Blake  <ebb9@byu.net>
35763
35764         link: detect FreeBSD bug
35765         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35766         symlink.
35767         * doc/posix-functions/link.texi (link): Document the bug.
35768         * tests/test-link.h (test_link): Enhance test.
35769         * tests/test-linkat.c (main): Update caller.
35770
35771         unlink, remove: detect FreeBSD bug
35772         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35773         slash on symlink.
35774         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35775         * doc/posix-functions/remove.texi (remove): Likewise.
35776         * tests/test-unlink.h (test_unlink): Enhance test.
35777         * tests/test-remove.c (main): Likewise.
35778
35779 2009-11-09  Eric Blake  <ebb9@byu.net>
35780
35781         rename: detect FreeBSD bug
35782         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35783         slash on symlink.
35784         * modules/renameat-tests (Depends-on): Add filenamecat.
35785         * tests/test-rename.h (test_rename): Allow one more errno.
35786         * tests/test-renameat.c (main): Likewise.
35787         * doc/posix-functions/rename.texi (rename): Document the bug.
35788
35789         open: detect FreeBSD bug
35790         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35791         symlink.
35792         * doc/posix-functions/open.texi (open): Document the bug.
35793         * doc/posix-functions/utimes.texi (utimes): Likewise.
35794         * tests/test-open.h (test_open): Add parameters, and test symlink
35795         handling.
35796         * tests/test-open.c (main): Adjust caller.
35797         * tests/test-fcntl-safer.c (main): Likewise.
35798         * modules/open-tests (Depends-on): Add stdbool, symlink.
35799         * modules/fcntl-safer-tests (Depends-on): Likewise.
35800         * tests/test-openat.c (main): Add test-open tests.
35801
35802         stat: detect FreeBSD bug
35803         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35804         symlink.
35805         * doc/posix-functions/stat.texi (stat): Document the bug.
35806         * tests/test-stat.h (test_stat_func): Add argument.
35807         * tests/test-stat.c (main): Adjust caller.
35808         * tests/test-fstatat.c (main): Likewise.
35809         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35810         Reported by Jim Meyering.
35811
35812 2009-11-09  James Youngman  <jay@gnu.org>
35813
35814         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35815         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35816
35817 2009-11-08  Jim Meyering  <meyering@redhat.com>
35818
35819         utimens: remove invalid futimesat call
35820         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35821         It used the file descriptor of the target file as the DIR_FD
35822         parameter and NULL as the file name.  That caused failure with
35823         errno == EFAULT on FreeBSD-8.0-rc2
35824
35825 2009-11-07  Eric Blake  <ebb9@byu.net>
35826
35827         fflush, freadseek: use fseeko, not fseek
35828         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35829         (clear_ungetc_buffer): Avoid potential problems on large files.
35830         * lib/freadseek.c (freadseek): Likewise.
35831         * modules/freadseek (Depends-on): Add fseeko.
35832         * modules/fseek (configure.ac): Set a witness.
35833         * tests/test-fflush.c (main): Use fseeko.
35834         * tests/test-fpurge.c (fseek): Disable link warning.
35835         * tests/test-freadable.c (fseek): Likewise.
35836         * tests/test-freading.c (fseek): Likewise.
35837         * tests/test-fseeko.c (fseek): Likewise.
35838         * tests/test-ftell.c (fseek): Likewise.
35839         * tests/test-ftello.c (fseek): Likewise.
35840         * tests/test-fwritable.c (fseek): Likewise.
35841         * tests/test-fwriting.c (fseek): Likewise.
35842
35843 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35844
35845         * modules/memchr (Depends-on): Drop getpagesize dependency.
35846
35847 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35848
35849         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35850         Reported by Ludovic Courtès.
35851         * build-aux/pmccabe2html: Improve example usage.
35852         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35853
35854 2009-11-06  Jim Meyering  <meyering@redhat.com>
35855
35856         do-release-commit-and-tag: New module.
35857         Automate the release-commit and tag process.
35858         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35859         * modules/do-release-commit-and-tag: New file.
35860         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35861
35862 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35863
35864         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35865         because test-select.c uses inet_pton.
35866
35867 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35868
35869         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35870         GETADDRINFO_LIB.  Bump serial number.
35871         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35872         Suggested by Eric Blake <ebb9@byu.net>.
35873
35874 2009-11-05  Eric Blake  <ebb9@byu.net>
35875
35876         strtod: detect darwin bug
35877         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35878         Reported by Leo Davis.
35879
35880         freopen-safer: new module
35881         * modules/freopen-safer: New module.
35882         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35883         * lib/freopen-safer.c (freopen_safer): New file.
35884         * lib/stdio-safer.h (freopen_safer): New declaration.
35885         * lib/stdio--.h (freopen): New override.
35886         * MODULES.html.sh (File stream based Input/Output): Mention it.
35887         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35888         freopen-safer module.
35889         * doc/posix-functions/stderr.texi (stderr): Likewise.
35890         * doc/posix-functions/stdin.texi (stdin): Likewise.
35891         * doc/posix-functions/stdout.texi (stdout): Likewise.
35892         * modules/freopen-safer-tests: New test.
35893         * tests/test-reopen-safer.c: New file.
35894
35895 2009-11-05  Jim Meyering  <meyering@redhat.com>
35896
35897         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35898         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35899
35900 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35901
35902         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35903
35904 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35905
35906         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35907
35908 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35909
35910         Fix link error.
35911         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35912         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35913
35914 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35915
35916         * tests/test-func.c: Also test value of __func__.
35917
35918 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35919
35920         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35921         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35922
35923 2009-11-05  Bruno Haible  <bruno@clisp.org>
35924
35925         Fix link error.
35926         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35927         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35928         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35929
35930 2009-11-05  Bruno Haible  <bruno@clisp.org>
35931
35932         Tests for module 'inet_pton'.
35933         * modules/inet_pton-tests: New file.
35934         * tests/test-inet_pton.c: New file.
35935
35936 2009-11-05  Bruno Haible  <bruno@clisp.org>
35937
35938         Tests for module 'inet_ntop'.
35939         * modules/inet_ntop-tests: New file.
35940         * tests/test-inet_ntop.c: New file.
35941
35942 2009-11-04  Eric Blake  <ebb9@byu.net>
35943
35944         stdlib-safer: wrap all mkstemp variants
35945         * modules/mkostemp (configure.ac): Set witness.
35946         * modules/mkostemps (configure.ac): Likewise.
35947         * modules/mkstemps (configure.ac): Likewise.
35948         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35949         (mkstemps_safer): Wrap more functions.
35950         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35951         wrapping.
35952         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35953         (mkstemps_safer): Implement the wrappers.
35954
35955         mkstemps, mkostemps: new modules
35956         * modules/mkostemps: New module.
35957         * modules/mkstemps: Likewise.
35958         * lib/mkostemps.c (mkostemps): New file.
35959         * lib/mkstemps.c (mkstemps): Likewise.
35960         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35961         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35963         * modules/stdlib (Makefile.am): Substitute them.
35964         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35965         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35966         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35967         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35968         * MODULES.html.sh (File system functions): Mention them.
35969
35970         tempname: resync from glibc
35971         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35972         same values for __GT_FILE as glibc.  Abort even when assertions
35973         are disabled.
35974         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35975         match its value otherwise.  Allow idempotent inclusion.
35976         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35977         * lib/mkostemp.c (mkostemp): Likewise.
35978         * lib/mkstemp.c (mkstemp): Likewise.
35979         * lib/tmpfile.c (tmpfile): Likewise.
35980         * NEWS: Document this.
35981
35982         utimens: fix use of futimens on older Linux
35983         * lib/utimens.c (fdutimens): Use updated, rather than original,
35984         timespec to avoid bug in older Linux kernel.
35985         Reported by Simon Josefsson.
35986
35987 2009-11-04  Bruno Haible  <bruno@clisp.org>
35988
35989         Make num_processors more flexible and consistent.
35990         * lib/nproc.h (enum nproc_query): New type.
35991         (num_processors): Add a 'query' argument.
35992         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35993         (num_processors): Add a 'query' argument. Test the value of the
35994         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35995         mingw, count the number of CPUs available for the current process.
35996         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35997         Check for sched_getaffinity and sched_getaffinity_np.
35998         * modules/nproc (Depends-on): Add c-ctype, extensions.
35999         * NEWS: Mention the change.
36000
36001 2009-11-03  Bruno Haible  <bruno@clisp.org>
36002
36003         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
36004
36005 2009-11-03  Jim Meyering  <meyering@redhat.com>
36006
36007         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
36008         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
36009         if it is defined.
36010
36011 2009-11-02  Eric Blake  <ebb9@byu.net>
36012
36013         mktime, timegm: share common declaration
36014         * lib/mktime-internal.h: New file.
36015         * lib/mktime.c: Use it rather than open-coding a declaration.
36016         * lib/timegm.c: Likewise.
36017         * modules/mktime (Files): Ship it.
36018         * modules/timegm (Files): Likewise.
36019         Suggested by Bruno Haible.
36020
36021         test-update-copyright: update test to match script changes
36022         * tests/test-update-copyright.sh: Avoid hard-coding perl
36023         location.  Don't update *.bak created by earlier runs.
36024
36025 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36026             Simon Josefsson  <simon@josefsson.org>
36027             Bruno Haible  <bruno@clisp.org>
36028
36029         Fix link error on Solaris 8.
36030         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36031         also in libnsl. Define also INET_PTON_LIB.
36032         * modules/inet_pton (Link): New section.
36033
36034 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36035             Bruno Haible  <bruno@clisp.org>
36036
36037         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36038         * modules/inet_ntop (Link): New section.
36039         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36040
36041 2009-11-02  Eric Blake  <ebb9@byu.net>
36042
36043         maint: avoid compiler warnings in m4 macros
36044         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36045         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36046
36047 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36048
36049         * m4/pmccabe2html.m4: Remove file.
36050         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36051         function.  Change maintainer.
36052         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36053         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36054         Courtès).
36055
36056 2009-10-31  Eric Blake  <ebb9@byu.net>
36057
36058         fseeko: fix m4 regression
36059         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36060         regression from 2009-10-27.
36061         Reported by Ralf Wildenhues.
36062
36063 2009-10-31  Jim Meyering  <meyering@redhat.com>
36064
36065         inttostr: aesthetics and improved (compile-time) safety
36066         Define inttype_is_signed rather than inttype_is_unsigned,
36067         since the sole use is via "#if inttype_is_signed".
36068         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36069         inttype_is_unsigned.
36070         * lib/offtostr.c (inttype_is_signed): Likewise.
36071         * lib/uinttostr.c (inttype_is_signed): Likewise.
36072         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36073         * lib/inttostr.c (inttostr): Use verify to cross-check the
36074         inttype_is_signed value and the signedness of the actual type.
36075         * modules/inttostr (Depends-on): Add verify.
36076
36077 2009-10-30  Eric Blake  <ebb9@byu.net>
36078
36079         build: avoid compiler warnings
36080         * lib/fchmodat.c (lchmod): Mark unused variables.
36081         * lib/getopt.c (_getopt_initialize): Likewise.
36082         * lib/mktime.c (__mktime_internal): Provide prototype.
36083         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36084         older gcc that do not understand #pragma GCC diagnostic.
36085         * lib/uinttostr.c (inttype_is_unsigned): Define.
36086         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36087
36088 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36089
36090         stat: fix compilation on AIX
36091         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36092         only see struct stat64.
36093
36094 2009-10-30  Eric Blake  <ebb9@byu.net>
36095
36096         exclude: make more robust
36097         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36098         rather than masking a coding bug.
36099         Suggested by Bruno Haible.
36100
36101 2009-10-30  Jim Meyering  <meyering@redhat.com>
36102
36103         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36104         Rather than putting #!/usr/bin/perl on the first line,
36105         start with a variant of what's recommended by "man perlrun" that
36106         invokes the first "perl" program from your shell's search path.
36107         * build-aux/gitlog-to-changelog: Replace #!... as above.
36108         Add a "Local Variables" perl mode setting.
36109         Prompted by a patch from Ludovic Courtès.
36110         Improved by Eric Blake.
36111         * build-aux/useless-if-before-free: Likewise.
36112         * build-aux/announce-gen: Likewise.
36113         * build-aux/update-copyright: Likewise.
36114
36115 2009-10-29  Eric Blake  <ebb9@byu.net>
36116
36117         filenamecat-lgpl: adjust clients
36118         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36119         filenamecat.
36120         * modules/renameat (Depends-on): Likewise.
36121
36122         filenamecat: split into filenamecat-lgpl
36123         * modules/filenamecat-lgpl: New module.
36124         * modules/filenamecat (Files): Move library-safe files into
36125         filenamecat-lgpl.
36126         (Depends-on): Add filenamecat-lgpl.
36127         (configure.ac): Declare witness.
36128         * lib/filenamecat.h (file_name_concat): Only declare when using
36129         GPL module.
36130         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36131         Move...
36132         * lib/filenamecat-lgpl.c: ...into new file.
36133         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36134         (gl_FILE_NAME_CONCAT): Use it.
36135         * MODULES.html.sh (File system functions): Mention new module.
36136
36137         argp: avoid memory leak
36138         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36139         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36140         base_name, since the latter malloc()s and can call exit().
36141         Leak introduced 2006-07-03.
36142
36143         dirname-lgpl: adjust clients that don't need full dirname
36144         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36145         * modules/filenamecat (Depends-on): Likewise.
36146         * modules/linkat (Depends-on): Likewise.
36147         * modules/mkancesdirs (Depends-on): Likewise.
36148         * modules/mkdir (Depends-on): Likewise.
36149         * modules/openat (Depends-on): Likewise.
36150         * modules/savewd (Depends-on): Likewise.
36151         * modules/rename (Depends-on): Likewise.
36152         (License): Relax license.
36153         * modules/mkdir-tests (Depends-on): Drop progname.
36154         (Makefile.am): Delete unneeded LDADD.
36155         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36156
36157         dirname: split into dirname-lgpl
36158         * modules/dirname-lgpl: New module.
36159         * modules/dirname (Files): Move library-safe files into
36160         dirname-lgpl.
36161         (Depends-on): Add dirname-lgpl.
36162         (configure.ac): Declare witness.
36163         * modules/double-slash-root (License): Relax license.
36164         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36165         module.
36166         * lib/dirname.c (dir_len, mdir_name): Move...
36167         * lib/dirname-lgpl.c: ...into new file.
36168         * lib/basename.c (last_component, base_len): Move...
36169         * lib/basename-lgpl.c: ...into new file.
36170         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36171         (gl_DIRNAME): Use it.
36172         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36173         Mention new module.
36174         * modules/dirname-tests (Depends-on): Add progname.
36175         * tests/test-dirname.c (program_name): Delete.
36176
36177         mkdir: make safe for libraries
36178         * modules/mkdir (Depends-on): Drop xalloc.
36179         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36180         exit.
36181
36182         tests: avoid some compiler warnings
36183         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36184         literals.
36185         * tests/test-memchr.c (main): Avoid type mismatch.
36186         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36187         * tests/test-base64.c (main): Likewise.
36188         * tests/test-getdelim.c (main): Likewise.
36189         * tests/test-gethostname.c (main): Likewise.
36190         * tests/test-getline.c (main): Likewise.
36191         * tests/test-netinet_in.c (main): Likewise.
36192         * tests/test-select.c (open_server_socket, main): Likewise.
36193         * tests/test-select-stdin.c (main): Likewise.
36194         * tests/test-sockets.c (main): Likewise.
36195         * tests/test-strsignal.c (main): Likewise.
36196         * tests/test-sys_select.c (main): Likewise.
36197         * tests/test-sys_socket.c (main): Likewise.
36198         * tests/test-u64.c (main): Likewise.
36199         * tests/test-xfprintf-posix.c (main): Likewise.
36200         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36201
36202         sockets: avoid compiler warning
36203         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36204
36205         maint: detect usage(1) and other suspicious exits
36206         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36207
36208 2009-10-29  Jim Meyering  <meyering@redhat.com>
36209
36210         timespec: long-to-int truncation could make timespec_cmp malfunction
36211         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36212         a multiple of 2^32 nanoseconds as no difference.
36213
36214 2009-10-28  Jim Meyering  <meyering@redhat.com>
36215
36216         fprintftime: wrap macro code argument in "do {...} while(0)"
36217         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36218         cpy macro must be a statement that can be followed by a semicolon.
36219         Now that the else clause contains a comment and is hence longer
36220         than one line, I require curly braces.  That in turn requires
36221         that we wrap this code block in the standard do...while(0).
36222
36223         fprintftime: remove stray semicolon from previous change
36224         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36225
36226         fprintftime: avoid a warning about ignored fwrite return value
36227         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36228         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36229         that is unsafe.
36230         * modules/fprintftime (Depends-on): Add ignore-value.
36231
36232         exclude: avoid an unwarranted warning
36233         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36234
36235 2009-10-27  Eric Blake  <ebb9@byu.net>
36236
36237         fseek: avoid compilation failure when fflush is replaced
36238         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36239         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36240         module is in use.
36241         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36242         module is not in use; since REPLACE_FSEEK worked otherwise.
36243         (GNULIB_FTELLO): Likewise for ftell.
36244         Reported by Ian Beckwith and others.
36245
36246 2009-10-27  Bruno Haible  <bruno@clisp.org>
36247
36248         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36249         Reported by Jim Meyering.
36250
36251 2009-10-27  Jim Meyering  <jim@meyering.net>
36252             Bruno Haible  <bruno@clisp.org>
36253
36254         Avoid warning despite dropping the return value of fwrite.
36255         * lib/unicodeio.c: Include ignore-value.h.
36256         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36257         * modules/unicodeio (Depends-on): Add ignore-value.
36258
36259 2009-10-26  Eric Blake  <ebb9@byu.net>
36260
36261         areadlinkat: fix fallback path
36262         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36263         pointer and zero.
36264
36265 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36266
36267         Use a better IO block size for modern systems
36268         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36269         * lib/md2.c: Likewise.
36270         * lib/md4.c: Likewise.
36271         * lib/md5.c: Likewise.
36272         * lib/sha1.c: Likewise.
36273         * lib/sha256.c: Likewise.
36274         * lib/sha512.c: Likewise.
36275
36276 2009-10-22  Eric Blake  <ebb9@byu.net>
36277
36278         tests: avoid several compiler warnings
36279         * tests/test-getcwd.c (main): Avoid buffer underflow.
36280         * tests/test-getdate.c (main): String literals are not safe with
36281         putenv, so use setenv.  Declare unused argument.
36282         * modules/getdate-tests (Depends-on): Add setenv.
36283         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36284         problems with string literals in char *.
36285         * tests/test-hash.c (main): Avoid shadowing declaration.
36286         (insert_new): Treat string literals as char const *.
36287         * tests/test-getopt.h (test_getopt): Likewise.
36288         (getopt_loop): Alter types to minimize casting elsewhere.
36289         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36290         (test_getopt_long_posix): Likewise.
36291         (do_getopt_long): Add wrapper to minimize casting.
36292         * tests/test-atexit.c (clear_temp_file): Use void.
36293         * tests/test-areadlink-with-size.c (main): Declare unused
36294         arguments.
36295         * tests/test-areadlink.c (main): Likewise.
36296         * tests/test-areadlinkat-with-size.c (main): Likewise.
36297         * tests/test-areadlinkat.c (main): Likewise.
36298         * tests/test-canonicalize-lgpl.c (main): Likewise.
36299         * tests/test-canonicalize.c (main): Likewise.
36300         * tests/test-dirent-safer.c (main): Likewise.
36301         * tests/test-dirname.c (main): Likewise.
36302         * tests/test-dup2.c (main): Likewise.
36303         * tests/test-fchdir.c (main): Likewise.
36304         * tests/test-fcntl-h.c (main): Likewise.
36305         * tests/test-fcntl-safer.c (main): Likewise.
36306         * tests/test-fdopendir.c (main): Likewise.
36307         * tests/test-fdutimensat.c (main): Likewise.
36308         * tests/test-fflush.c (main): Likewise.
36309         * tests/test-filenamecat.c (main): Likewise.
36310         * tests/test-filevercmp.c (main): Likewise.
36311         * tests/test-fopen-safer.c (main): Likewise.
36312         * tests/test-fopen.c (main): Likewise.
36313         * tests/test-fpending.c (main): Likewise.
36314         * tests/test-fpurge.c (main): Likewise.
36315         * tests/test-freading.c (main): Likewise.
36316         * tests/test-fstatat.c (main): Likewise.
36317         * tests/test-fsync.c (main): Likewise.
36318         * tests/test-futimens.c (main): Likewise.
36319         * tests/test-getndelim2.c (main): Likewise.
36320         * tests/test-gettimeofday.c (main): Likewise.
36321         * tests/test-getopt.c (main): Likewise.
36322         * tests/test-i-ring.c (main): Likewise.
36323         * tests/test-inttypes.c (main): Likewise.
36324         * tests/test-link.c (main): Likewise.
36325         * tests/test-lstat.c (main): Likewise.
36326         * tests/test-math.c (main): Likewise.
36327         * tests/test-md5.c (main): Likewise.
36328         * tests/test-memchr2.c (main): Likewise.
36329         * tests/test-memrchr.c (main): Likewise.
36330         * tests/test-mkdir.c (main): Likewise.
36331         * tests/test-mkdirat.c (main): Likewise.
36332         * tests/test-mkfifoat.c (main): Likewise.
36333         * tests/test-open.c (main): Likewise.
36334         * tests/test-openat-safer.c (main): Likewise.
36335         * tests/test-openat.c (main): Likewise.
36336         * tests/test-quotearg.c (main): Likewise.
36337         * tests/test-rawmemchr.c (main): Likewise.
36338         * tests/test-readlink.c (main): Likewise.
36339         * tests/test-remove.c (main): Likewise.
36340         * tests/test-rename.c (main): Likewise.
36341         * tests/test-renameat.c (main): Likewise.
36342         * tests/test-rmdir.c (main): Likewise.
36343         * tests/test-sha1.c (main): Likewise.
36344         * tests/test-signal.c (main): Likewise.
36345         * tests/test-sigaction.c (main): Likewise.
36346         * tests/test-stat.c (main): Likewise.
36347         * tests/test-stat-time.c (main): Likewise.
36348         * tests/test-stddef.c (main): Likewise.
36349         * tests/test-stdint.c (main): Likewise.
36350         * tests/test-stdio.c (main): Likewise.
36351         * tests/test-stdlib.c (main): Likewise.
36352         * tests/test-strchrnul.c (main): Likewise.
36353         * tests/test-strerror.c (main): Likewise.
36354         * tests/test-string.c (main): Likewise.
36355         * tests/test-strtod.c (main): Likewise.
36356         * tests/test-strverscmp.c (main): Likewise.
36357         * tests/test-symlink.c (main): Likewise.
36358         * tests/test-symlinkat.c (main): Likewise.
36359         * tests/test-sys_stat.c (main): Likewise.
36360         * tests/test-sys_time.c (main): Likewise.
36361         * tests/test-time.c (main): Likewise.
36362         * tests/test-unistd.c (main): Likewise.
36363         * tests/test-unlink.c (main): Likewise.
36364         * tests/test-unlinkat.c (main): Likewise.
36365         * tests/test-utimens.c (main): Likewise.
36366         * tests/test-utimensat.c (main): Likewise.
36367         * tests/test-version-etc.c (main): Likewise.
36368         * tests/test-wchar.c (main): Likewise.
36369         * tests/test-wctype.c (main): Likewise.
36370         * tests/test-xprintf-posix.c (main): Likewise.
36371         * tests/test-posixtm.c (main): Likewise.
36372         (STREQ): Delete unused macro.
36373         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36374         shadowed variables.
36375         * tests/test-memchr.c (main): Likewise.
36376
36377 2009-10-21  Eric Blake  <ebb9@byu.net>
36378
36379         areadlinkat: avoid failure on older glibc
36380         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36381         rather than mis-comparing 0 against FUNC_RESULT of char*.
36382
36383 2009-10-21  Bruno Haible  <bruno@clisp.org>
36384
36385         * modules/stpncpy (License): Relicense under LGPLv2+.
36386         Reported by David Lutterkort <lutter@redhat.com>.
36387
36388 2009-10-20  Eric Blake  <ebb9@byu.net>
36389
36390         utimensat: work around Solaris 9 bug
36391         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36392         has trailing slash bugs.
36393         * tests/test-lutimens.h (test_lutimens): Enhance test.
36394         * tests/test-utimens.h (test_utimens): Likewise.
36395         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36396         * doc/posix-functions/utimes.texi (utimes): Likewise.
36397         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36398         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36399         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36400         * doc/posix-functions/futimens.texi (futimens): Likewise.
36401
36402         fdutimensat: new module
36403         * modules/fdutimensat: New file.
36404         * lib/fdutimensat.c (fdutimensat): Likewise.
36405         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36406         * MODULES.html.sh (File system functions): Mention module.
36407         * modules/fdutimensat-tests: New test.
36408         * tests/test-fdutimensat.c: Likewise.
36409
36410         doc: regenerate INSTALL
36411         * doc/INSTALL: Reflect recent autoconf update.
36412         * doc/INSTALL.ISO: Likewise.
36413         * doc/INSTALL.UTF-8: Likewise.
36414
36415 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36416
36417         acl: warn if ACL support is not detected
36418         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36419
36420 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36421
36422         * lib/nproc.h: Add extern "C" block for C++.
36423
36424 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36425             Bruno Haible  <bruno@clisp.org>
36426
36427         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36428         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36429         * doc/posix-functions/isalpha.texi: Likewise.
36430         * doc/posix-functions/isblank.texi: Likewise.
36431         * doc/posix-functions/iscntrl.texi: Likewise.
36432         * doc/posix-functions/isdigit.texi: Likewise.
36433         * doc/posix-functions/isgraph.texi: Likewise.
36434         * doc/posix-functions/islower.texi: Likewise.
36435         * doc/posix-functions/isprint.texi: Likewise.
36436         * doc/posix-functions/ispunct.texi: Likewise.
36437         * doc/posix-functions/isspace.texi: Likewise.
36438         * doc/posix-functions/isupper.texi: Likewise.
36439         * doc/posix-functions/isxdigit.texi: Likewise.
36440
36441 2009-10-18  Bruno Haible  <bruno@clisp.org>
36442
36443         Tests for module 'isblank'.
36444         * modules/isblank-tests: New file.
36445         * tests/test-isblank.c: New file.
36446
36447         New module 'isblank'.
36448         * lib/isblank.c: New file.
36449         * m4/isblank.m4: New file.
36450         * modules/isblank: New file.
36451         * doc/posix-functions/isblank.texi: Mention the new module.
36452
36453 2009-10-18  Bruno Haible  <bruno@clisp.org>
36454
36455         New module 'ctype'.
36456         * lib/ctype.in.h: New file.
36457         * m4/ctype.m4: New file.
36458         * modules/ctype: New file.
36459         * doc/posix-headers/ctype.texi: Mention the new module.
36460
36461 2009-10-18  Jim Meyering  <meyering@redhat.com>
36462
36463         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36464         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36465         right after its initialization, rather than farther down.
36466         Keeping these in close proximity makes it easier to ensure
36467         that each such variable is initialized.  E.g.,
36468
36469             LIB_CLOCK_GETTIME=
36470             AC_SUBST([LIB_CLOCK_GETTIME])
36471
36472         This change also increments these serial numbers.
36473         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36474         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36475         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36476
36477 2009-10-18  Bruno Haible  <bruno@clisp.org>
36478
36479         Don't let environment variables perturb build.
36480         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36481         (gl_PREREQ_GETHRXTIME): ... not here.
36482
36483 2009-10-18  Bruno Haible  <bruno@clisp.org>
36484
36485         Avoid symlink attack in localcharset module.
36486         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36487         (O_NOFOLLOW): Define fallback.
36488         (get_charset_aliases): Don't open the file if it is a symbolic link.
36489         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36490         gl_FCNTL_H.
36491         (gl_FCNTL_H): Require it.
36492         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36493         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36494         Reported by Fergal Glynn <fglynn@veracode.com>.
36495
36496 2009-10-18  Bruno Haible  <bruno@clisp.org>
36497
36498         Implement nproc for mingw.
36499         * lib/nproc.c: Include <windows.h>
36500         (num_processors): On native Windows platforms, try GetSystemInfo.
36501
36502 2009-10-18  Bruno Haible  <bruno@clisp.org>
36503
36504         Implement nproc for IRIX.
36505         * lib/nproc.c: Include <sys/sysmp.h>.
36506         (num_processors): On IRIX systems, try sysmp.
36507         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36508
36509 2009-10-18  Bruno Haible  <bruno@clisp.org>
36510
36511         Implement nproc for HP-UX.
36512         * lib/nproc.c: Include <sys/pstat.h>
36513         (num_processors): On HP-UX systems, try pstat_getdynamic.
36514         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36515         pstat_getdynamic.
36516
36517 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36518             Bruno Haible  <bruno@clisp.org>
36519
36520         Implement nproc for NetBSD, OpenBSD.
36521         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36522         (ARRAY_SIZE): New macro.
36523         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36524         * m4/nproc.m4: New file.
36525         * modules/nproc (Files): Add m4/nproc.m4.
36526         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36527         (Makefile.am): Instead, augment lib_SOURCES.
36528
36529 2009-10-18  Bruno Haible  <bruno@clisp.org>
36530
36531         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36532         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36533         sys/param.h.
36534
36535 2009-10-16  Eric Blake  <ebb9@byu.net>
36536
36537         utimensat: new module
36538         * modules/utimensat: New file.
36539         * lib/utimensat.c (utimensat): Likewise.
36540         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36541         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36542         so we can work around Linux bugs.
36543         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36544         * modules/sys_stat (Makefile.am): Substitute them.
36545         * lib/sys_stat.in.h (utimensat): Declare it.
36546         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36547         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36548         * modules/utimensat-tests: New test.
36549         * tests/test-utimensat.c: Likewise.
36550
36551         utimens: let lutimens work on non-symlinks
36552         * lib/utimens.c (lutimens): Fall back to utimens rather than
36553         failing with ENOSYS, when file is not a symlink.
36554         (utimens): Reduce redirection.
36555         * tests/test-lutimens.h (test_lutimens): Update test to cover
36556         non-symlinks.
36557         * tests/test-utimens.h (test_utimens): Update test to cover
36558         symlinks.
36559         * tests/test-utimens.c (main): Update caller.
36560
36561         utimens: cache whether utimensat syscall works
36562         * lib/utimens.c (utimensat_works_really): New cache variable.
36563         (fdutimens, lutimens): Use it to avoid failing syscall.
36564
36565         test-stat-time, test-utimens: improve portability
36566         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36567         ext4 on alpha, and for cygwin.
36568         * tests/test-utimens-common.h: New file.
36569         (nap): Factor delays into single function.
36570         * tests/test-lutimens.h (test_lutimens): Use new header.
36571         * tests/test-futimens.h (test_futimens): Likewise.
36572         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36573         timestamps to occur from same machine, as was done previously for
36574         test_utimens.
36575         * modules/utimens-tests (Files): Ship new file.
36576         * modules/futimens-tests (Files): Likewise.
36577         Reported in part by Jim Meyering.
36578
36579         sys_stat: sort replacement declarations
36580         * lib/sys_stat.in.h: Sort declarations.
36581         * lib/futimens.c (futimens): Fix typo.
36582
36583 2009-10-15  Jim Meyering  <meyering@redhat.com>
36584
36585         don't let environment settings perturb build
36586         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36587         could cause a configure-time and/or build-time malfunction.
36588         Typically, a configure-time function-in-library test is performed
36589         via code like this:
36590
36591           LIB_VAR=
36592           AC_SUBST([LIB_VAR])
36593           prefix_saved_LIBS=$LIBS
36594             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36595                        [test "$ac_cv_search_FUNC" = "none required" ||
36596                         LIB_VAR=$ac_cv_search_FUNC])
36597           LIBS=$prefix_saved_LIBS
36598
36599         However, in each of the files affected by this change, the LIB_VAR=
36600         initialization was omitted.  Thus, when set in the environment, its
36601         value would propagate into generated Makefiles when FUNC is not found
36602         in LIB_NAME.
36603         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36604         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36606
36607 2009-10-14  Eric Blake  <ebb9@byu.net>
36608
36609         fchdir: avoid infinite recursion in mingw
36610         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36611         recursing.
36612
36613         test-stat-time: port to mingw
36614         * tests/test-stat-time.c (force_unlink): Return a value.
36615         (test_ctime) [W32]: Fix compilation error.
36616         (nap): Don't call usleep with too large an argument.  Use
36617         force_unlink.
36618         * doc/pastposix-functions/usleep.texi (usleep): Document the
36619         portability issue.
36620
36621 2009-10-13  Jim Meyering  <meyering@redhat.com>
36622
36623         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36624         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36625         * modules/pipe-filter-ii: Likewise.
36626         * modules/sys_socket-tests: Likewise.
36627         * modules/tsearch-tests: Likewise.
36628         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36629         (check): Depend on it.
36630
36631 2009-10-12  Eric Blake  <ebb9@byu.net>
36632
36633         utimens-tests: port to NFS file systems
36634         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36635         comparisons to avoid spurious failures from timestamp drift
36636         between NFS machines.
36637
36638 2009-10-12  Eric Blake  <ebb9@byu.net>
36639
36640         stat-time-tests: minor cleanups
36641         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36642         * tests/test-stat-time.c (nap): Separate assignment from call.
36643         Suggested by Paolo Bonzini and Bruno Haible.
36644
36645         sys_stat: guarantee struct timespec
36646         * lib/sys_stat.in.h (includes): Always include <time.h>
36647         * modules/sys_stat (Depends-on): Add time.
36648         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36649         mode_t permission values.
36650         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36651         get at subsecond timestamps.
36652
36653 2009-10-10  Eric Blake  <ebb9@byu.net>
36654
36655         futimens: new module
36656         * modules/futimens: New file.
36657         * lib/futimens.c (futimens): Likewise.
36658         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36659         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36660         we can work around Linux bugs.
36661         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36662         * modules/sys_stat (Makefile.am): Substitute them.
36663         * lib/sys_stat.in.h (futimens): Declare it.
36664         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36665         * doc/posix-functions/futimens.texi (futimens): Likewise.
36666         * modules/futimens-tests: New test.
36667         * tests/test-futimens.c: Likewise.
36668
36669         utimens: introduce fdutimens
36670         * lib/utimens.h (fdutimens): New prototype.
36671         * lib/utimens.c (gl_futimens): Move guts...
36672         (fdutimens): ...to new interface.
36673         * tests/test-utimens.c (do_fdutimens): Use it.
36674
36675         utimens: add UTIME_NOW and UTIME_OMIT support
36676         * lib/utimens.c (validate_timespec, update_timespec): New helper
36677         functions.
36678         (gl_futimens, lutimens): Use them.
36679         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36680         stdbool, sys_stat.
36681         (Link): Mention resulting library dependency.
36682         * modules/utimecmp (Link): Likewise.
36683         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36684         (Makefile.am): Pick up library dependency.
36685         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36686         definition.
36687         * tests/test-sys_stat.c: Test the definitions.
36688         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36689         * NEWS: Document library dependency.
36690
36691         utimecmp: support symlink timestamps
36692         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36693         hashing when possible.  Use pathconf when available.
36694         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36695         * modules/utimecmp (Depends-on): Add lstat.
36696
36697         utimens: add lutimens interface
36698         * lib/utimens.c (lutimens): New function.
36699         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36700         * lib/utimens.h (lutimens): Declare new interface.
36701         * tests/test-utimens.c (main): Enhance test.
36702         * tests/test-lutimens.h (test_lutimens): New file.
36703         * modules/utimens-tests (Files): Distribute it.
36704         (Depends-on): Add symlink.
36705         (configure.ac): Check for usleep.
36706
36707         utimens: validate futimens usage
36708         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36709         fewer syscalls on failure later on.  Avoid compiler warning on
36710         mingw.
36711         * modules/utimens (Depends-on): Add dup2.
36712
36713         utimens: add test
36714         * modules/utimens-tests: New test.
36715         * tests/test-utimens.h: New file.
36716         * tests/test-futimens.h: Likewise.
36717         * tests/test-utimens.c: Likewise.
36718
36719         doc: mention timestamp portability issues
36720         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36721         instead.
36722         * doc/posix-functions/utime.texi (utime): Likewise.
36723         * doc/posix-functions/utimes.texi (utimes): Likewise.
36724         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36725         instead.
36726         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36727         module.
36728         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36729         Mention weakness with symlink timestamps.
36730         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36731         to utimensat/futimens instead.
36732         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36733
36734         test-dup2: enhance test
36735         * tests/test-dup2.c (main): Also check AT_FDCWD.
36736
36737         test-stat-time: avoid more spurious failures
36738         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36739         xfs; and avoid race if the two timestamps cross quantization edge.
36740
36741         relocatable: prefer 'file system' over 'filesystem'
36742         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36743         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36744         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36745         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36746         * lib/relocatable.c (compute_curr_prefix): Likewise.
36747
36748 2009-10-10  Jim Meyering  <meyering@redhat.com>
36749
36750         stat-time-tests: check for the usleep function
36751         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36752
36753 2009-10-10  Bruno Haible  <bruno@clisp.org>
36754
36755         * modules/xnanosleep: Put the Link section after the Include section.
36756
36757 2009-10-09  Eric Blake  <ebb9@byu.net>
36758
36759         dup2: work around FreeBSD 6.1 bug
36760         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36761         * doc/posix-functions/dup2.texi (dup2): Document it.
36762         Reported by Nelson H. F. Beebe and Jim Meyering.
36763
36764         test-stat-time: port to buggy NFS clients
36765         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36766         (test_ctime): Also skip test if mtime and ctime are skewed.
36767
36768         maint: prefer 'file system' over 'filesystem'
36769         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36770         * doc/posix-functions/lstat.texi (lstat): Likewise.
36771         * lib/file-has-acl.c (file_has_acl): Likewise.
36772         * lib/fwriteerror.c [TEST]: Likewise.
36773         * tests/test-areadlink.h (test_areadlink): Likewise.
36774         * tests/test-areadlinkat-with-size.c (main): Likewise.
36775         * tests/test-areadlinkat.c (main): Likewise.
36776         * tests/test-canonicalize-lgpl.c (main): Likewise.
36777         * tests/test-canonicalize.c (main): Likewise.
36778         * tests/test-fstatat.c (main): Likewise.
36779         * tests/test-linkat.c (main): Likewise.
36780         * tests/test-lstat.h (test_lstat_func): Likewise.
36781         * tests/test-mkdir.h (test_mkdir): Likewise.
36782         * tests/test-readlink.h (test_readlink): Likewise.
36783         * tests/test-remove.c (main): Likewise.
36784         * tests/test-rename.h (test_rename): Likewise.
36785         * tests/test-renameat.c (main): Likewise.
36786         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36787         * tests/test-symlink.h (test_symlink): Likewise.
36788         * tests/test-symlinkat.c (main): Likewise.
36789         * tests/test-unlink.h (test_unlink_func): Likewise.
36790         * tests/test-unlinkat.c (main): Likewise.
36791
36792         maint: make realtime library usage explicit
36793         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36794         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36795         * modules/settime (Link): Likewise.
36796         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36797
36798         test-stat-time: speed up execution
36799         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36800         warning on mingw.
36801         (nap): New helper function.
36802         (prepare_test): Use it to reduce sleep time.
36803         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36804         execution.
36805         * modules/stat-time-tests (configure.ac): Check for usleep.
36806
36807 2009-10-09  Jim Meyering  <meyering@redhat.com>
36808
36809         selinux-h: always use getfilecon wrappers
36810         * lib/getfilecon.c: New file.
36811         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36812         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36813         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36814         (fgetfilecon): Provide a stub.
36815         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36816         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36817         file unconditionally.
36818         When <selinux/selinux.h> is found, arrange to use wrappers.
36819         * modules/selinux-h (Files): Add getfilecon.c.
36820         (Makefile.am): Substitute include-next-related bits
36821         into the now-always-generated selinux/selinux.h file.
36822         * doc/glibc-functions/lgetfilecon.texi: New file.
36823         * doc/glibc-functions/fgetfilecon.texi: New file.
36824         * doc/glibc-functions/getfilecon.texi: New file.
36825         * doc/glibc-functions/getfilecon-desc.texi: New file.
36826         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36827         which to pull in the new files.
36828         * MODULES.html.sh (Misc): Add selinux-h.
36829
36830 2009-10-08  Jim Meyering  <meyering@redhat.com>
36831
36832         unistd: fix comment typo
36833         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36834
36835 2009-10-08  Eric Blake  <ebb9@byu.net>
36836
36837         areadlink: use SIZE_MAX consistently
36838         * modules/areadlink (Depends-on): Add stdint.
36839         * modules/areadlink-with-size (Depends-on): Likewise.
36840         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36841         gives NULL; drop sys/types, since unistd gives size_t; and add
36842         stdint for SIZE_MAX.
36843         (SIZE_MAX): Rely on headers.
36844         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36845         and add stdint.
36846         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36847         (SIZE_MAX): Likewise.
36848         (INITIAL_BUF_SIZE): Turn into enum.
36849         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36850
36851 2009-10-08  Jim Meyering  <meyering@redhat.com>
36852
36853         areadlinkat: avoid compilation failure
36854         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36855         Fix typo in comment.
36856
36857 2009-10-07  Eric Blake  <ebb9@byu.net>
36858
36859         areadlinkat-with-size: new module
36860         * modules/areadlinkat-with-size: New module.
36861         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36862         * lib/areadlink.h (areadlinkat): Declare it.
36863         * MODULES.html.sh (File system functions): Mention it.
36864         * modules/areadlinkat-with-size-tests: New test.
36865         * tests/test-areadlinkat-with-size.c: New file.
36866
36867         xreadlinkat: new module
36868         * modules/xreadlinkat: New module.
36869         * lib/xreadlinkat.c (xreadlinkat): New file.
36870         * lib/xreadlink.h (xreadlinkat): Declare it.
36871         * MODULES.html.sh (File system functions): Mention it.
36872
36873         areadlinkat: new module
36874         * lib/at-func.c (FUNC_FAIL): New define.
36875         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36876         * modules/areadlinkat: New module.
36877         * lib/linkat.c (areadlinkat): Move...
36878         * lib/areadlinkat.c (areadlinkat): ...to new file.
36879         * lib/areadlink.h (areadlinkat): Declare it.
36880         * modules/linkat (Depends-on): Add areadlinkat.
36881         * MODULES.html.sh (File system functions): Mention it.
36882         * modules/areadlinkat-tests: New test.
36883         * tests/test-areadlinkat.c: New file.
36884
36885         areadlink, areadlink-with-size: add tests
36886         * modules/areadlink-tests: New test.
36887         * modules/areadlink-with-size-tests: Likewise.
36888         * tests/test-areadlink.h: New file.
36889         * tests/test-areadlink.c: Likewise.
36890         * tests/test-areadlink-with-size.c: Likewise.
36891
36892         maint: minor cleanups
36893         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36894         _UNUSED_PARAMETER_ instead.
36895         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36896         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36897         * modules/linkat-tests (Files): Distribute test-link.h.
36898
36899         openat, utimens: whitespace cleanup
36900         * lib/openat.c: Prefer space throughout, rather than mix of 8
36901         spaces vs. tabs.
36902         * lib/at-func.c: Likewise.
36903         * lib/utimens.c: Likewise.
36904
36905         openat: avoid using wrong fd
36906         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36907         working directory chooses same fd.
36908         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36909
36910         mkdir, mkdirat: fix cygwin 1.5.x bug
36911         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36912         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36913         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36914         bug.
36915         (gl_PREREQ_MKDIR): Delete unused macro.
36916         * modules/mkdir (Files): Track file rename.
36917         (configure.ac): Update macro name.
36918         * modules/openat (Depends-on): Add mkdir.
36919         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36920
36921         mkdir, mkdirat: add tests
36922         * modules/mkdir-tests: New test.
36923         * tests/test-mkdir.h: New file.
36924         * tests/test-mkdir.c: Likewise.
36925         * tests/test-mkdirat.c: Likewise.
36926         * modules/openat-tests (Files): Add new files.
36927         (Makefile.am): Run new test.
36928
36929 2009-10-06  Eric Blake  <ebb9@byu.net>
36930
36931         doc: tweak *at function documentation
36932         * doc/posix-functions/faccessat.texi (faccessat): Mention
36933         known issue with replacement.
36934         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36935         * doc/posix-functions/linkat.texi (linkat): Likewise.
36936         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36937         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36938         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36939         * doc/posix-functions/renameat.texi (renameat): Likewise.
36940         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36941
36942         openat: fix GNU/Hurd bug in unlinkat
36943         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36944         broken.
36945         * doc/posix-functions/unlink.texi (unlink): Document this.
36946         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36947
36948         fdopendir: fix GNU/Hurd bug
36949         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36950         allowing non-directory fds.
36951         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36952         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36953         * modules/dirent (Makefile.am): Substitute it.
36954         * lib/dirent.in.h (fdopendir): Declare replacement.
36955         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36956         * tests/test-fdopendir.c (main): Test something other than
36957         /dev/null, since on Hurd that behaves like a directory.
36958
36959         test-symlink: port to GNU/Hurd
36960         * tests/test-symlink.h (test_symlink): Relax expected errno.
36961
36962         doc: tweak more cygwin information
36963         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36964         now compatible with glibc.
36965         * doc/posix-functions/getopt.texi (getopt): Likewise.
36966
36967         getopt-gnu: add another test
36968         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36969         guarantee behavior relied on by m4.
36970         * tests/test-getopt.c (main): Use it.
36971         * modules/getopt-posix-tests (Depends-on): Add setenv.
36972         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36973
36974         getopt: fix compilation on darwin
36975         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36976         include.
36977         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36978         Reported by Ludovic Courtès.
36979
36980 2009-10-06  Bruno Haible  <bruno@clisp.org>
36981
36982         * modules/size_max (Description): Discourage its use.
36983         Reported by Simon Josefsson.
36984
36985 2009-10-06  Jim Meyering  <meyering@redhat.com>
36986
36987         linkat: avoid compilation failure
36988         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36989
36990 2009-10-05  Eric Blake  <ebb9@byu.net>
36991
36992         linkat: support Linux 2.6.17
36993         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36994         linkat on Linux, but allow cache variable override.
36995         * lib/linkat.c (rpl_linkat): Define override.
36996         * modules/linkat (Depends-on): Add symlinkat.
36997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36998         * modules/unistd (Makefile.am): Substitute it.
36999         * lib/unistd.in.h (linkat): Declare replacement.
37000         Reported by Pádraig Brady.
37001
37002         quotearg: port test to systems with C.UTF-8 locale
37003         * tests/test-quotearg.c (struct result_strings): Add another
37004         member, differentiating between C.ASCII and C.UTF-8 handling.
37005         (compare_strings): Add parameter.
37006         (main): Adjust all callers.
37007
37008         getopt: avoid clash with FreeBSD _getopt_internal
37009         * lib/getopt.in.h (_getopt_internal): Override the name.
37010         * lib/getopt_int.h (includes): Pick up any overrides.
37011         Reported by Reuben Thomas.
37012
37013         hash: allow C89 compilation
37014         * lib/hash.c (check_tuning): Move declaration before statement.
37015         Reported by Reuben Thomas.
37016
37017 2009-10-05  Karl Berry  <karl@gnu.org>
37018
37019         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37020
37021 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37022             Bruno Haible  <bruno@clisp.org>
37023
37024         * lib/uname.c (uname): Use a table-driven algorithm to compute
37025         Windows NT versions.
37026
37027 2009-10-04  Bruno Haible  <bruno@clisp.org>
37028
37029         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37030         program_invocation_short_name.
37031         * modules/progname (configure.ac): Test for presence of
37032         program_invocation_short_name.
37033         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37034
37035 2009-10-04  Bruno Haible  <bruno@clisp.org>
37036
37037         * lib/progname.c (set_program_name): Fix comment.
37038         Reported by Jim Meyering.
37039
37040 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37041             Bruno Haible  <bruno@clisp.org>
37042
37043         * lib/uname.c: Include <string.h>.
37044         (uname): Do only one call to GetVersionEx in the common case.
37045
37046 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37047             Bruno Haible  <bruno@clisp.org>
37048
37049         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37050         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37051         (uname): Add support for Windows CE and various non-x86 CPU types.
37052
37053 2009-10-03  Bruno Haible  <bruno@clisp.org>
37054
37055         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37056         invocation to tests/configure.ac.
37057         Reported by Ian Beckwith <ianb@erislabs.net>.
37058
37059 2009-10-02  Eric Blake  <ebb9@byu.net>
37060
37061         fchdir: avoid compiler warning
37062         * lib/fchdir.c (canonicalize_file_name)
37063         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37064
37065         test-open: support mingw errno values
37066         * tests/test-open.h (test_open): Relax test.
37067         * tests/test-fopen.h (test_fopen): Likewise.
37068         * tests/test-openat-safer.c (main): Likewise.
37069
37070         open: fix opening directory on mingw
37071         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37072
37073         test-open: on GNU/Hurd, /dev/null is a directory
37074         * tests/test-fopen.h (main): Rename...
37075         (test_fopen): ...to this.  Use a guaranteed non-directory when
37076         confirming open behavior on trailing slash.
37077         * tests/test-openat-safer.c (main): Likewise.
37078         * tests/test-open.h (main): Likewise....
37079         (test_open): ...to this.
37080         * tests/test-fopen.c (main): Adjust caller.
37081         * tests/test-fopen-safer.c (main): Likewise.
37082         * tests/test-open.c (main): Likewise.
37083         * tests/test-fcntl-safer.c (main): Likewise.
37084         Reported by Samuel Thibault.
37085
37086         rename, fchdir: don't ignore chdir failure
37087         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37088         * lib/rename.c (rpl_rename) [W32]: Likewise.
37089         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37090         an empty destination directory if source cannot be renamed,
37091         although there is still possibility for failure.
37092         * doc/posix-functions/rename.texi (rename): Document the race.
37093         Reported by Jim Meyering.
37094
37095         maint: cleanup whitespace in recent commits
37096         * lib/rename.c (rpl_rename): Remove tabs.
37097         * tests/test-link.h (test_link): Likewise.
37098         * lib/fchdir.c (get_name): Likewise.
37099         Reported by Jim Meyering.
37100
37101 2009-10-02  Ben Pfaff  <blp@gnu.org>
37102
37103         relocatable-prog-wrapper: Add missing dependency on
37104         double-slash-root.
37105         * modules/relocatable-prog-wrapper: Add dependency.
37106         Reported by Ian Beckwith <ianb@erislabs.net>.
37107
37108 2009-10-02  Eric Blake  <ebb9@byu.net>
37109
37110         renameat: fix Solaris bugs
37111         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37112         needed fixing.
37113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37114         * modules/stdio (Makefile.am): Substitute it.
37115         * lib/stdio.in.h (renameat): Declare replacement.
37116         * lib/renameat.c (rpl_renameat): Implement fix.
37117
37118         renameat: new module
37119         * modules/renameat: New file.
37120         * lib/renameat.c (renameat): Likewise.
37121         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37123         * modules/stdio (Makefile.am): Substitute them.
37124         * lib/stdio.in.h (renameat): Declare it.
37125         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37126         * doc/posix-functions/renameat.texi (renameat): Likewise.
37127         * modules/renameat-tests: New test.
37128         * tests/test-renameat.c: Likewise.
37129
37130         rename: fix mingw bugs
37131         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37132         directory overwrite bugs.
37133
37134         rename: fix another cygwin 1.5 bug
37135         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37136         checks.
37137         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37138         unnecessary cygwin workarounds.  Also work around bug with moving
37139         full directory onto an empty one.
37140         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37141
37142         rename-dest-slash: merge into rename module
37143         * modules/rename-dest-slash (Status): Mark obsolete.
37144         (Depends-on): Add rename.
37145         (Files): Let rename do it all.
37146         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37147         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37148         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37149         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37150         * lib/rename.c (rpl_rename): Update comments.
37151
37152         rename: fix cygwin 1.5.x bugs
37153         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37154         * lib/rename.c (rpl_rename): Work around them.
37155         * modules/rename (Depends-on): Add same-inode.
37156
37157         rename: fix Solaris 10 bug
37158         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37159         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37160         was the only bug.
37161
37162         rename: fix Solaris 9 bug
37163         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37164         on non-directory.  Avoid calling exit.
37165         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37166         strdup.
37167         * modules/rename-tests (Depends-on): Drop lstat.
37168         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37169         (gl_PREREQ_RENAME): Delete unused macro.
37170
37171         rename-dest-slash: fix NetBSD bug
37172         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37173         links.
37174         * modules/rename-dest-slash (Depends-on): Add same-inode.
37175
37176         rename-tests: new test, exposes several platform bugs
37177         * modules/rename-tests: New file.
37178         * tests/test-rename.h: Likewise.
37179         * tests/test-rename.c: Likewise.
37180         * doc/posix-functions/rename.texi (rename): Improve documentation,
37181         including bugs that will eventually be fixed in gnulib.
37182
37183 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37184
37185         * lib/uname.c: Include <stdlib.h>
37186         (uname): Assume version info is available.
37187
37188 2009-10-02  Jim Meyering  <meyering@redhat.com>
37189
37190         gnu-web-doc-update: correct --help output
37191         * build-aux/gnu-web-doc-update: Make --help output relevant.
37192
37193         gnu-web-doc-update: add standard options
37194         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37195
37196         gnu-web-doc-update: New module.
37197         Use this script to automatically update the on-line web documentation
37198         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37199         * modules/gnu-web-doc-update: New file, from coreutils.
37200         * build-aux/gnu-web-doc-update: New script.
37201
37202 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37203
37204         link: LoadLibrary is not needed.
37205         * lib/link.c: Use GetModuleHandle.
37206
37207 2009-10-01  Eric Blake  <ebb9@byu.net>
37208
37209         getopt: bump serial number
37210         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37211         change.
37212
37213         tests: tighten link, rmdir, and remove tests
37214         * tests/test-link.h (includes): No need to use <config.h> here.
37215         Clean up if directory hard link was created, otherwise test for
37216         trailing '.'.
37217         * tests/test-linkat.c (main): Simplify.
37218         * tests/test-remove.c (main): Enhance test for trailing '.'.
37219         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37220
37221 2009-10-01  Jim Meyering  <meyering@redhat.com>
37222
37223         maint.mk: requiring "make major" was annoying, for a "minor" release.
37224         What is intended is "stable", to contrast with alpha and beta,
37225         so require "make stable", not "make major".
37226         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37227         (get_tool_versions): Likewise.
37228         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37229
37230 2009-09-30  Ben Pfaff  <blp@gnu.org>
37231
37232         Fix broken build of replacement for Windows tmpfile().
37233         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37234         flags argument added along with the 'mkostemp' module.
37235
37236 2009-09-28  Bruno Haible  <bruno@clisp.org>
37237
37238         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37239         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37240         to 'remove_elt'.
37241         (gl_list_remove): Update.
37242         * lib/gl_list.c (gl_list_remove): Update.
37243         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37244         to 'remove_elt'.
37245         (gl_oset_remove): Update.
37246         * lib/gl_list.c (gl_oset_remove): Update.
37247         Reported by Eric Blake.
37248
37249 2009-09-28  Eric Blake  <ebb9@byu.net>
37250
37251         doc: mention yet more cygwin 1.7 status
37252         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37253         cygwin.
37254         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37255         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37256
37257         argp: fix test failure
37258         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37259         that are not upper-case.  Pass correct range to tolower.
37260
37261 2009-09-27  Jim Meyering  <meyering@redhat.com>
37262
37263         test-yesno: work around sparc-dash here-document infelicity
37264         Without this change, the literal \177 byte in a here document
37265         would make dash 0.5.5.1-3 access uninitialized memory.
37266         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37267         Instead, use a marker, "@", and filter through tr to create the desired
37268         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37269
37270 2009-09-27  Bruno Haible  <bruno@clisp.org>
37271
37272         Disable untested support for new flavours of ACLs on AIX.
37273         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37274         progress.
37275         * lib/set-mode-acl.c (qset_acl): Likewise.
37276
37277 2008-12-07  Bruno Haible  <bruno@clisp.org>
37278
37279         Add support for new flavours of ACLs on AIX. (Untested.)
37280         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37281         (file_has_acl): Add support for newer AIX.
37282         * lib/set-mode-acl.c (qset_acl): Likewise.
37283         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37284         Rainer Tammer <tammer@tammer.net>.
37285
37286 2009-09-26  Eric Blake  <ebb9@byu.net>
37287
37288         argp: fix compilation of getopt
37289         * lib/getopt.in.h (includes): Use different guard than glibc.
37290         Reported by Sergey Poznyakoff.
37291
37292         doc: mention more cygwin 1.7 status
37293         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37294         bug.
37295         * doc/posix-functions/execl.texi (execl): Likewise.
37296         * doc/posix-functions/execle.texi (execle): Likewise.
37297         * doc/posix-functions/execlp.texi (execlp): Likewise.
37298         * doc/posix-functions/execv.texi (execv): Likewise.
37299         * doc/posix-functions/execve.texi (execve): Likewise.
37300         * doc/posix-functions/execvp.texi (execvp): Likewise.
37301         * doc/glibc-functions/canonicalize_file_name.texi
37302         (canonicalize_file_name): Cygwin 1.7 now provides this.
37303         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37304         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37305         on AT_SYMLINK_NOFOLLOW.
37306
37307 2009-09-24  Eric Blake  <ebb9@byu.net>
37308
37309         test-linkat: make test more robust
37310         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37311
37312         getopt: fix inclusion guards for cygwin
37313         * modules/getopt-posix (Depends-on): Add include-next.
37314         (Makefile.am): Substitute more items in replacement header.
37315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37316         <getopt.h>.
37317         * lib/getopt.in.h (includes): Use split inclusion guard, and
37318         prefer <getopt.h> over include <unistd.h> when one is present.
37319         (option): Also override name of 'struct option'.
37320
37321         same-inode: revert prior change; it is not yet ready
37322         * NEWS: Undo mention of this change.
37323         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37324         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37325         * lib/cycle-check.c (cycle_check): Likewise.
37326         * lib/same.c (same_name): Likewise.
37327         * lib/at-func2.c (at_func2): Likewise.
37328
37329 2009-09-23  Eric Blake  <ebb9@byu.net>
37330
37331         linkat: new module
37332         * modules/linkat: New file.
37333         * lib/at-func2.c (at_func2): Likewise.
37334         * lib/linkat.c (linkat): Likewise.
37335         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37336         * lib/openat-priv.h (at_func2): Add declaration.
37337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37338         * modules/unistd (Makefile.am): Substitute them.
37339         * lib/unistd.in.h (linkat): Declare it.
37340         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37341         * doc/posix-functions/linkat.texi (linkat): Likewise.
37342         * doc/posix-functions/link.texi (link): Tweak wording.
37343         * tests/test-link.c (main): Move guts...
37344         * tests/test-link.h (test_link): ...into new file.
37345         * modules/linkat-tests: New test.
37346         * tests/test-linkat.c: Likewise.
37347         * modules/link-tests (Files): Ship new file.
37348         (Depends-on): Add stdbool.
37349
37350         dirname: add library-safe mdir_name
37351         * lib/dirname.h (mdir_name): New prototype.
37352         * lib/dirname.c (dir_name): Move guts...
37353         (mdir_name): ...to new function that avoids xalloc_die.
37354
37355         fchdir: another mingw fix
37356         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37357         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37358         on mingw (where it has not yet been ported), and make it optional
37359         elsewhere.
37360         (_gl_register_fd): Use it.
37361
37362         same-inode: make SAME_INODE tri-state, to port to mingw
37363         * NEWS: Mention this change.
37364         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37365         st_ino always being 0.
37366         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37367         * lib/cycle-check.c (cycle_check): Likewise.
37368         * lib/same.c (same_name): Likewise.
37369
37370         lstat: avoid mingw compilation error
37371         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37372         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37373         lstat ourselves.
37374         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37375         was adequate.
37376         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37377         the checks for lstat.
37378         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37379
37380         link: fix test failure on Solaris 9
37381         * lib/link.c (rpl_link): Don't assume link will catch bogus
37382         trailing slash on source.
37383
37384         test-symlinkat: enhance test
37385         * tests/test-readlink.c (main): Move guts...
37386         * tests/test-readlink.h (test_readlink): ...into new file.
37387         * tests/test-symlink.c (main): Move guts...
37388         * tests/test-symlink.h (test_symlink): ...into new file.
37389         * tests/test-symlinkat.c (main): Use new files for further
37390         coverage.
37391         (do_symlink, do_readlink): New helper functions.
37392         * modules/symlink-tests (Files): Ship new file.
37393         (Depends-on): Add stdbool.
37394         * modules/readlink-tests (Files): Ship new file.
37395         (Depends-on): Add stdbool.
37396         * modules/symlinkat-tests (Files): Use new files.
37397
37398 2009-09-23  Eric Blake  <ebb9@byu.net>
37399
37400         readlink: document portability issue with symlink length
37401         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37402         systems have bogus st_size on symlinks, and mention the
37403         areadlink-with-size module.
37404         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37405         * doc/posix-functions/readlink.texi (readlink): Mention the
37406         areadlink module, and ERANGE failure.
37407         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37408         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37409
37410         readlink: fix Solaris 9 bug with trailing slash
37411         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37412         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37413         * doc/posix-functions/readlink.texi (readlink): Document this.
37414         * modules/readlink-tests: New test.
37415         * tests/test-readlink.c: Likewise.
37416
37417         readlink: fix cygwin 1.5.x bug with return type
37418         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37419         * lib/unistd.in.h (readlink): Use ssize_t.
37420         * lib/readlink.c (readlink): Likewise.
37421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37422         * modules/unistd (Makefile.am): Substitute it.
37423         * lib/unistd.in.h (readlink): Declare replacement.
37424         * doc/posix-functions/readlink.texi (readlink): Document this.
37425
37426         symlink: use throughout gnulib
37427         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37428         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37429         symlink is not used.
37430         * modules/symlinkat (Depends-on): Add symlink.
37431         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37432         * modules/canonicalize-tests (Depends-on): Likewise.
37433         * modules/lstat-tests (Depends-on): Likewise.
37434         * modules/openat-tests (Depends-on): Likewise.
37435         * modules/remove-tests (Depends-on): Likewise.
37436         * modules/rmdir-tests (Depends-on): Likewise.
37437         * modules/unlink-tests (Depends-on): Likewise.
37438         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37439         * tests/test-canonicalize.c (symlink): Likewise.
37440         * tests/test-fstatat.c (symlink): Likewise.
37441         * tests/test-lstat.c (symlink): Likewise.
37442         * tests/test-remove.c (symlink): Likewise.
37443         * tests/test-rmdir.c (symlink): Likewise.
37444         * tests/test-unlink.c (symlink): Likewise.
37445         * tests/test-unlinkat.c (symlink): Likewise.
37446
37447         symlink: new module, for Solaris 9 bug
37448         * modules/symlink: New file.
37449         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37450         * lib/symlink.c: Likewise.
37451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37452         * modules/unistd (Makefile.am): Substitute them.
37453         * lib/unistd.in.h (symlink): Declare replacement.
37454         * MODULES.html.sh (File system functions): Mention it.
37455         * doc/posix-functions/symlink.texi (symlink): Likewise.
37456         * modules/symlink-tests: New test.
37457         * tests/test-symlink.c: Likewise.
37458
37459 2009-09-23  Bruno Haible  <bruno@clisp.org>
37460
37461         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37462         when needed.
37463         Test case: gnulib-tool --import --with-tests atexit inttypes.
37464         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37465
37466 2009-09-23  Bruno Haible  <bruno@clisp.org>
37467
37468         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37469         subcommand, not in a subshell.
37470
37471 2009-09-22  Eric Blake  <ebb9@byu.net>
37472
37473         unistd: sort replacement declarations
37474         * lib/unistd.in.h: Sort declarations.
37475
37476         open, openat: minor optimization
37477         * lib/open.c (open): If open succeeded, len is non-zero.
37478         * lib/openat.c (rpl_openat): Likewise.
37479
37480         link-follow: ensure correct result
37481         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37482         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37483         distinguish between possible failures.
37484
37485 2009-09-21  Eric Blake  <ebb9@byu.net>
37486
37487         fts: avoid compiler warning
37488         * lib/fts.c (dirent_inode_sort_may_be_useful)
37489         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37490
37491 2009-09-19  Bruno Haible  <bruno@clisp.org>
37492
37493         * lib/progreloc.c (canonicalize_file_name): New declaration.
37494
37495 2009-09-19  Eric Blake  <ebb9@byu.net>
37496
37497         link: fix quoting
37498         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37499
37500         openat: fix openat bugs on Solaris 9
37501         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37502         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37503         * modules/openat (Depends-on): Add open.
37504         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37505         * modules/fcntl-h (Makefile.am): Substitute it.
37506         * lib/fcntl.in.h (openat): Declare replacement.
37507         * doc/posix-functions/openat.texi (openat): Document this.
37508
37509         openat: move fstatat and unlinkat into correct files
37510         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37511         compiled.
37512         * lib/openat.c (fstatat, unlinkat): Move...
37513         * lib/fstatat.c (fstatat): ...into correct files.
37514         * lib/unlinkat.c (unlinkat): Likewise.
37515
37516         openat: fix unlinkat bugs on Solaris 9
37517         * lib/unlinkat.c (unlinkat): New file.
37518         * modules/openat (Depends-on): Add unlink.
37519         (Files): Distribute it.
37520         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37521         trailing slash behavior is broken.
37522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37523         * modules/unistd (Makefile.am): Substitute it.
37524         * lib/unistd.in.h (unlinkat): Declare replacement.
37525         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37526
37527         openat: fix fstatat bugs on Solaris 9
37528         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37529         stat.
37530         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37531
37532         test-unlinkat: enhance test, to expose Solaris 9 bug
37533         * tests/test-unlink.c (main): Factor guts...
37534         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37535         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37536         * tests/test-rmdir.c (main): Adjust caller.
37537         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37538         (unlinker): New helper function.
37539         (rmdirat): Enhance check.
37540         * modules/rmdir-tests (Depends-on): Add stdbool.
37541         * modules/unlink-tests (Depends-on): Likewise.
37542         (Files): Add test-unlink.h.
37543         * modules/openat-tests (Files): Likewise.
37544         (Depends-on): Add unlinkdir.
37545
37546         test-fstatat: new test, to expose Solaris 9 bugs
37547         * tests/test-stat.c (main): Factor guts...
37548         * tests/test-stat.h (test_stat_func): ...into new file.
37549         * tests/test-lstat.c (main): Factor guts...
37550         * tests/test-lstat.h (test_lstat_func): ...into new file.
37551         * tests/test-fstatat.c: New file.
37552         * modules/stat-tests (Files): Add test-stat.h.
37553         * modules/lstat-tests (Files): Add test-lstat.h.
37554         (Depends-on): Add stdbool.
37555         * modules/openat-tests (Depends-on): Add pathmax.
37556         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37557         (Makefile.am): Run new test.
37558
37559         remove: new module, for mingw and Solaris 9 bugs
37560         * modules/remove: New file.
37561         * lib/remove.c: Likewise.
37562         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37563         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37564         * modules/stdio (Makefile.am): Use them.
37565         * lib/stdio.in.h (remove): Declare replacement.
37566         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37567         * doc/posix-functions/remove.texi (remove): Likewise.
37568         * modules/remove-tests: New test.
37569         * tests/test-remove.c: Likewise.
37570
37571         unlink: new module, for Solaris 9 bug
37572         * modules/unlink: New file.
37573         * lib/unlink.c: Likewise.
37574         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37576         * modules/unistd (Makefile.am): Use them.
37577         * lib/unistd.in.h (stat): Declare replacement.
37578         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37579         * doc/posix-functions/unlink.texi (unlink): Likewise.
37580         * modules/unlink-tests: New test.
37581         * tests/test-unlink.c: Likewise.
37582
37583         lstat: fix Solaris 9 bug
37584         * lib/lstat.c (lstat): Also check for trailing slash on
37585         non-symlink, non-directories.  Use stat module to simplify logic.
37586         * doc/posix-functions/lstat.texi (lstat): Document it.
37587         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37588         (configure.ac): Check for symlink.
37589         * tests/test-lstat.c (main): Add more tests.
37590
37591         stat: add as dependency to other modules
37592         * modules/chown (Depends-on): Add stat.
37593         * modules/euidaccess (Depends-on): Likewise.
37594         * modules/fchdir (Depends-on): Likewise.
37595         * modules/isdir (Depends-on): Likewise.
37596         * modules/link (Depends-on): Likewise.
37597         * modules/lstat (Depends-on): Likewise.
37598         * modules/mkdir-p (Depends-on): Likewise.
37599         * modules/modechange (Depends-on): Likewise.
37600         * modules/open (Depends-on): Likewise.
37601         * modules/readlink (Depends-on): Likewise.
37602         * modules/same (Depends-on): Likewise.
37603
37604         stat: fix Solaris 9 bug
37605         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37606         slash.
37607         * lib/stat.c (rpl_stat): Work around it.
37608         * doc/posix-functions/stat.texi (stat): Update documentation.
37609
37610         stat: new module, for mingw bug
37611         * modules/stat: New file.
37612         * lib/stat.c: Likewise.
37613         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37614         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37615         * modules/sys_stat (Makefile.am): Use them.
37616         * lib/sys_stat.in.h (stat): Declare replacement.
37617         * lib/openat.c (fstatat): Deal with lstat and stat being function
37618         macros.
37619         * modules/openat (Depends-on): Add inline.
37620         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37621         * doc/posix-functions/stat.texi (stat): Likewise.
37622         * modules/stat-tests: New test.
37623         * tests/test-stat.c: Likewise.
37624
37625 2009-09-19  Jim Meyering  <meyering@redhat.com>
37626
37627         syntax-check: detect unnecessary inclusion of canonicalize.h
37628         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37629
37630 2009-09-19  Eric Blake  <ebb9@byu.net>
37631
37632         canonicalize-lgpl: adjust clients to use correct header
37633         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37634         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37635         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37636         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37637         * lib/progreloc.c (includes): Likewise.
37638
37639 2009-09-19  Jim Meyering  <meyering@redhat.com>
37640
37641         test-posixtm.c: correct a comment
37642         * tests/test-posixtm.c: Correct first-line comment.
37643         Spotted by Eric Blake.
37644
37645 2009-09-16  Jim Meyering  <meyering@redhat.com>
37646
37647         posixtm-tests: make T const-correct; add a test case
37648         * tests/test-posixtm.c (T): Declare const.
37649         Add a test for -(2^31+1).
37650         Remove useless can-succeed-only-in-2002 test.
37651
37652         posixtm-tests: adjust the sole failing test
37653         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37654         expected output matches what mktime now produces.  Cross-checked via
37655         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37656
37657         posixtm: move #ifdef'd tests into a new module
37658         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37659         * tests/test-posixtm.c: ... this new file.
37660         * modules/posixtm-tests: New module.
37661
37662 2009-09-19  Eric Blake  <ebb9@byu.net>
37663
37664         openat: simplify use of at-func.c
37665         * lib/at-func.c (includes): Include prerequisites here, to
37666         simplify requirements on client files.
37667         * lib/openat-priv.h: Add double-inclusion guard.
37668         * lib/faccessat.c (includes): Simplify.
37669         * lib/fchmodat.c (includes): Likewise.
37670         * lib/fchownat.c (includes): Likewise.
37671         * lib/mkdirat.c (includes): Likewise.
37672         * lib/mkfifoat.c (includes): Likewise.
37673         * lib/symlinkat.c (includes): Likewise.
37674
37675         openat: allow return of fd 0
37676         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37677         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37678         unistd-safer.
37679         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37680         <fcntl.h>; this module does not leak fds.
37681         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37682         must be allowed to return 0, leaving openat_safer to add the
37683         safety.
37684         (openat_permissive): Avoid writing to just-opened fd 2 if
37685         restoring the current directory fails.
37686         * lib/openat-die.c (openat_restore_fail): Add comment.
37687         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37688         (save_cwd): Guarantee safe fd, but without use of open_safer.
37689         * tests/test-openat.c: New test.
37690         * modules/openat-tests (Files, Makefile.am): Distribute and build
37691         new file.
37692
37693         relocatable-prog-wrapper: fix build
37694         * modules/relocatable-prog-wrapper (Files): Update name of
37695         canonicalize m4 file, broken on 2009-09-17.
37696         Reported by emad hajjar <aleppos@hotmail.com>.
37697
37698 2009-09-19  Bruno Haible  <bruno@clisp.org>
37699
37700         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37701         * lib/safe-alloc.c: Likewise.
37702         Reported by Ian Beckwith <ianb@erislabs.net>.
37703
37704 2009-09-18  Bruno Haible  <bruno@clisp.org>
37705
37706         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37707         Reported by <erobles@sensacd.com.mx>.
37708
37709 2009-09-17  Eric Blake  <ebb9@byu.net>
37710
37711         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37712         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37713         slashes when checking if last component is missing.
37714         * tests/test-canonicalize.c (main): Test this.
37715
37716         canonicalize, canonicalize-lgpl: honor // if distinct from /
37717         * modules/canonicalize (Files): Add double-slash-root.m4.
37718         * modules/canonicalize-lgpl (Files): Likewise.
37719         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37720         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37721         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37722         fallback definition.
37723         (canonicalize_filename_mode): Use it to protect //.
37724         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37725         (__realpath): Likewise.
37726         * tests/test-canonicalize.c (main): Test this.
37727         * tests/test-canonicalize-lgpl.c (main): Likewise.
37728         * modules/canonicalize-tests (Depends-on): Add same-inode.
37729         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37730
37731         canonicalize-lgpl: fix glibc bug with trailing slash
37732         * m4/canonicalize-lgpl.m4: Move contents...
37733         * m4/canonicalize.m4: ...here.
37734         (gl_CANONICALIZE_LGPL): Factor realpath check...
37735         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37736         glibc 2.3.5 bug, fixed 2005-04-27.
37737         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37738         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37739         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37740         * modules/canonicalize-lgpl (Files): Manage file rename.
37741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37742         * modules/stdlib (Makefile.am): Substitute witness.
37743         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37744         is needed.
37745         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37746         replacement is required.
37747         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37748         * doc/glibc-functions/canonicalize_file_name.texi
37749         (canonicalize_file_name): Document this.
37750         * doc/posix-functions/realpath.texi (realpath): Likewise.
37751
37752         canonicalize-lgpl: reject non-directory with trailing slash
37753         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37754         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37755         catches failures in glibc 2.3.5.
37756         * tests/test-canonicalize.c (main): Likewise.
37757
37758         canonicalize-lgpl: use native realpath if it works
37759         * lib/canonicalize-lgpl.c (realpath): Guard with
37760         FUNC_REALPATH_WORKS.
37761         * lib/stdlib.in.h (realpath): Make declaration optional based on
37762         HAVE_REALPATH.
37763         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37764         native realpath works.
37765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37766         * modules/stdlib (Makefile.am): Substitute witness.
37767
37768         canonicalize, canonicalize-lgpl: use <stdlib.h>
37769         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37770         (Include): Mention <stdlib.h>.
37771         (configure.ac): Mention functions we provide.
37772         * modules/canonicalize (configure.ac): Likewise.
37773         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37774         realpath if canonicalize_file_name is missing.
37775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37776         * modules/stdlib (Makefile.am): Substitute witnesses.
37777         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37778         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37779         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37780         * NEWS: Document this.
37781         * doc/glibc-functions/canonicalize_file_name.texi
37782         (canonicalize_file_name): Likewise.
37783         * doc/posix-functions/realpath.texi (realpath): Likewise.
37784         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37785
37786         test-canonicalize: consolidate into single C program
37787         * tests/test-canonicalize.sh: Delete; move setup into...
37788         * tests/test-canonicalize.c (main): ...the program, making it
37789         easier to run in debugger.  Add some tests.
37790         * modules/canonicalize-tests (Files): Remove unused file.
37791         (Depends-on): Add progname.
37792         (configure.ac, Makefile.am): Simplify.
37793
37794         test-canonicalize-lgpl: consolidate into single C program
37795         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37796         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37797         easier to run in debugger.  Add some tests.
37798         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37799         (configure.ac, Makefile.am): Simplify.
37800
37801         canonicalize: avoid resolvepath
37802         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37803         unnecessary checks.
37804         * lib/canonicalize.c (includes): Simplify.
37805         (canonicalize_file_name): Drop resolvepath implementation.
37806         * modules/canonicalize (Depends-on): Drop filenamecat.
37807
37808         canonicalize: don't lose errno
37809         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37810         over calls to free.
37811
37812         canonicalize: simplify errno handling
37813         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37814         assignment.
37815
37816         canonicalize, canonicalize-lgpl: update module dependencies
37817         * modules/canonicalize (Depends-on): Add extensions, lstat,
37818         pathmax, stdlib.
37819         (Files): Drop pathmax.h.
37820         (configure.ac): Adjust macro name.
37821         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37822         lstat, stdlib, sys_stat.
37823         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37824         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37825         extensions.
37826         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37827         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37828         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37829         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37830         declaration, if available.
37831         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37832         we can rely on the readlink module.
37833         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37834         (includes): Use <unistd.h> unconditionally.
37835
37836 2009-09-17  Eric Blake  <ebb9@byu.net>
37837
37838         maint: make Include sections of modules consistent
37839         * modules/alloca: Use only header name; no need to list #include.
37840         * modules/alloca-opt: Likewise.
37841         * modules/arpa_inet: Likewise.
37842         * modules/canon-host: Likewise.
37843         * modules/configmake: Likewise.
37844         * modules/dirent: Likewise.
37845         * modules/eealloc: Likewise.
37846         * modules/environ: Likewise.
37847         * modules/fchdir: Likewise.
37848         * modules/fcntl: Likewise.
37849         * modules/fcntl-h: Likewise.
37850         * modules/gethrxtime: Likewise.
37851         * modules/gettime: Likewise.
37852         * modules/ignore-value: Likewise.
37853         * modules/inet_ntop: Likewise.
37854         * modules/inet_pton: Likewise.
37855         * modules/inttypes: Likewise.
37856         * modules/isnand-nolibm: Likewise.
37857         * modules/isnanf-nolibm: Likewise.
37858         * modules/mbchar: Likewise.
37859         * modules/mbfile: Likewise.
37860         * modules/mbiter: Likewise.
37861         * modules/mbuiter: Likewise.
37862         * modules/netdb: Likewise.
37863         * modules/netinet_in: Likewise.
37864         * modules/nproc: Likewise.
37865         * modules/pagealign_alloc: Likewise.
37866         * modules/poll: Likewise.
37867         * modules/printf-frexp: Likewise.
37868         * modules/pthread: Likewise.
37869         * modules/putenv: Likewise.
37870         * modules/random_r: Likewise.
37871         * modules/relocatable-prog: Likewise.
37872         * modules/search: Likewise.
37873         * modules/select: Likewise.
37874         * modules/selinux-h: Likewise.
37875         * modules/settime: Likewise.
37876         * modules/signal: Likewise.
37877         * modules/size_max: Likewise.
37878         * modules/socklen: Likewise.
37879         * modules/ssize_t: Likewise.
37880         * modules/stdarg: Likewise.
37881         * modules/stdbool: Likewise.
37882         * modules/stddef: Likewise.
37883         * modules/stdint: Likewise.
37884         * modules/stdio: Likewise.
37885         * modules/stdlib: Likewise.
37886         * modules/string: Likewise.
37887         * modules/strings: Likewise.
37888         * modules/sys_file: Likewise.
37889         * modules/sys_ioctl: Likewise.
37890         * modules/sys_select: Likewise.
37891         * modules/sys_socket: Likewise.
37892         * modules/sys_stat: Likewise.
37893         * modules/sys_time: Likewise.
37894         * modules/sys_times: Likewise.
37895         * modules/sys_utsname: Likewise.
37896         * modules/sys_wait: Likewise.
37897         * modules/sysexits: Likewise.
37898         * modules/time: Likewise.
37899         * modules/times: Likewise.
37900         * modules/tmpfile: Likewise.
37901         * modules/trim: Likewise.
37902         * modules/unistd: Likewise.
37903         * modules/wchar: Likewise.
37904         * modules/wctype: Likewise.
37905
37906 2009-09-17  Bruno Haible  <bruno@clisp.org>
37907
37908         Make getdate.y compile on QNX and NetBSD 5 / i386.
37909         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37910         TIME_T_FITS_IN_LONG_INT.
37911         * lib/getdate.y (long_time_t): New type.
37912         (relative_time): Change type of 'seconds' field to long_time_t.
37913         (get_date): Update types of local variables. Check against overflow
37914         during conversion from long_time_t to time_t.
37915         Reported by Matt Kraai <kraai@ftbfs.org>
37916         and Hasso Tepper <hasso@netbsd.org>.
37917
37918 2009-09-17  Bruno Haible  <bruno@clisp.org>
37919
37920         * modules/COPYING: Update copyright years.
37921         * modules/README: Likeiwse.
37922         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37923         Reported by Ian Beckwith <ianb@erislabs.net>.
37924
37925 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37926
37927         * users.txt: Update references for gnuit package.
37928
37929 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37930
37931         * m4/getdelim.m4: Fix typo in copyright line.
37932
37933 2009-09-17  Bruno Haible  <bruno@clisp.org>
37934
37935         * lib/atoll.c: Use the standard header with GPL copyright.
37936         * lib/argz.in.h: Likewise.
37937         * lib/glob.c: Likewise.
37938         * lib/glob-libc.h: Likewise.
37939         * lib/random_r.c: Likewise.
37940         * lib/siglist.h: Likewise.
37941         * lib/strsignal.c: Likewise.
37942         Reported by Ian Beckwith <ianb@erislabs.net>.
37943
37944 2009-09-17  Eric Blake  <ebb9@byu.net>
37945
37946         rmdir: ensure correct dependency order
37947         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37948
37949 2009-09-17  Bruno Haible  <bruno@clisp.org>
37950
37951         Disable assertion that fails on NetBSD 5 / i386.
37952         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37953         Reported by Sam Steingold <sds@gnu.org>
37954         and Hasso Tepper <hasso@netbsd.org>.
37955
37956 2009-09-16  Eric Blake  <ebb9@byu.net>
37957
37958         unlinkdir: port to mingw
37959         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37960         on which no one can unlink a directory.
37961
37962         stdlib: sort witness names
37963         * modules/stdlib (Makefile.am): Sort replacements.
37964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37965         * lib/stdlib.in.h: Likewise.
37966
37967         parse-duration-tests: avoid link failure
37968         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37969         LIBINTL.
37970         Reported by Tom G. Christensen.
37971
37972         openat-tests: ensure unlinkat behaves like rmdir
37973         * tests/test-rmdir.c (main): Factor guts...
37974         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37975         * modules/rmdir-tests (Files): Ship new file.
37976         * modules/openat-tests: New test.
37977         * tests/test-unlinkat.c: Likewise.
37978
37979         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37980         * modules/rmdir-errno (Status, Notice): Now obsolete.
37981
37982         rmdir: work around cygwin 1.5.x and mingw bugs
37983         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37984         * lib/rmdir.c (rmdir): Work around it.
37985         * modules/rmdir (Status, Notice): No longer obsolete.
37986         (Files): Add dos.m4.
37987         (Depends-on): Add unistd.
37988         (configure.ac): Set witnesses.
37989         (License): Relax to LGPLv2+.
37990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37991         * modules/unistd (Makefile.am): Substitute witnesses.
37992         * lib/unistd.in.h (rmdir): Declare replacement.
37993         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37994         * modules/rmdir-tests: New tests.
37995         * tests/test-rmdir.c: Likewise.
37996
37997 2009-09-15  Eric Blake  <ebb9@byu.net>
37998
37999         fchdir: improve use of replacement functions
38000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
38001         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
38002         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
38003         REPLACE_CLOSEDIR.
38004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
38005         * modules/sys_stat (Makefile.am): Substitute correct witness.
38006         * modules/dirent (Makefile.am): Likewise.
38007         * modules/unistd (Makefile.am): Likewise.
38008         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
38009         * lib/unistd.in.h (dup): Likewise.
38010         * lib/sys_stat.in.h (fstat): Likewise.
38011
38012         maint: ignore gnulib-tool temp files
38013         * .gitignore: Ignore files created during gnulib-tool --test.
38014
38015 2009-09-13  Jim Meyering  <meyering@redhat.com>
38016
38017         posixtm: don't reject a time that specify "60" as the number of seconds
38018         * lib/posixtm.c (posixtime): The code to reject invalid dates
38019         would also reject a time specified with the .60 suffix.
38020         But POSIX allows that, in order to accommodate leap seconds.
38021         So don't reject it.
38022         (main): Adjust tests accordingly.
38023         * modules/posixtm (Depends-on): Add stpcpy.
38024
38025 2009-09-11  Jim Meyering  <meyering@redhat.com>
38026
38027         announce-gen: include [$release_type] in emitted Subject:
38028         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38029         e.g., [stable] in the emitted Subject: line.
38030
38031 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38032
38033         Remove obsolete macros from several modules.
38034         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38035         obsolete Autoconf macros with their modern counterparts.
38036         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38037         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38038         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38039         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38040         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38041         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38042         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38043         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38044         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38045         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38046         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38047         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38048         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38049         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38050         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38051         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38052         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38053         * m4/time_r.m4 (gl_TIME_R): Likewise.
38054         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38055         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38056         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38057
38058         Fix copyright header in build-aux scripts.
38059         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38060         recommendation.
38061         * build-aux/ncftpput-ftp: Likewise.
38062         * build-aux/update-copyright: Likewise.
38063
38064 2009-09-09  Eric Blake  <ebb9@byu.net>
38065
38066         test-link: allow Linux choice of errno
38067         * tests/test-link.c (main): Relax test for alternate error.
38068
38069         strndup: fix improper m4 caching
38070         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38071         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38072         (gl_PREREQ_STRNDUP): Delete.
38073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38074         * modules/string (Makefile.am): Substitute it.
38075         * lib/string.in.h (strndup): Modernize prototype.
38076
38077         getcwd: port to mingw
38078         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38079         different from the POSIX assumptions made throughout the getcwd
38080         module; fortunately, the mingw getcwd does not need replacement.
38081         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38082         * modules/getcwd-tests: New test.
38083         * tests/test-getcwd.c: Likewise.
38084
38085         link: fix platform bugs
38086         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38087         * lib/link.c (link): Work around them.  Fix related mingw bug.
38088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38089         * modules/unistd (Makefile.am): Substitute it.
38090         * lib/unistd.in.h (link): Declare replacement.
38091         * doc/posix-functions/link.texi (link): Document this.
38092         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38093
38094         test-link: consolidate into single C program, test more cases
38095         * tests/test-link.sh: Delete.
38096         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38097         at least Cygwin and Solaris.
38098         * modules/link-tests (Files): Remove unused file.
38099         (Depends-on): Add errno, sys_stat.
38100         (Makefile.am): Simplify.
38101
38102 2009-09-08  Bruno Haible  <bruno@clisp.org>
38103
38104         Work around towlower, towupper bug on mingw.
38105         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38106         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38107         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38108         * doc/posix-functions/towupper.texi: Likewise.
38109         Reported by Eric Blake.
38110
38111 2009-09-08  Jim Meyering  <meyering@redhat.com>
38112
38113         build: don't try to run autoheader if we don't use it
38114         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38115         is not used in configure.ac.
38116
38117 2009-09-08  Eric Blake  <ebb9@byu.net>
38118
38119         euidaccess: fix compilation error
38120         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38121
38122         rawmemchr: relax license
38123         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38124         okay.
38125         Reported by Jim Meyering.
38126
38127         mkfifoat: new module
38128         * modules/mkfifoat: New file.
38129         * lib/mkfifoat.c: Likewise.
38130         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38131         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38132         * modules/sys_stat (Makefile.am): Use them.
38133         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38134         * MODULES.html.sh (File system functions): Mention module.
38135         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38136         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38137         * modules/mkfifoat-tests: New test.
38138         * tests/test-mkfifoat.c: Likewise.
38139
38140         strchrnul: relax license
38141         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38142         okay.
38143         Reported by Jim Meyering.
38144
38145 2009-09-08  Eric Blake  <ebb9@byu.net>
38146
38147         fstatat: fix compilation on Solaris
38148         * lib/fstatat.c (includes): Add fcntl.h.
38149         Reported by Pádraig Brady.
38150
38151 2009-09-07  Eric Blake  <ebb9@byu.net>
38152
38153         rename: modernize replacement
38154         * modules/rename (Depends-on): Add stdio.
38155         (configure.ac): Declare witness.
38156         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38157         stdio take care of replacement.
38158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38159         * modules/stdio (Makefile.am): Substitute them.
38160         * lib/stdio.in.h (rename): Declare replacement.
38161         * lib/rename.c (includes): Allow cross-compilation to non-windows
38162         machines.
38163         * doc/posix-functions/rename.texi (rename): Improve
38164         documentation.
38165
38166         stdio: sort witness names
38167         * modules/stdio (Makefile.am): Sort replacements.
38168         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38169         * lib/stdio.in.h: Likewise.
38170
38171         getcwd: minor cleanups
38172         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38173         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38174
38175         openat: provide more convenience names
38176         * modules/faccessat (configure.ac): Add C witness.
38177         * lib/unistd.in.h (readlinkat): Fix typo.
38178         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38179         convenience wrappers.
38180         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38181         wrappers in syntax checks.
38182
38183 2009-09-06  Eric Blake  <ebb9@byu.net>
38184
38185         doc: fix comments in recent patches
38186         * lib/faccessat.c: Mention correct function.
38187         * lib/fchmodat.c: Likewise.
38188         * lib/fchownat.c: Likewise.
38189         * lib/symlinkat.c: Likewise.
38190         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38191         constants.
38192
38193         faccessat, symlinkat: continue cleanup of previous patch
38194         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38195         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38196         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38198         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38199         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38200         set.
38201
38202 2009-09-06  Bruno Haible  <bruno@clisp.org>
38203
38204         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38205         (fstatat): Declare if GNULIB_FSTATAT is set.
38206         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38207         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38208         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38209         * modules/fcntl-h (Files): Remove m4/openat.m4.
38210         * modules/sys_stat (Files): Remove m4/openat.m4.
38211         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38212         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38213         * modules/unistd (Files): Remove m4/openat.m4.
38214         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38215         GNULIB_OPENAT.
38216         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38217         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38219         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38220         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38221         gl_OPENAT_DEFAULTS.
38222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38223         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38224         Don't require gl_OPENAT_DEFAULTS.
38225         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38226         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38227         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38228         (gl_OPENAT_DEFAULTS): Remove macro.
38229
38230 2009-09-06  Bruno Haible  <bruno@clisp.org>
38231
38232         * modules/openat (configure.ac): Remove unneeded witness.
38233
38234 2009-09-06  Bruno Haible  <bruno@clisp.org>
38235
38236         Set errno to ENOSYS when a function is entirely unsupported.
38237         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38238         EOPNOTSUPP.
38239         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38240         * modules/chown (Depends-on): Remove errno.
38241
38242 2009-09-06  Bruno Haible  <bruno@clisp.org>
38243
38244         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38245
38246 2009-09-06  Bruno Haible  <bruno@clisp.org>
38247
38248         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38249
38250 2009-09-06  Ben Pfaff  <blp@gnu.org>
38251             Bruno Haible  <bruno@clisp.org>
38252
38253         Work around a glibc bug in strtok_r.
38254         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38255         Undefine if UNDEFINE_STRTOK_R is set.
38256         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38257         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38258         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38259         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38260         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38261         UNDEFINE_STRTOK_R.
38262         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38263
38264 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38265
38266         exclude: minor fix
38267         * lib/exclude.c: Include wctype.h
38268
38269 2009-09-06  Akim Demaille  <demaille@gostai.com>
38270
38271         bootstrap: improve error message
38272         * build-aux/bootstrap (find_tool): Upon failure, report the list
38273         of candidates.
38274         Honor the initial value of the envvar.
38275
38276 2009-09-05  Eric Blake  <ebb9@byu.net>
38277
38278         symlinkat: new module
38279         * modules/symlinkat: New file.
38280         * lib/symlinkat.c: Likewise.
38281         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38283         * modules/unistd (Makefile.am): Use them.
38284         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38285         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38286         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38287         * MODULES.html.sh (File system functions): Mention module.
38288         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38289         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38290         * modules/symlinkat-tests: New test.
38291         * tests/test-symlinkat.c: Likewise.
38292
38293         test-openat-safer: add more checks
38294         * tests/test-openat-safer.c (main): Check more code paths.
38295
38296 2009-09-05  Jim Meyering  <meyering@redhat.com>
38297
38298         syntax-check: detect unnecessary inclusion of openat.h
38299         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38300
38301 2009-09-05  Bruno Haible  <bruno@clisp.org>
38302
38303         Support towlower, towupper.
38304         * doc/posix-functions/towlower.texi: Mention module wctype.
38305         * doc/posix-functions/towupper.texi: Likewise.
38306         * lib/wctype.in.h (towlower, towupper): New functions.
38307         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38308         (ASSERT): New macro.
38309         (e): New variable.
38310         (main): Test also towlower, towupper. Test WEOF argument.
38311         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38312
38313 2009-09-05  Bruno Haible  <bruno@clisp.org>
38314
38315         Fix conversion behaviour when the input is invalid.
38316         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38317         mark occurring in first pass of indirect conversion.
38318         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38319         input.
38320         Found by clang's static analyzer.
38321
38322 2009-09-05  Bruno Haible  <bruno@clisp.org>
38323
38324         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38325         where direct conversion is possible.
38326
38327 2009-09-04  Eric Blake  <ebb9@byu.net>
38328
38329         openat: fail with ENOENT on empty name
38330         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38331         buffer.
38332
38333         link-follow: fix logic bug in prior patch
38334         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38335         reversed sense of yes and no in prior patch.  Avoid confusing
38336         compilation failure with desired semantics.
38337
38338         link-follow: accomodate mingw and cross-compilation
38339         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38340         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38341         cross-compilation results to -1, to make linkat easier to
38342         implement when cross-compiling.  Trivially support mingw.
38343         * modules/link-follow (configure.ac): Call new name.
38344         * NEWS: Mention this.
38345
38346 2009-09-03  Eric Blake  <ebb9@byu.net>
38347
38348         faccessat: compile replacement
38349         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38350         needed.
38351
38352         fts: fix compilation error
38353         * lib/fts.c (includes): Re-add "openat.h", for
38354         openat_needs_fchdir.
38355
38356         faccessat: new module
38357         * modules/faccessat: New file.
38358         * lib/faccessat.c: Likewise.
38359         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38360         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38361         * modules/unistd (Makefile.am): Use it.
38362         * lib/unistd.in.h (faccessat): Declare it.
38363         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38364         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38365         * MODULES.html.sh (File system functions): Mention it.
38366         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38367         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38368
38369         euidaccess: prefer POSIX over non-standard implementation
38370         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38371         * lib/euidaccess.c (euidaccess): Use it if available.
38372
38373         openat: make template easier to use
38374         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38375         AT_FUNC_F2 to be undefined.
38376         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38377         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38378         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38379         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38380         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38381         Likewise.
38382         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38383         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38384         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38385         Likewise.
38386
38387         openat: declare in POSIX headers
38388         * NEWS: Mention this.
38389         * modules/openat (configure.ac): Declare witnesses.
38390         (Depends-on): Add fcntl-h, sys_stat, unistd.
38391         (Include): Mention correct headers.
38392         * modules/fcntl-h (Depends-on): Add link-warning.
38393         (Files): Add openat.m4.
38394         (Makefile.am): Substitute witnesses.
38395         * modules/sys_stat (Files, Makefile.am): Likewise.
38396         * modules/unistd (Files, Makefile.am): Likewise.
38397         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38398         (gl_OPENAT_DEFAULTS): New macro.
38399         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38401         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38402         (SYS_STAT_H): Remove unused variable.
38403         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38404         * lib/fcntl--.h (includes): Remove unneeded header.
38405         * lib/openat-safer.c (includes): Likewise.
38406         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38407         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38408         appropriate headers.
38409         (__OPENAT_PREFIX): Delete.
38410         * lib/fcntl.in.h (openat): Provide declaration.
38411         (AT_FDCWD): Fix Solaris bug.
38412         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38413         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38414         * lib/fchmodat.c (includes):  Adjust to find declaration.
38415         * lib/fchownat.c (includes): Likewise.
38416         * lib/mkdirat.c (includes): Likewise.
38417         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38418         still visible.
38419
38420 2009-09-02  Eric Blake  <ebb9@byu.net>
38421
38422         errno: use consistently
38423         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38424         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38425         * lib/canonicalize.c (ELOOP): Likewise.
38426         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38427         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38428         * lib/lchown.c (EOPNOTSUPP): Likewise.
38429         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38430         * lib/savewd.c (ESTALE): Likewise.
38431         * lib/settime.c (ENOSYS): Likewise.
38432         * lib/utimens.c (ENOSYS): Likewise.
38433         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38434         * lib/chdir-safer.c (ELOOP): Likewise.
38435         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38436         * modules/c-stack (Depends-on): Add errno.
38437         * modules/canonicalize (Depends-on): Likewise.
38438         * modules/chdir-safer (Depends-on): Likewise.
38439         * modules/fdopendir (Depends-on): Likewise.
38440         * modules/inet_ntop (Depends-on): Likewise.
38441         * modules/inet_pton (Depends-on): Likewise.
38442         * modules/lchown (Depends-on): Likewise.
38443         * modules/openat (Depends-on): Likewise.
38444         * modules/savewd (Depends-on): Likewise.
38445         * modules/settime (Depends-on): Likewise.
38446         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38447
38448         fts: avoid leaking fds
38449         * modules/fts (Depends-on): Add cloexec.
38450         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38451         flag.
38452
38453         fts: make directory fds more robust
38454         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38455         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38456
38457         backupfile, chdir-long, fts, savedir: make safer
38458         * lib/backupfile.c (includes): Use "dirent--.h", since
38459         numbered_backup can write to stderr during readdir.
38460         * lib/savedir.c (includes): Likewise.
38461         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38462         emulation can write to stderr on failure.
38463         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38464         * lib/getcwd.c: Document why opendir_safer is unused.
38465         * lib/glob.c: Likewise.
38466         * lib/scandir.c: Likewise.
38467         * lib/openat-proc.c: Likewise, for open_safer.
38468         * modules/backupfile (Depends-on): Add dirent-safer.
38469         * modules/savedir (Depends-on): Likewise.
38470         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38471         * modules/chdir-long (Depends-on): Add openat-safer.
38472
38473         openat-safer: new module
38474         * modules/openat-safer: New file.
38475         * lib/openat-safer.c: Likewise.
38476         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38477         * lib/fcntl-safer.h (openat_safer): Declare.
38478         * lib/fcntl--.h (openat): Override.
38479         * MODULES.html.sh (File descriptor based I/O): Mention it.
38480         * lib/openat.h: Add double-inclusion guards.
38481         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38482         "fcntl--.h", so we can implement openat.
38483         * modules/openat-safer-tests: New test.
38484         * tests/test-openat-safer.c: New file.
38485
38486         dirent-safer: new module
38487         * modules/dirent-safer: New file.
38488         * lib/dirent--.h: Likewise.
38489         * lib/dirent-safer.h: Likewise.
38490         * lib/opendir-safer.c: Likewise.
38491         * m4/dirent-safer.m4: Likewise.
38492         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38493         * modules/dirent-safer-tests: New test.
38494         * tests/test-dirent-safer.c: New file.
38495         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38496
38497         fdopendir: optimize on mingw
38498         * lib/unistd.in.h (_gl_directory_name): New prototype.
38499         * lib/fchdir.c (_gl_directory_name): Implement it.
38500         (fchdir): Use it to simplify implementation.
38501         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38502         fchdir, when available, to avoid calling [f]chdir().
38503
38504         fdopendir: split into its own module
38505         * lib/openat.c (fdopendir): Move...
38506         * lib/fdopendir.c: ...into new file.
38507         * modules/fdopendir: New module.
38508         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38509         * modules/openat (Depends-on): Add fdopendir.
38510         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38511         fdopendir here.
38512         * modules/savedir (Depends-on): Only need fdopendir, not full
38513         openat.
38514         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38515         * lib/openat.h (fdopendir): Drop prototype.
38516         * lib/dirent.in.h (fdopendir): Provide prototype.
38517         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38518         * modules/dirent (Makefile.am): Substitute them.
38519         * MODULES.html.sh (File system functions): Mention it.
38520         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38521         * modules/fdopendir-tests: New file.
38522         * tests/test-fdopendir.c: Likewise.
38523
38524         fchdir: use more consistent macro convention
38525         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38526         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38527         REPLACE_FCHDIR, rather than relying on config.h macros.
38528         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38529         inside a single make-time REPLACE_FCHDIR block, rather than using
38530         the config.h FCHDIR_REPLACEMENT.
38531         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38532         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38533         Manage fstat replacement.
38534         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38535         REPLACE_FCHDIR.
38536         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38537         (Makefile.am): Substitute REPLACE_FCHDIR.
38538         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38539         FCHDIR_REPLACEMENT.
38540         * lib/dup-safer.c (dup_safer): Likewise.
38541         * lib/dup2.c (rpl_dup2): Likewise.
38542         * lib/dup3.c (rpl_dup3): Likewise.
38543         * lib/open.c (rpl_open): Likewise.
38544
38545         fchdir: simplify error handling, and support dup3
38546         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38547         stdbool, malloc-posix, realloc-posix.
38548         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38549         (ensure_dirs_slot): Return false on allocation failure.
38550         (rpl_dup2): Delete.
38551         (_gl_register_dup): New function.
38552         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38553         (_gl_register_fd): Close fd on allocation failure.
38554         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38555         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38556         prototype.
38557         (rpl_dup2_fchdir): Delete prototype.
38558         * lib/open.c (open): Update caller.
38559         * lib/dup2.c (dup2): Track fchdir metadata.
38560         * lib/dup3.c (dup3): Likewise.
38561         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38562         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38563
38564 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38565
38566         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38567         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38568         don't pass arguments to AC_OUTPUT.
38569
38570 2009-09-02  Bruno Haible  <bruno@clisp.org>
38571
38572         * modules/mkdtemp (License): Relicense under LGPLv2+.
38573         Reported by Paolo Bonzini.
38574
38575 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38576
38577         Replace uses of obsolete autoconf macros in Jim's modules.
38578         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38579         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38580         can evoke a warning from autoconf when run with -Wobsolete
38581         enabled.  They were declared obsolete for good reasons (see
38582         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38583         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38584         should not continue using the deprecated macros.
38585         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38586         obsolete Autoconf macros with modern counterparts.
38587         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38588         * m4/dos.m4 (gl_AC_DOS): Likewise.
38589         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38590         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38591         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38592         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38593         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38594         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38595         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38596         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38597         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38598         Likewise.
38599         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38600         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38601         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38602         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38603         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38604         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38605
38606 2009-09-01  Eric Blake  <ebb9@byu.net>
38607
38608         fchdir: fix off-by-one bug in previous patch
38609         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38610         (_gl_unregister_fd): Delete useless if.
38611
38612 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38613
38614         maint.mk: sort the list of syntax-check rules
38615         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38616         easier to get a sense of progress when the rules are run sequentially
38617         and take a long time.
38618
38619 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38620
38621         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38622         * modules/netinet_in: Likewise.
38623         * modules/sys_file: Likewise.
38624         * modules/sys_ioctl: Likewise.
38625         * modules/sys_select: Likewise.
38626         * modules/sys_socket: Likewise.
38627         * modules/sys_stat: Likewise.
38628         * modules/sys_time: Likewise.
38629         * modules/sys_times: Likewise.
38630         * modules/sys_utsname: Likewise.
38631         * modules/sys_wait: Likewise.
38632
38633 2009-09-01  Jim Meyering  <meyering@redhat.com>
38634
38635         fts: help ensure that return values are not ignored
38636         * lib/fts_.h (__GNUC_PREREQ): Define.
38637         (__attribute_warn_unused_result__): Define.
38638         (fts_children, fts_close, fts_open, fts_read): Declare with
38639         __attribute_warn_unused_result__.
38640
38641         fts: fts_close now fails also when closing a dir file descriptor fails
38642         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38643         and propagate to caller, along with errno.
38644
38645         announce-gen: correct formatting in --help output
38646         * build-aux/announce-gen (usage): Move the one-line description in
38647         --help output "up", to where it belongs, just after Usage:.
38648
38649 2009-08-31  Eric Blake  <ebb9@byu.net>
38650
38651         fchdir: port to mingw
38652         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38653         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38654         opened, then use a substitute.
38655         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38656         replacement.
38657         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38658         (_gl_register_fd): No need to check stat if open already filters
38659         all directories.
38660         (fchdir): Fix error condition to match POSIX.
38661         * modules/fchdir (Depends-on): Add sys_stat.
38662         * doc/posix-functions/open.texi (open): Document the limitation.
38663         * modules/fchdir-tests: New file.
38664         * tests/test-fchdir.c: Likewise.
38665
38666         canonicalize: allow cross-testing from cygwin to mingw
38667         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38668         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38669         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38670         Likewise.
38671         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38672         target does not support symlinks.
38673         * tests/test-canonicalize-lgpl.sh: Likewise.
38674
38675         chown: avoid compilation warning on mingw
38676         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38677         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38678         mingw.
38679         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38680         * modules/chown (Depends-on): Add errno.
38681
38682 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38683
38684         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38685         command.
38686
38687 2009-08-31  Jim Meyering  <meyering@redhat.com>
38688
38689         canonicalize: remove useless initialization
38690         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38691         initialization of local, "end".
38692
38693 2009-08-30  Bruno Haible  <bruno@clisp.org>
38694
38695         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38696         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38697         ENOSYS.
38698
38699 2009-08-30  Bruno Haible  <bruno@clisp.org>
38700
38701         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38702         /usr/xpg4/bin/tr when it exists.
38703         * tests/test-pipe-filter-gi1.sh: Likewise.
38704
38705 2009-08-30  Bruno Haible  <bruno@clisp.org>
38706
38707         Work around deficient /usr/bin/id program on Solaris.
38708         * tests/test-file-has-acl.sh (ID): New variable.
38709         * tests/test-set-mode-acl.sh (ID): Likewise.
38710         * tests/test-copy-acl.sh (ID): Likewise.
38711         * tests/test-copy-file.sh (ID): Likewise.
38712
38713 2009-08-30  Bruno Haible  <bruno@clisp.org>
38714
38715         New module 'xstriconveh'.
38716         * lib/xstriconveh.h: New file.
38717         * lib/xstriconveh.c: New file.
38718         * modules/xstriconveh: New file.
38719
38720 2009-08-30  Bruno Haible  <bruno@clisp.org>
38721
38722         Make it easier to use mem_cd_iconveh.
38723         * lib/striconveh.h (iconveh_t): New type.
38724         (iconveh_open, iconveh_close): New declarations.
38725         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38726         with a single 'const iconveh_t *' argument.
38727         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38728         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38729         with a single 'const iconveh_t *' argument.
38730         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38731         * tests/test-striconveh.c (main): Update.
38732         * NEWS: Mention the change.
38733
38734 2009-08-30  Bruno Haible  <bruno@clisp.org>
38735
38736         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38737         problem.
38738
38739 2009-08-30  Bruno Haible  <bruno@clisp.org>
38740
38741         Work around iconv_open problem on Solaris.
38742         * lib/iconv_open-solaris.gperf: New file.
38743         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38744         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38745         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38746         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38747         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38748         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38749
38750 2009-08-29  Jim Meyering  <meyering@redhat.com>
38751
38752         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38753         * top/maint.mk (cvs-check): Remove target; it was just an alias
38754         to the better-named vc-diff-check.
38755         (maintainer-distcheck): Remove rule.  It was used only from
38756         the (alpha/beta/major) target, and all of its commands but one
38757         were coreutils-specific.
38758         (vc-dist): Remove rule.
38759         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38760         Run vc-diff-check, not vc-dist.
38761         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38762
38763 2009-08-27  Bruno Haible  <bruno@clisp.org>
38764
38765         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38766         of 0.
38767
38768 2009-08-27  Bruno Haible  <bruno@clisp.org>
38769
38770         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38771         compilers.
38772         * doc/func.texi: Document the SunPRO C bug.
38773
38774 2009-08-27  Bruno Haible  <bruno@clisp.org>
38775
38776         Fix link error on Solaris.
38777         * tests/test-parse-duration.c (xstrdup): Remove function.
38778
38779 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38780
38781         ignore-value: handle pointer types, too
38782         * lib/ignore-value.h (__attribute__): Remove definition.
38783         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38784         of a more concise and more-often effective "(void) i" statement.
38785         (ignore_ptr): New function to suppress warnings from functions that
38786         return pointers, and to make it explicit that one function doesn't
38787         handle all cases.
38788
38789 2009-08-25  Bruno Haible  <bruno@clisp.org>
38790
38791         dup2: work around a Linux bug.
38792         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38793         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38794         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38795         Reported by Simon Josefsson.
38796
38797 2009-08-25  Jim Meyering  <meyering@redhat.com>
38798
38799         libguestfs uses gnulib
38800         * users.txt: Add libguestfs.
38801
38802 2009-08-24  Eric Blake  <ebb9@byu.net>
38803
38804         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38805         * lib/pipe2.c (includes): Add binary-io.h.
38806         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38807
38808 2009-08-24  Bruno Haible  <bruno@clisp.org>
38809
38810         Tolerate declared but missing accept4 syscall.
38811         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38812         available.
38813         * lib/sys_socket.in.h (accept4): If the function is already present,
38814         override it.
38815         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38816         * modules/accept4 (Makefile.am): Compile accept4.c always.
38817         Reported by Paolo Bonzini and Eric Blake.
38818
38819 2009-08-23  Bruno Haible  <bruno@clisp.org>
38820
38821         New module 'accept4'.
38822         * lib/sys_socket.in.h (accept4): New declaration.
38823         * lib/accept4.c: New file.
38824         * m4/accept4.m4: New file.
38825         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38826         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38827         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38828         HAVE_ACCEPT4.
38829         * modules/accept4: New file.
38830         * doc/glibc-functions/accept4.texi: Mention the new module.
38831
38832 2009-08-24  Jim Meyering  <meyering@redhat.com>
38833
38834         progname: also set global program_invocation_name, when possible
38835         Before this change, a libtool-enabled program that calls glibc's
38836         error function would report the program name as
38837         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38838         * modules/progname (configure.ac): Check for a declaration of
38839         program_invocation_name.
38840         * lib/progname.c:  Include <errno.h>.
38841         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38842         Set program_invocation_name.
38843
38844 2009-08-23  Bruno Haible  <bruno@clisp.org>
38845
38846         * lib/dup3.c: Include <string.h>.
38847
38848 2009-08-23  Bruno Haible  <bruno@clisp.org>
38849
38850         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38851         * lib/pipe2.c (pipe2): Likewise.
38852         Suggested by Eric Blake.
38853
38854 2009-08-23  Bruno Haible  <bruno@clisp.org>
38855
38856         Tolerate declared but missing dup3 syscall.
38857         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38858         * lib/unistd.in.h (dup3): If the function is already present,
38859         override it.
38860         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38861         * modules/dup3 (Makefile.am): Compile dup3.c always.
38862         Reported by Paolo Bonzini.
38863
38864 2009-08-23  Bruno Haible  <bruno@clisp.org>
38865
38866         Tolerate declared but missing pipe2 syscall.
38867         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38868         available.
38869         * lib/unistd.in.h (pipe2): If the function is already present,
38870         override it.
38871         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38872         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38873         Reported by Paolo Bonzini.
38874
38875 2009-08-23  Bruno Haible  <bruno@clisp.org>
38876
38877         * lib/pipe2.c (pipe2): Move #ifs inside function.
38878
38879 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38880
38881         quotearg: document limitations of quote_these_too
38882         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38883         those limitations are created.
38884         * lib/quotearg.h (set_char_quoting): Document that digits and
38885         letters that are special after backslash are not permitted.
38886         (quotearg_char): Cross-reference set_char_quoting documentation.
38887
38888 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38889
38890         quotearg: implement custom_quoting_style
38891         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38892         right_quote fields.
38893         (set_custom_quoting): New public function.
38894         (quotearg_buffer_restyled): Add left_quote and right_quote
38895         arguments, handle them very much like locale quoting, and update
38896         all uses.
38897         (quotearg_n_custom): New public function.
38898         (quotearg_n_custom_mem): New public function.
38899         (quotearg_custom): New public function.
38900         (quotearg_custom_mem): New public function.
38901         * lib/quotearg.h: Prototype and document new public functions.
38902         (enum quoting_style): For escape_quoting_style and
38903         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38904         ignored even though they're otherwise like c_quoting_style.
38905         Add custom_quoting_style member and document with comparison to
38906         clocale_quoting_style.
38907         * tests/test-quotearg.c (custom_quotes): New array.
38908         (custom_results): New array.
38909         (main): Extend to test custom quoting.
38910
38911 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38912
38913         quotearg: fix right quote escaping when it's in quote_these_too
38914         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38915         quote, be sure to prepend only one backslash.
38916         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38917         (main): Test it.
38918
38919 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38920
38921         quotearg-tests: test escaping of embedded locale quotes
38922         * tests/test-quotearg.c (struct result_strings): Add member for
38923         new input.
38924         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38925         (inputs): Add new input.
38926         (results_g): Add expected results.
38927         (flag_results): Likewise.
38928         (locale_results): Likewise.
38929         (compare_strings): Check those.
38930
38931 2009-08-23  Bruno Haible  <bruno@clisp.org>
38932
38933         Tests for module 'dup3'.
38934         * modules/dup3-tests: New file.
38935         * tests/test-dup3.c: New file.
38936
38937         New module 'dup3'.
38938         * lib/unistd.in.h (dup3): New declaration.
38939         * lib/dup3.c: New file.
38940         * m4/dup3.m4: New file.
38941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38942         HAVE_DUP3.
38943         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38944         * modules/dup3: New file.
38945         * doc/glibc-functions/dup3.texi: Mention the new module.
38946
38947 2009-08-23  Bruno Haible  <bruno@clisp.org>
38948
38949         Tweak the dup2 test.
38950         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38951         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38952         the test file is still empty. Fix argument order of lseek.
38953
38954 2009-08-23  Bruno Haible  <bruno@clisp.org>
38955
38956         Avoid test link errors when the modules getopt-gnu, gettext are used.
38957         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38958         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38959
38960 2009-08-23  Bruno Haible  <bruno@clisp.org>
38961
38962         Fix getdtablesize() on mingw.
38963         * lib/getdtablesize.c (getdtablesize): Implement differently.
38964         * lib/unistd.in.h (getdtablesize): Improve comment.
38965
38966 2009-08-23  Bruno Haible  <bruno@clisp.org>
38967
38968         New module 'mkostemp'.
38969         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38970         * lib/stdlib.in.h (mksotemp): New declaration.
38971         * lib/mkostemp.c: New file, from glibc with modifications.
38972         * lib/tempname.h (GT_FILE): Remove outdated comment.
38973         (gen_tempname): Add flags argument.
38974         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38975         (__GT_FILE): Map to 1.
38976         (small_open, large_open): Remove macros.
38977         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38978         * lib/mkstemp.c (mkstemp): Update.
38979         * lib/mkdtemp.c (mkdtemp): Likewise.
38980         * m4/mkostemp.m4: New file.
38981         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38982         HAVE_MKOSTEMP.
38983         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38984         HAVE_MKOSTEMP.
38985         * modules/mkostemp: New file, based on modules/mkstemp.
38986         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38987         * NEWS: Mention the change.
38988
38989 2009-08-23  Bruno Haible  <bruno@clisp.org>
38990
38991         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38992         Reported by Eric Blake.
38993
38994 2009-08-23  Bruno Haible  <bruno@clisp.org>
38995
38996         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38997         Reported by Eric Blake.
38998
38999 2009-08-23  Bruno Haible  <bruno@clisp.org>
39000
39001         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
39002         * modules/pipe2 (Depends-on): Likewise.
39003
39004 2009-08-23  Eric Blake  <ebb9@byu.net>
39005
39006         fcntl-h: add O_TTY_INIT support
39007         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
39008         * tests/test-fcntl-h.c (o): Test it.
39009         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39010
39011         fcntl-h: rename from fcntl, in preparation for fcntl(2)
39012         * modules/fcntl: Move <fcntl.h> header replacement...
39013         * modules/fcntl-h: ...to new name, so as not to collide with
39014         like-named function.
39015         * tests/test-fcntl.c: Rename...
39016         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39017         * modules/fcntl-tests: Rename...
39018         * modules/fcntl-h-tests: ...to this.  Update test file name.
39019         * modules/chdir-long (Depends-on): Update clients.
39020         * modules/chdir-safer (Depends-on): Likewise.
39021         * modules/fcntl-safer (Depends-on): Likewise.
39022         * modules/fts (Depends-on): Likewise.
39023         * modules/mkancesdirs (Depends-on): Likewise.
39024         * modules/mkdir-p (Depends-on): Likewise.
39025         * modules/open (Depends-on): Likewise.
39026         * modules/savewd (Depends-on): Likewise.
39027         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39028         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39029
39030 2009-08-22  Bruno Haible  <bruno@clisp.org>
39031
39032         * modules/binary-io (License): Relicense under LGPL.
39033         * modules/pipe2 (License): Likewise.
39034
39035 2009-08-22  Bruno Haible  <bruno@clisp.org>
39036
39037         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39038         return value.
39039         * lib/pipe-filter-gi.c (filter_init): Likewise.
39040         Reported by Eric Blake.
39041
39042 2009-08-22  Bruno Haible  <bruno@clisp.org>
39043
39044         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39045         * modules/pipe (Depends-on): Add pipe2.
39046
39047 2009-08-22  Bruno Haible  <bruno@clisp.org>
39048
39049         Tests for module 'pipe2'.
39050         * modules/pipe2-tests: New file.
39051         * tests/test-pipe2.c: New file.
39052
39053         New module 'pipe2'.
39054         * lib/unistd.in.h (pipe2): New declaration.
39055         * lib/pipe2.c: New file.
39056         * m4/pipe2.m4: New file.
39057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39058         HAVE_PIPE2.
39059         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39060         * modules/pipe2: New file.
39061         * doc/glibc-functions/pipe2.texi: Mention the new module.
39062
39063 2009-08-22  Bruno Haible  <bruno@clisp.org>
39064
39065         Reference some new glibc functions.
39066         * doc/glibc-functions/accept4.texi: New file.
39067         * doc/glibc-functions/dup3.texi: New file.
39068         * doc/glibc-functions/mkostemp.texi: New file.
39069         * doc/glibc-functions/pipe2.texi: New file.
39070         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39071         (Glibc sys/socket.h): Refer to accept4.
39072         (Glibc unistd.h): Refer to dup3, pipe2.
39073         Reported by Eric Blake.
39074
39075 2009-08-22  Jim Meyering  <meyering@redhat.com>
39076             Bruno Haible  <bruno@clisp.org>
39077
39078         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39079         This makes it so packages using automake-1.11's silent-rules option
39080         can print e.g., a single "GEN    configmake.h" line, rather than
39081         the 30+ statements that perform the job.  If you want to see the
39082         actual commands, you can still run "make V=1".
39083         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39084         so that make output is abbreviated when those variables are defined
39085         appropriately.
39086         * modules/argz: Likewise.
39087         * modules/arpa_inet: Likewise.
39088         * modules/byteswap: Likewise.
39089         * modules/configmake: Likewise.
39090         * modules/dirent: Likewise.
39091         * modules/errno: Likewise.
39092         * modules/fcntl: Likewise.
39093         * modules/float: Likewise.
39094         * modules/fnmatch: Likewise.
39095         * modules/getopt-posix: Likewise.
39096         * modules/glob: Likewise.
39097         * modules/iconv_open: Likewise.
39098         * modules/inttypes: Likewise.
39099         * modules/localcharset: Likewise.
39100         * modules/locale: Likewise.
39101         * modules/math: Likewise.
39102         * modules/netdb: Likewise.
39103         * modules/netinet_in: Likewise.
39104         * modules/poll: Likewise.
39105         * modules/posix_spawnp-tests: Likewise.
39106         * modules/sched: Likewise.
39107         * modules/search: Likewise.
39108         * modules/selinux-h: Likewise.
39109         * modules/signal: Likewise.
39110         * modules/spawn: Likewise.
39111         * modules/stdarg: Likewise.
39112         * modules/stdbool: Likewise.
39113         * modules/stddef: Likewise.
39114         * modules/stdint: Likewise.
39115         * modules/stdio: Likewise.
39116         * modules/stdlib: Likewise.
39117         * modules/string: Likewise.
39118         * modules/strings: Likewise.
39119         * modules/sys_file: Likewise.
39120         * modules/sys_ioctl: Likewise.
39121         * modules/sys_select: Likewise.
39122         * modules/sys_socket: Likewise.
39123         * modules/sys_stat: Likewise.
39124         * modules/sys_time: Likewise.
39125         * modules/sys_times: Likewise.
39126         * modules/sys_utsname: Likewise.
39127         * modules/sys_wait: Likewise.
39128         * modules/sysexits: Likewise.
39129         * modules/time: Likewise.
39130         * modules/unistd: Likewise.
39131         * modules/wchar: Likewise.
39132         * modules/wctype: Likewise.
39133
39134 2009-08-22  Jim Meyering  <meyering@redhat.com>
39135
39136         announce-gen: detect write failure
39137         * build-aux/announce-gen: Add Coda at end.
39138         Remove equivalent-but-more-verbose block at top.
39139
39140 2009-08-19  Akim Demaille  <demaille@gostai.com>
39141
39142         bootstrap: --help to stdout.
39143         * bootstrap (usage): Don't send --help to stderr.
39144         Use a here doc instead of a long string.
39145
39146 2009-08-21  Eric Blake  <ebb9@byu.net>
39147
39148         test-popen-safer: split from test-popen
39149         * tests/test-popen.c (main): Move...
39150         * tests/test-popen.h: ...into new file.
39151         * tests/test-popen-safer2.c: New file.
39152         * modules/popen-tests (Files): Add test-popen.h.
39153         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39154         Suggested by Bruno Haible.
39155
39156         test-fcntl-safer: split from test-open
39157         * tests/test-open.c (main): Move...
39158         * tests/test-open.h: ...into new file.
39159         * tests/test-fcntl-safer.c: New file.
39160         * modules/open-tests (Files): Add test-open.h.
39161         * modules/fcntl-safer-tests: New file.
39162         Suggested by Bruno Haible.
39163
39164         test-fopen-safer: split from test-fopen
39165         * tests/test-fopen.c (main): Move...
39166         * tests/test-fopen.h: ...into new file.
39167         * tests/test-fopen-safer.c: New file.
39168         * modules/fopen-tests (Files): Add test-fopen.h.
39169         * modules/fopen-safer-tests: New file.
39170         Suggested by Bruno Haible.
39171
39172 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39173
39174         popen-safer: test O_CLOEXEC at run-time.
39175         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39176
39177 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39178
39179         fcntl: move more flags to the header
39180         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39181         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39182         * lib/fcntl.in.h: Do both things here.
39183
39184 2009-08-21  Jim Meyering  <meyering@redhat.com>
39185
39186         consistently remove $@-t before redirecting to it
39187         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39188         * modules/alloca-opt: Likewise.
39189         * modules/byteswap: Likewise.
39190         * modules/fnmatch: Likewise.
39191         * modules/getopt-posix: Likewise.
39192         * modules/glob: Likewise.
39193         * modules/poll: Likewise.
39194         * modules/posix_spawnp-tests: Likewise.
39195         * modules/sys_socket: Likewise.
39196         * modules/sysexits: Likewise.
39197
39198 2009-08-21  Eric Blake  <ebb9@byu.net>
39199
39200         popen: simplify access to original popen
39201         * lib/popen.c (rpl_popen): No need to worry about popen being a
39202         macro.
39203         Reported by Bruno Haible.
39204
39205 2009-08-20  Eric Blake  <ebb9@byu.net>
39206
39207         build: avoid some compiler warnings
39208         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39209         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39210         type.
39211         (new_exclude_segment, excluded_file_pattern_p)
39212         (excluded_file_name_p): Reduce scope.
39213         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39214         old-style declaration.
39215
39216 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39217
39218         * tests/test-exclude1.sh: Handle Windows EOL.
39219         * tests/test-exclude2.sh: Likewise.
39220         * tests/test-exclude3.sh: Likewise.
39221         * tests/test-exclude4.sh: Likewise.
39222         * tests/test-exclude5.sh: Likewise.
39223         * tests/test-exclude6.sh: Likewise.
39224         * tests/test-exclude7.sh: Likewise.
39225
39226 2009-08-19  Akim Demaille  <demaille@gostai.com>
39227
39228         bootstrap: find sha1sum when named gsha1sum.
39229         * bootstrap (find_tool): New.
39230         ($SHA1SUM): New.
39231         Use it.
39232
39233 2009-08-20  Jim Meyering  <meyering@redhat.com>
39234
39235         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39236         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39237         expression that converts "." in a file name to "\." in the resulting
39238         regexp.  Start with a dummy statement, so that prior shell variable
39239         definitions are expanded portably.  Reported by Simon Josefsson.
39240
39241 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39242
39243         Fix polling for writeability of a screen buffer.
39244         * lib/poll.c: Distinguish input and screen buffers for the
39245         Win32 implementation.
39246         * lib/select.c: Likewise.
39247
39248 2009-08-19  Eric Blake  <ebb9@byu.net>
39249
39250         popen-safer: prevent popen from clobbering std descriptors
39251         * modules/popen-safer: New file.
39252         * lib/popen-safer.c: Likewise.
39253         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39254         * lib/stdio--.h (popen): Provide override.
39255         * lib/stdio-safer.h (popen_safer): Provide declaration.
39256         * tests/test-popen.c (includes): Partially test this.
39257         * modules/popen-safer-tests: New file, for more tests.
39258         * tests/test-popen-safer.c: Likewise.
39259         * MODULES.html.sh (file stream based Input/Output): Mention it.
39260
39261         tests: test some of the *-safer modules
39262         * modules/fopen-safer (Depends-on): Add fopen.
39263         * modules/fcntl-safer (Depends-on): Add fcntl.
39264         * modules/stdlib-safer (Depends-on): Add stdlib.
39265         (configure.ac): Set indicator.
39266         * modules/unistd-safer (configure.ac): Likewise.
39267         * modules/tmpfile-safer (configure.ac): Likewise.
39268         (Depends-on): Add tmpfile.
39269         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39270         active.
39271         * tests/test-fopen.c (includes): Test safer versions when they are
39272         in use.
39273         * tests/test-open.c (includes): Likewise.
39274
39275         popen: fix cygwin 1.5 bug when stdin closed
39276         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39277         * modules/popen: New file.
39278         * modules/popen-tests: Likewise.
39279         * tests/test-popen.c: Likewise.
39280         * m4/popen.m4: Likewise.
39281         * lib/popen.c: Likewise.
39282         * lib/stdio.in.h (popen): New declaration.
39283         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39284         * modules/stdio (Makefile.am): Likewise.
39285         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39286
39287 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39288
39289         maint.mk: give full control over update-copyright exclusions
39290         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39291         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39292         (update-copyright): Don't force inclusion of top-level
39293         ChangeLog.  Don't force exclusion of all COPYING files, but make
39294         them the default exclusion instead.
39295
39296 2009-08-16  Bruno Haible  <bruno@clisp.org>
39297
39298         Fix test failures on Solaris 10.
39299         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39300         tests when Solaris iconv() is used.
39301         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39302         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39303         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39304         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39305         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39306
39307 2009-08-16  Bruno Haible  <bruno@clisp.org>
39308
39309         Fix test failures on Solaris 10.
39310         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39311         'tr' program and pass it as first argument.
39312         * tests/test-pipe-filter-gi1.sh: Likewise.
39313         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39314         program as first argument.
39315         * tests/test-pipe-filter-gi1.c (main): Likewise.
39316
39317 2009-08-16  Eric Blake  <ebb9@byu.net>
39318
39319         fpurge: fix previous commits
39320         * modules/fpurge (Makefile.am): Make replacement conditional,
39321         partially reverting 2007-04-29 change; missed in previous
39322         attempt.
39323         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39324         is missing.
39325
39326 2009-08-16  Bruno Haible  <bruno@clisp.org>
39327
39328         Clarify fpurge's effect on the file position.
39329         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39330         * tests/test-fpurge.c (main): Make a second pass for checking the file
39331         position.
39332
39333 2009-08-16  Bruno Haible  <bruno@clisp.org>
39334
39335         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39336         declaration of fpurge is missing.
39337         * tests/test-fpurge.c (main): Check that the file has not more contents
39338         than expected. Close the file before removing it.
39339
39340 2009-08-15  Eric Blake  <ebb9@byu.net>
39341
39342         fpurge: don't wrap working cygwin implementation
39343         * lib/fpurge.c (fpurge): Fix comment typo.
39344         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39345         1.7 to avoid replacement.
39346         * tests/test-fpurge.c (main): Enhance test.
39347
39348 2009-08-15  Eric Blake  <ebb9@byu.net>
39349         and Jim Meyering  <meyering@redhat.com>
39350
39351         test-update-copyright: skip if perl is insufficient
39352         * tests/test-update-copyright.sh: Failure to run maintainer tool
39353         should not cause testsuite failure on cygwin 1.5.
39354
39355 2009-08-14  Eric Blake  <ebb9@byu.net>
39356
39357         doc: mention more functions added in cygwin 1.7.0
39358         * doc/posix-headers/limits.texi (limits.h): Update for recent
39359         cygwin additions.
39360         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39361         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39362         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39363         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39364         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39365
39366 2009-08-14  Eric Blake  <ebb9@byu.net>
39367
39368         maint.mk: simplify update-copyright rule
39369         * top/maint.mk (update-copyright-local): Delete, and document how
39370         to do it in cfg.mk instead.
39371         (update-copyright-exclude-regexp): Delete, and document how to do
39372         it in .x-update-copyright instead.
39373         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39374         exclude ChangeLog.
39375
39376 2009-08-14  Bruno Haible  <bruno@clisp.org>
39377
39378         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39379
39380 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39381
39382         maint.mk: support update-copyright-env
39383         * top/maint.mk (update-copyright-env): Define place-holder.
39384         (update-copyright): Expand $(update-copyright-env) before
39385         invoking update-copyright.
39386
39387 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39388
39389         update-copyright: implement forced reformatting
39390         * build-aux/update-copyright: Implement and document
39391         UPDATE_COPYRIGHT_FORCE.
39392         * tests/test-update-copyright.sh: Test it.
39393
39394 2009-08-14  Eric Blake  <ebb9@byu.net>
39395         and Bruno Haible  <bruno@clisp.org>
39396
39397         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39398         * tests/test-locale.c: Revert previous patch related to NULL.
39399         * tests/test-stdio.c: Likewise.
39400         * tests/test-stdlib.c: Likewise.
39401         * tests/test-string.c: Likewise.
39402         * tests/test-unistd.c: Likewise.
39403         * modules/time-tests (Depends-on): Add verify.
39404         * modules/wchar-tests (Depends-on): Likewise.
39405         * tests/test-time.c: Test for NULL compliance.
39406         * tests/test-wchar.c: Likewise.
39407         * modules/locale (Depends-on): Add stddef.
39408         * modules/stdio (Depends-on): Likewise.
39409         * modules/stdlib (Depends-on): Likewise.
39410         * modules/string (Depends-on): Likewise.
39411         * modules/time (Depends-on): Likewise.
39412         * modules/unistd (Depends-on): Likewise.
39413         * modules/wchar (Depends-on): Likewise.
39414         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39415         * lib/stdlib.in.h (includes): Likewise.
39416         * lib/string.in.h (includes): Likewise.
39417         * lib/time.in.h (includes): Likewise.
39418         * lib/unistd.in.h (includes): Likewise.
39419         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39420         replaced.
39421         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39422         * m4/stddef_h.m4: New file.
39423         * modules/stddef: Likewise.
39424         * lib/stddef.in.h: Likewise.
39425         * modules/stddef-tests: Likewise.
39426         * tests/test-stddef.c: Likewise.
39427         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39428         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39429         * doc/posix-headers/locale.texi (locale.h): Likewise.
39430         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39431         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39432         * doc/posix-headers/string.texi (string.h): Likewise.
39433         * doc/posix-headers/time.texi (time.h): Likewise.
39434         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39435         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39436
39437 2009-08-14  Eric Blake  <ebb9@byu.net>
39438
39439         doc: improve git diff of texinfo files
39440         * .gitattributes: Add rule for *.texi files, with hint on how to
39441         use it.
39442         Copied from m4, and based on a report by Bruno Haible.
39443
39444 2009-08-14  Bruno Haible  <bruno@clisp.org>
39445
39446         Disable multithread support by default on Cygwin 1.5.x for real.
39447         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39448
39449 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39450
39451         update-copyright: much ado about intervals
39452         * build-aux/update-copyright: Implement and document
39453         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39454         of copyright year intervals.
39455         Also, document UPDATE_COPYRIGHT_YEAR.
39456         * tests/test-update-copyright.sh: Test it.
39457
39458         update-copyright: convert 2-digit to 4-digit years
39459         * build-aux/update-copyright: Implement and document.
39460         * tests/test-update-copyright.sh: Update.
39461
39462 2009-08-14  Jim Meyering  <meyering@redhat.com>
39463
39464         test-exclude: avoid coreutils "make check" failure
39465         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39466         just as in test-argmatch.c.
39467
39468 2009-08-13  Eric Blake  <ebb9@byu.net>
39469
39470         test-dup2: fix bad assumption
39471         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39472         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39473
39474         test-version-etc: fix CRLF portability issue
39475         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39476         recognize \r.
39477         * tests/test-argp-version-etc-1.sh: Likewise.
39478
39479         getopt: update client modules
39480         * modules/argp (Depends-on): Use getopt-gnu.
39481         * modules/git-merge-changelog (Depends-on): Likewise.
39482         * modules/long-options (Depends-on): Likewise.
39483         * modules/xstrtol (Depends-on): Likewise.
39484
39485 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39486
39487         * tests/test-version-etc.sh: Don't fail on different
39488         project/version.  Don't fail on CRLF differences.  Rewrite to use
39489         multiple -e instead of multiple sed forks, suggested by Eric Blake
39490         <ebb9@byu.net>.
39491         * tests/test-argp-version-etc-1.sh: Likewise.
39492
39493 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39494
39495         * tests/test-version-etc.sh: Don't fail on different
39496         project/version.
39497
39498 2009-08-12  Bruno Haible  <bruno@clisp.org>
39499
39500         Tests for modules 'getopt-posix', 'getopt-gnu'.
39501         * modules/getopt-posix-tests: New file.
39502         * tests/test-getopt.c: New file.
39503         * tests/test-getopt.h: New file.
39504         * tests/test-getopt_long.h: New file.
39505
39506         New modules 'getopt-posix', 'getopt-gnu'.
39507         * modules/getopt-gnu: New file, renamed from modules/getopt.
39508         * modules/getopt-posix: New file.
39509         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39510         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39511         (gl_GETOPT): Remove macro.
39512         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39513         Disable the test against BSD systems that declare optreset. Test
39514         against mingw bug. Test against lack of support of optional arguments
39515         on many platforms.
39516         * doc/glibc-headers/getopt.texi: Update module name and list of
39517         relevant platforms.
39518         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39519         'getopt-gnu' and more portability problems.
39520         * NEWS: Mention the changes.
39521
39522 2009-08-12  Bruno Haible  <bruno@clisp.org>
39523
39524         Ensure that optarg etc. get declared by <unistd.h>.
39525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39526         AC_USE_SYSTEM_EXTENSIONS.
39527         * modules/getopt (Depends-on): Add 'extensions'.
39528
39529 2009-08-12  Bruno Haible  <bruno@clisp.org>
39530
39531         Avoid test link errors.
39532         * modules/pipe-filter-ii-tests (Makefile.am): Define
39533         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39534         * modules/pipe-filter-gi-tests (Makefile.am): Define
39535         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39536         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39537
39538 2009-08-12  Bruno Haible  <bruno@clisp.org>
39539
39540         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39541         gl_GETOPT_SUBSTITUTE before.
39542         (gl_GETOPT): Use it.
39543         * m4/argp.m4 (gl_ARGP): Update.
39544         Reported by Sergey Poznyakoff.
39545
39546         * m4/getopt.m4: Reorder macros.
39547         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39548         (gl_GETOPT_SUBSTITUTE): Remove macro.
39549
39550 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39551
39552         Minor improvement in gitlog-to-changelog
39553
39554         * build-aux/gitlog-to-changelog: New option `--format' makes
39555         output format string configurable.
39556
39557 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39558
39559         Optimize exclude: use hash tables for non-wildcard patterns.
39560
39561         * lib/exclude.c: Include hash.h and mbuiter.h
39562         (struct exclude_pattern, exclude_segment): New data types.
39563         (struct exclude): Rewrite.
39564         (fnmatch_pattern_has_wildcards): New function.
39565         (new_exclude_segment, free_exclude_segment): New functions.
39566         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39567         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39568         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39569         * modules/exclude: Depend on hash and mbuiter.
39570
39571         * modules/exclude-tests: New file.
39572         * tests/test-exclude.c: New file.
39573         * tests/test-exclude1.sh: New file.
39574         * tests/test-exclude2.sh: New file.
39575         * tests/test-exclude3.sh: New file.
39576         * tests/test-exclude4.sh: New file.
39577         * tests/test-exclude5.sh: New file.
39578         * tests/test-exclude6.sh: New file.
39579         * tests/test-exclude7.sh: New file.
39580
39581 2009-08-12  Bruno Haible  <bruno@clisp.org>
39582
39583         Ensure that getopt() gets declared by <unistd.h>.
39584         * lib/unistd.in.h: Conditionally include getopt.h.
39585         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39586         Set GNULIB_UNISTD_H_GETOPT.
39587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39588         GNULIB_UNISTD_H_GETOPT.
39589         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39590
39591 2009-08-12  Bruno Haible  <bruno@clisp.org>
39592
39593         Clarify logic.
39594         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39595         gl_replace_getopt instead of GETOPT_H.
39596
39597 2009-08-12  Bruno Haible  <bruno@clisp.org>
39598
39599         * m4/getopt.m4: Add comments.
39600
39601 2009-08-12  Bruno Haible  <bruno@clisp.org>
39602
39603         Disable multithread support by default on Cygwin 1.5.x.
39604         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39605         set gl_use_threads=no if not specified otherwise.
39606
39607 2009-08-11  Bruno Haible  <bruno@clisp.org>
39608
39609         Avoid compilation error on NetBSD 5.0.
39610         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39611         * tests/test-stdio.c: Likewise.
39612         * tests/test-stdlib.c: Likewise.
39613         * tests/test-string.c: Likewise.
39614         * tests/test-unistd.c: Likewise.
39615         Reported by Greg Troxel <gdt@ir.bbn.com>
39616         at <https://savannah.gnu.org/support/?106973>.
39617
39618 2009-08-11  Bruno Haible  <bruno@clisp.org>
39619
39620         * modules/dup2-tests (Depends-on): Remove close.
39621
39622         Undo 2009-07-19 commit.
39623         * modules/acl-tests (Depends-on): Remove close.
39624         * modules/binary-io-tests (Depends-on): Likewise.
39625         * modules/closein-tests (Depends-on): Likewise.
39626         * modules/flock-tests (Depends-on): Likewise.
39627         * modules/fsync-tests (Depends-on): Likewise.
39628         * modules/lseek-tests (Depends-on): Likewise.
39629         * modules/pipe-tests (Depends-on): Likewise.
39630         * modules/posix_spawn-tests (Depends-on): Likewise.
39631         * modules/posix_spawnp-tests (Depends-on): Likewise.
39632         * modules/stat-time-tests (Depends-on): Likewise.
39633         * modules/yesno-tests (Depends-on): Likewise.
39634
39635 2009-08-10  Bruno Haible  <bruno@clisp.org>
39636
39637         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39638
39639 2009-08-10  Bruno Haible  <bruno@clisp.org>
39640
39641         Fix a gcc warning.
39642         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39643
39644 2009-08-10  Bruno Haible  <bruno@clisp.org>
39645
39646         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39647         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39648         not only the first time.
39649         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39650         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39651         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39652         is 1, not only the the first time.
39653
39654 2009-08-10  Bruno Haible  <bruno@clisp.org>
39655
39656         Make it possible to use module 'gethostname' without module 'close'.
39657         * lib/unistd.in.h (close): Evoke a link error only if
39658         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39660         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39661         * modules/unistd (Makefile.am): Substitute
39662         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39663         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39664         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39665         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39666         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39667         * modules/sys_ioctl (Makefile.am): Substitute
39668         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39669         * modules/socket (configure.ac): On native Windows, set
39670         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39671         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39672         Reported by Sam Steingold <sds@gnu.org>.
39673
39674 2009-08-10  Bruno Haible  <bruno@clisp.org>
39675
39676         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39677         * modules/ioctl (configure.ac): Likewise.
39678
39679 2009-08-10  Bruno Haible  <bruno@clisp.org>
39680
39681         Avoid collision between gnulib wrapper and libintl wrapper.
39682         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39683         already defined in intl/printf.c.
39684         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39685         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39686
39687 2009-08-09  Bruno Haible  <bruno@clisp.org>
39688
39689         Make <sys/select.h> really self-contained, also on Solaris 10.
39690         * lib/sys_select.in.h: Include <string.h>.
39691         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39692         Solaris 10 problem.
39693         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39694         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39695         Reported by Jim Meyering.
39696
39697 2009-08-09  Bruno Haible  <bruno@clisp.org>
39698
39699         Avoid warnings from 'aclocal' that are due to a use of macro name
39700         AM_XGETTEXT_OPTION that is not defined in automake.
39701         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39702         automake.
39703         * modules/error (configure.ac): Likewise.
39704         * modules/propername (configure.ac): Likewise.
39705         * modules/vasprintf (configure.ac): Likewise.
39706         * modules/verror (configure.ac): Likewise.
39707         * modules/xprintf (configure.ac): Likewise.
39708         * modules/xvasprintf (configure.ac): Likewise.
39709
39710 2009-08-08  Bruno Haible  <bruno@clisp.org>
39711
39712         Avoid compilation error in C++ mode.
39713         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39714         Reported by Sam Steingold <sds@gnu.org>.
39715
39716 2009-08-08  Bruno Haible  <bruno@clisp.org>
39717
39718         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39719         for the various Unix platforms.
39720         * doc/posix-headers/limits.texi: Update platforms list regarding
39721         HOST_NAME_MAX.
39722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39723
39724 2009-08-07  Jim Meyering  <meyering@redhat.com>
39725
39726         selinux-at: fix typo in a comment
39727         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39728         Spotted by Paolo Bonzini.
39729
39730         selinux-at: remove redundant m4 code, add documentation
39731         * modules/selinux-at (configure.ac): Remove redundant code.
39732         LIB_SELINUX is already set via the dependent module, selinux-h.
39733         (Include): Add quotes around selinux-at.h.
39734         * lib/selinux-at.h: Add documentation.
39735         Reported by Bruno Haible in
39736         http://marc.info/?l=gnulib-bug&m=124958988300749
39737
39738 2009-08-07  Bruno Haible  <bruno@clisp.org>
39739
39740         Avoid link error on MacOS X 10.3 and 10.4.
39741         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39742         on non-ELF systems.
39743         * lib/argp-pv.c (argp_program_version): Likewise.
39744         Reported by Simon Josefsson.
39745
39746 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39747
39748         * tests/test-version-etc.sh: Use $EXEEXT.
39749
39750 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39751
39752         update-copyright: update documentation to point to maint.mk
39753         * build-aux/update-copyright: Here.
39754
39755 2009-08-06  Jim Meyering  <meyering@redhat.com>
39756
39757         maint.mk: support update-copyright-local
39758         * top/maint.mk (update-copyright-local): Define place-holder.
39759         (update-copyright): Depend on $(update-copyright-local).
39760
39761 2009-08-06  Jim Meyering  <meyering@redhat.com>
39762
39763         selinux-at: new module
39764         Initially written for coreutils, this module will soon be
39765         used by findutils, too.
39766         * MODULES.html.sh [Misc]: Add selinux-at.
39767         * lib/selinux-at.h: New file, from coreutils.
39768         * lib/selinux-at.c: Likewise.
39769         * modules/selinux-at: Likewise.
39770         (License): Change from LGPL to GPL, since it depends
39771         on the GPL'd openat module.
39772
39773         doc: update README
39774         * README: Remove references to cogito.
39775         Remove cvs-repo-updating instructions from 2007.
39776         Don't imply that CVS is better if you have limited disk space.
39777
39778 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39779
39780         update-copyright: support C-style comments
39781         * build-aux/update-copyright: Implement and document.
39782         * tests/test-update-copyright.sh: Test.
39783
39784 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39785
39786         update-copyright: support omitted "(C)"
39787         * build-aux/update-copyright: Implement and document.  Also,
39788         allow variable whitespace before "(C)".
39789         * tests/test-update-copyright.sh: Test.
39790
39791 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39792
39793         update-copyright: don't trip on non-FSF copyright statements
39794         * build-aux/update-copyright: Fix so that the first correctly
39795         formatted FSF copyright statement is recognized no matter what
39796         appears before it.  Update documentation.
39797         * tests/test-update-copyright.sh: Test that.
39798
39799 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39800
39801         update-copyright: clean up code a little
39802         * build-aux/update-copyright: Append "_re" to the name of any
39803         variable holding a regular expression.
39804         Replace "old" and "new" with "stmt" in variable names.
39805         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39806         handled correctly.
39807         Format code more consistently.
39808
39809 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39810
39811         update-copyright-tests: improve portability
39812         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39813         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39814
39815 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39816
39817         update-copyright: support @copyright{} and &copy;
39818         * build-aux/update-copyright: Implement and document.
39819         * tests/test-update-copyright.sh: Test.
39820
39821 2009-08-04  Jim Meyering  <meyering@redhat.com>
39822
39823         update-copyright-tests: correctly test EOL=\r\n handling
39824         * tests/test-update-copyright.sh: Put \r at the end of some lines
39825         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39826
39827         maint.mk: make update-copyright exclusion list more configurable
39828         * top/maint.mk (update-copyright): Default to excluding COPYING,
39829         but allow an override, in case someone does want to update that file.
39830
39831         maint.mk: don't update copyright date in COPYING
39832         * top/maint.mk (update-copyright): Exclude COPYING.
39833
39834         maint.mk: add a copyright-updating rule
39835         * top/maint.mk (update-copyright): New rule.
39836         Derived from coreutils/Makefile.am.
39837
39838         update-copyright: rename some variables
39839         * build-aux/update-copyright: Rename a few variables for clarity.
39840         Tweak syntax.  List Joel E. Denny as coauthor.
39841
39842 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39843
39844         update-copyright: fix bug for 2-digit last year and add tests
39845         * build-aux/update-copyright: Fix bug.
39846         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39847         specified.
39848         * modules/update-copyright-tests: New
39849         * tests/test-update-copyright.sh: New.
39850
39851 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39852
39853         update-copyright: handle leading tabs in line prefix
39854         * build-aux/update-copyright: Count leading tabs as 8 spaces
39855         when computing margin.  This helps with the formatting of
39856         ChangeLogs, for example.
39857         Fix documentation a little.
39858
39859 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39860
39861         update-copyright: support EOL=\r\n
39862         * build-aux/update-copyright: Implement that.
39863
39864 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39865
39866         update-copyright: automatically format copyright statements
39867         * build-aux/update-copyright: Implement that.
39868         Also, be a little more predictable and safer by always failing
39869         when the full copyright format is not perfectly recognized as an
39870         unbroken whole.  Discussed at
39871         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39872         Rewrite documentation.
39873
39874 2009-08-03  Bruno Haible  <bruno@clisp.org>
39875
39876         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39877
39878 2009-08-02  Bruno Haible  <bruno@clisp.org>
39879
39880         Tests for module 'uname'.
39881         * modules/uname-tests: New file.
39882         * tests/test-uname.c: New file.
39883
39884         New module 'uname'.
39885         * lib/uname.c: New file.
39886         * m4/uname.m4: New file.
39887         * modules/uname: New file.
39888         * doc/posix-functions/uname.texi: Mention the new module.
39889
39890 2009-08-02  Bruno Haible  <bruno@clisp.org>
39891
39892         Tests for module 'sys_utsname'.
39893         * modules/sys_utsname-tests: New file.
39894         * tests/test-sys_utsname.c: New file.
39895
39896         New module 'sys_utsname'.
39897         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39898         * m4/sys_utsname_h.m4: New file.
39899         * modules/sys_utsname: New file.
39900         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39901
39902 2009-08-02  Bruno Haible  <bruno@clisp.org>
39903
39904         Implicitly initialize the sockets library.
39905         * lib/gethostname.c: Include sockets.h.
39906         (rpl_gethostname): Invoke gl_sockets_startup.
39907         * lib/socket.c: Include sockets.h.
39908         (rpl_socket): Invoke gl_sockets_startup.
39909         * modules/gethostname (Depends-on): Add sockets.
39910         * modules/socket (Depends-on): Likewise.
39911         * tests/test-poll.c: Don't include sockets.h.
39912         (main): Don't invoke gl_sockets_startup.
39913         * tests/test-select.c: Don't include sockets.h.
39914         (main): Don't invoke gl_sockets_startup.
39915
39916 2009-08-02  Bruno Haible  <bruno@clisp.org>
39917
39918         Allow multiple calls to gl_sockets_startup.
39919         * lib/sockets.c (initialized_sockets_version): New variable.
39920         (gl_sockets_startup): Do nothing if already called for this or a higher
39921         version.
39922         (gl_sockets_cleanup): Reset initialized_sockets_version.
39923
39924 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39925
39926         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39927         different project/version.
39928
39929 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39930             Bruno Haible  <bruno@clisp.org>
39931
39932         Tests for module 'pipe-filter-gi'.
39933         * modules/pipe-filter-gi-tests: New file.
39934         * tests/test-pipe-filter-gi1.sh: New file.
39935         * tests/test-pipe-filter-gi1.c: New file.
39936         * tests/test-pipe-filter-gi2.sh: New file.
39937         * tests/test-pipe-filter-gi2-main.c: New file.
39938         * tests/test-pipe-filter-gi2-child.c: New file.
39939
39940         New module 'pipe-filter-gi'.
39941         * lib/pipe-filter-gi.c: New file.
39942         * modules/pipe-filter-gi: New file.
39943
39944 2009-08-02  Bruno Haible  <bruno@clisp.org>
39945             Paolo Bonzini  <bonzini@gnu.org>
39946
39947         Tests for module 'pipe-filter-ii'.
39948         * modules/pipe-filter-ii-tests: New file.
39949         * tests/test-pipe-filter-ii1.sh: New file.
39950         * tests/test-pipe-filter-ii1.c: New file.
39951         * tests/test-pipe-filter-ii2.sh: New file.
39952         * tests/test-pipe-filter-ii2-main.c: New file.
39953         * tests/test-pipe-filter-ii2-child.c: New file.
39954
39955         New module 'pipe-filter-ii'.
39956         * lib/pipe-filter.h: New file.
39957         * lib/pipe-filter-ii.c: New file.
39958         * lib/pipe-filter-aux.h: New file.
39959         * modules/pipe-filter-ii: New file.
39960
39961 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39962
39963         * lib/gc-libgcrypt.c: Change copyright to FSF.
39964         * lib/gc-gnulib.c: Likewise.
39965
39966 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39967
39968         * lib/gethostname.c: Include limits.h.
39969
39970 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39971             Bruno Haible  <bruno@clisp.org>
39972
39973         Ensure HOST_NAME_MAX as part of the gethostname module.
39974         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39975         define also HOST_NAME_MAX.
39976         * tests/test-gethostname.c: Include <limits.h>.
39977         (main): Check also HOST_NAME_MAX.
39978         * doc/posix-headers/limits.texi: Document the mingw problem.
39979
39980 2009-08-02  Bruno Haible  <bruno@clisp.org>
39981
39982         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39983         Add comments.
39984
39985 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39986
39987         * lib/gethostname.c: Add Windows wrapper.
39988         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39989         * modules/gethostname: Depend on sys_socket & errno, for also
39990         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39991         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39992
39993 2009-07-31  Jim Meyering  <meyering@redhat.com>
39994
39995         getloadavg: fix symbol name in comment
39996         * lib/getloadavg.c: Correct a typo I introduced when adding
39997         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39998         Matt Kraai spotted the problem.
39999
40000 2009-07-29  Matt Kraai  <mkraai@beckman.com>
40001
40002         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
40003         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
40004         code also if ! defined N_NAME_POINTER.
40005         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
40006         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
40007         but the n_name member is a 12-byte array.
40008
40009 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
40010
40011         update-copyright: generalize comment handling
40012         * build-aux/update-copyright: Handle copyright statements
40013         within more comment styles.
40014         Document usage.
40015         Report any file with an external copyright holder or parse failure.
40016
40017 2009-07-29  Jim Meyering  <meyering@redhat.com>
40018
40019         mktime: correct setting of REPLACE_MKTIME
40020         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40021
40022         update-copyright: new module
40023         * modules/update-copyright: New file.
40024         * build-aux/update-copyright: New file.
40025         * MODULES.html.sh (maint+release support): Add update-copyright.
40026
40027 2009-07-27  Bruno Haible  <bruno@clisp.org>
40028
40029         Fix compilation error when <ctime> is used and mktime is replaced.
40030         * lib/time.in.h (mktime): New declaration.
40031         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40032         REPLACE_MKTIME instead of defining mktime in config.h.
40033         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40034         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40035         Reported by Ross McFarland <rwmcfa1@neces.com>.
40036
40037 2009-07-27  Bruno Haible  <bruno@clisp.org>
40038
40039         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40040         Reported by Matt Kraai <mkraai@beckman.com>.
40041
40042 2009-07-25  Jim Meyering  <meyering@redhat.com>
40043
40044         maint.mk: avoid warnings about missing files
40045         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40046         diagnostic when .prev-version does not exist.
40047         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40048         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40049         nonexistent cfg.mk.
40050         Suggestions from Simon Josefsson.
40051
40052 2009-07-25  Bruno Haible  <bruno@clisp.org>
40053
40054         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40055         defined as macros. Needed on QNX 6.4.1.
40056         Reported by Matt Kraai <mkraai@beckman.com>.
40057
40058 2009-07-23  Jim Meyering  <meyering@redhat.com>
40059
40060         maint.mk: invoke "make dist" with a working value of XZ_OPT
40061         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40062
40063 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40064
40065         Make fseeko.c compile on QNX.
40066         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40067
40068 2009-07-22  Peter Simons  <simons@cryp.to>
40069
40070         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40071         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40072         * lib/md4.h: Likewise.
40073         * lib/md5.h: Likewise.
40074         * lib/sha1.h: Likewise.
40075         * lib/sha256.h: Likewise.
40076         * lib/sha512.h: Likewise.
40077
40078         tests-sha1: don't assign literal string to 'char *' variable
40079         * tests/test-sha1.c (main): Declare locals with "const" to match
40080         attributes of the right hand side.
40081
40082 2009-07-21  Eric Blake  <ebb9@byu.net>
40083
40084         dup2: fix more mingw problems
40085         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40086         fd to itself.
40087         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40088         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40089         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40090         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40091         care of mingw bugs.
40092
40093 2009-07-21  Jim Meyering  <meyering@redhat.com>
40094
40095         vc-list-files: avoid failure when /bin/sh is dash
40096         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40097         On some Debian based systems, /bin/sh is a symlink to dash, and running
40098         this command would omit the "/" following each 'tests' prefix:
40099           dash -x build-aux/vc-list-files -C . tests
40100         That is because bash and dash work differently:
40101           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40102           bash ok
40103           dash odd
40104
40105 2009-07-21  Eric Blake  <ebb9@byu.net>
40106
40107         dup2-tests: test previous patch
40108         * modules/dup2-tests: New file.
40109         * tests/test-dup2.c: Likewise.
40110         * tests/test-open.c (main): Avoid unspecified behavior.
40111         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40112         test.
40113
40114         dup2: work around mingw and cygwin 1.5 bug
40115         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40117         * modules/unistd (Makefile.am): Substitute it.
40118         * lib/unistd.in.h (dup2): Declare the replacement.
40119         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40120         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40121         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40122         * modules/execute (Depends-on): Add dup2.
40123         * modules/fseterr (Depends-on): Likewise.
40124         * modules/pipe (Depends-on): Likewise.
40125         * modules/posix_spawn-internal (Depends-on): Likewise.
40126
40127 2009-07-21  Bruno Haible  <bruno@clisp.org>
40128
40129         * modules/.gitattributes: New file.
40130
40131 2009-07-20  Bruno Haible  <bruno@clisp.org>
40132
40133         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40134         (main): Use it.
40135
40136 2009-07-20  Eric Blake  <ebb9@byu.net>
40137
40138         test-pipe: make a bit more robust.
40139         * tests/test-pipe.c (myerr): Allow error messages regardless of
40140         what we do to stderr.
40141         (test_pipe): Rearrange to avoid deadlock.
40142         (child_main): Try a larger read, to ensure we avoided deadlock.
40143         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40144         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40145         if misused.
40146
40147 2009-07-19  Jim Meyering  <meyering@redhat.com>
40148
40149         fts: avoid false-positive cycle-detection
40150         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40151         for each new command line argument.
40152
40153 2009-07-19  Bruno Haible  <bruno@clisp.org>
40154
40155         Fix build error on mingw with the modules sys_select and unistd.
40156         * modules/acl-tests (Depends-on): Add close.
40157         * modules/binary-io-tests (Depends-on): Likewise.
40158         * modules/closein-tests (Depends-on): Likewise.
40159         * modules/flock-tests (Depends-on): Likewise.
40160         * modules/fsync-tests (Depends-on): Likewise.
40161         * modules/lseek-tests (Depends-on): Likewise.
40162         * modules/pipe-tests (Depends-on): Likewise.
40163         * modules/posix_spawn-tests (Depends-on): Likewise.
40164         * modules/posix_spawnp-tests (Depends-on): Likewise.
40165         * modules/stat-time-tests (Depends-on): Likewise.
40166         * modules/yesno-tests (Depends-on): Likewise.
40167
40168 2009-07-19  Bruno Haible  <bruno@clisp.org>
40169
40170         Unify conditionals.
40171         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40172         macros, not at the compiler macros.
40173         * lib/pipe.c: Likewise.
40174         * lib/execute.c: Likewise.
40175         * lib/spawni.c: Likewise.
40176
40177 2009-07-19  Bruno Haible  <bruno@clisp.org>
40178
40179         Fix handling of closed stdin/stdout/stderr on mingw.
40180         * lib/w32spawn.h: Include unistd.h.
40181         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40182         file descriptor with O_NOINHERIT flag.
40183         (fd_safer_noinherit): New function, based on fd-safer.c.
40184         (dup_safer_noinherit): New function, based on dup-safer.c.
40185         (undup_safer_noinherit): New function.
40186         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40187         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40188         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40189         instead of fd_safer.
40190         * tests/test-pipe.c: Include <windows.h>.
40191         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40192         result.
40193
40194         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40195         from main.
40196         (test_pipe): Pass an extra argument for disambiguation.
40197         (main): Invoke parent_main or child_main.
40198
40199         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40200         consistently.
40201
40202 2009-07-18  Eric Blake  <ebb9@byu.net>
40203
40204         test-pipe: fix mingw build
40205         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40206
40207 2009-07-18  Bruno Haible  <bruno@clisp.org>
40208
40209         * modules/pipe-tests (Makefile.am): Fix typo.
40210
40211 2009-07-18  Eric Blake  <ebb9@byu.net>
40212
40213         error: fix mingw build
40214         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40215         Reported by Bruno Haible.
40216
40217         error: avoid undefined use of stdout
40218         * lib/error.c (error, error_at_line): Check that fd 1 is open
40219         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40220         is handling faults and the close_stdout module wants to report the
40221         detection of closed stdout as an error.
40222
40223 2009-07-17  Eric Blake  <ebb9@byu.net>
40224
40225         pipe: be robust in face of closed fds
40226         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40227         should cause child to misbehave.
40228         * modules/pipe-tests: New module.
40229         * tests/test-pipe.c: New file.
40230         * tests/test-pipe.sh: New file.
40231         Reported by Akim Demaille.
40232
40233 2009-07-14  Bruno Haible  <bruno@clisp.org>
40234
40235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40236         Reported by anonymous kc.
40237
40238 2009-07-07  Jim Meyering  <meyering@redhat.com>
40239
40240         maint.mk: don't look for translatable strings in *.m4 or *.mk
40241         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40242         when searching for translatable strings.
40243
40244 2009-07-05  Jim Meyering  <meyering@redhat.com>
40245
40246         remove superfluous parentheses in STREQ definition
40247         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40248         * lib/getugroups.c (STREQ): Likewise.
40249         * lib/fnmatch.c (STREQ): Likewise.
40250         Spotted by Bruno Haible.
40251
40252 2009-07-04  Jim Meyering  <meyering@redhat.com>
40253
40254         argv-iter: new module
40255         * MODULES.html.sh: Add argv-iter.
40256         * lib/argv-iter.c, lib/argv-iter.h: New files.
40257         * modules/argv-iter: New file.
40258         * modules/argv-iter-tests: New file.
40259         * tests/test-argv-iter.c: Test it.
40260
40261 2009-07-04  Bruno Haible  <bruno@clisp.org>
40262
40263         Fix assertion.
40264         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40265         contains more exact copies of a given entry than file2, leave the extra
40266         copies unpaired rather than aborting.
40267         Reported by Eric Blake.
40268
40269 2009-07-02  Bruno Haible  <bruno@clisp.org>
40270
40271         Speedup git-merge-changelog for git cherry-pick.
40272         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40273         (entries_mapping_get): New function, extracted from compute_mapping.
40274         (entries_mapping_reverse_get): New function.
40275         (compute_mapping): Add a 'full' argument. Return the result in a
40276         'struct entries_mapping'.
40277         (main): Update. Access the mappings through entries_mapping_get.
40278         Reported by Eric Blake.
40279
40280 2009-07-02  Bruno Haible  <bruno@clisp.org>
40281
40282         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40283         best_i.
40284
40285 2009-07-02  Bruno Haible  <bruno@clisp.org>
40286
40287         Speed up approximate search for matching ChangeLog entries.
40288         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40289         argument. Call fstrcmp_bounded instead of fstrcmp.
40290         (compute_mapping, try_split_merged_entry, main): Update callers.
40291
40292 2009-07-02  Bruno Haible  <bruno@clisp.org>
40293
40294         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40295
40296 2009-06-30  Bruno Haible  <bruno@clisp.org>
40297
40298         Reduce the number of uc_is_cased calls.
40299         * lib/unicase.h (casing_suffix_context_t): Add
40300         'first_char_except_ignorable' field.
40301         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40302         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40303         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40304         Update initializer.
40305         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40306         case-ignorable characters.
40307         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40308         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40309         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40310         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40311         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40312
40313 2009-06-30  Bruno Haible  <bruno@clisp.org>
40314
40315         Tests for module 'unicase/ignorable'.
40316         * modules/unicase/ignorable-tests: New file.
40317         * tests/unicase/test-ignorable.c: New file, generated by
40318         gen-uni-tables.
40319
40320         Tests for module 'unicase/cased'.
40321         * modules/unicase/cased-tests: New file.
40322         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40323         * tests/unicase/test-predicate-part1.h: New file, derived from
40324         tests/unictype/test-predicate-part1.h.
40325         * tests/unicase/test-predicate-part2.h: New file, same as
40326         tests/unictype/test-predicate-part2.h.
40327
40328         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40329         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40330         (output_casing_properties): New function.
40331         (main): Call it.
40332         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40333         * lib/unicase/cased.c: Include unictype/bitmap.h.
40334         (uc_is_cased): Define through a bitmap lookup.
40335         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40336         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40337         (uc_is_case_ignorable): Define through a bitmap lookup.
40338         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40339         lib/unictype/bitmap.h.
40340         (Depends-on): Add inline. Clean up.
40341         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40342         lib/unictype/bitmap.h.
40343         (Depends-on): Add inline. Clean up.
40344         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40345         recognition.
40346         * tests/unicase/test-u16-tolower.c (main): Likewise.
40347         * tests/unicase/test-u32-tolower.c (main): Likewise.
40348
40349 2009-06-30  Bruno Haible  <bruno@clisp.org>
40350
40351         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40352         * lib/unicase/u16-casemap.c: Likewise.
40353         * lib/unicase/u32-casemap.c: Likewise.
40354
40355 2009-06-29  Bruno Haible  <bruno@clisp.org>
40356
40357         Define u32_casefold as a wrapper around u32_ct_casefold.
40358         * lib/unicase/u32-casefold.c: Update.
40359         * modules/unicase/u32-casefold (Depends-on): Add
40360         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40361         unicase/empty-suffix-context. Clean up.
40362
40363         Define u16_casefold as a wrapper around u16_ct_casefold.
40364         * lib/unicase/u16-casefold.c: Update.
40365         * modules/unicase/u16-casefold (Depends-on): Add
40366         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40367         unicase/empty-suffix-context. Clean up.
40368
40369         Define u8_casefold as a wrapper around u8_ct_casefold.
40370         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40371         * lib/unicase/u8-casefold.c: Update.
40372         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40373         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40374
40375         Define u32_totitle as a wrapper around u32_ct_totitle.
40376         * lib/unicase/u32-totitle.c: Update.
40377         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40378         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40379
40380         Define u16_totitle as a wrapper around u16_ct_totitle.
40381         * lib/unicase/u16-totitle.c: Update.
40382         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40383         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40384
40385         Define u8_totitle as a wrapper around u8_ct_totitle.
40386         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40387         functions.
40388         (FUNC): Delegate to U_CT_TOTITLE.
40389         * lib/unicase/u8-totitle.c: Update.
40390         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40391         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40392
40393         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40394         invocation.
40395         * modules/unicase/u32-tolower (Depends-on): Add
40396         unicase/empty-prefix-context, unicase/empty-suffix-context.
40397
40398         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40399         invocation.
40400         * modules/unicase/u16-tolower (Depends-on): Add
40401         unicase/empty-prefix-context, unicase/empty-suffix-context.
40402
40403         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40404         * modules/unicase/u8-tolower (Depends-on): Add
40405         unicase/empty-prefix-context, unicase/empty-suffix-context.
40406
40407         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40408         invocation.
40409         * modules/unicase/u32-toupper (Depends-on): Add
40410         unicase/empty-prefix-context, unicase/empty-suffix-context.
40411
40412         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40413         invocation.
40414         * modules/unicase/u16-toupper (Depends-on): Add
40415         unicase/empty-prefix-context, unicase/empty-suffix-context.
40416
40417         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40418         * modules/unicase/u8-toupper (Depends-on): Add
40419         unicase/empty-prefix-context, unicase/empty-suffix-context.
40420
40421         New module 'unicase/u32-ct-casefold'.
40422         * lib/unicase/u32-ct-casefold.c: New file.
40423         * modules/unicase/u32-ct-casefold: New file.
40424
40425         New module 'unicase/u16-ct-casefold'.
40426         * lib/unicase/u16-ct-casefold.c: New file.
40427         * modules/unicase/u16-ct-casefold: New file.
40428
40429         New module 'unicase/u8-ct-casefold'.
40430         * lib/unicase/u8-ct-casefold.c: New file.
40431         * lib/unicase/u-ct-casefold.h: New file, derived from
40432         lib/unicase/u-casefold.h.
40433         * modules/unicase/u8-ct-casefold: New file.
40434
40435         New module 'unicase/u32-ct-totitle'.
40436         * lib/unicase/u32-ct-totitle.c: New file.
40437         * modules/unicase/u32-ct-totitle: New file.
40438
40439         New module 'unicase/u16-ct-totitle'.
40440         * lib/unicase/u16-ct-totitle.c: New file.
40441         * modules/unicase/u16-ct-totitle: New file.
40442
40443         New module 'unicase/u8-ct-totitle'.
40444         * lib/unicase/u8-ct-totitle.c: New file.
40445         * lib/unicase/u-ct-totitle.h: New file, derived from
40446         lib/unicase/u-totitle.h.
40447         * modules/unicase/u8-ct-totitle: New file.
40448
40449         New module 'unicase/u32-ct-tolower'.
40450         * lib/unicase/u32-ct-tolower.c: New file.
40451         * modules/unicase/u32-ct-tolower: New file.
40452
40453         New module 'unicase/u16-ct-tolower'.
40454         * lib/unicase/u16-ct-tolower.c: New file.
40455         * modules/unicase/u16-ct-tolower: New file.
40456
40457         New module 'unicase/u8-ct-tolower'.
40458         * lib/unicase/u8-ct-tolower.c: New file.
40459         * modules/unicase/u8-ct-tolower: New file.
40460
40461         New module 'unicase/u32-ct-toupper'.
40462         * lib/unicase/u32-ct-toupper.c: New file.
40463         * modules/unicase/u32-ct-toupper: New file.
40464
40465         New module 'unicase/u16-ct-toupper'.
40466         * lib/unicase/u16-ct-toupper.c: New file.
40467         * modules/unicase/u16-ct-toupper: New file.
40468
40469         New module 'unicase/u8-ct-toupper'.
40470         * lib/unicase/u8-ct-toupper.c: New file.
40471         * modules/unicase/u8-ct-toupper: New file.
40472
40473         Add context arguments to u*_casemap functions.
40474         * lib/unicase/unicasemap.h: Include unicase.h.
40475         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40476         suffix_context arguments.
40477         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40478         functions.
40479         (FUNC): Add prefix_context and suffix_context arguments. Use
40480         uc_is_cased and uc_is_case_ignorable.
40481         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40482         * lib/unicase/u16-casemap.c: Likewise.
40483         * lib/unicase/u32-casemap.c: Likewise.
40484         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40485         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40486         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40487         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40488         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40489         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40490
40491         New module 'unicase/u32-suffix-context'.
40492         * lib/unicase/u32-suffix-context.c: New file.
40493         * modules/unicase/u32-suffix-context: New file.
40494
40495         New module 'unicase/u16-suffix-context'.
40496         * lib/unicase/u16-suffix-context.c: New file.
40497         * modules/unicase/u16-suffix-context: New file.
40498
40499         New module 'unicase/u8-suffix-context'.
40500         * lib/unicase/u8-suffix-context.c: New file.
40501         * lib/unicase/u-suffix-context.h: New file.
40502         * modules/unicase/u8-suffix-context: New file.
40503
40504         New module 'unicase/empty-suffix-context'.
40505         * lib/unicase/empty-suffix-context.c: New file.
40506         * modules/unicase/empty-suffix-context: New file.
40507
40508         New module 'unicase/u32-prefix-context'.
40509         * lib/unicase/u32-prefix-context.c: New file.
40510         * modules/unicase/u32-prefix-context: New file.
40511
40512         New module 'unicase/u16-prefix-context'.
40513         * lib/unicase/u16-prefix-context.c: New file.
40514         * modules/unicase/u16-prefix-context: New file.
40515
40516         New module 'unicase/u8-prefix-context'.
40517         * lib/unicase/u8-prefix-context.c: New file.
40518         * lib/unicase/u-prefix-context.h: New file.
40519         * lib/unicase/context.h: New file.
40520         * modules/unicase/u8-prefix-context: New file.
40521
40522         New module 'unicase/empty-prefix-context'.
40523         * lib/unicase/empty-prefix-context.c: New file.
40524         * modules/unicase/empty-prefix-context: New file.
40525
40526         New module 'unicase/ignorable'.
40527         * lib/unicase/ignorable.c: New file.
40528         * modules/unicase/ignorable: New file.
40529
40530         New module 'unicase/cased'.
40531         * lib/unicase/caseprop.h: New file.
40532         * lib/unicase/cased.c: New file.
40533         * modules/unicase/cased: New file.
40534
40535         New functions for case mapping of substrings.
40536         * lib/unicase.h (casing_prefix_context_t): New type.
40537         (unicase_empty_prefix_context): New variable.
40538         (u8_casing_prefix_context, u16_casing_prefix_context,
40539         u32_casing_prefix_context, u8_casing_prefixes_context,
40540         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40541         declarations.
40542         (casing_suffix_context_t): New type.
40543         (unicase_empty_suffix_context): New variable.
40544         (u8_casing_suffix_context, u16_casing_suffix_context,
40545         u32_casing_suffix_context, u8_casing_suffixes_context,
40546         u16_casing_suffixes_context, u32_casing_suffixes_context,
40547         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40548         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40549         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40550         declarations.
40551
40552 2009-06-28  Jim Meyering  <meyering@redhat.com>
40553
40554         boostrap: indent only with spaces
40555         * build-aux/bootstrap: Indent only with spaces, never TABs.
40556
40557         bootstrap: split long lines
40558         * build-aux/bootstrap: Keep line length < 80.
40559
40560         bootstrap: sync from coreutils
40561         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40562         just as autoreconf does.  Verify a list of prerequisite
40563         package-name,version-number pairs if defined in bootstrap.conf.
40564         Refer to README-prereq, if prerequisites are not satisfied.
40565
40566 2009-06-27  Eric Blake  <ebb9@byu.net>
40567
40568         tests: add test for bogus NULL definition
40569         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40570         * tests/test-stdlib.c: Likewise.
40571         * tests/test-string.c: Likewise.
40572         * tests/test-locale.c: Likewise.
40573         * tests/test-unistd.c: Likewise.
40574         * modules/stdio-tests (Depends-on): Add verify.
40575         * modules/stdlib-tests (Depends-on): Likewise.
40576         * modules/string-tests (Depends-on): Likewise.
40577         * modules/locale-tests (Depends-on): Likewise.
40578         * modules/unistd-tests (Depends-on): Likewise.
40579
40580 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40581
40582         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40583         self-explaining comment.
40584         * m4/selinux-selinux-h: Update serial.
40585         (gl_LIBSELINUX): New macro, adding a warning for missing development
40586         packages to code extracted from...
40587         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40588         Add warning for missing development packages here, too.
40589
40590 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40591
40592         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40593
40594 2009-06-25  Eric Blake  <ebb9@byu.net>
40595
40596         version-etc: fix regression
40597         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40598         gcc.
40599         (version_etc): Use it, to catch bugs with trailing NULL.
40600         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40601         (version_etc_va): Fix logic bug.
40602         * modules/version-etc-tests: Add test.
40603         * tests/test-version-etc.c: New file.
40604         * tests/test-version-etc.sh: Likewise.
40605
40606 2009-06-25  Sam Steingold  <sds@gnu.org>
40607
40608         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40609         mbtowc declaration.
40610
40611 2009-06-25  Eric Blake  <ebb9@byu.net>
40612
40613         fpurge: migrate into <stdio.h>
40614         * lib/fpurge.h: Delete...
40615         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40616         * lib/fpurge.c (fpurge): Change declaring header.
40617         * modules/fpurge (Files): Drop deleted file.
40618         (Depends-on): Add stdio.
40619         (configure.ac): Set witness.
40620         * modules/stdio (Makefile.am): Support fpurge macros.
40621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40622         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40623         * lib/fflush.c: Update client.
40624         * tests/test-fpurge.c: Likewise.
40625         * NEWS: Mention the change.
40626
40627 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40628
40629         * lib/argp-version-etc.c (program_authors): Add const
40630         qualifier.
40631         * lib/version-etc.c: Fix typos in the comments.
40632         * modules/argp-version-etc: Depends on version-etc.
40633
40634 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40635
40636         argp-version-etc: new module.
40637
40638         * lib/argp-version-etc.c: New file.
40639         * lib/argp-version-etc.h: New file.
40640         * modules/argp-version-etc: New file.
40641         * modules/argp-version-etc-tests: New file.
40642         * tests/test-argp-version-etc.c: New test.
40643         * tests/test-argp-version-etc-1.sh: New test.
40644
40645 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40646
40647         Provide additional interfaces and documentation for version-etc
40648         module.
40649
40650         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40651         interfaces.
40652         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40653         prototypes.
40654
40655 2009-06-24  Bruno Haible  <bruno@clisp.org>
40656
40657         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40658         HAVE_LIB${NAME} macro.
40659         Reported by Sam Steingold <sds@gnu.org>.
40660
40661 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40662
40663         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40664         needed.
40665
40666 2009-06-21  Bruno Haible  <bruno@clisp.org>
40667
40668         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40669         work.
40670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40671         together with LIB${NAME}, LTLIB${NAME}.
40672         Reported by Sam Steingold <sds@gnu.org>.
40673
40674 2009-06-20  Jim Meyering  <meyering@redhat.com>
40675
40676         tests: make sc_require_test_exit_idiom more generic
40677         * top/maint.mk (Exit_witness_file): New overridable variable.
40678         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40679         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40680
40681 2009-06-19  Jim Meyering  <meyering@redhat.com>
40682
40683         hash: reverse order of src/dst parameters in an internal interface
40684         * lib/hash.c (transfer_entries): Reverse order of parameters to
40685         put DST before SRC.  Adjust callers.
40686
40687         tests: test-hash: avoid wholesale duplication
40688         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40689         Instead, use a loop and add a single conditional.
40690
40691         tests: test-hash: allow seed selection via a command line argument
40692         * tests/test-hash.c (get_seed): New function.
40693         (main): Use it.
40694
40695 2009-06-19  Eric Blake  <ebb9@byu.net>
40696
40697         hash: avoid memory leak on allocation failure
40698         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40699         failure.  Factor repeated algorithm...
40700         (transfer_entries): ...into new helper routine.
40701         (hash_delete): React to hash_rehash return value.
40702
40703         hash: reduce memory pressure in hash_rehash no-op case
40704         * lib/hash.c (next_prime): Avoid overflow.
40705         (hash_initialize): Factor bucket size computation...
40706         (compute_bucket_size): ...into new helper function.
40707         (hash_rehash): Use new function and open coding to reduce memory
40708         pressure, and avoid a memory leak in USE_OBSTACK code.
40709         Reported by Jim Meyering.
40710
40711 2009-06-18  Eric Blake  <ebb9@byu.net>
40712
40713         hash: make rotation more obvious
40714         * modules/hash (Depends-on): Add bitrotate and stdint.
40715         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40716         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40717         (SIZE_MAX): Rely on headers for definition.
40718         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40719         (raw_hasher): Use rotr_sz.
40720         Suggested by Jim Meyering.
40721
40722         hash: fix memory leak in last patch
40723         * lib/hash.c (hash_rehash): Avoid memory leak.
40724
40725         hash: avoid no-op rehashing
40726         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40727
40728         hash: provide default callback functions
40729         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40730         (hash_initialize): Use them as defaults.
40731         * tests/test-hash.c (main): Test this.
40732
40733         hash: minor optimization
40734         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40735         when possible.
40736         (hash_initialize): Document this promise.
40737         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40738         * tests/test-hash.c (hash_compare_strings): Test this.
40739
40740 2009-06-18  Bruno Haible  <bruno@clisp.org>
40741
40742         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40743         going to be replaced anyway.
40744
40745 2009-06-18  Bruno Haible  <bruno@clisp.org>
40746
40747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40748         in one place.
40749         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40750         be replaced anyway.
40751
40752 2009-06-18  Eric Blake  <ebb9@byu.net>
40753
40754         hash: check for resize before insertion
40755         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40756         threshold before insertion, so that a pathological hash_rehash
40757         that fills every bucket can still trigger another rehash.
40758
40759 2009-06-18  Jim Meyering  <meyering@redhat.com>
40760
40761         hash-tests: add a loop around the small tests
40762         * tests/test-hash.c (main): Repeat small tests with selected
40763         small initial table sizes.
40764
40765 2009-06-17  Eric Blake  <ebb9@byu.net>
40766
40767         hash: minor cleanups
40768         * lib/hash.h (hash_entry): Make opaque, by moving...
40769         * lib/hash.c (hash_entry): ...here.
40770         (hash_insert): Clarify restrictions on what can be inserted.
40771         (hash_get_next): Clarify when it is safe to remove an element
40772         during traversal.
40773         (check_tuning): Skip verification when tuning is known safe.
40774         (hash_initialize): Clarify restrictions on tuning.
40775
40776 2009-06-17  Jim Meyering  <jim@meyering.net>
40777         and Eric Blake  <ebb9@byu.net>
40778
40779         hash-tests: new module
40780         * modules/hash-tests: New file.
40781         * tests/test-hash.c: New file.
40782
40783 2009-06-17  Eric Blake  <ebb9@byu.net>
40784
40785         strstr-simple: document new module
40786         * MODULES.html.sh: Document new module.
40787
40788         strstr, strcasestr: replace on platforms with broken memchr
40789         * modules/strstr: Split into...
40790         * modules/strstr-simple: ...new module that does not care about
40791         performance, but does care about glibc bug.
40792         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40793         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40794         if platform memchr is broken, per Debian bug 521737.
40795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40796         memchr.
40797         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40798         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40799         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40800         * modules/mountlist (Depends-on): Add strstr-simple.
40801         * modules/gen-uni-tables (Depends-on): Likewise.
40802         * modules/argz (Depends-on): Add strstr.
40803
40804 2009-06-17  Bruno Haible  <bruno@clisp.org>
40805
40806         * modules/posix_spawn-internal (Depends-on): Add errno.
40807
40808 2009-06-17  Bruno Haible  <bruno@clisp.org>
40809
40810         Define missing ESTALE on Interix 3.5.
40811         * lib/errno.in.h (ESTALE): Assign a value if missing.
40812         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40813         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40814         missing.
40815         * doc/posix-headers/errno.texi: Mention the Interix bug.
40816         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40817
40818 2009-06-15  Eric Blake  <ebb9@byu.net>
40819
40820         memchr, memchr2: add valgrind exception
40821         * lib/memchr.valgrind: New file.
40822         * lib/memchr2.valgrind: New file.
40823         * modules/memchr (Files): Distribute valgrind file.
40824         * modules/memchr2 (Files): Likewise.
40825
40826         docs: memchr is no longer obsolete
40827         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40828         * lib/string.in.h (memchr): Simplify logic.
40829
40830 2009-06-14  Jim Meyering  <meyering@redhat.com>
40831
40832         link-follow: fix the "checking..." message to not mention trailing slash
40833         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40834         never considered trailing slashes.
40835
40836 2009-06-14  Bruno Haible  <bruno@clisp.org>
40837
40838         * m4/memchr.m4: Mention also the bug on IA-64.
40839         * doc/posix-functions/memchr.texi: Likewise.
40840
40841 2009-06-12  Eric Blake  <ebb9@byu.net>
40842
40843         memchr: detect broken x86_64 and alpha implementations
40844         * modules/memchr-tests (Depends-on): Move mmap detection...
40845         * modules/memchr (Depends-on): ...here.
40846         (configure.ac): Set indicator.
40847         * lib/string.in.h (memchr): Declare replacement.
40848         * modules/string (Makefile.am): Trigger replacement.
40849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40850         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40851         bugs.
40852         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40853         * modules/getpagesize (License): Relax license.
40854
40855 2009-06-11  Bruno Haible  <bruno@clisp.org>
40856
40857         * lib/idpriv.h: Add more references.
40858
40859 2009-06-08  Bruno Haible  <bruno@clisp.org>
40860
40861         Tests for module 'idpriv-droptemp'.
40862         * modules/idpriv-droptemp-tests: New file.
40863         * tests/test-idpriv-droptemp.sh: New file.
40864         * tests/test-idpriv-droptemp.su.sh: New file.
40865         * tests/test-idpriv-droptemp.c: New file.
40866
40867         New module 'idpriv-droptemp'.
40868         * lib/idpriv-droptemp.c: New file.
40869         * modules/idpriv-droptemp: New file.
40870
40871 2009-06-08  Bruno Haible  <bruno@clisp.org>
40872
40873         Tests for module 'idpriv-drop'.
40874         * modules/idpriv-drop-tests: New file.
40875         * tests/test-idpriv-drop.sh: New file.
40876         * tests/test-idpriv-drop.su.sh: New file.
40877         * tests/test-idpriv-drop.c: New file.
40878
40879         New module 'idpriv-drop'.
40880         * lib/idpriv.h: New file.
40881         * lib-idpriv-drop.c: New file.
40882         * m4/idpriv.m4: New file.
40883         * modules/idpriv-drop: New file.
40884
40885 2009-06-08  Bruno Haible  <bruno@clisp.org>
40886
40887         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40888         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40889         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40890         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40891         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40892         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40893         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40894
40895 2009-06-08  Eric Blake  <ebb9@byu.net>
40896
40897         test-strstr: use memory fence, when possible
40898         * tests/test-strstr.c (main): Use memory fence, in order to be
40899         more likely to trigger Debian bug 521737.
40900         * modules/strstr-tests (Files): Pull in additional files.
40901
40902         memchr: no longer obsolete, for wider field testing
40903         * modules/memchr (Status, Notice): Delete, this module is no
40904         longer obsolete.
40905         * modules/vasnprintf (Depends-on): Add memchr.
40906
40907 2009-06-07  Jim Meyering  <meyering@redhat.com>
40908
40909         hash: declare some functions with the warn_unused_result attribute
40910         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40911
40912 2009-06-07  Bruno Haible  <bruno@clisp.org>
40913
40914         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40915         Reported by Eric Blake.
40916
40917 2009-06-06  Eric Blake  <ebb9@byu.net>
40918
40919         test-alignof: fix typo with long double
40920         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40921         compiler error.
40922
40923 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40924
40925         Escape non-texinfo { and }s.
40926         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40927         markup error.
40928
40929 2009-06-04  Jim Meyering  <meyering@redhat.com>
40930
40931         gitlog-to-changelog: don't infloop on an empty commit log
40932         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40933         Reported by Boris Petersen <transacid@centerim.org>.
40934
40935 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40936
40937         version-etc: extend for packagers
40938         Add three new configure options, intended for packagers:
40939           --with-packager="packager name"
40940           --with-packager-version="packager-specific version"
40941           --with-packager-bug-reports="packager bug reporting"
40942         An example with coreutils:
40943           $ ./configure \
40944             --with-packager=Gentoo \
40945             --with-packager-bug-report=http://bugs.gentoo.org/ \
40946             --with-packager-version="patchset 1.6"
40947           $ ./src/ls --version | head -n2
40948           ls (GNU coreutils) 7.1-dirty
40949           Packaged by Gentoo (patchset 1.6)
40950         Note that the bug reporting info via --help doesn't show up because
40951         coreutils uses its own custom emit_bug_reporting_address() implementation
40952         in src/system.h.  If it didn't, it'd look like:
40953           $ ./src/ls --help | tail -n4
40954           Report bugs to <bug-coreutils@gnu.org>.
40955           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40956           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40957           General help using GNU software: <http://www.gnu.org/gethelp/>.
40958         * lib/version-etc.c: Print new information, if provided.
40959         * m4/version-etc.m4: New file.
40960         * modules/version-etc (Files): Add m4/version-etc.m4.
40961         (configure.ac): Add gl_VERSION_ETC.
40962
40963 2009-05-31  Bruno Haible  <bruno@clisp.org>
40964
40965         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40966         and 'int64_t'.
40967         * modules/alignof-tests (Dependencies): Add stdint.
40968         Reported by Eric Blake.
40969
40970 2009-05-31  Bruno Haible  <bruno@clisp.org>
40971
40972         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40973         restriction due to compiler bugs.
40974         Reported by Eric Blake.
40975
40976 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40977             Bruno Haible  <bruno@clisp.org>
40978
40979         Fix test-alignof failure.
40980         * lib/alignof.h (alignof_slot): New macro.
40981         (alignof_type): New macro, with the same semantics as the previous
40982         'alignof'.
40983         (alignof): Alias to alignof_slot.
40984         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40985         check that the results are usable as constant expressions.
40986
40987 2009-05-31  Bruno Haible  <bruno@clisp.org>
40988
40989         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40990         * tests/test-memchr.c (main): Check that memchr does not read past the
40991         first occurrence of the byte.
40992         * tests/test-strstr.c (main): Update comment.
40993         Suggested by Eric Blake.
40994
40995 2009-05-30  Bruno Haible  <bruno@clisp.org>
40996
40997         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40998         detail how to use dumpbin.
40999         Reported by David Byron <dbyron@dbyron.com>.
41000
41001 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41002
41003         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
41004
41005 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41006
41007         * m4/manywarnings.m4: Add GCC 4.4 warnings.
41008
41009 2009-05-28  Bruno Haible  <bruno@clisp.org>
41010
41011         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
41012         build-aux/ files.
41013
41014 2009-05-28  Simon Josefsson  <simon@josefsson.org>
41015
41016         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41017
41018 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41019
41020         * gnulib-tool (sed_transform_main_lib_file)
41021         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41022         regexps.
41023
41024 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41025
41026         * tests/test-strstr.c: Add another self-test.
41027         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41028         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41029
41030 2009-05-23  Bruno Haible  <bruno@clisp.org>
41031
41032         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41033         change.
41034
41035 2009-05-21  Bruno Haible  <bruno@clisp.org>
41036
41037         Simplify use of mode_t varargs.
41038         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41039         uses 'mode_t' or 'int'.
41040         * lib/openat.c (openat): Likewise.
41041         * lib/open-safer.c (open_safer): Likewise.
41042         * m4/mode_t.m4: New file.
41043         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41044         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41045         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41046         * modules/open (Files): Add m4/mode_t.m4.
41047         * modules/openat (Files): Likewise.
41048         * modules/fcntl-safer (Files): Likewise.
41049         Suggested by Eric Blake.
41050
41051 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41052
41053         * doc/glibc-functions/fallocate.texi: New file.
41054         * doc/gnulib.texi: Include it.
41055
41056 2009-05-21  Eric Blake  <ebb9@byu.net>
41057             Bruno Haible  <bruno@clisp.org>
41058
41059         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41060         invocations.
41061         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41062
41063 2009-05-21  Eric Blake  <ebb9@byu.net>
41064             Bruno Haible  <bruno@clisp.org>
41065
41066         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41067         include_next. Fix of 2008-11-20 commit.
41068         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41069         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41070         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41071         NEXT_MATH_H.
41072         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41073         instead of NEXT_MATH_H.
41074
41075 2009-05-21  Bruno Haible  <bruno@clisp.org>
41076
41077         Avoid redefinition warnings for SIZE_MAX.
41078         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41079         Reported by Simon Josefsson.
41080
41081 2009-05-21  Bruno Haible  <bruno@clisp.org>
41082
41083         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41084         AC_CACHE_VAL.
41085
41086 2009-05-20  Bruno Haible  <bruno@clisp.org>
41087
41088         Make zeroptr.h work on mingw.
41089         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41090         mprotect.
41091         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41092         * modules/memchr2-tests (configure.ac): Likewise.
41093         * modules/memcmp-tests (configure.ac): Likewise.
41094         * modules/memmem-tests (configure.ac): Likewise.
41095         * modules/memrchr-tests (configure.ac): Likewise.
41096         Reported by Simon Josefsson.
41097
41098 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41099
41100         * tests/test-glob.c: Include string.h for strcmp prototype.
41101
41102 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41103
41104         * modules/getdelim (Depends-on): Add explicit stdint, although it
41105         was implicitly already pulled in via realloc-posix.
41106         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41107
41108 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41109
41110         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41111         G. Christensen" <tgc@jupiterrise.com>.
41112         * m4/sys_socket_h.m4: Check for sa_family_t.
41113         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41114         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41115         * tests/test-sys_socket.c: Check that sa_family_t works.
41116
41117 2009-05-18  Eric Blake  <ebb9@byu.net>
41118
41119         maint.mk: allow gnulib_dir in VPATH build
41120         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41121
41122 2009-05-15  Jim Meyering  <meyering@redhat.com>
41123
41124         maint.mk: Give gnulib_dir a default definition.
41125         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41126         Thus, most packages no longer need to specify this variable in cfg.mk
41127
41128 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41129
41130         rename.m4: fix typos that would make non-mingw cross-configure fail
41131         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41132
41133 2009-05-13  Eric Blake  <ebb9@byu.net>
41134
41135         mmap-anon: avoid out-of-order autoconf expansion
41136         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41137         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41138         * modules/memchr-tests (Depends-on): Add extensions.
41139         * modules/memchr2-tests (Depends-on): Add extensions.
41140         * modules/memcmp-tests (Depends-on): Add extensions.
41141         * modules/memmem-tests (Depends-on): Add extensions.
41142         * modules/memrchr-tests (Depends-on): Add extensions.
41143
41144 2009-05-13  Bruno Haible  <bruno@clisp.org>
41145
41146         Make some tests ISO C 99 compliant.
41147         * tests/zerosize-ptr.h: New file.
41148         * tests/test-memchr.c: Include zerosize-ptr.h.
41149         (main): Use a zero-size object pointer instead of NULL.
41150         * tests/test-memchr2.c: Include zerosize-ptr.h.
41151         (main): Use a zero-size object pointer instead of NULL.
41152         * tests/test-memcmp.c: Include zerosize-ptr.h.
41153         (main): Use a zero-size object pointer instead of NULL.
41154         * tests/test-memmem.c: Include zerosize-ptr.h.
41155         (main): Use a zero-size object pointer instead of NULL.
41156         * tests/test-memrchr.c: Include zerosize-ptr.h.
41157         (main): Use a zero-size object pointer instead of NULL.
41158         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41159         m4/mmap-anon.m4.
41160         (Depends-on): Add getpagesize.
41161         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41162         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41163         m4/mmap-anon.m4.
41164         (Depends-on): Add getpagesize.
41165         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41166         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41167         m4/mmap-anon.m4.
41168         (Depends-on): Add getpagesize.
41169         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41170         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41171         m4/mmap-anon.m4.
41172         (Depends-on): Add getpagesize.
41173         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41174         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41175         m4/mmap-anon.m4.
41176         (Depends-on): Add getpagesize.
41177         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41178
41179 2009-05-12  Bruno Haible  <bruno@clisp.org>
41180
41181         Tests for module 'alignof'.
41182         * modules/alignof-tests: New file.
41183         * tests/test-alignof.c: New file.
41184
41185 2009-05-12  Bruno Haible  <bruno@clisp.org>
41186
41187         Fix alignof macro.
41188         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41189         vendor compilers that are always correct.
41190
41191 2009-05-12  Bruno Haible  <bruno@clisp.org>
41192
41193         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41194         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41195         not whether its fully works.
41196
41197 2009-05-12  Bruno Haible  <bruno@clisp.org>
41198
41199         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41200
41201 2009-05-12  Jim Meyering  <meyering@redhat.com>
41202
41203         * top/maint.mk: Adjust backslash alignment.
41204
41205 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41206
41207         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41208
41209 2009-05-11  Eric Blake  <ebb9@byu.net>
41210
41211         argp: avoid undefined behavior
41212         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41213         macros.
41214
41215 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41216
41217         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41218         user.name to prevent git commit from complaining.
41219
41220 2009-05-10  Bruno Haible  <bruno@clisp.org>
41221
41222         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41223         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41224         it rewrites every file name only once.
41225         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41226
41227 2009-05-08  Bruno Haible  <bruno@clisp.org>
41228
41229         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41230         instead of 'max'.
41231
41232 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41233
41234         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41235         sockaddr_storage test.
41236
41237 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41238
41239         * modules/sys_socket (Makefile.am): Substitute
41240         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41241         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41242         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41243         * tests/test-sys_socket.c: Check sockaddr_storage.
41244
41245 2009-05-08  Bruno Haible  <bruno@clisp.org>
41246
41247         New module 'alignof'.
41248         * lib/alignof.h: New file.
41249         * modules/alignof: New file.
41250
41251 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41252             Bruno Haible  <bruno@clisp.org>
41253
41254         Fix test-file-has-acl on FreeBSD.
41255         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41256         mask is implicitly added.
41257         * tests/test-file-has-acl.c: Include <signal.h>.
41258         (main): Terminate the test after 5 seconds.
41259         * modules/acl-tests (configure.ac): Check for alarm function.
41260
41261 2009-05-04  Bruno Haible  <bruno@clisp.org>
41262
41263         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41264         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41265         * modules/errno (configure.ac): Drop AC_REQUIRE.
41266         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41267         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41268
41269 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41270
41271         * modules/glob-tests: New module.
41272         * tests/test-glob.c: Add.
41273
41274 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41275
41276         * modules/fnmatch-tests: New module.
41277         * tests/test-fnmatch.c: Add.
41278
41279 2009-05-04  Eric Blake  <ebb9@byu.net>
41280
41281         maint: make the new no-submodule-changes rule VPATH-safe
41282         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41283
41284 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41285             Bruno Haible  <bruno@clisp.org>
41286
41287         acl: Fix infinite loop on FreeBSD.
41288         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41289         of return value from acl_get_entry.
41290         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41291         Likewise.
41292
41293 2009-05-03  Bruno Haible  <bruno@clisp.org>
41294
41295         * lib/acl-internal.h (acl_entries): Clarify return value.
41296         * lib/acl_entries.c (acl_entries): Likewise.
41297
41298 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41299
41300         Bug fix in acl module.
41301         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41302
41303 2009-05-03  Bruno Haible  <bruno@clisp.org>
41304
41305         Create gperf-generated file in the source dir, not in the build dir.
41306         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41307         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41308         * modules/unicase/locale-language (unicase/locale-languages.h):
41309         Likewise.
41310         * modules/unicase/special-casing (unicase/special-casing-table.h):
41311         Likewise.
41312         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41313         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41314         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41315         Reported by Ralf Wildenhues.
41316
41317 2009-05-03  Bruno Haible  <bruno@clisp.org>
41318
41319         * modules/fnmatch (Description, configure.ac): Taken from
41320         fnmatch-posix.
41321         * modules/fnmatch-posix: Turn into a symbolic reference to the
41322         'fnmatch' module, and deprecate.
41323         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41324
41325 2009-05-03  Bruno Haible  <bruno@clisp.org>
41326
41327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41328         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41329         Reported by Ralf Wildenhues.
41330
41331 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41332
41333         * m4/fnmatch.m4: Fix fnmatch re-define.
41334
41335 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41336
41337         priv-set: new module and tests; adapt write-any-file
41338         * lib/priv-set.c: New file.
41339         * lib/priv-set.h: New file.
41340         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41341         * lib/write-any-file.c: Simplify by using priv-set module.
41342         * m4/priv-set.m4: New file.
41343         * modules/priv-set: New file.
41344         * modules/unlinkdir: Add dependency on priv-set module.
41345         * modules/write-any-file: Likewise.
41346
41347         Tests for module 'priv-set'.
41348         * modules/priv-set-tests: New file.
41349         * tests/test-priv-set.c: New file.
41350
41351 2009-05-03  Jim Meyering  <meyering@redhat.com>
41352             Bruno Haible  <bruno@clisp.org>
41353
41354         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41355         use the converted UTF-8 variant of the name instead.
41356
41357 2009-05-03  Jim Meyering  <meyering@redhat.com>
41358
41359         tests: tighten some getdate tests
41360         * tests/test-getdate.c (main): Tighten tests: require equality,
41361         not just greater than.  Set TZ envvar to UTC0.
41362
41363 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41364
41365         getdate: correctly interpret "next monday" when run on a Monday
41366         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41367         that e.g., "next tues" (when run on a tuesday) results in a date
41368         that is one week in the future, and not today's date.
41369         I.e., add a week when the wday is the same as the current one.
41370         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41371         and earlier by Martin Bernreuther and Jan Minář.
41372         * tests/test-getdate.c (main): Check that "next DAY" is always in
41373         the future and that "last DAY" is always in the past.
41374
41375 2009-05-02  Jim Meyering  <meyering@redhat.com>
41376
41377         build: ensure that a release build fails when a submodule is unclean
41378         * top/maint.mk (no-submodule-changes): New rule.
41379         (alpha beta major): Depend on it.
41380
41381 2009-05-02  Bruno Haible  <bruno@clisp.org>
41382
41383         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41384         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41385         shell variable gl_fnmatch_required to detect which variant is
41386         requested.
41387         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41388         gl_FUNC_FNMATCH_POSIX.
41389         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41390         exclude fnmatch-posix.
41391
41392 2009-05-02  Bruno Haible  <bruno@clisp.org>
41393
41394         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41395         * modules/mbsrtowcs (License): Change to LGPLv2+.
41396         * modules/strnlen1 (License): Likewise.
41397         Reported by Simon Josefsson.
41398
41399 2009-05-02  Bruno Haible  <bruno@clisp.org>
41400
41401         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41402         "cross".
41403         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41404         gnulib-tool was called with option --source-base=lib.
41405
41406 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41407
41408         Use automake *-local hooks without commands, for extensibility.
41409         * modules/localcharset (Makefile.am): Rename install-exec-local
41410         rule to install-exec-localcharset, and make it a prerequisite of
41411         install-exec-local.  Likewise, rename the uninstall-local rule to
41412         uninstall-localcharset, and make it a prerequisite of the former.
41413
41414 2009-05-01  Bruno Haible  <bruno@clisp.org>
41415
41416         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41417         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41418         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41420         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41421         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41422         m4/locale-zh.m4, m4/codeset.m4.
41423
41424         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41425         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41426         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41427         m4/locale-zh.m4.
41428
41429         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41430         REPLACE_WCRTOMB if mbstate_t must be replaced.
41431         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41432         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41433
41434 2009-05-01  Bruno Haible  <bruno@clisp.org>
41435
41436         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41437         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41438         dngettext, dcngettext, textdomain, bindtextdomain,
41439         bind_textdomain_codeset): Undefine before redefining.
41440
41441 2009-04-30  Bruno Haible  <bruno@clisp.org>
41442
41443         Fix bug introduced on 2009-04-25.
41444         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41445         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41446         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41447         is defined.
41448         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41449         is defined.
41450         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41451         is defined.
41452         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41453
41454 2009-04-28  Bruno Haible  <bruno@clisp.org>
41455
41456         Comment tweaks.
41457         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41458         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41459         * lib/unicase.h (u*_casexfrm): Likewise.
41460         Reported by Paolo Bonzini.
41461
41462 2009-04-28  Bruno Haible  <bruno@clisp.org>
41463
41464         Fix a compilation error.
41465         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41466         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41467         Reported by Jim Meyering.
41468
41469 2009-04-27  Bruno Haible  <bruno@clisp.org>
41470
41471         New module 'libunistring'.
41472         * modules/libunistring: New file.
41473         * m4/libunistring.m4: New file.
41474         * MODULES.html.sh (Unicode string functions): Add it.
41475
41476 2009-04-27  Eric Blake  <ebb9@byu.net>
41477
41478         maint.mk: allow package-specific header to provide <config.h>
41479         * top/maint.mk (sc_require_config_h): New variable.
41480         (sc_require_config_h, sc_require_config_h_first): Use it.
41481
41482 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41483
41484         * top/maint.mk (sc_avoid_if_before_free): Except
41485         useless-if-before-free script.
41486
41487 2009-04-27  Eric Blake  <ebb9@byu.net>
41488
41489         maintainer-makefile: depend on all required helper scripts
41490         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41491         useless-if-before-free.
41492         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41493         version, rather than assuming gnulib checkout is available.
41494         Reported by Simen Josefsson.
41495
41496 2009-04-26  Bruno Haible  <bruno@clisp.org>
41497
41498         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41499         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41500         "../" or "..".
41501
41502 2009-04-26  Bruno Haible  <bruno@clisp.org>
41503
41504         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41505         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41506         AC_LIB_HAVE_LINKFLAGS.
41507
41508 2009-04-26  Bruno Haible  <bruno@clisp.org>
41509
41510         Simplify calling convention of u*_conv_from_encoding.
41511         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41512         u32_conv_from_encoding): Expect a resultbuf argument and return the
41513         result directly as a pointer.
41514         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41515         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41516         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41517         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41518         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41519         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41520         Update.
41521         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41522         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41523         * lib/vasnprintf.c (VASNPRINTF): Update.
41524         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41525         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41526         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41527         * NEWS: Mention the change.
41528
41529 2009-04-26  Bruno Haible  <bruno@clisp.org>
41530
41531         Simplify calling convention of u*_conv_to_encoding.
41532         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41533         u32_conv_to_encoding): Expect a resultbuf argument and return the
41534         result directly as a pointer.
41535         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41536         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41537         freeing scaled_offsets if mem_iconveha failed.
41538         * lib/unicase/u-casexfrm.h (FUNC): Update.
41539         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41540         * lib/vasnprintf.c (VASNPRINTF): Update.
41541         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41542         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41543         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41544         * NEWS: Mention the change.
41545
41546 2009-04-26  Bruno Haible  <bruno@clisp.org>
41547
41548         Avoid test failures on AIX and OSF/1.
41549         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41550         malloc(0).
41551         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41552         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41553         Likewise.
41554         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41555         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41556         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41557         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41558         * doc/posix-functions/malloc.texi: Document the portability problem
41559         related to malloc(0).
41560
41561 2009-04-26  Bruno Haible  <bruno@clisp.org>
41562
41563         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41564         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41565         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41566
41567 2009-04-25  Bruno Haible  <bruno@clisp.org>
41568
41569         Avoid link error when creating a namespace clean library.
41570         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41571         as macro with arguments if already defined as an alias.
41572         * lib/signbitf.c (gl_signbitf): Don't undefine.
41573         * lib/signbitd.c (gl_signbitd): Don't undefine.
41574         * lib/signbitl.c (gl_signbitl): Don't undefine.
41575
41576 2009-04-25  Jim Meyering  <meyering@redhat.com>
41577
41578         vc-list-files: fix another quoting bug
41579         * build-aux/vc-list-files: Avoid sed backslash expansion
41580         of pathological directory names.
41581
41582 2009-04-25  Eric Blake  <ebb9@byu.net>
41583
41584         vc-list-files: fix shell quoting error
41585         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41586         timestamp.
41587
41588 2009-04-25  Jim Meyering  <meyering@redhat.com>
41589
41590         vc-list-files: restore lost functionality with subdir argument
41591         * build-aux/vc-list-files: When given a non-"." sub-directory
41592         argument, substitute the $dir/ prefix back onto each resulting name.
41593         Otherwise, coreutils' root_tests check would fail.
41594
41595 2009-04-24  Eric Blake  <ebb9@byu.net>
41596
41597         vc-list-files: ignore git symlinks
41598         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41599         than ls-files, to ignore git symlinks.
41600
41601         maint.mk: import improvements from m4
41602         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41603         (move_if_change): Delete unused macro.
41604         (news-date-check, vc-diff-check): Support VPATH builds.
41605         (announcement): Likewise.  Split --bootstrap-tools list...
41606         (boostrap-tools): ...into separate list, which can be overridden
41607         in cfg.mk.
41608         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41609         requiring dependency on useless-if-before-free module.
41610         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41611         Support VPATH builds.
41612
41613 2009-04-24  Jim Meyering  <meyering@redhat.com>
41614
41615         maint.mk: remove coreutils-specific rules and variables
41616         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41617         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41618         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41619
41620         maint.mk: remove obsolete rule
41621         * top/maint.mk (rel-check): Remove rule.
41622         (WGET, WGETFLAGS): Remove now-unused variables.
41623
41624 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41625
41626         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41627         consistency.
41628
41629         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41630         '$(PATH_SEPARATOR)' instead of ':'.
41631
41632 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41633
41634         * lib/getopt1.c (main): Use 'const' for static array.
41635
41636 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41637
41638         * top/maint.mk: Sync with coreutils.
41639         * NEWS: Explain incompatibilities.
41640
41641 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41642             Bruno Haible  <bruno@clisp.org>
41643
41644         Fix cross-compilation results.
41645         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41646         statement, as third argument of AC_TRY_RUN.
41647         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41648         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41649         Likewise.
41650         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41651         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41652         Likewise.
41653         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41654         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41655         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41656
41657 2009-04-20  Bruno Haible  <bruno@clisp.org>
41658
41659         Avoid test failure on mingw.
41660         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41661
41662 2009-04-20  Bruno Haible  <bruno@clisp.org>
41663
41664         Avoid compilation error on mingw.
41665         * modules/localename-tests (Depends-on): Add locale.
41666
41667 2009-04-19  Bruno Haible  <bruno@clisp.org>
41668
41669         Support for building a shared library on Windows platforms.
41670         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41671         (main): Test the presence of UNINORM_NFC here.
41672         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41673         (main): Test the presence of UNINORM_NFD here.
41674         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41675         (main): Test the presence of UNINORM_NFKC here.
41676         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41677         (main): Test the presence of UNINORM_NFKD here.
41678
41679 2009-04-19  Bruno Haible  <bruno@clisp.org>
41680
41681         Avoid a compiler warning.
41682         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41683         Change type of variable 'sequence'.
41684
41685 2009-04-19  Bruno Haible  <bruno@clisp.org>
41686
41687         * modules/configmake (Makefile.am): When the contents of configmake.h
41688         does not change, arrange to preserve its modification time.
41689
41690 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41691
41692         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41693         gettext domain.
41694
41695 2009-04-16  Jim Meyering  <meyering@redhat.com>
41696
41697         useless-if-before-free: improve conversion code
41698         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41699         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41700
41701 2009-04-14  Bruno Haible  <bruno@clisp.org>
41702
41703         * modules/fcntl (Depends-on): Add extensions.
41704         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41705
41706 2009-04-12  Ben Pfaff  <blp@gnu.org>
41707
41708         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41709         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41710
41711 2009-03-20  Ben Pfaff  <blp@gnu.org>
41712
41713         Make rename replace existing destinations on Windows.
41714         * m4/rename.m4: Add test for Mingw.
41715         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41716         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41717         * doc/posix-functions/rename.texi: Document.
41718
41719 2009-04-10  Bruno Haible  <bruno@clisp.org>
41720
41721         New include file "iconveh.h".
41722         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41723         * lib/striconveh.h: Include it.
41724         (enum iconv_ilseq_handler): Remove definition.
41725         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41726         striconveh.h.
41727         * lib/striconveha.c: Include striconveh.h.
41728         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41729         * modules/striconveh (Files): Add lib/iconveh.h.
41730         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41731         lib/striconveh.h.
41732
41733 2009-04-10  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/uniconv.h: Update comment.
41736
41737 2009-04-10  Bruno Haible  <bruno@clisp.org>
41738
41739         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41740         always.
41741         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41742         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41743         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41744         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41745         "unistring-notinline.h", so that the function gets defined always.
41746         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41747         * lib/unistr/u8-uctomb.c: Likewise.
41748         * lib/unistr/u16-mbtouc.c: Likewise.
41749         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41750         * lib/unistr/u16-uctomb.c: Likewise.
41751         * lib/unistr/u32-mbtouc.c: Likewise.
41752         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41753         * lib/unistr/u32-uctomb.c: Likewise.
41754
41755 2009-04-10  Bruno Haible  <bruno@clisp.org>
41756
41757         Mark 'utime' obsolete.
41758         * modules/utime (Status, Notice): New sections.
41759         Suggested by Jim Meyering.
41760
41761         Fix cross-compile guess for utime test.
41762         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41763         autoconf.
41764         * doc/posix-functions/utime.texi: Give more precisions.
41765         Reported by Jan <ipif@ymail.com>.
41766
41767 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41768
41769         filevercmp: correct today's change
41770         * lib/filevercmp.c: Also handle coreutils' test inputs.
41771         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41772
41773         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41774         for reporting it.
41775         * lib/filevercmp.c: Special handle for "", "." and "..".
41776         * tests/test-filevercmp.c: Enlarge the set suite.
41777
41778 2009-04-07  Jim Meyering  <meyering@redhat.com>
41779
41780         useless-if-before-free: show how to remove braced useless free, too
41781         * build-aux/useless-if-before-free: still only in a comment, though.
41782
41783 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41784
41785         maint.mk: import changes to syntax-check macros from coreutils
41786         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41787         Use them in the relevant macros.
41788
41789 2009-04-06  Bruno Haible  <bruno@clisp.org>
41790
41791         Fix unportable use of bit-fields.
41792         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41793         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41794         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41795
41796 2009-04-06  Bruno Haible  <bruno@clisp.org>
41797
41798         Avoid test failures on AIX and OSF/1.
41799         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41800         that malloc(0) = NULL.
41801         * tests/unicase/test-u8-tolower.c (check): Likewise.
41802         * tests/unicase/test-u8-totitle.c (check): Likewise.
41803         * tests/unicase/test-u8-toupper.c (check): Likewise.
41804         * tests/unicase/test-u16-casefold.c (check): Likewise.
41805         * tests/unicase/test-u16-tolower.c (check): Likewise.
41806         * tests/unicase/test-u16-totitle.c (check): Likewise.
41807         * tests/unicase/test-u16-toupper.c (check): Likewise.
41808         * tests/unicase/test-u32-casefold.c (check): Likewise.
41809         * tests/unicase/test-u32-tolower.c (check): Likewise.
41810         * tests/unicase/test-u32-totitle.c (check): Likewise.
41811         * tests/unicase/test-u32-toupper.c (check): Likewise.
41812         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41813         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41814         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41815         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41816         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41817         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41818         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41819         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41820         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41821         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41822         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41823         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41824
41825 2009-04-05  Bruno Haible  <bruno@clisp.org>
41826
41827         Work around an autoconf limitation.
41828         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41829         comment line if it would be longer than 3 KB.
41830
41831 2009-04-05  Bruno Haible  <bruno@clisp.org>
41832
41833         Avoid test failure with libiconv-1.13.
41834         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41835         of the expected test results.
41836
41837 2009-04-05  Bruno Haible  <bruno@clisp.org>
41838
41839         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41840         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41841         that it should be installed.
41842
41843 2009-04-05  Bruno Haible  <bruno@clisp.org>
41844
41845         * gnulib-tool: New option --copy-file.
41846         (func_usage): Document it.
41847         (func_dest_tmpfilename): Moved out of func_import.
41848         (func_add_file, func_update_file): New functions, extracted from
41849         func_import.
41850         (func_import): Update.
41851
41852 2009-04-05  Karl Berry  <karl@gnu.org>
41853
41854         * README: prominently mention gnulib-tool.
41855         Rearrange sections so getting the code is near the top.
41856
41857 2009-04-05  Bruno Haible  <bruno@clisp.org>
41858
41859         * lib/unicase.h: Mention u*_cmp2.
41860         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41861         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41862         * lib/unicase/ulc-casecmp.c: Likewise.
41863         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41864         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41865         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41866         unistr/u8-cmp.
41867         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41868         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41869         unistr/u16-cmp.
41870         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41871         unistr/u32-cmp.
41872
41873         * lib/uninorm.h: Mention u*_cmp2.
41874         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41875         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41876         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41877         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41878         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41879         unistr/u8-cmp.
41880         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41881         unistr/u16-cmp.
41882         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41883         unistr/u32-cmp.
41884
41885         New module 'unistr/u32-cmp2'.
41886         * lib/unistr/u32-cmp2.c: New file.
41887         * modules/unistr/u32-cmp2: New file.
41888
41889         New module 'unistr/u16-cmp2'.
41890         * lib/unistr/u16-cmp2.c: New file.
41891         * modules/unistr/u16-cmp2: New file.
41892
41893         New module 'unistr/u8-cmp2'.
41894         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41895         * lib/unistr/u8-cmp2.c: New file.
41896         * lib/unistr/u-cmp2.h: New file.
41897         * modules/unistr/u8-cmp2: New file.
41898
41899 2009-04-05  Bruno Haible  <bruno@clisp.org>
41900
41901         * lib/unictype.h (uc_property_is_valid): New macro.
41902         * tests/unictype/test-pr_byname.c (main): Use it.
41903
41904         * lib/unistr.h: Doc fixes.
41905         * lib/uniconv.h: Doc fixes.
41906         * lib/unictype.h: Doc fixes.
41907
41908 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41909
41910         Port coreutils 7.2 to Solaris 8.
41911
41912         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41913         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41914         for Solaris 8.  This is a bit of a hack, as it means it's the
41915         caller's responsibility to add -lnsl if needed, but most likely it
41916         won't be needed since only getaddrinfo uses this and getaddrinfo
41917         isn't needed on Solaris 8.
41918
41919         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41920         problem to Solaris 8 encountered with coreutils 7.2, which
41921         resulted in a message "fnmatch.c:292: warning: passing argument 4
41922         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41923         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41924
41925 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41926
41927         * m4/ld-version-script.m4: Add FIXME comment.
41928
41929 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41930
41931         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41932         SOVERSION variable.
41933
41934 2009-04-02  Bruno Haible  <bruno@clisp.org>
41935
41936         * Makefile (info, html, dvi, pdf): Combine the rules.
41937         Suggested by Jim Meyering.
41938
41939 2009-04-01  Bruno Haible  <bruno@clisp.org>
41940
41941         * Makefile (info, html, dvi, pdf): New targets.
41942         Reported by Reuben Thomas <rrt@sc3d.org>.
41943
41944 2009-04-01  Bruno Haible  <bruno@clisp.org>
41945
41946         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41947         can be put into PATH.
41948         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41949
41950 2009-04-01  Bruno Haible  <bruno@clisp.org>
41951
41952         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41953
41954 2009-04-01  Bruno Haible  <bruno@clisp.org>
41955
41956         Rename module 'visibility'.
41957         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41958         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41959         * doc/gnulib.texi: Update.
41960         * MODULES.html.sh (Misc): Update.
41961         * NEWS: Mention the change.
41962
41963 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41964
41965         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41966         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41967         Eric Blake <ebb9@byu.net> for review.
41968         * MODULES.html.sh: Add lib-msvc-compat.
41969         * doc/gnulib.texi: Link to new section.
41970         * m4/ld-output-def.m4: New file.
41971         * doc/ld-output-def.texi: New file.
41972
41973 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41974
41975         Rename ld-version-script to lib-symbol-versions.  Suggested by
41976         Bruno Haible <bruno@clisp.org>.
41977         * modules/ld-version-script: Renamed to lib-symbol-versions.
41978         * doc/ld-version-script.texi: Fix module name.
41979         * MODULES.html.sh: Add lib-symbol-versions.
41980
41981 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41982
41983         * modules/u64-tests: New file.
41984         * tests/test-u64.c: New file.
41985
41986 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41987
41988         * MODULES.html.sh: Mention u64.
41989         * modules/u64: New module.
41990         * modules/crypto/sha512: Depend on u64 module instead of providing
41991         u64.h.
41992
41993 2009-03-27  Eric Blake  <ebb9@byu.net>
41994
41995         test-strerror: make debugging EAI_SYSTEM easier
41996         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41997         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41998         failure was EAI_SYSTEM.
41999
42000 2009-03-25  Bruno Haible  <bruno@clisp.org>
42001
42002         Fix a problem with --enable-relocatable on Solaris 7.
42003         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
42004         since 2008-02-24.
42005
42006 2009-03-25  Eric Blake  <ebb9@byu.net>
42007
42008         test-sockets: avoid gcc warning
42009         * tests/test-sockets.c (main): Silence compiler warning.
42010
42011 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
42012
42013         New modules nproc, pthread, contributed by Glen Lenker.
42014
42015         * MODULES.html.sh: Add pthread, nproc.
42016         * lib/nproc.c: New file.
42017         * lib/nproc.h: New file.
42018         * lib/pthread.in.h: New file.
42019         * m4/pthread.m4: New file.
42020         * modules/nproc: New file.
42021         * modules/pthread: New file.
42022
42023 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42024
42025         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42026         New variable.
42027
42028 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42029
42030         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42031         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42032         * tests/test-filevercmp.c: Add tests for backup suffixes.
42033
42034 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42035
42036         * modules/stdlib (Depends-on): Add stdint, needed when defining
42037         struct random_data on, for example, HP-UX 10.20.  Reported by
42038         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42039
42040 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42041
42042         * lib/readline.c (readline): Call fflush on stdout after printing
42043         prompt.
42044
42045 2009-03-20  Bruno Haible  <bruno@clisp.org>
42046
42047         Remove dependency from 'close' module to -lws2_32 on native Windows.
42048         * lib/close-hook.h: New file.
42049         * lib/close-hook.c: New file.
42050         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42051         w32sock.h.
42052         (_gl_close_fd_maybe_socket): Remove function.
42053         (rpl_close): Invoke execute_all_close_hooks instead of
42054         _gl_close_fd_maybe_socket.
42055         * lib/sockets.c: Include close-hook.h, w32sock.h.
42056         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42057         (close_sockets_hook): New variable.
42058         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42059         (gl_sockets_cleanup): Unregister it.
42060         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42061         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42062         * modules/close-hook: New file.
42063         * modules/close (Files): Remove lib/w32sock.h.
42064         (Depends-on): Add close-hook.
42065         (Link): Remove section.
42066         * modules/sockets (Files): Add lib/w32sock.h.
42067         (Depends-on): Add close-hook.
42068         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42069         invocation.
42070         * NEWS: Mention that LIB_CLOSE is gone.
42071
42072 2009-03-23  Eric Blake  <ebb9@byu.net>
42073
42074         signal-tests: test previous patch
42075         * tests/test-signal.c: New file.
42076         * modules/signal-tests: Likewise.
42077
42078         signal.h: always support 'volatile sig_atomic_t'
42079         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42080         (gl_SIGNAL_H_DEFAULTS): Add a default.
42081         * modules/signal (Makefile.am): Substitute if needed.
42082         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42083         users can blindly add volatile.
42084         * doc/posix-headers/signal.texi (signal.h): Document it.
42085         Reported by Matthew Woehlke.
42086
42087 2009-03-23  Jim Meyering  <meyering@redhat.com>
42088
42089         pathmax: PATH_MAX: use pathconf only when available
42090         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42091         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42092         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42093         This avoids a link failure in a PSP cross-compilation environment
42094         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42095
42096         * lib/vasnprintf.c (divide): Fix typo in comment.
42097
42098 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42099
42100         * gnulib-tool (func_filter_filelist): Fix comment.
42101
42102 2009-03-20  Bruno Haible  <bruno@clisp.org>
42103
42104         Make sockets.h self-contained.
42105         * lib/sockets.c: Include sockets.h first.
42106         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42107
42108 2009-03-19  Eric Blake  <ebb9@byu.net>
42109
42110         doc: mention more functions added in cygwin 1.7.0
42111         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42112         addition.
42113         * doc/posix-functions/log2f.texi: Likewise.
42114
42115 2009-03-19  Jim Meyering  <meyering@redhat.com>
42116
42117         fsusage: avoid syntax error due to statement-before-declaration
42118         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42119         after all declarations.  Reported by Matthew Woehlke in
42120         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42121
42122 2009-03-18  Eric Blake  <ebb9@byu.net>
42123
42124         build-aux/compile: sync from automake
42125         * build-aux/compile: New file, from automake.
42126         * config/srclist.txt: Mention build-aux/compile.
42127
42128 2009-03-17  Bruno Haible  <bruno@clisp.org>
42129
42130         * lib/git-merge-changelog.c: Fix typo in comment.
42131         Reported by Reuben Thomas <rrt@sc3d.org>.
42132
42133 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42134
42135         * m4/regex.m4: update and improve help for
42136         --without-included-regex.
42137
42138 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42139
42140         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42141         failure on missing include files.
42142
42143 2009-03-17  Eric Blake  <ebb9@byu.net>
42144
42145         doc: mention more functions added in cygwin 1.7.0
42146         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42147         addition.
42148         * doc/posix-functions/fwscanf.texi: Likewise.
42149         * doc/posix-functions/swprintf.texi: Likewise.
42150         * doc/posix-functions/swscanf.texi: Likewise.
42151         * doc/posix-functions/vfwprintf.texi: Likewise.
42152         * doc/posix-functions/vfwscanf.texi: Likewise.
42153         * doc/posix-functions/vswprintf.texi: Likewise.
42154         * doc/posix-functions/vswscanf.texi: Likewise.
42155         * doc/posix-functions/vwprintf.texi: Likewise.
42156         * doc/posix-functions/vwscanf.texi: Likewise.
42157         * doc/posix-functions/wcscasecmp.texi: Likewise.
42158         * doc/posix-functions/wcsdup.texi: Likewise.
42159         * doc/posix-functions/wcsftime.texi: Likewise.
42160         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42161         * doc/posix-functions/wprintf.texi: Likewise.
42162         * doc/posix-functions/wscanf.texi: Likewise.
42163         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42164
42165 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42166
42167         maint.mk: really add $(AM_MAKEFLAGS)
42168         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42169         was inadvertently omitted in the last commit.
42170         Spotted by Bruno Haible.
42171
42172         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42173         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42174         $(AM_MAKEFLAGS)' rather than plain `make'.
42175
42176         gnulib-tool: execute $MAKE not make
42177         * gnulib-tool: Default $MAKE to 'make'.
42178         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42179         than make.  Initialize $MAKE in the do-autobuild script.
42180
42181         gnulib-tool: use $MAKE not make in generated files
42182         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42183         make, in generated files.  Initialize $MAKE in the do-autobuild
42184         script.
42185
42186         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42187
42188         GNUmakefile: disable parallelism only for multiple, recursive targets
42189         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42190         additions in the Makefile.
42191         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42192         by Automake.
42193         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42194         are listed on the command line and at least one of them is
42195         listed in $(ALL_RECURSIVE_TARGETS).
42196
42197 2009-03-14  Bruno Haible  <bruno@clisp.org>
42198
42199         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42200         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42201         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42202         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42203         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42204         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42205         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42206         unistr/u8-uctomb.
42207         * modules/unistr/u8-strchr (Depends-on): Likewise.
42208         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42209         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42210         unistr/u16-uctomb.
42211         * modules/unistr/u16-strchr (Depends-on): Likewise.
42212         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42213
42214 2009-03-12  Bruno Haible  <bruno@clisp.org>
42215
42216         Work around select() bug on Interix 3.5.
42217         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42218         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42219         * m4/select.m4: New file.
42220         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42221         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42222         * modules/select (Files): Add m4/select.m4.
42223         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42224         * modules/nanosleep (Depends-on): Add select.
42225         * modules/poll (Depends-on): Likewise.
42226         * doc/posix-functions/select.texi: Mention the Interix bug.
42227         Reported by Markus Duft <mduft@gentoo.org>.
42228
42229         * lib/select.c: Renamed from lib/winsock-select.c.
42230         * modules/select (Files): Add lib/select.c, remove
42231         lib/winsock-select.c.
42232         (configure.ac): Update.
42233
42234 2009-03-12  Jim Meyering  <meyering@redhat.com>
42235
42236         avoid gcc warnings about unused macro definitions
42237         * lib/readtokens.c (STREQ): Remove unused definition.
42238         * lib/xmalloc.c (SIZE_MAX): Likewise.
42239         * lib/openat-die.c (N_): Likewise.
42240         * lib/mountlist.c (SIZE_MAX): Remove definition.
42241         Instead, include <stdint.h>.
42242         * lib/readutmp.c: Likewise.
42243         * modules/readutmp (Depends-on): Add stdint.
42244         * modules/mountlist (Depends-on): Add stdint.
42245         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42246
42247 2009-03-10  Bruno Haible  <bruno@clisp.org>
42248
42249         Tests for module 'mbmemcasecoll'.
42250         * modules/mbmemcasecoll-tests: New file.
42251         * tests/test-mbmemcasecoll1.sh: New file.
42252         * tests/test-mbmemcasecoll2.sh: New file.
42253         * tests/test-mbmemcasecoll3.sh: New file.
42254         * tests/test-mbmemcasecoll.c: New file.
42255
42256         New module 'mbmemcasecoll'.
42257         * lib/mbmemcasecoll.h: New file.
42258         * lib/mbmemcasecoll.c: New file.
42259         * modules/mbmemcasecoll: New file.
42260
42261         * tests/test-mbmemcasecmp.h: New file, extracted from
42262         tests/test-mbmemcasecmp.c.
42263         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42264         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42265         (main): Update.
42266         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42267
42268 2009-03-09  Bruno Haible  <bruno@clisp.org>
42269
42270         Tests for module 'mbmemcasecmp'.
42271         * modules/mbmemcasecmp-tests: New file.
42272         * tests/test-mbmemcasecmp1.sh: New file.
42273         * tests/test-mbmemcasecmp2.sh: New file.
42274         * tests/test-mbmemcasecmp3.sh: New file.
42275         * tests/test-mbmemcasecmp.c: New file.
42276
42277         New module 'mbmemcasecmp'.
42278         * lib/mbmemcasecmp.h: New file.
42279         * lib/mbmemcasecmp.c: New file.
42280         * modules/mbmemcasecmp: New file.
42281
42282 2009-03-09  Bruno Haible  <bruno@clisp.org>
42283
42284         Tests for module 'unicase/ulc-casecoll'.
42285         * modules/unicase/ulc-casecoll-tests: New file.
42286         * tests/unicase/test-ulc-casecoll1.sh: New file.
42287         * tests/unicase/test-ulc-casecoll2.sh: New file.
42288         * tests/unicase/test-ulc-casecoll.c: New file.
42289
42290         New module 'unicase/ulc-casecoll'.
42291         * lib/unicase.h (ulc_casecoll): New declaration.
42292         * lib/unicase/ulc-casecoll.c: New file.
42293         * modules/unicase/ulc-casecoll: New file.
42294
42295         New module 'unicase/ulc-casexfrm'.
42296         * lib/unicase.h (ulc_casexfrm): New declaration.
42297         * lib/unicase/ulc-casexfrm.c: New file.
42298         * modules/unicase/ulc-casexfrm: New file.
42299
42300 2009-03-09  Bruno Haible  <bruno@clisp.org>
42301
42302         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42303         invocations.
42304
42305         * m4/mbscasecmp.m4: Remove file.
42306         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42307         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42308
42309         * m4/mbscasestr.m4: Remove file.
42310         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42311         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42312
42313         * m4/mbschr.m4: Remove file.
42314         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42315         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42316
42317         * m4/mbscspn.m4: Remove file.
42318         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42319         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42320
42321         * m4/mbslen.m4: Remove file.
42322         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42323         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42324
42325         * m4/mbsncasecmp.m4: Remove file.
42326         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42327         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42328
42329         * m4/mbsnlen.m4: Remove file.
42330         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42331         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42332
42333         * m4/mbspbrk.m4: Remove file.
42334         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42335         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42336
42337         * m4/mbspcasecmp.m4: Remove file.
42338         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42339         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42340
42341         * m4/mbsrchr.m4: Remove file.
42342         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42343         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42344
42345         * m4/mbssep.m4: Remove file.
42346         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42347         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42348
42349         * m4/mbsspn.m4: Remove file.
42350         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42351         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42352
42353         * m4/mbsstr.m4: Remove file.
42354         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42355         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42356
42357         * m4/mbstok_r.m4: Remove file.
42358         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42359         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42360
42361         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42362
42363         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42364         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42365
42366         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42367
42368 2009-03-08  Bruno Haible  <bruno@clisp.org>
42369
42370         Tests for module 'unicase/ulc-casecmp'.
42371         * modules/unicase/ulc-casecmp-tests: New file.
42372         * tests/unicase/test-ulc-casecmp1.sh: New file.
42373         * tests/unicase/test-ulc-casecmp2.sh: New file.
42374         * tests/unicase/test-ulc-casecmp.c: New file.
42375
42376         New module 'unicase/ulc-casecmp'.
42377         * lib/unicase.h (ulc_casecmp): New declaration.
42378         * lib/unicase/ulc-casecmp.c: New file.
42379         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42380         'const SRC_UNIT *'.
42381         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42382         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42383         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42384         * modules/unicase/ulc-casecmp: New file.
42385
42386         Tests for module 'unicase/u32-is-cased'.
42387         * modules/unicase/u32-is-cased-tests: New file.
42388         * tests/unicase/test-u32-is-cased.c: New file.
42389
42390         Tests for module 'unicase/u16-is-cased'.
42391         * modules/unicase/u16-is-cased-tests: New file.
42392         * tests/unicase/test-u16-is-cased.c: New file.
42393
42394         Tests for module 'unicase/u8-is-cased'.
42395         * modules/unicase/u8-is-cased-tests: New file.
42396         * tests/unicase/test-u8-is-cased.c: New file.
42397         * tests/unicase/test-is-cased.h: New file.
42398
42399         New module 'unicase/u32-is-cased'.
42400         * lib/unicase/u32-is-cased.c: New file.
42401         * modules/unicase/u32-is-cased: New file.
42402
42403         New module 'unicase/u16-is-cased'.
42404         * lib/unicase/u16-is-cased.c: New file.
42405         * modules/unicase/u16-is-cased: New file.
42406
42407         New module 'unicase/u8-is-cased'.
42408         * lib/unicase/u8-is-cased.c: New file.
42409         * lib/unicase/u-is-cased.h: New file.
42410         * modules/unicase/u8-is-cased: New file.
42411
42412         Tests for module 'unicase/u32-is-casefolded'.
42413         * modules/unicase/u32-is-casefolded-tests: New file.
42414         * tests/unicase/test-u32-is-casefolded.c: New file.
42415
42416         Tests for module 'unicase/u16-is-casefolded'.
42417         * modules/unicase/u16-is-casefolded-tests: New file.
42418         * tests/unicase/test-u16-is-casefolded.c: New file.
42419
42420         Tests for module 'unicase/u8-is-casefolded'.
42421         * modules/unicase/u8-is-casefolded-tests: New file.
42422         * tests/unicase/test-u8-is-casefolded.c: New file.
42423         * tests/unicase/test-is-casefolded.h: New file.
42424
42425         New module 'unicase/u32-is-casefolded'.
42426         * lib/unicase/u32-is-casefolded.c: New file.
42427         * modules/unicase/u32-is-casefolded: New file.
42428
42429         New module 'unicase/u16-is-casefolded'.
42430         * lib/unicase/u16-is-casefolded.c: New file.
42431         * modules/unicase/u16-is-casefolded: New file.
42432
42433         New module 'unicase/u8-is-casefolded'.
42434         * lib/unicase/u8-is-casefolded.c: New file.
42435         * modules/unicase/u8-is-casefolded: New file.
42436
42437         Tests for module 'unicase/u32-is-titlecase'.
42438         * modules/unicase/u32-is-titlecase-tests: New file.
42439         * tests/unicase/test-u32-is-titlecase.c: New file.
42440
42441         Tests for module 'unicase/u16-is-titlecase'.
42442         * modules/unicase/u16-is-titlecase-tests: New file.
42443         * tests/unicase/test-u16-is-titlecase.c: New file.
42444
42445         Tests for module 'unicase/u8-is-titlecase'.
42446         * modules/unicase/u8-is-titlecase-tests: New file.
42447         * tests/unicase/test-u8-is-titlecase.c: New file.
42448         * tests/unicase/test-is-titlecase.h: New file.
42449
42450         New module 'unicase/u32-is-titlecase'.
42451         * lib/unicase/u32-is-titlecase.c: New file.
42452         * modules/unicase/u32-is-titlecase: New file.
42453
42454         New module 'unicase/u16-is-titlecase'.
42455         * lib/unicase/u16-is-titlecase.c: New file.
42456         * modules/unicase/u16-is-titlecase: New file.
42457
42458         New module 'unicase/u8-is-titlecase'.
42459         * lib/unicase/u8-is-titlecase.c: New file.
42460         * modules/unicase/u8-is-titlecase: New file.
42461
42462         Tests for module 'unicase/u32-is-lowercase'.
42463         * modules/unicase/u32-is-lowercase-tests: New file.
42464         * tests/unicase/test-u32-is-lowercase.c: New file.
42465
42466         Tests for module 'unicase/u16-is-lowercase'.
42467         * modules/unicase/u16-is-lowercase-tests: New file.
42468         * tests/unicase/test-u16-is-lowercase.c: New file.
42469
42470         Tests for module 'unicase/u8-is-lowercase'.
42471         * modules/unicase/u8-is-lowercase-tests: New file.
42472         * tests/unicase/test-u8-is-lowercase.c: New file.
42473         * tests/unicase/test-is-lowercase.h: New file.
42474
42475         New module 'unicase/u32-is-lowercase'.
42476         * lib/unicase/u32-is-lowercase.c: New file.
42477         * modules/unicase/u32-is-lowercase: New file.
42478
42479         New module 'unicase/u16-is-lowercase'.
42480         * lib/unicase/u16-is-lowercase.c: New file.
42481         * modules/unicase/u16-is-lowercase: New file.
42482
42483         New module 'unicase/u8-is-lowercase'.
42484         * lib/unicase/u8-is-lowercase.c: New file.
42485         * modules/unicase/u8-is-lowercase: New file.
42486
42487         Tests for module 'unicase/u32-is-uppercase'.
42488         * modules/unicase/u32-is-uppercase-tests: New file.
42489         * tests/unicase/test-u32-is-uppercase.c: New file.
42490
42491         Tests for module 'unicase/u16-is-uppercase'.
42492         * modules/unicase/u16-is-uppercase-tests: New file.
42493         * tests/unicase/test-u16-is-uppercase.c: New file.
42494
42495         Tests for module 'unicase/u8-is-uppercase'.
42496         * modules/unicase/u8-is-uppercase-tests: New file.
42497         * tests/unicase/test-u8-is-uppercase.c: New file.
42498         * tests/unicase/test-is-uppercase.h: New file.
42499
42500         New module 'unicase/u32-is-uppercase'.
42501         * lib/unicase/u32-is-uppercase.c: New file.
42502         * modules/unicase/u32-is-uppercase: New file.
42503
42504         New module 'unicase/u16-is-uppercase'.
42505         * lib/unicase/u16-is-uppercase.c: New file.
42506         * modules/unicase/u16-is-uppercase: New file.
42507
42508         New module 'unicase/u8-is-uppercase'.
42509         * lib/unicase/u8-is-uppercase.c: New file.
42510         * modules/unicase/u8-is-uppercase: New file.
42511
42512         New module 'unicase/u32-is-invariant'.
42513         * lib/unicase/u32-is-invariant.c: New file.
42514         * modules/unicase/u32-is-invariant: New file.
42515
42516         New module 'unicase/u16-is-invariant'.
42517         * lib/unicase/u16-is-invariant.c: New file.
42518         * modules/unicase/u16-is-invariant: New file.
42519
42520         New module 'unicase/u8-is-invariant'.
42521         * lib/unicase/u8-is-invariant.c: New file.
42522         * lib/unicase/invariant.h: New file.
42523         * lib/unicase/u-is-invariant.h: New file.
42524         * modules/unicase/u8-is-invariant: New file.
42525
42526         Tests for module 'unicase/u32-casecoll'.
42527         * modules/unicase/u32-casecoll-tests: New file.
42528         * tests/unicase/test-u32-casecoll.c: New file.
42529
42530         Tests for module 'unicase/u16-casecoll'.
42531         * modules/unicase/u16-casecoll-tests: New file.
42532         * tests/unicase/test-u16-casecoll.c: New file.
42533
42534         Tests for module 'unicase/u8-casecoll'.
42535         * modules/unicase/u8-casecoll-tests: New file.
42536         * tests/unicase/test-u8-casecoll.c: New file.
42537
42538         New module 'unicase/u32-casecoll'.
42539         * lib/unicase/u32-casecoll.c: New file.
42540         * modules/unicase/u32-casecoll: New file.
42541
42542         New module 'unicase/u16-casecoll'.
42543         * lib/unicase/u16-casecoll.c: New file.
42544         * modules/unicase/u16-casecoll: New file.
42545
42546         New module 'unicase/u8-casecoll'.
42547         * lib/unicase/u8-casecoll.c: New file.
42548         * lib/unicase/u-casecoll.h: New file.
42549         * modules/unicase/u8-casecoll: New file.
42550
42551         New module 'unicase/u32-casexfrm'.
42552         * lib/unicase/u32-casexfrm.c: New file.
42553         * modules/unicase/u32-casexfrm: New file.
42554
42555         New module 'unicase/u16-casexfrm'.
42556         * lib/unicase/u16-casexfrm.c: New file.
42557         * modules/unicase/u16-casexfrm: New file.
42558
42559         New module 'unicase/u8-casexfrm'.
42560         * lib/unicase/u8-casexfrm.c: New file.
42561         * lib/unicase/u-casexfrm.h: New file.
42562         * modules/unicase/u8-casexfrm: New file.
42563
42564         Tests for module 'unicase/u32-casecmp'.
42565         * modules/unicase/u32-casecmp-tests: New file.
42566         * tests/unicase/test-u32-casecmp.c: New file.
42567
42568         Tests for module 'unicase/u16-casecmp'.
42569         * modules/unicase/u16-casecmp-tests: New file.
42570         * tests/unicase/test-u16-casecmp.c: New file.
42571
42572         Tests for module 'unicase/u8-casecmp'.
42573         * modules/unicase/u8-casecmp-tests: New file.
42574         * tests/unicase/test-u8-casecmp.c: New file.
42575         * tests/unicase/test-casecmp.h: New file.
42576
42577         New module 'unicase/u32-casecmp'.
42578         * lib/unicase/u32-casecmp.c: New file.
42579         * modules/unicase/u32-casecmp: New file.
42580
42581         New module 'unicase/u16-casecmp'.
42582         * lib/unicase/u16-casecmp.c: New file.
42583         * modules/unicase/u16-casecmp: New file.
42584
42585         New module 'unicase/u8-casecmp'.
42586         * lib/unicase/u8-casecmp.c: New file.
42587         * lib/unicase/u-casecmp.h: New file.
42588         * modules/unicase/u8-casecmp: New file.
42589
42590         Tests for module 'unicase/u32-casefold'.
42591         * modules/unicase/u32-casefold-tests: New file.
42592         * tests/unicase/test-u32-casefold.c: New file.
42593
42594         Tests for module 'unicase/u16-casefold'.
42595         * modules/unicase/u16-casefold-tests: New file.
42596         * tests/unicase/test-u16-casefold.c: New file.
42597
42598         Tests for module 'unicase/u8-casefold'.
42599         * modules/unicase/u8-casefold-tests: New file.
42600         * tests/unicase/test-u8-casefold.c: New file.
42601
42602         New module 'unicase/u32-casefold'.
42603         * lib/unicase/u32-casefold.c: New file.
42604         * modules/unicase/u32-casefold: New file.
42605
42606         New module 'unicase/u16-casefold'.
42607         * lib/unicase/u16-casefold.c: New file.
42608         * modules/unicase/u16-casefold: New file.
42609
42610         New module 'unicase/u8-casefold'.
42611         * lib/unicase/u8-casefold.c: New file.
42612         * lib/unicase/u-casefold.h: New file.
42613         * modules/unicase/u8-casefold: New file.
42614
42615         New module 'unicase/tocasefold'.
42616         * lib/unicase/casefold.h: New file.
42617         * lib/unicase/tocasefold.c: New file.
42618         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42619         * modules/unicase/tocasefold: New file.
42620
42621         Tests for module 'unicase/u32-totitle'.
42622         * modules/unicase/u32-totitle-tests: New file.
42623         * tests/unicase/test-u32-totitle.c: New file.
42624
42625         Tests for module 'unicase/u16-totitle'.
42626         * modules/unicase/u16-totitle-tests: New file.
42627         * tests/unicase/test-u16-totitle.c: New file.
42628
42629         Tests for module 'unicase/u8-totitle'.
42630         * modules/unicase/u8-totitle-tests: New file.
42631         * tests/unicase/test-u8-totitle.c: New file.
42632
42633         New module 'unicase/u32-totitle'.
42634         * lib/unicase/u32-totitle.c: New file.
42635         * modules/unicase/u32-totitle: New file.
42636
42637         New module 'unicase/u16-totitle'.
42638         * lib/unicase/u16-totitle.c: New file.
42639         * modules/unicase/u16-totitle: New file.
42640
42641         New module 'unicase/u8-totitle'.
42642         * lib/unicase/u8-totitle.c: New file.
42643         * lib/unicase/u-totitle.h: New file.
42644         * modules/unicase/u8-totitle: New file.
42645
42646         Tests for module 'unicase/u32-tolower'.
42647         * modules/unicase/u32-tolower-tests: New file.
42648         * tests/unicase/test-u32-tolower.c: New file.
42649
42650         Tests for module 'unicase/u16-tolower'.
42651         * modules/unicase/u16-tolower-tests: New file.
42652         * tests/unicase/test-u16-tolower.c: New file.
42653
42654         Tests for module 'unicase/u8-tolower'.
42655         * modules/unicase/u8-tolower-tests: New file.
42656         * tests/unicase/test-u8-tolower.c: New file.
42657
42658         New module 'unicase/u32-tolower'.
42659         * lib/unicase/u32-tolower.c: New file.
42660         * modules/unicase/u32-tolower: New file.
42661
42662         New module 'unicase/u16-tolower'.
42663         * lib/unicase/u16-tolower.c: New file.
42664         * modules/unicase/u16-tolower: New file.
42665
42666         New module 'unicase/u8-tolower'.
42667         * lib/unicase/u8-tolower.c: New file.
42668         * modules/unicase/u8-tolower: New file.
42669
42670         Tests for module 'unicase/u32-toupper'.
42671         * modules/unicase/u32-toupper-tests: New file.
42672         * tests/unicase/test-u32-toupper.c: New file.
42673
42674         Tests for module 'unicase/u16-toupper'.
42675         * modules/unicase/u16-toupper-tests: New file.
42676         * tests/unicase/test-u16-toupper.c: New file.
42677
42678         Tests for module 'unicase/u8-toupper'.
42679         * modules/unicase/u8-toupper-tests: New file.
42680         * tests/unicase/test-u8-toupper.c: New file.
42681
42682         New module 'unicase/u32-toupper'.
42683         * lib/unicase/u32-toupper.c: New file.
42684         * modules/unicase/u32-toupper: New file.
42685
42686         New module 'unicase/u16-toupper'.
42687         * lib/unicase/u16-toupper.c: New file.
42688         * modules/unicase/u16-toupper: New file.
42689
42690         New module 'unicase/u8-toupper'.
42691         * lib/unicase/u8-toupper.c: New file.
42692         * modules/unicase/u8-toupper: New file.
42693
42694         New module 'unicase/u32-casemap'.
42695         * lib/unicase/u32-casemap.c: New file.
42696         * modules/unicase/u32-casemap: New file.
42697
42698         New module 'unicase/u16-casemap'.
42699         * lib/unicase/u16-casemap.c: New file.
42700         * modules/unicase/u16-casemap: New file.
42701
42702         New module 'unicase/u8-casemap'.
42703         * lib/unicase/unicasemap.h: New file.
42704         * lib/unicase/u8-casemap.c: New file.
42705         * lib/unicase/u-casemap.h: New file.
42706         * modules/unicase/u8-casemap: New file.
42707
42708         New module 'unicase/special-casing'.
42709         * lib/unicase/special-casing.h: New file.
42710         * lib/unicase/special-casing.c: New file.
42711         * lib/unicase/special-casing-table.gperf: New file, generated by
42712         gen-uni-tables.c.
42713         * modules/unicase/special-casing: New file.
42714
42715         Tests for module 'unicase/locale-language'.
42716         * modules/unicase/locale-language-tests: New file.
42717         * tests/unicase/test-locale-language.sh: New file.
42718         * tests/unicase/test-locale-language.c: New file.
42719
42720         New module 'unicase/locale-language'.
42721         * lib/unicase/locale-language.c: New file.
42722         * lib/unicase/locale-languages.gperf: New file.
42723         * modules/unicase/locale-language: New file.
42724
42725         Generate more tables for case conversion and case folding.
42726         * lib/gen-uni-tables.c (SCC_*): New enum items.
42727         (struct special_casing_rule): New type.
42728         (casing_rules, num_casing_rules, allocated_casing_rules): New
42729         variables.
42730         (add_casing_rule, fill_casing_rules): New functions.
42731         (struct casefold_rule): New type.
42732         (casefolding_rules, num_casefolding_rules,
42733         allocated_casefolding_rules): New variables.
42734         (fill_casefolding_rules): New function.
42735         (unicode_casefold): New variable.
42736         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42737         sort_casing_rules, output_casing_rules): New functions.
42738         (main): Accept to more arguments: SpecialCasing.txt and
42739         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42740         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42741         Output mapping for casefolding.
42742
42743         * lib/unicase.h: Include stdbool.h, uninorm.h.
42744         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42745         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42746         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42747         arguments.
42748         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42749         resultp arguments.
42750         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42751         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42752         resultp arguments.
42753         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42754         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42755         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42756         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42757         declarations.
42758         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42759
42760 2009-03-08  Bruno Haible  <bruno@clisp.org>
42761
42762         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42763         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42764         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42765         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42766
42767 2009-03-07  Bruno Haible  <bruno@clisp.org>
42768
42769         Adjust u*_normcmp, u*_normcoll API.
42770         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42771         u16_normcoll, u32_normcoll): Change failure conventions.
42772         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42773         errno and return -1.
42774         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42775
42776 2009-03-07  Bruno Haible  <bruno@clisp.org>
42777
42778         Tests for module 'uninorm/u32-normcoll'.
42779         * modules/uninorm/u32-normcoll-tests: New file.
42780         * tests/uninorm/test-u32-normcoll.c: New file.
42781
42782         Tests for module 'uninorm/u16-normcoll'.
42783         * modules/uninorm/u16-normcoll-tests: New file.
42784         * tests/uninorm/test-u16-normcoll.c: New file.
42785
42786         Tests for module 'uninorm/u8-normcoll'.
42787         * modules/uninorm/u8-normcoll-tests: New file.
42788         * tests/uninorm/test-u8-normcoll.c: New file.
42789
42790 2009-03-07  Bruno Haible  <bruno@clisp.org>
42791
42792         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42793         tests/uninorm/test-u32-normcmp.c.
42794         * tests/uninorm/test-u32-normcmp.c: Include it.
42795         (test_nonascii): New function, extracted from main. Add some more
42796         tests.
42797         (main): Invoke test_ascii and test_nonascii.
42798         * modules/uninorm/u32-normcmp-tests (Files): Add
42799         tests/uninorm/test-u32-normcmp.h.
42800         (Depends-on): Remove uninorm/u32-normcmp.
42801
42802         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42803         tests/uninorm/test-u16-normcmp.c.
42804         * tests/uninorm/test-u16-normcmp.c: Include it.
42805         (test_nonascii): New function, extracted from main. Add some more
42806         tests.
42807         (main): Invoke test_ascii and test_nonascii.
42808         * modules/uninorm/u16-normcmp-tests (Files): Add
42809         tests/uninorm/test-u16-normcmp.h.
42810         (Depends-on): Remove uninorm/u16-normcmp.
42811
42812         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42813         tests/uninorm/test-u8-normcmp.c.
42814         * tests/uninorm/test-u8-normcmp.c: Include it.
42815         (test_nonascii): New function, extracted from main. Add some more
42816         tests.
42817         (main): Invoke test_ascii and test_nonascii.
42818         * modules/uninorm/u8-normcmp-tests (Files): Add
42819         tests/uninorm/test-u8-normcmp.h.
42820         (Depends-on): Remove uninorm/u8-normcmp.
42821
42822 2009-03-07  Bruno Haible  <bruno@clisp.org>
42823
42824         New module 'uninorm/u32-normcoll'.
42825         * lib/uninorm/u32-normcoll.c: New file.
42826         * modules/uninorm/u32-normcoll: New file.
42827
42828         New module 'uninorm/u16-normcoll'.
42829         * lib/uninorm/u16-normcoll.c: New file.
42830         * modules/uninorm/u16-normcoll: New file.
42831
42832         New module 'uninorm/u8-normcoll'.
42833         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42834         declarations.
42835         * lib/uninorm/u8-normcoll.c: New file.
42836         * lib/uninorm/u-normcoll.h: New file.
42837         * modules/uninorm/u8-normcoll: New file.
42838
42839         New module 'uninorm/u32-normxfrm'.
42840         * lib/uninorm/u32-normxfrm.c: New file.
42841         * modules/uninorm/u32-normxfrm: New file.
42842
42843         New module 'uninorm/u16-normxfrm'.
42844         * lib/uninorm/u16-normxfrm.c: New file.
42845         * modules/uninorm/u16-normxfrm: New file.
42846
42847         New module 'uninorm/u8-normxfrm'.
42848         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42849         declarations.
42850         * lib/uninorm/u8-normxfrm.c: New file.
42851         * lib/uninorm/u-normxfrm.h: New file.
42852         * modules/uninorm/u8-normxfrm: New file.
42853
42854 2009-03-07  Bruno Haible  <bruno@clisp.org>
42855
42856         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42857         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42858         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42859
42860 2009-03-07  Bruno Haible  <bruno@clisp.org>
42861
42862         New module 'memxfrm'.
42863         * lib/memxfrm.h: New file.
42864         * lib/memxfrm.c: New file.
42865         * modules/memxfrm: New file.
42866
42867 2009-03-07  Bruno Haible  <bruno@clisp.org>
42868
42869         New module 'memcmp2'.
42870         * lib/memcmp2.h: New file.
42871         * lib/memcmp2.c: New file.
42872         * modules/memcmp2: New file.
42873
42874 2009-03-07  Bruno Haible  <bruno@clisp.org>
42875
42876         Tests for module 'uninorm/decomposing-form'.
42877         * modules/uninorm/decomposing-form-tests: New file.
42878         * tests/uninorm/test-decomposing-form.c: New file.
42879
42880         New module 'uninorm/decomposing-form'.
42881         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42882         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42883         Add 'decomposing_variant' field.
42884         * lib/uninorm/decomposing-form.c: New file.
42885         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42886         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42887         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42888         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42889         * modules/uninorm/decomposing-form: New file.
42890         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42891         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42892
42893 2009-03-07  Bruno Haible  <bruno@clisp.org>
42894
42895         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42896         strings.
42897
42898 2009-03-06  Bruno Haible  <bruno@clisp.org>
42899
42900         Tests for module 'uninorm/u32-normcmp'.
42901         * tests/uninorm/test-u32-normcmp.c: New file.
42902         * modules/uninorm/u32-normcmp-tests: New file.
42903
42904         Tests for module 'uninorm/u16-normcmp'.
42905         * tests/uninorm/test-u16-normcmp.c: New file.
42906         * modules/uninorm/u16-normcmp-tests: New file.
42907
42908         Tests for module 'uninorm/u8-normcmp'.
42909         * tests/uninorm/test-u8-normcmp.c: New file.
42910         * modules/uninorm/u8-normcmp-tests: New file.
42911
42912         New module 'uninorm/u32-normcmp'.
42913         * lib/uninorm/u32-normcmp.c: New file.
42914         * modules/uninorm/u32-normcmp: New file.
42915
42916         New module 'uninorm/u16-normcmp'.
42917         * lib/uninorm/u16-normcmp.c: New file.
42918         * modules/uninorm/u16-normcmp: New file.
42919
42920         New module 'uninorm/u8-normcmp'.
42921         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42922         declarations.
42923         * lib/uninorm/u8-normcmp.c: New file.
42924         * lib/uninorm/u-normcmp.h: New file.
42925         * modules/uninorm/u8-normcmp: New file.
42926
42927 2009-03-06  Bruno Haible  <bruno@clisp.org>
42928
42929         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42930         Reported by Eric Blake.
42931
42932 2009-03-06  Eric Blake  <ebb9@byu.net>
42933             Bruno Haible  <bruno@clisp.org>
42934
42935         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42936         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42937         condition.
42938         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42939         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42940         condition.
42941         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42942
42943 2009-03-06  Eric Blake  <ebb9@byu.net>
42944
42945         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42946         to avoid compiler warnings.
42947         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42948
42949 2009-03-05  Bruno Haible  <bruno@clisp.org>
42950
42951         * tests/test-ftell.c (main): Disable test beyond end of file on
42952         FreeMiNT.
42953         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42954
42955 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42956
42957         * lib/filevercmp.c: Move hidden files up in ordering.
42958         * tests/test-filevercmp.c: Add tests for hidden files.
42959
42960 2009-03-04  Bruno Haible  <bruno@clisp.org>
42961
42962         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42963         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42964         AM_CFLAGS.
42965         Reported by Simon Josefsson.
42966
42967 2009-03-03  Bruno Haible  <bruno@clisp.org>
42968
42969         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42970         Reported by Simon Josefsson.
42971
42972         * doc/ld-version-script.texi: Update node reference.
42973
42974 2009-03-03  Bruno Haible  <bruno@clisp.org>
42975
42976         * modules/visibility (License): Change to 'unlimited'.
42977         Suggested by Simon Josefsson.
42978
42979 2009-03-03  Jim Meyering  <meyering@redhat.com>
42980
42981         unlinkdir: cannot_unlink_dir may modify process state
42982         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42983         it's neither thread-safe nor appropriate for use in a library.
42984
42985 2009-03-03  Eric Blake  <ebb9@byu.net>
42986
42987         test-closein: silence test under Darwin
42988         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42989         care if it dies from EPIPE or EBADF.
42990
42991 2009-03-03  Bruno Haible  <bruno@clisp.org>
42992
42993         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42994         earlier.
42995         * doc/visibility.texi: Fix @node and @section.
42996
42997 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42998
42999         * doc/gnulib.texi: Link to sections for ld version script and
43000         visibility.
43001         * doc/visibility.texi: Add @node and @section.
43002         * modules/ld-version-script: New module.
43003         * m4/ld-version-script.m4: New file.
43004         * doc/ld-version-script.texi: New file.
43005
43006 2009-03-02  David Lutterkort  <lutter@redhat.com>
43007
43008         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
43009         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43010
43011 2009-03-02  Bruno Haible  <bruno@clisp.org>
43012
43013         * doc/visibility.texi: Mention libtool's -export-symbols option.
43014
43015 2009-03-02  Jim Meyering  <meyering@redhat.com>
43016
43017         announce-gen: new option: --no-print-checksums
43018         * build-aux/announce-gen (usage): Describe it.
43019         (print_checksums): Print a newline here, not in the [*] footnote.
43020         (main): Honor it.
43021
43022 2009-03-01  Bruno Haible  <bruno@clisp.org>
43023
43024         Use socklen_t in the native Windows replacements prototypes.
43025         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43026         instead of 'int'.
43027         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43028         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43029         * modules/getsockopt (Depends-on): Add socklen.
43030         * modules/setsockopt (Depends-on): Add socklen.
43031
43032 2009-03-01  Bruno Haible  <bruno@clisp.org>
43033
43034         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43035         least 4.2.
43036
43037 2009-03-01  Eric Blake  <ebb9@byu.net>
43038             Bruno Haible  <bruno@clisp.org>
43039
43040         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43041         error messages.
43042         * lib/wait-process.c (wait_subprocess): Omit error message about
43043         deadly signal sent to the child of termsigp != NULL.
43044
43045 2009-03-01  Eric Blake  <ebb9@byu.net>
43046
43047         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43048
43049 2009-03-01  Bruno Haible  <bruno@clisp.org>
43050
43051         Avoid a gcc warning.
43052         * tests/test-sched.c (b): Make global.
43053         Reported by Eric Blake.
43054
43055 2009-01-19  Martin Lambers  <marlam@marlam.de>
43056
43057         Provide POSIX semantics for socket timeout options on W32.
43058         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43059         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43060         * modules/setsockopt: Depend on sys_time module for struct timeval.
43061         * modules/getsockopt: Depend on sys_time module for struct timeval.
43062
43063 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43064
43065         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43066         __USE_GNU, for consistency with netdb.in.h.
43067         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43068
43069 2009-03-01  Bruno Haible  <bruno@clisp.org>
43070
43071         More support for FreeMiNT.
43072         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43073         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43074
43075 2009-03-01  Bruno Haible  <bruno@clisp.org>
43076
43077         More support for FreeMiNT.
43078         * lib/fpurge.c (fpurge): Correct last commit.
43079         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43080
43081 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43082
43083         Fix unportable awk script in vc-list-files.
43084         * build-aux/vc-list-files: In the replacement awk script, use
43085         substr with a second argument of 1, not zero.
43086         Report by Simon Josefsson.
43087
43088 2009-02-28  Bruno Haible  <bruno@clisp.org>
43089
43090         More support for FreeMiNT.
43091         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43092         to FreeMiNT today.
43093         * lib/fwriting.c (fwriting): Likewise.
43094         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43095
43096 2009-02-28  Bruno Haible  <bruno@clisp.org>
43097
43098         * tests/test-freadseek.c (main): Disable test beyond end of file on
43099         FreeMiNT.
43100         * tests/test-ftello.c (main): Likewise.
43101         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43102
43103 2009-02-28  Bruno Haible  <bruno@clisp.org>
43104
43105         Add tentative support for FreeMiNT.
43106         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43107         * lib/fpurge.c (fpurge): Likewise.
43108         * lib/freadable.c (freadable): Likewise.
43109         * lib/freading.c (freading): Likewise.
43110         * lib/freadptr.c (freadptr): Likewise.
43111         * lib/freadseek.c (freadptrinc): Likewise.
43112         * lib/fseeko.c (rpl_fseeko): Likewise.
43113         * lib/fseterr.c (fseterr): Likewise.
43114         * lib/fwritable.c (fwritable): Likewise.
43115         * lib/fwriting.c (fwriting): Likewise.
43116         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43117         Hourihane.
43118         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43119
43120 2009-02-28  Bruno Haible  <bruno@clisp.org>
43121
43122         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43123         SIGCHLD.
43124         Reported by Jim Meyering.
43125
43126 2009-02-28  Bruno Haible  <bruno@clisp.org>
43127
43128         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43129         Mention the results of these tests on various platforms.
43130         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43131         order.
43132         * doc/posix-functions/printf.texi: Likewise.
43133         * doc/posix-functions/snprintf.texi: Likewise.
43134         * doc/posix-functions/sprintf.texi: Likewise.
43135         * doc/posix-functions/vfprintf.texi: Likewise.
43136         * doc/posix-functions/vprintf.texi: Likewise.
43137         * doc/posix-functions/vsnprintf.texi: Likewise.
43138         * doc/posix-functions/vsprintf.texi: Likewise.
43139         * doc/glibc-functions/obstack_printf.texi: Likewise.
43140         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43141
43142 2009-02-28  Bruno Haible  <bruno@clisp.org>
43143
43144         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43145         Reported by Loïc Minier <lool@dooz.org>.
43146
43147 2009-02-27  Bruno Haible  <bruno@clisp.org>
43148
43149         * gnulib-tool (func_import): Make the sed expression used to create the
43150         sed script for updating the .gitignore file POSIX compliant.
43151         Reported by Eric Blake.
43152
43153 2009-02-27  Bruno Haible  <bruno@clisp.org>
43154
43155         * gnulib-tool (sed): Don't alias as "sed --posix".
43156         Reported by Eric Blake.
43157
43158 2009-02-27  Bruno Haible  <bruno@clisp.org>
43159
43160         Avoid test link errors.
43161         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43162         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43163         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43164         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43165         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43166
43167 2009-02-27  Bruno Haible  <bruno@clisp.org>
43168
43169         Avoid spurious "(cached)" in configure output.
43170         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43171         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43172         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43173         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43174         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43175         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43176         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43177         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43178         Reported by Eric Blake.
43179
43180 2009-02-27  Eric Blake  <ebb9@byu.net>
43181
43182         printf: fix regression in previous patch
43183         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43184
43185 2009-02-27  Bruno Haible  <bruno@clisp.org>
43186
43187         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43188         value.
43189         * lib/stdint.in.h: Likewise.
43190         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43191
43192 2009-02-27  Eric Blake  <ebb9@byu.net>
43193
43194         doc: mention more functions added in cygwin 1.7.0
43195         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43196         addition.
43197         * doc/posix-functions/open_wmemstream.texi: Likewise.
43198         * doc/posix-functions/wcsnlen.texi: Likewise.
43199         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43200         * doc/posix-functions/wcstod.texi: Likewise.
43201         * doc/posix-functions/wcstof.texi: Likewise.
43202         * doc/posix-functions/wcstoimax.texi: Likewise.
43203         * doc/posix-functions/wcstok.texi: Likewise.
43204         * doc/posix-functions/wcstoumax.texi: Likewise.
43205
43206         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43208         * doc/posix-functions/fprintf.texi: Update.
43209         * doc/posix-functions/printf.texi: Update.
43210         * doc/posix-functions/snprintf.texi: Update.
43211         * doc/posix-functions/sprintf.texi: Update.
43212         * doc/posix-functions/vfprintf.texi: Update.
43213         * doc/posix-functions/vprintf.texi: Update.
43214         * doc/posix-functions/vsnprintf.texi: Update.
43215         * doc/posix-functions/vsprintf.texi: Update.
43216         * doc/glibc-functions/obstack_printf.texi: Update.
43217         * doc/glibc-functions/obstack_vprintf.texi: Update.
43218
43219 2009-02-26  Eric Blake  <ebb9@byu.net>
43220
43221         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43222         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43223         compilation bug by using runtime conversion.
43224         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43225         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43226         * modules/ceill-tests (Files): Use nan.h.
43227         * modules/floorl-tests (Files): Likewise.
43228         * modules/frexpl-tests (Files): Likewise.
43229         * modules/isnanl-tests (Files): Likewise.
43230         * modules/ldexpl-tests (Files): Likewise.
43231         * modules/roundl-tests (Files): Likewise.
43232         * modules/truncl-tests (Files): Likewise.
43233         * tests/test-ceill.c (main): Use a working NaN.
43234         * tests/test-floorl.c (main): Likewise.
43235         * tests/test-frexpl.c (main): Likewise.
43236         * tests/test-isnan.c (test_long_double): Likewise.
43237         * tests/test-isnanl.h (main): Likewise.
43238         * tests/test-ldexpl.h (main): Likewise.
43239         * tests/test-roundl.h (main): Likewise.
43240         * tests/test-truncl.h (main): Likewise.
43241         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43242
43243 2009-02-26  Eric Blake  <ebb9@byu.net>
43244             Bruno Haible  <bruno@clisp.org>
43245
43246         Work around a *printf bug with %ls on Solaris.
43247         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43248         precision is specified, sprintf stops converting the wide string
43249         argument when the number of bytes that have been produced by this
43250         conversion equals or exceeds the precision.
43251         * doc/posix-functions/fprintf.texi: Update.
43252         * doc/posix-functions/printf.texi: Update.
43253         * doc/posix-functions/snprintf.texi: Update.
43254         * doc/posix-functions/sprintf.texi: Update.
43255         * doc/posix-functions/vfprintf.texi: Update.
43256         * doc/posix-functions/vprintf.texi: Update.
43257         * doc/posix-functions/vsnprintf.texi: Update.
43258         * doc/posix-functions/vsprintf.texi: Update.
43259         * doc/glibc-functions/obstack_printf.texi: Update.
43260         * doc/glibc-functions/obstack_vprintf.texi: Update.
43261
43262 2009-02-26  Eric Blake  <ebb9@byu.net>
43263
43264         stdlib: favor compiler check of random.h
43265         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43266         to avoid an ObjC random.h installed by Swarm.
43267
43268 2009-02-26  Bruno Haible  <bruno@clisp.org>
43269
43270         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43271         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43272         Reported by Gary V. Vaughan <gary@gnu.org>.
43273
43274 2009-02-26  Bruno Haible  <bruno@clisp.org>
43275
43276         Fix *printf behaviour regarding the %ls directive.
43277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43278         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43279         NEED_PRINTF_DIRECTIVE_LS.
43280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43281         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43282         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43283         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43284         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43285         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43286         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43288         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43289         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43290         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43291         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43292         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43293         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43294         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43295         * doc/posix-functions/fprintf.texi: Update.
43296         * doc/posix-functions/printf.texi: Update.
43297         * doc/posix-functions/snprintf.texi: Update.
43298         * doc/posix-functions/sprintf.texi: Update.
43299         * doc/posix-functions/vfprintf.texi: Update.
43300         * doc/posix-functions/vprintf.texi: Update.
43301         * doc/posix-functions/vsnprintf.texi: Update.
43302         * doc/posix-functions/vsprintf.texi: Update.
43303         * doc/glibc-functions/obstack_printf.texi: Update.
43304         * doc/glibc-functions/obstack_vprintf.texi: Update.
43305         Reported by Eric Blake.
43306
43307 2009-02-25  Bruno Haible  <bruno@clisp.org>
43308
43309         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43310         with known value.
43311         Reported by Gary V. Vaughan <gary@gnu.org>.
43312
43313 2009-02-25  Bruno Haible  <bruno@clisp.org>
43314
43315         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43316         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43317         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43318         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43319         Reported by Gary V. Vaughan <gary@gnu.org>.
43320
43321 2009-02-25  Bruno Haible  <bruno@clisp.org>
43322
43323         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43324         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43325         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43326         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43327         Reported by Gary V. Vaughan <gary@gnu.org>.
43328
43329 2009-02-25  Eric Blake  <ebb9@byu.net>
43330
43331         tests: skip fseek/ftell tests if ungetc is broken
43332         * m4/ungetc.m4: New file.
43333         * modules/fseek-tests: Split test, so ungetc dependency is
43334         separate from rest of test.
43335         * modules/fseeko-tests: Likewise.
43336         * modules/ftell-tests: Likewise.
43337         * modules/ftello-tests: Likewise.
43338         * tests/test-fseek.c (main): Isolate ungetc dependency.
43339         * tests/test-fseeko.c (main): Likewise.
43340         * tests/test-ftell.c (main): Likewise.
43341         * tests/test-ftello.c (main): Likewise.
43342         * tests/test-fseek2.sh: New file.
43343         * tests/test-fseeko2.sh: Likewise.
43344         * tests/test-ftell2.sh: Likewise.
43345         * tests/test-ftello2.sh: Likewise.
43346
43347 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43348
43349         test-getaddrinfo: fix usage of skip return code 77
43350         * tests/test-gettaddrinfo.c: Return skip code 77 only
43351         for first occurance of skip (4x77 is not 77)
43352
43353 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43354
43355         strtod: avoid C99 decl-after-statement
43356         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43357
43358 2009-02-24  Eric Blake  <ebb9@byu.net>
43359
43360         strtod: detect HP-UX 11.31 bug
43361         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43362         Reported by Gary V. Vaughan.
43363
43364 2009-02-23  Bruno Haible  <bruno@clisp.org>
43365
43366         Fix invalid read past end of memory block.
43367         * lib/vasnprintf.c (DCHAR_SET): Define.
43368         (local_wcslen): Define only when needed.
43369         (local_strnlen, local_wcsnlen): New functions.
43370         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43371         directives that involve a conversion ourselves.
43372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43373         wcsnlen, mbrtowc, wcrtomb.
43374         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43375         * tests/test-vasprintf-posix.c (test_function): Likewise.
43376         * tests/test-snprintf-posix.h (test_function): Likewise.
43377         * tests/test-sprintf-posix.h (test_function): Likewise.
43378         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43379
43380 2009-02-22  Bruno Haible  <bruno@clisp.org>
43381
43382         Implement new clarified decomposition of Hangul syllables.
43383         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43384         of type LTV, return only a pairwise decomposition.
43385         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43386         Likewise.
43387         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43388         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43389         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43390
43391 2009-02-22  Bruno Haible  <bruno@clisp.org>
43392
43393         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43394         zero-length results and shrink excess allocated memory.
43395         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43396         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43397         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43398         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43399         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43400         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43401         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43402         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43403         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43404         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43405         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43406         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43407
43408 2009-02-21  Bruno Haible  <bruno@clisp.org>
43409
43410         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43411         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43412         spaces after a period. Put a space between a macro name and its
43413         argument list. Trivial rewordings.
43414         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43415         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43416         (main): Return 0 explicitly.
43417
43418 2009-02-21  Bruno Haible  <bruno@clisp.org>
43419
43420         Tests for module 'uninorm/filter'.
43421         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43422         * modules/uninorm/filter-tests: New file.
43423
43424         New module 'uninorm/filter'.
43425         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43426         uninorm_filter_flush, uninorm_filter_free): New declarations.
43427         * lib/uninorm/uninorm-filter.c: New file.
43428         * modules/uninorm/filter: New file.
43429
43430 2009-02-21  Bruno Haible  <bruno@clisp.org>
43431
43432         Tests for module 'uninorm/nfkc'.
43433         * tests/uninorm/test-nfkc.c: New file.
43434         * tests/uninorm/test-u8-nfkc.c: New file.
43435         * tests/uninorm/test-u16-nfkc.c: New file.
43436         * tests/uninorm/test-u32-nfkc.c: New file.
43437         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43438         * tests/uninorm/test-u32-nfkc-big.c: New file.
43439         * modules/uninorm/nfkc-tests: New file.
43440
43441         New module 'uninorm/nfkc'.
43442         * lib/uninorm/nfkc.c: New file.
43443         * modules/uninorm/nfkc: New file.
43444
43445         Tests for module 'uninorm/nfkd'.
43446         * tests/uninorm/test-nfkd.c: New file.
43447         * tests/uninorm/test-u8-nfkd.c: New file.
43448         * tests/uninorm/test-u16-nfkd.c: New file.
43449         * tests/uninorm/test-u32-nfkd.c: New file.
43450         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43451         * tests/uninorm/test-u32-nfkd-big.c: New file.
43452         * modules/uninorm/nfkd-tests: New file.
43453
43454         New module 'uninorm/nfkd'.
43455         * lib/uninorm/nfkd.c: New file.
43456         * modules/uninorm/nfkd: New file.
43457
43458         Tests for module 'uninorm/nfc'.
43459         * tests/uninorm/test-nfc.c: New file.
43460         * tests/uninorm/test-u8-nfc.c: New file.
43461         * tests/uninorm/test-u16-nfc.c: New file.
43462         * tests/uninorm/test-u32-nfc.c: New file.
43463         * tests/uninorm/test-u32-nfc-big.sh: New file.
43464         * tests/uninorm/test-u32-nfc-big.c: New file.
43465         * modules/uninorm/nfc-tests: New file.
43466
43467         New module 'uninorm/nfc'.
43468         * lib/uninorm/nfc.c: New file.
43469         * modules/uninorm/nfc: New file.
43470
43471         Tests for module 'uninorm/nfd'.
43472         * tests/uninorm/test-nfd.c: New file.
43473         * tests/uninorm/test-u8-nfd.c: New file.
43474         * tests/uninorm/test-u16-nfd.c: New file.
43475         * tests/uninorm/test-u32-nfd.c: New file.
43476         * tests/uninorm/test-u32-nfd-big.sh: New file.
43477         * tests/uninorm/test-u32-nfd-big.c: New file.
43478         * tests/uninorm/test-u32-normalize-big.h: New file.
43479         * tests/uninorm/test-u32-normalize-big.c: New file.
43480         * tests/uninorm/NormalizationTest.txt: New file, created from
43481         Unicode 5.1.0 NormalizationTest.txt.
43482         * modules/uninorm/nfd-tests: New file.
43483
43484         New module 'uninorm/nfd'.
43485         * lib/uninorm/nfd.c: New file.
43486         * modules/uninorm/nfd: New file.
43487
43488         New module 'uninorm/u32-normalize'.
43489         * lib/uninorm/u32-normalize.c: New file.
43490         * modules/uninorm/u32-normalize: New file.
43491
43492         New module 'uninorm/u16-normalize'.
43493         * lib/uninorm/u16-normalize.c: New file.
43494         * modules/uninorm/u16-normalize: New file.
43495
43496         New module 'uninorm/u8-normalize'.
43497         * lib/uninorm/u8-normalize.c: New file.
43498         * lib/uninorm/normalize-internal.h: New file.
43499         * lib/uninorm/u-normalize-internal.h: New file.
43500         * modules/uninorm/u8-normalize: New file.
43501
43502         New module 'uninorm/decompose-internal'.
43503         * lib/uninorm/decompose-internal.c: New file.
43504         * modules/uninorm/decompose-internal: New file.
43505
43506         Tests for module 'uninorm/composition'.
43507         * tests/uninorm/test-composition.c: New file.
43508         * modules/uninorm/composition-tests: New file.
43509
43510         New module 'uninorm/composition'.
43511         * lib/uninorm/composition.c: New file.
43512         * lib/uninorm/composition-table.gperf: New file, generated by
43513         gen-uni-tables.
43514         * modules/uninorm/composition: New file.
43515
43516         Tests for module 'uninorm/compat-decomposition'.
43517         * tests/uninorm/test-compat-decomposition.c: New file.
43518         * modules/uninorm/compat-decomposition-tests: New file.
43519
43520         New module 'uninorm/compat-decomposition'.
43521         * lib/uninorm/decompose-internal.h: New file.
43522         * lib/uninorm/compat-decomposition.c: New file.
43523         * modules/uninorm/compat-decomposition: New file.
43524
43525         Tests for module 'uninorm/canonical-decomposition'.
43526         * tests/uninorm/test-canonical-decomposition.c: New file.
43527         * modules/uninorm/canonical-decomposition-tests: New file.
43528
43529         New module 'uninorm/canonical-decomposition'.
43530         * lib/uninorm/canonical-decomposition.c: New file.
43531         * modules/uninorm/canonical-decomposition: New file.
43532
43533         Tests for module 'uninorm/decomposition'.
43534         * tests/uninorm/test-decomposition.c: New file.
43535         * modules/uninorm/decomposition-tests: New file.
43536
43537         New module 'uninorm/decomposition'.
43538         * lib/uninorm/decomposition.c: New file.
43539         * modules/uninorm/decomposition: New file.
43540
43541         New module 'uninorm/decomposition-table'.
43542         * lib/uninorm/decomposition-table.h: New file.
43543         * lib/uninorm/decomposition-table.c: New file.
43544         * lib/uninorm/decomposition-table1.h: New file, generated by
43545         gen-uni-tables.
43546         * lib/uninorm/decomposition-table2.h: New file, generated by
43547         gen-uni-tables.
43548         * modules/uninorm/decomposition-table: New file.
43549
43550         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43551         (UC_DECOMP_*): New enumeration items.
43552         (get_decomposition): New function.
43553         (struct decomp_table): New type.
43554         (output_decomposition, output_decomposition_tables): New functions.
43555         (unicode_composition_exclusions): New variable.
43556         (fill_composition_exclusions, debug_output_composition_tables): New
43557         functions.
43558         (main): Accept one more argument. Invoke fill_composition_exclusions.
43559         Output decomposition and composition tables.
43560
43561         New module 'uninorm/base'.
43562         * lib/uninorm.h: New file.
43563         * lib/unictype.h: Update comment.
43564         * modules/uninorm/base: New file.
43565
43566 2009-02-21  David Lutterkort  <lutter@redhat.com>
43567
43568         Tests for module 'safe-alloc'.
43569         * tests/test-safe-alloc.c: New file.
43570         * modules/safe-alloc-tests: New file.
43571
43572         New module 'safe-alloc'.
43573         * lib/safe-alloc.h: New file.
43574         * lib/safe-alloc.c: New file.
43575         * m4/safe-alloc.m4: New file.
43576         * modules/safe-alloc: New file.
43577         * doc/safe-alloc.texi: New file.
43578         * doc/gnulib.texi: Include it.
43579         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43580         safe-alloc.
43581
43582 2009-02-18  Bruno Haible  <bruno@clisp.org>
43583
43584         Fix link error on non-glibc systems.
43585         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43586         variable.
43587         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43588
43589 2009-02-18  Jim Meyering  <meyering@redhat.com>
43590
43591         fts: avoid used-uninitialized error due to recent change
43592         * lib/fts.c (fts_read): Guard uses of the new member,
43593         parent->fts_n_dirs_remaining, since it's not relevant for
43594         the parent of a directory specified on the command-line.
43595
43596 2009-02-17  James Youngman  <jay@gnu.org>
43597             Bruno Haible  <bruno@clisp.org>
43598
43599         * m4/include_next.m4: Reformulate comment.
43600
43601 2009-02-16  Jim Meyering  <meyering@redhat.com>
43602
43603         fts: add #if guards so that the fts_lgpl module still builds
43604         * lib/fts.c: Guard just-added hash-table-using parts with
43605         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43606         Reported by Simon Josefsson.
43607
43608 2009-02-15  Bruno Haible  <bruno@clisp.org>
43609
43610         * modules/array-mergesort-tests: New file.
43611         * tests/test-array-mergesort.c: New file.
43612
43613         New module 'array-mergesort'.
43614         * modules/array-mergesort: New file.
43615         * lib/array-mergesort.h: New file.
43616
43617 2009-02-15  Bruno Haible  <bruno@clisp.org>
43618
43619         Fix 2009-02-07 commit.
43620         * lib/gen-uni-tables.c (output_predicate, output_category,
43621         output_combclass, output_bidi_category, output_decimal_digit,
43622         output_digit, output_numeric, output_mirror, output_scripts,
43623         output_ident_category, output_simple_mapping): Fix format directives.
43624         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43625
43626 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43627
43628         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43629         fixes are available from IBM.
43630
43631 2009-02-13  Jim Meyering  <meyering@redhat.com>
43632
43633         fts: arrange not to stat non-directories in more cases
43634         This makes GNU find (when it doesn't need to stat each file)
43635         *much* more efficient at traversing reiserfs file systems.
43636         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43637         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43638         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43639         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43640         (leaf_optimization_applies): New function.
43641         (LCO_hash, LCO_compare): New helper functions.
43642         (link_count_optimize_ok): New function.
43643         (fts_stat): Initialize new member (if dir).
43644         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43645         we've just stat'ed a directory.  Skip the stat call when possible.
43646         ---
43647         Note this AFS-related exchange:
43648         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43649         and note find's pioctl call in find/fstype.c.
43650         But that is necessary only if you want to enable the
43651         optimization for AFS, and for now, I don't.
43652
43653         fts: move a function definition "up" (no semantic change)
43654         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43655         "up" to precede upcoming use of a related function.
43656
43657 2009-02-11  Jim Meyering  <meyering@redhat.com>
43658
43659         fts: correct internal computation of nlinks (optimization-related)
43660         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43661         whether the current entry is a directory, so don't test it.
43662
43663 2009-02-10  Bruno Haible  <bruno@clisp.org>
43664
43665         Tests for module 'uniwbrk/ulc-wordbreaks'.
43666         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43667         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43668         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43669
43670         Tests for module 'uniwbrk/u32-wordbreaks'.
43671         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43672         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43673
43674         Tests for module 'uniwbrk/u16-wordbreaks'.
43675         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43676         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43677
43678         Tests for module 'uniwbrk/u8-wordbreaks'.
43679         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43680         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43681
43682 2009-02-10  Bruno Haible  <bruno@clisp.org>
43683
43684         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43685         property.
43686         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43687         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43688         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43689
43690 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43691
43692         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43693         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43694
43695 2009-02-10  Bruno Haible  <bruno@clisp.org>
43696
43697         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43698         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43699         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43700         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43701         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43702         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43703
43704 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43705
43706         * lib/sockets.h (gl_fd_to_handle): New function.
43707
43708         * tests/test-sockets.c: Call gl_fd_to_handle.
43709
43710 2009-02-09  Bruno Haible  <bruno@clisp.org>
43711
43712         * doc/havelib.texi: Document the conventions on bi-arch systems.
43713
43714 2009-02-08  Bruno Haible  <bruno@clisp.org>
43715
43716         Document the AC_LIB_LINKFLAGS macro.
43717         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43718         * doc/gnulib.texi: Include it.
43719
43720 2009-02-08  Bruno Haible  <bruno@clisp.org>
43721
43722         Fix wrong order of sections, compared to TOC.
43723         * doc/gnulib.texi: Include relocatable-maint.texi after the
43724         "Regular expressions" node, not before.
43725
43726 2009-02-08  Bruno Haible  <bruno@clisp.org>
43727
43728         Tests for module 'unicase/totitle'.
43729         * modules/unicase/totitle-tests: New file.
43730
43731         Tests for module 'unicase/tolower'.
43732         * modules/unicase/tolower-tests: New file.
43733
43734         Tests for module 'unicase/toupper'.
43735         * modules/unicase/toupper-tests: New file.
43736         * tests/unicase/test-mapping-part1.h: New file.
43737         * tests/unicase/test-mapping-part2.h: New file.
43738
43739         New module 'unicase/totitle'.
43740         * modules/unicase/totitle: New file.
43741         * lib/unicase/totitle.c: New file.
43742
43743         New module 'unicase/tolower'.
43744         * modules/unicase/tolower: New file.
43745         * lib/unicase/tolower.c: New file.
43746
43747         New module 'unicase/toupper'.
43748         * modules/unicase/toupper: New file.
43749         * lib/unicase/toupper.c: New file.
43750         * lib/unicase/simple-mapping.h: New file.
43751
43752         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43753         (mapping_table): New structure.
43754         (output_simple_mapping): New function.
43755         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43756         * modules/gen-uni-tables (Description): Update.
43757         * lib/unicase/toupper.h: New file, automatically generated by
43758         gen-uni-tables.
43759         * lib/unicase/tolower.h: New file, automatically generated by
43760         gen-uni-tables.
43761         * lib/unicase/totitle.h: New file, automatically generated by
43762         gen-uni-tables.
43763         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43764         gen-uni-tables.
43765         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43766         gen-uni-tables.
43767         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43768         gen-uni-tables.
43769
43770         New module 'unicase/base'.
43771         * modules/unicase/base: New file.
43772         * lib/unicase.h: New file.
43773
43774 2009-02-08  Bruno Haible  <bruno@clisp.org>
43775
43776         New module 'uniwbrk/ulc-wordbreaks'.
43777         * modules/uniwbrk/ulc-wordbreaks: New file.
43778         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43779
43780         New module 'uniwbrk/u32-wordbreaks'.
43781         * modules/uniwbrk/u32-wordbreaks: New file.
43782         * lib/uniwbrk/u32-wordbreaks.c: New file.
43783
43784         New module 'uniwbrk/u16-wordbreaks'.
43785         * modules/uniwbrk/u16-wordbreaks: New file.
43786         * lib/uniwbrk/u16-wordbreaks.c: New file.
43787
43788         New module 'uniwbrk/u8-wordbreaks'.
43789         * modules/uniwbrk/u8-wordbreaks: New file.
43790         * lib/uniwbrk/u8-wordbreaks.c: New file.
43791         * lib/uniwbrk/u-wordbreaks.h: New file.
43792
43793         New module 'uniwbrk/table'.
43794         * modules/uniwbrk/table: New file.
43795         * lib/uniwbrk/wbrktable.h: New file.
43796         * lib/uniwbrk/wbrktable.c: New file.
43797
43798         New module 'uniwbrk/wordbreak-property'.
43799         * modules/uniwbrk/wordbreak-property: New file.
43800         * lib/uniwbrk/wordbreak-property.c: New file.
43801
43802         * lib/gen-uni-tables.c (WBP_*): New enum items.
43803         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43804         (unicode_org_wbp): New variable.
43805         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43806         New functions.
43807         (wbp_table): New structure.
43808         (output_wbp, output_wbrk_tables): New functions.
43809         (main): Accept additional argument. Invoke fill_org_wbp,
43810         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43811         output_wbrk_tables.
43812         * modules/gen-uni-tables (Description): Update.
43813         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43814         gen-uni-tables.
43815
43816         New module 'uniwbrk/base'.
43817         * modules/uniwbrk/base: New file.
43818         * lib/uniwbrk.h: New file.
43819
43820 2009-02-08  Bruno Haible  <bruno@clisp.org>
43821
43822         Update to Unicode 5.1.0.
43823         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43824         U+2185..U+2188.
43825         (is_property_default_ignorable_code_point): Don't include characters
43826         of category Cc or Cs and not-a-characters.
43827         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43828         U+0D79, U+109E, U+109F, U+A60C.
43829         * lib/unictype/bidi_of.h: Regenerated.
43830         * lib/unictype/blocks.h: Regenerated.
43831         * lib/unictype/categ_C.h: Regenerated.
43832         * lib/unictype/categ_Cf.h: Regenerated.
43833         * lib/unictype/categ_Cn.h: Regenerated.
43834         * lib/unictype/categ_L.h: Regenerated.
43835         * lib/unictype/categ_Ll.h: Regenerated.
43836         * lib/unictype/categ_Lm.h: Regenerated.
43837         * lib/unictype/categ_Lo.h: Regenerated.
43838         * lib/unictype/categ_Lu.h: Regenerated.
43839         * lib/unictype/categ_M.h: Regenerated.
43840         * lib/unictype/categ_Mc.h: Regenerated.
43841         * lib/unictype/categ_Me.h: Regenerated.
43842         * lib/unictype/categ_Mn.h: Regenerated.
43843         * lib/unictype/categ_N.h: Regenerated.
43844         * lib/unictype/categ_Nd.h: Regenerated.
43845         * lib/unictype/categ_Nl.h: Regenerated.
43846         * lib/unictype/categ_No.h: Regenerated.
43847         * lib/unictype/categ_P.h: Regenerated.
43848         * lib/unictype/categ_Pd.h: Regenerated.
43849         * lib/unictype/categ_Pe.h: Regenerated.
43850         * lib/unictype/categ_Pf.h: Regenerated.
43851         * lib/unictype/categ_Pi.h: Regenerated.
43852         * lib/unictype/categ_Po.h: Regenerated.
43853         * lib/unictype/categ_Ps.h: Regenerated.
43854         * lib/unictype/categ_S.h: Regenerated.
43855         * lib/unictype/categ_Sk.h: Regenerated.
43856         * lib/unictype/categ_Sm.h: Regenerated.
43857         * lib/unictype/categ_So.h: Regenerated.
43858         * lib/unictype/categ_of.h: Regenerated.
43859         * lib/unictype/combining.h: Regenerated.
43860         * lib/unictype/ctype_alnum.h: Regenerated.
43861         * lib/unictype/ctype_alpha.h: Regenerated.
43862         * lib/unictype/ctype_graph.h: Regenerated.
43863         * lib/unictype/ctype_lower.h: Regenerated.
43864         * lib/unictype/ctype_print.h: Regenerated.
43865         * lib/unictype/ctype_punct.h: Regenerated.
43866         * lib/unictype/ctype_upper.h: Regenerated.
43867         * lib/unictype/decdigit.h: Regenerated.
43868         * lib/unictype/digit.h: Regenerated.
43869         * lib/unictype/mirror.h: Regenerated.
43870         * lib/unictype/numeric.h: Regenerated.
43871         * lib/unictype/pr_alphabetic.h: Regenerated.
43872         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43873         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43874         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43875         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43876         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43877         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43878         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43879         * lib/unictype/pr_combining.h: Regenerated.
43880         * lib/unictype/pr_dash.h: Regenerated.
43881         * lib/unictype/pr_decimal_digit.h: Regenerated.
43882         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43883         * lib/unictype/pr_deprecated.h: Regenerated.
43884         * lib/unictype/pr_diacritic.h: Regenerated.
43885         * lib/unictype/pr_extender.h: Regenerated.
43886         * lib/unictype/pr_format_control.h: Regenerated.
43887         * lib/unictype/pr_grapheme_base.h: Regenerated.
43888         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43889         * lib/unictype/pr_grapheme_link.h: Regenerated.
43890         * lib/unictype/pr_id_continue.h: Regenerated.
43891         * lib/unictype/pr_id_start.h: Regenerated.
43892         * lib/unictype/pr_ideographic.h: Regenerated.
43893         * lib/unictype/pr_ignorable_control.h: Regenerated.
43894         * lib/unictype/pr_lowercase.h: Regenerated.
43895         * lib/unictype/pr_math.h: Regenerated.
43896         * lib/unictype/pr_numeric.h: Regenerated.
43897         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43898         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43899         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43900         * lib/unictype/pr_other_id_continue.h: Regenerated.
43901         * lib/unictype/pr_other_lowercase.h: Regenerated.
43902         * lib/unictype/pr_other_math.h: Regenerated.
43903         * lib/unictype/pr_punctuation.h: Regenerated.
43904         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43905         * lib/unictype/pr_soft_dotted.h: Regenerated.
43906         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43907         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43908         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43909         * lib/unictype/pr_uppercase.h: Regenerated.
43910         * lib/unictype/pr_xid_continue.h: Regenerated.
43911         * lib/unictype/pr_xid_start.h: Regenerated.
43912         * lib/unictype/pr_zero_width.h: Regenerated.
43913         * lib/unictype/scripts.h: Regenerated.
43914         * lib/unictype/scripts_byname.gperf: Regenerated.
43915         * lib/unictype/sy_java_ident.h: Regenerated.
43916         * lib/unilbrk/lbrkprop1.h: Regenerated.
43917         * lib/unilbrk/lbrkprop2.h: Regenerated.
43918         * tests/unictype/test-categ_C.c: Regenerated.
43919         * tests/unictype/test-categ_Cf.c: Regenerated.
43920         * tests/unictype/test-categ_Cn.c: Regenerated.
43921         * tests/unictype/test-categ_L.c: Regenerated.
43922         * tests/unictype/test-categ_Ll.c: Regenerated.
43923         * tests/unictype/test-categ_Lm.c: Regenerated.
43924         * tests/unictype/test-categ_Lo.c: Regenerated.
43925         * tests/unictype/test-categ_Lu.c: Regenerated.
43926         * tests/unictype/test-categ_M.c: Regenerated.
43927         * tests/unictype/test-categ_Mc.c: Regenerated.
43928         * tests/unictype/test-categ_Me.c: Regenerated.
43929         * tests/unictype/test-categ_Mn.c: Regenerated.
43930         * tests/unictype/test-categ_N.c: Regenerated.
43931         * tests/unictype/test-categ_Nd.c: Regenerated.
43932         * tests/unictype/test-categ_Nl.c: Regenerated.
43933         * tests/unictype/test-categ_No.c: Regenerated.
43934         * tests/unictype/test-categ_P.c: Regenerated.
43935         * tests/unictype/test-categ_Pd.c: Regenerated.
43936         * tests/unictype/test-categ_Pe.c: Regenerated.
43937         * tests/unictype/test-categ_Pf.c: Regenerated.
43938         * tests/unictype/test-categ_Pi.c: Regenerated.
43939         * tests/unictype/test-categ_Po.c: Regenerated.
43940         * tests/unictype/test-categ_Ps.c: Regenerated.
43941         * tests/unictype/test-categ_S.c: Regenerated.
43942         * tests/unictype/test-categ_Sk.c: Regenerated.
43943         * tests/unictype/test-categ_Sm.c: Regenerated.
43944         * tests/unictype/test-categ_So.c: Regenerated.
43945         * tests/unictype/test-ctype_alnum.c: Regenerated.
43946         * tests/unictype/test-ctype_alpha.c: Regenerated.
43947         * tests/unictype/test-ctype_graph.c: Regenerated.
43948         * tests/unictype/test-ctype_lower.c: Regenerated.
43949         * tests/unictype/test-ctype_print.c: Regenerated.
43950         * tests/unictype/test-ctype_punct.c: Regenerated.
43951         * tests/unictype/test-ctype_upper.c: Regenerated.
43952         * tests/unictype/test-decdigit.h: Regenerated.
43953         * tests/unictype/test-digit.h: Regenerated.
43954         * tests/unictype/test-numeric.h: Regenerated.
43955         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43956         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43957         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43958         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43959         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43960         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43961         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43962         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43963         * tests/unictype/test-pr_combining.c: Regenerated.
43964         * tests/unictype/test-pr_dash.c: Regenerated.
43965         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43966         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43967         * tests/unictype/test-pr_deprecated.c: Regenerated.
43968         * tests/unictype/test-pr_diacritic.c: Regenerated.
43969         * tests/unictype/test-pr_extender.c: Regenerated.
43970         * tests/unictype/test-pr_format_control.c: Regenerated.
43971         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43972         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43973         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43974         * tests/unictype/test-pr_id_continue.c: Regenerated.
43975         * tests/unictype/test-pr_id_start.c: Regenerated.
43976         * tests/unictype/test-pr_ideographic.c: Regenerated.
43977         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43978         * tests/unictype/test-pr_lowercase.c: Regenerated.
43979         * tests/unictype/test-pr_math.c: Regenerated.
43980         * tests/unictype/test-pr_numeric.c: Regenerated.
43981         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43982         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43983         Regenerated.
43984         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43985         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43986         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43987         * tests/unictype/test-pr_other_math.c: Regenerated.
43988         * tests/unictype/test-pr_punctuation.c: Regenerated.
43989         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43990         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43991         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43992         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43993         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43994         * tests/unictype/test-pr_uppercase.c: Regenerated.
43995         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43996         * tests/unictype/test-pr_xid_start.c: Regenerated.
43997         * tests/unictype/test-pr_zero_width.c: Regenerated.
43998
43999         Update to Unicode 5.1.0.
44000         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
44001         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
44002         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
44003         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
44004         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
44005         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
44006         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
44007         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
44008         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
44009         (nonspacing_table_ind): Update.
44010         * tests/uniwidth/test-uc_width2.sh: Update expected result.
44011
44012         Update to Unicode 5.1.0.
44013         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
44014         code transform.
44015         * lib/uniname/uniname.c (unicode_character_name,
44016         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44017         * lib/uniname/uninames.h: Regenerated.
44018         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44019
44020 2009-02-07  Bruno Haible  <bruno@clisp.org>
44021
44022         Merge gen-ctype and gen-lbrk into a single program.
44023         * lib/gen-uni-tables.c: New file, incorporating
44024         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44025         Add directory prefixes to the names of the generated files.
44026         * lib/unictype/gen-ctype.c: Remove file.
44027         * lib/unilbrk/gen-lbrk.c: Remove file.
44028         * modules/gen-uni-tables: New file.
44029         * modules/unictype/gen-ctype: Remove file.
44030         * modules/unilbrk/gen-lbrk: Remove file.
44031
44032 2009-02-07  Bruno Haible  <bruno@clisp.org>
44033
44034         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44035
44036         New module 'unistr/u32-strcoll'.
44037         * modules/unistr/u32-strcoll: New file.
44038         * lib/unistr/u32-strcoll.c: New file.
44039
44040         New module 'unistr/u16-strcoll'.
44041         * modules/unistr/u16-strcoll: New file.
44042         * lib/unistr/u16-strcoll.c: New file.
44043
44044         New module 'unistr/u8-strcoll'.
44045         * modules/unistr/u8-strcoll: New file.
44046         * lib/unistr/u8-strcoll.c: New file.
44047         * lib/unistr/u-strcoll.h: New file.
44048
44049 2009-02-07  Bruno Haible  <bruno@clisp.org>
44050
44051         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44052         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44053         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44054         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44055         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44056         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44057
44058 2009-02-07  Bruno Haible  <bruno@clisp.org>
44059
44060         Make 64-bit clean.
44061         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44062         output_combclass, output_bidi_category, output_decimal_digit,
44063         output_digit, output_numeric, output_mirror, output_scripts,
44064         output_ident_category): Use proper width specifier in format strings.
44065
44066 2009-02-07  Bruno Haible  <bruno@clisp.org>
44067
44068         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44069         failure behaviour.
44070
44071 2009-02-07  Jim Meyering  <meyering@redhat.com>
44072
44073         regex: avoid compilation failure with upcoming gcc-4.4
44074         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44075         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44076         "... error: integer overflow in preprocessor expression".
44077
44078 2009-02-05  Ben Pfaff  <blp@gnu.org>
44079
44080         Fix link errors on Windows when close module is used.
44081         * modules/close: Add $(LIB_CLOSE) to Link section.
44082         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44083         $(LIB_CLOSE) on Windows.
44084
44085 2009-02-05  Jim Meyering  <meyering@redhat.com>
44086
44087         still avoid unused-parameter warnings, but do it cleanly
44088         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44089         (get_fs_usage): Cast to void instead.
44090         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44091         (dev_from_mount_options, read_file_system_list): Cast to void.
44092         Prompted by Bruno Haible.
44093
44094 2009-02-04  Jim Meyering  <meyering@redhat.com>
44095
44096         fsusage.c: correct copyright year
44097         * lib/fsusage.c: Reflect year in which the change is pushed into
44098
44099         avoid misc. warnings
44100         * lib/fsusage.c (UNUSED_PARAM): Define.
44101         (get_fs_usage): Mark parameter "disk" as unused.
44102         * lib/getugroups.c (getgrent): Use "void" in prototype.
44103         * lib/mountlist.c: Mark unused parameters.
44104         (read_file_system_list): Declare a local with "const".
44105         * lib/nanosleep.c (getnow): Declare static.
44106         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44107
44108         dirfd: set errno upon failure
44109         * lib/dirfd.c: Include <errno.h>.
44110         Set errno to ENOTSUP when returning -1.
44111         * modules/dirfd (Depends-on): Add errno.
44112         Suggested by John Kodis <kodis@comcast.net>.
44113
44114 2009-02-01  Bruno Haible  <bruno@clisp.org>
44115
44116         Don't assume sizeof (long) >= sizeof (void *).
44117         * lib/memcmp.c: Include stdint.h.
44118         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44119         srcp2 to 'const byte *'.
44120         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44121         types to uintptr_t.
44122         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44123         * modules/memcmp (Depends-on): Add stdint.
44124         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44125
44126 2009-01-30  Eric Blake  <ebb9@byu.net>
44127
44128         fix more require-before-expand issues
44129         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44130         expand, AC_PROG_AWK.
44131         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44132
44133 2009-01-28  Eric Blake  <ebb9@byu.net>
44134
44135         version-etc: use consistent URL formatting
44136         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44137         Improve formatting.  Use fputs for string without %.
44138
44139 2009-01-28  Jim Meyering  <meyering@redhat.com>
44140
44141         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44142         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44143         "underquoted definition of NAME" from autoconf-2.59.
44144
44145 2009-01-28  Bruno Haible  <bruno@clisp.org>
44146
44147         * doc/gnulib.texi: Add "Obsolete modules" to index.
44148
44149 2009-01-28  Jim Meyering  <meyering@redhat.com>
44150
44151         useless-if-before-free: recognize more variants
44152         * build-aux/useless-if-before-free: Also recognize e.g.,
44153         if (NULL != p) free (p);
44154
44155 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44156
44157         test-getaddrinfo: skip (don't fail) this test when there's no network
44158         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44159         on the presumption that it means you lack network access.
44160
44161 2009-01-26  Jim Meyering  <meyering@redhat.com>
44162
44163         fflush: avoid warnings on modern systems
44164         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44165         pos and result, into scopes where they're used.
44166
44167 2009-01-26  Eric Blake  <ebb9@byu.net>
44168
44169         Silence warning reintroduced by recent extensions patch.
44170         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44171         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44172         autoconf.
44173
44174         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44175         * m4/00gnulib.m4: New file.
44176         * gnulib-tool (func_get_filelist): Always use it.
44177         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44178         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44179
44180 2009-01-25  Bruno Haible  <bruno@clisp.org>
44181
44182         Make test-quotearg work on MacOS X and AIX.
44183         * tests/test-quotearg.sh: New file.
44184         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44185         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44186         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44187         include <libintl.h>.
44188         (fake_locale): Remove variable.
44189         (gettext, dgettext, dcgettext): Remove functions.
44190         (main): Instead of setting a fake locale, set a real locale. Call
44191         textdomain and bindtextdomain.
44192         * modules/quotearg-tests (Files): Add the new files.
44193         (Depends-on): Add gettext, setenv, unsetenv.
44194         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44195         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44196         Augment TESTS_ENVIRONMENT.
44197
44198 2009-01-25  Bruno Haible  <bruno@clisp.org>
44199
44200         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44201         fr_FR.ISO8859-1 locale on MacOS X.
44202         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44203         ja_JP.eucJP locale on MacOS X.
44204         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44205         zh_CN.GB18030 locale on MacOS X.
44206
44207 2009-01-25  Bruno Haible  <bruno@clisp.org>
44208
44209         Avoid link errors on MacOS X 10.3.
44210         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44211         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44212
44213 2009-01-25  Bruno Haible  <bruno@clisp.org>
44214
44215         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44216         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44217         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44218         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44219         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44220         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44221         posix_spawnattr_init, posix_spawnattr_setsigmask,
44222         posix_spawnattr_setflags, posix_spawnattr_destroy.
44223
44224         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44225         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44226         * modules/execute (Files): Remove m4/posix_spawn.m4.
44227         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44228         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44229         posix_spawnattr_init, posix_spawnattr_setsigmask,
44230         posix_spawnattr_setflags, posix_spawnattr_destroy.
44231
44232 2009-01-25  Bruno Haible  <bruno@clisp.org>
44233
44234         * lib/glthread/threadlib.c: Include <stdlib.h>.
44235
44236 2009-01-25  Bruno Haible  <bruno@clisp.org>
44237
44238         * lib/glthread/threadlib.c (dummy): New declaration.
44239
44240 2009-01-25  Bruno Haible  <bruno@clisp.org>
44241
44242         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44243         multibyte characters also for the GB18030 encoding. Don't crash when
44244         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44245
44246 2009-01-25  Bruno Haible  <bruno@clisp.org>
44247
44248         Avoid redefining 'struct random_data' on OSF/1 5.1.
44249         * lib/stdlib.in.h: Include <random.h> if it exists.
44250         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44251         HAVE_RANDOM_H. Include <random.h> when testing whether
44252         'struct random_data' exists.
44253         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44254
44255 2009-01-25  Bruno Haible  <bruno@clisp.org>
44256
44257         Don't install charset.alias on MacOS X >= 10.3.
44258         * lib/localcharset.c (DARWIN7): New macro.
44259         (get_charset_aliases): Hardcode the result for Darwin7.
44260         * modules/localcharset (install-exec-local): Don't install
44261         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44262
44263 2009-01-25  Bruno Haible  <bruno@clisp.org>
44264
44265         Don't install charset.alias on mingw and Cygwin.
44266         * modules/localcharset (install-exec-local): Don't install
44267         charset.alias on mingw and Cygwin, if the file does not yet exist.
44268         The result for these platforms is hardcoded in localcharset.c.
44269
44270 2009-01-25  Bruno Haible  <bruno@clisp.org>
44271
44272         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44273         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44274         before requiring AC_USE_SYSTEM_EXTENSIONS.
44275
44276 2009-01-25  Jim Meyering  <meyering@redhat.com>
44277
44278         c-strtod: avoid warnings
44279         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44280         "assignment discards qualifiers from pointer target type" warnings.
44281
44282 2009-01-24  Bruno Haible  <bruno@clisp.org>
44283
44284         Add support for non-UTF-8 locales on MacOS X.
44285         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44286         canonical encodings. For Darwin 7 and newer, don't map traditional
44287         encodings to UTF-8.
44288         Reported by Vincent Lefevre <vincent@vinc17.org>
44289         at <http://savannah.gnu.org/bugs/?25235>.
44290
44291 2009-01-24  Bruno Haible  <bruno@clisp.org>
44292
44293         * doc/gnulib.texi (Obsolete modules): New section.
44294         Reported by Mike Frysinger <vapier@gentoo.org>.
44295
44296 2009-01-24  Bruno Haible  <bruno@clisp.org>
44297
44298         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44299         (%.dvi): New rule.
44300
44301 2009-01-24  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44304         Reported by Eric Blake.
44305
44306 2009-01-24  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44309         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44310         Reported by Gary V. Vaughan <gary@gnu.org>.
44311
44312 2009-01-24  Bruno Haible  <bruno@clisp.org>
44313
44314         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44315
44316 2009-01-23  Bruno Haible  <bruno@clisp.org>
44317
44318         Make c-strtod, c-strtold usable in libraries.
44319         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44320         (C_STRTOD): Call strdup instead of xstrdup.
44321         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44322         * modules/c-strtold (Depends-on): Likewise.
44323         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44324         * NEWS: Mention the change.
44325         Reported by Michael Gold <mgold@ncf.ca>.
44326
44327 2009-01-23  Jim Meyering  <meyering@redhat.com>
44328
44329         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44330         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44331         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44332
44333 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44334
44335         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44336         GNU CoreUtils.
44337         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44338         * modules/version-etc (Description): Update.
44339
44340 2009-01-22  Bruno Haible  <bruno@clisp.org>
44341
44342         Cache the C locale object.
44343         * lib/c-strtod.c (c_locale_cache): New variable.
44344         (c_locale): New function.
44345         (C_STRTOD): Use it, and don't call freelocale.
44346         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44347         Suggested by Paolo Bonzini.
44348
44349 2009-01-21  Bruno Haible  <bruno@clisp.org>
44350
44351         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44352         conditions other than overflow.
44353
44354 2009-01-21  Bruno Haible  <bruno@clisp.org>
44355
44356         * lib/c-strtod.c: Include errno.h.
44357         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44358         value from STRTOD_L and STRTOD.
44359
44360 2009-01-21  Bruno Haible  <bruno@clisp.org>
44361         and Jim Meyering  <meyering@redhat.com>
44362
44363         nanosleep: skip configure test (fail it) for apple universal builds
44364         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44365         universal builds, assume that nanosleep does not work.
44366         * modules/nanosleep (Depends-on): Add multiarch.
44367
44368         mktime: skip configure test (fail it) for apple universal builds
44369         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44370         universal builds, assume that mktime does not work.
44371         * modules/mktime (Depends-on): Add multiarch.
44372
44373 2009-01-21  Eric Blake  <ebb9@byu.net>
44374
44375         multiarch: avoid expand-before-require warning
44376         * modules/multiarch (configure.ac): Require, rather than expand,
44377         gl_MULTIARCH.
44378         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44379         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44380         enforce that all clients require it.  Partial reversion of
44381         2008-12-29 patch.
44382
44383         error: avoid expand-before-require warning
44384         * modules/errno (configure.ac): Require, rather than expand,
44385         gl_HEADER_ERRNO_H.
44386         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44387         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44388         enforce that all clients require it.
44389
44390         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44391         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44392         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44393         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44394
44395 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44396
44397         Revert:
44398         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44399
44400         regex: do not depend on obsolete modules.
44401         * modules/regex: Remove memcmp and memmove.
44402
44403 2009-01-20  Bruno Haible  <bruno@clisp.org>
44404
44405         Make the 'link' module link on Windows NT 4.
44406         * lib/link.c (_WIN32_WINNT): Don't define.
44407         (CreateHardLinkFuncType): New type.
44408         (CreateHardLinkFunc, initialized): New variables.
44409         (initialize): New function.
44410         (link): Invoke CreateHardLink indirectly through the function pointer.
44411
44412 2009-01-20  Bruno Haible  <bruno@clisp.org>
44413
44414         Fix compilation failure on mingw.
44415         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44416
44417 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44418
44419         * doc/c-strtod.texi: Mention a couple of restrictions.
44420
44421 2009-01-20  Jim Meyering  <meyering@redhat.com>
44422
44423         gettimeofday: move more declarations out of functions
44424         * lib/gettimeofday.c: Move extern declarations of tzset and
44425         gmtime out of containing functions.  Prompted by Bruno Haible.
44426
44427 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44428
44429         regex: do not depend on obsolete modules.
44430         * modules/regex: Remove memcmp and memmove.
44431
44432 2009-01-19  Bruno Haible  <bruno@clisp.org>
44433
44434         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44435         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44436         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44437         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44438         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44439
44440 2009-01-19  Bruno Haible  <bruno@clisp.org>
44441
44442         * tests/test-link.c: Include <errno.h>.
44443         (main): Exit with code 77 when a hard link cannot be created due to
44444         the file system.
44445         * tests/test-link.sh: Skip test when a hard link cannot be created due
44446         to the file system.
44447         Suggested by Eric Blake.
44448
44449 2009-01-19  Martin Lambers  <marlam@marlam.de>
44450
44451         * modules/link-tests: New file.
44452         * tests/test-link.sh: New file.
44453         * tests/test-link.c: New file.
44454
44455 2009-01-19  Eric Blake  <ebb9@byu.net>
44456
44457         doc: mention another function added in cygwin 1.7.0
44458         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44459         Another new function in cygwin 1.7.
44460
44461 2009-01-19  Bruno Haible  <bruno@clisp.org>
44462
44463         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44464         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44465         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44466         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44467         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44468         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44469         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44470         * m4/md4.m4 (gl_MD4): Likewise.
44471         * m4/md5.m4 (gl_MD5): Likewise.
44472         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44473         * m4/sha1.m4 (gl_SHA1): Likewise.
44474         * m4/sha256.m4 (gl_SHA256): Likewise.
44475         * m4/sha512.m4 (gl_SHA512): Likewise.
44476
44477 2009-01-19  Bruno Haible  <bruno@clisp.org>
44478
44479         * modules/uniname/uniname-tests (Depends-on): Add progname.
44480         * tests/uniname/test-uninames.c: Include progname.h.
44481         (main): Call set_program_name.
44482
44483         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44484         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44485         (main): Call set_program_name.
44486
44487         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44488         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44489         (main): Call set_program_name.
44490
44491         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44492         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44493         (main): Call set_program_name.
44494
44495         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44496         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44497         (main): Call set_program_name.
44498
44499         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44500         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44501         (main): Call set_program_name.
44502
44503         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44504         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44505         (main): Call set_program_name.
44506
44507         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44508         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44509         (main): Call set_program_name.
44510
44511         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44512         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44513         (main): Call set_program_name.
44514
44515 2009-01-19  Eric Blake  <ebb9@byu.net>
44516
44517         test-unistd: test previous patch
44518         * tests/test-unistd.c: Test *_FILENO macros.
44519
44520         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44521         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44522         Guarantee a definition.
44523         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44524         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44525         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44526         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44527         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44528         Likewise.
44529         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44530         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44531         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44532         Likewise.
44533         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44534         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44535         (STDERR_FILENO): Likewise.
44536         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44537         (STDERR_FILENO): Likewise.
44538         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44539         (STDERR_FILENO): Likewise.
44540         Reported by Elbert Pol.
44541
44542 2009-01-19  Eric Blake  <ebb9@byu.net>
44543
44544         doc: mention more functions added in cygwin 1.7.0
44545         * doc/posix-functions/abort.texi (abort): Update wording related
44546         to cygwin.
44547         * doc/posix-functions/daylight.texi (daylight): Likewise.
44548         * doc/posix-functions/optarg.texi (optarg): Likewise.
44549         * doc/posix-functions/optarg.texi (opterr): Likewise.
44550         * doc/posix-functions/optarg.texi (optind): Likewise.
44551         * doc/posix-functions/optarg.texi (optopt): Likewise.
44552         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44553         worked in 1.5.x, and was withdrawn in 1.7.
44554         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44555         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44556         cygwin versions.
44557         * doc/posix-functions/perror.texi (perror): Likewise.
44558         * doc/posix-functions/printf.texi (printf): Likewise.
44559         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44560         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44561         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44562         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44563         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44564         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44565         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44566         Likewise.
44567         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44568         Likewise.
44569         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44570         this function.
44571         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44572         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44573         Likewise.
44574         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44575         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44576         * doc/posix-functions/confstr.texi (confstr): Likewise.
44577         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44578         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44579         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44580         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44581         * doc/posix-functions/fputws.texi (fputws): Likewise.
44582         * doc/posix-functions/fwide.texi (fwide): Likewise.
44583         * doc/posix-functions/getwc.texi (getwc): Likewise.
44584         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44585         * doc/posix-functions/putwc.texi (putwc): Likewise.
44586         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44587         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44588         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44589         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44590         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44591         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44592         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44593         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44594         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44595         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44596         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44597
44598 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44599
44600         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44601         * lib/ioctl.c: Include <sys/ioctl.h>.
44602
44603 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44604
44605         * modules/getdate-tests (Depends-on): Add progname.
44606         * tests/test-getdate.c: Use progname module, to avoid link errors
44607         on non-glibc systems.
44608
44609 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44610
44611         * modules/filenamecat-tests (Depends-on): Add progname.
44612         * modules/fstrcmp-tests (Depends-on): Likewise.
44613
44614         * tests/test-filenamecat.c: Use progname module, to avoid link
44615         errors on non-glibc systems.
44616         * tests/test-fstrcmp.c: Likewise.
44617
44618 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44619
44620         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44621         * lib/gettimeofday.c: Move extern declaration out of function.
44622
44623 2009-01-18  Bruno Haible  <bruno@clisp.org>
44624
44625         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44626         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44627         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44628
44629 2009-01-18  Bruno Haible  <bruno@clisp.org>
44630
44631         * lib/strftime.c (MEMPCPY): Remove unused macro.
44632         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44633
44634 2009-01-18  Martin Lambers  <marlam@marlam.de>
44635
44636         New module 'link'.
44637         * lib/unistd.in.h (link): New declaration.
44638         * lib/link.c: New file.
44639         * m4/link.m4: New file.
44640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44641         HAVE_LINK.
44642         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44643         * modules/link: New file.
44644         * doc/posix-functions/link.texi: Mention the new module.
44645
44646 2009-01-18  Bruno Haible  <bruno@clisp.org>
44647
44648         * tests/test-avltree_list.c (main): Call set_program_name.
44649         * tests/test-avltree_oset.c (main): Likewise.
44650         * tests/test-obstack-printf.c: Include progname.h.
44651         (main): Call set_program_name.
44652         * tests/test-quotearg.c: Include progname.h.
44653         (main): Call set_program_name.
44654         * tests/test-xmemdup0.c: Include progname.h.
44655         (main): Call set_program_name.
44656
44657 2009-01-18  Bruno Haible  <bruno@clisp.org>
44658
44659         New module 'alphasort'.
44660         * lib/dirent.in.h (alphasort): New declaration.
44661         * lib/alphasort.c: New file, from glibc with modifications.
44662         * m4/alphasort.m4: New file.
44663         * modules/alphasort: New file.
44664         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44665         HAVE_ALPHASORT.
44666         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44667         HAVE_ALPHASORT.
44668         * doc/posix-functions/alphasort.texi: Mention the new module and the
44669         portability problems.
44670
44671 2009-01-18  Bruno Haible  <bruno@clisp.org>
44672
44673         New module 'scandir'.
44674         * lib/dirent.in.h (scandir): New declaration.
44675         * lib/scandir.c: New file, from glibc with modifications.
44676         * m4/scandir.m4: New file.
44677         * modules/scandir: New file.
44678         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44679         HAVE_SCANDIR.
44680         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44681         HAVE_SCANDIR.
44682         * doc/posix-functions/scandir.texi: Mention the new module and the
44683         portability problems.
44684
44685 2009-01-17  Bruno Haible  <bruno@clisp.org>
44686
44687         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44688         Update documentation.
44689         (func_remove_suffix): Escape all dots in the suffix. Update
44690         documentation.
44691         (func_filter_filelist): Update documentation.
44692         Reported by Ralf Wildenhues.
44693
44694 2009-01-17  Bruno Haible  <bruno@clisp.org>
44695
44696         * modules/dprintf-posix-tests: New file.
44697         * tests/test-dprintf-posix.sh: New file.
44698         * tests/test-dprintf-posix.c: New file.
44699
44700         New modules 'dprintf', 'dprintf-posix'.
44701         * lib/stdio.in.h (dprintf): New declaration.
44702         * lib/dprintf.c: New file.
44703         * m4/dprintf.m4: New file.
44704         * m4/dprintf-posix.m4: New file.
44705         * modules/dprintf: New file.
44706         * modules/dprintf-posix: New file.
44707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44708         HAVE_DPRINTF, REPLACE_DPRINTF.
44709         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44710         HAVE_DPRINTF, REPLACE_DPRINTF.
44711         * doc/posix-functions/dprintf.texi: Mention the new modules.
44712
44713 2009-01-17  Bruno Haible  <bruno@clisp.org>
44714
44715         * modules/vdprintf-posix-tests: New file.
44716         * tests/test-vdprintf-posix.sh: New file.
44717         * tests/test-vdprintf-posix.c: New file.
44718
44719         New modules 'vdprintf', 'vdprintf-posix'.
44720         * lib/stdio.in.h (vdprintf): New declaration.
44721         * lib/vdprintf.c: New file.
44722         * m4/vdprintf.m4: New file.
44723         * m4/vdprintf-posix.m4: New file.
44724         * modules/vdprintf: New file.
44725         * modules/vdprintf-posix: New file.
44726         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44727         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44728         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44729         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44730         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44731
44732 2009-01-17  Bruno Haible  <bruno@clisp.org>
44733
44734         Fix replacement of fopen on mingw.
44735         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44736         mingw.
44737
44738 2009-01-17  Bruno Haible  <bruno@clisp.org>
44739
44740         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44741         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44742
44743 2009-01-17  Bruno Haible  <bruno@clisp.org>
44744
44745         Avoid test-fflush2.sh failure on mingw.
44746         * tests/test-fflush2.c: Include binary-io.h.
44747         (main): Put standard input into binary mode.
44748         * modules/fflush-tests (Depends-on): Add binary-io.
44749
44750 2009-01-17  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/wchar.in.h: In another particular situation, include only the
44753         system's <wchar.h> file.
44754         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44755         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44756         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44757
44758 2009-01-17  Bruno Haible  <bruno@clisp.org>
44759
44760         Support for stripping executables in --enable-relocatable.
44761         * build-aux/install-reloc: Expect one more argument, or an environment
44762         variable RELOC_STRIP_PROG. If set, strip the destination program and
44763         its wrapper.
44764         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44765         RELOC_STRIP_PROG.
44766         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44767         to set RELOCATABLE_STRIP.
44768         * NEWS: Mention the new Makefile requirement.
44769
44770 2009-01-17  Bruno Haible  <bruno@clisp.org>
44771
44772         * build-aux/install-reloc: Remove debugging information left over by
44773         C compiler on MacOS X.
44774
44775 2009-01-17  Bruno Haible  <bruno@clisp.org>
44776
44777         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44778         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44779         _NSGetExecutablePath.
44780
44781 2009-01-16  Jim Meyering  <meyering@redhat.com>
44782
44783         strerror: avoid warnings about discarding "const"
44784         * lib/strerror.c (rpl_strerror): Instead of returning a const
44785         string from each and every "case", use a variable, and add a single
44786         cast after the switch.
44787
44788 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44789
44790         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44791
44792 2009-01-16  Bruno Haible  <bruno@clisp.org>
44793
44794         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44795         array initializer syntax that also works in C++ mode.
44796         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44797
44798 2009-01-16  Jim Meyering  <meyering@redhat.com>
44799
44800         poll: suppress a warning
44801         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44802         to ignore "...unsigned expression < 0 is always false" warnings.
44803
44804 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44805
44806         poll: remove declarations of unused variables
44807         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44808         sockbuf and optlen.
44809
44810 2009-01-15  Bruno Haible  <bruno@clisp.org>
44811
44812         Make fflush-after-ungetc POSIX compliant on BSD systems.
44813         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44814         (clear_ungetc_buffer): Implement also for other systems.
44815         (rpl_fflush): On glibc systems, invoke
44816         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44817         clear_ungetc_buffer after fetching the stream's position, not before.
44818
44819 2009-01-15  Bruno Haible  <bruno@clisp.org>
44820
44821         Make fflush-after-ungetc POSIX compliant on glibc systems.
44822         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44823         after ungetc.
44824         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44825         (rpl_fflush): On glibc systems, simply call the system's fflush
44826         function after clearing the ungetc buffer.
44827         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44828         Instead, lseek only to the end of file, then use the system's fseeko
44829         for the rest. On glibc systems, reset the EOF indicator bit.
44830
44831 2009-01-15  Jim Meyering  <meyering@redhat.com>
44832
44833         openmp.m4: revert quote-adding change, for portability to older autoconf
44834         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44835         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44836         Simon Josefsson noticed the problem when using autoconf-2.61.
44837
44838 2009-01-15  Bruno Haible  <bruno@clisp.org>
44839
44840         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44841         * tests/test-fflush2.c (ASSERT): Always fail.
44842         (main): Add two tests for fflush() after ungetc(), taking into account
44843         the Austin Group's clarification.
44844         Suggested by Eric Blake.
44845
44846 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44847
44848         mktime.m4: remove K&R-style function prototypes
44849         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44850         for the Sun C++ compiler.
44851
44852 2009-01-14  Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44855         while including <wchar.h>.
44856         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44857         the system's <wchar.h> file.
44858         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44859
44860 2009-01-14  Bruno Haible  <bruno@clisp.org>
44861
44862         * m4/csharp.m4: Don't mention gettext on the serial number line.
44863         * m4/csharpexec.m4: Likewise.
44864         * m4/eaccess.m4: Likewise.
44865         * m4/javaexec.m4: Likewise.
44866         * m4/sig_atomic_t.m4: Likewise.
44867         * m4/tmpdir.m4: Likewise.
44868         * m4/intldir.m4: Bump gettext version.
44869         * m4/lib-ld.m4: Likewise.
44870
44871 2009-01-14  Bruno Haible  <bruno@clisp.org>
44872
44873         * lib/progname.c (set_program_name): Add more comments.
44874         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44875
44876 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44877
44878         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44879         were sys/stat.h does not define it.
44880
44881 2009-01-14  Jim Meyering  <meyering@redhat.com>
44882
44883         many *.m4 files: improve m4 quoting
44884         99% of this change was performed by running the following commands:
44885         git ls-files | grep '\.m4$' | xargs perl -pi \
44886           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44887           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44888           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44889           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44890         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44891         The remainder were to add Copyright dates, increment serial numbers,
44892         undo some changes in comments, exclude m4/intl.m4, and add quotes
44893         around the "1" in ",1" where the unusual spacing prohibited the
44894         above regexps from doing the job.  For more details, see
44895         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44896         * m4/acl.m4: Modified.
44897         * m4/afs.m4: Likewise.
44898         * m4/alloca.m4: Likewise.
44899         * m4/argp.m4: Likewise.
44900         * m4/argz.m4: Likewise.
44901         * m4/atexit.m4: Likewise.
44902         * m4/bison-i18n.m4: Likewise.
44903         * m4/bison.m4: Likewise.
44904         * m4/byteswap.m4: Likewise.
44905         * m4/c-stack.m4: Likewise.
44906         * m4/c-strtod.m4: Likewise.
44907         * m4/calloc.m4: Likewise.
44908         * m4/canonicalize-lgpl.m4: Likewise.
44909         * m4/chown.m4: Likewise.
44910         * m4/clock_time.m4: Likewise.
44911         * m4/codeset.m4: Likewise.
44912         * m4/copy-file.m4: Likewise.
44913         * m4/csharp.m4: Likewise.
44914         * m4/csharpcomp.m4: Likewise.
44915         * m4/csharpexec.m4: Likewise.
44916         * m4/d-ino.m4: Likewise.
44917         * m4/d-type.m4: Likewise.
44918         * m4/dirfd.m4: Likewise.
44919         * m4/double-slash-root.m4: Likewise.
44920         * m4/eaccess.m4: Likewise.
44921         * m4/eealloc.m4: Likewise.
44922         * m4/environ.m4: Likewise.
44923         * m4/errno_h.m4: Likewise.
44924         * m4/euidaccess.m4: Likewise.
44925         * m4/execute.m4: Likewise.
44926         * m4/fatal-signal.m4: Likewise.
44927         * m4/fchdir.m4: Likewise.
44928         * m4/fcntl_h.m4: Likewise.
44929         * m4/fileblocks.m4: Likewise.
44930         * m4/filenamecat.m4: Likewise.
44931         * m4/findprog.m4: Likewise.
44932         * m4/flexmember.m4: Likewise.
44933         * m4/fnmatch.m4: Likewise.
44934         * m4/fopen.m4: Likewise.
44935         * m4/fpending.m4: Likewise.
44936         * m4/fprintf-posix.m4: Likewise.
44937         * m4/free.m4: Likewise.
44938         * m4/frexp.m4: Likewise.
44939         * m4/frexpl.m4: Likewise.
44940         * m4/fsusage.m4: Likewise.
44941         * m4/ftruncate.m4: Likewise.
44942         * m4/gc-camellia.m4: Likewise.
44943         * m4/gc-random.m4: Likewise.
44944         * m4/gc.m4: Likewise.
44945         * m4/getaddrinfo.m4: Likewise.
44946         * m4/getcwd-abort-bug.m4: Likewise.
44947         * m4/getcwd-path-max.m4: Likewise.
44948         * m4/getdate.m4: Likewise.
44949         * m4/getdomainname.m4: Likewise.
44950         * m4/getgroups.m4: Likewise.
44951         * m4/gethostname.m4: Likewise.
44952         * m4/gethrxtime.m4: Likewise.
44953         * m4/getline.m4: Likewise.
44954         * m4/getloadavg.m4: Likewise.
44955         * m4/getndelim2.m4: Likewise.
44956         * m4/getpass.m4: Likewise.
44957         * m4/gettext.m4: Likewise.
44958         * m4/gettime.m4: Likewise.
44959         * m4/gettimeofday.m4: Likewise.
44960         * m4/gnulib-common.m4: Likewise.
44961         * m4/group-member.m4: Likewise.
44962         * m4/host-os.m4: Likewise.
44963         * m4/iconv.m4: Likewise.
44964         * m4/iconv_open.m4: Likewise.
44965         * m4/inet_ntop.m4: Likewise.
44966         * m4/inet_pton.m4: Likewise.
44967         * m4/inline.m4: Likewise.
44968         * m4/intldir.m4: Likewise.
44969         * m4/intlmacosx.m4: Likewise.
44970         * m4/intmax.m4: Likewise.
44971         * m4/intmax_t.m4: Likewise.
44972         * m4/inttypes.m4: Likewise.
44973         * m4/inttypes_h.m4: Likewise.
44974         * m4/inttypes-pri.m4: Likewise.
44975         * m4/isapipe.m4: Likewise.
44976         * m4/isnand.m4: Likewise.
44977         * m4/isnanf.m4: Likewise.
44978         * m4/isnanl.m4: Likewise.
44979         * m4/javacomp.m4: Likewise.
44980         * m4/javaexec.m4: Likewise.
44981         * m4/jm-winsz1.m4: Likewise.
44982         * m4/jm-winsz2.m4: Likewise.
44983         * m4/lchown.m4: Likewise.
44984         * m4/lcmessage.m4: Likewise.
44985         * m4/ldexpl.m4: Likewise.
44986         * m4/lib-ld.m4: Likewise.
44987         * m4/lib-link.m4: Likewise.
44988         * m4/libsigsegv.m4: Likewise.
44989         * m4/link-follow.m4: Likewise.
44990         * m4/localcharset.m4: Likewise.
44991         * m4/locale-fr.m4: Likewise.
44992         * m4/locale-ja.m4: Likewise.
44993         * m4/locale-tr.m4: Likewise.
44994         * m4/locale-zh.m4: Likewise.
44995         * m4/lock.m4: Likewise.
44996         * m4/longlong.m4: Likewise.
44997         * m4/ls-mntd-fs.m4: Likewise.
44998         * m4/lstat.m4: Likewise.
44999         * m4/malloc.m4: Likewise.
45000         * m4/mathl.m4: Likewise.
45001         * m4/mbrtowc.m4: Likewise.
45002         * m4/mbstate_t.m4: Likewise.
45003         * m4/mbswidth.m4: Likewise.
45004         * m4/memchr.m4: Likewise.
45005         * m4/memcmp.m4: Likewise.
45006         * m4/memcpy.m4: Likewise.
45007         * m4/memmem.m4: Likewise.
45008         * m4/memmove.m4: Likewise.
45009         * m4/mempcpy.m4: Likewise.
45010         * m4/memrchr.m4: Likewise.
45011         * m4/memset.m4: Likewise.
45012         * m4/minmax.m4: Likewise.
45013         * m4/mkdir-slash.m4: Likewise.
45014         * m4/mkdtemp.m4: Likewise.
45015         * m4/mktime.m4: Likewise.
45016         * m4/mmap-anon.m4: Likewise.
45017         * m4/mountlist.m4: Likewise.
45018         * m4/nanosleep.m4: Likewise.
45019         * m4/nls.m4: Likewise.
45020         * m4/nocrash.m4: Likewise.
45021         * m4/open.m4: Likewise.
45022         * m4/openat.m4: Likewise.
45023         * m4/openmp.m4: Likewise.
45024         * m4/pathmax.m4: Likewise.
45025         * m4/perl.m4: Likewise.
45026         * m4/physmem.m4: Likewise.
45027         * m4/pipe.m4: Likewise.
45028         * m4/po.m4: Likewise.
45029         * m4/poll.m4: Likewise.
45030         * m4/posixtm.m4: Likewise.
45031         * m4/posixver.m4: Likewise.
45032         * m4/printf-frexp.m4: Likewise.
45033         * m4/printf-frexpl.m4: Likewise.
45034         * m4/printf-posix.m4: Likewise.
45035         * m4/printf-posix-rpl.m4: Likewise.
45036         * m4/printf.m4: Likewise.
45037         * m4/progtest.m4: Likewise.
45038         * m4/putenv.m4: Likewise.
45039         * m4/readline.m4: Likewise.
45040         * m4/readlink.m4: Likewise.
45041         * m4/readutmp.m4: Likewise.
45042         * m4/realloc.m4: Likewise.
45043         * m4/regex.m4: Likewise.
45044         * m4/relocatable.m4: Likewise.
45045         * m4/relocatable-lib.m4: Likewise.
45046         * m4/rename-dest-slash.m4: Likewise.
45047         * m4/rename.m4: Likewise.
45048         * m4/rmdir-errno.m4: Likewise.
45049         * m4/rmdir.m4: Likewise.
45050         * m4/roundf.m4: Likewise.
45051         * m4/roundl.m4: Likewise.
45052         * m4/rpmatch.m4: Likewise.
45053         * m4/save-cwd.m4: Likewise.
45054         * m4/selinux-selinux-h.m4: Likewise.
45055         * m4/setenv.m4: Likewise.
45056         * m4/settime.m4: Likewise.
45057         * m4/sig2str.m4: Likewise.
45058         * m4/sig_atomic_t.m4: Likewise.
45059         * m4/signalblocking.m4: Likewise.
45060         * m4/signbit.m4: Likewise.
45061         * m4/sigpipe.m4: Likewise.
45062         * m4/sockets.m4: Likewise.
45063         * m4/sockpfaf.m4: Likewise.
45064         * m4/st_dm_mode.m4: Likewise.
45065         * m4/stat-time.m4: Likewise.
45066         * m4/stdbool.m4: Likewise.
45067         * m4/stdint.m4: Likewise.
45068         * m4/stdint_h.m4: Likewise.
45069         * m4/stpcpy.m4: Likewise.
45070         * m4/stpncpy.m4: Likewise.
45071         * m4/strcase.m4: Likewise.
45072         * m4/strchrnul.m4: Likewise.
45073         * m4/strcspn.m4: Likewise.
45074         * m4/strdup.m4: Likewise.
45075         * m4/strftime.m4: Likewise.
45076         * m4/strndup.m4: Likewise.
45077         * m4/strnlen.m4: Likewise.
45078         * m4/strpbrk.m4: Likewise.
45079         * m4/strptime.m4: Likewise.
45080         * m4/strsep.m4: Likewise.
45081         * m4/strtod.m4: Likewise.
45082         * m4/strtoimax.m4: Likewise.
45083         * m4/strtok_r.m4: Likewise.
45084         * m4/strtol.m4: Likewise.
45085         * m4/strtoll.m4: Likewise.
45086         * m4/strtoul.m4: Likewise.
45087         * m4/strtoull.m4: Likewise.
45088         * m4/strtoumax.m4: Likewise.
45089         * m4/strverscmp.m4: Likewise.
45090         * m4/threadlib.m4: Likewise.
45091         * m4/timegm.m4: Likewise.
45092         * m4/tm_gmtoff.m4: Likewise.
45093         * m4/tmpdir.m4: Likewise.
45094         * m4/tmpfile.m4: Likewise.
45095         * m4/tzset.m4: Likewise.
45096         * m4/uintmax_t.m4: Likewise.
45097         * m4/unlinkdir.m4: Likewise.
45098         * m4/unlocked-io.m4: Likewise.
45099         * m4/uptime.m4: Likewise.
45100         * m4/userspec.m4: Likewise.
45101         * m4/utimbuf.m4: Likewise.
45102         * m4/utime.m4: Likewise.
45103         * m4/utimes-null.m4: Likewise.
45104         * m4/utimes.m4: Likewise.
45105         * m4/vararrays.m4: Likewise.
45106         * m4/vasnprintf.m4: Likewise.
45107         * m4/vfprintf-posix.m4: Likewise.
45108         * m4/vprintf-posix.m4: Likewise.
45109         * m4/wait-process.m4: Likewise.
45110         * m4/wchar_t.m4: Likewise.
45111         * m4/wint_t.m4: Likewise.
45112         * m4/write-any-file.m4: Likewise.
45113         * m4/yield.m4: Likewise.
45114
45115 2009-01-13  Bruno Haible  <bruno@clisp.org>
45116
45117         Avoid test-copy-file.sh failures when ACL support insufficient.
45118         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45119         TESTS_ENVIRONMENT.
45120         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45121         Reported by Jim Meyering.
45122
45123 2009-01-13  Bruno Haible  <bruno@clisp.org>
45124
45125         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45126         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45127         * modules/unistdio/u8-printf-parse (Files): Likewise.
45128         * modules/unistdio/u32-printf-parse (Files): Likewise.
45129         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45130
45131 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45132
45133         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45134         and m4/inttypes_h.m4 too.
45135
45136 2009-01-12  Eric Blake  <ebb9@byu.net>
45137
45138         tests: IRIX 6.2 cc can't compile -0.0 into .data
45139         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45140         rather than at compile-time.
45141         * tests/test-floorl.c (minus_zero): Likewise.
45142         * tests/test-frexpl.c (minus_zero): Likewise.
45143         * tests/test-isnan.c (minus_zerol): Likewise.
45144         * tests/test-isnanl.h (minus_zero): Likewise.
45145         * tests/test-ldexpl.c (minus_zero): Likewise.
45146         * tests/test-roundl.c (minus_zero): Likewise.
45147         * tests/test-signbit.c (minus_zerol): Likewise.
45148         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45149         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45150         * tests/test-truncl.c (minus_zero): Likewise.
45151         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45152         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45153         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45154
45155 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45156
45157         regex: fix glibc bug 9697
45158         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45159         handling.
45160
45161 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45162
45163         regex: fix glibc bug 697
45164         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45165         being NULL also if there are no backreferences.
45166
45167 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45168
45169         regex: merge glibc changes
45170         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45171         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45172         re_string_skip_chars, re_string_reconstruct): Likewise.
45173         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45174
45175 2009-01-07  Jim Meyering  <meyering@redhat.com>
45176
45177         poll: filter through cppi
45178         * lib/poll.c: Indent cpp directives to reflect nesting.
45179
45180 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45181
45182         poll: don't return uninitialized
45183         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45184
45185 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45186
45187         avoid compile failure on AIX 6.1
45188         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45189         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45190
45191 2009-01-04  Jim Meyering  <meyering@redhat.com>
45192
45193         remove duplicate inclusion of <stdio.h>
45194         * tests/test-fprintf-posix.c: Likewise.
45195         * tests/test-printf-posix.c: Likewise.
45196         * tests/test-snprintf-posix.c: Likewise.
45197         * tests/test-sprintf-posix.c: Likewise.
45198         * tests/test-vasprintf-posix.c: Likewise.
45199         * tests/test-vfprintf-posix.c: Likewise.
45200         * tests/test-vprintf-posix.c: Likewise.
45201         * tests/test-vsnprintf-posix.c: Likewise.
45202         * tests/test-vsprintf-posix.c: Likewise.
45203
45204 2009-01-03  Jim Meyering  <meyering@redhat.com>
45205
45206         gnulib-tool: fix sed-based filtering
45207         * gnulib-tool (func_filter_filelist): Remove extra backslash
45208         in sed_fff_filter definition.
45209
45210 2009-01-02  Jim Meyering  <meyering@redhat.com>
45211
45212         strftime: avoid compilation failure on Solaris 2.6
45213         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45214         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45215         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45216         be available.  Reported by Tom G. Christensen.  Details in
45217         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45218
45219 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45220             Bruno Haible  <bruno@clisp.org>
45221
45222         Speed up gnulib-tool by doing more string processing through shell
45223         built-ins.
45224         * gnulib-tool (fast_func_append): New variable.
45225         (func_remove_prefix, func_remove_suffix): New functions.
45226         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45227         (func_filter_filelist): New function.
45228         (func_get_dependencies): Use func_remove_suffix instead of sed.
45229         (func_get_automake_snippet): Use func_filter_filelist instead of a
45230         subshell and sed invocation.
45231
45232 2009-01-01  Bruno Haible  <bruno@clisp.org>
45233
45234         Fix a security bug.
45235         * gnulib-tool (func_import, import, update): Don't allow the characters
45236         '"', '$', '`', '\' in macro arguments that become part of commands that
45237         are evaluated.
45238
45239 2009-01-01  Bruno Haible  <bruno@clisp.org>
45240
45241         * gnulib-tool (func_reset_sigpipe): Add more comments.
45242
45243 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45244
45245         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45246         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45247         already know the answer.
45248
45249 2009-01-01  Jim Meyering  <meyering@redhat.com>
45250
45251         * lib/version-etc.c (version_etc_va): Update copyright year.
45252
45253 2008-12-30  Bruno Haible  <bruno@clisp.org>
45254
45255         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45256         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45257         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45258
45259 2008-12-29  Eric Blake  <ebb9@byu.net>
45260
45261         multiarch: avoid autoconf AC_REQUIRE bug
45262         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45263         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45264         2.63 and older.
45265         Reported by Bruno Haible, and analyzed in
45266         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45267
45268 2008-12-29  Bruno Haible  <bruno@clisp.org>
45269
45270         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45271         files in subdirectories correctly.
45272         Reported by Ralf Wildenhues.
45273
45274 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45275
45276         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45277         rather than 'join FILE -', for Solaris join.
45278
45279 2008-12-29  Bruno Haible  <bruno@clisp.org>
45280
45281         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45282         quoting.
45283         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45284         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45285         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45286         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45287         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45288         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45289         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45290         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45291         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45292         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45293         * m4/nls.m4 (AM_NLS): Likewise.
45294         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45295         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45296         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45297         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45298         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45299         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45300         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45301         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45302         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45303         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45304         * m4/xsize.m4 (gl_XSIZE): Likewise.
45305         Suggested by Jim Meyering.
45306
45307 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45308
45309         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45310         * lib/parse-duration.c: use a switch instead of cascading if's.
45311
45312 2008-12-29  Eric Blake  <ebb9@byu.net>
45313
45314         wchar.h: supply WEOF on Irix 5.3
45315         * lib/wchar.in.h (wint_t): Also supply WEOF.
45316         * lib/wctype.in.h (wint_t): Likewise.
45317         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45318         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45319         Reported by Tom G. Christensen.
45320
45321 2008-12-26  Bruno Haible  <bruno@clisp.org>
45322
45323         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45324         i486, i586, i686.
45325
45326 2008-12-26  Bruno Haible  <bruno@clisp.org>
45327
45328         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45329
45330 2008-12-26  Bruno Haible  <bruno@clisp.org>
45331
45332         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45333         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45334         not __STDC_CONSTANT_MACROS.
45335         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45336
45337 2008-12-25  Bruno Haible  <bruno@clisp.org>
45338
45339         Add support for universal builds to vasnprintf.
45340         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45341         universal builds, guess no.
45342         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45343         * modules/vasprintf-posix (Depends-on): Likewise.
45344         * modules/fprintf-posix (Depends-on): Likewise.
45345         * modules/vfprintf-posix (Depends-on): Likewise.
45346         * modules/snprintf-posix (Depends-on): Likewise.
45347         * modules/vsnprintf-posix (Depends-on): Likewise.
45348         * modules/sprintf-posix (Depends-on): Likewise.
45349         * modules/vsprintf-posix (Depends-on): Likewise.
45350         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45351         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45352         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45353         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45354         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45355         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45356         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45357
45358         Add support for universal builds to <inttypes.h>.
45359         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45360         _SCNu64_PREFIX): In Apple
45361         universal builds, define directly, using _LP64.
45362         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45363         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45364         * modules/inttypes (Depends-on): Add multiarch.
45365         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45366
45367         Add support for universal builds to <stdint.h>.
45368         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45369         universal builds, define directly, using _LP64.
45370         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45371         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45372         and size_t.
45373         * modules/stdint (Depends-on): Add multiarch.
45374         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45375
45376         New module 'multiarch'.
45377         * modules/multiarch: New file.
45378         * m4/multiarch.m4: New file.
45379
45380 2008-12-25  Bruno Haible  <bruno@clisp.org>
45381
45382         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45383
45384 2008-12-25  Bruno Haible  <bruno@clisp.org>
45385
45386         * modules/btowc (License): Relicense under LGPLv2+.
45387         * modules/mbsinit (License): Likewise.
45388         * modules/mbrtowc (License): Likewise.
45389         * modules/wcrtomb (License): Likewise.
45390         * modules/streq (License): Likewise.
45391         Reported by David Lutterkort <lutter@redhat.com>.
45392
45393 2008-12-23  Bruno Haible  <bruno@clisp.org>
45394
45395         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45396
45397 2008-12-23  Bruno Haible  <bruno@clisp.org>
45398
45399         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45400         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45401         GETADDRINFO_LIB, not in LIBS.
45402         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45403         * modules/canon-host (Link): Likewise.
45404         * NEWS: Mention the change.
45405         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45406         GETADDRINFO_LIB.
45407
45408 2008-12-22  Bruno Haible  <bruno@clisp.org>
45409
45410         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45411         * doc/posix-functions/iswalpha_l.texi: Likewise.
45412         * doc/posix-functions/iswblank_l.texi: Likewise.
45413         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45414         * doc/posix-functions/iswctype_l.texi: Likewise.
45415         * doc/posix-functions/iswdigit_l.texi: Likewise.
45416         * doc/posix-functions/iswgraph_l.texi: Likewise.
45417         * doc/posix-functions/iswlower_l.texi: Likewise.
45418         * doc/posix-functions/iswprint_l.texi: Likewise.
45419         * doc/posix-functions/iswpunct_l.texi: Likewise.
45420         * doc/posix-functions/iswspace_l.texi: Likewise.
45421         * doc/posix-functions/iswupper_l.texi: Likewise.
45422         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45423         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45424         * doc/posix-functions/open_wmemstream.texi: Likewise.
45425         * doc/posix-functions/swscanf.texi: Likewise.
45426         * doc/posix-functions/towctrans_l.texi: Likewise.
45427         * doc/posix-functions/towlower.texi: Likewise.
45428         * doc/posix-functions/towlower_l.texi: Likewise.
45429         * doc/posix-functions/towupper.texi: Likewise.
45430         * doc/posix-functions/towupper_l.texi: Likewise.
45431         * doc/posix-functions/vfwprintf.texi: Likewise.
45432         * doc/posix-functions/vfwscanf.texi: Likewise.
45433         * doc/posix-functions/vswscanf.texi: Likewise.
45434         * doc/posix-functions/vwprintf.texi: Likewise.
45435         * doc/posix-functions/vwscanf.texi: Likewise.
45436         * doc/posix-functions/wcpcpy.texi: Likewise.
45437         * doc/posix-functions/wcpncpy.texi: Likewise.
45438         * doc/posix-functions/wcscasecmp.texi: Likewise.
45439         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45440         * doc/posix-functions/wcscoll_l.texi: Likewise.
45441         * doc/posix-functions/wcsdup.texi: Likewise.
45442         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45443         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45444         * doc/posix-functions/wcsnlen.texi: Likewise.
45445         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45446         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45447         * doc/posix-functions/wctrans_l.texi: Likewise.
45448         * doc/posix-functions/wctype_l.texi: Likewise.
45449         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45450         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45451         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45452         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45453         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45454         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45455         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45456         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45457         * doc/glibc-functions/wcschrnul.texi: Likewise.
45458         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45459         * doc/glibc-functions/wcstod_l.texi: Likewise.
45460         * doc/glibc-functions/wcstof_l.texi: Likewise.
45461         * doc/glibc-functions/wcstol_l.texi: Likewise.
45462         * doc/glibc-functions/wcstold_l.texi: Likewise.
45463         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45464         * doc/glibc-functions/wcstoq.texi: Likewise.
45465         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45466         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45467         * doc/glibc-functions/wcstouq.texi: Likewise.
45468         * doc/glibc-functions/wmempcpy.texi: Likewise.
45469
45470 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45471             Eric Blake  <ebb9@byu.net>
45472             Paolo Bonzini  <bonzini@gnu.org>
45473             Bruno Haible  <bruno@clisp.org>
45474
45475         Make c-stack work on Haiku.
45476         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45477         (c_stack_action): Use SA_ONSTACK flag.
45478
45479 2008-12-22  Bruno Haible  <bruno@clisp.org>
45480
45481         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45482
45483 2008-12-22  Bruno Haible  <bruno@clisp.org>
45484
45485         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45486         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45487         being overridden.
45488         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45489         New macros.
45490         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45491         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45492         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45493         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45494
45495 2008-12-22  Bruno Haible  <bruno@clisp.org>
45496
45497         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45498         from test code.
45499
45500 2008-12-22  Eric Blake  <ebb9@byu.net>
45501
45502         Avoid gcc warnings on cygwin.
45503         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45504         Avoid unused variable.
45505         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45506         Likewise.
45507
45508 2008-12-22  Bruno Haible  <bruno@clisp.org>
45509
45510         Remove HAVE_MBRTOWC conditionals.
45511         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45512         (mbscasecmp): Assume mbrtowc function.
45513         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45514         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45515         * lib/mbschr.c: Include mbuiter.h unconditionally.
45516         (mbschr): Assume mbrtowc function.
45517         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45518         (mbscspn): Assume mbrtowc function.
45519         * lib/mbslen.c: Include mbuiter.h unconditionally.
45520         (mbslen): Assume mbrtowc function.
45521         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45522         (mbsncasecmp): Assume mbrtowc function.
45523         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45524         (mbsnlen): Assume mbrtowc function.
45525         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45526         (mbspbrk): Assume mbrtowc function.
45527         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45528         (mbspcasecmp): Assume mbrtowc function.
45529         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45530         (mbsrchr): Assume mbrtowc function.
45531         * lib/mbssep.c: Include mbuiter.h unconditionally.
45532         (mbssep): Assume mbrtowc function.
45533         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45534         (mbsspn): Assume mbrtowc function.
45535         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45536         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45537         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45538         (mbstok_r): Assume mbrtowc function.
45539         * lib/propername.c: Include mbuiter.h unconditionally.
45540         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45541         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45542         (trim2): Assume mbrtowc function.
45543         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45544         (mbsnwidth): Assume mbrtowc function.
45545         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45546         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45547         fallback definitions.
45548         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45549
45550 2008-12-22  Bruno Haible  <bruno@clisp.org>
45551
45552         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45553
45554 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45555
45556         * modules/regex: Request emulations for the mb*/wc* functions we need.
45557         * m4/regex.m4: Don't look for those functions here.
45558         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45559
45560 2008-12-22  Bruno Haible  <bruno@clisp.org>
45561
45562         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45563
45564 2008-12-21  Bruno Haible  <bruno@clisp.org>
45565
45566         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45567         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45568         (Include): Remove conditionalization.
45569         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45570         (Include): Remove conditionalization.
45571         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45572         (Include): Remove conditionalization.
45573         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45574         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45575         * NEWS: Mention the change.
45576         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45577         via Sergey Poznyakoff <gray@gnu.org.ua>.
45578
45579 2008-12-21  Bruno Haible  <bruno@clisp.org>
45580
45581         * MODULES.html.sh (Extended multibyte and wide character utilities
45582         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45583         wcrtomb, wcsrtombs.
45584         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45585         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45586         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45587         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45588
45589 2008-12-21  Bruno Haible  <bruno@clisp.org>
45590
45591         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45592
45593 2008-12-21  Bruno Haible  <bruno@clisp.org>
45594
45595         * modules/wcsnrtombs-tests: New file.
45596         * tests/test-wcsnrtombs1.sh: New file.
45597         * tests/test-wcsnrtombs2.sh: New file.
45598         * tests/test-wcsnrtombs3.sh: New file.
45599         * tests/test-wcsnrtombs4.sh: New file.
45600         * tests/test-wcsnrtombs.c: New file.
45601
45602         New module 'wcsnrtombs'.
45603         * lib/wchar.in.h (wcsnrtombs): New declaration.
45604         * lib/wcsnrtombs.c: New file.
45605         * lib/wcsrtombs-state.c: New file.
45606         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45607         (internal_state): Remove variable.
45608         * m4/wcsnrtombs.m4: New file.
45609         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45610         compilation units.
45611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45612         HAVE_WCSNRTOMBS.
45613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45614         HAVE_WCSNRTOMBS.
45615         * modules/wcsnrtombs: New file.
45616         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45617         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45618
45619 2008-12-21  Bruno Haible  <bruno@clisp.org>
45620
45621         * modules/wcsrtombs-tests: New file.
45622         * tests/test-wcsrtombs1.sh: New file.
45623         * tests/test-wcsrtombs2.sh: New file.
45624         * tests/test-wcsrtombs3.sh: New file.
45625         * tests/test-wcsrtombs4.sh: New file.
45626         * tests/test-wcsrtombs.c: New file.
45627
45628         New module 'wcsrtombs'.
45629         * lib/wchar.in.h (wcsrtombs): New declaration.
45630         * lib/wcsrtombs.c: New file.
45631         * m4/wcsrtombs.m4: New file.
45632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45633         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45634         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45635         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45636         * modules/wcsrtombs: New file.
45637         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45638         bugs.
45639
45640 2008-12-21  Bruno Haible  <bruno@clisp.org>
45641
45642         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45643         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45644         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45645         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45646         if not correct.
45647         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45648         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45649         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45650         m4/locale-zh.m4, m4/codeset.m4.
45651         * doc/posix-functions/wcrtomb.texi: Document the bug.
45652
45653 2008-12-21  Bruno Haible  <bruno@clisp.org>
45654
45655         Work around a btowc() bug on IRIX 6.5.
45656         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45657         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45658         REPLACE_WTOBC if not.
45659         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45660         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45661         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45662
45663 2008-12-21  Bruno Haible  <bruno@clisp.org>
45664
45665         * modules/wcrtomb-tests: New file.
45666         * tests/test-wcrtomb.sh: New file.
45667         * tests/test-wcrtomb.c: New file.
45668
45669         New module 'wcrtomb'.
45670         * lib/wchar.in.h (wcrtomb): New declaration.
45671         * lib/wcrtomb.c: New file.
45672         * m4/wcrtomb.m4: New file.
45673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45674         HAVE_WCRTOMB.
45675         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45676         HAVE_WCRTOMB.
45677         * modules/wcrtomb: New file.
45678         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45679
45680 2008-12-21  Bruno Haible  <bruno@clisp.org>
45681
45682         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45683         * modules/mbsrtowcs (Files): Likewise.
45684         * modules/wctob (Files): Likewise.
45685         * modules/c-strcase-tests (Files): Likewise.
45686         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45687         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45688         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45689         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45690         * modules/vasnprintf-posix-tests (Files): Likewise.
45691
45692 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45693
45694         gitlog-to-changelog: pass all command-line arguments to git-log
45695         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45696         it is sometimes convenient to filter the commits in various ways.
45697         gitlog-to-changelog only allows --since to specify a start date,
45698         but git-log itself supports many other filtering mechanisms.
45699         At the moment, I want to filter by branch name.  Rather than
45700         adding a --branch option to gitlog-to-changelog, it seems more
45701         flexible to simply pass all options directly to git-log and let
45702         git do the work.  Notice that this effectively makes --since a
45703         redundant option for gitlog-to-changelog, but removing it would
45704         require current usage to change since calls would then require
45705         an additional '--'.
45706
45707 2008-12-21  Bruno Haible  <bruno@clisp.org>
45708
45709         * modules/mbsnrtowcs-tests: New file.
45710         * tests/test-mbsnrtowcs1.sh: New file.
45711         * tests/test-mbsnrtowcs2.sh: New file.
45712         * tests/test-mbsnrtowcs3.sh: New file.
45713         * tests/test-mbsnrtowcs4.sh: New file.
45714         * tests/test-mbsnrtowcs.c: New file.
45715
45716         New module 'mbsnrtowcs'.
45717         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45718         * lib/mbsnrtowcs.c: New file.
45719         * lib/mbsrtowcs-state.c: New file.
45720         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45721         (internal_state): Remove variable.
45722         * m4/mbsnrtowcs.m4: New file.
45723         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45724         compilation units.
45725         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45726         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45727         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45728         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45729         * modules/mbsnrtowcs: New file.
45730         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45731         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45732         portability problem.
45733
45734 2008-12-21  Bruno Haible  <bruno@clisp.org>
45735
45736         Work around mbsrtowcs bug.
45737         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45738         (gl_FUNC_MBSRTOWCS): Invoke it.
45739         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45740         m4/locale-zh.m4.
45741         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45742
45743 2008-12-21  Bruno Haible  <bruno@clisp.org>
45744
45745         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45746
45747 2008-12-21  Bruno Haible  <bruno@clisp.org>
45748
45749         Update doc for AIX.
45750         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45751         16-bit wchar_t type.
45752         * doc/posix-functions/btowc.texi: Likewise.
45753         * doc/posix-functions/fgetwc.texi: Likewise.
45754         * doc/posix-functions/fgetws.texi: Likewise.
45755         * doc/posix-functions/fputwc.texi: Likewise.
45756         * doc/posix-functions/fputws.texi: Likewise.
45757         * doc/posix-functions/fwide.texi: Likewise.
45758         * doc/posix-functions/fwprintf.texi: Likewise.
45759         * doc/posix-functions/fwscanf.texi: Likewise.
45760         * doc/posix-functions/getwchar.texi: Likewise.
45761         * doc/posix-functions/getwc.texi: Likewise.
45762         * doc/posix-functions/iswalnum.texi: Likewise.
45763         * doc/posix-functions/iswalpha.texi: Likewise.
45764         * doc/posix-functions/iswblank.texi: Likewise.
45765         * doc/posix-functions/iswcntrl.texi: Likewise.
45766         * doc/posix-functions/iswctype.texi: Likewise.
45767         * doc/posix-functions/iswdigit.texi: Likewise.
45768         * doc/posix-functions/iswgraph.texi: Likewise.
45769         * doc/posix-functions/iswlower.texi: Likewise.
45770         * doc/posix-functions/iswprint.texi: Likewise.
45771         * doc/posix-functions/iswpunct.texi: Likewise.
45772         * doc/posix-functions/iswspace.texi: Likewise.
45773         * doc/posix-functions/iswupper.texi: Likewise.
45774         * doc/posix-functions/iswxdigit.texi: Likewise.
45775         * doc/posix-functions/mbrtowc.texi: Likewise.
45776         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45777         * doc/posix-functions/mbstowcs.texi: Likewise.
45778         * doc/posix-functions/mbtowc.texi: Likewise.
45779         * doc/posix-functions/putwchar.texi: Likewise.
45780         * doc/posix-functions/putwc.texi: Likewise.
45781         * doc/posix-functions/swprintf.texi: Likewise.
45782         * doc/posix-functions/tolower.texi: Likewise.
45783         * doc/posix-functions/toupper.texi: Likewise.
45784         * doc/posix-functions/towctrans.texi: Likewise.
45785         * doc/posix-functions/ungetwc.texi: Likewise.
45786         * doc/posix-functions/vswprintf.texi: Likewise.
45787         * doc/posix-functions/wcrtomb.texi: Likewise.
45788         * doc/posix-functions/wcscat.texi: Likewise.
45789         * doc/posix-functions/wcschr.texi: Likewise.
45790         * doc/posix-functions/wcscmp.texi: Likewise.
45791         * doc/posix-functions/wcscoll.texi: Likewise.
45792         * doc/posix-functions/wcscpy.texi: Likewise.
45793         * doc/posix-functions/wcscspn.texi: Likewise.
45794         * doc/posix-functions/wcsftime.texi: Likewise.
45795         * doc/posix-functions/wcslen.texi: Likewise.
45796         * doc/posix-functions/wcsncat.texi: Likewise.
45797         * doc/posix-functions/wcsncmp.texi: Likewise.
45798         * doc/posix-functions/wcsncpy.texi: Likewise.
45799         * doc/posix-functions/wcspbrk.texi: Likewise.
45800         * doc/posix-functions/wcsrchr.texi: Likewise.
45801         * doc/posix-functions/wcsrtombs.texi: Likewise.
45802         * doc/posix-functions/wcsspn.texi: Likewise.
45803         * doc/posix-functions/wcsstr.texi: Likewise.
45804         * doc/posix-functions/wcstod.texi: Likewise.
45805         * doc/posix-functions/wcstof.texi: Likewise.
45806         * doc/posix-functions/wcstoimax.texi: Likewise.
45807         * doc/posix-functions/wcstok.texi: Likewise.
45808         * doc/posix-functions/wcstold.texi: Likewise.
45809         * doc/posix-functions/wcstoll.texi: Likewise.
45810         * doc/posix-functions/wcstol.texi: Likewise.
45811         * doc/posix-functions/wcstombs.texi: Likewise.
45812         * doc/posix-functions/wcstoull.texi: Likewise.
45813         * doc/posix-functions/wcstoul.texi: Likewise.
45814         * doc/posix-functions/wcstoumax.texi: Likewise.
45815         * doc/posix-functions/wcswidth.texi: Likewise.
45816         * doc/posix-functions/wcsxfrm.texi: Likewise.
45817         * doc/posix-functions/wctob.texi: Likewise.
45818         * doc/posix-functions/wctomb.texi: Likewise.
45819         * doc/posix-functions/wctrans.texi: Likewise.
45820         * doc/posix-functions/wctype.texi: Likewise.
45821         * doc/posix-functions/wcwidth.texi: Likewise.
45822         * doc/posix-functions/wmemchr.texi: Likewise.
45823         * doc/posix-functions/wmemcmp.texi: Likewise.
45824         * doc/posix-functions/wmemcpy.texi: Likewise.
45825         * doc/posix-functions/wmemmove.texi: Likewise.
45826         * doc/posix-functions/wmemset.texi: Likewise.
45827         * doc/posix-functions/wprintf.texi: Likewise.
45828         * doc/posix-functions/wscanf.texi: Likewise.
45829
45830 2008-12-21  Bruno Haible  <bruno@clisp.org>
45831
45832         Update doc for HP-UX 11.11.
45833         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45834         in HP-UX version 11.00, not in all versions of HP-UX 11.
45835         * doc/posix-functions/fwide.texi: Likewise.
45836         * doc/posix-functions/fwprintf.texi: Likewise.
45837         * doc/posix-functions/fwscanf.texi: Likewise.
45838         * doc/posix-functions/inet_ntop.texi: Likewise.
45839         * doc/posix-functions/inet_pton.texi: Likewise.
45840         * doc/posix-functions/mbrlen.texi: Likewise.
45841         * doc/posix-functions/mbrtowc.texi: Likewise.
45842         * doc/posix-functions/mbsinit.texi: Likewise.
45843         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45844         * doc/posix-functions/swprintf.texi: Likewise.
45845         * doc/posix-functions/swscanf.texi: Likewise.
45846         * doc/posix-functions/towctrans.texi: Likewise.
45847         * doc/posix-functions/vfwprintf.texi: Likewise.
45848         * doc/posix-functions/vswprintf.texi: Likewise.
45849         * doc/posix-functions/vwprintf.texi: Likewise.
45850         * doc/posix-functions/wcrtomb.texi: Likewise.
45851         * doc/posix-functions/wcsrtombs.texi: Likewise.
45852         * doc/posix-functions/wcsstr.texi: Likewise.
45853         * doc/posix-functions/wctob.texi: Likewise.
45854         * doc/posix-functions/wctrans.texi: Likewise.
45855         * doc/posix-functions/wmemchr.texi: Likewise.
45856         * doc/posix-functions/wmemcmp.texi: Likewise.
45857         * doc/posix-functions/wmemcpy.texi: Likewise.
45858         * doc/posix-functions/wmemmove.texi: Likewise.
45859         * doc/posix-functions/wmemset.texi: Likewise.
45860         * doc/posix-functions/wprintf.texi: Likewise.
45861         * doc/posix-functions/wscanf.texi: Likewise.
45862
45863 2008-12-21  Bruno Haible  <bruno@clisp.org>
45864
45865         Work around a portability problem.
45866         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45867         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45868
45869 2008-12-20  Bruno Haible  <bruno@clisp.org>
45870
45871         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45872         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45873         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45875         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45876
45877         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45878         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45879         set.
45880         (GNULIB_defined_mbstate_t): New macro.
45881         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45882         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45883         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45884         reuses the system's mbrtowc function but works around the bugs.
45885         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45886         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45887         macros.
45888         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45889         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45890         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45891         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45892         REPLACE_MBSINIT if mbsinit needs to be overridden.
45893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45894         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45895         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45896         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45897         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45898         m4/locale-zh.m4.
45899         (Depends): Add mbsinit.
45900         * modules/mbsinit (Depends): Add mbrtowc.
45901         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45902
45903 2008-12-20  Bruno Haible  <bruno@clisp.org>
45904
45905         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45906         so that there are no conversion errors on AIX.
45907         * tests/test-mbsrtowcs.c (main): LIkewise.
45908
45909 2008-12-20  Bruno Haible  <bruno@clisp.org>
45910
45911         Work around wctob bug on Solaris <= 9.
45912         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45913         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45915         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45916         * modules/wctob (Files): Add m4/locale-fr.m4.
45917         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45918
45919 2008-12-20  Bruno Haible  <bruno@clisp.org>
45920
45921         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45922         /dev/null.
45923         * tests/test-select-in.sh: Likewise.
45924         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45925
45926 2008-12-20  Bruno Haible  <bruno@clisp.org>
45927
45928         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45929         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45930         Cygwin 1.5.x.
45931
45932 2008-12-20  Bruno Haible  <bruno@clisp.org>
45933
45934         Ensure mbstate_t is defined on HP-UX 11.11.
45935         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45936         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45937         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45938         AC_USE_SYSTEM_EXTENSIONS.
45939         * modules/fnmatch (Depends-on): Add extensions.
45940         * modules/mbrlen (Depends-on): Likewise.
45941         * modules/mbrtowc (Depends-on): Likewise.
45942         * modules/mbsinit (Depends-on): Likewise.
45943         * modules/mbsrtowcs (Depends-on): Likewise.
45944         * modules/mbswidth (Depends-on): Likewise.
45945         * modules/quotearg (Depends-on): Likewise.
45946         * modules/strftime (Depends-on): Likewise.
45947
45948 2008-12-20  Bruno Haible  <bruno@clisp.org>
45949
45950         Ensure wctob is declared on IRIX 6.5.
45951         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45952         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45953         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45954         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45955         of HAVE_WCTOB.
45956         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45957         HAVE_WCTOB.
45958         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45959
45960 2008-12-19  Bruno Haible  <bruno@clisp.org>
45961
45962         * modules/mbsrtowcs-tests: New file.
45963         * tests/test-mbsrtowcs1.sh: New file.
45964         * tests/test-mbsrtowcs2.sh: New file.
45965         * tests/test-mbsrtowcs3.sh: New file.
45966         * tests/test-mbsrtowcs4.sh: New file.
45967         * tests/test-mbsrtowcs.c: New file.
45968
45969         New module 'mbsrtowcs'.
45970         * lib/wchar.in.h (mbsrtowcs): New declaration.
45971         * lib/mbsrtowcs.c: New file.
45972         * m4/mbsrtowcs.m4: New file.
45973         * modules/mbsrtowcs: New file.
45974         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45975         HAVE_MBSRTOWCS.
45976         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45977         HAVE_MBSRTOWCS.
45978         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45979
45980 2008-12-19  Bruno Haible  <bruno@clisp.org>
45981
45982         New module 'mbrlen'.
45983         * lib/wchar.in.h (mbrlen): New declaration.
45984         * lib/mbrlen.c: New file.
45985         * m4/mbrlen.m4: New file.
45986         * modules/mbrlen: New file.
45987         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45988         HAVE_MBRLEN.
45989         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45990         HAVE_MBRLEN.
45991         * doc/posix-functions/mbrlen.texi: Document the new module.
45992
45993 2008-12-19  Bruno Haible  <bruno@clisp.org>
45994
45995         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45996         * modules/mbrtowc (Depends-on): Add verify.
45997         Suggested by Paul Eggert.
45998
45999 2008-12-18  Bruno Haible  <bruno@clisp.org>
46000
46001         * modules/mbsinit-tests: New file.
46002         * tests/test-mbsinit.sh: New file.
46003         * tests/test-mbsinit.c: New file.
46004
46005 2008-12-18  Bruno Haible  <bruno@clisp.org>
46006
46007         * modules/mbrtowc-tests: New file.
46008         * tests/test-mbrtowc1.sh: New file.
46009         * tests/test-mbrtowc2.sh: New file.
46010         * tests/test-mbrtowc3.sh: New file.
46011         * tests/test-mbrtowc4.sh: New file.
46012         * tests/test-mbrtowc.c: New file.
46013
46014         New module 'mbrtowc'.
46015         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46016         mbsinit and mbrtowc.
46017         (mbrtowc): New declaration.
46018         * lib/mbrtowc.c: New file.
46019         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46020         * modules/mbrtowc: New file.
46021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46022         HAVE_MBRTOWC.
46023         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46024         HAVE_MBRTOWC.
46025         * doc/posix-functions/mbrtowc.texi: Document the new module.
46026
46027 2008-12-18  Bruno Haible  <bruno@clisp.org>
46028
46029         New module 'wctob'.
46030         * lib/wchar.in.h (wctob): New declaration.
46031         * lib/wctob.c: New file.
46032         * m4/wctob.m4: New file.
46033         * modules/wctob: New file.
46034         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46035         HAVE_WCTOB.
46036         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46037         * doc/posix-functions/wctob.texi: Document the new module.
46038
46039 2008-12-18  Bruno Haible  <bruno@clisp.org>
46040
46041         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46042         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46043
46044 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46045
46046         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46047         G. Christensen" <tgc@jupiterrise.com>.
46048
46049         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46050         G. Christensen" <tgc@jupiterrise.com>.
46051
46052         * lib/flock.c: Need to include string.h.  Reported by "Tom
46053         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46054         <ebb9@byu.net>.
46055
46056 2008-12-18  Bruno Haible  <bruno@clisp.org>
46057
46058         * m4/locale-ja.m4: New file, from GNU gettext.
46059
46060 2008-12-17  Bruno Haible  <bruno@clisp.org>
46061
46062         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46063         Suggested by Eric Blake.
46064
46065 2008-12-17  Bruno Haible  <bruno@clisp.org>
46066
46067         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46068
46069 2008-12-17  Bruno Haible  <bruno@clisp.org>
46070
46071         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46072         * modules/mbsinit (Depends-on): Add verify.
46073         Suggested by Paul Eggert.
46074
46075 2008-12-17  Bruno Haible  <bruno@clisp.org>
46076
46077         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46078         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46079         gl_FUNC_MBRTOWC.
46080         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46081         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46082         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46083         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46084         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46085         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46086         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46087         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46088         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46089         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46090         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46091         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46092         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46093         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46094         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46095         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46096         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46097         * modules/trim (configure.ac): Likewise.
46098
46099 2008-12-17  Bruno Haible  <bruno@clisp.org>
46100
46101         * modules/btowc-tests: New file.
46102         * tests/test-btowc1.sh: New file.
46103         * tests/test-btowc2.sh: New file.
46104         * tests/test-btowc.c: New file.
46105
46106         New module 'btowc'.
46107         * lib/wchar.in.h (btowc): New declaration.
46108         * lib/btowc.c: New file.
46109         * m4/btowc.m4: New file.
46110         * modules/btowc: New file.
46111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46112         HAVE_BTOWC.
46113         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46114         * doc/posix-functions/btowc.texi: Document the new module.
46115
46116 2008-12-17  Bruno Haible  <bruno@clisp.org>
46117
46118         New module 'mbsinit'.
46119         * lib/wchar.in.h (mbsinit): New declaration.
46120         * lib/mbsinit.c: New file.
46121         * m4/mbsinit.m4: New file.
46122         * modules/mbsinit: New file.
46123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46124         HAVE_MBSINIT.
46125         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46126         HAVE_MBSINIT.
46127         * doc/posix-functions/mbsinit.texi: Document the new module.
46128
46129 2008-12-16  Bruno Haible  <bruno@clisp.org>
46130
46131         * lib/unistd.in.h: Add comment.
46132         * tests/test-environ.c: Don't include <stdlib.h>.
46133
46134 2008-12-16  Bruno Haible  <bruno@clisp.org>
46135
46136         * lib/parse-duration.h (parse_duration): Document return value
46137         convention.
46138         * lib/parse-duration.c: Include specification header first. Add
46139         comments.
46140         (_): Remove macro.
46141         (parse_year_month_day, parse_hour_minute_second): Move side effects
46142         outside of strchr call.
46143         (parse_non_iso8601): Move side effects outside of isspace call.
46144         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46145         call.
46146
46147 2008-12-16  Bruno Haible  <bruno@clisp.org>
46148
46149         * tests/test-parse-duration.sh: Produce no output when the test
46150         succeeds.
46151
46152 2008-12-16  Bruno Haible  <bruno@clisp.org>
46153
46154         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46155         expressions.
46156
46157 2008-12-15  Bruno Haible  <bruno@clisp.org>
46158
46159         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46160         * doc/glibc-functions/flistxattr.texi: Likewise.
46161         * doc/glibc-functions/fopencookie.texi: Likewise.
46162         * doc/glibc-functions/fremovexattr.texi: Likewise.
46163         * doc/glibc-functions/fsetxattr.texi: Likewise.
46164         * doc/glibc-functions/getxattr.texi: Likewise.
46165         * doc/glibc-functions/lgetxattr.texi: Likewise.
46166         * doc/glibc-functions/listxattr.texi: Likewise.
46167         * doc/glibc-functions/llistxattr.texi: Likewise.
46168         * doc/glibc-functions/lremovexattr.texi: Likewise.
46169         * doc/glibc-functions/lsetxattr.texi: Likewise.
46170         * doc/glibc-functions/removexattr.texi: Likewise.
46171         * doc/glibc-functions/setxattr.texi: Likewise.
46172         * doc/posix-functions/open_memstream.texi: Likewise.
46173
46174 2008-12-15  Eric Blake  <ebb9@byu.net>
46175
46176         Update doc for cygwin 1.7.
46177         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46178         functions.
46179         * doc/posix-functions/fchmodat.texi: Likewise.
46180         * doc/posix-functions/fchownat.texi: Likewise.
46181         * doc/posix-functions/fdopendir.texi: Likewise.
46182         * doc/posix-functions/fmemopen.texi: Likewise.
46183         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46184         * doc/posix-functions/fstatat.texi: Likewise.
46185         * doc/posix-functions/futimens.texi: Likewise.
46186         * doc/posix-functions/gai_strerror.texi: Likewise.
46187         * doc/posix-functions/getaddrinfo.texi: Likewise.
46188         * doc/posix-functions/getnameinfo.texi: Likewise.
46189         * doc/posix-functions/if_freenameindex.texi: Likewise.
46190         * doc/posix-functions/if_indextoname.texi: Likewise.
46191         * doc/posix-functions/if_nameindex.texi: Likewise.
46192         * doc/posix-functions/if_nametoindex.texi: Likewise.
46193         * doc/posix-functions/insque.texi: Likewise.
46194         * doc/posix-functions/linkat.texi: Likewise.
46195         * doc/posix-functions/llrint.texi: Likewise.
46196         * doc/posix-functions/llrintf.texi: Likewise.
46197         * doc/posix-functions/llrintl.texi: Likewise.
46198         * doc/posix-functions/lockf.texi: Likewise.
46199         * doc/posix-functions/lrintl.texi: Likewise.
46200         * doc/posix-functions/mkdirat.texi: Likewise.
46201         * doc/posix-functions/mkfifoat.texi: Likewise.
46202         * doc/posix-functions/mknodat.texi: Likewise.
46203         * doc/posix-functions/mq_close.texi: Likewise.
46204         * doc/posix-functions/mq_getattr.texi: Likewise.
46205         * doc/posix-functions/mq_notify.texi: Likewise.
46206         * doc/posix-functions/mq_open.texi: Likewise.
46207         * doc/posix-functions/mq_receive.texi: Likewise.
46208         * doc/posix-functions/mq_send.texi: Likewise.
46209         * doc/posix-functions/mq_setattr.texi: Likewise.
46210         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46211         * doc/posix-functions/mq_timedsend.texi: Likewise.
46212         * doc/posix-functions/mq_unlink.texi: Likewise.
46213         * doc/posix-functions/open_memstream.texi: Likewise.
46214         * doc/posix-functions/openat.texi: Likewise.
46215         * doc/posix-functions/posix_fadvise.texi: Likewise.
46216         * doc/posix-functions/posix_fallocate.texi: Likewise.
46217         * doc/posix-functions/posix_madvise.texi: Likewise.
46218         * doc/posix-functions/posix_memalign.texi: Likewise.
46219         * doc/posix-functions/posix_openpt.texi: Likewise.
46220         * doc/posix-functions/readlinkat.texi: Likewise.
46221         * doc/posix-functions/remque.texi: Likewise.
46222         * doc/posix-functions/renameat.texi: Likewise.
46223         * doc/posix-functions/rintl.texi: Likewise.
46224         * doc/posix-functions/sem_unlink.texi: Likewise.
46225         * doc/posix-functions/shm_open.texi: Likewise.
46226         * doc/posix-functions/shm_unlink.texi: Likewise.
46227         * doc/posix-functions/signgam.texi: Likewise.
46228         * doc/posix-functions/sigset.texi: Likewise.
46229         * doc/posix-functions/stpcpy.texi: Likewise.
46230         * doc/posix-functions/stpncpy.texi: Likewise.
46231         * doc/posix-functions/strerror.texi: Likewise.
46232         * doc/posix-functions/strtod.texi: Likewise.
46233         * doc/posix-functions/symlinkat.texi: Likewise.
46234         * doc/posix-functions/unlinkat.texi: Likewise.
46235         * doc/posix-functions/utimensat.texi: Likewise.
46236         * doc/glibc-functions/bindresvport.texi: Likewise.
46237         * doc/glibc-functions/dn_expand.texi: Likewise.
46238         * doc/glibc-functions/exp10.texi: Likewise.
46239         * doc/glibc-functions/exp10f.texi: Likewise.
46240         * doc/glibc-functions/fgetxattr.texi: Likewise.
46241         * doc/glibc-functions/flistxattr.texi: Likewise.
46242         * doc/glibc-functions/fopencookie.texi: Likewise.
46243         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46244         * doc/glibc-functions/fremovexattr.texi: Likewise.
46245         * doc/glibc-functions/fsetxattr.texi: Likewise.
46246         * doc/glibc-functions/getifaddrs.texi: Likewise.
46247         * doc/glibc-functions/getxattr.texi: Likewise.
46248         * doc/glibc-functions/lgetxattr.texi: Likewise.
46249         * doc/glibc-functions/listxattr.texi: Likewise.
46250         * doc/glibc-functions/llistxattr.texi: Likewise.
46251         * doc/glibc-functions/lremovexattr.texi: Likewise.
46252         * doc/glibc-functions/lsetxattr.texi: Likewise.
46253         * doc/glibc-functions/pow10.texi: Likewise.
46254         * doc/glibc-functions/pow10f.texi: Likewise.
46255         * doc/glibc-functions/rcmd_af.texi: Likewise.
46256         * doc/glibc-functions/removexattr.texi: Likewise.
46257         * doc/glibc-functions/res_init.texi: Likewise.
46258         * doc/glibc-functions/res_mkquery.texi: Likewise.
46259         * doc/glibc-functions/res_query.texi: Likewise.
46260         * doc/glibc-functions/res_querydomain.texi: Likewise.
46261         * doc/glibc-functions/res_send.texi: Likewise.
46262         * doc/glibc-functions/rresvport_af.texi: Likewise.
46263         * doc/glibc-functions/setxattr.texi: Likewise.
46264         * doc/glibc-functions/strcasestr.texi: Likewise.
46265
46266 2008-12-15  Bruno Haible  <bruno@clisp.org>
46267
46268         Fix compilation error on OSF/1 4.0.
46269         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46270         <sys/time.h>, simply delegate to the system header.
46271         Reported by Daniel Richard G. <oss@teragram.com>.
46272
46273 2008-12-15  Bruno Haible  <bruno@clisp.org>
46274
46275         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46276         * doc/posix-functions/fchmodat.texi: Likewise.
46277         * doc/posix-functions/fchownat.texi: Likewise.
46278         * doc/posix-functions/fdopendir.texi: Likewise.
46279         * doc/posix-functions/fstatat.texi: Likewise.
46280         * doc/posix-functions/mkdirat.texi: Likewise.
46281         * doc/posix-functions/unlinkat.texi: Likewise.
46282
46283 2008-12-14  Bruno Haible  <bruno@clisp.org>
46284
46285         Update doc for POSIX:2008.
46286         * doc/posix-functions/faccessat.texi: New file.
46287         * doc/posix-functions/fchmodat.texi: New file.
46288         * doc/posix-functions/fchownat.texi: New file.
46289         * doc/posix-functions/fdopendir.texi: New file.
46290         * doc/posix-functions/fstatat.texi: New file.
46291         * doc/posix-functions/futimens.texi: New file.
46292         * doc/posix-functions/linkat.texi: New file.
46293         * doc/posix-functions/mkdirat.texi: New file.
46294         * doc/posix-functions/mkfifoat.texi: New file.
46295         * doc/posix-functions/mknodat.texi: New file.
46296         * doc/posix-functions/open_wmemstream.texi: New file.
46297         * doc/posix-functions/openat.texi: New file.
46298         * doc/posix-functions/psiginfo.texi: New file.
46299         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46300         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46301         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46302         * doc/posix-functions/readlinkat.texi: New file.
46303         * doc/posix-functions/renameat.texi: New file.
46304         * doc/posix-functions/strerror_l.texi: New file.
46305         * doc/posix-functions/symlinkat.texi: New file.
46306         * doc/posix-functions/unlinkat.texi: New file.
46307         * doc/posix-functions/utimensat.texi: New file.
46308         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46309
46310 2008-12-14  Bruno Haible  <bruno@clisp.org>
46311
46312         Update doc for POSIX:2008.
46313         * doc/posix-functions/alphasort.texi: Renamed from
46314         doc/glibc-functions/alphasort.texi.
46315         * doc/posix-functions/dirfd.texi: Renamed from
46316         doc/glibc-functions/dirfd.texi.
46317         * doc/posix-functions/dprintf.texi: Renamed from
46318         doc/glibc-functions/dprintf.texi.
46319         * doc/posix-functions/duplocale.texi: Renamed from
46320         doc/glibc-functions/duplocale.texi.
46321         * doc/posix-functions/fexecve.texi: Renamed from
46322         doc/glibc-functions/fexecve.texi.
46323         * doc/posix-functions/fmemopen.texi: Renamed from
46324         doc/glibc-functions/fmemopen.texi.
46325         * doc/posix-functions/freelocale.texi: Renamed from
46326         doc/glibc-functions/freelocale.texi.
46327         * doc/posix-functions/getdate_err.texi: Renamed from
46328         doc/glibc-functions/getdate_err.texi.
46329         * doc/posix-functions/isalnum_l.texi: Renamed from
46330         doc/glibc-functions/isalnum_l.texi.
46331         * doc/posix-functions/isalpha_l.texi: Renamed from
46332         doc/glibc-functions/isalpha_l.texi.
46333         * doc/posix-functions/isblank_l.texi: Renamed from
46334         doc/glibc-functions/isblank_l.texi.
46335         * doc/posix-functions/iscntrl_l.texi: Renamed from
46336         doc/glibc-functions/iscntrl_l.texi.
46337         * doc/posix-functions/isdigit_l.texi: Renamed from
46338         doc/glibc-functions/isdigit_l.texi.
46339         * doc/posix-functions/isgraph_l.texi: Renamed from
46340         doc/glibc-functions/isgraph_l.texi.
46341         * doc/posix-functions/islower_l.texi: Renamed from
46342         doc/glibc-functions/islower_l.texi.
46343         * doc/posix-functions/isprint_l.texi: Renamed from
46344         doc/glibc-functions/isprint_l.texi.
46345         * doc/posix-functions/ispunct_l.texi: Renamed from
46346         doc/glibc-functions/ispunct_l.texi.
46347         * doc/posix-functions/isspace_l.texi: Renamed from
46348         doc/glibc-functions/isspace_l.texi.
46349         * doc/posix-functions/isupper_l.texi: Renamed from
46350         doc/glibc-functions/isupper_l.texi.
46351         * doc/posix-functions/iswalnum_l.texi: Renamed from
46352         doc/glibc-functions/iswalnum_l.texi.
46353         * doc/posix-functions/iswalpha_l.texi: Renamed from
46354         doc/glibc-functions/iswalpha_l.texi.
46355         * doc/posix-functions/iswblank_l.texi: Renamed from
46356         doc/glibc-functions/iswblank_l.texi.
46357         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46358         doc/glibc-functions/iswcntrl_l.texi.
46359         * doc/posix-functions/iswctype_l.texi: Renamed from
46360         doc/glibc-functions/iswctype_l.texi.
46361         * doc/posix-functions/iswdigit_l.texi: Renamed from
46362         doc/glibc-functions/iswdigit_l.texi.
46363         * doc/posix-functions/iswgraph_l.texi: Renamed from
46364         doc/glibc-functions/iswgraph_l.texi.
46365         * doc/posix-functions/iswlower_l.texi: Renamed from
46366         doc/glibc-functions/iswlower_l.texi.
46367         * doc/posix-functions/iswprint_l.texi: Renamed from
46368         doc/glibc-functions/iswprint_l.texi.
46369         * doc/posix-functions/iswpunct_l.texi: Renamed from
46370         doc/glibc-functions/iswpunct_l.texi.
46371         * doc/posix-functions/iswspace_l.texi: Renamed from
46372         doc/glibc-functions/iswspace_l.texi.
46373         * doc/posix-functions/iswupper_l.texi: Renamed from
46374         doc/glibc-functions/iswupper_l.texi.
46375         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46376         doc/glibc-functions/iswxdigit_l.texi.
46377         * doc/posix-functions/isxdigit_l.texi: Renamed from
46378         doc/glibc-functions/isxdigit_l.texi.
46379         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46380         doc/glibc-functions/mbsnrtowcs.texi.
46381         * doc/posix-functions/mkdtemp.texi: Renamed from
46382         doc/glibc-functions/mkdtemp.texi.
46383         * doc/posix-functions/newlocale.texi: Renamed from
46384         doc/glibc-functions/newlocale.texi.
46385         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46386         doc/glibc-functions/nl_langinfo_l.texi.
46387         * doc/posix-functions/open_memstream.texi: Renamed from
46388         doc/glibc-functions/open_memstream.texi.
46389         * doc/posix-functions/opterr.texi: Renamed from
46390         doc/glibc-functions/opterr.texi.
46391         * doc/posix-functions/optind.texi: Renamed from
46392         doc/glibc-functions/optind.texi.
46393         * doc/posix-functions/optopt.texi: Renamed from
46394         doc/glibc-functions/optopt.texi.
46395         * doc/posix-functions/psignal.texi: Renamed from
46396         doc/glibc-functions/psignal.texi.
46397         * doc/posix-functions/scandir.texi: Renamed from
46398         doc/glibc-functions/scandir.texi.
46399         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46400         doc/glibc-functions/sched_get_priority_min.texi.
46401         * doc/posix-functions/signgam.texi: Renamed from
46402         doc/glibc-functions/signgam.texi.
46403         * doc/posix-functions/stpcpy.texi: Renamed from
46404         doc/glibc-functions/stpcpy.texi.
46405         * doc/posix-functions/stpncpy.texi: Renamed from
46406         doc/glibc-functions/stpncpy.texi.
46407         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46408         doc/glibc-functions/strcasecmp_l.texi.
46409         * doc/posix-functions/strcoll_l.texi: Renamed from
46410         doc/glibc-functions/strcoll_l.texi.
46411         * doc/posix-functions/strfmon_l.texi: Renamed from
46412         doc/glibc-functions/strfmon_l.texi.
46413         * doc/posix-functions/strftime_l.texi: Renamed from
46414         doc/glibc-functions/strftime_l.texi.
46415         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46416         doc/glibc-functions/strncasecmp_l.texi.
46417         * doc/posix-functions/strndup.texi: Renamed from
46418         doc/glibc-functions/strndup.texi.
46419         * doc/posix-functions/strnlen.texi: Renamed from
46420         doc/glibc-functions/strnlen.texi.
46421         * doc/posix-functions/strsignal.texi: Renamed from
46422         doc/glibc-functions/strsignal.texi.
46423         * doc/posix-functions/strxfrm_l.texi: Renamed from
46424         doc/glibc-functions/strxfrm_l.texi.
46425         * doc/posix-functions/timer_gettime.texi: Renamed from
46426         doc/glibc-functions/timer_gettime.texi.
46427         * doc/posix-functions/tolower_l.texi: Renamed from
46428         doc/glibc-functions/tolower_l.texi.
46429         * doc/posix-functions/toupper_l.texi: Renamed from
46430         doc/glibc-functions/toupper_l.texi.
46431         * doc/posix-functions/towctrans_l.texi: Renamed from
46432         doc/glibc-functions/towctrans_l.texi.
46433         * doc/posix-functions/towlower_l.texi: Renamed from
46434         doc/glibc-functions/towlower_l.texi.
46435         * doc/posix-functions/towupper_l.texi: Renamed from
46436         doc/glibc-functions/towupper_l.texi.
46437         * doc/posix-functions/uselocale.texi: Renamed from
46438         doc/glibc-functions/uselocale.texi.
46439         * doc/posix-functions/vdprintf.texi: Renamed from
46440         doc/glibc-functions/vdprintf.texi.
46441         * doc/posix-functions/wcpcpy.texi:
46442         Renamed from doc/glibc-functions/wcpcpy.texi.
46443         * doc/posix-functions/wcpncpy.texi: Renamed from
46444         doc/glibc-functions/wcpncpy.texi.
46445         * doc/posix-functions/wcscasecmp.texi: Renamed from
46446         doc/glibc-functions/wcscasecmp.texi.
46447         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46448         doc/glibc-functions/wcscasecmp_l.texi.
46449         * doc/posix-functions/wcscoll_l.texi: Renamed from
46450         doc/glibc-functions/wcscoll_l.texi.
46451         * doc/posix-functions/wcsdup.texi: Renamed from
46452         doc/glibc-functions/wcsdup.texi.
46453         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46454         doc/glibc-functions/wcsncasecmp.texi.
46455         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46456         doc/glibc-functions/wcsncasecmp_l.texi.
46457         * doc/posix-functions/wcsnlen.texi: Renamed from
46458         doc/glibc-functions/wcsnlen.texi.
46459         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46460         doc/glibc-functions/wcsnrtombs.texi.
46461         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46462         doc/glibc-functions/wcsxfrm_l.texi.
46463         * doc/posix-functions/wctrans_l.texi: Renamed from
46464         doc/glibc-functions/wctrans_l.texi.
46465         * doc/posix-functions/wctype_l.texi: Renamed from
46466         doc/glibc-functions/wctype_l.texi.
46467         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46468         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46469         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46470         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46471         these subsections.
46472         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46473         Remove sections.
46474
46475 2008-12-14  Bruno Haible  <bruno@clisp.org>
46476
46477         Update doc for POSIX:2008.
46478         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46479
46480 2008-12-14  Bruno Haible  <bruno@clisp.org>
46481
46482         Update doc for POSIX:2008.
46483         * doc/pastposix-functions/bcmp.texi: Renamed from
46484         doc/posix-functions/bcmp.texi.
46485         * doc/pastposix-functions/bcopy.texi: Renamed from
46486         doc/posix-functions/bcopy.texi.
46487         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46488         doc/posix-functions/bsd_signal.texi.
46489         * doc/pastposix-functions/bzero.texi: Renamed from
46490         doc/posix-functions/bzero.texi.
46491         * doc/pastposix-functions/ecvt.texi: Renamed from
46492         doc/posix-functions/ecvt.texi.
46493         * doc/pastposix-functions/fcvt.texi: Renamed from
46494         doc/posix-functions/fcvt.texi.
46495         * doc/pastposix-functions/ftime.texi: Renamed from
46496         doc/posix-functions/ftime.texi.
46497         * doc/pastposix-functions/gcvt.texi: Renamed from
46498         doc/posix-functions/gcvt.texi.
46499         * doc/pastposix-functions/getcontext.texi: Renamed from
46500         doc/posix-functions/getcontext.texi.
46501         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46502         doc/posix-functions/gethostbyaddr.texi.
46503         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46504         doc/posix-functions/gethostbyname.texi.
46505         * doc/pastposix-functions/getwd.texi: Renamed from
46506         doc/posix-functions/getwd.texi.
46507         * doc/pastposix-functions/h_errno.texi: Renamed from
46508         doc/posix-functions/h_errno.texi.
46509         * doc/pastposix-functions/index.texi: Renamed from
46510         doc/posix-functions/index.texi.
46511         * doc/pastposix-functions/makecontext.texi: Renamed from
46512         doc/posix-functions/makecontext.texi.
46513         * doc/pastposix-functions/mktemp.texi: Renamed from
46514         doc/posix-functions/mktemp.texi.
46515         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46516         doc/posix-functions/pthread_attr_getstackaddr.texi.
46517         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46518         doc/posix-functions/pthread_attr_setstackaddr.texi.
46519         * doc/pastposix-functions/rindex.texi: Renamed from
46520         doc/posix-functions/rindex.texi.
46521         * doc/pastposix-functions/scalb.texi: Renamed from
46522         doc/posix-functions/scalb.texi.
46523         * doc/pastposix-functions/setcontext.texi: Renamed from
46524         doc/posix-functions/setcontext.texi.
46525         * doc/pastposix-functions/swapcontext.texi: Renamed from
46526         doc/posix-functions/swapcontext.texi.
46527         * doc/pastposix-functions/ualarm.texi: Renamed from
46528         doc/posix-functions/ualarm.texi.
46529         * doc/pastposix-functions/usleep.texi: Renamed from
46530         doc/posix-functions/usleep.texi.
46531         * doc/pastposix-functions/vfork.texi: Renamed from
46532         doc/posix-functions/vfork.texi.
46533         * doc/pastposix-functions/wcswcs.texi: Renamed from
46534         doc/posix-functions/wcswcs.texi.
46535         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46536         (Function Substitutes): Update.
46537
46538 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46539
46540         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46541         m4/strerror.m4.
46542
46543 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46544             Bruno Haible  <bruno@clisp.org>
46545
46546         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46547
46548 2008-12-13  Bruno Haible  <bruno@clisp.org>
46549
46550         * modules/strtoull (Depends-on): Remove unistd.
46551
46552 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46553
46554         * modules/strtoull (Depends-on): Add stdlib.
46555
46556 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46557
46558         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46559
46560 2008-12-10  Jim Meyering  <meyering@redhat.com>
46561
46562         gl_ASSERT: don't say assertions are disabled when they're not
46563         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46564         "checking whether to enable assertions... no", when they are in
46565         fact enabled.  This is solely a bug in the output of configure.
46566         In spite of saying "no", NDEBUG was not defined in that case.
46567         Also, as noted by Eric Blake, leave assertions enabled upon
46568         --enable-assert=INVALID.
46569
46570 2008-12-10  Bruno Haible  <bruno@clisp.org>
46571
46572         Change MODULES.html to refer to POSIX:2008 where possible.
46573         * MODULES.html.sh (POSIX2008_URL): New variable.
46574         (posix_headers): Remove sys/timeb, ucontext.
46575         (posix2001_headers): New variable.
46576         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46577         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46578         index, makecontext, mktemp, pthread_attr_getstackaddr,
46579         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46580         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46581         (posix2001_functions): New variable.
46582         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46583         otherwise.
46584
46585 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46586
46587         add missing include to parse-duration.c
46588         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46589         * modules/parse-duration (Depends-on): Add xalloc.
46590
46591         fix sed script reading maint.mk
46592         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46593         (syntax-check-rules): Use it.
46594
46595 2008-12-09  Bruno Haible  <bruno@clisp.org>
46596
46597         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46598         MacOS X 10.4/PowerPC.
46599         Reported by Simon Josefsson.
46600
46601 2008-12-08  Jim Meyering  <meyering@redhat.com>
46602
46603         work around mingw's lack of some S_IF definitions
46604         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46605         Reported by Simon Josefsson.
46606
46607 2008-12-08  Bruno Haible  <bruno@clisp.org>
46608
46609         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46610         applied to variables. Needed on MacOS X 10.4/PowerPC.
46611         Reported by Simon Josefsson.
46612
46613 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46614         and Eric Blake  <ebb9@byu.net>
46615
46616         assert: honor --enable-assert
46617         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46618         order to honor --enable-assert, rather than treating it as a
46619         synonym for --disable-assert.
46620
46621 2008-12-08  Jim Meyering  <meyering@redhat.com>
46622
46623         * lib/posixtm.c: Remove now-useless declaration of mktime.
46624
46625         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46626
46627 2008-12-07  Bruno Haible  <bruno@clisp.org>
46628
46629         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46630         test_once): Mark functions as static.
46631         * tests/test-tls.c (test_tls): Likewise.
46632
46633 2008-12-07  Bruno Haible  <bruno@clisp.org>
46634
46635         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46636         iconv_register_autodetect.
46637
46638 2008-12-07  Jim Meyering  <meyering@redhat.com>
46639
46640         posixtm.c: avoid a warning
46641         * lib/posixtm.c (posixtime): Don't initialize tm0.
46642         It's no longer needed to placate gcc4's -Wuninitialized,
46643         and the attempt to placate would elicit a new warning.
46644
46645         unicodeio.c: mark unused parameters
46646         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46647         (fallback_failure_callback): Likewise.
46648
46649 2008-12-07  Bruno Haible  <bruno@clisp.org>
46650
46651         * gnulib-tool (func_create_testdir): When building the tests
46652         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46653         Reported by Simon Josefsson.
46654
46655 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46656
46657         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46658
46659 2008-12-06  Bruno Haible  <bruno@clisp.org>
46660
46661         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46662         Suggested by Eric Blake.
46663
46664 2008-12-06  Bruno Haible  <bruno@clisp.org>
46665
46666         Fix a c-stack test failure on MacOS X.
46667         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46668         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46669         handler for SIGBUS as well.
46670         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46671         install a signal handler for SIGBUS as well.
46672         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46673
46674 2008-12-06  Bruno Haible  <bruno@clisp.org>
46675
46676         Advocacy documentation.
46677         * doc/gnulib-intro.texi (Benefits): New section.
46678         * doc/gnulib.texi: Update.
46679
46680 2008-12-06  Bruno Haible  <bruno@clisp.org>
46681
46682         Document the 'manywarnings' module.
46683         * doc/manywarnings.texi: New file.
46684         * doc/gnulib.texi: Include it.
46685
46686 2008-12-05  Eric Blake  <ebb9@byu.net>
46687
46688         tests: silence some gcc warnings
46689         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46690         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46691         type mismatches.
46692
46693 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46694             Bruno Haible  <bruno@clisp.org>
46695
46696         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46697
46698 2008-11-29  Jim Meyering  <meyering@redhat.com>
46699
46700         unicodeio.c: mark unused parameters
46701         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46702         (fallback_failure_callback): Likewise.
46703
46704         fts: fix a thinko
46705         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46706         (set_stat_type): Return S_IF*-valued "type" directly.
46707         Prompted by James Youngman's spotting a related bug.
46708         Confirmed by further testing through find.
46709
46710         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46711         * lib/fts.c (D_TYPE): Define.
46712         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46713         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46714         (s_ifmt_shift_bits): New function.
46715         (set_stat_type): New function.
46716         (fts_build): When not calling fts_stat, call set_stat_type
46717         to propagate dirent.d_type info to fts_read caller.
46718         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46719         fts_statp->st_mode type information may be valid.
46720
46721 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46722
46723         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46724         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46725         <sds@gnu.org>.
46726
46727 2008-11-20  Bruno Haible  <bruno@clisp.org>
46728
46729         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46730         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46731         INCLUDE_NEXT.
46732         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46733         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46734         * modules/math (Makefile.am): Substitute
46735         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46736         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46737
46738 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46739             Bruno Haible  <bruno@clisp.org>
46740
46741         * lib/stdint.in.h: Define all type macros so that their expansion is
46742         a single typedef'ed token. Fixes a compilation failure in Boost which
46743         does "using ::int8_t;".
46744
46745 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46746
46747         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46748         gl_MANYWARN_ALL_GCC.
46749         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46750         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46751         * modules/manywarnings: New file.
46752         * MODULES.html.sh: Mention manywarnings module.
46753
46754 2008-11-18  Bruno Haible  <bruno@clisp.org>
46755
46756         * doc/gnulib-tool.texi (Unit tests): New section.
46757
46758 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46759
46760         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46761         paths like 'lib/po/foo.po'.
46762
46763 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46764
46765         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46766         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46767
46768 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46769
46770         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46771         parameter works.
46772
46773 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46774
46775         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46776
46777 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46778
46779         * modules/parse-duration-tests: New file.
46780         * tests/test-parse-duration.sh: New file.
46781         * tests/test-parse-duration.c: New file.
46782
46783         New module 'parse-duration'.
46784         * lib/parse-duration.h: New file.
46785         * lib/parse-duration.c: New file.
46786         * modules/parse-duration: New file.
46787
46788 2008-11-17  Bruno Haible  <bruno@clisp.org>
46789
46790         * tests/test-select-out.sh: Comment out the first pipe test.
46791         Reported by Simon Josefsson.
46792
46793 2008-11-17  Bruno Haible  <bruno@clisp.org>
46794
46795         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46796         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46797         gl_HOSTENT.
46798
46799 2008-11-17  Bruno Haible  <bruno@clisp.org>
46800
46801         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46802         -lnetwork and -lnet. Needed for Haiku and BeOS.
46803
46804 2008-11-16  Bruno Haible  <bruno@clisp.org>
46805
46806         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46807
46808 2008-11-16  Bruno Haible  <bruno@clisp.org>
46809
46810         Avoid test failure on Haiku.
46811         * tests/test-fsync.c: Include <errno.h>.
46812         (main): Don't require that fsync (0) fails.
46813
46814 2008-11-15  Bruno Haible  <bruno@clisp.org>
46815
46816         New module 'hostent'.
46817         * modules/hostent: New file.
46818         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46819
46820 2008-11-15  Bruno Haible  <bruno@clisp.org>
46821
46822         New module 'servent'.
46823         * modules/servent: New file.
46824         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46825
46826 2008-11-15  Bruno Haible  <bruno@clisp.org>
46827
46828         Avoid generating same test program with two different rules.
46829         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46830         test-frexp to test-frexp-nolibm.
46831         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46832         test-frexpl to test-frexpl-nolibm.
46833
46834 2008-11-15  Bruno Haible  <bruno@clisp.org>
46835
46836         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46837         $(FREXPL_LIBM).
46838
46839 2008-11-15  Bruno Haible  <bruno@clisp.org>
46840
46841         * lib/netdb.in.h: Activate the definitions also when the system's
46842         <netdb.h> has 'struct addrinfo'.
46843         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46844         EAI_OVERFLOW or AI_NUMERICSERV.
46845         * doc/posix-headers/netdb.texi: Document the problem.
46846
46847 2008-11-15  Bruno Haible  <bruno@clisp.org>
46848
46849         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46850
46851         Make the 'sched' module work on platforms where <sched.h> exists but
46852         is incomplete (such as Haiku).
46853         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46854         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46855         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46856         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46857         HAVE_STRUCT_SCHED_PARAM.
46858         * modules/sched (Depends-on): Add include_next.
46859         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46860         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46861         * doc/posix-headers/sched.texi: Document the issue.
46862
46863 2008-11-13  Jim Meyering  <meyering@redhat.com>
46864
46865         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46866         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46867         test would fail due to the difference in the Report bugs to ...
46868         line.  The expected address is empty, "<>", while the actual
46869         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46870
46871 2008-11-12  Bruno Haible  <bruno@clisp.org>
46872
46873         lstat: don't compile lstat.c on systems lacking lstat
46874         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46875         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46876         Reported by Daniel P. Berrange via Jim Meyering.
46877
46878 2008-11-12  Jim Meyering  <meyering@redhat.com>
46879
46880         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46881
46882 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46883
46884         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46885         instead.
46886
46887 2008-11-12  Bruno Haible  <bruno@clisp.org>
46888
46889         * lib/unicodeio.c: Include unistr.h.
46890         (utf8_wctomb): Remove function.
46891         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46892
46893 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46894
46895         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46896         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46897         <bruno@clisp.org>.
46898         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46899
46900 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46901
46902         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46903         * doc/gnulib.texi: Add section for warnings.
46904
46905 2008-11-11  Bruno Haible  <bruno@clisp.org>
46906
46907         * lib/sockets.h: Add a comment.
46908
46909 2008-11-11  Karl Berry  <karl@gnu.org>
46910
46911         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46912
46913 2008-11-11  Eric Blake  <ebb9@byu.net>
46914
46915         fdl.texi: avoid git symlinks
46916         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46917
46918 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46919
46920         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46921
46922 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46923
46924         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46925         (gl_WARN_ADD): Substitute $2 if literal.
46926
46927 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46928
46929         * m4/warning.m4: Remove.
46930
46931 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46932
46933         * m4/warnings.m4: Almost complete rewrite. :-)
46934
46935 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46936
46937         * modules/warnings: New module.
46938         * m4/warnings.m4: New file.
46939         * MODULES.html.sh: Mention warnings module.
46940         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46941         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46942
46943 2008-11-10  Eric Blake  <ebb9@byu.net>
46944
46945         fdl.texi: make a symlink to the latest version
46946         * doc/standards.texi: Revert today's earlier change.
46947         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46948         * doc/fdl.texi: ...and replace this with a symlink to the newer
46949         fdl-1.3.texi.
46950
46951 2008-11-10  Bruno Haible  <bruno@clisp.org>
46952
46953         * tests/test-select-fd.c (main): Accept the result file name as fourth
46954         argument.
46955         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46956         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46957
46958 2008-11-10  Bruno Haible  <bruno@clisp.org>
46959
46960         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46961         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46962         as autoconf-substituted macros.
46963         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46965         gl_NETDB_H_DEFAULTS. Set these variables.
46966         * modules/netdb (Makefile.am): Substitute these variables.
46967
46968 2008-11-10  Eric Blake  <ebb9@byu.net>
46969
46970         standards.texi: include correct file for FDL 1.3
46971         * doc/standards.texi (GNU Free Documentation License): Change
46972         include file to pull in FDL 1.3, not 1.2.
46973
46974         fdl.texi: revert accidental change to license
46975         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46976
46977 2008-11-10  Bruno Haible  <bruno@clisp.org>
46978
46979         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46980         cross-compiling guesses also when the native compile gives no result.
46981
46982 2008-11-10  Bruno Haible  <bruno@clisp.org>
46983
46984         * lib/spawni.c (__spawni): Force variable into the stack.
46985
46986 2008-11-10  Bruno Haible  <bruno@clisp.org>
46987
46988         Add support for Haiku.
46989         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46990         glibc and BeOS, but also on Haiku.
46991         * lib/fpurge.c (fpurge): Likewise.
46992         * lib/freadable.c (freadable): Likewise.
46993         * lib/freadahead.c (freadahead): Likewise.
46994         * lib/freading.c (freading): Likewise.
46995         * lib/freadptr.c (freadptr): Likewise.
46996         * lib/freadseek.c (freadptrinc): Likewise.
46997         * lib/fseeko.c (rpl_fseeko): Likewise.
46998         * lib/fseterr.c (fseterr): Likewise.
46999         * lib/fwritable.c (fwritable): Likewise.
47000         * lib/fwriting.c (fwriting): Likewise.
47001         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
47002
47003 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47004
47005         * lib/config.charset: Treat Haiku like BeOS.
47006
47007 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47008
47009         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
47010         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
47011
47012 2008-11-08  Bruno Haible  <bruno@clisp.org>
47013
47014         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
47015         AC_CACHE_CHECK.
47016
47017 2008-11-08  Bruno Haible  <bruno@clisp.org>
47018
47019         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47020
47021 2008-11-08  Bruno Haible  <bruno@clisp.org>
47022
47023         * tests/test-select-fd.c: New file.
47024         * tests/test-select-in.sh: New file.
47025         * tests/test-select-out.sh: New file.
47026         * tests/test-select-stdin.c: New file.
47027         * modules/select-tests (Files): Add the new files.
47028         (Depends-on): Add gettimeofday.
47029         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47030         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47031         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47032
47033 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47034             Bruno Haible  <bruno@clisp.org>
47035
47036         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47037
47038 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47039
47040         * build-aux/pmccabe2html: Added support for C++ source files.
47041
47042 2008-11-05  Ben Pfaff  <blp@gnu.org>
47043
47044         Fix lib/close.c build on Windows.
47045         * modules/close (Files): Add lib/w32sock.h.
47046
47047 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47048
47049         Accept Bison's NEWS format.
47050         * build-aux/announce-gen (print_news_deltas): Tweak
47051         $re_prefix.
47052
47053 2008-11-04  Bruno Haible  <bruno@clisp.org>
47054
47055         * modules/random_r (Maintainer): Add glibc.
47056
47057 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47058
47059         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47060         by karl@freefriends.org (Karl Berry).
47061         * doc/alloca.texi: Likewise.
47062         * doc/c-ctype.texi: Likewise.
47063         * doc/c-strcase.texi: Likewise.
47064         * doc/c-strcaseeq.texi: Likewise.
47065         * doc/c-strcasestr.texi: Likewise.
47066         * doc/c-strstr.texi: Likewise.
47067         * doc/c-strtod.texi: Likewise.
47068         * doc/c-strtold.texi: Likewise.
47069         * doc/ctime.texi: Likewise.
47070         * doc/error.texi: Likewise.
47071         * doc/fdl.texi: Likewise.
47072         * doc/gcd.texi: Likewise.
47073         * doc/getdate.texi: Likewise.
47074         * doc/gnulib-intro.texi: Likewise.
47075         * doc/gnulib-tool.texi: Likewise.
47076         * doc/gnulib.texi: Likewise.
47077         * doc/inet_ntoa.texi: Likewise.
47078         * doc/maintain.texi: Likewise.
47079         * doc/make-stds.texi: Likewise.
47080         * doc/quote.texi: Likewise.
47081         * doc/regexprops-generic.texi: Likewise.
47082         * doc/standards.texi: Likewise.
47083         * doc/verify.texi: Likewise.
47084         * doc/visibility.texi: Likewise.
47085         * doc/gnulib.texi (GNU Free Documentation License): Include
47086         fdl-1.3.texi instead of fdl.texi.
47087
47088 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47089
47090         * doc/fdl-1.3.texi: New file, from
47091         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47092         * modules/fdl-1.3: Add.
47093         * MODULES.html.sh: Add fdl-1.3.
47094
47095 2008-11-03  Bruno Haible  <bruno@clisp.org>
47096
47097         Make determination of absolute name of header file work with AIX xlc.
47098         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47099         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47100         preprocessing.
47101         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47102         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47103
47104 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47105
47106         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47107         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47108         <ludo@gnu.org>.
47109
47110 2008-11-02  Bruno Haible  <bruno@clisp.org>
47111
47112         Mark 'strpbrk' obsolete.
47113         * modules/strpbrk (Status, Notice): New sections.
47114         * modules/strtok_r (Depends-on): Add strpbrk.
47115
47116 2008-11-02  Bruno Haible  <bruno@clisp.org>
47117
47118         Mark 'strdup' obsolete.
47119         * modules/strdup (Status, Notice): New sections.
47120         * modules/findprog (Depends-on): Add strdup.
47121         * modules/getaddrinfo (Depends-on): Likewise.
47122         * modules/localename (Depends-on): Likewise.
47123         * modules/relocatable-lib (Depends-on): Likewise.
47124         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47125         * modules/relocatable-prog (Depends-on): Likewise.
47126         * modules/trim (Depends-on): Likewise.
47127         * modules/unictype/gen-ctype (Depends-on): Likewise.
47128         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47129
47130 2008-11-02  Bruno Haible  <bruno@clisp.org>
47131
47132         Mark 'strcspn' obsolete.
47133         * modules/strcspn (Status, Notice): New sections.
47134
47135 2008-11-02  Bruno Haible  <bruno@clisp.org>
47136
47137         Mark 'rmdir' obsolete.
47138         * modules/rmdir (Status, Notice): New sections.
47139         * modules/clean-temp (Depends-on): Add rmdir.
47140         * modules/openat (Depends-on): Likewise.
47141
47142 2008-11-02  Bruno Haible  <bruno@clisp.org>
47143
47144         Mark 'raise' obsolete.
47145         * modules/raise (Status, Notice): New sections.
47146         (Include): Specify <signal.h>.
47147         * modules/stdio (Depends-on): Add raise.
47148         * modules/write (Depends-on): Likewise.
47149
47150 2008-11-02  Bruno Haible  <bruno@clisp.org>
47151
47152         Mark 'memset' obsolete.
47153         * modules/memset (Status, Notice): New sections.
47154
47155 2008-11-02  Bruno Haible  <bruno@clisp.org>
47156
47157         Mark 'memmove' obsolete.
47158         * modules/memmove (Status, Notice): New sections.
47159         * modules/argp (Depends-on): Add memmove.
47160         * modules/argz (Depends-on): Likewise.
47161         * modules/canonicalize (Depends-on): Likewise.
47162         * modules/canonicalize-lgpl (Depends-on): Likewise.
47163         * modules/fts (Depends-on): Likewise.
47164         * modules/getcwd (Depends-on): Likewise.
47165         * modules/human (Depends-on): Likewise.
47166         * modules/regex (Depends-on): Likewise.
47167         * modules/striconveh (Depends-on): Likewise.
47168         * modules/trim (Depends-on): Likewise.
47169         * modules/unistr/u8-move (Depends-on): Likewise.
47170         * modules/unistr/u16-move (Depends-on): Likewise.
47171         * modules/unistr/u32-move (Depends-on): Likewise.
47172
47173 2008-11-02  Bruno Haible  <bruno@clisp.org>
47174
47175         Mark 'memcpy' obsolete.
47176         * modules/memcpy (Status, Notice): New sections.
47177
47178 2008-11-02  Bruno Haible  <bruno@clisp.org>
47179
47180         Mark 'memcmp' obsolete.
47181         * modules/memcmp (Status, Notice): New sections.
47182         * modules/argmatch (Depends-on): Add memchr.
47183         * modules/backupfile (Depends-on): Likewise.
47184         * modules/c-strcasestr (Depends-on): Likewise.
47185         * modules/crypto/des (Depends-on): Likewise.
47186         * modules/csharpcomp (Depends-on): Likewise.
47187         * modules/fnmatch (Depends-on): Likewise.
47188         * modules/git-merge-changelog (Depends-on): Likewise.
47189         * modules/isnand (Depends-on): Likewise.
47190         * modules/isnand-nolibm (Depends-on): Likewise.
47191         * modules/isnanf (Depends-on): Likewise.
47192         * modules/isnanf-nolibm (Depends-on): Likewise.
47193         * modules/isnanl (Depends-on): Likewise.
47194         * modules/isnanl-nolibm (Depends-on): Likewise.
47195         * modules/mbchar (Depends-on): Likewise.
47196         * modules/memcoll (Depends-on): Likewise.
47197         * modules/quotearg (Depends-on): Likewise.
47198         * modules/regex (Depends-on): Likewise.
47199         * modules/relocatable-prog (Depends-on): Likewise.
47200         * modules/same (Depends-on): Likewise.
47201         * modules/signbit (Depends-on): Likewise.
47202         * modules/strcasestr-simple (Depends-on): Likewise.
47203         * modules/unictype/gen-ctype (Depends-on): Likewise.
47204         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47205         * modules/uniname/uniname (Depends-on): Likewise.
47206         * modules/unistr/u8-cmp (Depends-on): Likewise.
47207
47208 2008-11-02  Bruno Haible  <bruno@clisp.org>
47209
47210         Mark 'memchr' obsolete.
47211         * modules/memchr (Status, Notice): New sections.
47212         * modules/argp (Depends-on): Add memchr.
47213         * modules/base64 (Depends-on): Likewise.
47214         * modules/c-strcasestr (Depends-on): Likewise.
47215         * modules/chdir-long (Depends-on): Likewise.
47216         * modules/fnmatch (Depends-on): Likewise.
47217         * modules/getsubopt (Depends-on): Likewise.
47218         * modules/git-merge-changelog (Depends-on): Likewise.
47219         * modules/glob (Depends-on): Likewise.
47220         * modules/strcasestr-simple (Depends-on): Likewise.
47221         * modules/strnlen (Depends-on): Likewise.
47222
47223 2008-11-02  Bruno Haible  <bruno@clisp.org>
47224
47225         Mark 'atexit' obsolete.
47226         * modules/atexit (Status, Notice): New sections.
47227         * modules/chdir-long (Depends-on): Add atexit.
47228         * modules/wait-process (Depends-on): Likewise.
47229
47230 2008-11-02  Bruno Haible  <bruno@clisp.org>
47231
47232         * gnulib-tool: New option --with-obsolete.
47233         (func_usage): Document it.
47234         (func_modules_transitive_closure): Drop obsolete dependencies if
47235         incobsolete is not true.
47236         (func_import): Read and save the incobsolete variable to the cache.
47237
47238 2008-11-02  Bruno Haible  <bruno@clisp.org>
47239
47240         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47241         * gnulib-tool: New option --extract-status.
47242         (func_usage): Document it.
47243         (sed_extract_prog): Recognize it.
47244         (func_get_status): New function.
47245
47246 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47247
47248         * modules/sockets (License): Change from LGPL to LGPLv2+.
47249
47250 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47251
47252         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47253
47254 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47255
47256         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47257         Mention times and sys_times.
47258         * modules/sys_times, modules/sys_times-tests: New modules.
47259         * modules/times, modules/times-tests: Likewise
47260         * m4/sys_times_h.m4: New file.
47261         * lib/sys_times.in.h: Likewise
47262         * lib/times.c: Likewise.
47263         * tests/test-sys_times.c: Likewise.
47264         * tests/test-times.c: Likewise.
47265         * doc/posix-headers/sys_times.texi: Update.
47266         * doc/posix-functions/times.texi: Update.
47267
47268 2008-10-28  Jim Meyering  <meyering@redhat.com>
47269
47270         * modules/tempname (Depends-on): Add lstat.
47271
47272         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47273
47274 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47275
47276         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47277         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47278         using idiom used elsewhere in gnulib.
47279
47280 2008-10-27  Jim Meyering  <meyering@redhat.com>
47281
47282         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47283
47284 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47285
47286         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47287         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47288         programs.
47289         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47290
47291 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47292
47293         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47294
47295 2008-10-27  Bruno Haible  <bruno@clisp.org>
47296
47297         * tests/test-lstat.c: Include <stdio.h>.
47298
47299 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47300
47301         * modules/lstat-tests: New module.
47302         * tests/test-lstat.c: New file.
47303
47304 2008-10-26  Jim Meyering  <meyering@redhat.com>
47305
47306         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47307
47308 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47309             Bruno Haible  <bruno@clisp.org>
47310
47311         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47312         * modules/configmake (Include): Add a note that the include must come
47313         after all system headers.
47314         * lib/javaversion.c: Include configmake.h after all other includes.
47315
47316 2008-10-26  Bruno Haible  <bruno@clisp.org>
47317
47318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47319         HAVE_STRUCT_RANDOM_DATA to 1.
47320         (gl_STDLIB_H): Simplify.
47321
47322 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47323
47324         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47325         substitute HAVE_STRUCT_RANDOM_DATA.
47326         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47327         random_data.
47328         * modules/stdlib (Makefile.am): Substitute
47329         HAVE_STRUCT_RANDOM_DATA.
47330
47331 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47332
47333         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47334         * doc/gnulib-intro.texi (Copyright): Likewise.
47335
47336 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47337
47338         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47339         findings.
47340
47341 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47342             Bruno Haible  <bruno@clisp.org>
47343
47344         * lib/unistd.in.h: Include <winsock2.h>.
47345         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47346         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47347         Provide dummy declarations.
47348         (gethostname): Override.
47349         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47350         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47351         gl_PREREQ_SYS_H_WINSOCK2.
47352         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47353         * doc/posix-functions/gethostname.texi: More details.
47354
47355 2008-10-25  Bruno Haible  <bruno@clisp.org>
47356
47357         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47358         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47359         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47360
47361         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47362         here ...
47363         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47364         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47365         gl_UNISTD_H_DEFAULTS.
47366
47367 2008-10-25  Eric Blake  <ebb9@byu.net>
47368
47369         signbit: avoid spurious compiler failure
47370         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47371         declarations inside function.
47372
47373 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47374             Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47377         * modules/random_r (Depends-on): Add stdint.
47378
47379 2008-10-24  Bruno Haible  <bruno@clisp.org>
47380
47381         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47382         Eggert.
47383         * modules/strerror (License): Likewise.
47384
47385 2008-10-24  Jim Meyering  <meyering@redhat.com>
47386
47387         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47388         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47389
47390 2008-10-24  Eric Blake  <ebb9@byu.net>
47391
47392         getgroups: fix compilation when getgroups is available
47393         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47394         but with <config.h> override of getgroups disabled.
47395
47396 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47397
47398         * doc/gnulib.texi (Header files): Add note about C++ problems.
47399         Explained by Bruno Haible <bruno@clisp.org>.
47400
47401 2008-10-23  Bruno Haible  <bruno@clisp.org>
47402
47403         Define a dummy SA_NODEFER macro on Interix.
47404         * lib/signal.in.h (SA_NODEFER): Define fallback.
47405         Reported by Aleksey Cheusov <cheusov@tut.by> via
47406         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47407
47408 2008-10-23  Bruno Haible  <bruno@clisp.org>
47409
47410         * modules/freadahead (License): Change to LGPLv2+.
47411         Suggested by Simon Josefsson.
47412
47413 2008-10-23  Jim Meyering  <meyering@redhat.com>
47414
47415         random_r: new module
47416         * modules/random_r: New file.
47417         * m4/random_r.m4: New file.
47418         * lib/random_r.c: New file, from glibc.
47419         * modules/random_r-tests: New file.
47420         * tests/test-random_r.c: New file.
47421         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47422          Declare.
47423         (RAND_MAX): Define.
47424         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47425         * modules/stdlib: Substitute them, too.
47426         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47427         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47428         * doc/glibc-functions/random_r.texi: Likewise.
47429         * doc/glibc-functions/setstate_r.texi: Likewise.
47430         * doc/glibc-functions/srandom_r.texi: Likewise.
47431         * config/srclist.txt: Mention it.
47432
47433 2008-10-23  David Lutterkort  <lutter@redhat.com>
47434
47435         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47436         link requirement
47437
47438 2008-10-23  Jim Meyering  <meyering@redhat.com>
47439
47440         selinux-h: mark parameters of stub functions as intentionally unused
47441         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47442         * lib/se-context.in.h: Likewise.
47443
47444 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47445
47446         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47447
47448 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47449
47450         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47451
47452 2008-10-22  Eric Blake  <ebb9@byu.net>
47453
47454         glthread/thread: avoid compiler warning
47455         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47456         Add unreachable abort to silence compiler.
47457
47458 2008-10-22  Eric Blake  <ebb9@byu.net>
47459
47460         netdb: also supply struct addrinfo for cygwin 1.5.x
47461         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47462         older cygwin.
47463         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47464         cygwin.
47465         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47466
47467 2008-10-22  Bruno Haible  <bruno@clisp.org>
47468
47469         * users.txt: Update entry about pspp.
47470
47471 2008-10-21  Bruno Haible  <bruno@clisp.org>
47472
47473         Simplification.
47474         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47475         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47476
47477         Simplification.
47478         * lib/ioctl.c (ioctl): Don't undefine.
47479         * lib/socket.c (socket): Don't undefine.
47480
47481         Remove unused module indicator macros.
47482         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47483         GNULIB_$1 as a C macro.
47484
47485         * doc/posix-functions/close.texi: Undo last change.
47486         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47487         Windows platforms.
47488
47489 2008-10-21  Bruno Haible  <bruno@clisp.org>
47490
47491         Add gethostname() declaration to <unistd.h>.
47492         * lib/unistd.in.h (gethostname): New declaration.
47493         * lib/gethostname.c: Include <unistd.h>.
47494         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47495         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47497         and HAVE_GETHOSTNAME.
47498         * modules/gethostname (Depends-on): Add unistd.
47499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47500         (Include): Specify <unistd.h>.
47501         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47502         HAVE_GETHOSTNAME.
47503         * tests/test-gethostname.c: Include <unistd.h> first.
47504
47505 2008-10-21  Bruno Haible  <bruno@clisp.org>
47506
47507         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47508         * modules/select-tests (Depends-on): Likewise.
47509         Reported by Simon Josefsson.
47510
47511 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47512
47513         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47514         * lib/accept.c: New file, based on winsock.c.
47515         * lib/bind.c: New file, based on winsock.c.
47516         * lib/connect.c: New file, based on winsock.c.
47517         * lib/getpeername.c: New file, based on winsock.c.
47518         * lib/getsockname.c: New file, based on winsock.c.
47519         * lib/getsockopt.c: New file, based on winsock.c.
47520         * lib/ioctl.c: New file, based on winsock.c.
47521         * lib/listen.c: New file, based on winsock.c.
47522         * lib/recv.c: New file, based on winsock.c.
47523         * lib/recvfrom.c: New file, based on winsock.c.
47524         * lib/send.c: New file, based on winsock.c.
47525         * lib/sendto.c: New file, based on winsock.c.
47526         * lib/setsockopt.c: New file, based on winsock.c.
47527         * lib/shutdown.c: New file, based on winsock.c.
47528         * lib/socket.c: New file, based on winsock.c.
47529         * lib/w32sock.h: New file, based on winsock.c.
47530         * lib/winsock.c: Remove file.
47531         * modules/accept: Likewise.
47532         * modules/bind: Likewise.
47533         * modules/connect: Likewise.
47534         * modules/getpeername: Likewise.
47535         * modules/getsockname: Likewise.
47536         * modules/getsockopt: Likewise.
47537         * modules/ioctl: Likewise.
47538         * modules/listen: Likewise.
47539         * modules/recv: Likewise.
47540         * modules/recvfrom: Likewise.
47541         * modules/send: Likewise.
47542         * modules/sendto: Likewise.
47543         * modules/setsockopt: Likewise.
47544         * modules/shutdown: Likewise.
47545         * modules/socket: Use socket.c instead of winsock.c.
47546         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47547         * doc/posix-functions/accept.texi: Doc fix.
47548         * doc/posix-functions/bind.texi: Doc fix.
47549         * doc/posix-functions/close.texi: Doc fix.
47550         * doc/posix-functions/connect.texi: Doc fix.
47551         * doc/posix-functions/getpeername.texi: Doc fix.
47552         * doc/posix-functions/getsockname.texi: Doc fix.
47553         * doc/posix-functions/getsockopt.texi: Doc fix.
47554         * doc/posix-functions/ioctl.texi: Doc fix.
47555         * doc/posix-functions/listen.texi: Doc fix.
47556         * doc/posix-functions/recv.texi: Doc fix.
47557         * doc/posix-functions/recvfrom.texi: Doc fix.
47558         * doc/posix-functions/send.texi: Doc fix.
47559         * doc/posix-functions/sendto.texi: Doc fix.
47560         * doc/posix-functions/setsockopt.texi: Doc fix.
47561         * doc/posix-functions/shutdown.texi: Doc fix.
47562         * doc/posix-functions/socket.texi: Doc fix.
47563
47564 2008-10-20  Bruno Haible  <bruno@clisp.org>
47565
47566         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47567         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47568         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47569         as an alias for SIGABRT.
47570         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47571         (sigaction): Map it to SIGABRT.
47572         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47573
47574 2008-10-20  Bruno Haible  <bruno@clisp.org>
47575
47576         * lib/fts.c: Don't include lstat.h.
47577         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47578
47579         Move the lstat() declaration to <sys/stat.h>.
47580         * lib/lstat.h: Remove file.
47581         * lib/sys_stat.in.h: Add special invocation convention.
47582         (lstat): New declaration.
47583         * lib/lstat.c (orig_lstat): New function.
47584         (rpl_lstat): Use orig_lstat instead of lstat.
47585         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47586         AC_C_INLINE. Set REPLACE_LSTAT.
47587         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47588         and REPLACE_LSTAT.
47589         * modules/lstat (Files): Remove lib/lstat.h.
47590         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47591         (Include): Specify <sys/stat.h> instead of lstat.h.
47592         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47593         REPLACE_LSTAT.
47594         * NEWS: Mention the change.
47595
47596 2008-10-20  Bruno Haible  <bruno@clisp.org>
47597
47598         * modules/posix_spawn-tests: New file.
47599         * tests/test-posix_spawn3.c: New file.
47600
47601 2008-10-20  Bruno Haible  <bruno@clisp.org>
47602
47603         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47604         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47605         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47606         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47607         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47608
47609 2008-10-20  Bruno Haible  <bruno@clisp.org>
47610
47611         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47612         of posix_spawn on AIX 5.3.
47613
47614 2008-10-20  Bruno Haible  <bruno@clisp.org>
47615
47616         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47617
47618 2008-10-20  Bruno Haible  <bruno@clisp.org>
47619
47620         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47621         of AC_LANG_PROGRAM.
47622
47623 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47624
47625         * lib/netdb.in.h: Don't define GNU specific constants until they
47626         are supported or needed.  Reported by Bruno Haible
47627         <bruno@clisp.org>.
47628
47629 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47630
47631         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47632
47633 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47634
47635         * lib/getaddrinfo.h: Remove file.
47636         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47637         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47638         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47639         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47640         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47641         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47642         * tests/test-getaddrinfo.c: Likewise.
47643         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47644         * NEWS: Mention change.
47645
47646 2008-10-19  Bruno Haible  <bruno@clisp.org>
47647
47648         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47649
47650 2008-10-19  Bruno Haible  <bruno@clisp.org>
47651
47652         * lib/wait-process.c: Include simply <sys/wait.h>.
47653         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47654         WIFSTOPPED): Remove fallback definitions.
47655         * modules/wait-process (Depends-on): Add sys_wait.
47656
47657         New module 'sys_wait'.
47658         * modules/sys_wait: New file.
47659         * lib/sys_wait.in.h: New file, partially copied from
47660         lib/wait-process.c.
47661         * m4/sys_wait_h.m4: New file.
47662         * doc/posix-headers/sys_wait.texi: Mention the new module.
47663
47664 2008-10-19  Bruno Haible  <bruno@clisp.org>
47665
47666         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47667
47668 2008-10-19  Bruno Haible  <bruno@clisp.org>
47669
47670         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47671         * lib/wait-process.c (WAIT_T): Remove type.
47672         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47673         (wait_subprocess): Update.
47674
47675 2008-10-19  Bruno Haible  <bruno@clisp.org>
47676
47677         New module 'atoll'.
47678         * modules/atoll: New file.
47679         * lib/stdlib.in.h (atoll): New declaration.
47680         * lib/atoll.c: New file, from glibc with modifications.
47681         * m4/atoll.m4: New file.
47682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47683         HAVE_ATOLL.
47684         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47685         * doc/posix-functions/atoll.texi: Mention the new module.
47686
47687 2008-10-19  Bruno Haible  <bruno@clisp.org>
47688
47689         Add strtoull() declaration to <stdlib.h>.
47690         * lib/stdlib.in.h (strtoull): New declaration.
47691         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47692         Set HAVE_STRTOULL.
47693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47694         HAVE_STRTOULL.
47695         * modules/strtoull (Depends-on): Add stdlib.
47696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47697         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47698         HAVE_STRTOULL.
47699
47700 2008-10-19  Bruno Haible  <bruno@clisp.org>
47701
47702         Add strtoll() declaration to <stdlib.h>.
47703         * lib/stdlib.in.h (strtoll): New declaration.
47704         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47705         Set HAVE_STRTOLL.
47706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47707         HAVE_STRTOLL.
47708         * modules/strtoll (Depends-on): Add stdlib.
47709         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47710         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47711
47712 2008-10-19  Bruno Haible  <bruno@clisp.org>
47713
47714         * modules/bcopy (Depends-on): Add strings.
47715         (Include): Specify <strings.h>.
47716
47717 2008-10-19  Bruno Haible  <bruno@clisp.org>
47718
47719         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47720
47721 2008-10-19  Bruno Haible  <bruno@clisp.org>
47722
47723         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47724         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47725         mingw.
47726
47727 2008-10-19  Bruno Haible  <bruno@clisp.org>
47728
47729         * lib/atanl.c: Don't include isnanl.h.
47730         * lib/cosl.c: Likewise.
47731         * lib/ldexpl.c: Likewise.
47732         * lib/logl.c: Likewise.
47733         * lib/sinl.c: Likewise.
47734         * lib/sqrtl.c: Likewise.
47735         * lib/tanl.c: Likewise.
47736
47737         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47738         * lib/isnanf.h: Remove file.
47739         * lib/isnand.h: Remove file.
47740         * lib/isnanl.h: Remove file.
47741         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47742         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47743         macros.
47744         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47745         HAVE_ISNANF, don't define it as a C macro.
47746         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47747         HAVE_ISNAND, don't define it as a C macro.
47748         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47749         HAVE_ISNANL, don't define it as a C macro.
47750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47751         HAVE_ISNAN[FDL].
47752         * modules/isnanf (Files): Remove lib/isnanf.h.
47753         (Depends-on): Add math.
47754         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47755         (Include): Specify <math.h> instead of isnanf.h.
47756         * modules/isnand (Files): Remove lib/isnand.h.
47757         (Depends-on): Add math.
47758         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47759         (Include): Specify <math.h> instead of isnand.h.
47760         * modules/isnanl (Files): Remove lib/isnanl.h.
47761         (Depends-on): Add math.
47762         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47763         (Include): Specify <math.h> instead of isnanl.h.
47764         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47765         HAVE_ISNAN[FDL].
47766         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47767         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47768         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47769         * NEWS: Mention the change.
47770
47771 2008-10-18  Bruno Haible  <bruno@clisp.org>
47772
47773         Add getusershell(), setusershell(), endusershell() declarations to
47774         <unistd.h>.
47775         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47776         declarations.
47777         * lib/getusershell.c: Include unistd.h.
47778         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47779         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47780         HAVE_GETUSERSHELL.
47781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47782         and HAVE_GETUSERSHELL.
47783         * modules/getusershell (Depends-on): Add unistd, extensions.
47784         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47785         (Include): Specify <unistd.h>.
47786         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47787         HAVE_GETUSERSHELL.
47788
47789 2008-10-18  Bruno Haible  <bruno@clisp.org>
47790
47791         Add a getloadavg() declaration to <stdlib.h>.
47792         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47793         getloadavg declaration.
47794         (getloadavg): New declaration.
47795         * lib/getloadavg.c: Include <stdlib.h> first.
47796         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47797         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47798         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47799         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47800         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47801         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47802         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47803         (Include): Specify <stdlib.h>.
47804         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47805         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47806
47807 2008-10-18  Bruno Haible  <bruno@clisp.org>
47808
47809         * lib/dirchownmod.c: Don't include lchmod.h.
47810
47811         Move the lchmod() declaration to <sys/stat.h>.
47812         * lib/lchmod.h: Remove file.
47813         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47814         (lchmod): New declaration, moved here from lib/lchown.h.
47815         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47816         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47817         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47818         and HAVE_LCHMOD.
47819         * modules/lchmod (Files): Remove lib/lchmod.h.
47820         (Depends-on): Add sys_stat, extensions.
47821         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47822         (Include): Specify <sys/stat.h> instead of lchmod.h.
47823         * modules/sys_stat (Depends-on): Add link-warning.
47824         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47825         definition of GL_LINK_WARNING.
47826         * NEWS: Mention the change.
47827
47828 2008-10-18  Bruno Haible  <bruno@clisp.org>
47829
47830         * lib/fchdir.c: Don't include dirfd.h.
47831         * lib/fts.c: Likewise.
47832         * lib/getcwd.c: Likewise.
47833         * lib/glob.c: Likewise.
47834
47835         Move the dirfd() declaration to <dirent.h>.
47836         * lib/dirfd.h: Remove file.
47837         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47838         (dirfd): New declaration.
47839         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47840         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47841         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47842         HAVE_DECL_DIRFD.
47843         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47844         HAVE_DECL_DIRFD.
47845         * modules/dirfd (Files): Remove lib/dirfd.h.
47846         (Depends-on): Add dirent, extensions.
47847         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47848         (Include): Specify <dirent.h> instead of dirfd.h.
47849         * modules/dirent (Depends-on): Add link-warning.
47850         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47851         definition of GL_LINK_WARNING.
47852         * NEWS: Mention the change.
47853
47854 2008-10-18  Bruno Haible  <bruno@clisp.org>
47855
47856         Move the euidaccess() declaration to <unistd.h>.
47857         * lib/euidaccess.h: Remove file.
47858         * lib/unistd.in.h (euidaccess): New declaration.
47859         * lib/euidaccess.c: Don't include euidaccess.h.
47860         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47861         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47863         and HAVE_EUIDACCESS.
47864         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47865         (Depends-on): Add unistd.
47866         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47867         (Include): Specify <unistd.h> instead of euidaccess.h.
47868         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47869         HAVE_EUIDACCESS.
47870         * NEWS: Mention the change.
47871
47872 2008-10-18  Bruno Haible  <bruno@clisp.org>
47873
47874         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47875
47876         Move the getdomainname() declaration to <unistd.h>.
47877         * lib/getdomainname.h: Remove file.
47878         * lib/unistd.in.h (getdomainname): New declaration.
47879         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47880         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47881         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47882         HAVE_GETDOMAINNAME.
47883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47884         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47885         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47886         (Depends-on): Add unistd, extensions.
47887         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47888         (Includes): Specify <unistd.h> instead of getdomainname.h.
47889         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47890         HAVE_GETDOMAINNAME.
47891         * NEWS: Mention the change.
47892
47893 2008-10-18  Bruno Haible  <bruno@clisp.org>
47894
47895         * modules/dirent: New file.
47896         * m4/dirent_h.m4: New file.
47897         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47898         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47899         * modules/fchdir (Files): Remove lib/dirent.in.h.
47900         (Depends-on): Add dirent.
47901         (Makefile.am): Move rules to modules/dirent.
47902         * doc/posix-headers/dirent.texi: Mention the new module.
47903
47904 2008-10-18  Bruno Haible  <bruno@clisp.org>
47905
47906         Avoid -Wunused-parameter warnings in public gnulib header files.
47907         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47908         macro.
47909         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47910
47911 2008-10-18  Bruno Haible  <bruno@clisp.org>
47912
47913         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47914         * doc/glibc-functions/error.texi: Mention the module 'error'.
47915         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47916         * doc/glibc-functions/getdomainname.texi: Mention the module
47917         'getdomainname'.
47918         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47919         * doc/glibc-functions/getpagesize.texi: Mention the module
47920         'getpagesize'.
47921         * doc/glibc-functions/getusershell.texi: Mention the module
47922         'getusershell'.
47923         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47924         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47925         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47926         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47927         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47928         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47929         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47930         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47931         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47932         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47933         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47934         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47935         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47936         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47937
47938 2008-10-17  Bruno Haible  <bruno@clisp.org>
47939
47940         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47941         HP-UX and IRIX, use -0.0L.
47942         * tests/test-ceill.c (minus_zero): Likewise.
47943         * tests/test-floorl.c (minus_zero): Likewise.
47944         * tests/test-frexpl.c (minus_zero): Likewise.
47945         * tests/test-isnan.c (minus_zerol): Likewise.
47946         * tests/test-isnanl.h (minus_zero): Likewise.
47947         * tests/test-ldexpl.c (minus_zero): Likewise.
47948         * tests/test-roundl.c (minus_zero): Likewise.
47949         * tests/test-signbit.c (minus_zerol): Likewise.
47950         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47951         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47952         * tests/test-truncl.c (minus_zero): Likewise.
47953         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47954         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47955         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47956         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47957
47958 2008-10-17  Bruno Haible  <bruno@clisp.org>
47959
47960         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47961         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47962         that it gets activated only for gcc >= 3.0.
47963         * lib/dirent.in.h: Likewise.
47964         * lib/errno.in.h: Likewise.
47965         * lib/fcntl.in.h: Likewise.
47966         * lib/float.in.h: Likewise.
47967         * lib/iconv.in.h: Likewise.
47968         * lib/inttypes.in.h: Likewise.
47969         * lib/locale.in.h: Likewise.
47970         * lib/math.in.h: Likewise.
47971         * lib/netdb.in.h: Likewise.
47972         * lib/netinet_in.in.h: Likewise.
47973         * lib/search.in.h: Likewise.
47974         * lib/signal.in.h: Likewise.
47975         * lib/spawn.in.h: Likewise.
47976         * lib/stdarg.in.h: Likewise.
47977         * lib/stdint.in.h: Likewise.
47978         * lib/stdio.in.h: Likewise.
47979         * lib/stdlib.in.h: Likewise.
47980         * lib/string.in.h: Likewise.
47981         * lib/strings.in.h: Likewise.
47982         * lib/sys_file.in.h: Likewise.
47983         * lib/sys_ioctl.in.h: Likewise.
47984         * lib/sys_select.in.h: Likewise.
47985         * lib/sys_socket.in.h: Likewise.
47986         * lib/sys_stat.in.h: Likewise.
47987         * lib/sys_time.in.h: Likewise.
47988         * lib/sysexits.in.h: Likewise.
47989         * lib/time.in.h: Likewise.
47990         * lib/unistd.in.h: Likewise.
47991         * lib/wchar.in.h: Likewise.
47992         * lib/wctype.in.h: Likewise.
47993         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47994
47995 2008-10-17  Jim Meyering  <meyering@redhat.com>
47996
47997         ignore-value: don't depend on inline module
47998         * modules/ignore-value (Depends-on): Remove 'inline'.
47999         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
48000         Suggestion from Bruno Haible.
48001
48002 2008-10-17  Bruno Haible  <bruno@clisp.org>
48003
48004         New implementation of condition variables for Win32.
48005         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
48006         (gl_linked_waitqueue_t): New type.
48007         (gl_cond_t): Use it.
48008         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
48009         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
48010         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
48011         (glthread_cond_init_func, glthread_cond_wait_func,
48012         glthread_cond_timedwait_func, glthread_cond_signal_func,
48013         glthread_cond_broadcast_func, glthread_cond_destroy_func):
48014         Reimplemented on the basis of gl_linked_waitqueue_t.
48015         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48016         gl_waitqueue_t.
48017         (gl_rwlock_t): Update.
48018         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48019
48020 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48021
48022         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48023         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48024
48025 2008-10-17  Jim Meyering  <meyering@redhat.com>
48026
48027         ignore-value: new module
48028         * modules/ignore-value: New file.
48029         * lib/ignore-value.h: New file.
48030         * MODULES.html.sh (Compiler warning management): New section,
48031         just for this module.  More to come.
48032
48033 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48034
48035         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48036         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48037         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48038
48039 2008-10-16  Jim Meyering  <meyering@redhat.com>
48040
48041         openat-die.c: avoid 'no previous prototype' warning
48042         * lib/openat-die.c: Include "openat.h".
48043         Reported by Reuben Thomas <rrt@sc3d.org>.
48044
48045 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48046
48047         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48048         * lib/netdb.in.h: Fix typo.
48049         Reported by Bruno Haible  <bruno@clisp.org>
48050
48051         * lib/netdb.in.h: Include sys/socket.h for platforms without
48052         netdb.h, to get structures like hostent on MinGW.
48053         * modules/netdb (Depends-on): Add sys_socket.
48054
48055 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48056
48057         * modules/netdb, modules/netdb-tests: New file.
48058         * m4/netdb_h.m4: New file.
48059         * lib/netdb.in.h: Add, currently just an empty file pending
48060         definitions.
48061         * tests/test-netdb.c: New file.
48062         * doc/posix-headers/netdb.texi: Mention that we replace it if
48063         needed.
48064         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48065         netdb.
48066
48067 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48068
48069         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48070         with code.
48071
48072 2008-10-13  Bruno Haible  <bruno@clisp.org>
48073
48074         * lib/glthread/cond.c (glthread_cond_wait_func,
48075         glthread_cond_timedwait_func): Add a comment.
48076
48077 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48078
48079         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48080         * tests/test-select.c: Likewise,
48081
48082 2008-10-13  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/glthread/cond.c (glthread_cond_wait_func,
48085         glthread_cond_timedwait_func): Fix variable name.
48086         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48087
48088 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48089
48090         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48091         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48092         struct sockaddr.sa_len.
48093         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48094
48095 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48096
48097         * build-aux/pmccabe2html: Add css and css_url parameters.
48098
48099 2008-10-12  Bruno Haible  <bruno@clisp.org>
48100
48101         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48102         calling aclx_get.
48103         Reported by Rainer Tammer <tammer@tammer.net>.
48104
48105 2008-10-12  Bruno Haible  <bruno@clisp.org>
48106
48107         Use msvcrt aware primitives for creation/termination of Win32 threads.
48108         * lib/glthread/thread.c: Include <process.h>.
48109         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48110         (wrapper_func): Update signature.
48111         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48112
48113 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48114             Bruno Haible  <bruno@clisp.org>
48115
48116         Provide a Win32 implementation of the 'cond' module.
48117         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48118         * lib/glthread/cond.c (glthread_cond_init_func,
48119         glthread_cond_wait_func, glthread_cond_timedwait_func,
48120         glthread_cond_signal_func, glthread_cond_broadcast_func,
48121         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48122         * modules/cond (Dependencies): Add gettimeofday.
48123
48124 2008-10-11  Bruno Haible  <bruno@clisp.org>
48125
48126         Make sleep work on older versions of mingw.
48127         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48128         only whether it exists.
48129         * doc/posix-functions/sleep.texi: Mention the problem with older
48130         versions of mingw.
48131
48132 2008-10-11  Bruno Haible  <bruno@clisp.org>
48133
48134         New module 'shutdown'.
48135         * modules/shutdown: New file.
48136         * lib/sys_socket.in.h (shutdown): New declaration.
48137         * lib/winsock.c (shutdown): New function.
48138         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48139         GNULIB_SHUTDOWN.
48140         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48141         * doc/posix-functions/shutdown.texi: Document the new module.
48142
48143 2008-10-11  Jim Meyering  <meyering@redhat.com>
48144
48145         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48146
48147 2008-10-11  Bruno Haible  <bruno@clisp.org>
48148
48149         New module 'fclose'.
48150         * modules/fclose: New file.
48151         * lib/stdio.in.h (fclose): New declaration.
48152         * lib/fclose.c: New file.
48153         * m4/fclose.m4: New file.
48154         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48155         REPLACE_FCLOSE.
48156         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48157         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48158         REPLACE_FCLOSE.
48159         * modules/close (Depends-on): fclose.
48160         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48161
48162 2008-10-11  Bruno Haible  <bruno@clisp.org>
48163
48164         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48165         set errno and don't call _close.
48166
48167 2008-10-10  Bruno Haible  <bruno@clisp.org>
48168
48169         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48170         ACL, not afterwards. Fixes test failure on Cygwin.
48171
48172 2008-10-09  Ben Pfaff  <blp@gnu.org>
48173
48174         * build-aux/announce-gen: Fix gnulib version related part of usage
48175         message.  Die with a useful error message if no tarballs are
48176         found.
48177
48178 2008-10-10  Jim Meyering  <meyering@redhat.com>
48179
48180         bootstrap: use git's --depth=N option only if it's supported
48181         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48182         recognize the --depth option.  Reported by Pádraig Brady.
48183
48184 2008-10-09  Bruno Haible  <bruno@clisp.org>
48185
48186         New module 'ioctl'.
48187         * modules/ioctl: New file.
48188         * lib/sys_socket.in.h (ioctl): Remove declaration.
48189         * lib/winsock.c: Include <sys/ioctl.h>.
48190         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48191         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48192         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48193         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48194         * doc/posix-functions/ioctl.texi: Mention the new module.
48195
48196 2008-10-09  Bruno Haible  <bruno@clisp.org>
48197
48198         New module 'sys_ioctl'.
48199         * lib/sys_ioctl.in.h: New file.
48200         * m4/sys_ioctl_h.m4: New file.
48201         * modules/sys_ioctl: New file.
48202         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48203
48204 2008-10-09  Bruno Haible  <bruno@clisp.org>
48205
48206         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48207         * lib/winsock.c: Include <stdarg.h>.
48208         (rpl_ioctl): Change to second argument 'int' and then varargs.
48209
48210 2008-10-09  Bruno Haible  <bruno@clisp.org>
48211
48212         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48213         when the sys_socket module is present and the system has <winsock2.h>.
48214
48215 2008-10-09  Bruno Haible  <bruno@clisp.org>
48216
48217         * doc/posix-functions/close.texi: Mention module 'close' instead of
48218         module 'sys_socket'.
48219
48220 2008-10-09  Bruno Haible  <bruno@clisp.org>
48221
48222         * doc/glibc-headers/sys_ioctl.texi: New file.
48223         * doc/gnulib.texi: Include it.
48224
48225 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48226             Bruno Haible  <bruno@clisp.org>
48227
48228         Combine the two replacements of 'close'.
48229         * lib/sys_socket.in.h (close): Define to a reminder to include
48230         <unistd.h>.
48231         (_gl_close_fd_maybe_socket): New declaration.
48232         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48233         * lib/winsock.c (close): Remove undefinition.
48234         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48235         needed for the gnulib module 'close'.
48236         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48237         define to an error symbol or to a warning, if suitable.
48238         * lib/close.c: Include <sys/socket.h>.
48239         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48240         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48241         UNISTD_H_HAVE_WINSOCK2_H.
48242         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48244         UNISTD_H_HAVE_WINSOCK2_H.
48245         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48246         (configure.ac): Set a module indicator.
48247         (Makefile.am): Substitute GNULIB_CLOSE.
48248         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48249         * modules/poll-tests (Depends-on): Add close.
48250         * modules/select-tests (Depends-on): Likewise.
48251
48252 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48253             Bruno Haible  <bruno@clisp.org>
48254
48255         New module 'close'.
48256         * modules/close: New file.
48257         * lib/unistd.in.h (close): Move declaration out of the
48258         FCHDIR_REPLACEMENT scope.
48259         (_gl_unregister_fd): New declaration.
48260         * lib/close.c: New file.
48261         * lib/fchdir.c (rpl_close): Remove function.
48262         * m4/close.m4: New file.
48263         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48264         close.
48265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48266         REPLACE_CLOSE.
48267         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48268         REPLACE_CLOSE.
48269         * modules/fchdir (Depends-on): Add close.
48270
48271 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48272             Bruno Haible  <bruno@clisp.org>
48273
48274         * lib/fcntl.in.h (open): Simplify conditionals.
48275         (_gl_register_fd): New declaration.
48276         * lib/fchdir.c (rpl_open): Remove function.
48277         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48278         also.
48279         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48281         open.
48282
48283 2008-10-09  Jim Meyering  <meyering@redhat.com>
48284
48285         GNUmakefile: use the more name-space-friendly "_version"
48286         * top/GNUmakefile (_dummy): Update.
48287         (_version): Rename from "version".
48288
48289 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48290             Bruno Haible  <bruno@clisp.org>
48291
48292         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48293         rpl_close.
48294         (_gl_register_fd): New function, extracted from rpl_open.
48295         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48296         (rpl_open, rpl_opendir): Use _gl_register_fd.
48297
48298 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48299
48300         Fix organization of 'open' replacement.
48301         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48302         (gl_FUNC_OPEN): Use it.
48303         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48304
48305 2008-10-08  Bruno Haible  <bruno@clisp.org>
48306
48307         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48308
48309 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48310
48311         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48312         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48313         listen).
48314
48315 2008-10-08  Eric Blake  <ebb9@byu.net>
48316
48317         GNUmakefile: add 'make version' target
48318         * top/GNUmakefile (_curr-ver): Split version update rules...
48319         (version): ...into a target.
48320
48321 2008-10-07  Bruno Haible  <bruno@clisp.org>
48322
48323         Use a more portable replacement expression for -0.0L.
48324         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48325         instead of -0.0L. Fix m4 quotation.
48326
48327         * tests/test-signbit.c: Include <float.h>.
48328         (minus_zero): New variable.
48329         (test_signbitl): Use minus_zero instead of -zero.
48330         * modules/signbit-tests (Depends-on): Add float.
48331
48332         * tests/test-ceill.c: Include <float.h>.
48333         (zero): Remove variable.
48334         (minus_zero): New variable.
48335         (main): Use minus_zero instead of -zero.
48336         * modules/ceill-tests (Depends-on): Add float.
48337
48338         * tests/test-floorl.c: Include <float.h>.
48339         (zero): Remove variable.
48340         (minus_zero): New variable.
48341         (main): Use minus_zero instead of -zero.
48342         * modules/floorl-tests (Depends-on): Add float.
48343
48344         * tests/test-roundl.c: Include <float.h>.
48345         (zero): Remove variable.
48346         (minus_zero): New variable.
48347         (main): Use minus_zero instead of -zero.
48348         * modules/roundl-tests (Depends-on): Add float.
48349
48350         * tests/test-truncl.c: Include <float.h>.
48351         (zero): Remove variable.
48352         (minus_zero): New variable.
48353         (main): Use minus_zero instead of -zero.
48354         * modules/truncl-tests (Depends-on): Add float.
48355
48356         * tests/test-frexpl.c (zero): Remove variable.
48357         (minus_zero): New variable.
48358         (main): Use minus_zero instead of -zero.
48359         * modules/frexpl-tests (Depends-on): Add float.
48360
48361         * tests/test-isnan.c (zerol): Remove variable.
48362         (minus_zerol): New variable.
48363         (test_long_double): Use minus_zerol instead of -zerol.
48364         * modules/isnan-tests (Depends-on): Add float.
48365
48366         * tests/test-isnanl.h (zero): Remove variable.
48367         (minus_zero): New variable.
48368         (main): Use minus_zero instead of -zero.
48369         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48370         * modules/isnanl-tests (Depends-on): Add float.
48371
48372         * tests/test-ldexpl.c (zero): Remove variable.
48373         (minus_zero): New variable.
48374         (main): Use minus_zero instead of -zero.
48375         * modules/ldexpl-tests (Depends-on): Add float.
48376
48377         * tests/test-snprintf-posix.h (zerol): Remove variable.
48378         (minus_zerol): New variable.
48379         (test_function): Use minus_zerol instead of -zerol.
48380         * modules/snprintf-posix-tests (Depends-on): Add float.
48381         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48382
48383         * tests/test-sprintf-posix.h (zerol): Remove variable.
48384         (minus_zerol): New variable.
48385         (test_function): Use minus_zerol instead of -zerol.
48386         * modules/sprintf-posix-tests (Depends-on): Add float.
48387         * modules/vsprintf-posix-tests (Depends-on): Add float.
48388
48389         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48390         (minus_zerol): New variable.
48391         (test_function): Use minus_zerol instead of -zerol.
48392         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48393
48394         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48395         (minus_zerol): New variable.
48396         (test_function): Use minus_zerol instead of -zerol.
48397         * modules/vasprintf-posix-tests (Depends-on): Add float.
48398
48399 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48400
48401         * MODULES.html.sh (Support for building documentation): Mention
48402         pmccabe2html.  Sort entries.
48403
48404         Add pmccabe2html module, from gnupdf.
48405         * build-aux/pmccabe.css: New file.
48406         * build-aux/pmccabe2html: New file.
48407         * m4/pmccabe2html.m4: New file.
48408         * modules/pmccabe2html: New file.
48409
48410 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48411
48412         flock: new module
48413         * MODULES.html.sh: Add to list of modules.
48414         * lib/flock.c: flock implementation for Windows and Unix systems
48415         which have fcntl.
48416         * doc/glibc-functions/flock.texi: Update documentation.
48417         * lib/sys_file.in.h: <sys/file.h> header file.
48418         * m4/flock.m4: M4 macros.
48419         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48420         * modules/flock: flock module.
48421         * modules/flock-tests: flock tests module.
48422         * modules/sys_file: sys/file.h module.
48423         * tests/test-flock.c: test suite for flock.
48424
48425 2008-10-06  Jim Meyering  <meyering@redhat.com>
48426
48427         bootstrap: check for LT_INIT more portably still ;-)
48428         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48429         Spotted by Bruno Haible.
48430
48431 2008-10-06  Eric Blake  <ebb9@byu.net>
48432
48433         test-signbit: avoid tripping Irix cc bug on -0.0L
48434         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48435         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48436         entire testsuite consistent and avoids an Irix 6.2 bug.
48437
48438 2008-10-05  Bruno Haible  <bruno@clisp.org>
48439             Jim Meyering  <jim@meyering.net>
48440
48441         Add an option for ignoring EPIPE during close_stdout.
48442         * lib/closeout.h: Include <stdbool.h>.
48443         (close_stdout_set_ignore_EPIPE): New declaration.
48444         * lib/closeout.c: Include <stdbool.h>.
48445         (ignore_EPIPE): New variable.
48446         (close_stdout_set_ignore_EPIPE): New function.
48447         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48448         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48449         failure.
48450         * modules/closeout (Depends-on): Add stdbool.
48451
48452 2008-10-05  Bruno Haible  <bruno@clisp.org>
48453
48454         * modules/accept: New file.
48455         * modules/bind: New file.
48456         * modules/connect: New file.
48457         * modules/getpeername: New file.
48458         * modules/getsockname: New file.
48459         * modules/getsockopt: New file.
48460         * modules/listen: New file.
48461         * modules/recv: New file.
48462         * modules/recvfrom: New file.
48463         * modules/send: New file.
48464         * modules/sendto: New file.
48465         * modules/setsockopt: New file.
48466         * modules/socket: New file.
48467         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48468         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48469         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48470         the particular module is requested. Add a link warning when the
48471         particular module is not requested.
48472         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48473         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48474         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48475         the particular module is requested.
48476         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48477         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48478         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48479         * modules/sys_socket (Depends-on): Add link-warning.
48480         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48481         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48482         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48483         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48484         GL_LINK_WARNING.
48485         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48486         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48487         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48488         * doc/posix-functions/getpeername.texi: Mention the new module
48489         'getpeername'.
48490         * doc/posix-functions/getsockname.texi: Mention the new module
48491         'getsockname'.
48492         * doc/posix-functions/getsockopt.texi: Mention the new module
48493         'getsockopt'.
48494         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48495         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48496         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48497         * doc/posix-functions/send.texi: Mention the new module 'send'.
48498         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48499         * doc/posix-functions/setsockopt.texi: Mention the new module
48500         'setsockopt'.
48501         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48502         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48503         listen, connect, accept.
48504         * modules/select-tests (Depends-on): Likewise.
48505
48506 2008-10-05  Bruno Haible  <bruno@clisp.org>
48507
48508         * lib/winsock.c (strerror): Remove unused #undef.
48509         (rpl_close): Remove unused local variable.
48510
48511         * modules/sys_socket (Depends-on); Add errno.
48512
48513 2008-10-05  Bruno Haible  <bruno@clisp.org>
48514
48515         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48516         (select): Add a link warning when the 'select' module is not used.
48517         * modules/sys_select (Depends-on): Add link-warning.
48518         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48519         Suggested by Paolo Bonzini.
48520
48521 2008-10-05  Jim Meyering  <meyering@redhat.com>
48522
48523         bootstrap: check for LT_INIT more portably
48524         * build-aux/bootstrap: Avoid using grep -E, since it's not
48525         portable enough.  Suggestion from Bruno Haible.
48526
48527 2008-10-05  Bruno Haible  <bruno@clisp.org>
48528
48529         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48530         as being fixed by gnulib.
48531
48532 2008-10-05  Bruno Haible  <bruno@clisp.org>
48533
48534         * modules/select-tests: New file, mostly copied from
48535         modules/sys_select-tests.
48536         * tests/test-select.c: New file, mostly copied from
48537         tests/test-sys_select.c.
48538         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48539         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48540         (Makefile.am): Remove test_sys_select_LDADD.
48541
48542         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48543         to an undefined symbol, for an error message.
48544         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48545         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48546         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48547         winsock-select.c here.
48548         * modules/sys_select (Files): Remove lib/winsock-select.c.
48549         (Depends-on): Remove alloca.
48550         (Makefile.am): Substitute GNULIB_SELECT.
48551         * modules/select: New file.
48552         * doc/posix-functions/select.texi: Update.
48553
48554 2008-10-05  Bruno Haible  <bruno@clisp.org>
48555
48556         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48557         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48558         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48559         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48560         getdtablesize.
48561         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48562         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48563
48564 2008-10-05  Bruno Haible  <bruno@clisp.org>
48565
48566         * modules/getdtablesize-tests: New file.
48567         * tests/test-getdtablesize.c: New file.
48568
48569         New module 'getdtablesize'.
48570         * lib/unistd.in.h (getdtablesize): New declaration.
48571         * lib/getdtablesize.c: New file.
48572         * m4/getdtablesize.m4: New file.
48573         * modules/getdtablesize: New file.
48574         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48575         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48576         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48577         HAVE_GETDTABLESIZE.
48578         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48579
48580 2008-10-05  Bruno Haible  <bruno@clisp.org>
48581
48582         * modules/sched (Makefile.am): Fix typo.
48583         Reported by Simon Josefsson.
48584
48585 2008-10-05  Jim Meyering  <meyering@redhat.com>
48586
48587         bootstrap: check for LT_INIT, too
48588         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48589         are deprecated.  Suggestion from Ralf Wildenhues.
48590
48591 2008-10-05  Bruno Haible  <bruno@clisp.org>
48592
48593         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48594         overriding them by ours.
48595         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48596
48597 2008-10-05  Jim Meyering  <meyering@redhat.com>
48598
48599         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48600         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48601         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48602
48603 2008-10-04  Bruno Haible  <bruno@clisp.org>
48604
48605         * modules/dup2 (License): Change to LGPLv2+.
48606         * modules/sleep (License): Likewise.
48607         * modules/perror (License): Likewise.
48608         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48609         Blake.
48610         * modules/signal (License): Likewise.
48611         * modules/sigprocmask (License): Likewise.
48612         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48613         Meyering.
48614
48615 2008-10-04  Bruno Haible  <bruno@clisp.org>
48616
48617         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48618         Reported by Rainer Tammer <tammer@tammer.net>.
48619
48620 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48621             Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48624         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48625         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48626
48627 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48628
48629         filevercmp: new module
48630         * lib/filevercmp.h: New function filevercmp comparing version strings.
48631         * lib/filevercmp.c: Implementation of filevercmp function.
48632         * modules/filevercmp: Module metadata.
48633         * tests/test-filevercmp.c: Unit test for new module.
48634         * modules/filevercmp-tests: Unit test metadata.
48635         * MODULES.html.sh: Add filevercmp module.
48636
48637 2008-10-03  Bruno Haible  <bruno@clisp.org>
48638
48639         * lib/c-ctype.h: Add comment.
48640         Reported by Jim Meyering.
48641
48642 2008-10-02  Bruno Haible  <bruno@clisp.org>
48643
48644         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48645
48646 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48647
48648         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48649         name of bootstrap.conf accordingly.
48650
48651 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48652
48653         * build-aux/bootstrap: Install git-merge-changelog configuration
48654         items into .gitconfig if needed.
48655
48656 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48657
48658         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48659         git repository, and initialize/update it accordingly.
48660
48661 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48662
48663         * modules/fsync-tests: New file.
48664         * tests/test-fsync.c: New file.
48665
48666         New module 'fsync'.
48667         * lib/fsync.c: New file.
48668         * m4/fsync.m4: New file.
48669         * modules/fsync: New file.
48670         * lib/unistd.in.h (fsync): New declaration.
48671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48672         GNULIB_FSYNC and HAVE_FSYNC.
48673         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48674         * MODULES.html.sh (posix_functions): Add fsync.
48675         * doc/posix-functions/fsync.texi: Mention the new module.
48676
48677 2008-10-02  Jim Meyering  <meyering@redhat.com>
48678
48679         fts.c: sync with similar code from coreutils' remove.c
48680         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48681         Guard also with "#if defined __linux__", since for now at least,
48682         this code is Linux-kernel-specific.
48683
48684 2008-10-02  Jim Meyering  <meyering@redhat.com>
48685
48686         fts: bug fixes
48687         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48688         Include <sys/vfs.h>, not <sys/statfs.h>.
48689
48690         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48691         Include <sys/vfs.h>, not <sys/statfs.h>.
48692
48693 2008-10-01  Bruno Haible  <bruno@clisp.org>
48694
48695         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48696         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48697         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48698         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48699         * doc/posix-functions/posix_spawnp.texi: Likewise.
48700         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48701         whether posix_spawn actually works.
48702         * m4/pipe.m4 (gl_PIPE): Likewise.
48703         * modules/execute (Files): Add m4/posix_spawn.m4.
48704         * modules/pipe (Files): Add m4/posix_spawn.m4.
48705         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48706
48707 2008-10-01  Jim Meyering  <meyering@redhat.com>
48708
48709         remove trailing spaces
48710         * NEWS: Likewise.
48711         * lib/poll.c (poll): Likewise.
48712         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48713         * lib/winsock.c (rpl_close): Likewise.
48714         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48715         * modules/yield: Likewise.
48716         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48717         * tests/test-sys_select.c (connect_to_socket): Likewise.
48718
48719         fts.c: adjust a new interface to be more generally useful
48720         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48721         (fts_build): Adjust caller.
48722
48723 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48724
48725         * modules/cond-tests: New file.
48726         * tests/test-cond.c: New file.
48727
48728 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48729             Bruno Haible  <bruno@clisp.org>
48730
48731         * modules/cond (Dependencies): Add errno, time.
48732         * lib/glthread/cond.h: Include <time.h>.
48733         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48734         across platforms.
48735
48736 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48737             Bruno Haible  <bruno@clisp.org>
48738
48739         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48740
48741 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48742             Bruno Haible  <bruno@clisp.org>
48743
48744         * modules/tls-tests (Depends-on): Add thread, yield.
48745         (configure.ac): Remove all checks.
48746         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48747         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48748         gl_thread_self): Remove definitions. Include glthread/thread.h and
48749         glthread/yield.h instead.
48750         (test_tls): Pass an additional NULL argument to gl_thread_join.
48751
48752 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48753             Bruno Haible  <bruno@clisp.org>
48754
48755         * modules/lock-tests (Depends-on): Add thread, yield.
48756         (configure.ac): Remove all checks.
48757         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48758         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48759         gl_thread_self): Remove definitions. Include glthread/thread.h and
48760         glthread/yield.h instead.
48761         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48762         additional NULL argument to gl_thread_join.
48763
48764 2008-09-30  Bruno Haible  <bruno@clisp.org>
48765
48766         Fix the Win32 implementation of the 'thread' module.
48767         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48768         pointer type.
48769         (gl_thread_self): Invoke gl_thread_self_func.
48770         (gl_thread_self_func): New declaration.
48771         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48772         (do_init_self_key, init_self_key): New functions.
48773         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48774         Remove some fields.
48775         (running_threads, running_lock): Remove variables.
48776         (get_current_thread_handle): New function.
48777         (gl_thread_self_func, wrapper_func, glthread_create_func,
48778         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48779         simplified.
48780
48781 2008-09-30  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48784         files.
48785
48786 2008-09-30  Jim Meyering  <meyering@redhat.com>
48787
48788         fts.m4: correct the test for statfs.f_type
48789         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48790         when checking for statfs.f_type.
48791
48792 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48793
48794         tests: avoid some compiler warnings
48795         * tests/test-memchr.c (main): Pass NULL indirectly.
48796         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48797
48798 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48799
48800         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48801         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48802         exactly specified dayshifts.
48803         (dayshift): New rule.
48804         (rel): Add dayshift.
48805         (relative_time_table) [tomorrow, yesterday, today, now]:
48806         Use tDAY_SHIFT in place of tDAY_UNIT.
48807         * tests/test-getdate.c: Add tests for now-disallowed countable
48808         dayshifts, e.g., "4 yesterday ago".
48809
48810 2008-09-29  Bruno Haible  <bruno@clisp.org>
48811
48812         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48813         * tests/test-posix_spawn1.in.sh: Renamed from
48814         tests/test-posix_spawn.in.sh.
48815         * tests/test-posix_spawn2.c: New file.
48816         * tests/test-posix_spawn2.in.sh: New file.
48817         * modules/posix_spawnp-tests (Files): Update.
48818         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48819
48820 2008-09-29  Bruno Haible  <bruno@clisp.org>
48821
48822         Propagate effects of putenv/setenv/unsetenv to child processes.
48823         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48824         * lib/pipe.c (create_pipe): Likewise.
48825
48826 2008-09-29  Bruno Haible  <bruno@clisp.org>
48827
48828         Enable use of shell scripts as executables in mingw.
48829         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48830         run the program as a shell script.
48831         * lib/pipe.c (create_pipe): Likewise.
48832         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48833         resulting array.
48834
48835 2008-09-29  Eric Blake  <ebb9@byu.net>
48836
48837         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48838
48839 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48840
48841         * doc/posix-functions/accept.texi: Update mingw problems.
48842         * doc/posix-functions/bind.texi: Update mingw problems.
48843         * doc/posix-functions/close.texi: Update mingw problems.
48844         * doc/posix-functions/connect.texi: Update mingw problems.
48845         * doc/posix-functions/getpeername.texi: Update mingw problems.
48846         * doc/posix-functions/getsockname.texi: Update mingw problems.
48847         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48848         * doc/posix-functions/ioctl.texi: Update mingw problems.
48849         * doc/posix-functions/listen.texi: Update mingw problems.
48850         * doc/posix-functions/recv.texi: Update mingw problems.
48851         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48852         * doc/posix-functions/select.texi: Update mingw problems.
48853         * doc/posix-functions/send.texi: Update mingw problems.
48854         * doc/posix-functions/sendto.texi: Update mingw problems.
48855         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48856         * doc/posix-functions/socket.texi: Update mingw problems.
48857
48858 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48859             Bruno Haible  <bruno@clisp.org>
48860
48861         * lib/sys_select.in.h: Include sys/time.h.
48862         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48863         * modules/sys_select: Depend on sys_time.
48864         * tests/test-sys_select.c: Test that sys/select.h defines struct
48865         timeval fully.
48866
48867 2008-09-29  Bruno Haible  <bruno@clisp.org>
48868
48869         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48870         * lib/sys_select.in.h: Likewise.
48871
48872 2008-09-29  Bruno Haible  <bruno@clisp.org>
48873
48874         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48875
48876 2008-09-29  Bruno Haible  <bruno@clisp.org>
48877
48878         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48879         Set LIBSOCKET instead of augmenting LIBS.
48880         * modules/sockets (Link): New section.
48881         * modules/sockets-tests (test_sockets_LDADD): New variable.
48882         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48883         * modules/poll-tests (test_poll_LDADD): New variable.
48884         * NEWS: Document the change.
48885
48886 2008-09-29  Bruno Haible  <bruno@clisp.org>
48887
48888         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48889         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48890         ARPA_INET_H directly.
48891         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48892
48893 2008-09-28  Bruno Haible  <bruno@clisp.org>
48894
48895         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48896         from gl_HEADER_SYS_SOCKET.
48897         (gl_HEADER_SYS_SOCKET): Invoke it.
48898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48899
48900 2008-09-28  Bruno Haible  <bruno@clisp.org>
48901
48902         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48903         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48904         Needed on OSF/1 4.0.
48905
48906 2008-09-28  Bruno Haible  <bruno@clisp.org>
48907
48908         Override open more carefully.
48909         * lib/open.c (orig_open): New function.
48910         (rpl_open): Use orig_open instead of open.
48911         * lib/fcntl.in.h: Add special invocation convention.
48912         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48913         (gl_FUNC_OPEN): Invoke it.
48914
48915         Override freopen more carefully.
48916         * lib/freopen.c (orig_freopen): New function.
48917         (rpl_freopen): Use orig_freopen instead of freopen.
48918         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48919         (gl_FUNC_FREOPEN): Invoke it.
48920
48921         Override fopen more carefully.
48922         * lib/fopen.c (orig_fopen): New function.
48923         (rpl_fopen): Use orig_fopen instead of fopen.
48924         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48925         (gl_FUNC_FOPEN): Invoke it.
48926         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48927
48928 2008-09-28  Bruno Haible  <bruno@clisp.org>
48929
48930         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48931         SIGPIPE.
48932
48933 2008-09-28  Bruno Haible  <bruno@clisp.org>
48934
48935         * tests/test-sigaction.c (handler, main): Disable the check whether
48936         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48937         glibc systems with LinuxThreads.
48938
48939 2008-09-28  Bruno Haible  <bruno@clisp.org>
48940
48941         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48942
48943         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48944         with AIX xlc.
48945         * lib/fcntl.in.h (open): Likewise.
48946         Reported by Rainer Tammer <tammer@tammer.net>.
48947
48948 2008-09-28  Bruno Haible  <bruno@clisp.org>
48949
48950         * modules/posix_spawnp-tests: New file.
48951         * tests/test-posix_spawn.c: New file.
48952         * tests/test-posix_spawn.in.sh: New file.
48953
48954         New module 'posix_spawnp'.
48955         * modules/posix_spawnp: New file.
48956         * lib/spawnp.c: New file, from GNU libc with modifications.
48957         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48958
48959         New module 'posix_spawn'.
48960         * modules/posix_spawn: New file.
48961         * lib/spawn.c: New file, from GNU libc with modifications.
48962         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48963
48964         New module 'posix_spawnattr_destroy'.
48965         * modules/posix_spawnattr_destroy: New file.
48966         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48967         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48968         module.
48969
48970         New module 'posix_spawnattr_setsigmask'.
48971         * modules/posix_spawnattr_setsigmask: New file.
48972         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48973         modifications.
48974         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48975         new module.
48976
48977         New module 'posix_spawnattr_getsigmask'.
48978         * modules/posix_spawnattr_getsigmask: New file.
48979         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48980         modifications.
48981         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48982         new module.
48983
48984         New module 'posix_spawnattr_setsigdefault'.
48985         * modules/posix_spawnattr_setsigdefault: New file.
48986         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48987         modifications.
48988         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48989         new module.
48990
48991         New module 'posix_spawnattr_getsigdefault'.
48992         * modules/posix_spawnattr_getsigdefault: New file.
48993         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48994         modifications.
48995         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48996         new module.
48997
48998         New module 'posix_spawnattr_setschedpolicy'.
48999         * modules/posix_spawnattr_setschedpolicy: New file.
49000         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
49001         modifications.
49002         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
49003         new module.
49004
49005         New module 'posix_spawnattr_getschedpolicy'.
49006         * modules/posix_spawnattr_getschedpolicy: New file.
49007         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
49008         modifications.
49009         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
49010         new module.
49011
49012         New module 'posix_spawnattr_setschedparam'.
49013         * modules/posix_spawnattr_setschedparam: New file.
49014         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
49015         modifications.
49016         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49017         new module.
49018
49019         New module 'posix_spawnattr_getschedparam'.
49020         * modules/posix_spawnattr_getschedparam: New file.
49021         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49022         modifications.
49023         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49024         new module.
49025
49026         New module 'posix_spawnattr_setpgroup'.
49027         * modules/posix_spawnattr_setpgroup: New file.
49028         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49029         modifications.
49030         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49031         module.
49032
49033         New module 'posix_spawnattr_getpgroup'.
49034         * modules/posix_spawnattr_getpgroup: New file.
49035         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49036         modifications.
49037         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49038         module.
49039
49040         New module 'posix_spawnattr_setflags'.
49041         * modules/posix_spawnattr_setflags: New file.
49042         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49043         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49044         module.
49045
49046         New module 'posix_spawnattr_getflags'.
49047         * modules/posix_spawnattr_getflags: New file.
49048         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49049         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49050         module.
49051
49052         New module 'posix_spawnattr_init'.
49053         * modules/posix_spawnattr_init: New file.
49054         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49055         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49056         module.
49057
49058         New module 'posix_spawn_file_actions_destroy'.
49059         * modules/posix_spawn_file_actions_destroy: New file.
49060         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49061         modifications.
49062         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49063         the new module.
49064
49065         New module 'posix_spawn_file_actions_addopen'.
49066         * modules/posix_spawn_file_actions_addopen: New file.
49067         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49068         modifications.
49069         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49070         the new module.
49071
49072         New module 'posix_spawn_file_actions_adddup2'.
49073         * modules/posix_spawn_file_actions_adddup2: New file.
49074         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49075         modifications.
49076         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49077         the new module.
49078
49079         New module 'posix_spawn_file_actions_addclose'.
49080         * modules/posix_spawn_file_actions_addclose: New file.
49081         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49082         modifications.
49083         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49084         the new module.
49085
49086         New module 'posix_spawn_file_actions_init'.
49087         * modules/posix_spawn_file_actions_init: New file.
49088         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49089         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49090         new module.
49091
49092         New module 'posix_spawn-internal'.
49093         * modules/posix_spawn-internal: New file.
49094         * lib/spawn_int.h: New file, from GNU libc with modifications.
49095         * lib/spawni.c: New file, from GNU libc with modifications.
49096         * m4/posix_spawn.m4: New file.
49097
49098         New module 'spawn'.
49099         * modules/spawn: New file.
49100         * lib/spawn.in.h: New file, from GNU libc with modifications.
49101         * m4/spawn_h.m4: New file.
49102         * doc/posix-headers/spawn.texi: Mention the new module.
49103
49104 2008-09-28  Bruno Haible  <bruno@clisp.org>
49105
49106         * modules/sched-tests: New file.
49107         * tests/test-sched.c: New file.
49108
49109         New module 'sched'.
49110         * modules/sched: New file.
49111         * lib/sched.in.h: New file.
49112         * m4/sched_h.m4: New file.
49113         * doc/posix-headers/sched.texi: Mention the new module.
49114
49115 2008-09-27  Eric Blake  <ebb9@byu.net>
49116
49117         Fix previous patch, and tweak references to $0.
49118         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49119         (func_version, func_gnulib_dir): Don't call this program
49120         gnulib-tool.
49121         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49122         with using $0 in function.
49123         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49124         (func_fatal_error): Reuse the name the user invoked us with.
49125
49126 2008-09-27  Bruno Haible  <bruno@clisp.org>
49127
49128         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49129         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49130         (gl_ICONV_H): Not here.
49131         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49132         instead of assigning ICONV_H directly.
49133
49134         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49136         WCHAR_H directly.
49137
49138 2008-09-27  Bruno Haible  <bruno@clisp.org>
49139
49140         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49141         * modules/arpa_inet (Depends-on): Add link-warning.
49142         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49143         * modules/unistd (Makefile.am): Likewise.
49144
49145 2008-09-26  Bruno Haible  <bruno@clisp.org>
49146
49147         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49148         variables.
49149         (func_version): Essentially copied from gnulib-tool.
49150         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49151         func_readlink): Copied from gnulib-tool.
49152
49153 2008-09-26  Bruno Haible  <bruno@clisp.org>
49154
49155         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49156         invoking git-version-gen.
49157
49158 2008-09-26  Bruno Haible  <bruno@clisp.org>
49159
49160         * posix-modules: Update to directory names changed on 2008-01-19.
49161         Remove commas in output before splitting into words. No more need to
49162         avoid 'ftruncate' since 2007-02-19.
49163
49164 2008-09-26  Bruno Haible  <bruno@clisp.org>
49165
49166         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49167
49168 2008-09-26  Bruno Haible  <bruno@clisp.org>
49169
49170         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49171         * modules/fwriteerror (Depends-on): Add errno.
49172
49173 2008-09-26  Bruno Haible  <bruno@clisp.org>
49174
49175         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49176         * tests/test-vc-list-files-cvs.sh: Likewise.
49177
49178 2008-09-26  Bruno Haible  <bruno@clisp.org>
49179
49180         * doc/posix-headers/sys_resource.texi: Reorder items.
49181
49182 2008-09-26  Jim Meyering  <meyering@redhat.com>
49183
49184         fts: tweak inode comparison function
49185         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49186         inode numbers, as documented.
49187
49188         fts: sort dirent entries on inode number before traversing
49189         This avoids a quadratic, seek-related performance penalty when
49190         operating on a directory containing many entries (measurable at 10k;
49191         3.5 hours at 2 million entries with a cold cache) on certain types
49192         of file systems, including ext3 and ext4, but not tmpfs.
49193         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49194         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49195         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49196         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49197         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49198         (fts_build): Set the stat.st_ino member from D_INO.
49199         If it is likely to be useful, sort dirent entries on inode number.
49200
49201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49202         and the struct statfs.f_type member.
49203         * modules/fts (Depends-on): Add d-ino.
49204
49205 2008-09-26  Bruno Haible  <bruno@clisp.org>
49206
49207         * modules/sigpipe-die (Depends-on): Add sigpipe.
49208
49209         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49210         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49211         and GNULIB_STDIO_H_SIGPIPE are set.
49212         * lib/stdio-write.c: New file.
49213         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49214         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49215         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49216         REPLACE_STDIO_WRITE_FUNCS.
49217         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49218         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49219         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49220         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49221         * modules/stdio (Files): Add lib/stdio-write.c.
49222         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49223         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49224         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49225         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49226         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49227         REPLACE_FPRINTF_POSIX.
49228         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49229         REPLACE_PRINTF_POSIX.
49230         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49231         REPLACE_VFPRINTF_POSIX.
49232         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49233         REPLACE_VPRINTF_POSIX.
49234         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49235         SIGPIPE issue.
49236         * doc/posix-functions/fputc.texi: Likewise.
49237         * doc/posix-functions/fputs.texi: Likewise.
49238         * doc/posix-functions/fwrite.texi: Likewise.
49239         * doc/posix-functions/printf.texi: Likewise.
49240         * doc/posix-functions/putc.texi: Likewise.
49241         * doc/posix-functions/putchar.texi: Likewise.
49242         * doc/posix-functions/puts.texi: Likewise.
49243         * doc/posix-functions/vfprintf.texi: Likewise.
49244         * doc/posix-functions/vprintf.texi: Likewise.
49245
49246         * modules/safe-write (Depends-on): Add write.
49247
49248         * modules/sigpipe-tests: New file.
49249         * tests/test-sigpipe.c: New file.
49250         * tests/test-sigpipe.sh: New file.
49251
49252         * modules/write: New file.
49253         * lib/unistd.in.h: Include <sys/types.h>.
49254         (write): New declaration.
49255         * lib/write.c: New file.
49256         * m4/write.m4: New file.
49257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49258         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49259         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49260         GNULIB_WRITE, REPLACE_WRITE.
49261         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49262         and the SIGPIPE issue.
49263
49264         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49265         (raise): New declaration.
49266         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49267         (ext_signal): New function.
49268         (rpl_raise): New function.
49269         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49270         GNULIB_SIGNAL_H_SIGPIPE.
49271         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49272         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49273
49274         * modules/sigpipe: New file.
49275         * m4/sigpipe.m4: New file.
49276
49277 2008-09-25  Derek Price  <derek@ximbiot.com>
49278             Bruno Haible  <bruno@clisp.org>
49279
49280         * gnulib-tool (func_import): Report all license incompatibilities, not
49281         just the first one.
49282
49283 2008-09-25  Bruno Haible  <bruno@clisp.org>
49284
49285         * gnulib-tool (func_import): When computing the edits, consider not
49286         only the Makefile.ams that exist but also those that will be generated.
49287
49288 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49289
49290         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49291         fixes gnulib-tool --test warning about duplicate dependency.
49292
49293 2008-09-25  Bruno Haible  <bruno@clisp.org>
49294
49295         * gnulib-tool: Don't ask the user to perform edits in the generated
49296         Makefile.ams.
49297         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49298         apply to the Makefile.am being generated.
49299         (func_emit_tests_Makefile_am): Execute edits that apply to the
49300         Makefile.am being generated.
49301         (func_import): Setup list of Makefile.am edits before emitting the
49302         Makefile.ams, not at the end.
49303         (func_create_testdir): Update.
49304         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49305
49306 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49307
49308         * gnulib-tool (func_import): Store the --tests-base option in the
49309         comment in gnulib-cache.m4.
49310
49311 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49312
49313         * NEWS: Document increased portability that sys_select now provides.
49314
49315         * lib/sys_select.in.h: Install select wrapper.
49316         * lib/sys_socket.in.h: Use more descriptive name when there is no
49317         select wrapper.
49318         * lib/winsock-select.c: New.
49319         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49320         Require gl_HEADER_SYS_SOCKET.
49321         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49322         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49323         * tests/test-sys_select.c: Add functional tests.
49324
49325 2008-09-24  Eric Blake  <ebb9@byu.net>
49326
49327         open, fopen: close fd leak in last patch
49328         * lib/open.c (rpl_open): Close fd before returning error.
49329         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49330         * doc/posix-functions/open.texi (open): Document that Irix also
49331         has the bug.
49332         * doc/posix-functions/fopen.texi (fopen): Likewise.
49333         Reported by Paolo Bonzini.
49334
49335 2008-09-24  Bruno Haible  <bruno@clisp.org>
49336
49337         Ensure that a filename ending in a slash cannot be used to access a
49338         non-directory.
49339         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49340         to check whether it's really a directory.
49341         * lib/fopen.c: Include fcntl.h, unistd.h.
49342         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49343         and fdopen().
49344         * modules/fopen (Depends-on): Add unistd.
49345         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49346         * tests/test-fopen.c (main): Likewise.
49347         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49348         * doc/posix-functions/fopen.texi: Likewise.
49349         Reported by Eric Blake.
49350
49351 2008-09-23  Eric Blake  <ebb9@byu.net>
49352
49353         c-stack: avoid compiler optimizations when provoking overflow
49354         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49355         recursion harder to optimize, to ensure a stack overflow occurs.
49356         * tests/test-c-stack.c (recurse): Likewise.
49357         Borrowed from libsigsegv.
49358
49359         c-stack: work around Irix sigaltstack bug
49360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49361         whether sigaltstack uses wrong end of stack_t (copied in part from
49362         libsigsegv).
49363         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49364         Irix bug, without requiring an over-allocation.
49365         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49366         bug.
49367
49368         fopen: document mingw bug on directories
49369         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49370         not allowing a stream visiting a directory, even though reading
49371         from such a stream is not portable.
49372
49373 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49374
49375         * lib/poll.c: Rewrite.
49376         * modules/poll: Depend on alloca.
49377
49378 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49379
49380         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49381         instead define prototypes for a full set of wrappers.  Ensure
49382         that Cygwin does not use the compatibility code, which is only
49383         for MinGW.
49384         * lib/winsock.c: New.
49385         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49386         * modules/sys_socket: Add lib/winsock.c.
49387
49388         * modules/poll-tests: Add errno and perror.
49389         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49390
49391 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49392
49393         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49394
49395 2008-09-23  Bruno Haible  <bruno@clisp.org>
49396
49397         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49398         * doc/glibc-functions/*: Likewise.
49399
49400 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49401
49402         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49403         success.
49404
49405 2008-09-22  Eric Blake  <ebb9@byu.net>
49406             Bruno Haible  <bruno@clisp.org>
49407
49408         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49409         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49410         supply %A but mishandle pseudo-NaN.
49411         Reported by Simon Josefsson.
49412
49413 2008-09-21  Bruno Haible  <bruno@clisp.org>
49414
49415         * tests/test-lock.c (main): Tweak skip message.
49416         * tests/test-tls.c (main): Likewise.
49417
49418 2008-09-21  Bruno Haible  <bruno@clisp.org>
49419
49420         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49421         whether 'struct sigaction' has sa_sigaction here...
49422         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49423         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49424
49425 2008-09-21  Bruno Haible  <bruno@clisp.org>
49426
49427         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49428         section.
49429         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49430         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49431         the new section.
49432         (Support for obsolete systems lacking POSIX:2001): New section.
49433         (String handling <string.h>): Move strdup to the new section.
49434         Suggested by Simon Josefsson and Paolo Bonzini.
49435
49436 2008-09-21  Bruno Haible  <bruno@clisp.org>
49437
49438         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49439         exponents in %e and %g results on 'long double'. Needed for mingw's
49440         improved *printf functions.
49441         * tests/test-vasprintf-posix.c (test_function): Likewise.
49442         * tests/test-snprintf-posix.h (test_function): Likewise.
49443         * tests/test-sprintf-posix.h (test_function): Likewise.
49444         Reported by Eric Blake.
49445
49446 2008-09-21  Bruno Haible  <bruno@clisp.org>
49447
49448         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49449         * tests/test-sprintf-posix.h (test_function): Likewise.
49450
49451 2008-09-21  Bruno Haible  <bruno@clisp.org>
49452
49453         * modules/getpass (Depends-on): Add strdup-posix.
49454
49455         New module 'strdup-posix'.
49456         * modules/strdup-posix: New file.
49457         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49458         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49460         REPLACE_STRDUP.
49461         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49462         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49464         strdup-posix.
49465
49466         * modules/strdup (Depends-on): Remove malloc-posix.
49467
49468 2008-09-20  Bruno Haible  <bruno@clisp.org>
49469
49470         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49471         Wildenhues.
49472
49473 2008-09-20  Bruno Haible  <bruno@clisp.org>
49474
49475         Ensure that wint_t gets defined on IRIX 5.3.
49476         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49477         * lib/wctype.in.h (wint_t): Likewise.
49478         (__wctype_wint_t): Remove type.
49479         (isw*): Use wint_t instead of __wctype_wint_t.
49480         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49481         * modules/wchar (Files): Add m4/wint_t.m4.
49482         (Makefile.am): Substitute HAVE_WINT_T.
49483         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49484         * tests/test-wctype.c: Check that wint_t is defined.
49485         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49486         * doc/posix-headers/wctype.texi: Likewise.
49487         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49488
49489 2008-09-18  Bruno Haible  <bruno@clisp.org>
49490
49491         * gnulib-tool (func_exit): Update comment.
49492
49493 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49494
49495         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49496         assumes strdup exists and does not depend on strdup to return
49497         ENOMEM on out of memory conditions.
49498
49499 2008-09-18  Bruno Haible  <bruno@clisp.org>
49500
49501         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49502         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49503         digits for the exponent.
49504
49505 2008-09-18  Jim Meyering  <meyering@redhat.com>
49506             Bruno Haible  <bruno@clisp.org>
49507
49508         * lib/vasnprintf.c (decimal_point_char): Define also if
49509         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49510
49511 2008-09-16  Bruno Haible  <bruno@clisp.org>
49512         and Eric Blake  <ebb9@byu.net>
49513
49514         vasnprintf: support Irix 5.3
49515         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49516         that mishandle long double infinity.
49517         Reported by Tom G. Christensen.
49518
49519 2008-09-16  Bruno Haible  <bruno@clisp.org>
49520
49521         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49522         Solaris 9.
49523         * doc/glibc-functions/alphasort.texi: Likewise.
49524         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49525
49526 2008-09-16  Jim Meyering  <meyering@redhat.com>
49527
49528         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49529         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49530         a umask modification leak out of a subshell.  Otherwise, the
49531         opensolaris /bin/sh would be accepted and thus cause unwarranted
49532         failures in the coreutils test suite.
49533
49534 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49535
49536         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49537         to succeed.
49538
49539 2008-09-16  Jim Meyering  <meyering@redhat.com>
49540
49541         avoid spurious test failure when library is built without ACL support
49542         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49543         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49544         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49545         * tests/test-copy-acl.sh: Likewise.
49546
49547 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49548
49549         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49550         based on character occurrence counts.
49551
49552 2008-09-15  Eric Blake  <ebb9@byu.net>
49553
49554         tests: avoid some compiler warnings
49555         * tests/test-memchr.c (main): Pass NULL indirectly.
49556         * tests/test-closein.c (main): Avoid unused variable.
49557
49558 2008-09-15  Bruno Haible  <bruno@clisp.org>
49559
49560         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49561         are missing on OpenBSD 4.0 individually.
49562         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49563
49564 2008-09-15  Bruno Haible  <bruno@clisp.org>
49565
49566         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49567         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49568         * doc/posix-functions/perror.texi: Likewise.
49569         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49570         is missing.
49571         Reported by Eric Blake.
49572
49573         * lib/errno.in.h: Use replacement values >= 2000.
49574         Reported by Eric Blake.
49575
49576 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49577
49578         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49579         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49580         limit.
49581         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49582         compareseq was aborted.
49583
49584 2008-09-14  Bruno Haible  <bruno@clisp.org>
49585
49586         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49587         yvec_edit_count.
49588         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49589         (fstrcmp_bounded): Simplify result computation accordingly.
49590
49591 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49592
49593         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49594         (fstrcmp): Define in terms of fstrcmp_bounded.
49595         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49596         lower_bound argument.
49597         Return quickly if the result is certainly < lower_bound.
49598         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49599
49600 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49601
49602         * lib/diffseq.h (EARLY_ABORT): New macro.
49603         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49604         evaluates to true.
49605
49606 2008-09-14  Bruno Haible  <bruno@clisp.org>
49607
49608         * modules/perror-tests: New file.
49609         * tests/test-perror.sh: New file.
49610         * tests/test-perror.c: New file.
49611
49612         New module 'perror'.
49613         * lib/stdio.in.h (perror): New declaration.
49614         * lib/perror.c: New file.
49615         * m4/perror.m4: New file.
49616         * modules/perror: New file.
49617         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49618         * doc/posix-functions/perror.texi: Mention the perror module.
49619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49620         REPLACE_PERROR.
49621         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49622         REPLACE_PERROR.
49623
49624 2008-09-14  Bruno Haible  <bruno@clisp.org>
49625
49626         * modules/stdio (Makefile.am): Reorder to match the order in
49627         lib/stdio.in.h.
49628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49629
49630 2008-09-13  Bruno Haible  <bruno@clisp.org>
49631
49632         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49633
49634 2008-09-13  Bruno Haible  <bruno@clisp.org>
49635
49636         Extend strerror to cover the added errno values.
49637         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49638         (rpl_strerror): Provide error messages for the added errno values and
49639         for the WSA* values.
49640         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49641         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49642         strerror.
49643         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49644         * modules/strerror (Depends-on): Add errno.
49645         * doc/posix-functions/strerror.texi: Document the change.
49646         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49647         and EOVERFLOW.
49648
49649 2008-09-13  Bruno Haible  <bruno@clisp.org>
49650
49651         * modules/EOVERFLOW: Remove file.
49652         * m4/eoverflow.m4: Remove file.
49653         * modules/EOVERFLOW-tests: Remove file.
49654         * tests/test-EOVERFLOW.c: Remove file.
49655         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49656         * modules/ftell (Depends-on): Likewise.
49657         * modules/getdelim (Depends-on): Likewise.
49658         * modules/getugroups (Depends-on): Likewise.
49659         * modules/poll (Depends-on): Likewise.
49660         * modules/snprintf (Depends-on): Likewise.
49661         * modules/sprintf-posix (Depends-on): Likewise.
49662         * modules/vasnprintf (Depends-on): Likewise.
49663         * modules/vasprintf (Depends-on): Likewise.
49664         * modules/vfprintf-posix (Depends-on): Likewise.
49665         * modules/vsnprintf (Depends-on): Likewise.
49666         * modules/vsprintf-posix (Depends-on): Likewise.
49667         * modules/xvasprintf (Depends-on): Likewise.
49668         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49669         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49670         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49671         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49672         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49673         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49674         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49675         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49676         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49677         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49678         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49679         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49680         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49681         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49682         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49683         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49684         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49685         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49686         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49687         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49688         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49689         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49690         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49691         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49692         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49693         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49694         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49695         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49696         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49697         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49698         * MODULES.html.sh: Remove EOVERFLOW.
49699         * NEWS: Mention the change.
49700
49701 2008-09-13  Bruno Haible  <bruno@clisp.org>
49702
49703         * modules/errno-tests: New file.
49704         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49705
49706         * lib/errno.in.h: New file.
49707         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49708         * modules/errno: New file.
49709         * doc/posix-headers/errno.texi: Update documentation.
49710         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49711
49712 2008-09-13  Bruno Haible  <bruno@clisp.org>
49713
49714         * tests/test-poll.c: Use #if for native Windows, rather than testing
49715         __MSVCRT__.
49716
49717 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49718             Bruno Haible  <bruno@clisp.org>
49719
49720         * lib/glob.c: Don't include <pwd.h> on native Windows.
49721         (WINDOWS32): New macro.
49722         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49723
49724 2008-09-13  Bruno Haible  <bruno@clisp.org>
49725
49726         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49727         (ETIMEDOUT): Remove macro.
49728         (glthread_cond_timedwait_multithreaded): New declaration.
49729         (glthread_cond_timedwait): Use it.
49730         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49731         (glthread_cond_timedwait_multithreaded): New function.
49732
49733 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49734
49735         * modules/poll-tests: Do not check for io.h.
49736         * tests/test-poll.c: Check for __MSVCRT__ instead.
49737
49738 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49739
49740         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49741         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49742         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49743
49744 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49745
49746         * modules/poll-tests: New.
49747         * tests/test-poll.c: New.
49748
49749 2008-09-12  Eric Blake  <ebb9@byu.net>
49750
49751         frexp: test for NetBSD failure on -0.0
49752         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49753         not all, bugs from NetBSD 3.0 have been fixed.
49754         * doc/posix-functions/frexp.texi (frexp): Document bug.
49755         Reported by Thomas Klausner.
49756
49757         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49758         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49759         literal -0.0.
49760         Reported by Jonathan C. Patschke <jp@centtech.com>.
49761
49762 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49763
49764         * lib/glthread/cond.h: Use dummy implementation also if
49765         USE_WIN32_THREADS.
49766
49767 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49768
49769         * modules/fnmatch-posix (License): Change to LGPLv2+.
49770         * modules/fnmatch-gnu (License): Likewise.
49771
49772 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49773
49774         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49775
49776 2008-09-11  Jim Meyering  <meyering@redhat.com>
49777
49778         * users.txt: Add gtk-vnc.
49779
49780 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49781
49782         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49783         rotate amounts.
49784
49785         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49786         required for 16-bit and 8-bit rotates.
49787         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49788         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49789         UINT8_MAX instead of hard-coded constants.
49790         Suggested by Paul Eggert.
49791
49792 2008-09-07  Bruno Haible  <bruno@clisp.org>
49793
49794         * tests/test-striconveh.c (main): Check behaviour when converting from
49795         UTF-7.
49796
49797         Make striconveh work better with stateful encodings.
49798         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49799         that iconv does not increment the inptr when returning -1/EINVAL.
49800
49801 2008-09-07  Bruno Haible  <bruno@clisp.org>
49802
49803         * build-aux/config.rpath: Update according to libtool-2.2.6.
49804         * build-aux/config.libpath: Likewise.
49805
49806 2008-09-06  Bruno Haible  <bruno@clisp.org>
49807
49808         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49809         * lib/freadptr.c (freadptr): Likewise.
49810         * lib/freadseek.c (freadptrinc): Likewise.
49811         Reported by Simon Josefsson.
49812
49813 2008-09-06  Bruno Haible  <bruno@clisp.org>
49814
49815         * modules/freadptr (License): Change to LGPLv2+.
49816         * modules/freadseek (License): Likewise.
49817         Suggested by Eric Blake.
49818
49819         * modules/memchr2 (License): Change to LGPLv2+.
49820         Approved by Eric Blake.
49821
49822 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49823             Bruno Haible  <bruno@clisp.org>
49824
49825         Make gnulib-tool work with native 'sed' on AIX.
49826         * gnulib-tool (sed_noop): New variable.
49827         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49828         func_add_or_update, func_create_testdir): Use it to initialize sed
49829         script variables.
49830         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49831
49832 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49833             Bruno Haible  <bruno@clisp.org>
49834
49835         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49836         also works after #include directives.
49837
49838 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49839
49840         getdate.y: reject an out-of-range timezone value
49841         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49842         the range [-24...+24].  When specified with only one or two digits,
49843         * tests/test-getdate.c: Tests for the fix.
49844         * doc/getdate.texi: Document this change.
49845
49846 2008-09-03  Bruno Haible  <bruno@clisp.org>
49847
49848         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49849
49850 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49851
49852         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49853         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49854         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49855         Blake <ebb9@byu.net>.
49856
49857         * tests/test-bitrotate.c: Add more test vectors.
49858
49859 2008-09-02  Eric Blake  <ebb9@byu.net>
49860
49861         vasnprintf-posix: handle large precision via %.*d
49862         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49863         when handling it ourselves.
49864         * tests/test-vasnprintf-posix.c (test_function): Add test.
49865         * tests/test-snprintf-posix.h (test_function): Likewise.
49866         * tests/test-sprintf-posix.h (test_function): Likewise.
49867         * tests/test-vasprintf-posix.c (test_function): Likewise.
49868         Reported by Alain Guibert.
49869
49870 2008-09-01  Eric Blake  <ebb9@byu.net>
49871
49872         c-stack: make configure-time check more robust
49873         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49874         successful sigaction call.
49875         Reported by Tom G. Christensen.
49876
49877 2008-09-01  Bruno Haible  <bruno@clisp.org>
49878
49879         New module 'findprog-lgpl'.
49880         * modules/findprog-lgpl: New file.
49881         * lib/findprog-lgpl.c: New file.
49882         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49883         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49884         to decide whether to use strdup or xstrdup, concatenated_filename or
49885         xconcatenated_filename.
49886
49887 2008-09-01  Bruno Haible  <bruno@clisp.org>
49888
49889         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49890         'xconcat-filename' (GPL).
49891         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49892         (License): Change to LGPLv2+.
49893         * modules/xconcat-filename: New file.
49894         * lib/concat-filename.h (concatenated_filename): Change specification.
49895         (xconcatenated_filename): New declaration.
49896         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49897         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49898         memory situations.
49899         * lib/xconcat-filename.c: New file.
49900         * NEWS: Mention the change.
49901         * lib/findprog.c: Include concat-filename.h, not filename.h.
49902         (find_in_path): Use xconcatenated_filename instead of
49903         concatenated_filename.
49904         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49905         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49906         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49907         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49908         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49909         instead of concatenated_filename.
49910         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49911         (execute_java_class): Use xconcatenated_filename instead of
49912         concatenated_filename.
49913         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49914         * modules/javacomp (Depends-on): Likewise.
49915         * modules/javaexec (Depends-on): Likewise.
49916
49917 2008-09-01  Bruno Haible  <bruno@clisp.org>
49918
49919         Split module 'filename' into 'filename' and 'concat-filename'.
49920         * modules/filename: Keep only lib/filename.h.
49921         (License): Change to LGPLv2+.
49922         * modules/concat-filename: New file, extracted from modules/filename.
49923         * lib/filename.h (concatenated_filename): Remove declaration.
49924         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49925         * lib/concat-filename.c: Include concat-filename.h.
49926         * NEWS: Mention the change.
49927
49928 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49929
49930         * lib/bitrotate.h (rotl8, rotr8): Add.
49931
49932         * modules/bitrotate (configure.ac): Need
49933         AC_REQUIRE([AC_C_INLINE]).
49934         (Description): Mention stdint.h.  Reported by Bruno Haible
49935         <bruno@clisp.org>.
49936
49937         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49938         Paolo Bonzini <bonzini@gnu.org>.
49939
49940 2008-08-31  Bruno Haible  <bruno@clisp.org>
49941
49942         Assume Solaris specific bi-arch conventions on Solaris systems.
49943         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49944         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49945         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49946         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49947         like acl_libdirstem.
49948         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49949         acl_libdirstem.
49950         * NEWS: Mention the change.
49951         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49952
49953 2008-08-31  Jim Meyering  <meyering@redhat.com>
49954
49955         * lib/strftime.h: Add comments describing the two added arguments.
49956
49957         remove duplicate #include directives
49958         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49959         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49960
49961 2008-08-31  Bruno Haible  <bruno@clisp.org>
49962
49963         New module 'sigpipe-die'.
49964         * modules/sigpipe-die: New file.
49965         * lib/sigpipe-die.h: New file.
49966         * lib/sigpipe-die.c: New file.
49967         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49968
49969 2008-08-31  Bruno Haible  <bruno@clisp.org>
49970
49971         Don't override previously installed signal handlers.
49972         * lib/fatal-signal.c (saved_sigactions): New variable.
49973         (uninstall_handlers): Reset the signal to the saved handler, not
49974         to SIG_DFL (except when ignored).
49975         (install_handlers): Save the previous handlers.
49976
49977 2008-08-30  Bruno Haible  <bruno@clisp.org>
49978
49979         * gnulib-tool (func_reset_sigpipe): New function.
49980         (func_get_automake_snippet, func_modules_transitive_closure,
49981         func_import): Invoke it before a join command that reads from stdin,
49982         to avoid "echo: write error: Broken pipe" error messages on stderr.
49983         Reported by Sam Steingold <sds@gnu.org>.
49984
49985 2008-08-30  Bruno Haible  <bruno@clisp.org>
49986
49987         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49988         Code copied from m4/open.m4.
49989         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49990         access and the filename ends in a slash. Code copied from lib/open.c.
49991         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49992         * tests/test-fopen.c (main): Check against bug with trailing slash.
49993
49994 2008-08-29  Bruno Haible  <bruno@clisp.org>
49995
49996         Avoid some "gcc -pedantic" warnings.
49997         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49998         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49999         * lib/dirent.in.h: Likewise.
50000         * lib/fcntl.in.h: Likewise.
50001         * lib/float.in.h: Likewise.
50002         * lib/iconv.in.h: Likewise.
50003         * lib/inttypes.in.h: Likewise.
50004         * lib/locale.in.h: Likewise.
50005         * lib/math.in.h: Likewise.
50006         * lib/netinet_in.in.h: Likewise.
50007         * lib/search.in.h: Likewise.
50008         * lib/signal.in.h: Likewise.
50009         * lib/stdarg.in.h: Likewise.
50010         * lib/stdint.in.h: Likewise.
50011         * lib/stdio.in.h: Likewise.
50012         * lib/stdlib.in.h: Likewise.
50013         * lib/string.in.h: Likewise.
50014         * lib/strings.in.h: Likewise.
50015         * lib/sys_select.in.h: Likewise.
50016         * lib/sys_socket.in.h: Likewise.
50017         * lib/sys_stat.in.h: Likewise.
50018         * lib/sys_time.in.h: Likewise.
50019         * lib/sysexits.in.h: Likewise.
50020         * lib/time.in.h: Likewise.
50021         * lib/unistd.in.h: Likewise.
50022         * lib/wchar.in.h: Likewise.
50023         * lib/wctype.in.h: Likewise.
50024         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50025         * modules/fchdir (Makefile.am): Likewise.
50026         * modules/fcntl (Makefile.am): Likewise.
50027         * modules/float (Makefile.am): Likewise.
50028         * modules/iconv_open (Makefile.am): Likewise.
50029         * modules/inttypes (Makefile.am): Likewise.
50030         * modules/locale (Makefile.am): Likewise.
50031         * modules/math (Makefile.am): Likewise.
50032         * modules/netinet_in (Makefile.am): Likewise.
50033         * modules/search (Makefile.am): Likewise.
50034         * modules/signal (Makefile.am): Likewise.
50035         * modules/stdarg (Makefile.am): Likewise.
50036         * modules/stdint (Makefile.am): Likewise.
50037         * modules/stdio (Makefile.am): Likewise.
50038         * modules/stdlib (Makefile.am): Likewise.
50039         * modules/string (Makefile.am): Likewise.
50040         * modules/strings (Makefile.am): Likewise.
50041         * modules/sys_select (Makefile.am): Likewise.
50042         * modules/sys_socket (Makefile.am): Likewise.
50043         * modules/sys_stat (Makefile.am): Likewise.
50044         * modules/sys_time (Makefile.am): Likewise.
50045         * modules/sysexits (Makefile.am): Likewise.
50046         * modules/time (Makefile.am): Likewise.
50047         * modules/unistd (Makefile.am): Likewise.
50048         * modules/wchar (Makefile.am): Likewise.
50049         * modules/wctype (Makefile.am): Likewise.
50050         Reported by Reuben Thomas <rrt@sc3d.org>.
50051
50052 2008-08-29  Bruno Haible  <bruno@clisp.org>
50053
50054         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50055         any more.
50056
50057 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50058
50059         * MODULES.html.sh (Misc): Add bitrotate.
50060
50061         * modules/bitrotate: New file.
50062
50063         * lib/bitrotate.h: New file.
50064
50065         * modules/bitrotate-tests: New file.
50066
50067         * tests/test-bitrotate.c: New file.
50068
50069         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50070         on the bitrotate module.
50071
50072         * lib/arctwo.c: Use new bitrotate module.
50073
50074 2008-08-29  Jim Meyering  <meyering@redhat.com>
50075
50076         bootstrap: merge changes from coreutils
50077         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50078         of copied files.  Remove a kludge, now that this is fixed.
50079         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50080         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50081         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50082
50083 2008-08-29  Bruno Haible  <bruno@clisp.org>
50084
50085         * MODULES.html.sh: Remove --cvs-urls option.
50086
50087 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50088
50089         maint.mk: adjust to file name change
50090         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50091
50092 2008-08-28  Jim Meyering  <meyering@redhat.com>
50093
50094         * modules/getndelim2 (License): Relicense to LGPLv2+.
50095         Approved by Richard Stallman for the version of 1995, and by
50096         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50097
50098 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50099
50100         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50101         dummy if one is not available.  Do not touch them if
50102         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50103         (getc_maybe_unlocked): New.
50104         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50105
50106 2008-08-26  Eric Blake  <ebb9@byu.net>
50107
50108         doc/INSTALL: resync from autoconf
50109         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50110         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50111         moving...
50112         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50113         * INSTALL: Regenerate.
50114         * INSTALL.ISO: New file.
50115         * INSTALL.UTF-8: Likewise.
50116
50117 2008-08-26  Jim Meyering  <meyering@redhat.com>
50118
50119         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50120         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50121         these definitions conditional, so that they may be overridden, too.
50122
50123 2008-08-26  Bruno Haible  <bruno@clisp.org>
50124
50125         Generate INSTALL file variants with prettier quotes.
50126         * doc/Makefile (INSTALL_PRELUDE): New macro.
50127         (INSTALL): Use it.
50128         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50129
50130 2008-08-26  Bruno Haible  <bruno@clisp.org>
50131
50132         Run makeinfo in an English locale.
50133         * doc/Makefile (MAKEINFO): New variable.
50134
50135 2008-08-26  Bruno Haible  <bruno@clisp.org>
50136
50137         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50138         Suggested by Eric Blake.
50139
50140 2008-08-25  Bruno Haible  <bruno@clisp.org>
50141
50142         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50143
50144 2008-08-25  Eric Blake  <ebb9@byu.net>
50145
50146         c-stack: test that stack overflow can be caught
50147         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50148         that platform allows handling stack overflow; at least OS/2 EMX
50149         has sigaltstack, but crashes before transferring control to
50150         handler on stack overflow.
50151         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50152         check for HAVE_STACK_OVERFLOW_HANDLING.
50153         Reported by Elbert Pol.
50154
50155 2008-08-25  Bruno Haible  <bruno@clisp.org>
50156
50157         * doc/posix-functions/strftime.texi: Fix description of strftime
50158         module.
50159
50160 2008-08-24  Bruno Haible  <bruno@clisp.org>
50161
50162         * tests/uniwidth/test-uc_width2.c: New file.
50163         * tests/uniwidth/test-uc_width2.sh: New file.
50164         * modules/uniwidth/width-tests (Files): Add the new files.
50165         (TESTS): Add uniwidth/test-uc_width2.sh.
50166         (TESTS_ENVIRONMENT): New variable.
50167         (check_PROGRAMS): Add test-uc_width2.
50168         (test_uc_width2_SOURCES): New variable.
50169
50170         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50171         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50172         not 0x00AB.
50173         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50174
50175 2008-08-22  Eric Blake  <ebb9@byu.net>
50176
50177         test-lock, test-tls: mention why a test is skipped
50178         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50179         skipped.
50180         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50181
50182         count-one-bits: relax license
50183         * modules/count-one-bits (License): Relicense to LGPLv2+.
50184         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50185
50186 2008-08-22  Andreas Schwab  <schwab@suse.de>
50187
50188         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50189         Remove spurious space in assignment.
50190
50191 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50192
50193         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50194         Paul Eggert <eggert@CS.UCLA.EDU>.
50195
50196 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50197
50198         * modules/gettext: Add m4/threadlib.m4.
50199
50200 2008-08-19  Eric Blake  <ebb9@byu.net>
50201
50202         test-c-stack: fix compilation failure on FreeBSD 5.0
50203         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50204         headers before <sys/resource.h>.
50205         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50206         the bug.
50207         Reported by Nelson H. F. Beebe.
50208
50209         strverscmp: migrate from "strverscmp.h" to <string.h>
50210         * modules/string (Makefile.am): Add new hooks.
50211         * modules/strverscmp (Files): Remove strverscmp.h.
50212         (Depends-on): Add string.
50213         (configure.ac): Add indicator.
50214         (Include): Mention new header.
50215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50216         defaults.
50217         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50218         results.
50219         * lib/strverscmp.h: Delete.
50220         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50221         * tests/test-strverscmp.c (includes): Adjust client.
50222         * lib/check-version.c (includes): Likewise.
50223         * NEWS: Document the change.
50224
50225         strverscmp: add unit test
50226         * modules/strverscmp-tests: New file.
50227         * tests/test-strverscmp.c: Likewise.
50228
50229 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50230
50231         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50232         regarding Windows crypto stuff, from Mono.
50233
50234 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50235
50236         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50237         if present, for intel RND.  Return error on failures.
50238
50239 2008-08-18  Ben Pfaff  <blp@gnu.org>
50240
50241         gitlog-to-changelog: give better diagnostic for failed pipe-open
50242         * build-aux/gitlog-to-changelog: Improve error message: suggest
50243         that the version of Git may be too old.
50244
50245 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50246
50247         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50248         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50249
50250 2008-08-18  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50253         pthread_in_use().
50254
50255 2008-08-18  Bruno Haible  <bruno@clisp.org>
50256
50257         * lib/glthread/threadlib.c: Include <pthread.h>.
50258
50259 2008-08-18  Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50262         glthread_recursive_lock_* macros.
50263         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50264         Fix syntax error.
50265
50266 2008-08-18  Bruno Haible  <bruno@clisp.org>
50267
50268         * lib/glthread/thread.c: Avoid forcing a context switch right after
50269         thread creation.
50270
50271 2008-08-17  Bruno Haible  <bruno@clisp.org>
50272
50273         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50274         * lib/glthread/thread.h: Provide Win32 specific implementation.
50275         * modules/thread (Files): Add lib/glthread/thread.c.
50276         (Depends-on): Add lock.
50277         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50278
50279 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50280
50281         New module 'yield'.
50282         * modules/yield: New file.
50283         * lib/glthread/yield.h: New file.
50284         * m4/yield.m4: New file.
50285         * MODULES.html.sh (Multithreading): Add yield.
50286
50287 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50288
50289         New module 'thread'.
50290         * modules/thread: New file.
50291         * lib/glthread/thread.h: New file.
50292         * m4/thread.m4: New file.
50293         * MODULES.html.sh (Multithreading): Add thread.
50294
50295 2008-08-17  Bruno Haible  <bruno@clisp.org>
50296
50297         * lib/glthread/lock.h: Include <stdlib.h> always.
50298         * lib/glthread/tls.h: Likewise.
50299         * lib/glthread/cond.h: Likewise.
50300
50301 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50302
50303         New module 'cond'.
50304         * modules/cond: New file.
50305         * lib/glthread/cond.h: New file.
50306         * lib/glthread/cond.c: New file.
50307         * m4/cond.m4: New file.
50308         * MODULES.html.sh (Multithreading): Add cond.
50309
50310 2008-08-16  Eric Blake  <ebb9@byu.net>
50311
50312         c-stack: fix regression on Irix 5.3 from 2008-06-21
50313         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50314         sa_sigaction...
50315         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50316         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50317         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50318         * modules/signal (Makefile.am): Use the value.
50319         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50320         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50321         * doc/posix-headers/signal.texi (signal.h): Document this
50322         portability issue.
50323         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50324         Reported by Tom G. Christensen.
50325
50326 2008-08-17  Bruno Haible  <bruno@clisp.org>
50327
50328         New module 'threadlib'.
50329         * modules/threadlib: New file.
50330         * lib/glthread/threadlib.c: New file, extracted from
50331         lib/glthread/lock.c.
50332         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50333         functions.
50334         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50335         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50336         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50337         macros.
50338         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50339         (gl_DISABLE_THREADS): Remove macro.
50340         * modules/lock (Files): Remove build-aux/config.rpath.
50341         (Depends-on): Remove havelib. Add threadlib.
50342         (configure.ac-early): Remove section.
50343         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50344         * modules/tls (Depends-on): Remove lock. Add threadlib.
50345         (Link): New section, copied from threadlib.
50346         * MODULES.html.sh (Multithreading): Add threadlib.
50347
50348 2008-08-14  Bruno Haible  <bruno@clisp.org>
50349
50350         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50351         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50352         glthread_rwlock_unlock, glthread_rwlock_destroy,
50353         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50354         glthread_recursive_lock_destroy): Define as macros always.
50355         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50356         glthread_lock_lock.
50357         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50358         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50359         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50360         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50361         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50362         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50363         (glthread_recursive_lock_lock_func): Renamed from
50364         glthread_recursive_lock_lock.
50365         (glthread_recursive_lock_unlock_func): Renamed from
50366         glthread_recursive_lock_unlock.
50367         (glthread_recursive_lock_destroy_func): Renamed from
50368         glthread_recursive_lock_destroy.
50369
50370 2008-08-14  Bruno Haible  <bruno@clisp.org>
50371
50372         * lib/glthread/lock.h: Renamed from lib/lock.h.
50373         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50374         * lib/glthread/tls.h: Renamed from lib/tls.h.
50375         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50376         * lib/fstrcmp.c: Update includes.
50377         * lib/strsignal.c: Update includes.
50378         * modules/lock (Files, Makefile.am): Update.
50379         (Include): Change to "glthread/lock.h".
50380         * modules/tls (Files, Makefile.am): Update.
50381         (Include): Change to "glthread/tls.h".
50382         * tests/test-lock.c: Update includes.
50383         * tests/test-tls.c: Update includes.
50384         * NEWS: Mention the renamed header files.
50385
50386 2008-08-11  Jim Meyering  <meyering@redhat.com>
50387
50388         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50389
50390 2008-08-11  Eric Blake  <ebb9@byu.net>
50391
50392         test-c-stack: avoid C99-ism
50393         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50394         before statement.
50395         Reported by Alain Guibert.
50396
50397 2008-08-10  Jim Meyering  <meyering@redhat.com>
50398
50399         ensure that return value of uinttostr et al are not ignored
50400         * lib/inttostr.h (__GNUC_PREREQ): Define.
50401         (__attribute_warn_unused_result__): Define.
50402         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50403
50404 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50405
50406         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50407         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50408
50409 2008-08-07  Jim Meyering  <meyering@redhat.com>
50410
50411         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50412
50413         * modules/mkstemp (License): Relicense under LGPLv2+.
50414         * modules/tempname (License): Likewise.
50415
50416 2008-08-06  Bruno Haible  <bruno@clisp.org>
50417
50418         * lib/poll.c (poll): Further micro-optimization.
50419
50420 2008-08-06  Jim Meyering  <meyering@redhat.com>
50421
50422         inet_pton.c: use locale-independent tolower
50423         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50424         (inet_pton6): Use c_tolower rather than tolower.
50425         * modules/inet_pton (Depends-on): Add c-ctype.
50426
50427 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50428
50429         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50430         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50431
50432 2008-08-06  Jim Meyering  <meyering@redhat.com>
50433
50434         * modules/inet_pton (License): Relicense under LGPLv2+.
50435
50436 2008-08-03  Bruno Haible  <bruno@clisp.org>
50437
50438         Additional non-aborting API for lock and tls.
50439         * lib/lock.h: Include <errno.h>.
50440         (glthread_lock_init): New macro/function.
50441         (gl_lock_init): Define as wrapper around glthread_lock_init.
50442         (glthread_lock_lock): New macro/function.
50443         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50444         (glthread_lock_unlock): New macro/function.
50445         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50446         (glthread_lock_destroy): New macro/function.
50447         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50448         (glthread_rwlock_init): New macro/function.
50449         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50450         (glthread_rwlock_rdlock): New macro/function.
50451         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50452         (glthread_rwlock_wrlock): New macro/function.
50453         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50454         (glthread_rwlock_unlock): New macro/function.
50455         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50456         (glthread_rwlock_destroy): New macro/function.
50457         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50458         (glthread_recursive_lock_init): New macro/function.
50459         (gl_recursive_lock_init): Define as wrapper around
50460         glthread_recursive_lock_init.
50461         (glthread_recursive_lock_lock): New macro/function.
50462         (gl_recursive_lock_lock): Define as wrapper around
50463         glthread_recursive_lock_lock.
50464         (glthread_recursive_lock_unlock): New macro/function.
50465         (gl_recursive_lock_unlock): Define as wrapper around
50466         glthread_recursive_lock_unlock.
50467         (glthread_recursive_lock_destroy): New macro/function.
50468         (gl_recursive_lock_destroy): Define as wrapper around
50469         glthread_recursive_lock_destroy.
50470         (glthread_once): New macro/function.
50471         (gl_once): Define as wrapper around glthread_once.
50472         Update function declarations.
50473         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50474         glthread_rwlock_init. Return error code.
50475         (glthread_rwlock_rdlock_multithreaded): Renamed from
50476         glthread_rwlock_rdlock. Return error code.
50477         (glthread_rwlock_wrlock_multithreaded): Renamed from
50478         glthread_rwlock_wrlock. Return error code.
50479         (glthread_rwlock_unlock_multithreaded): Renamed from
50480         glthread_rwlock_unlock. Return error code.
50481         (glthread_rwlock_destroy_multithreaded): Renamed from
50482         glthread_rwlock_destroy. Return error code.
50483         (glthread_recursive_lock_init_multithreaded): Renamed from
50484         glthread_recursive_lock_init. Return error code.
50485         (glthread_recursive_lock_lock_multithreaded): Renamed from
50486         glthread_recursive_lock_lock. Return error code.
50487         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50488         glthread_recursive_lock_unlock. Return error code.
50489         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50490         glthread_recursive_lock_destroy. Return error code.
50491         (glthread_once_call): Make static.
50492         (glthread_once_multithreaded): Renamed from glthread_once.
50493         * lib/tls.h: Include <errno.h>.
50494         (glthread_tls_key_init): New macro/function.
50495         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50496         (glthread_tls_set): New macro/function.
50497         (gl_tls_set): Define as wrapper around glthread_tls_set.
50498         (glthread_tls_key_destroy): New macro/function.
50499         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50500         Update function declarations.
50501         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50502         glthread_tls_get.
50503         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50504
50505 2008-08-04  Eric Blake  <ebb9@byu.net>
50506
50507         gnumakefile: use space, not TAB, outside of targets
50508         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50509
50510 2008-08-02  Jim Meyering  <meyering@redhat.com>
50511
50512         getdate.y: avoid locale-dependent date parsing failure
50513         In Turkish locales, getdate would fail to recognize keywords
50514         containing a lowercase "i".  The solution is not to rely on
50515         locale-sensitive case-conversion.
50516         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50517         (lookup_word): Use c_toupper in place of toupper.
50518         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50519         Reported by Vefa Bicakci <bicave@superonline.com> in
50520         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50521         * modules/getdate (Depends-on): Add c-ctype.
50522
50523 2008-08-02  Bruno Haible  <bruno@clisp.org>
50524
50525         * gnulib-tool (func_import): When updating or creating a .gitignore
50526         file, prepend each added line with a slash, and ignore leading slashes
50527         from the existing lines.
50528         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50529
50530 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50531
50532         Portability fix for GNU make 3.79.1.
50533         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50534         versions do not understand.
50535
50536 2008-08-01  Bruno Haible  <bruno@clisp.org>
50537
50538         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50539         * tests/test-isnanf.h (zero): New variable.
50540         (main): Avoid literal -0.0f.
50541         * tests/test-isnand.h (zero): New variable.
50542         (main): Avoid literal -0.0.
50543         * tests/test-isnanl.h (zero): New variable.
50544         (main): Avoid literal -0.0L.
50545         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50546         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50547         -0.0, -0.0L.
50548         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50549         (test_signbitd): Avoid literal -0.0.
50550         (test_signbitl): Avoid literal -0.0L.
50551         * tests/test-ceilf1.c (zero): New variable.
50552         (main): Avoid literal -0.0f.
50553         * tests/test-ceill.c (zero): New variable.
50554         (main): Avoid literal -0.0L.
50555         * tests/test-floorf1.c (zero): New variable.
50556         (main): Avoid literal -0.0f.
50557         * tests/test-floorl.c (zero): New variable.
50558         (main): Avoid literal -0.0L.
50559         * tests/test-roundf1.c (zero): New variable.
50560         (main): Avoid literal -0.0f.
50561         * tests/test-round1.c (zero): New variable.
50562         (main): Avoid literal -0.0.
50563         * tests/test-roundl.c (zero): New variable.
50564         (main): Avoid literal -0.0L.
50565         * tests/test-truncf1.c (zero): New variable.
50566         (main): Avoid literal -0.0f.
50567         * tests/test-trunc1.c (zero): New variable.
50568         (main): Avoid literal -0.0.
50569         * tests/test-truncl.c (zero): New variable.
50570         (main): Avoid literal -0.0L.
50571         * tests/test-frexp.c (zero): New variable.
50572         (main): Avoid literal -0.0.
50573         * tests/test-frexpl.c (zero): New variable.
50574         (main): Avoid literal -0.0L.
50575         * tests/test-ldexpl.c (zero): New variable.
50576         (main): Avoid literal -0.0L.
50577         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50578         (zerod, zerol): New variables.
50579         (test_function): Avoid literals -0.0, -0.0L.
50580         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50581         (zerod, zerol): New variables.
50582         (test_function): Avoid literals -0.0, -0.0L.
50583         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50584         (zerod, zerol): New variables.
50585         (test_function): Avoid literals -0.0, -0.0L.
50586         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50587         (zerod, zerol): New variables.
50588         (test_function): Avoid literals -0.0, -0.0L.
50589         * tests/test-strtod.c (zero): New variable.
50590         (main): Avoid literal -0.0.
50591         Reported by Jonathan C. Patschke <jp@centtech.com>.
50592
50593 2008-07-31  Jim Meyering  <meyering@redhat.com>
50594
50595         sha256.h: correct definition of SHA224_DIGEST_SIZE
50596         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50597         Reported by Paulie Pena IV <paulie4@gmail.com>.
50598         Define as 224 / 8, rather than as a literal.
50599         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50600         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50601         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50602
50603 2008-07-31  Bruno Haible  <bruno@clisp.org>
50604
50605         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50606         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50607         Reported by Jonathan Patschke <jp@centtech.com>.
50608
50609 2008-07-31  Bruno Haible  <bruno@clisp.org>
50610
50611         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50612         Reported by Paolo Bonzini <bonzini@gnu.org>.
50613
50614 2008-07-30  Eric Blake  <ebb9@byu.net>
50615
50616         test-strtod: allow compilation without -lm
50617         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50618         Reported by Dennis Clarke <blastwave@gmail.com>.
50619
50620 2008-07-28  Jim Meyering  <meyering@redhat.com>
50621
50622         bootstrap: work also when there are no .po files in po/
50623         * build-aux/bootstrap (update_po_files): Complete the change
50624         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50625
50626 2008-07-27  Jim Meyering  <meyering@redhat.com>
50627
50628         * users.txt: Add zile.
50629
50630 2008-07-26  Ben Pfaff  <blp@gnu.org>
50631
50632         Add missing dependencies on new m4/exponent[fdl].m4 files.
50633         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50634         * modules/isnand-nolibm: Add m4/exponentd.m4.
50635         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50636         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50637         m4/isnan[fdl].m4, because the macros actually used moved.
50638         Reported by Jim Meyering.
50639
50640 2008-07-14  Ben Pfaff  <blp@gnu.org>
50641
50642         Add isinf module.
50643         * lib/isinf.c: New file.
50644         * lib/math.in.h: Define isinf macro if we have decided to replace
50645         it.
50646         * m4/isinf.m4: New file.
50647         * m4/math_h.m4: Initialize and substitute variables for isinf
50648         module.
50649         * modules/isinf: New file.
50650         * modules/isinf-tests: New file.
50651         * modules/math: Add substitutions for new module.
50652         * tests/test-isinf.c: New file.
50653         * doc/posix-functions/isinf.texi: Mention new module.
50654         * MODULES.html.sh: Mention new module.
50655
50656 2008-07-14  Ben Pfaff  <blp@gnu.org>
50657
50658         Factor out some macros for use by additional modules.
50659         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50660         exponentf.m4.
50661         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50662         exponentd.m4.
50663         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50664         file exponentl.m4.
50665         * m4/exponentf.m4: New file.
50666         * m4/exponentd.m4: New file.
50667         * m4/exponentl.m4: New file.
50668         * modules/isnanf: Use new file m4/exponentf.m4.
50669         * modules/isnand: Use new file m4/exponentd.m4.
50670         * modules/isnanl: Use new file m4/exponentl.m4.
50671
50672 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50673
50674         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50675         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50676         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50677         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50678
50679         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50680         readlink on platforms without PATH_MAX.
50681
50682 2008-07-21  Eric Blake  <ebb9@byu.net>
50683
50684         Warn, not fail, on stale version.
50685         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50686
50687         Don't allow installation with stale devel version number.
50688         * top/GNUmakefile (_is-install-target): New macro.
50689         (_curr-ver): Forbid installation with stale version number.
50690
50691 2008-07-20  Bruno Haible  <bruno@clisp.org>
50692
50693         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50694         TESTS_ENVIRONMENT.
50695         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50696
50697 2008-07-20  Bruno Haible  <bruno@clisp.org>
50698
50699         * lib/c-stack.h (c_stack_action): Add documentation.
50700         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50701
50702 2008-07-20  Bruno Haible  <bruno@clisp.org>
50703
50704         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50705         * modules/readlink (License): Likewise.
50706
50707 2008-07-17  Eric Blake  <ebb9@byu.net>
50708
50709         * modules/c-stack (Link): Fix typo.
50710
50711         Make c-stack use libsigsegv, when available.
50712         * modules/c-stack (Depends-on): Add libsigsegv.
50713         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50714         needed.
50715         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50716         (segv_handler, overflow_handler, c_stack_action)
50717         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50718         implementation when libsigsegv is available, but only when using
50719         the library is necessary.
50720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50721         comment, explaining why XSI check fails on Linux.
50722         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50723         * tests/test-c-stack2.sh: Tweak skip message.
50724         * NEWS: Document new link-time requirements.
50725
50726 2008-07-16  Eric Blake  <ebb9@byu.net>
50727
50728         c-stack: Expose false positives when not using libsigsegv.
50729         * modules/c-stack-tests (Files): Expand test.
50730         * tests/test-c-stack.c (main): Add means to conditionally trigger
50731         non-overflow SIGSEGV.
50732         * tests/test-c-stack2.sh: New file.
50733
50734 2008-07-14  Bruno Haible  <bruno@clisp.org>
50735
50736         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50737         Reported by Eric Blake.
50738
50739 2008-07-14  Sam Steingold  <sds@gnu.org>
50740             Bruno Haible  <bruno@clisp.org>
50741
50742         New module libsigsegv.
50743         * modules/libsigsegv: New file.
50744         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50745         modifications.
50746         * MODULES.html.sh (Signal handling): New section.
50747
50748 2008-07-14  Bruno Haible  <bruno@clisp.org>
50749
50750         * modules/unictype/ctype-* (Description): Add the word "function".
50751         Improves the resulting doc in MODULES.html.
50752
50753 2008-07-12  Ben Pfaff  <blp@gnu.org>
50754
50755         Add longlong module.
50756         * modules/longlong: New file.
50757
50758 2008-07-12  Bruno Haible  <bruno@clisp.org>
50759
50760         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50761         to empty.
50762
50763 2008-07-10  Ben Pfaff  <blp@gnu.org>
50764
50765         Add isnan module.
50766         * doc/posix-functions/isnan.texi: Mention new module.
50767         * lib/math.in.h: Define isnan macro if we have decided to replace
50768         it.
50769         * m4/isnan.m4: New file.
50770         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50771         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50772         also.
50773         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50774         redundancy.
50775         * m4/math_h.m4: Initialize and substitute variables for isnan
50776         module.
50777         * modules/isnan: New file.
50778         * modules/isnan-tests: New file.
50779         * modules/math: Add substitutions for new module.
50780         * tests/test-isnan.c: New file.
50781         * MODULES.html.sh: Mention new module.
50782
50783 2008-07-10  Ben Pfaff  <blp@gnu.org>
50784
50785         Add isnanf module.
50786         * lib/isnanf.m4: New file.
50787         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50788         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50789         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50790         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50791         * modules/isnanf: New file.
50792         * modules/isnanf-tests: New file.
50793         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50794         files.
50795         * tests/test-isnanf-nolibm.c: factored most of its contents into
50796         new file tests/test-isnanf.h.
50797         * tests/test-isnanf.h: New file.
50798         * tests/test-isnanf.c: New file.
50799         * MODULES.html.sh: Mention new module.
50800         * doc/glibc-functions/isnanf.texi: Mention new module.
50801
50802 2008-07-10  Ben Pfaff  <blp@gnu.org>
50803
50804         Add isnand module.
50805         * lib/isnand.h: New file.
50806         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50807         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50808         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50809         functionality also.
50810         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50811         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50812         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50813         * modules/isnand: New file.
50814         * modules/isnand-tests: New file.
50815         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50816         files.
50817         * tests/test-isnand-nolibm.c: factored most of its contents into
50818         new file tests/test-isnand.h.
50819         * tests/test-isnand.h: New file.
50820         * tests/test-isnand.c: New file.
50821         * MODULES.html.sh: Mention new module.
50822
50823 2008-07-10  Ben Pfaff  <blp@gnu.org>
50824
50825         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50826         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50827         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50828         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50829         * modules/isnanf-nolibm: Update references to renamed files.
50830         * modules/isnand-nolibm: Likewise.
50831         * modules/isnanf-nolibm-tests: Likewise.
50832         * modules/isnand-nolibm-tests: Likewise.
50833         * lib/frexp.c: Likewise.
50834         * lib/isfinite.c: Likewise.
50835         * lib/signbitd.c: Likewise.
50836         * lib/signbitf.c: Likewise.
50837         * lib/vasnprintf.c: Likewise.
50838         * tests/test-ceilf1.c: Likewise.
50839         * tests/test-ceilf2.c: Likewise.
50840         * tests/test-floorf1.c: Likewise.
50841         * tests/test-floorf2.c: Likewise.
50842         * tests/test-frexp.c: Likewise.
50843         * tests/test-round1.c: Likewise.
50844         * tests/test-round2.c: Likewise.
50845         * tests/test-roundf1.c: Likewise.
50846         * tests/test-strtod.c: Likewise.
50847         * tests/test-trunc1.c: Likewise.
50848         * tests/test-trunc2.c: Likewise.
50849         * tests/test-truncf1.c: Likewise.
50850         * tests/test-truncf2.c: Likewise.
50851         * NEWS: Mention the renamed header files.
50852
50853 2008-07-11  Jim Meyering  <meyering@redhat.com>
50854
50855         vc-list-files: make the last-resort awk code more portable
50856         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50857         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50858         does not support it.
50859
50860 2008-07-10  Eric Blake  <ebb9@byu.net>
50861
50862         Work with tar's bootstrap.
50863         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50864         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50865         an m4 comment.
50866
50867 2008-07-09  Jim Meyering  <meyering@redhat.com>
50868
50869         posix-shell.m4: fix typo that made this test malfunction
50870         * m4/posix-shell.m4: Remove capitalization in variable name.
50871
50872 2008-07-08  Bruno Haible  <bruno@clisp.org>
50873
50874         * m4/onceonly.m4: Update comments.
50875         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50876
50877 2008-07-04  Jim Meyering  <meyering@redhat.com>
50878
50879         * users.txt: Add vc-dwim.
50880         (bison, coreutils): Use the gitweb URL.
50881
50882 2008-07-03  Jim Meyering  <meyering@redhat.com>
50883
50884         * users.txt: Add libffcall.  From Sam Steingold.
50885
50886 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50887
50888         getdate.y: do not ignore TZ with relative day, month or year offset
50889         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50890         relative-date-handling, since otherwise, the latter would clobber the
50891         sole output (an updated Start value) of the tz-handling block.
50892         * tests/test-getdate.c: Tests for the fix
50893
50894 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50895
50896         Recognize 'foo_LIBRARIES += libgnu.a'.
50897         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50898         makefile snippet has already specified an installation location,
50899         also using '+='.
50900
50901 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50902
50903         getdate.y: factor out common actions
50904         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50905         Use them in place of open-coded actions.
50906
50907 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50908
50909         Add self-test for getdate module.
50910         * modules/getdate-tests: New file.
50911         * tests/test-getdate.c: New file.
50912
50913 2008-06-29  Bruno Haible  <bruno@clisp.org>
50914
50915         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50916         .gitignore.
50917         Reported by Sylvain Beucler <beuc@beuc.net>.
50918
50919 2008-06-29  Bruno Haible  <bruno@clisp.org>
50920
50921         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50922         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50923
50924 2008-06-29  Bruno Haible  <bruno@clisp.org>
50925
50926         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50927         EXTRA_DIST.
50928         Reported by Sylvain Beucler <beuc@beuc.net>.
50929
50930 2008-06-26  Jim Meyering  <meyering@redhat.com>
50931
50932         make several modules depend on the "open" module
50933         This provides slightly increased consistency when opening-for-write
50934         the name of a non-directory spelled with a trailing slash.
50935         * modules/chdir-safer: Likewise.
50936         * modules/chown: Likewise.
50937         * modules/clean-temp: Likewise.
50938         * modules/copy-file: Likewise.
50939         * modules/fchdir: Likewise.
50940         * modules/fcntl-safer: Likewise.
50941         * modules/pipe: Likewise.
50942         * modules/utime: Likewise.
50943         Prompted by Eric Blake and Bruno Haible.
50944
50945 2008-06-24  Andreas Schwab  <schwab@suse.de>
50946
50947         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50948         literals can be used as initializers for global variables.
50949
50950 2008-06-23  Eric Blake  <ebb9@byu.net>
50951
50952         Make gnulib-cache.m4 easier to diff.
50953         * gnulib-tool (func_import): Allow newlines when reading cached
50954         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50955
50956 2008-06-23  Bruno Haible  <bruno@clisp.org>
50957
50958         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50959         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50960         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50961         m4/signalblocking.m4.
50962         (gl_PREREQ_SIGACTION): Don't invoke it.
50963         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50964         gl_PREREQ_SIG_HANDLER_H.
50965         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50966         Don't check for sigaction here.
50967
50968 2008-06-23  Bruno Haible  <bruno@clisp.org>
50969
50970         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50971         (install_handlers): Don't set the SA_RESETHAND flag.
50972
50973 2008-06-23  Bruno Haible  <bruno@clisp.org>
50974
50975         * m4/sigaction.m4: Comment fixes.
50976         * lib/signal.in.h: Likewise.
50977
50978 2008-06-23  Eric Blake  <ebb9@byu.net>
50979
50980         Fix typo.
50981         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50982
50983         Avoid SA_ namespace.
50984         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50985         Reported by Ralf Wildenhues.
50986
50987         Avoid test failure due to SA_RESTORER.
50988         * tests/test-sigaction.c (SA_MASK): New macro.
50989         (main): Avoid failing due to extension flags being set.
50990         Reported by Jim Meyering.
50991
50992         Revert use of sig-handler.h in sigprocmask.c.
50993         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50994         it requires the existence of struct sigaction.
50995         * lib/sigprocmask.c (handler_t): Restore typedef.
50996         (rpl_signal, old_handlers): Use local type.
50997
50998 2008-06-22  Bruno Haible  <bruno@clisp.org>
50999
51000         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
51001         conditionally.
51002         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51003
51004 2008-06-22  Bruno Haible  <bruno@clisp.org>
51005
51006         * doc/posix-functions/siginterrupt.texi: Move note.
51007
51008         * lib/signal.in.h (SA_RESTART): New macro.
51009         * lib/sigaction.c: Update comment.
51010
51011         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
51012
51013         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
51014         (gl_PREREQ_SIGPROCMASK): Invoke it.
51015         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51016
51017         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51018
51019         * lib/sigprocmask.c: Update a comment.
51020
51021 2008-06-21  Eric Blake  <ebb9@byu.net>
51022
51023         Use sigaction module rather than signal().
51024         * modules/c-stack (Depends-on): Add sigaction.
51025         * modules/fatal-signal (Depends-on): Likewise.
51026         * modules/nanosleep (Depends-on): Likewise.
51027         * modules/sigprocmask (Files): Add sig-handler.h.
51028         * modules/sigaction (Files): Likewise.
51029         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51030         Eggert.
51031         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51032         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51033         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51034         (init_fatal_signals): Likewise.
51035         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51036         (siginterrupt): Delete fallback.
51037         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51038         instead.
51039         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51040         siginterrupt.
51041
51042         New module sigaction, for mingw.
51043         * modules/sigaction: New module...
51044         * modules/sigaction-tests: ...and its test.
51045         * m4/sigaction.m4: New file.
51046         * lib/sigaction.c: Likewise.
51047         * tests/test-sigaction.c: Likewise.
51048         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51049         * modules/signal (Makefile.am): Likewise.
51050         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51051         needed.
51052         * doc/posix-headers/signal.texi (signal.h): Mention provided
51053         types.
51054         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51055         that sigaction is preferable.
51056         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51057         module.
51058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51059         sigaction.
51060
51061         Improve robustness of sigprocmask by overriding signal.
51062         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51063         is in use.
51064         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51065         (SIGKILL, SIGSTOP): Provide fallbacks.
51066         (rpl_signal): Implement.
51067         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51068         signal can be called inside handlers.
51069
51070         Fix nanosleep module on mingw.
51071         * modules/nanosleep (Depends-on): Add sys_select.
51072         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51073
51074         Fix licensing of sigprocmask.
51075         * modules/raise (License): Relicense as LGPL.
51076
51077 2008-06-21  Bruno Haible  <bruno@clisp.org>
51078
51079         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51080         result if it contains question marks.
51081         Reported by Michael Geng <linux@michaelgeng.de>.
51082
51083 2008-06-19  Bruno Haible  <bruno@clisp.org>
51084
51085         Fix CVS-ism.
51086         * doc/gnulib.texi: Include updated-stamp.texi.
51087         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51088         (updated-stamp.texi): New rule.
51089         (gnulib.info): Depend on it.
51090         * doc/.gitignore: Add updated-stamp.texi.
51091         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51092
51093 2008-06-19  Bruno Haible  <bruno@clisp.org>
51094
51095         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51096         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51097
51098 2008-06-19  Eric Blake  <ebb9@byu.net>
51099
51100         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51101         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51102         Reported by Stepan Kasal.
51103
51104 2008-06-18  Bruno Haible  <bruno@clisp.org>
51105
51106         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51107         Reported by Eric Blake.
51108
51109 2008-06-18  Eric Blake  <ebb9@byu.net>
51110
51111         Work around cygwin 1.5.25 strsignal bug.
51112         * tests/test-strsignal.c: Allow for const char *.
51113         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51114
51115 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51116
51117         * users.txt: Update URL to article and add author/date
51118         information.
51119
51120 2008-06-17  Bruno Haible  <bruno@clisp.org>
51121
51122         New macro gl_DISABLE_THREADS.
51123         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51124         if the user did not pass --enable-threads or --disable-threads option.
51125         (gl_DISABLE_THREADS): New macro.
51126         Reported by Eric Blake <ebb9@byu.net>.
51127
51128 2008-06-17  Bruno Haible  <bruno@clisp.org>
51129
51130         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51131         when the macro ignores it.
51132         Based on a patch by Eric Blake <ebb9@byu.net>.
51133
51134 2008-06-17  Bruno Haible  <bruno@clisp.org>
51135
51136         * modules/tls (License): Change to LGPLv2+.
51137         Reported by Eric Blake.
51138
51139 2008-06-17  Eric Blake  <ebb9@byu.net>
51140
51141         Simplify c-stack prerequisites.
51142         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51143         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51144         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51145         check.
51146         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51147         <sys/resource.h>.
51148
51149         Move c-stack test into testsuite.
51150         * modules/c-stack-tests: New file.
51151         * lib/c-stack.c [DEBUG]: Move test program...
51152         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51153         fail test if sigaltstack is lacking.
51154         * tests/test-c-stack.sh: New driver file.
51155
51156 2008-06-16  Eric Blake  <ebb9@byu.net>
51157
51158         Use raise module consistently.
51159         * modules/fatal-signal (Depends-on): Add raise.
51160         * modules/sigprocmask (Depends-on): Likewise.
51161         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51162         * lib/sigprocmask.c (sigprocmask): Likewise.
51163         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51164         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51165
51166         Fix compliance bug in sigpending.
51167         * lib/sigprocmask.c (sigpending): Return pending array via
51168         parameter, not return value.
51169
51170 2008-06-14  Eric Blake  <ebb9@byu.net>
51171
51172         Improve obstack-printf test code.
51173         * tests/test-obstack-printf.c (test_function): Fix comment, and
51174         simplify usage of obstack_* in macros.  Add a test for coverage.
51175         Reported by Bruno Haible.
51176
51177 2008-06-14  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51180         array size as a constant, not as a const variable.
51181         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51182         AC_USE_SYSTEM_EXTENSIONS.
51183         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51184         Test whether the obstack_printf function actually exists.
51185         * modules/obstack-printf (Depends-on): Add extensions.
51186         (Include): Remove obstack.h.
51187         * modules/obstack-printf-posix (Depends-on): Add extensions.
51188         (Include): Remove obstack.h.
51189
51190 2008-06-13  Eric Blake  <ebb9@byu.net>
51191
51192         Add obstack-printf and obstack-printf-posix modules.
51193         * modules/obstack-printf: New file.
51194         * modules/obstack-printf-posix: Likewise.
51195         * MODULES.html.sh (Misc): Mention them.
51196         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51197         Likewise.
51198         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51199         Likewise.
51200         * modules/stdio (Makefile.am): Accomodate new modules.
51201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51202         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51203         Declare.
51204         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51205         functions.
51206         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51207         (gl_REPLACE_OBSTACK_PRINTF): New macros
51208         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51209         * tests/test-obstack-printf.c: New file.
51210         * modules/obstack-printf-tests: Likewise.
51211         * modules/obstack-printf-posix-tests: Likewise.
51212
51213 2008-06-11  Bruno Haible  <bruno@clisp.org>
51214
51215         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51216         * lib/open.c: Include errno.h.
51217         (open): Fail when attempting to write to a file that has a trailing
51218         slash.
51219         * tests/test-open.c (main): Test against trailing slash bug.
51220         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51221
51222 2008-06-10  Bruno Haible  <bruno@clisp.org>
51223
51224         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51225         for $? to work inside the trap command, with various /bin/sh-s.
51226         * tests/test-vc-list-files-cvs.sh: Likewise.
51227
51228 2008-06-10  Bruno Haible  <bruno@clisp.org>
51229
51230         * lib/acl-internal.h: Don't include gettext.h here.
51231         * lib/set-mode-acl.c: Include gettext.h here.
51232         * lib/copy-acl.c: Likewise.
51233
51234 2008-06-10  Bruno Haible  <bruno@clisp.org>
51235
51236         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51237         * lib/wait-process.c (wait_subprocess): Likewise.
51238         * lib/execute.h (execute): Add termsigp argument.
51239         * lib/execute.c (execute): Likewise.
51240         * lib/csharpcomp.c (compile_csharp_using_pnet,
51241         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51242         * lib/csharpexec.c (execute_csharp_using_pnet,
51243         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51244         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51245         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51246         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51247         is_jikes_present): Update.
51248         * lib/javaexec.c (execute_java_class): Update.
51249         * lib/javaversion.c (execute_and_read_line): Update.
51250         * NEWS: Document the changes.
51251         Reported by Eric Blake.
51252
51253 2008-06-10  Eric Blake  <ebb9@byu.net>
51254
51255         Add missing include.
51256         * tests/test-strstr.c (includes): Add <signal.h>.
51257         * tests/test-strcasestr.c (includes): Likewise.
51258         * tests/test-memmem.c (includes): Likewise.
51259
51260 2008-06-10  Bruno Haible  <bruno@clisp.org>
51261
51262         * lib/wait-process.c (wait_subprocess): Add an assertion.
51263
51264 2008-06-10  Bruno Haible  <bruno@clisp.org>
51265
51266         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51267
51268 2008-06-10  Bruno Haible  <bruno@clisp.org>
51269
51270         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51271         using alarm().
51272         * tests/test-strcasestr.c (main): Likewise.
51273         * tests/test-strstr.c (main): Likewise.
51274
51275 2008-06-09  Bruno Haible  <bruno@clisp.org>
51276
51277         Work around the Solaris 10 ACE ACLs ABI change.
51278         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51279         declare if ACL_NO_TRIVIAL is present.
51280         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51281         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51282         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51283         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51284         define if ACL_NO_TRIVIAL is present.
51285         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51286         and use the current ABI.
51287         (file_has_acl): Use same #if condition as elsewhere.
51288         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51289         in use, and use the current ABI.
51290         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51291         Reported by Jim Meyering.
51292
51293 2008-06-09  Eric Blake  <ebb9@byu.net>
51294
51295         Work around environments that (stupidly) ignore SIGALRM.
51296         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51297         before using alarm().
51298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51299         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51300         Reported by Ian Beckwith <ianb@erislabs.net>.
51301
51302         Produce autobuild blurb earlier in log.
51303         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51304
51305 2008-06-09  Jim Meyering  <meyering@redhat.com>
51306         and OndÅ™ej Vašík  <ovasik@redhat.com>
51307
51308         utimens.c: correct kernel bug work-around
51309         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51310         failure, not success, and the kernel bug we're trying to work
51311         around affects not just the utimensat call, but also the fallback
51312         futimens call.
51313         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51314         not success.
51315         [HAVE_FUTIMENS]: Use the same work-around, here.
51316
51317 2008-06-09  Jim Meyering  <meyering@redhat.com>
51318
51319         add more guards around definition of ACE_-related code
51320         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51321         ALLOW and ACE_OWNER are also defined.
51322
51323 2008-06-08  Bruno Haible  <bruno@clisp.org>
51324
51325         * lib/acl-internal.h: Add me as co-author.
51326         * lib/file-has-acl.c: Likewise.
51327         * lib/set-mode-acl.c: Likewise.
51328         * lib/copy-acl.c: Likewise.
51329
51330 2008-06-08  Bruno Haible  <bruno@clisp.org>
51331
51332         Add support for AIX ACLs.
51333         * lib/acl-internal.h (acl_nontrivial): New declaration.
51334         * lib/file-has-acl.c (acl_nontrivial): New function.
51335         (file_has_acl): Add implementation using AIX 4 ACL API.
51336         * lib/set-mode-acl.c (qset_acl): Likewise.
51337         * lib/copy-acl.c (qcopy_acl): Likewise.
51338
51339 2008-06-08  Bruno Haible  <bruno@clisp.org>
51340
51341         Add support for HP-UX ACLs.
51342         * lib/acl-internal.h (acl_nontrivial): New declaration.
51343         * lib/file-has-acl.c (acl_nontrivial): New function.
51344         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51345         * lib/set-mode-acl.c (qset_acl): Likewise.
51346         * lib/copy-acl.c (qcopy_acl): Likewise.
51347
51348 2008-06-08  Bruno Haible  <bruno@clisp.org>
51349
51350         Add support for Cygwin ACLs.
51351         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51352         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51353         the chmod_or_fchmod call.
51354         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51355
51356 2008-06-08  Bruno Haible  <bruno@clisp.org>
51357
51358         Fix bug with setuid modes in Solaris 10+ code.
51359         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51360         succeeded, when the mode contains some special bits.
51361
51362 2008-06-08  Bruno Haible  <bruno@clisp.org>
51363
51364         Add support for Solaris 7..10 ACLs.
51365         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51366         declarations.
51367         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51368         functions.
51369         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51370         * lib/set-mode-acl.c (qset_acl): Likewise.
51371         * lib/copy-acl.c (qcopy_acl): Likewise.
51372
51373 2008-06-08  Bruno Haible  <bruno@clisp.org>
51374
51375         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51376         declaration.
51377         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51378         (acl_access_nontrivial): Remove MacOS X case.
51379         (file_has_acl): Use acl_extended_nontrivial.
51380         * lib/copy-acl.c (qcopy_acl): Likewise.
51381
51382 2008-06-08  Bruno Haible  <bruno@clisp.org>
51383
51384         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51385
51386 2008-06-08  Jim Meyering  <meyering@redhat.com>
51387
51388         * modules/acl (Maintainer): Add Bruno Haible.
51389
51390 2008-06-07  Bruno Haible  <bruno@clisp.org>
51391
51392         Improve support for Tru64 ACLs.
51393         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51394         ACL on OSF/1.
51395
51396 2008-06-07  Bruno Haible  <bruno@clisp.org>
51397
51398         Add support for MacOS X ACLs.
51399         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51400         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51401         * lib/set-mode-acl.c (qset_acl): Likewise.
51402         * lib/copy-acl.c (qcopy_acl): Likewise.
51403
51404 2008-06-07  Bruno Haible  <bruno@clisp.org>
51405
51406         Fix memory leak introduced on 2008-05-22.
51407         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51408         use.
51409
51410 2008-06-07  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51413         to construct an empty ACL.
51414
51415 2008-06-07  Bruno Haible  <bruno@clisp.org>
51416
51417         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51418         precisely.
51419         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51420
51421 2008-06-07  Bruno Haible  <bruno@clisp.org>
51422
51423         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51424         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51425
51426 2008-06-07  Bruno Haible  <bruno@clisp.org>
51427
51428         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51429         regardless of POSIX.
51430         * doc/posix-functions/_longjmp.texi: Likewise.
51431         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51432         SystemV platform in this case.
51433
51434 2008-06-06  Eric Blake  <ebb9@byu.net>
51435
51436         Document abort() bugs.
51437         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51438
51439         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51440         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51441         sigsetjmp.
51442         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51443         siglongjmp, but only as a macro.
51444         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51445         is obsolete.
51446         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51447
51448         Tweak documentation to cover cygwin argz bugs.
51449         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51450         argz bug fix; no code change needed since no cygwin releases
51451         occurred between the last fix and the bug being tested.
51452         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51453         module and recently fixed cygwin bugs.
51454         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51455         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51456         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51457         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51458         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51459         Likewise.
51460         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51461         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51462         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51463         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51464         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51465         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51466         Likewise.
51467
51468         Avoid gcc warning on cygwin.
51469         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51470         !ACL_NO_TRIVIAL]: Avoid unused variable.
51471
51472 2008-06-05  Eric Blake  <ebb9@byu.net>
51473
51474         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51475         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51476         git-version-gen fails to come up with a version.
51477         Reported by Simon Josefsson.
51478
51479 2008-06-05  Jim Meyering  <meyering@redhat.com>
51480             Paul Eggert  <eggert@cs.ucla.edu>
51481
51482         utimens.c: work around a probable Linux kernel bug
51483         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51484         appears to be a kernel bug that causes utimensat to return 280
51485         instead of 0, indicating success.
51486
51487 2008-06-04  Bruno Haible  <bruno@clisp.org>
51488
51489         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51490         2008-06-01 commit.
51491
51492 2008-06-04  Bruno Haible  <bruno@clisp.org>
51493
51494         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51495         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51496         (file_has_acl): Use it. Save errno afterwards.
51497         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51498
51499 2008-06-03  Bruno Haible  <bruno@clisp.org>
51500
51501         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51502         draft code. Simplify #ifs.
51503         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51504         Put Solaris code after POSIX-draft code. Fix comments regarding
51505         Solaris 10, HP-UX. Mention Cygwin.
51506         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51507
51508 2008-06-03  Eric Blake  <ebb9@byu.net>
51509
51510         Provide fallback for older kernels.
51511         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51512         Provide runtime fallback if kernel lacks support.
51513         Reported by Mike Frysinger.
51514
51515 2008-06-02  Bruno Haible  <bruno@clisp.org>
51516
51517         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51518         it exists.
51519
51520 2008-06-02  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51523         * lib/copy-acl.c (qcopy_acl): Update comment.
51524
51525 2008-06-02  Bruno Haible  <bruno@clisp.org>
51526
51527         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51528         like ACL APIs.
51529
51530 2008-06-02  Bruno Haible  <bruno@clisp.org>
51531
51532         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51533         * tests/test-set-mode-acl.sh: Likewise.
51534         * tests/test-copy-acl.sh: Likewise.
51535         * tests/test-copy-file.sh: Likewise.
51536
51537 2008-06-02  Bruno Haible  <bruno@clisp.org>
51538
51539         * tests/test-file-has-acl.sh: Remove unused code.
51540
51541 2008-06-01  Bruno Haible  <bruno@clisp.org>
51542
51543         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51544         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51545         messages.
51546         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51547
51548 2008-06-01  Bruno Haible  <bruno@clisp.org>
51549
51550         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51551         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51552         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51553         APIs.
51554         * modules/acl-tests (configure.ac): Remove tests now contained in
51555         m4/acl.m4.
51556
51557 2008-06-02  Jim Meyering  <meyering@redhat.com>
51558
51559         announce-gen: use a better key-server host name
51560         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51561         it may be more consistently reliable.  Suggested by Werner Koch
51562         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51563
51564 2008-06-01  Bruno Haible  <bruno@clisp.org>
51565
51566         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51567         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51568
51569 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51570
51571         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51572
51573 2008-06-01  Bruno Haible  <bruno@clisp.org>
51574
51575         New ACL tests.
51576         * tests/test-file-has-acl.sh: New file.
51577         * tests/test-file-has-acl.c: New file.
51578         * tests/test-set-mode-acl.sh: New file.
51579         * tests/test-set-mode-acl.c: New file.
51580         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51581         * tests/test-copy-acl.c: New file.
51582         * modules/acl-tests: New file, based on modules/copy-file-tests.
51583         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51584         (Depends-on): Add acl-tests.
51585         (configure.ac): Remove checks.
51586         (Makefile.am): Don't create test-sameacls program here any more.
51587
51588 2008-06-01  Bruno Haible  <bruno@clisp.org>
51589
51590         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51591         * tests/test-sameacls.c: Include progname.h.
51592         (main): Invoke set_program_name. Portability fixes for MacOS X,
51593         Solaris, HP-UX.
51594
51595 2008-06-01  Bruno Haible  <bruno@clisp.org>
51596
51597         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51598         function.
51599         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51600
51601 2008-06-01  Bruno Haible  <bruno@clisp.org>
51602
51603         * modules/rpmatch (Depends-on): Add strdup.
51604
51605 2008-06-01  Bruno Haible  <bruno@clisp.org>
51606
51607         * lib/pipe.c: Include unistd-safer.h.
51608         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51609         * modules/pipe (Depends-on): Add unistd-safer.
51610
51611 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51612
51613         * modules/autobuild (configure.ac): Call AB_INIT.
51614
51615 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51616
51617         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51618         Suggested by Bruno Haible <bruno@clisp.org>.
51619
51620 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51621
51622         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51623         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51624         <bruno@clisp.org>.
51625
51626 2008-05-29  Eric Blake  <ebb9@byu.net>
51627
51628         Prefer new POSIX 200x interfaces over futimesat.
51629         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51630         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51631         when available.
51632         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51633
51634 2008-05-28  Bruno Haible  <bruno@clisp.org>
51635
51636         * modules/stpcpy (License): Change to LGPLv2+.
51637         Requested by David Lutterkort <dlutter@redhat.com>.
51638
51639 2008-05-27  Bruno Haible  <bruno@clisp.org>
51640
51641         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51642         current mingw.
51643         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51644
51645 2008-05-27  Bruno Haible  <bruno@clisp.org>
51646
51647         * modules/iconv_open (Link): New section, from module 'iconv'.
51648         * modules/striconv (Link): Likewise.
51649         * modules/striconveh (Link): Likewise.
51650         * modules/xstriconv (Link): Likewise.
51651         * modules/unicodeio (Link): Likewise.
51652         * modules/propername (Link): Likewise.
51653         Reported by Jim Meyering.
51654
51655 2008-05-26  Jim Meyering  <meyering@redhat.com>
51656
51657         sha256: do not artificially restrict buffer length to be < 2^32
51658         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51659         uint32_t to size_t.
51660         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51661         to match.
51662
51663         avoid unaligned access errors, e.g., on sparc
51664         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51665         direct access through a possibly-unaligned uint64* pointer.
51666         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51667         direct access through a possibly-unaligned uint32* pointer.
51668         Prompted by this patch from Tom "spot" Callaway:
51669         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51670
51671         sha512.c: fix typo in comment
51672         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51673
51674 2008-05-25  Bruno Haible  <bruno@clisp.org>
51675
51676         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51677         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51678         (Makefile.am): Update lib_SOURCES.
51679
51680 2008-05-25  Bruno Haible  <bruno@clisp.org>
51681
51682         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51683
51684 2008-05-25  Jim Meyering  <meyering@redhat.com>
51685
51686         useless-if-before-free: freed expr may have white-space differences
51687         * build-aux/useless-if-before-free: Recognize cases in which the
51688         freed expression differs from the tested one in embedded white
51689         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51690         $1 was used, so we can't make any regexp shy.  Improved tests now
51691         detect this.
51692
51693         useless-if-before-free: accept white space in the expression.
51694         * build-aux/useless-if-before-free: For now, any white space
51695         in the expression must be identical in the free argument.
51696
51697         useless-if-before-free: efficiency tweak
51698         * build-aux/useless-if-before-free: Make the expression-matching
51699         regexp "shy".
51700         Make the *outer* regexp shy, not the expr-matching one.
51701
51702         update code-in-comment to accept cast of free arg
51703         * build-aux/useless-if-before-free: Update regexp.
51704
51705 2008-05-25  Bruno Haible  <bruno@clisp.org>
51706
51707         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51708         * modules/copy-file-tests (Files, Makefile.am): Update.
51709         * tests/test-copy-file.c (func_test_copy): Update.
51710
51711 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51712
51713         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51714
51715 2008-05-23  Bruno Haible  <bruno@clisp.org>
51716
51717         Improve support for ACLs on OSF/1.
51718         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51719         Remove fallback for unknown flavors of ACLs.
51720
51721 2008-05-22  Bruno Haible  <bruno@clisp.org>
51722
51723         Add support for ACLs on OSF/1.
51724         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51725         replacements.
51726         (acl_free_text): New macro fallback.
51727         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51728         acl_free.
51729         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51730         acl_free_text function. Require AC_C_INLINE.
51731
51732 2008-05-22  Bruno Haible  <bruno@clisp.org>
51733
51734         Make copy_acl work on MacOS X 10.5.
51735         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51736         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51737         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51738         If MODE_INSIDE_ACL, don't assume that every system has the same text
51739         representation for ACLs as FreeBSD.
51740         * lib/copy-acl.c (copy_acl): Add support for platforms with
51741         !MODE_INSIDE_ACL.
51742         * lib/file-has-acl.c (file_has_acl): Likewise.
51743         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51744         FreeBSD, MacOS X, or IRIX, respectively.
51745
51746 2008-05-22  Bruno Haible  <bruno@clisp.org>
51747
51748         * lib/acl.h: Don't include <sys/acl.h>.
51749         (GETACLCNT): Move fallback to lib/acl-internal.h.
51750         * lib/acl-internal.h: Include <sys/acl.h> here.
51751         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51752
51753 2008-05-22  Bruno Haible  <bruno@clisp.org>
51754
51755         Split off copy_acl function to separate file.
51756         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51757         * lib/acl.c (copy_acl): Moved function to separate file.
51758         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51759         * modules/acl (Files): Add lib/copy-acl.c.
51760         (Makefiles.am): Augment lib_SOURCES.
51761
51762 2008-05-22  Bruno Haible  <bruno@clisp.org>
51763
51764         * modules/copy-file-tests: New file.
51765         * tests/test-copy-file.sh: New file.
51766         * tests/test-copy-file.c: New file.
51767         * tests/test-copy-file-sameacls.c: New file.
51768
51769 2008-05-22  Eric Blake  <ebb9@byu.net>
51770
51771         Avoid gcc warning.
51772         * tests/test-memcmp.c (main): Pass NULL indirectly.
51773
51774 2008-05-21  Bruno Haible  <bruno@clisp.org>
51775
51776         Add reference doc about ACLs.
51777         * doc/acl-resources.txt: New file.
51778         * doc/acl-cygwin.txt: New file.
51779
51780 2008-05-21  Bruno Haible  <bruno@clisp.org>
51781
51782         Avoid one more warning from gcc.
51783         * lib/vasnprintf.c (IF_LINT): Update comments.
51784         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51785
51786 2008-05-21  Jim Meyering  <meyering@redhat.com>
51787
51788         avoid a warning from gcc
51789         * lib/vasnprintf.c (IF_LINT): Define.
51790         (scale10_round_decimal_long_double):
51791         Use it to avoid a "may be used uninitialized" warning.
51792         (scale10_round_decimal_double): Likewise.
51793
51794 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51795
51796         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51797         declared.
51798
51799 2008-05-20  Bruno Haible  <bruno@clisp.org>
51800
51801         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51802         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51803
51804 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51805
51806         * modules/memcmp-tests: New file.
51807         * tests/test-memcmp.c: New file.
51808
51809 2008-05-19  Bruno Haible  <bruno@clisp.org>
51810
51811         * modules/propername (Notice, configure.ac): Put quoted "..." into
51812         --keyword option.
51813         * lib/propername.h: Update comments accordingly.
51814         Reported by Eric Blake.
51815
51816 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51817
51818         * modules/getpass-gnu (Depends-on): Add fseeko.
51819
51820 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51821
51822         * modules/base64-tests: New file.
51823
51824 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51825
51826         * lib/base64.c (base64_decode_ctx): If a decode context structure
51827         was passed in use it to ignore newlines.  If a context structure
51828         was _not_ passed in, continue to treat newlines as garbage (this
51829         is the historical behavior).  Formerly base64_decode.
51830         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51831         takes a decode context structure.
51832         * lib/base64.h (base64_decode): Macro for four-argument calls.
51833         (base64_decode_alloc): Likewise.
51834         * lib/base64.c (base64_decode_ctx): If a decode context structure
51835         was passed in use it to ignore newlines.  If a context structure
51836         was _not_ passed in, continue to treat newlines as garbage (this
51837         is the historical behavior).  Formerly base64_decode.
51838         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51839         takes a decode context structure.
51840         * lib/base64.h (base64_decode): Macro for four-argument calls.
51841         (base64_decode_alloc): Likewise.
51842
51843 2008-05-19  Jim Meyering  <meyering@redhat.com>
51844
51845         avoid a warning from gcc
51846         * lib/trim.c (IF_LINT): Define.
51847         (trim2): Use it to avoid a "may be used uninitialized" warning.
51848
51849         Fix doc typo.
51850         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51851
51852 2008-05-19  Bruno Haible  <bruno@clisp.org>
51853
51854         * doc/glibc-functions/getpass.texi: Document limits of other
51855         implementations.
51856
51857 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51858             Bruno Haible <bruno@clisp.org>
51859
51860         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51861
51862 2008-05-18  Bruno Haible  <bruno@clisp.org>
51863
51864         * modules/propername: New file, from GNU gettext.
51865         * lib/propername.h: New file, from GNU gettext.
51866         * lib/propername.c: New file, from GNU gettext.
51867         * MODULES.html.sh (Internationalization functions): Add propername.
51868
51869 2008-05-16  Jim Meyering  <meyering@redhat.com>
51870             Bruno Haible  <bruno@clisp.org>
51871
51872         Avoid some warnings from "gcc -Wshadow".
51873         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51874
51875 2008-05-15  Eric Blake  <ebb9@byu.net>
51876
51877         Extend previous patch to cygwin 1.7.0.
51878         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51879         fast implementation in cygwin >= 1.7.0.
51880         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51881         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51882
51883 2008-05-15  Bruno Haible  <bruno@clisp.org>
51884
51885         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51886         implementation in glibc >= 2.9.
51887         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51889
51890 2008-05-15  Bruno Haible  <bruno@clisp.org>
51891
51892         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51893         (Unicode string functions): Add unilbrk/*.
51894         Reported by Karl Berry.
51895
51896 2008-05-15  Eric Blake  <ebb9@byu.net>
51897
51898         Fix violation of <stdbool.h> replacement in regex.
51899         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51900         * lib/regexec.c (re_search_internal): Likewise.
51901         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51902
51903 2008-05-15  Jim Meyering  <meyering@redhat.com>
51904
51905         avoid distracting test output when git or cvs is not found
51906         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51907         * tests/test-vc-list-files-git.sh: Likewise.
51908
51909 2008-05-15  Eric Blake  <ebb9@byu.net>
51910
51911         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51912         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51913         glibc version.
51914         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51915         * doc/posix-functions/strstr.texi (strstr): Likewise.
51916         * lib/str-two-way.h (MAX): Sychronize with glibc.
51917
51918 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51919
51920         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51921         opr.ctx_type.
51922         (calc_first): Initialize constraint field.
51923         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51924         Fix grammar.
51925         (duplicate_node): Merge constraint field for all node types.
51926         (calc_eclosure_iter): Look at constraint field for all node types.
51927         * lib/regex_internal.c (create_cd_newstate): Don't look at
51928         opr.ctx_type.
51929
51930 2008-05-14  Bruno Haible  <bruno@clisp.org>
51931
51932         Help GCC to do better code generation.
51933         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51934         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51935         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51936         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51937         Declare with attribute 'malloc' if supported.
51938
51939 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51940
51941         use "echo STR|wc -c" rather than unportable "expr length STR"
51942         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51943         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51944
51945 2008-05-14  Jim Meyering  <meyering@redhat.com>
51946
51947         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51948         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51949         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51950         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51951         via Collin Lasse.
51952
51953 2008-05-14  Eric Blake  <ebb9@byu.net>
51954
51955         Avoid quadratic growth in gl_LIBSOURCES.
51956         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51957         Suggested by Bruno Haible.
51958
51959         Test xmemdup0.
51960         * modules/xmemdup0-tests: New file.
51961         * tests/test-xmemdup0.c: Likewise.
51962
51963 2008-05-13  Eric Blake  <ebb9@byu.net>
51964
51965         Split xmemdup0 into its own module.
51966         * modules/xmemdup0: New file.
51967         * lib/xmemdup0.h: Likewise.
51968         * lib/xmemdup0.c: Likewise.
51969         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51970         * lib/xalloc.h (xmemdup0): Remove.
51971         * lib/xmalloc.c (xmemdup0): Likewise.
51972
51973 2008-05-13  Eric Blake  <ebb9@byu.net>
51974             Bruno Haible  <bruno@clisp.org>
51975
51976         Reduce number of forks required during autoconf.
51977         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51978         and gl_LIBSOURCES_DIR.
51979         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51980         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51981         m4_syscmd per file.
51982         <m4_foreach_w>: Move...
51983         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51984
51985 2008-05-13  Eric Blake  <ebb9@byu.net>
51986
51987         * gnulib-tool: Fix various comment typos.
51988
51989 2008-05-12  Bruno Haible  <bruno@clisp.org>
51990
51991         Tailor the linebreaking algorithm.
51992         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51993
51994 2008-05-12  Bruno Haible  <bruno@clisp.org>
51995
51996         Update to Unicode 5.0.0.
51997         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51998         LBP_JV, LBP_JT. Redistribute values.
51999         (unilbrk_table): Change size.
52000         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
52001         Unicode TR#14 rev. 22.
52002         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52003         LBP_JV, LBP_JT. Redistribute values.
52004         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
52005         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
52006         Update.
52007         * lib/unilbrk/lbrkprop1.h: Regenerated.
52008         * lib/unilbrk/lbrkprop2.h: Regenerated.
52009         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
52010         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
52011         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
52012         Likewise.
52013         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
52014         Likewise.
52015         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52016         result.
52017         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52018         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52019         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52020         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52021         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52022         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52023
52024 2008-05-11  Bruno Haible  <bruno@clisp.org>
52025
52026         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52027
52028 2008-05-11  Bruno Haible  <bruno@clisp.org>
52029
52030         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52031         * modules/unilbrk/gen-lbrk: New file.
52032
52033 2008-05-11  Bruno Haible  <bruno@clisp.org>
52034
52035         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52036         * m4/sha512.m4 (gl_SHA512): Likewise.
52037
52038 2008-05-11  Jim Meyering  <meyering@redhat.com>
52039
52040         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52041         * modules/crypto/sha256: New file.
52042         * modules/crypto/sha512: Likewise.
52043         * lib/sha256.c: Likewise.
52044         * lib/sha256.h: Likewise.
52045         * lib/sha512.c: Likewise.
52046         * lib/sha512.h: Likewise.
52047         * lib/u64.h: Likewise.
52048         * m4/sha256.m4: Likewise.
52049         * m4/sha512.m4: Likewise.
52050         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52051
52052 2008-05-10  Bruno Haible  <bruno@clisp.org>
52053
52054         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52055         (Input/Output <stdio.h>): Add xprintf.
52056         (Signal handling <signal.h>): Add strsignal.
52057         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52058         (Core language properties): Add func.
52059         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52060         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52061         strings.
52062         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52063         (Input/output): New section.
52064         (File system functions): Add openat-die, stat-macros.
52065         (Networking functions): Add sockets.
52066         (Unicode string functions): Add unictype/*.
52067         (Support for building libraries and executables): Add gperf.
52068         (Support for building documentation): Add agpl-3.0.
52069         (Misc): Add nocrash.
52070
52071 2008-05-10  Bruno Haible  <bruno@clisp.org>
52072
52073         * modules/unictype/gen-ctype: New file.
52074
52075 2008-05-10  Jim Meyering  <meyering@redhat.com>
52076
52077         Make chdir-safer.c more efficient on a system with no symlinks.
52078         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52079         also if ELOOP is zero.  Suggested by Bruno Haible.
52080
52081         Make chdir-safer.c slightly safer.
52082         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52083         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52084
52085         Avoid compile failure on systems without ELOOP (like mingw).
52086         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52087         Reported by Bruno Haible.
52088
52089 2008-05-10  Bruno Haible  <bruno@clisp.org>
52090
52091         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52092         (is_utf8_encoding): Use a case-insensitive comparison.
52093         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52094         streq.
52095
52096 2008-05-10  Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52099         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52100         * lib/unilbrk/ulc-common.h (iconv_string_length,
52101         iconv_string_keeping_offsets): Remove declarations.
52102         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52103         Don't include <iconv.h>, streq.h, xsize.h.
52104         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52105         conversion.
52106         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52107         <iconv.h>, streq.h, xsize.h.
52108         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52109         conversion.
52110         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52111         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52112         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52113         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52114
52115 2008-05-10  Bruno Haible  <bruno@clisp.org>
52116
52117         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52118         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52119
52120         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52121         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52122
52123         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52124         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52125
52126         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52127         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52128
52129         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52130         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52131
52132         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52133         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52134
52135         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52136         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52137
52138         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52139         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52140
52141 2008-05-10  Bruno Haible  <bruno@clisp.org>
52142
52143         Split up 'linebreak' module.
52144         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52145         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52146         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52147         modifications.
52148         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52149         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52150         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52151         lib/linebreak.c.
52152         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52153         lib/linebreak.c.
52154         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52155         lib/linebreak.c.
52156         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52157         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52158         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52159         lib/linebreak.c.
52160         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52161         lib/linebreak.c.
52162         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52163         lib/linebreak.c.
52164         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52165         lib/linebreak.c.
52166         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52167         lib/linebreak.c.
52168         * modules/unilbrk/base: New file.
52169         * modules/unilbrk/tables: New file.
52170         * modules/unilbrk/u8-possible-linebreaks: New file.
52171         * modules/unilbrk/u16-possible-linebreaks: New file.
52172         * modules/unilbrk/u32-possible-linebreaks: New file.
52173         * modules/unilbrk/ulc-common: New file.
52174         * modules/unilbrk/ulc-possible-linebreaks: New file.
52175         * modules/unilbrk/u8-width-linebreaks: New file.
52176         * modules/unilbrk/u16-width-linebreaks: New file.
52177         * modules/unilbrk/u32-width-linebreaks: New file.
52178         * modules/unilbrk/ulc-width-linebreaks: New file.
52179         * lib/linebreak.h: Remove file.
52180         * lib/linebreak.c: Remove file.
52181         * m4/linebreak.m4: Remove file.
52182         * modules/linebreak: Remove file.
52183         * NEWS: Mention the changes.
52184
52185 2008-05-09  Eric Blake  <ebb9@byu.net>
52186
52187         Add xmemdup0.
52188         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52189         implementation.
52190         * lib/xmalloc.c (xmemdup0): New C implementation.
52191
52192 2008-05-08  Bruno Haible  <bruno@clisp.org>
52193
52194         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52195
52196 2008-05-07  Eric Blake  <ebb9@byu.net>
52197
52198         Support cross-compilation of <wctype.h>.
52199         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52200         AC_CACHE_CHECK.
52201
52202 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52203
52204         * build-aux/vc-list-files: Add support for bzr.
52205
52206 2008-05-03  Jim Meyering  <meyering@redhat.com>
52207
52208         avoid failed assertion with tight malloc
52209         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52210
52211 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52212
52213         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52214         are needed from arpa/inet.h.
52215         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52216         Reported by Bruno Haible.
52217
52218 2008-05-02  Jim Meyering  <meyering@redhat.com>
52219
52220         avoid compilation error on FreeBSD 6
52221         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52222
52223 2008-05-01  Jim Meyering  <meyering@redhat.com>
52224
52225         useless-if-before-free: correct --help's exit status description
52226         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52227         for one or more matches, etc.  Reported by Bruno Haible.
52228
52229         vc-list-files: make the stand-alone gnulib test work
52230         * modules/vc-list-files-tests (configure.ac):
52231         Define and AC_SUBST abs_aux_dir.
52232         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52233         $(abs_top_srcdir) to each script and having each of them
52234         duplicate the work of setting PATH, set PATH here, using
52235         the new variable, abs_aux_dir instead.
52236         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52237         * tests/test-vc-list-files-git.sh: Likewise.
52238         Reported by Bruno Haible.
52239
52240 2008-05-01  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52243         reallocation. Rename 'done' to 'found_delimiter'.
52244
52245 2008-05-01  Jim Meyering  <meyering@redhat.com>
52246
52247         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52248         * build-aux/vc-list-files: Use `...`, not $(...).
52249
52250 2008-04-30  Jim Meyering  <meyering@redhat.com>
52251
52252         add tests for vc-list-files
52253         * modules/vc-list-files-tests: New module.
52254         * tests/test-vc-list-files-cvs.sh: New file.
52255         * tests/test-vc-list-files-git.sh: New file.
52256
52257         avoid a warning from gcc
52258         * lib/getndelim2.c (IF_LINT): Define.
52259         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52260
52261         vc-list-files: work properly with build-aux/cvsu, too
52262         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52263         to all cvs-based clauses.
52264
52265         vc-list-files: work properly in the CVS+awk case, too
52266         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52267
52268         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52269         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52270         take more than one file argument, so .  Add quotes, just in case $dir
52271         ever contains a shell meta-character.  Prompted by Soren Hansen in
52272         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52273
52274 2008-04-29  Eric Blake  <ebb9@byu.net>
52275
52276         Optimize getndelim2 to use block operations when possible.
52277         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52278         freadseek, and memchr2.
52279         * lib/getndelim2.c (getndelim2): Use them for block reads.
52280
52281 2008-04-29  Bruno Haible  <bruno@clisp.org>
52282
52283         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52284         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52285         * modules/inet_ntop (Depends-on): Add extensions.
52286         * modules/inet_pton (Depends-on): Likewise.
52287         Reported by Simon Josefsson.
52288
52289 2008-04-29  Jim Meyering  <meyering@redhat.com>
52290
52291         When the is more than one match in a block, match all of them.
52292         * build-aux/useless-if-before-free: Iterate through each block
52293         until there are no more matches.
52294
52295         Fix broken useless-if-before-free script.
52296         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52297         the expression to match cast of argument to free-like function.
52298
52299 2008-04-29  Eric Blake  <ebb9@byu.net>
52300
52301         Use new header.
52302         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52303
52304 2008-04-29  Jim Meyering  <meyering@redhat.com>
52305
52306         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52307         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52308         by gnulib to exist and to declare e.g., inet_ntop.
52309         Don't include "inet_ntop.h", now removed.
52310
52311         * m4/arpa_inet_h.m4: Remove trailing blanks.
52312
52313 2008-04-29  Eric Blake  <ebb9@byu.net>
52314
52315         Silence valgrind on safe reads beyond potential array bounds.
52316         * lib/rawmemchr.valgrind: New file.
52317         * lib/strchrnul.valgrind: Likewise.
52318         * modules/rawmemchr (Files): Distribute new file.
52319         * modules/strchrnul (Files): Likewise.
52320         Suggested by Bruno Haible.
52321
52322 2008-04-29  Bruno Haible  <bruno@clisp.org>
52323
52324         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52325         (inet_ntop, inet_pton): Change portability warning's wording.
52326         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52327         Invoke gl_CHECK_NEXT_HEADERS.
52328         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52329         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52330         set ARPA_INET_H.
52331         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52332         * modules/arpa_inet (Description): No longer only for systems that
52333         lack it.
52334         (Depends-on): Add include_next.
52335         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52336         HAVE_ARPA_INET_H.
52337
52338 2008-04-29  Jim Meyering  <meyering@redhat.com>
52339
52340         * modules/mkdir (License): Re-license as LGPLv2+.
52341
52342 2008-04-29  Bruno Haible  <bruno@clisp.org>
52343
52344         * modules/rawmemchr (Maintainer): Set to Eric.
52345         * modules/strchrnul (Maintainer): Likewise.
52346
52347 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52348
52349         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52350         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52351
52352         * modules/arpa_inet (arpa/inet.h): Use them.
52353
52354 2008-04-28  Eric Blake  <ebb9@byu.net>
52355
52356         Test getndelim2.
52357         * modules/getndelim2-tests: New file.
52358         * tests/test-getndelim2.c: Likewise.
52359         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52360         stream.
52361         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52362
52363         * MODULES.html.sh: Document new module.
52364
52365 2008-04-20  Bruno Haible  <bruno@clisp.org>
52366
52367         * lib/c-stack.c (die): Use raise.
52368         * modules/c-stack (Depends-on): Add raise.
52369
52370 2008-04-28  Bruno Haible  <bruno@clisp.org>
52371
52372         Expect rpmatch to be declared.
52373         * lib/yesno.c (rpmatch): Remove declaration.
52374
52375         Declare rpmatch.
52376         * lib/stdlib.in.h (rpmatch): New declaration.
52377         * lib/rpmatch.c: Include <stdlib.h> first.
52378         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52379         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52381         HAVE_RPMATCH.
52382         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52383         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52384         (Include): Set to <stdlib.h>.
52385         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52386         HAVE_RPMATCH.
52387         * NEWS: Document the change.
52388
52389 2008-04-28  Bruno Haible  <bruno@clisp.org>
52390
52391         Change rpmatch to use nl_langinfo when appropriate.
52392         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52393         (N_): New macro.
52394         (localized_pattern): New function/macro.
52395         (try): Remove match, nomatch arguments. Copy the pattern into safe
52396         memory before caching it.
52397         (rpmatch): Use localized_pattern. Add translator comments.
52398         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52399         Suggested by Eric Blake.
52400         * modules/rpmatch (Depends-on): Add stdbool.
52401
52402 2008-04-28  Eric Blake  <ebb9@byu.net>
52403
52404         Add rawmemchr module, matching glibc.
52405         * modules/string (Makefile.am): New indicator.
52406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52407         * lib/string.in.h (rawmemchr): Declare when appropriate.
52408         * modules/rawmemchr: New file.
52409         * m4/rawmemchr.m4: Likewise.
52410         * lib/rawmemchr.c: Likewise.
52411         * modules/rawmemchr-tests: Likewise.
52412         * tests/test-rawmemchr.c: Likewise.
52413         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52414         module.
52415         * modules/strchrnul (Depends-on): Add rawmemchr.
52416         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52417
52418         Whitespace cleanup.
52419         * tests/test-strchrnul.c: Reindent.
52420         * lib/strchrnul.c: Likewise.
52421
52422         Optimize and test strchrnul.
52423         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52424         * modules/strchrnul-tests: New file.
52425         * tests/test-strchrnul.c: Likewise.
52426
52427         Remove intprops dependency.
52428         * modules/memchr (Depends-on): Remove intprops.
52429         * modules/memrchr (Depends-on): Likewise.
52430         * modules/memchr2 (Depends-on): Likewise.
52431         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52432         * lib/memrchr.c (__memrchr): Likewise.
52433         * lib/memrchr2.c (memchr2): Likewise.
52434         Reported by Simon Josefsson.
52435
52436 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52437
52438         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52439         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52440
52441 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52442
52443         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52444
52445         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52446
52447         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52448
52449         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52450         declarations.
52451         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52452
52453         * m4/inet_pton.m4: Don't check for header files.
52454
52455         * m4/inet_ntop.m4: Don't check for header files.
52456
52457 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52458
52459         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52460         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52461         trigger for cygwin).
52462         Reported by Bruno Haible  <bruno@clisp.org>.
52463
52464 2008-04-28  Bruno Haible  <bruno@clisp.org>
52465
52466         * doc/posix-functions/strdup.texi: Mention mingw problem.
52467
52468 2008-04-27  Bruno Haible  <bruno@clisp.org>
52469
52470         * modules/stat-time-tests (Depends-on): Add sleep.
52471         * tests/test-stat-time.c (force_unlink): New function.
52472         (cleanup): Use it.
52473         (test_mtime): Remove the ctime related tests.
52474         (test_ctime): New function, containing the ctime related tests.
52475         (main): Call test_ctime, except on native Windows platforms.
52476
52477 2008-04-27  Bruno Haible  <bruno@clisp.org>
52478
52479         * lib/rpmatch.c (rpmatch): Add some comments.
52480         Reported by James Youngman <jay@gnu.org>.
52481
52482 2008-04-27  Bruno Haible  <bruno@clisp.org>
52483
52484         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52485         quiet NaNs.
52486
52487 2008-04-27  Bruno Haible  <bruno@clisp.org>
52488
52489         Make test-yesno.sh work on mingw.
52490         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52491         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52492         (main): Set stdin to binary mode.
52493         * modules/yesno-tests (Depends-on): Add binary-io.
52494
52495 2008-04-27  Bruno Haible  <bruno@clisp.org>
52496
52497         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52498         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52499         argument that lie outside the IEEE 854 domain.
52500         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52501         (gl_ISFINITE): Use it.
52502         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52503
52504 2008-04-27  Bruno Haible  <bruno@clisp.org>
52505
52506         Allow local renaming in config.h.
52507         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52508
52509 2008-04-27  Bruno Haible  <bruno@clisp.org>
52510
52511         * lib/memchr.c (__memchr): Change type of 'i'.
52512         * lib/memchr2.c (memchr2): Likewise.
52513
52514 2008-04-26  Eric Blake  <ebb9@byu.net>
52515         and Bruno Haible  <bruno@clisp.org>
52516
52517         Optimize and test memrchr.
52518         * modules/memrchr (Depends-on): Add intprops.
52519         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52520         * modules/memrchr-tests: New file.
52521         * tests/test-memrchr.c: New file.
52522
52523 2008-04-26  Bruno Haible  <bruno@clisp.org>
52524
52525         Add tentative support for DragonFly BSD.
52526         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52527         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52528         fp.
52529         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52530         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52531         * lib/fpurge.c (fpurge): Likewise.
52532         * lib/freadable.c (freaadable): Likewise.
52533         * lib/freadahead.c (freadahead): Likewise.
52534         * lib/freading.c (freading): Likewise.
52535         * lib/freadptr.c (freadptr): Likewise.
52536         * lib/freadseek.c (freadptrinc): Likewise.
52537         * lib/fseeko.c (fseeko): Likewise.
52538         * lib/fseterr.c (fseterr): Likewise.
52539         * lib/fwritable.c (fwritable): Likewise.
52540         * lib/fwriting.c (fwriting): Likewise.
52541
52542 2008-04-26  Bruno Haible  <bruno@clisp.org>
52543
52544         * lib/stdio-impl.h: New file.
52545         * lib/fbufmode.c: Include stdio-impl.h.
52546         (fbufmode): Use fp_, remove redundant #defines.
52547         * lib/fflush.c: Include stdio-impl.h.
52548         (clear_ungetc_buffer): Remove redundant #defines.
52549         * lib/fpurge.c: Include stdio-impl.h.
52550         (fpurge): Remove redundant #defines.
52551         * lib/freadable.c: Include stdio-impl.h.
52552         (freadable): Remove redundant #defines.
52553         * lib/freadahead.c: Include stdio-impl.h.
52554         (freadahead): Remove redundant #defines.
52555         * lib/freading.c: Include stdio-impl.h.
52556         (freading): Remove redundant #defines.
52557         * lib/freadptr.c: Include stdio-impl.h.
52558         (freadptr): Remove redundant #defines.
52559         * lib/freadseek.c: Include stdio-impl.h.
52560         (freadptrinc): Remove redundant #defines.
52561         * lib/fseeko.c: Include stdio-impl.h.
52562         (rpl_fseeko): Remove redundant #defines.
52563         * lib/fseterr.c: Include stdio-impl.h.
52564         (fseterr): Remove redundant #defines.
52565         * lib/fwritable.c: Include stdio-impl.h.
52566         (fwritable: Remove redundant #defines.
52567         * lib/fwriting.c: Include stdio-impl.h.
52568         (fwriting): Remove redundant #defines.
52569         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52570         * modules/fflush (Files): Likewise.
52571         * modules/fpurge (Files): Likewise.
52572         * modules/freadable (Files): Likewise.
52573         * modules/freadahead (Files): Likewise.
52574         * modules/freading (Files): Likewise.
52575         * modules/freadptr (Files): Likewise.
52576         * modules/freadseek (Files): Likewise.
52577         * modules/fseeko (Files): Likewise.
52578         * modules/fseterr (Files): Likewise.
52579         * modules/fwritable (Files): Likewise.
52580         * modules/fwriting (Files): Likewise.
52581
52582 2008-04-26  Bruno Haible  <bruno@clisp.org>
52583
52584         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52585         restore_seek_optimization, update_fpos_cache): New functions, extracted
52586         from rpl_fflush.
52587         (rpl_fflush): Use them.
52588         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52589         (gl_REPLACE_FFLUSH): Use it.
52590
52591 2008-04-26  Bruno Haible  <bruno@clisp.org>
52592
52593         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52594         on Solaris.
52595         * tests/test-xstrtoimax.sh: Likewise.
52596         * tests/test-xstrtoumax.sh: Likewise.
52597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52598
52599 2008-04-26  Bruno Haible  <bruno@clisp.org>
52600
52601         * modules/memchr-tests: New file.
52602         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52603
52604 2008-04-26  Eric Blake  <ebb9@byu.net>
52605             Bruno Haible  <bruno@clisp.org>
52606
52607         * lib/memchr.c: Include intprops.h.
52608         (__memchr): Optimize parallel detection of matching bytes. Rename local
52609         variables. Add explanatory comments.
52610
52611 2008-04-26  Bruno Haible  <bruno@clisp.org>
52612
52613         Fix module 'memchr', broken since 2000-10-28.
52614         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52615
52616 2008-04-26  Bruno Haible  <bruno@clisp.org>
52617
52618         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52619         comments.
52620
52621 2008-04-25  Eric Blake  <ebb9@byu.net>
52622
52623         Use native fstatat on cygwin 1.7.0.
52624         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52625         first.
52626
52627 2008-04-23  Eric Blake  <ebb9@byu.net>
52628
52629         Improve memchr2 performance.
52630         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52631         NUL bytes.
52632         * modules/memchr2 (Depends-on): Use intprops.h.
52633
52634 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52635
52636         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52637         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52638         <blp@cs.stanford.edu>.
52639
52640 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52641
52642         * lib/arpa_inet.in.h: New file.
52643
52644         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52645         (Makefile.am): Sed in substitute header file.
52646
52647         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52648         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52649
52650         * modules/inet_ntop (configure.ac): Use
52651         gl_ARPA_INET_MODULE_INDICATOR.
52652
52653         * modules/inet_pton (configure.ac): Use
52654         gl_ARPA_INET_MODULE_INDICATOR.
52655
52656 2008-04-22  Jim Meyering  <meyering@redhat.com>
52657
52658         * modules/verify (License): Re-license as LGPLv2+.
52659
52660 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52661
52662         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52663         parameter to void* as per POSIX standard (MinGW uses char*).
52664
52665 2008-04-21  Bruno Haible  <bruno@clisp.org>
52666
52667         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52668         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52669         Define to replacements if REPLACE_ISWCNTRL is 1.
52670         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52671         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52672         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52673         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52674         what it fixes.
52675         * doc/posix-functions/iswalpha.texi: Likewise.
52676         * doc/posix-functions/iswblank.texi: Likewise.
52677         * doc/posix-functions/iswcntrl.texi: Likewise.
52678         * doc/posix-functions/iswdigit.texi: Likewise.
52679         * doc/posix-functions/iswgraph.texi: Likewise.
52680         * doc/posix-functions/iswlower.texi: Likewise.
52681         * doc/posix-functions/iswprint.texi: Likewise.
52682         * doc/posix-functions/iswpunct.texi: Likewise.
52683         * doc/posix-functions/iswspace.texi: Likewise.
52684         * doc/posix-functions/iswupper.texi: Likewise.
52685         * doc/posix-functions/iswxdigit.texi: Likewise.
52686         Reported by Alain Guibert.
52687
52688 2008-04-21  Bruno Haible  <bruno@clisp.org>
52689
52690         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52691         Patch by Alain Guibert.
52692
52693 2008-04-21  Bruno Haible  <bruno@clisp.org>
52694
52695         Fix test failures on mingw.
52696         * tests/test-xstrtol.c (print_no_progname): New function.
52697         (main): Install it in error_print_progname hook.
52698         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52699         * tests/test-xstrtoimax.sh: Likewise.
52700         * tests/test-xstrtoumax.sh: Likewise.
52701
52702 2008-04-21  Bruno Haible  <bruno@clisp.org>
52703
52704         Fix test failure on mingw.
52705         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52706
52707 2008-04-21  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52710         Actually assign a value.
52711
52712 2008-04-20  Bruno Haible  <bruno@clisp.org>
52713
52714         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52715         take 2.
52716         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52717         'canonicalize-lgpl' module is also used.
52718         * lib/canonicalize-lgpl.c: Undo last change.
52719         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52720
52721 2008-04-20  Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52724         config.h. Provide _mkdir based fallback for mingw.
52725         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52726         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52727         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52728         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52729         rather than defining mkdir in config.h.
52730         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52731         (gl_SYS_STAT_H_DEFAULTS): New macro.
52732         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52733         HAVE_IO_H any more.
52734         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52735         HAVE_DECL_MKDIR and HAVE_IO_H.
52736
52737 2008-04-20  Bruno Haible  <bruno@clisp.org>
52738
52739         * lib/isapipe.c: Port to native Windows platforms.
52740
52741 2008-04-20  Bruno Haible  <bruno@clisp.org>
52742
52743         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52744
52745 2008-04-21  Eric Blake  <ebb9@byu.net>
52746
52747         Work around preprocessors that don't handle UINTMAX_MAX.
52748         * lib/memchr2.c (memchr2): Avoid embedded #if.
52749         Reported by Alain Guibert, fix suggested by Bruno Haible.
52750
52751 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52752
52753         * doc/posix-functions/strftime.texi (strftime): Explain better
52754         Windows incompatibility.  Suggested by Micah Cowan
52755         <micah@cowan.name>.
52756
52757 2008-04-20  Bruno Haible  <bruno@clisp.org>
52758
52759         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52760         unistr/u8-mblen.
52761
52762 2008-04-20  Bruno Haible  <bruno@clisp.org>
52763
52764         Fix test failure on platforms with non-GNU iconv.
52765         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52766         (U_TO_U8): Use it, rather than u16_to_u8.
52767         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52768         units at the end of the input string.
52769         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52770
52771 2008-04-20  Bruno Haible  <bruno@clisp.org>
52772
52773         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52774         when the resulting length is 0.
52775         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52776
52777 2008-04-20  Bruno Haible  <bruno@clisp.org>
52778
52779         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52780         works.
52781         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52782
52783 2008-04-20  Bruno Haible  <bruno@clisp.org>
52784
52785         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52786         * modules/tsearch-tests (configure.ac): Test for initstate function.
52787
52788 2008-04-20  Bruno Haible  <bruno@clisp.org>
52789
52790         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52791         for nlink_t if missing.
52792         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52793
52794 2008-04-19  Bruno Haible  <bruno@clisp.org>
52795
52796         Work around snprintf bug on Linux libc5.
52797         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52799         gl_SNPRINTF_SIZE1.
52800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52801         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52802         that test failed.
52803         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52804         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52805         * modules/snprintf (Files): Add m4/printf.m4.
52806         * modules/vsnprintf (Files): Likewise.
52807         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52808         * doc/posix-functions/vsnprintf.texi: Likewise.
52809
52810 2008-04-19  Bruno Haible  <bruno@clisp.org>
52811
52812         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52813         from 0.0058 to less than 10^-7.
52814
52815 2008-04-19  Bruno Haible  <bruno@clisp.org>
52816
52817         Fix rounding when a precision is given.
52818         * lib/vasnprintf.c (is_borderline): New function.
52819         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52820         9...9x.
52821         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52822         %e, %g.
52823         * tests/test-vasprintf-posix.c (test_function): Likewise.
52824         * tests/test-snprintf-posix.h (test_function): Likewise.
52825         * tests/test-sprintf-posix.h (test_function): Likewise.
52826         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52827         * tests/test-printf-posix.h (test_function): Likewise.
52828         * tests/test-printf-posix.output: Update.
52829         Reported by John Darrington <john@darrington.wattle.id.au> via
52830         Ben Pfaff <blp@cs.stanford.edu>.
52831
52832 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52833
52834         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52835         Suggested by Bruno Haible <bruno@clisp.org>.
52836
52837 2008-04-17  Bruno Haible  <bruno@clisp.org>
52838
52839         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52840         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52841         implementation.
52842         Patch by Bruce Merry <bmerry@gmail.com>.
52843
52844 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52845
52846         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52847         doesn't work under Windows.
52848
52849 2008-04-16  Bruno Haible  <bruno@clisp.org>
52850
52851         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52852         New macros.
52853         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52854         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52855         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52856         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52857         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52858         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52859         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52860         macros.
52861         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52862         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52863         Northern Sotho, Uighur.
52864
52865 2008-04-16  Bruno Haible  <bruno@clisp.org>
52866
52867         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52868         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52869         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52870         Reported by Daniel Bergström <daniel@octocode.com>.
52871
52872 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52873             Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52876         function.
52877         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52878         New functions, mostly extracted from gl_locale_name_default.
52879         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52880
52881 2008-04-16  Eric Blake  <ebb9@byu.net>
52882
52883         Adjust strtod detection to catch glibc 2.7 bug.
52884         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52885         Reported by John Gatewood Ham.
52886
52887 2008-04-16  Bruno Haible  <bruno@clisp.org>
52888
52889         Add tentative support for Linux libc5.
52890         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52891         * lib/fpurge.c (fpurge): Likewise.
52892         * lib/freadable.c (freadable): Likewise.
52893         * lib/freadahead.c (freadahead): Likewise.
52894         * lib/freading.c (freading): Likewise.
52895         * lib/freadptr.c (freadptr): Likewise.
52896         * lib/freadseek.c (freadptrinc): Likewise.
52897         * lib/fseeko.c (rpl_fseeko): Likewise.
52898         * lib/fseterr.c (fseterr): Likewise.
52899         * lib/fwritable.c (fwritable): Likewise.
52900         * lib/fwriting.c (fwriting): Likewise.
52901         Reported by Alain Guibert <alguibert+bts@free.fr>.
52902
52903 2008-04-15  Bruno Haible  <bruno@clisp.org>
52904
52905         * modules/mathl (configure.ac): Define module indicator.
52906
52907 2008-04-15  Bruno Haible  <bruno@clisp.org>
52908
52909         * lib/logl.c (logl): Remove unused variables.
52910
52911 2008-04-15  Bruno Haible  <bruno@clisp.org>
52912
52913         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52914         fails.
52915
52916 2008-04-15  Bruno Haible  <bruno@clisp.org>
52917
52918         * lib/trim.c (trim2): Fix argument of isspace() macro.
52919
52920 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52921
52922         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52923         to 0.
52924         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52925
52926 2008-04-14  Bruno Haible  <bruno@clisp.org>
52927
52928         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52929         AC_LANG_PROGRAM argument.
52930         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52931         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52932         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52933         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52934         * m4/math_h.m4 (gl_MATH_H): Likewise.
52935         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52937         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52938         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52939         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52940         * m4/regex.m4 (gl_REGEX): Likewise.
52941         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52942         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52944         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52945         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52946         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52947         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52948         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52949
52950 2008-04-14  Jim Meyering  <meyering@redhat.com>
52951
52952         test-strtod: fix typos: s/abs/fabs/
52953         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52954
52955 2008-04-13  Bruno Haible  <bruno@clisp.org>
52956
52957         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52958         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52959         module is also used and while not building the reloc-wrapper.
52960
52961 2008-04-13  Bruno Haible  <bruno@clisp.org>
52962
52963         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52964
52965 2008-04-13  Bruno Haible  <bruno@clisp.org>
52966
52967         Fix AIX compilation failure introduced on 2008-04-02.
52968         * tests/test-frexp.c (exp): Undefine before redefining.
52969         * tests/test-frexpl.c (exp): Likewise.
52970
52971 2008-04-13  Bruno Haible  <bruno@clisp.org>
52972
52973         Work around a HP-UX stdio bug.
52974         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52975         * tests/test-ftello.c (main): Likewise.
52976         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52977         * doc/posix-functions/ftello.texi: Likewise.
52978
52979 2008-04-13  Bruno Haible  <bruno@clisp.org>
52980
52981         Make test-signbit pass on HP-UX/hppa.
52982         * tests/test-signbit.c (minus_zerol): New variable.
52983         (test_signbitl): Use it.
52984
52985 2008-04-13  Bruno Haible  <bruno@clisp.org>
52986
52987         Make truncl work on OSF/1 4.0.
52988         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52989         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52990         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52992         HAVE_DECL_TRUNCL.
52993         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52994         HAVE_DECL_TRUNCL.
52995         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52996
52997 2008-04-13  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/unictype.h: Remove trailing comma from enumeration definitions.
53000
53001 2008-04-13  Bruno Haible  <bruno@clisp.org>
53002
53003         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
53004         expression, so as to avoid HP-UX 11 cc compiler bug.
53005
53006 2008-04-13  Bruno Haible  <bruno@clisp.org>
53007
53008         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
53009
53010 2008-04-13  Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/git-merge-changelog.c: Remove empty declaration outside of
53013         functions.
53014
53015 2008-04-13  Bruno Haible  <bruno@clisp.org>
53016
53017         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53018
53019 2008-04-13  Bruno Haible  <bruno@clisp.org>
53020
53021         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53022         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53023         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53024         also if it exists but lacks definitions of the SHUT_* macros.
53025         * modules/sys_socket (Description): Update.
53026         Reported by Elbert Pol <e.pol@chello.nl>.
53027
53028 2008-04-13  Bruno Haible  <bruno@clisp.org>
53029
53030         * lib/localcharset.c (OS2): Don't redefine if already defined.
53031         Reported by Elbert Pol <e.pol@chello.nl>.
53032
53033 2008-04-13  Bruno Haible  <bruno@clisp.org>
53034
53035         * lib/binary-io.h [__EMX__]: Include <io.h>.
53036         Reported by Elbert Pol <e.pol@chello.nl>.
53037
53038 2008-04-12  Bruno Haible  <bruno@clisp.org>
53039
53040         * lib/fpucw.h: Enable the definitions also for x86_64.
53041         Needed for NetBSD/x86_64.
53042         Reported by Thomas Klausner <tk@giga.or.at>.
53043
53044 2008-04-12  Bruno Haible  <bruno@clisp.org>
53045
53046         * tests/test-strtod.c: Include isnand.h.
53047         (main): Use isnand instead of isnan.
53048         Reported by Jim Meyering.
53049
53050 2008-04-12  Bruno Haible  <bruno@clisp.org>
53051
53052         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53053         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53054
53055 2008-04-12  Jim Meyering  <meyering@redhat.com>
53056
53057         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53058
53059 2008-04-12  Bruno Haible  <bruno@clisp.org>
53060
53061         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53062         Reported by Elbert Pol <e.pol@chello.nl>.
53063
53064 2008-04-12  Eric Blake  <ebb9@byu.net>
53065
53066         Work around Solaris 10 math.h bug.
53067         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53068         (gl_MATH_H_DEFAULTS): Set up default.
53069         * modules/math (Makefile.am): Replace new indicators.
53070         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53071         * tests/test-math.c (main): Test this.
53072         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53073         * doc/posix-headers/math.texi (math.h): Mention bug.
53074         Reported by Nelson H. F. Beebe and Jim Meyering.
53075
53076 2008-04-11  Bruno Haible  <bruno@clisp.org>
53077
53078         Adapt to future versions of Apple GCC.
53079         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53080         Reported by Peter O'Gorman <peter@pogma.com>.
53081
53082 2008-04-11  Bruno Haible  <bruno@clisp.org>
53083
53084         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53085
53086 2008-04-11  Bruno Haible  <bruno@clisp.org>
53087
53088         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53089
53090         * modules/getaddrinfo-tests (Makefile.am): Define
53091         test_getaddrinfo_LDADD.
53092
53093 2008-04-11  Bruno Haible  <bruno@clisp.org>
53094
53095         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53096         (init): Fix syntax error.
53097         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53098         is declared.
53099
53100 2008-04-11  Bruno Haible  <bruno@clisp.org>
53101
53102         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53103         * modules/glob (Depends-on): Add stdbool.
53104
53105 2008-04-11  Bruno Haible  <bruno@clisp.org>
53106
53107         * lib/trim.c: Include <string.h>.
53108
53109 2008-04-11  Eric Blake  <ebb9@byu.net>
53110
53111         Avoid compile failure on OS/2.
53112         * lib/regex_internal.h (internal_function): Disable optimization
53113         on OS/2 (__EMX__), where it caused compiler error.
53114         Reported by Elbert Pol.
53115
53116 2008-04-11  Bruno Haible  <bruno@clisp.org>
53117
53118         Flush the standard error stream before aborting. Needed on mingw.
53119         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53120         * tests/test-array_list.c (ASSERT): Likewise.
53121         * tests/test-array_oset.c (ASSERT): Likewise.
53122         * tests/test-avltree_list.c (ASSERT): Likewise.
53123         * tests/test-avltree_oset.c (ASSERT): Likewise.
53124         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53125         * tests/test-binary-io.c (ASSERT): Likewise.
53126         * tests/test-byteswap.c (ASSERT): Likewise.
53127         * tests/test-c-ctype.c (ASSERT): Likewise.
53128         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53129         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53130         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53131         * tests/test-c-strstr.c (ASSERT): Likewise.
53132         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53133         * tests/test-canonicalize.c (ASSERT): Likewise.
53134         * tests/test-carray_list.c (ASSERT): Likewise.
53135         * tests/test-ceilf1.c (ASSERT): Likewise.
53136         * tests/test-ceilf2.c (ASSERT): Likewise.
53137         * tests/test-ceill.c (ASSERT): Likewise.
53138         * tests/test-count-one-bits.c (ASSERT): Likewise.
53139         * tests/test-fbufmode.c (ASSERT): Likewise.
53140         * tests/test-fflush2.c (ASSERT): Likewise.
53141         * tests/test-floorf1.c (ASSERT): Likewise.
53142         * tests/test-floorf2.c (ASSERT): Likewise.
53143         * tests/test-floorl.c (ASSERT): Likewise.
53144         * tests/test-fopen.c (ASSERT): Likewise.
53145         * tests/test-fpending.c (ASSERT): Likewise.
53146         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53147         * tests/test-fpurge.c (ASSERT): Likewise.
53148         * tests/test-freadable.c (ASSERT): Likewise.
53149         * tests/test-freadahead.c (ASSERT): Likewise.
53150         * tests/test-freading.c (ASSERT): Likewise.
53151         * tests/test-freadptr.c (ASSERT): Likewise.
53152         * tests/test-freadptr2.c (ASSERT): Likewise.
53153         * tests/test-freadseek.c (ASSERT): Likewise.
53154         * tests/test-freopen.c (ASSERT): Likewise.
53155         * tests/test-frexp.c (ASSERT): Likewise.
53156         * tests/test-frexpl.c (ASSERT): Likewise.
53157         * tests/test-fseek.c (ASSERT): Likewise.
53158         * tests/test-fseeko.c (ASSERT): Likewise.
53159         * tests/test-fstrcmp.c (ASSERT): Likewise.
53160         * tests/test-ftell.c (ASSERT): Likewise.
53161         * tests/test-ftello.c (ASSERT): Likewise.
53162         * tests/test-func.c (ASSERT): Likewise.
53163         * tests/test-fwritable.c (ASSERT): Likewise.
53164         * tests/test-fwriting.c (ASSERT): Likewise.
53165         * tests/test-getdelim.c (ASSERT): Likewise.
53166         * tests/test-getline.c (ASSERT): Likewise.
53167         * tests/test-i-ring.c (ASSERT): Likewise.
53168         * tests/test-iconv-utf.c (ASSERT): Likewise.
53169         * tests/test-iconv.c (ASSERT): Likewise.
53170         * tests/test-isfinite.c (ASSERT): Likewise.
53171         * tests/test-isnand.c (ASSERT): Likewise.
53172         * tests/test-isnanf.c (ASSERT): Likewise.
53173         * tests/test-isnanl.h (ASSERT): Likewise.
53174         * tests/test-ldexpl.c (ASSERT): Likewise.
53175         * tests/test-linked_list.c (ASSERT): Likewise.
53176         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53177         * tests/test-localename.c (ASSERT): Likewise.
53178         * tests/test-lseek.c (ASSERT): Likewise.
53179         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53180         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53181         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53182         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53183         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53184         * tests/test-mbschr.c (ASSERT): Likewise.
53185         * tests/test-mbscspn.c (ASSERT): Likewise.
53186         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53187         * tests/test-mbspbrk.c (ASSERT): Likewise.
53188         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53189         * tests/test-mbsrchr.c (ASSERT): Likewise.
53190         * tests/test-mbsspn.c (ASSERT): Likewise.
53191         * tests/test-mbsstr1.c (ASSERT): Likewise.
53192         * tests/test-mbsstr2.c (ASSERT): Likewise.
53193         * tests/test-mbsstr3.c (ASSERT): Likewise.
53194         * tests/test-memchr2.c (ASSERT): Likewise.
53195         * tests/test-memmem.c (ASSERT): Likewise.
53196         * tests/test-open.c (ASSERT): Likewise.
53197         * tests/test-printf-frexp.c (ASSERT): Likewise.
53198         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53199         * tests/test-printf-posix.c (ASSERT): Likewise.
53200         * tests/test-quotearg.c (ASSERT): Likewise.
53201         * tests/test-rbtree_list.c (ASSERT): Likewise.
53202         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53203         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53204         * tests/test-round1.c (ASSERT): Likewise.
53205         * tests/test-roundf1.c (ASSERT): Likewise.
53206         * tests/test-roundl.c (ASSERT): Likewise.
53207         * tests/test-signbit.c (ASSERT): Likewise.
53208         * tests/test-sleep.c (ASSERT): Likewise.
53209         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53210         * tests/test-snprintf.c (ASSERT): Likewise.
53211         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53212         * tests/test-stat-time.c (ASSERT): Likewise.
53213         * tests/test-strcasestr.c (ASSERT): Likewise.
53214         * tests/test-strerror.c (ASSERT): Likewise.
53215         * tests/test-striconv.c (ASSERT): Likewise.
53216         * tests/test-striconveh.c (ASSERT): Likewise.
53217         * tests/test-striconveha.c (ASSERT): Likewise.
53218         * tests/test-strsignal.c (ASSERT): Likewise.
53219         * tests/test-strstr.c (ASSERT): Likewise.
53220         * tests/test-strtod.c (ASSERT): Likewise.
53221         * tests/test-trunc1.c (ASSERT): Likewise.
53222         * tests/test-trunc2.c (ASSERT): Likewise.
53223         * tests/test-truncf1.c (ASSERT): Likewise.
53224         * tests/test-truncf2.c (ASSERT): Likewise.
53225         * tests/test-truncl.c (ASSERT): Likewise.
53226         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53227         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53228         * tests/test-vasnprintf.c (ASSERT): Likewise.
53229         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53230         * tests/test-vasprintf.c (ASSERT): Likewise.
53231         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53232         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53233         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53234         * tests/test-vsnprintf.c (ASSERT): Likewise.
53235         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53236         * tests/test-wcwidth.c (ASSERT): Likewise.
53237         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53238         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53239         * tests/test-xvasprintf.c (ASSERT): Likewise.
53240         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53241         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53242         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53243         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53244         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53245         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53246         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53247         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53248         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53249         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53250         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53251         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53252         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53253         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53254         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53255         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53256         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53257         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53258         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53259         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53260         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53261         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53262         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53263         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53264         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53265         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53266         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53267         * tests/unictype/test-combining.c (ASSERT): Likewise.
53268         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53269         * tests/unictype/test-digit.c (ASSERT): Likewise.
53270         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53271         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53272         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53273         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53274         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53275         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53276         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53277         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53278         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53279         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53280         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53281         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53282         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53283         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53284         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53285         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53286         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53287         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53288         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53289         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53290         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53291         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53292         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53293         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53294         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53295         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53296         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53297         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53298         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53299         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53300         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53301         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53302         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53303         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53304         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53305         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53306         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53307         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53308         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53309         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53310         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53311         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53312         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53313         Reported by Eric Blake.
53314
53315 2008-04-11  Bruno Haible  <bruno@clisp.org>
53316
53317         * lib/wchar.in.h: Tweak comment.
53318
53319 2008-04-11  Bruno Haible  <bruno@clisp.org>
53320
53321         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53322         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53323         gl_COMMON.
53324         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53325
53326 2008-04-11  Bruno Haible  <bruno@clisp.org>
53327
53328         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53329
53330 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53331
53332         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53333         of attempting to use non-existing /dev/*random.  Based on patch
53334         from Adam Strzelecki <ono@java.pl> in
53335         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53336
53337 2008-04-08  Bruno Haible  <bruno@clisp.org>
53338
53339         Add tentative support for emx+gcc.
53340         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53341         * lib/fpurge.c (fpurge): Likewise.
53342         * lib/freadable.c (freadable): Likewise.
53343         * lib/freadahead.c (freadahead): Likewise.
53344         * lib/freading.c (freading): Likewise.
53345         * lib/freadptr.c (freadptr): Likewise.
53346         * lib/freadseek.c (freadptrinc): Likewise.
53347         * lib/fseeko.c (rpl_fseeko): Likewise.
53348         * lib/fseterr.c (fseterr): Likewise.
53349         * lib/fwritable.c (fwritable): Likewise.
53350         * lib/fwriting.c (fwriting): Likewise.
53351         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53352
53353 2008-04-09  Eric Blake  <ebb9@byu.net>
53354
53355         Avoid some autoconf warnings.
53356         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53357         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53358         * m4/afs.m4 (gl_AFS): Likewise.
53359         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53360         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53361         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53362         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53363         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53364         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53365         (AC_CHECK_DECLS_ONCE): Likewise.
53366         Rename file...
53367         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53368         gnulib-tool requires autoconf 2.59 or better.
53369         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53370
53371 2008-04-08  Eric Blake  <ebb9@byu.net>
53372
53373         Use 'git describe --match' if present (added in git 1.5.5).
53374         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53375         if possible.
53376
53377 2008-04-08  Bruno Haible  <bruno@clisp.org>
53378
53379         Add tentative support for OpenServer.
53380         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53381         _ptr, _cnt.
53382         * lib/fpurge.c (fpurge): Likewise.
53383         * lib/freadable.c (freadable): Likewise.
53384         * lib/freadahead.c (freadahead): Likewise.
53385         * lib/freading.c (freading): Likewise.
53386         * lib/freadptr.c (freadptr): Likewise.
53387         * lib/freadseek.c (freadptrinc): Likewise.
53388         * lib/fseeko.c (rpl_fseeko): Likewise.
53389         * lib/fseterr.c (fseterr): Likewise.
53390         * lib/fwritable.c (fwritable): Likewise.
53391         * lib/fwriting.c (fwriting): Likewise.
53392         Reported by Roger Cornelius <rac@tenzing.org> and
53393         Brian K. White <brian@aljex.com>.
53394
53395 2008-04-06  Jim Meyering  <meyering@redhat.com>
53396
53397         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53398
53399 2008-04-06  Bruno Haible  <bruno@clisp.org>
53400
53401         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53402         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53403         * tests/test-printf-posix.sh: Likewise.
53404         * tests/test-vfprintf-posix.sh: Likewise.
53405         * tests/test-vprintf-posix.sh: Likewise.
53406         * tests/test-xprintf-posix.sh: Likewise.
53407
53408 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53409
53410         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53411         hide error from 'ls', needed on OS/2.
53412         Report by Elbert Pol <elbert.pol@gmail.com>.
53413
53414 2008-04-04  Eric Blake  <ebb9@byu.net>
53415
53416         Make test-fseeko.c failures meaningful.
53417         * tests/test-fseeko.c: Print line number on failure.
53418         * tests/test-fseek.c: Likewise.
53419         Reported by Nelson H. F. Beebe.
53420
53421         Improve strtod bug detection check.
53422         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53423         required for Solaris 10.
53424         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53425
53426 2008-04-04  Bruno Haible  <bruno@clisp.org>
53427
53428         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53429         by m4/setenv.m4.
53430
53431 2008-04-03  Eric Blake  <ebb9@byu.net>
53432
53433         Ensure sane .version contents.
53434         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53435         version string.
53436         * build-aux/git-version-gen: Improve documentation.
53437
53438         Make GNU make output nicer.
53439         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53440         MAKECMDGOALS to enforce message for all command line targets.  Set
53441         srcdir for use in maint.mk.
53442
53443         Another maintainer tweak.
53444         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53445         a target that regenerates version.
53446
53447 2008-04-03  Jim Meyering  <meyering@redhat.com>
53448
53449         vc-list-files: don't cause coreutils "make po-check" failure
53450         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53451
53452 2008-04-03  Eric Blake  <ebb9@byu.net>
53453
53454         Allow VPATH usage of vc-list-files.
53455         * build-aux/vc-list-files (scriptversion): Add timestamp.
53456         (options): Add --help, --version, -C.
53457         (CVS): Support installed cvsu.
53458
53459 2008-04-02  Bruno Haible  <bruno@clisp.org>
53460
53461         Avoid some "statement with no effect" warnings from gcc.
53462         * tests/test-wctype.c (main): Explicitly ignore unused values.
53463         Reported by Jim Meyering.
53464
53465 2008-04-02  Jim Meyering  <meyering@redhat.com>
53466
53467         Avoid some warnings from "gcc -Wshadow".
53468         * tests/test-frexp.c (exp): Define to a different identifier.
53469         * tests/test-frexpl.c (exp): Likewise.
53470
53471 2008-04-03  Jim Meyering  <meyering@redhat.com>
53472
53473         bootstrap: remove dangling *.[ch] symlinks from lib
53474         * build-aux/bootstrap [dangling symlink removal]: Move find's
53475         -depth option to precede all others, to avoid a warning.
53476         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53477
53478 2008-04-02  Bruno Haible  <bruno@clisp.org>
53479
53480         Avoid some warnings from "gcc -Wshadow".
53481         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53482         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53483         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53484         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53485         Reported by Jim Meyering.
53486
53487 2008-04-01  Bruno Haible  <bruno@clisp.org>
53488
53489         Fix test to work on IRIX 6.5 with cc.
53490         * tests/test-math.c (numeric_equal): New function.
53491         (main): Use it.
53492
53493 2008-04-01  Bruno Haible  <bruno@clisp.org>
53494
53495         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53496
53497 2008-04-01  Bruno Haible  <bruno@clisp.org>
53498
53499         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53500         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53501         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53502         (Depends-on): Remove math.
53503
53504         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53505         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53506         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53507         (Depends-on): Remove math.
53508
53509         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53510         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53511         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53512         (Depends-on): Remove math.
53513         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53514         (Depends-on): Remove math.
53515
53516         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53517         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53518         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53519         (Depends-on): Remove math.
53520         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53521         (Depends-on): Remove math.
53522
53523         * tests/test-round1.c: Include nan.h.
53524         (main): Use NaNd instead of NAN.
53525         * modules/round-tests (Files): Add tests/nan.h.
53526
53527         * tests/test-trunc1.c: Include nan.h.
53528         (main): Use NaNd instead of NAN.
53529         * modules/trunc-tests (Files): Add tests/nan.h.
53530
53531         * tests/test-roundf1.c: Include nan.h.
53532         (main): Use NaNf instead of NAN.
53533         * modules/roundf-tests (Files): Add tests/nan.h.
53534
53535         * tests/test-truncf1.c: Include nan.h.
53536         (main): Use NaNf instead of NAN.
53537         * modules/truncf-tests (Files): Add tests/nan.h.
53538
53539         * tests/test-ceilf1.c: Include nan.h.
53540         (main): Use NaNf instead of NAN.
53541         * modules/ceilf-tests (Files): Add tests/nan.h.
53542
53543         * tests/test-floorf1.c: Include nan.h.
53544         (main): Use NaNf instead of NAN.
53545         * modules/floorf-tests (Files): Add tests/nan.h.
53546
53547         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53548         (main): Use NaNf instead of NAN.
53549         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53550
53551         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53552         (main): Use NaNd instead of NAN.
53553         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53554
53555         * tests/test-frexp.c: Include nan.h.
53556         (main): Use NaNd instead of NAN.
53557         * modules/frexp-tests (Files): Add tests/nan.h.
53558
53559         * lib/isnan.c: Don't include <math.h>.
53560         (FUNC): Don't use NAN macro.
53561         * modules/isnand-nolibm (Depends-on): Remove math.
53562         * modules/isnanf-nolibm (Depends-on): Remove math.
53563         * modules/isnanl (Depends-on): Remove math.
53564         * modules/isnanl-nolibm (Depends-on): Remove math.
53565
53566         * tests/nan.h: New file.
53567
53568 2008-04-01  Eric Blake  <ebb9@byu.net>
53569
53570         Fix typos.
53571         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53572         values to be the right type.
53573
53574         For now, cater to gnulib strtod inaccuracies.
53575         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53576         fractional results.  While not as nice from a QoI perspective, it
53577         is a quicker patch than correctly implementing decimal to binary
53578         rounding.
53579
53580 2008-03-31  Eric Blake  <ebb9@byu.net>
53581
53582         Guarantee a definition of NAN.
53583         * lib/math.in.h (NAN): Define if missing.
53584         * tests/test-math.c (main): Test it.
53585         * doc/posix-headers/math.texi (math.h): Document this.
53586         * lib/isnan.c (rpl_isnand): Use it.
53587         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53588         * tests/test-floorf1.c (NaN): Likewise.
53589         * tests/test-frexp.c (NaN): Likewise.
53590         * tests/test-isnand.c (NaN): Likewise.
53591         * tests/test-isnanf.c (NaN): Likewise.
53592         * tests/test-round1.c (NaN): Likewise.
53593         * tests/test-roundf1.c (NaN): Likewise.
53594         * tests/test-snprintf-posix.h (NaN): Likewise.
53595         * tests/test-sprintf-posix.h (NaN): Likewise.
53596         * tests/test-trunc1.c (NaN): Likewise.
53597         * tests/test-truncf1.c (NaN): Likewise.
53598         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53599         * tests/test-vasprintf-posix.c (NaN): Likewise.
53600         * modules/isnand-nolibm (Depends-on): Add math.
53601         * modules/isnanf-nolibm (Depends-on): Likewise.
53602         * modules/isnanl (Depends-on): Likewise.
53603         * modules/isnanl-nolibm (Depends-on): Likewise.
53604         * modules/snprintf-posix-tests (Depends-on): Likewise.
53605         * modules/sprintf-posix-tests (Depends-on): Likewise.
53606         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53607         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53608         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53609         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53610
53611 2008-03-31  Bruno Haible  <bruno@clisp.org>
53612
53613         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53614         * doc/posix-functions/strtod.texi: Likewise.
53615
53616 2008-03-31  Bruno Haible  <bruno@clisp.org>
53617
53618         * tests/test-strtod.c (main): Don't use C99 syntax.
53619
53620 2008-03-31  Bruno Haible  <bruno@clisp.org>
53621
53622         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53623         Reported by Eric Blake.
53624
53625 2008-03-31  Jim Meyering  <meyering@redhat.com>
53626
53627         Don't compare actual signbit return values.
53628         * tests/test-strtod.c (main): Rather, compare only their
53629         zero/non-zero nature.
53630
53631 2008-03-31  Eric Blake  <ebb9@byu.net>
53632
53633         More strtod documentation.
53634         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53635         failures as distinct bugs.
53636
53637 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53638
53639         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53640         Problem reported by Erik Benada in
53641         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53642
53643 2008-03-30  Bruno Haible  <bruno@clisp.org>
53644
53645         * tests/test-strtod.c: Add comments about which assertion fails on which
53646         platform.
53647         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53648
53649 2008-03-30  Eric Blake  <ebb9@byu.net>
53650
53651         Test signbit behavior on zeros.
53652         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53653         (test_signbitd, test_signbitl): Likewise.
53654
53655         More strtod touchups.
53656         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53657         sign of negative underflow, for now.  Use .5, not .1.
53658         * doc/posix-functions/strtod.texi (strtod): Mention these
53659         limitations.
53660         Reported by Jim Meyering.
53661
53662 2008-03-30  Bruno Haible  <bruno@clisp.org>
53663
53664         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53665         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53666
53667 2008-03-30  Bruno Haible  <bruno@clisp.org>
53668
53669         Avoid failure when attempting to return empty iconv results on some
53670         platforms.
53671         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53672         allocation, don't report ENOMEM when the resulting string is empty.
53673
53674 2008-03-30  Bruno Haible  <bruno@clisp.org>
53675
53676         Fix buffer overrun.
53677         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53678         Don't consider the width for tmp_length. Check count against tmp_length
53679         before doing the padding. Ensure enough allocation during padding.
53680
53681 2008-03-30  Eric Blake  <ebb9@byu.net>
53682
53683         strtod touchups.
53684         * lib/strtod.c (strtod): Avoid compiler warnings.
53685         Reported by Jim Meyering.
53686
53687 2008-03-30  Bruno Haible  <bruno@clisp.org>
53688
53689         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53690         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53691         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53692         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53693         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53694         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53695         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53696         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53697
53698         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53699         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53700         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53701         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53702         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53703         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53704         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53705         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53706
53707         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53708         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53709         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53710         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53711         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53712         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53713         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53714         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53715
53716         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53717         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53718
53719         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53720         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53721
53722         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53723         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53724
53725         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53726         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53727         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53728
53729         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53731         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53732
53733         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53734         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53735         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53736
53737         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53738         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53739         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53740
53741         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53742         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53744         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53745         (Depends-on): Add EOVERFLOW.
53746         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53747         (Depends-on): Add EOVERFLOW.
53748         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53749         (Depends-on): Add EOVERFLOW.
53750         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53751         (Depends-on): Add EOVERFLOW.
53752         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53753         (Depends-on): Add EOVERFLOW.
53754         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53755         (Depends-on): Add EOVERFLOW.
53756         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53757         (Depends-on): Add EOVERFLOW.
53758         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53759         (Depends-on): Add EOVERFLOW.
53760
53761         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53762         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53763         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53764
53765         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53766         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53767         * modules/snprintf (Depends-on): Add EOVERFLOW.
53768
53769         * lib/poll.c (EOVERFLOW): Remove fallback.
53770         * modules/poll (Depends-on): Add EOVERFLOW.
53771
53772         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53773         * modules/getugroups (Depends-on): Add EOVERFLOW.
53774
53775         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53776         * modules/getdelim (Depends-on): Add EOVERFLOW.
53777
53778         * lib/ftell.c (EOVERFLOW): Remove fallback.
53779         * modules/ftell (Depends-on): Add EOVERFLOW.
53780
53781         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53782         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53783         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53784
53785         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53786
53787         * modules/EOVERFLOW-tests: New file.
53788         * tests/test-EOVERFLOW.c: New file.
53789
53790         * modules/EOVERFLOW: New file.
53791         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53792
53793 2008-03-30  Bruno Haible  <bruno@clisp.org>
53794
53795         Fix bug introduced on 2007-06-10.
53796         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53797         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53798
53799 2008-03-30  Bruno Haible  <bruno@clisp.org>
53800
53801         Improve freadseek's efficiency after ungetc.
53802         * lib/freadseek.c: Include freadahead.h.
53803         (freadptrinc): New function, extracted from freadseek.
53804         (freadseek): Use it in a loop. Use freadahead to determine the number
53805         of loop iterations.
53806         * modules/freadseek (Depends-on): Add freadahead.
53807         (configure.ac): Require AC_C_INLINE.
53808
53809 2008-03-30  Bruno Haible  <bruno@clisp.org>
53810
53811         * lib/freadseek.c (freadseek): Don't ignore the return value of
53812         freadptr.
53813
53814 2008-03-29  Eric Blake  <ebb9@byu.net>
53815
53816         Add hex float support.
53817         * modules/strtod (Depends-on): Add c-ctype.
53818         (Link): Mention POW_LIB.
53819         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53820         whitespace between 'e' and exponent.
53821         * tests/test-strtod.c (main): Enable hex float tests.
53822         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53823         now provides.
53824
53825         Document various strtod bugs, with some fixes.
53826         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53827         "-0x", "inf", "nan", and hex constants.
53828         * doc/posix-functions/atof.texi (atof): Likewise.
53829         * modules/stdlib (Makefile.am): Support strtod.
53830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53831         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53832         detect additional strtod bugs.
53833         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53834         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53835         bool where appropriate.  Parse 'inf' and 'nan'.
53836         * tests/test-strtod.c: New file.
53837         * modules/strtod (Depends-on): Add stdbool, stdlib.
53838         (configure.ac): Turn on module indicator.
53839         * modules/strtod-tests: New module.
53840
53841 2008-03-29  Eric Blake  <ebb9@byu.net>
53842
53843         Fix ftell on mingw.
53844         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53845         * modules/ftell-tests (Depends-on): Add binary-io.
53846         * modules/ftello-tests (Depends-on): Likewise.
53847         * tests/test-ftell.c (main): Enhance test to cover behavior after
53848         ungetc.  Enforce binary mode.
53849         * tests/test-ftello.c (main): Likewise.
53850
53851         Pass test-freadseek on cygwin.
53852         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53853         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53854         ungetc buffer.
53855
53856         * tests/test-fflush2.c (main): Fix typo.
53857
53858 2008-03-29  Bruno Haible  <bruno@clisp.org>
53859
53860         * tests/test-fflush2.c (main): Temporarily disable the contents of
53861         this test.
53862         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53863         Reported by Eric Blake.
53864
53865 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53866
53867         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53868         (GC_SHA224_DIGEST_SIZE): Add.
53869
53870         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53871         (gc_hash_digest_length): Likewise.
53872         (gc_hash_buffer): Likewise.
53873
53874 2008-03-25  Bruno Haible  <bruno@clisp.org>
53875
53876         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53877         detail which gettext release to use.
53878         Reported by Simon Josefsson.
53879
53880 2008-03-26  Jim Meyering  <meyering@redhat.com>
53881
53882         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53883         * modules/gnumakefile (clean-GNUmakefile): Also, use
53884         test ... && ... || : syntax rather than if-then ... fi.
53885
53886         gnumakefile: Don't double-quote-expand $(VPATH) value.
53887         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53888
53889 2008-03-24  Eric Blake  <ebb9@byu.net>
53890
53891         Alter GNUmakefile to install into top directory.
53892         * modules/maintainer-makefile: Split, and add dependency...
53893         * modules/gnumakefile: to this new module.
53894         * build-aux/GNUmakefile: Move...
53895         * top/GNUmakefile: ...here.
53896         * build-aux/maint.mk: Move...
53897         * top/maint.mk: ...here.
53898         * MODULES.html.sh (Support for maintaining...): Document new
53899         module.
53900
53901 2008-03-23  Bruno Haible  <bruno@clisp.org>
53902
53903         * gnulib-tool: New options --vc-files, --no-vc-files.
53904         (func_usage): Document them.
53905         (vc_files): New variable.
53906         (func_import): Consider vc_files.
53907         (func_create_testdir): Set vc_files to empty.
53908         Suggested by Jim Meyering and Karl Berry.
53909
53910 2008-03-23  Bruno Haible  <bruno@clisp.org>
53911
53912         Fix regex compilation error on HP-UX 11.
53913         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53914         * modules/regex (Files): Add m4/mbstate_t.m4.
53915         Reported by Ton Voon <ton.voon@altinity.com>.
53916
53917 2008-03-23  Bruno Haible  <bruno@clisp.org>
53918
53919         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53920
53921 2008-03-23  Eric Blake  <ebb9@byu.net>
53922             Bruno Haible  <bruno@clisp.org>
53923
53924         Install files from top/ in the destination directory.
53925         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53926         augmentation also for the files from top/.
53927         (func_import, func_create_testdir): Rewrite file names:
53928         top/filename -> filename.
53929
53930 2008-03-23  Bruno Haible  <bruno@clisp.org>
53931
53932         Tweak "gnulib --version" output.
53933         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53934
53935 2008-03-23  Bruno Haible  <bruno@clisp.org>
53936
53937         Tweak "gnulib --version" output.
53938         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53939         rather than contents of ChangeLog, when possible.
53940
53941 2008-03-21  Eric Blake  <ebb9@byu.net>
53942
53943         More --version tweaks.
53944         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53945         date of last ChangeLog entry.
53946
53947 2008-03-21  Jim Meyering  <meyering@redhat.com>
53948
53949         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53950
53951 2008-03-20  Eric Blake  <ebb9@byu.net>
53952
53953         VPATH fix.
53954         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53955
53956 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53957
53958         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53959         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53960
53961 2008-03-20  Eric Blake  <ebb9@byu.net>
53962
53963         Sync GNUmakefile with coreutils.
53964         * build-aux/GNUmakefile (have-Makefile): Rename...
53965         (_have-Makefile): ...to this, for namespace consideration.
53966         (GNUmakefile.cfg): Include, if present.
53967         (_autoreconf): Define a default.
53968         (_is-dist-target): New rule for rebuilds to pick up intra-release
53969         version.
53970         (maint-cfg.mk): Rename...
53971         (cfg.mk): ...to this.
53972
53973 2008-03-18  Jim Meyering  <meyering@redhat.com>
53974
53975         New script and module: mktempd
53976         * MODULES.html.sh (maint+release support): Add mktempd.
53977         * build-aux/mktempd: New file.
53978         * modules/mktempd: New file.
53979
53980 2008-03-15  Jim Meyering  <meyering@redhat.com>
53981
53982         Undo last change.
53983         * lib/sha1.c, lib/md5.c: 63 != ~63.
53984         Reported by Andreas Schwab.
53985
53986         sha1.c, md5.c: Hoist a redundant expression.
53987         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53988         "ctx->buflen" only once, before calling *_process_block.
53989         * lib/md5.c (md5_process_bytes): Likewise.
53990
53991 2008-03-14  Eric Blake  <ebb9@byu.net>
53992
53993         Bump copyright year in files generated by gnulib-tool.
53994         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53995         gnulib-tool, rather than hard-coding it.
53996
53997         Fix 'gnulib-tool --version' output to work with git.
53998         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53999         (startup): ...here.
54000         (func_version): Use it to invoke git-version-gen, rather than
54001         relying on CVS keyword expansion.  Modernize wording.
54002         (cvsdatestamp, last_checkin_date, version): Kill unused
54003         variables.
54004
54005 2008-03-12  Jim Meyering  <meyering@redhat.com>
54006
54007         Recognize optional cast of the argument to free.
54008         * build-aux/useless-if-before-free: Update regexps.
54009
54010         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
54011
54012 2008-03-11  Bruno Haible  <bruno@clisp.org>
54013
54014         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
54015         by a single package.
54016         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54017         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54018         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54019         Reported by Sam Steingold <sds@gnu.org>.
54020
54021 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54022
54023         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54024         repositories.
54025
54026 2008-03-11  Bruno Haible  <bruno@clisp.org>
54027
54028         Avoid conflicts between local macro definitions.
54029         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54030         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54031
54032 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54033             Bruno Haible  <bruno@clisp.org>
54034
54035         Make va_copy work with some version of xlc on AIX 5.1.
54036         * lib/stdarg.in.h: New file.
54037         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54038         On AIX, use a <stdarg.h> file substitute.
54039         * modules/stdarg (Files): Add lib/stdarg.in.h.
54040         (Depends-on): Add include_next.
54041         (Makefile.am): Build a stdarg.h substitute if requested.
54042         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54043
54044 2008-03-10  Bruno Haible  <bruno@clisp.org>
54045
54046         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54047         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54048         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54049
54050 2008-03-10  Bruno Haible  <bruno@clisp.org>
54051
54052         * modules/stdlib (Depends-on): Add include_next, remove
54053         absolute-header.
54054
54055 2008-03-09  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/freadahead.h (freadahead): Document more precisely.
54058         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54059         the sum of both buffer sizes.
54060         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54061         * NEWS: Document the change.
54062
54063 2008-03-09  Bruno Haible  <bruno@clisp.org>
54064
54065         Extend freadptr to return also the buffer size.
54066         * lib/freadptr.h (freadptr): Add sizep argument.
54067         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54068         (freadptr): Add sizep argument. Determine buffer size like freadahead
54069         does.
54070         * tests/test-freadptr.c: Don't include freadahead.h.
54071         (main): Adapt for new calling convention of freadptr.
54072         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54073         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54074         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54075         tests/test-freadptr2.sh.
54076         (Depends): Remove freadahead.
54077         (TESTS): Add test-freadptr2.sh.
54078         (check_PROGRAMS): Add test-freadptr2.
54079
54080 2008-03-09  Bruno Haible  <bruno@clisp.org>
54081
54082         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54083         Report and solution by Simon Josefsson.
54084
54085 2008-03-06  Bruno Haible  <bruno@clisp.org>
54086
54087         Make fflush after ungetc work on BSD platforms.
54088         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54089         * tests/test-fflush2.c: New file.
54090         * tests/test-fflush2.sh: New file.
54091         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54092         tests/test-fflush2.c.
54093         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54094         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54095
54096 2008-03-06  Eric Blake  <ebb9@byu.net>
54097
54098         Likewise for ftello.
54099         * modules/ftello (Dependencies): Add extensions.
54100         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54101
54102 2008-03-06  Bruno Haible  <bruno@clisp.org>
54103
54104         * modules/fseeko (Dependencies): Add extensions.
54105         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54106         Needed on glibc systems.
54107
54108 2008-03-06  Bruno Haible  <bruno@clisp.org>
54109
54110         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54111         email address.
54112         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54113
54114 2008-03-06  Bruno Haible  <bruno@clisp.org>
54115
54116         * users.txt: Add libgnupdf.
54117
54118 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54119
54120         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54121         (Header File Substitutes, Function Substitutes,
54122         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54123         (Build robot for gnulib): Fix typo.
54124
54125 2008-03-06  Bruno Haible  <bruno@clisp.org>
54126
54127         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54128         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54129
54130 2008-03-06  Bruno Haible  <bruno@clisp.org>
54131
54132         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54133         * doc/gnulib.texi: Include it.
54134
54135 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54136
54137         * modules/func (License): Change license to unlimited; there was
54138         no LGPL parts in the module anyway.
54139
54140 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54141
54142         * modules/__func__: Renamed to modules/func.
54143         * modules/__func__-tests: Renamed to modules/func-tests.
54144         * tests/test-__func__.c: Renamed to tests/test-func.c.
54145         * m4/__func__.m4: Renamed to m4/func.m4.
54146         * doc/gnulib.texi (__func__): Section renamed to func.
54147         Suggested by Eric Blake <ebb9@byu.net>.
54148
54149 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54150
54151         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54152         about __func__.  Make example self-contained.  Suggested by Eric
54153         Blake <ebb9@byu.net>.
54154
54155         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54156         Suggested by Eric Blake <ebb9@byu.net>.
54157
54158 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54159
54160         * modules/__func__: New file.
54161         * modules/__func__-tests: New file.
54162         * tests/test-__func__.c: New file.
54163         * m4/__func__.m4: New file.
54164         * doc/gnulib.texi (__func__): Document __func__ module.
54165
54166 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54167
54168         * modules/byteswap (License): Re-license as LGPLv2+.
54169
54170 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54171
54172         * doc/Makefile: Add pdf target.
54173
54174 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54175
54176         * modules/inline (License): Use 'unlimited', since there are only
54177         *.m4 files in this module.
54178
54179 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54180             Bruno Haible  <bruno@clisp.org>
54181
54182         Add support for HP C 7.1 on OpenVMS 8.3.
54183         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54184
54185 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54186
54187         Update VMS specifics.
54188         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54189
54190 2008-03-02  Jim Meyering  <meyering@redhat.com>
54191
54192         Remove the last dependency on the "free" module.
54193         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54194         Reported by Bob Proulx.
54195
54196         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54197
54198         Remove useless "if" tests before free.  Deprecate "free" module.
54199         * doc/posix-functions/free.texi: Mention that this
54200         module is no longer useful.
54201         * modules/free (Notice): Say this module is obsolete.
54202         * modules/readutmp (Depends-on): Remove free.
54203         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54204         * lib/putenv.c (putenv): Likewise.
54205         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54206         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54207         * tests/test-c-strcasestr.c (main): Likewise.
54208         * tests/test-c-strstr.c (main): Likewise.
54209         * tests/test-mbscasestr1.c (main): Likewise.
54210         * tests/test-mbscasestr2.c (main): Likewise.
54211         * tests/test-mbsstr1.c (main): Likewise.
54212         * tests/test-mbsstr2.c (main): Likewise.
54213         * tests/test-memmem.c (main): Likewise.
54214         * tests/test-strcasestr.c (main): Likewise.
54215         * tests/test-striconv.c (main): Likewise.
54216         * tests/test-striconveh.c (main): Likewise.
54217         * tests/test-striconveha.c (main): Likewise.
54218         * tests/test-strstr.c (main): Likewise.
54219
54220         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54221
54222         bootstrap: sync from coreutils again
54223         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54224
54225 2008-03-01  Jim Meyering  <meyering@redhat.com>
54226
54227         bootstrap: sync from coreutils
54228         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54229         also when the target doesn't exist.
54230
54231 2008-03-01  Eric Blake  <ebb9@byu.net>
54232
54233         Fix bugs in last patch.
54234         * lib/memchr2.c (memchr2): Fix typo.
54235         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54236         extension.
54237         Reported by Bruce Korb.
54238
54239         New module 'memchr2'.
54240         * modules/memchr2: New file.
54241         * modules/memchr2-tests: Likewise.
54242         * lib/memchr2.h: Likewise.
54243         * lib/memchr2.c: Likewise, based on memchr.c.
54244         * tests/test-memchr2.c: New test.
54245         * MODULES.html.sh (String handling): Add memchr2.
54246
54247 2008-02-29  Bruno Haible  <bruno@clisp.org>
54248
54249         * modules/freadseek-tests: New file.
54250         * tests/test-freadseek.sh: New file.
54251         * tests/test-freadseek.c: New file.
54252
54253         New module 'freadseek'.
54254         * modules/freadseek: New file.
54255         * lib/freadseek.h: New file.
54256         * lib/freadseek.c: New file.
54257         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54258
54259 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54260
54261         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54262         wydawca.
54263
54264         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54265         program_invocation_name and program_invocation_short_name are
54266         present.
54267
54268 2008-02-28  Bruno Haible  <bruno@clisp.org>
54269
54270         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54271         * tests/test-freadptr.sh: Also test non-seekable stdin.
54272
54273 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54274
54275         * build-aux/bootstrap (source_base, m4_base)
54276         (doc_base, tests_base): New variables.
54277         (gnulib_tool_options): Do not hardcode base directories, use
54278         the above variables instead.
54279
54280 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54281
54282         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54283
54284 2008-02-28  Bruno Haible  <bruno@clisp.org>
54285
54286         * modules/freadptr-tests: New file.
54287         * tests/test-freadptr.sh: New file.
54288         * tests/test-freadptr.c: New file.
54289
54290         New module 'freadptr'.
54291         * modules/freadptr: New file.
54292         * lib/freadptr.h: New file.
54293         * lib/freadptr.c: New file.
54294         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54295
54296 2008-02-26  Karl Berry  <karl@freefriends.org>
54297
54298         Sync from Libtool:
54299         * libltdl/argz.c (argz_add, argz_count): New functions.
54300         * libltdl/argz.in.h: Declare them.
54301         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54302
54303 2008-02-22  Bruno Haible  <bruno@clisp.org>
54304
54305         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54306         is a pointer type.  Needed for HP-UX 10.
54307         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54308         * doc/posix-functions/gmtime_r.texi: Likewise.
54309         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54310
54311 2008-02-24  Bruno Haible  <bruno@clisp.org>
54312
54313         * modules/environ-tests: New file.
54314         * tests/test-environ.c: New file.
54315
54316         New module 'environ'.
54317         * modules/environ: New file.
54318         * lib/unistd.in.h (environ): New declaration.
54319         * m4/environ.m4: New file.
54320         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54321         after use.
54322         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54323         HAVE_DECL_ENVIRON.
54324         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54325         HAVE_DECL_ENVIRON.
54326         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54327         wrong claim that 'environ' is missing on some systems.
54328         * modules/execute (Depends-on): Add environ.
54329         * lib/execute.c (environ): Remove fallback declaration.
54330         * modules/pipe (Depends-on): Add environ.
54331         * lib/pipe.c (environ): Remove fallback declaration.
54332         * modules/setenv (Depends-on): Add environ.
54333         * lib/setenv.c (environ): Remove fallback declaration.
54334         * modules/unsetenv (Depends-on): Add environ.
54335         * lib/unsetenv.c (environ): Remove fallback declaration.
54336         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54337         m4/environ.m4.
54338         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54339         (gl_PREREQ_UNSETENV): Likewise.
54340
54341 2008-02-24  Bruno Haible  <bruno@clisp.org>
54342
54343         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54344
54345 2008-02-20  Bob Proulx  <bob@proulx.com>
54346
54347         Enable use of older two part flavor 'git describe'.
54348         * build-aux/git-version-gen: If using the older two part flavor of
54349         git version then recreate the third part now present in the
54350         newer three part flavor of git describe.
54351
54352 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54353
54354         * lib/fts.c (fts_build): Typo correction to comment.
54355
54356 2008-02-17  Bruno Haible  <bruno@clisp.org>
54357
54358         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54359         generating no-op conflicts.
54360
54361 2008-02-17  Bruno Haible  <bruno@clisp.org>
54362
54363         Speed up by 10%.
54364         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54365         result_entries, rather than an index-based loop.
54366
54367 2008-02-17  Bruno Haible  <bruno@clisp.org>
54368
54369         Speed up by 25%.
54370         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54371         'hashcode_cached'.
54372         (entry_create): New function.
54373         (entry_hashcode): Use the cached hashcode if possible.
54374         (read_changelog_file, try_split_merged_entry): Use entry_create.
54375
54376 2008-02-17  Bruno Haible  <bruno@clisp.org>
54377
54378         Speed up from O(n^2) to O(n) for long ChangeLog files.
54379         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54380         (read_changelog_file): Change implementation of entries_reversed list
54381         to rbtreehash.
54382         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54383
54384 2008-02-17  Bruno Haible  <bruno@clisp.org>
54385
54386         New option --split-merged-entry.
54387         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54388         (find_paragraph_end, try_split_merged_entry): New functions.
54389         (long_options): Add option --split-merged-entry.
54390         (usage): Document option --split-merged-entry.
54391         (main): Implement option --split-merged-entry.
54392         Reported by Eric Blake.
54393
54394 2008-02-17  Bruno Haible  <bruno@clisp.org>
54395
54396         * lib/git-merge-changelog.c: Include c-strstr.h.
54397         (main): Support the "git pull --rebase" situation.
54398         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54399         Reported by Eric Blake.
54400
54401 2008-02-16  Eric Blake  <ebb9@byu.net>
54402
54403         Avoid doubling \ in common case of "c-maybe" quoting style.
54404         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54405         eliding outer quotes.
54406         * lib/quotearg.h: Document this.
54407         * tests/test-quotearg.c (result_strings, inputs, results_g)
54408         (flag_results, locale_results): Test it by adding a new string to
54409         each test group.
54410         (compare_strings): Test new string.
54411
54412 2008-02-13  Eric Blake  <ebb9@byu.net>
54413
54414         Avoid trigraph quoting in default output.
54415         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54416         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54417         unless explicitly requested.
54418         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54419
54420 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54421
54422         Don't rely on signed integer overflowing to negative value.
54423         * lib/getugroups.c (getugroups): Include <limits.h>.
54424         Instead, compare against INT_MAX, and increment only if the test passes.
54425
54426 2008-02-13  Jim Meyering  <meyering@redhat.com>
54427         and Eric Blake  <ebb9@byu.net>
54428
54429         Avoid shadowing warning and compile errors on Linux.
54430         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54431         forwarding macros on Linux.
54432         (dcgettext): Define a stub, for Linux.
54433         (results_g, main): Avoid warnings.
54434
54435 2008-02-12  Eric Blake  <ebb9@byu.net>
54436
54437         Silence warning in last patch.
54438         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54439
54440         Quotearg part 4: add tests, fix c-maybe colon quoting.
54441         * lib/quotearg.h: Improve documentation.
54442         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54443         escapes when adding outer quotes.  When quoting trigraphs, use
54444         valid C notation.  When quoting NUL, omit extra characters if next
54445         character is not digit.  Alter prototype.
54446         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54447         callers.
54448         * modules/quotearg-tests: New module.
54449         * tests/test-quotearg.c: New test.
54450
54451 2008-02-07  Eric Blake  <ebb9@byu.net>
54452
54453         Quotearg part 3: add flag to control outer quote elision.
54454         * lib/quotearg.h (c_maybe_quoting_style): New style.
54455         (enum quoting_flags): Better documentation of flags.
54456         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54457         c-maybe style.
54458         (quotearg_buffer_restyled): Handle new flag to elide outer
54459         quotes.
54460
54461         Quotearg part 2: add flag that can control NUL elision.
54462         * lib/quotearg.h (set_quoting_flags): New prototype.
54463         * lib/quotearg.c (struct quoting_options): Add flag field.
54464         (set_quoting_flags): New function.
54465         (quotearg_buffer_restyled): Add flags parameter.
54466         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54467         (quotearg_n_options): Set the flag, since length cannot be
54468         returned.
54469         (quoting_options_from_style): Default flags correctly.
54470
54471         Quotearg part 1: more wrappers, restore quotearg_char state.
54472         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54473         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54474         (quotearg_colon_mem): New wrappers.
54475         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54476         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54477         functions.
54478         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54479         (quotearg_colon_mem): New functions.
54480
54481 2008-02-11  Bruno Haible  <bruno@clisp.org>
54482
54483         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54484         library in the current directory: it does not work with parallel make.
54485         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54486
54487 2008-02-11  Bruno Haible  <bruno@clisp.org>
54488
54489         * .gitattributes: New file.
54490
54491 2008-02-11  Jim Meyering  <meyering@redhat.com>
54492
54493         useless-if-before-free: Fix reversed exit values.
54494         * build-aux/useless-if-before-free: Use correct values
54495         for EXIT_MATCH and EXIT_NO_MATCH.
54496
54497         * build-aux/useless-if-before-free: Close stdout carefully.
54498
54499 2008-02-10  Bruno Haible  <bruno@clisp.org>
54500
54501         New module 'git-merge-changelog'.
54502         * modules/git-merge-changelog: New file.
54503         * lib/git-merge-changelog.c: New file.
54504
54505 2008-02-10  Jim Meyering  <meyering@redhat.com>
54506
54507         useless-if-before-free: New option: --list (-l).
54508
54509         useless-if-before-free: Don't exit immediately upon open failure.
54510         * build-aux/useless-if-before-free: Exit 2 for errors.
54511         Upon failure to open a file, don't exit immediately.
54512         Rather, just warn and continue with any remaining files.
54513
54514 2008-02-10  Bruno Haible  <bruno@clisp.org>
54515
54516         New abstract list operation 'node_set_value'.
54517         * lib/gl_list.h (gl_list_node_set_value): New function.
54518         (struct gl_list_implementation): New field node_set_value.
54519         * lib/gl_list.c (gl_list_node_set_value): New function.
54520         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54521         (gl_array_list_implementation): Update.
54522         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54523         (gl_carray_list_implementation): Update.
54524         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54525         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54526         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54527         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54528         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54529         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54530         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54531         Update.
54532         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54533         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54534         (gl_sublist_list_implementation): Update.
54535
54536 2008-02-10  Bruno Haible  <bruno@clisp.org>
54537
54538         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54539         Needed when ELEMENT is #defined to 'some_type *'.
54540
54541 2008-02-10  Jim Meyering  <meyering@redhat.com>
54542
54543         New script and module: useless-if-before-free
54544         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54545         * build-aux/useless-if-before-free: New file.
54546         * modules/useless-if-before-free: New file.
54547
54548         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54549
54550         xstrtol_error: Fix typo.
54551         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54552         s/exit_failure/exit_status/.
54553
54554 2008-02-09  Jim Meyering  <meyering@redhat.com>
54555
54556         New script and module: gitlog-to-changelog
54557         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54558         * modules/gitlog-to-changelog: New file.
54559         * build-aux/gitlog-to-changelog: New file.
54560
54561 2008-02-08  Jim Meyering  <meyering@redhat.com>
54562
54563         Avoid two "parameter unused" warnings.
54564         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54565         Mark "st" as used.
54566
54567         Use "git COMMAND", not "git-COMMAND".
54568         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54569         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54570         * build-aux/git-version-gen: Use "git status", not "git-status".
54571
54572 2008-02-07  Bruno Haible  <bruno@clisp.org>
54573
54574         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54575         Avoids a crash on Windows Vista.
54576         Reported by Adam Strzelecki <ono@java.pl> via
54577         Simon Josefsson <simon@josefsson.org>.
54578
54579 2008-02-06  Bruno Haible  <bruno@clisp.org>
54580
54581         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54582         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54583         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54585         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54587         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54588         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54590         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54591         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54592         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54593         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54594         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54596         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54597         left-adjust flag.
54598         * tests/test-snprintf-posix.h (test_function): Likewise.
54599         * tests/test-sprintf-posix.h (test_function): Likewise.
54600         * tests/test-vasprintf-posix.c (test_function): Likewise.
54601         * doc/posix-functions/fprintf.texi: Update.
54602         * doc/posix-functions/printf.texi: Update.
54603         * doc/posix-functions/snprintf.texi: Update.
54604         * doc/posix-functions/sprintf.texi: Update.
54605         * doc/posix-functions/vfprintf.texi: Update.
54606         * doc/posix-functions/vprintf.texi: Update.
54607         * doc/posix-functions/vsnprintf.texi: Update.
54608         * doc/posix-functions/vsprintf.texi: Update.
54609         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54610
54611 2008-02-06  Bruno Haible  <bruno@clisp.org>
54612
54613         Fix bug introduced on 2008-01-26.
54614         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54615
54616 2008-02-06  Bruno Haible  <bruno@clisp.org>
54617
54618         Fix bug introduced on 2007-06-10.
54619         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54620         !NEED_PRINTF_FLAG_ZERO.
54621
54622 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54623
54624         getloadavg: use libperfstat on AIX5
54625         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54626
54627 2008-02-03  Bruno Haible  <bruno@clisp.org>
54628
54629         * lib/diffseq.h: Add comments about required #includes.
54630         Reported by Michael Biggs <gnulib@doubleplum.net>.
54631
54632 2008-02-01  Bruno Haible  <bruno@clisp.org>
54633
54634         * users.txt: Add gnuit.
54635
54636 2008-01-31  Bruno Haible  <bruno@clisp.org>
54637
54638         * lib/md4.c (set_uint32): Mark as inline.
54639         * lib/md5.c (set_uint32): Likewise.
54640         * lib/sha1.c (set_uint32): Likewise.
54641         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54642         * m4/md5.m4 (gl_MD5): Likewise.
54643         * m4/sha1.m4 (gl_SHA1): Likewise.
54644
54645 2008-01-31  Jim Meyering  <meyering@redhat.com>
54646
54647         Use "sizeof VAR", rather than a literal "4".
54648         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54649         * lib/md4.c (md4_read_ctx): Likewise.
54650         * lib/sha1.c (sha1_read_ctx): Likewise.
54651
54652 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54653
54654         * tests/test-sha1.c: New file, based on test-md5.c.
54655
54656         * modules/crypto/sha1-tests: New file.
54657
54658 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54659
54660         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54661
54662 2008-01-31  Jim Meyering  <meyering@redhat.com>
54663
54664         Prefer "sizeof v" over the equivalent "4".
54665         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54666         * lib/md5.c (set_uint32): Likewise.
54667         * lib/sha1.c (set_uint32): Likewise.
54668
54669 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54670
54671         * lib/sha1.c (set_uint32): Mark function as static.
54672
54673 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54674
54675         md2: clarify comments to say that alignment is not required.
54676         * lib/md2.h: Remove warning about alignment in comment.
54677         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54678         never been required.
54679
54680 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54681
54682         md4: adapt alignment constraint fix from sha1.
54683         * lib/md4.c (set_uint32): New function, from sha1.c
54684         (md4_read_ctx): Use it.
54685         (md4_finish_ctx): Doc fix.
54686         * lib/md4.h: Doc fix.
54687
54688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54689
54690         md5: adapt alignment constraint fix from sha1.
54691         * lib/md5.c (set_uint32): New function, from sha1.c
54692         (md5_read_ctx): Use it.
54693         (md5_finish_ctx): Doc fix.
54694         * lib/md5.h: Doc fix.
54695
54696 2008-01-30  Peter Palfrader  <weasel@debian.org>
54697
54698         sha1: remove the result buffer alignment constraint
54699         * lib/sha1.c (set_uint32): New function.
54700         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54701         constraint.
54702         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54703         * lib/sha1.h: Likewise.
54704
54705 2008-01-30  Andreas Schwab  <schwab@suse.de>
54706             Bruno Haible  <bruno@clisp.org>
54707
54708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54709         correct definition of LDBL_MIN_EXP.
54710
54711 2008-01-30  Karl Berry  <karl@gnu.org>
54712
54713         * config/srclist-update: try to preserve x bit on updates.
54714         * config/srclistvars.sh: update for karl.
54715
54716 2008-01-29  Jim Meyering  <meyering@redhat.com>
54717
54718         vasnprintf.c: Avoid warning about unused label
54719         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54720         "overflow" label definition and associated code with the
54721         same cpp condition that guards the sole use of that label.
54722
54723 2008-01-26  Bruno Haible  <bruno@clisp.org>
54724
54725         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54726         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54727         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54728         * lib/isnanl-nolibm.h (isnanl): Likewise.
54729         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54730
54731 2008-01-26  Bruno Haible  <bruno@clisp.org>
54732
54733         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54734         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54735
54736 2008-01-26  Bruno Haible  <bruno@clisp.org>
54737
54738         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54739         GCC >= 4.0 built-in.
54740         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54741
54742 2008-01-26  Bruno Haible  <bruno@clisp.org>
54743
54744         Rename isnan, applicable to 'double' only, to isnand.
54745         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54746         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54747         (configure.ac): Update.
54748         (Include): Replace "isnan.h" with "isnand.h".
54749         * m4/isnand.m4: Renamed from m4/isnan.m4.
54750         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54751         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54752         instead of isnan.c.
54753         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54754         instead of HAVE_ISNAN_IN_LIBC.
54755         (isnand): Renamed from isnan.
54756         * lib/isnand.c: New file.
54757         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54758         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54759         (Makefile.am): Update.
54760         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54761         Include isnand.h instead of isnan.h.
54762         (main): Test isnand instead of isnan.
54763         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54764         isnan-nolibm.
54765         * modules/frexp (Depends-on): Likewise.
54766         * modules/frexp-tests (Depends-on): Likewise.
54767         * modules/frexp-nolibm (Depends-on): Likewise.
54768         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54769         * modules/isfinite (Depends-on): Likewise.
54770         * modules/round-tests (Depends-on): Likewise.
54771         * modules/signbit (Depends-on): Likewise.
54772         * modules/signbit-tests (Depends-on): Likewise.
54773         * modules/snprintf-posix (Depends-on): Likewise.
54774         * modules/sprintf-posix (Depends-on): Likewise.
54775         * modules/trunc-tests (Depends-on): Likewise.
54776         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54777         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54778         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54779         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54780         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54781         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54782         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54783         * modules/vasnprintf-posix (Depends-on): Likewise.
54784         * modules/vasprintf-posix (Depends-on): Likewise.
54785         * modules/vfprintf-posix (Depends-on): Likewise.
54786         * modules/vsnprintf-posix (Depends-on): Likewise.
54787         * modules/vsprintf-posix (Depends-on): Likewise.
54788         * lib/frexp.c: Include isnand.h instead of isnan.h.
54789         (ISNAN): Set to isnand instead of isnan.
54790         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54791         (gl_isfinited): Use isnand instead of isnan.
54792         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54793         (gl_signbitd): Use isnand instead of isnan.
54794         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54795         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54796         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54797         (main): Use isnand instead of isnan.
54798         * tests/test-round1.c: Include isnand.h.
54799         (main): Use isnand instead of isnan.
54800         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54801         (ISNAN): Set to isnand instead of isnan.
54802         * tests/test-trunc1.c: Include isnand.h.
54803         (main): Use isnand instead of isnan.
54804         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54805         (equal): Use isnand instead of isnan.
54806         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54807         isnand-nolibm.
54808         * NEWS: Mention the change.
54809
54810 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54811             Bruno Haible  <bruno@clisp.org>
54812
54813         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54814         the GCC builtins for signbits are present and set
54815         REPLACE_SIGNBIT_USING_GCC if so.
54816         * lib/math.in.h (signbit): Define using GCC builtins if
54817         REPLACE_SIGNBIT_USING_GCC is set.
54818         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54819         REPLACE_SIGNBIT_USING_GCC.
54820         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54821
54822 2008-01-25  Jim Meyering  <meyering@redhat.com>
54823
54824         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54825         * lib/poll.c: Include <config.h>, not "config.h".
54826         * tests/test-getaddrinfo.c: Likewise.
54827
54828 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54829
54830         * modules/sockets-tests: New file.
54831
54832 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54833
54834         * modules/sockets: New module, can be used to call WSA_Startup and
54835         WSA_Cleanup when needed.
54836
54837         * lib/sockets.h, lib/sockets.c: New files.
54838
54839         * m4/sockets.m4: New file.
54840
54841         * tests/test-sockets.c: New file.
54842
54843 2008-01-19  Bruno Haible  <bruno@clisp.org>
54844
54845         * doc/posix-headers: Renamed from doc/headers.
54846         * doc/posix-functions: Renamed from doc/functions.
54847         * doc/gnulib.texi: Update.
54848
54849 2008-01-19  Bruno Haible  <bruno@clisp.org>
54850
54851         * doc/glibc-functions/strcasestr.texi: Include contents of
54852         doc/functions/strcasestr.texi, fixing the list of platforms.
54853         * doc/functions/strcasestr.texi: Remove file.
54854
54855 2008-01-19  Bruno Haible  <bruno@clisp.org>
54856
54857         * doc/glibc-functions/memmem.texi: Include contents of
54858         doc/functions/memmem.texi.
54859         * doc/functions/memmem.texi: Remove file.
54860
54861 2008-01-18  Bruno Haible  <bruno@clisp.org>
54862
54863         * doc/glibc-functions/*.texi: New files.
54864         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54865         to use the new files.
54866
54867 2008-01-17  Bruno Haible  <bruno@clisp.org>
54868
54869         * tests/test-gethostname.c (main): Fix printf statement.
54870
54871 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54872
54873         * modules/gethostname-tests: New file.
54874
54875         * tests/test-gethostname.c: New file.
54876
54877 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54878
54879         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54880         used by the UNAME case.  Reported by Bruno Haible
54881         <bruno@clisp.org>.
54882
54883 2008-01-17  Eric Blake  <ebb9@byu.net>
54884
54885         Convert c-strcasestr to be more efficient.
54886         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54887         (Depends-on): Add c-strcase, remove malloca, strnlen.
54888         * tests/test-c-strcasestr.c (main): Enhance test.
54889         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54890
54891 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54892
54893         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54894         Use it in creating po/Makevars.
54895
54896 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54897
54898         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54899         Applications that requires it should initialize libgcrypt
54900         manually.
54901
54902 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54903
54904         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54905
54906 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54907
54908         Fix problem with getdate on mingw32 reported by Simon Josefsson
54909         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54910         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54911         tzname", when deciding whether to declare tzname.
54912         * lib/strftime.c (tzname): Likewise.
54913
54914 2008-01-15  Bruno Haible  <bruno@clisp.org>
54915
54916         Work around a MacOS X 10.5 bug in frexpl().
54917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54918         * doc/functions/frexpl.texi: Document the bug.
54919         Reported by Elias Pipping <pipping@gentoo.org>.
54920
54921 2008-01-14  Eric Blake  <ebb9@byu.net>
54922
54923         Touch up previous patch.
54924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54925         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54926
54927         Convert strcasestr module to use Two-Way algorithm.
54928         * modules/strcasestr-simple: New module, based on the old
54929         strcasestr, but with Two-Way rather than KMP.
54930         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54931         * lib/string.in.h (rpl_strcasestr): Declare.
54932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54933         performance.
54934         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54935         * modules/string (Makefile.am): Support strcasestr.
54936         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54937         * modules/strcasestr-tests (Depends-on): Check for alarm.
54938         * tests/test-strcasestr.c: Augment test.
54939         * lib/str-two-way.h: Clean up stray macro.
54940         * NEWS: Document new module.
54941         * MODULES.html.sh (string handling): Likewise.
54942         * doc/functions/strcasestr.texi: New file.
54943         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54944         here, since it is not a POSIX function.
54945
54946 2008-01-14  Colin Watson  <cjwatson@debian.org>
54947             Bruno Haible  <bruno@clisp.org>
54948
54949         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54950         works fine; if not, set REPLACE_STRSIGNAL.
54951         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54953         REPLACE_STRSIGNAL.
54954         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54955         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54956         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54957
54958 2008-01-14  Bruno Haible  <bruno@clisp.org>
54959
54960         * modules/strsignal (Include): Change to <string.h>.
54961
54962 2008-01-14  Colin Watson  <cjwatson@debian.org>
54963
54964         * modules/argp (Notice): Add a notice recommending to change
54965         XGETTEXT_OPTIONS.
54966         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54967
54968 2008-01-13  Colin Watson  <cjwatson@debian.org>
54969
54970         * modules/strsignal-tests: New file.
54971         * tests/test-strsignal.c: New file.
54972
54973         * lib/strsignal.c: New file, from glibc with modifications.
54974         * lib/siglist.h: New file, from glibc with modifications.
54975         * lib/string.in.h (strsignal): New declaration.
54976         * m4/strsignal.m4: New file.
54977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54978         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54979         * modules/strsignal: New file.
54980         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54981         HAVE_DECL_STRSIGNAL.
54982
54983 2008-01-13  Bruno Haible  <bruno@clisp.org>
54984
54985         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54986         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54987         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54988         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54989
54990 2008-01-13  Bruno Haible  <bruno@clisp.org>
54991
54992         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54993         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54994         * lib/argp.h (__attribute__): Likewise.
54995         * lib/c-stack.c (__attribute__): Likewise.
54996         * lib/error.h (__attribute__): Likewise.
54997         * lib/fts.c (__attribute__): Likewise.
54998         * lib/openat.h (__attribute__): Likewise.
54999         * lib/stdio.in.h (__attribute__): Likewise.
55000         * lib/string.in.h (__attribute__): Likewise.
55001         * lib/utimens.c (__attribute__): Likewise.
55002         * lib/vasnprintf.h (__attribute__): Likewise.
55003         * lib/xalloc.h (__attribute__): Likewise.
55004         * lib/xprintf.h (__attribute__): Likewise.
55005         * lib/xstrtol.h (__attribute__): Likewise.
55006         * lib/xvasprintf.h (__attribute__): Likewise.
55007
55008 2008-01-12  Bruno Haible  <bruno@clisp.org>
55009
55010         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
55011         * doc/glibc-headers/a.out.texi: New file.
55012         * doc/glibc-headers/aliases.texi: New file.
55013         * doc/glibc-headers/alloca.texi: New file.
55014         * doc/glibc-headers/ar.texi: New file.
55015         * doc/glibc-headers/argp.texi: New file.
55016         * doc/glibc-headers/argz.texi: New file.
55017         * doc/glibc-headers/byteswap.texi: New file.
55018         * doc/glibc-headers/crypt.texi: New file.
55019         * doc/glibc-headers/endian.texi: New file.
55020         * doc/glibc-headers/envz.texi: New file.
55021         * doc/glibc-headers/err.texi: New file.
55022         * doc/glibc-headers/error.texi: New file.
55023         * doc/glibc-headers/execinfo.texi: New file.
55024         * doc/glibc-headers/fpu_control.texi: New file.
55025         * doc/glibc-headers/fstab.texi: New file.
55026         * doc/glibc-headers/fts.texi: New file.
55027         * doc/glibc-headers/getopt.texi: New file.
55028         * doc/glibc-headers/ieee754.texi: New file.
55029         * doc/glibc-headers/ifaddrs.texi: New file.
55030         * doc/glibc-headers/libintl.texi: New file.
55031         * doc/glibc-headers/mcheck.texi: New file.
55032         * doc/glibc-headers/mntent.texi: New file.
55033         * doc/glibc-headers/obstack.texi: New file.
55034         * doc/glibc-headers/paths.texi: New file.
55035         * doc/glibc-headers/printf.texi: New file.
55036         * doc/glibc-headers/pty.texi: New file.
55037         * doc/glibc-headers/resolv.texi: New file.
55038         * doc/glibc-headers/shadow.texi: New file.
55039         * doc/glibc-headers/sysexits.texi: New file.
55040         * doc/glibc-headers/ttyent.texi: New file.
55041
55042 2008-01-12  Jim Meyering  <meyering@redhat.com>
55043
55044         announce-gen: emit Gnulib's git-based version string.
55045         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55046         New option --gnulib-version=V, where V is expected to be
55047         the output of running git describe in the gnulib directory.
55048         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55049         not useful, and plan to stop publishing an xdelta file with each
55050         coreutils release.
55051
55052         * build-aux/announce-gen: Also check for lzma-compressed files.
55053
55054 2008-01-11  Bruno Haible  <bruno@clisp.org>
55055
55056         * tests/test-memmem.c (main): Increase maximum allowed time.
55057         * tests/test-strstr.c (main): Likewise.
55058
55059 2008-01-11  Bruno Haible  <bruno@clisp.org>
55060
55061         * doc/functions/memmem.texi: Add more precisions about platforms.
55062         * doc/functions/strstr.texi: Likewise.
55063
55064 2008-01-10  Eric Blake  <ebb9@byu.net>
55065
55066         * m4/strstr.m4: Delete cruft from copy-n-paste.
55067         Reported by Bruno Haible.
55068
55069 2008-01-10  Bruno Haible  <bruno@clisp.org>
55070
55071         Make c-strstr rely on strstr.
55072         * lib/c-strstr.c: Don't include str-kmp.h.
55073         (c_strstr): Define in terms of strstr.
55074         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55075         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55076
55077 2008-01-10  Bruno Haible  <bruno@clisp.org>
55078
55079         * doc/gnulib.texi (String Functions in C Locale): New section.
55080         * doc/c-ctype.texi: New file.
55081         * doc/c-strcase.texi: New file.
55082         * doc/c-strcaseeq.texi: New file.
55083         * doc/c-strcasestr.texi: New file.
55084         * doc/c-strstr.texi: New file.
55085         * doc/c-strtod.texi: New file.
55086         * doc/c-strtold.texi: New file.
55087
55088 2008-01-10  Eric Blake  <ebb9@byu.net>
55089
55090         * lib/relocatable.h: Fix a comment.
55091
55092 2008-01-10  Eric Blake  <ebb9@byu.net>
55093
55094         Share two-way algorithm.
55095         * lib/str-two-way.h: New file, merged from...
55096         * lib/memmem.c: ...here...
55097         * lib/strstr.c: ...and here.
55098         * modules/memmem (Files): Use it.
55099         * modules/strstr (Files): Likewise.
55100
55101         Avoid quadratic strstr implementations.
55102         * lib/strstr.c: New file.
55103         * m4/strstr.m4: Likewise.
55104         * modules/strstr: Likewise.
55105         * modules/strstr-tests: Likewise.
55106         * tests/test-strstr.c: Likewise.
55107         * lib/string.in.h (rpl_strstr): Declare.
55108         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55110         * modules/string (Makefile.am): Likewise.
55111         * MODULES.html.sh (string handling): Mention new module.
55112         * doc/functions/strstr.texi (strstr): Document the bug.
55113
55114 2008-01-10  Bruno Haible  <bruno@clisp.org>
55115
55116         * lib/relocatable.h (relocate): State whether result is freshly
55117         allocated or not.
55118         * lib/relocatable.c (relocate): Return a freshly allocated string
55119         instead of a pointer to a privately held string.
55120         Reported by Sylvain Beucler <beuc@gnu.org>.
55121
55122 2008-01-10  Colin Watson  <cjwatson@debian.org>
55123
55124         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55125         s/S_ISNLK/S_ISLNK/.
55126
55127 2008-01-09  Bruno Haible  <bruno@clisp.org>
55128
55129         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55130         and other files.
55131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55132         if it's only a guess.
55133         * modules/memmem: Simplify by depending on memmem-simple.
55134
55135 2008-01-09  Bruno Haible  <bruno@clisp.org>
55136
55137         Work around OpenBSD 4.0 tdelete() bug.
55138         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55139         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55140         macros and don't redefine the enum values.
55141         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55142         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55143         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55144
55145 2008-01-09  Bruno Haible  <bruno@clisp.org>
55146
55147         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55148         (main): Don't perform the tests if setlocale did not install a UTF-8
55149         locale. Needed on OpenBSD 4.0.
55150         * modules/wcwidth-tests (Depends-on): Add localcharset.
55151
55152 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55153
55154         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55155         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55156         * NEWS: announce this.
55157         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55158
55159 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55160         and Eric Blake  <ebb9@byu.net>
55161
55162         Add memmem-simple module.
55163         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55164         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55165         * modules/memmem-simple: New file.
55166         * modules/memmem (Description): Tweak.
55167         * MODULES.html.sh (string handling): Mention new module.
55168         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55169         addressed by memmem-simple.
55170         * NEWS: Document the difference.
55171
55172 2008-01-09  Eric Blake  <ebb9@byu.net>
55173
55174         Give gcc some memmem optimization hints.
55175         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55176         (strcasestr): Declare as pure.
55177         * modules/memmem (Maintainer): Claim my implementation.
55178
55179 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55180
55181         Support AIX 6.1 and higher.
55182         * build-aux/config.libpath: Likewise.
55183         * build-aux/config.rpath: Likewise.
55184
55185 2008-01-08  Jim Meyering  <meyering@redhat.com>
55186             Bruno Haible  <bruno@clisp.org>
55187
55188         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55189         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55190         Reported by Peter Fales in
55191         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55192
55193 2008-01-08  Bruno Haible  <bruno@clisp.org>
55194
55195         * modules/unictype/category-of (Depends-on): Add
55196         unictype/category-none.
55197         * modules/unictype/category-and-tests (Depends-on): Add
55198         unictype/category-{L,N,Lu,Nd}.
55199         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55200         * modules/unictype/category-or-tests (Depends-on): Add
55201         unictype/category-{L,N}.
55202         * modules/unictype/category-name-tests (Depends-on): Add
55203         unictype/category-{Z,Nl}.
55204         Reported by Simon Josefsson.
55205
55206 2008-01-08  Bruno Haible  <bruno@clisp.org>
55207
55208         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55209         convention better.
55210         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55211         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55212         Reported by Peter Miller <millerp@canb.auug.org.au>.
55213
55214 2008-01-08  Eric Blake  <ebb9@byu.net>
55215
55216         Rewrite memmem to guarantee linear complexity without malloc.
55217         * lib/memmem.c (memmem): Use Two-Way rather than
55218         Knuth-Morris-Pratt, to allow O(1) space usage.
55219         (critical_factorization, two_way_short_needle)
55220         (two_way_long_needle): New functions.
55221         (knuth_morris_pratt): Delete.
55222         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55223         Add stdint.
55224         * tests/test-memmem.c (main): Add tests for periodic needle and
55225         sublinear performance.
55226         * doc/functions/memmem.texi (memmem): Document other deficiencies
55227         in cygwin and older glibc.
55228
55229 2008-01-08  Bruno Haible  <bruno@clisp.org>
55230
55231         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55232         augmentation.
55233
55234 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55235
55236         Add a configure time option: --disable-acl.
55237         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55238         AC_ARG_ENABLE(acl).
55239
55240 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55241
55242         * tests/test-localename.c: Don't include obsolete "setenv.h".
55243
55244         * modules/localename-tests (Depends-on): Need unsetenv.
55245
55246 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55247
55248         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55249
55250 2008-01-06  Colin Watson  <cjwatson@debian.org>
55251
55252         * users.txt: Add man-db.
55253
55254 2008-01-07  Bruno Haible  <bruno@clisp.org>
55255
55256         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55257         previous section name.
55258
55259 2008-01-07  Bruno Haible  <bruno@clisp.org>
55260
55261         * lib/progname.c (set_program_name): Don't strip off a leading
55262         "lt-" prefix outside a .libs directory.
55263         Suggested by Paul Eggert.
55264
55265 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55266             Bruno Haible  <bruno@clisp.org>
55267
55268         Improve memory cleanup in 'relocatable' module.
55269         * lib/relocatable.h (compute_curr_prefix): Change return type to
55270         'char *'.
55271         * lib/relocatable.c (compute_curr_prefix): Change return type to
55272         'char *'. Free curr_installdir after use.
55273         (relocate): Free curr_prefix_better after use.
55274         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55275
55276 2008-01-01  Bruno Haible  <bruno@clisp.org>
55277
55278         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55279         failure on older glibc systems.
55280         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55281
55282 2008-01-05  Eric Blake  <ebb9@byu.net>
55283
55284         Avoid quadratic system memmem.
55285         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55286         Reported by Ralf Wildenhues.
55287
55288         Fix memmem test for mingw.
55289         * modules/memmem-tests (configure.ac): Check for alarm.
55290         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55291         it.
55292         * doc/functions/memmem.texi: New file.
55293         * doc/gnulib.texi (Function Substitutes): Add memmem.
55294         Reported by Bruno Haible.
55295
55296 2008-01-04  Bruno Haible  <bruno@clisp.org>
55297
55298         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55299         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55300         gl_HEADER_STRING_H_DEFAULTS.
55301
55302 2008-01-04  Eric Blake  <ebb9@byu.net>
55303
55304         Shorten duration of memmem test.
55305         * tests/test-memmem.c (main): Use alarm to declare failure if test
55306         is taking too long.
55307         Reported by Ralf Wildenhues.
55308
55309 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55310
55311         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55312         string, needed by strerror.
55313
55314 2008-01-03  Colin Watson  <cjwatson@debian.org>
55315             Bruno Haible  <bruno@clisp.org>
55316
55317         * doc/gnulib-tool.texi (Localization): New section.
55318
55319 2008-01-02  Bruno Haible  <bruno@clisp.org>
55320
55321         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55322         variables to 'unsigned char *' type.
55323         Reported by Paul Eggert.
55324
55325 2008-01-02  Jim Meyering  <jim@meyering.net>
55326
55327         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55328
55329 2007-12-31  Jim Meyering  <jim@meyering.net>
55330
55331         Avoid use of private FTS type name.
55332         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55333
55334 2007-12-30  Karl Berry  <karl@gnu.org>
55335
55336         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55337         work around defect in Texinfo and/or the standalone Info browser.
55338
55339 2007-12-30  Bruno Haible  <bruno@clisp.org>
55340
55341         Unify 5 copies of the KMP code.
55342         * lib/str-kmp.h: New file.
55343         * lib/c-strcasestr.c: Include str-kmp.h.
55344         (knuth_morris_pratt): Remove function.
55345         (c_strcasestr): Update.
55346         * lib/c-strstr.c: Include str-kmp.h.
55347         (knuth_morris_pratt): Remove function.
55348         (c_strcasestr): Update.
55349         * lib/mbscasestr.c: Include str-kmp.h.
55350         (knuth_morris_pratt_unibyte): Remove function.
55351         * lib/mbsstr.c: Include str-kmp.h.
55352         (knuth_morris_pratt_unibyte): Remove function.
55353         * lib/strcasestr.c: Include str-kmp.h.
55354         (knuth_morris_pratt): Remove function.
55355         (strcasestr): Update.
55356         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55357         * modules/c-strstr (Files): Likewise.
55358         * modules/mbscasestr (Files): Likewise.
55359         * modules/mbsstr (Files): Likewise.
55360         * modules/strcasestr (Files): Likewise.
55361         Suggested by Paul Eggert.
55362
55363 2007-12-30  Bruno Haible  <bruno@clisp.org>
55364
55365         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55366         defined.
55367
55368 2007-12-30  Bruno Haible  <bruno@clisp.org>
55369
55370         * lib/xmalloca.h: Include xalloc.h.
55371         (xnmalloca): New macro.
55372
55373 2007-12-30  Bruno Haible  <bruno@clisp.org>
55374
55375         * lib/malloca.h (nmalloca): New macro.
55376         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55377         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55378         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55379         knuth_morris_pratt_multibyte): Likewise.
55380         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55381         knuth_morris_pratt_multibyte): Likewise.
55382         * lib/memmem.c (knuth_morris_pratt): Likewise.
55383         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55384
55385 2007-12-25  Bruno Haible  <bruno@clisp.org>
55386
55387         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55388         * lib/glob.c: Don't include openat.h.
55389         (link_exists2_p): Add back the code that deals with the
55390         !GLOB_ALTDIRFUNC case.
55391         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55392         let it do the filename concatenation.
55393         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55394         * modules/glob (Depends-on): Remove openat.
55395
55396 2007-12-31  Bruno Haible  <bruno@clisp.org>
55397
55398         * modules/dirfd (License): Change to LGPLv2+.
55399         Approved by Jim Meyering.
55400
55401 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55402
55403         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55404         when multiplying M by sizeof (size_t).
55405
55406 2007-12-10  Martin Lambers  <marlam@marlam.de>
55407
55408         Override getpagesize on mingw.
55409         * lib/getpagesize.c: New file.
55410         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55411         * modules/getpagesize (Files): Add lib/getpagesize.c.
55412         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55414         REPLACE_GETPAGESIZE.
55415         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55416
55417 2007-12-25  Bruno Haible  <bruno@clisp.org>
55418
55419         * modules/localcharset (Notice): New field.
55420         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55421         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55422
55423 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55424             Bruno Haible  <bruno@clisp.org>
55425
55426         Avoid using the syntax symbol() in formatted documentation.
55427         * MODULES.html.sh (func_module): When replacing symbol() with a
55428         hyperlink, remove the parentheses. Show an error if some remain.
55429         Recognize and render the '...' syntax.
55430         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55431         Rework. Add paragraph about GCC's inlining.
55432         * doc/alloca.texi: Likewise.
55433         * doc/error.texi: Remove parentheses from symbol reference.
55434         * doc/gnulib-intro.texi: Likewise.
55435         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55436         * modules/fnmatch (Description): Reword to say "the ... function".
55437         * modules/full-read (Description): Likewise.
55438         * modules/full-write (Description): Likewise.
55439         * modules/safe-read (Description): Likewise.
55440         * modules/safe-write (Description): Likewise.
55441         * modules/strchrnul (Description): Likewise.
55442         * modules/trim (Description): Likewise.
55443         * modules/error (Description): Remove parentheses from symbol
55444         references.
55445         * modules/verror (Description): Likewise.
55446         Reported by Karl Berry.
55447
55448 2007-12-25  Bruno Haible  <bruno@clisp.org>
55449
55450         Fixup after 2007-10-16 commit.
55451         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55452
55453 2007-12-24  Bruno Haible  <bruno@clisp.org>
55454
55455         Make --enable-relocatable work with DESTDIR.
55456         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55457         to compute installdir from destprog.
55458         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55459         also set the RELOC_DESTDIR variable.
55460         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55461
55462 2007-12-24  Bruno Haible  <bruno@clisp.org>
55463
55464         Fix link error due to xalloc_die().
55465         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55466         of xreadlink.
55467         * lib/relocwrapper.c: Update comments.
55468         * build-aux/install-reloc: Remove xreadlink.c from file list.
55469         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55470         xreadlink.c.
55471         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55472
55473 2007-12-24  Bruno Haible  <bruno@clisp.org>
55474
55475         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55476         * lib/setenv.h: Remove file.
55477         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55478         lib/setenv.h.
55479         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55480         (Depends-on): Add stdlib.
55481         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55482         gl_FUNC_UNSETENV.
55483         (Include): Replace setenv.h with <stdlib.h>.
55484         * modules/unsetenv: New file.
55485         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55486         * lib/unsetenv.c: Include <stdlib.h> first.
55487         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55488         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55489         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55490         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55491         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55492         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55494         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55495         * doc/functions/unsetenv.texi: Update.
55496         * modules/xsetenv (Depends-on): Add unsetenv.
55497         * modules/getdate (Depends-on): Likewise.
55498         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55499         * lib/xsetenv.c: Don't include setenv.h.
55500         * lib/getdate.y: Likewise.
55501         * lib/relocwrapper.c: Likewise.
55502         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55503         (Depends-on): Add stdlib.
55504         * NEWS: Mention the changes.
55505         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55506
55507 2007-12-23  Bruno Haible  <bruno@clisp.org>
55508
55509         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55510         indentation.
55511
55512 2007-12-23  Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/c-strcasestr.c: Add more comments.
55515         * lib/c-strstr.c: Likewise.
55516         * lib/mbscasestr.c: Likewise.
55517         * lib/mbsstr.c: Likewise.
55518         * lib/strcasestr.c: Likewise.
55519         * lib/memmem.c: Likewise.
55520
55521 2007-12-23  Bruno Haible  <bruno@clisp.org>
55522
55523         * tests/test-memmem.c: Include <string.h> first.
55524
55525 2007-12-22  Bruno Haible  <bruno@clisp.org>
55526
55527         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55528         the contents of $testsbase.
55529         Reported by Ralf Wildenhues.
55530
55531 2007-12-22  Bruno Haible  <bruno@clisp.org>
55532
55533         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55534         two variables local_ldadd_before, local_ldadd_last.
55535
55536 2007-12-20  Eric Blake  <ebb9@byu.net>
55537
55538         Work around circular library issue when cross-compiling.
55539         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55540         that progname.o does not need to pull in rpl_memcmp.
55541
55542 2007-12-19  Eric Blake  <ebb9@byu.net>
55543
55544         Fix memmem to avoid O(n^2) worst-case complexity.
55545         * lib/memmem.c (knuth_morris_pratt): New function.
55546         (memmem): Use it if first few naive iterations fail.
55547         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55548         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55549         * modules/memchr (License): Likewise.
55550         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55551         malloca.
55552         * tests/test-memmem.c: Rewrite, borrowing ideas from
55553         test-mbsstr1.c; the old version wouldn't even compile!
55554         * modules/memmem-tests: New file.
55555         * lib/string.in.h (rpl_memmem): Add declaration.
55556         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55558         REPLACE_MEMMEM.
55559
55560 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55561
55562         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55563         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55564         before any system include files, and undef after them all.  This
55565         should fix a problem on VMS reported by John E. Malmberg in
55566         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55567
55568 2007-12-17  Eric Blake  <ebb9@byu.net>
55569
55570         Revert addition of verify, for BSD/OS.
55571         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55572         can't handle large files, for the sake of obsolete platforms.
55573         * modules/fseeko (Depends-on): Remove verify.
55574         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55575         * doc/functions/ftello.texi (ftello): Likewise.
55576         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55577         Reported by Larry Jones.
55578
55579 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55580
55581         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55582         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55583
55584 2007-12-17  Jim Meyering  <meyering@redhat.com>
55585
55586         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55587         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55588         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55589         * modules/getcwd (Depends-on): Add openat.
55590         Reported by Petr Salinger.
55591
55592 2007-12-17  Bruno Haible  <bruno@clisp.org>
55593
55594         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55595         avoid a segmentation fault of the configure test on x86_64 systems.
55596
55597 2007-12-15  Jim Meyering  <meyering@redhat.com>
55598
55599         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55600
55601 2007-12-13  Eric Blake  <ebb9@byu.net>
55602
55603         Another fseek test.
55604         * tests/test-fseek.c (main): Also test ungetc handling.
55605         * tests/test-fseeko.c (main): Likewise.
55606         * modules/fseeko (Depends-on): Add verify.
55607         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55608         large.
55609         Reported by Larry Jones.
55610
55611         Fix fseeko on mingw.
55612         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55613         seek.
55614
55615         Beef up fseek tests.
55616         * tests/test-fseek.c (main): Also test eof handling.
55617         * tests/test-fseeko.c (main): Likewise.
55618         Reported by Larry Jones.
55619
55620 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55621
55622         Fix fseeko on BSD-based platforms.
55623         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55624         successful seek.
55625
55626 2007-12-12  Eric Blake  <ebb9@byu.net>
55627
55628         Allow circular dependency of separate libtests.a
55629         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55630         when use_libtests.
55631
55632 2007-12-11  Eric Blake  <ebb9@byu.net>
55633
55634         Fix bug with -0.0L in previous patch.
55635         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55636         * tests/test-isnan.c (main): Also test on zeroes.
55637         * tests/test-isnanf.c (main): Likewise.
55638         * tests/test-isnanl.h (main): Likewise.
55639
55640         Detect pseudo-denormals on x86 even when cross-compiling.
55641         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55642         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55643         invalid bit patterns that happen to satisfy ==.
55644
55645         Avoid link failures with separate libtests.a.
55646         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55647         last, to satisfy circular dependencies.
55648
55649 2007-12-11  Eric Blake  <ebb9@byu.net>
55650         and Bruno Haible  <bruno@clisp.org>
55651
55652         Fix OpenBSD 4.0 <float.h> handling of long double.
55653         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55654         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55655         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55656
55657 2007-12-11  Jim Meyering  <meyering@redhat.com>
55658
55659         * users.txt: Add libvirt.
55660
55661         Support versions of autoconf prior to 2.59c.
55662         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55663         if it is not already defined.
55664
55665 2007-12-09  Bruno Haible  <bruno@clisp.org>
55666
55667         Let 'gnulib-tool --import' collect sources needed for the tests in
55668         tests/ rather than in lib/.
55669         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55670         argument. If true, add rules to generate libtests.a, and put libtests.a
55671         into $(LDADD). Consider source files in subdirectories and set
55672         uses_subdirs.
55673         (func_emit_initmacro_start, func_emit_initmacro_end,
55674         func_emit_initmacro_done): Pass all arguments explicitly.
55675         (func_import): Determine two module lists main_modules,
55676         testsrelated_modules. Determine use_libtests. Determine two variables
55677         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55678         instead of just sed_transform_lib_file. Determine two variables
55679         main_files and testsrelated_files. Compute 'files' as the union of
55680         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55681         func_add_or_update. In the generated gnulib-comp.m4, collect the
55682         object files for tests/ in different variables than those for lib/.
55683         Substitute LIBTESTS_LIBDEPS.
55684         (func_create_testdir): Combine the uses_subdirs results from
55685         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55686
55687 2007-12-09  Bruno Haible  <bruno@clisp.org>
55688
55689         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55690         the build-aux directory.
55691
55692 2007-12-09  Bruno Haible  <bruno@clisp.org>
55693
55694         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55695         introduced on 2006-09-09.
55696
55697 2007-12-07  Jim Meyering  <meyering@redhat.com>
55698
55699         Let these macros work also with autoconf-2.59.
55700         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55701         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55702         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55703
55704 2007-12-06  Jim Meyering  <meyering@redhat.com>
55705
55706         Avoid a configure-time syntax error in gl_FUNC_ACL.
55707         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55708         function in each branch, before testing the cache variable.
55709
55710 2007-12-04  Eric Blake  <ebb9@byu.net>
55711
55712         Make scripts executable.
55713         * build-aux/config.guess: Add execute permissions.
55714         * build-aux/config.sub: Likewise.
55715         * build-aux/gendocs.sh: Likewise.
55716
55717         Fix frexp on mingw.
55718         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55719         cross-compiling.
55720         * doc/functions/frexp.texi (frexp): Document the bug.
55721
55722         Make cygwin fseeko check more reliable.
55723         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55724         version numbers, rather than unrelated feature check.
55725         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55726         * doc/functions/ftello.texi (ftello): Likewise.
55727         Reported by Bruno Haible.
55728
55729         * m4/strerror.m4: Bump version number.
55730
55731 2007-12-03  Bruno Haible  <bruno@clisp.org>
55732
55733         * doc/functions/mprotect.texi: Mention the mingw problem.
55734
55735 2007-12-03  Eric Blake  <ebb9@byu.net>
55736
55737         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55738         REPLACE_STRERROR is initialized before this macro.
55739
55740 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55743         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55744         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55745         put -lsec in even for programs other than 'ls'.  This fixes a problem
55746         for gettext reported by Bruno Haible in
55747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55748         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55749         Add support for Solaris 10.  This isn't efficient, but should get the
55750         job done for now.
55751
55752 2007-12-03  James Youngman  <jay@gnu.org>
55753
55754         * doc/regexprops-generic.texi: change "an close-group" to "a
55755         close-group" and "illegal" to "not allowed".
55756
55757 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55758
55759         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55760         pr_byname.h. Needed for the rare case when the maintainer has done
55761         "make maintainer-clean" in the source directory and then attempts a
55762         build outside the source directory.
55763         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55764         scripts_byname.h.
55765
55766 2007-12-02  Martin Lambers <marlam@marlam.de>
55767             Bruno Haible  <bruno@clisp.org>
55768
55769         * lib/getpagesize.h: Remove file.
55770         * lib/unistd.in.h: Include declaration of getpagesize here.
55771         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55772         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55773         HAVE_SYS_PARAM_H.
55774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55775         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55776         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55777         (Depends-on): Add unistd.
55778         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55779         (Include): Use <unistd.h> instead of getpagesize.h.
55780         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55781         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55782         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55783         gl_GETPAGESIZE invocation, already handled by module dependency.
55784         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55785
55786 2007-12-02  Bruno Haible  <bruno@clisp.org>
55787
55788         * modules/strings-tests: New file.
55789         * tests/test-strings.c: New file.
55790
55791         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55792         * lib/strings.in.h: New file.
55793         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55794         * m4/strings_h.m4: New file.
55795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55796         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55797         * modules/strings: New file.
55798         * modules/string (Makefile.am): Update.
55799         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55800         Reported by Karl Berry.
55801
55802 2007-12-01  Eric Blake  <ebb9@byu.net>
55803
55804         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55805         accomodate fix in cygwin 1.5.25.
55806
55807 2007-12-01  Jim Meyering  <meyering@redhat.com>
55808
55809         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55810         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55811         that would inhibit utf8-optimization of a regexp containing line-
55812         or buffer-anchors, e.g., `^', `$'.
55813
55814 2007-11-30  Bruno Haible  <bruno@clisp.org>
55815
55816         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55817         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55818         glthread_recursive_lock_init.
55819         * lib/lock.c (glthread_recursive_lock_init)
55820         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55821         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55822
55823 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55824
55825         New function qset_acl, like set_acl but with syscall semantics.
55826         * lib/acl.h (qset_acl): New decl.
55827         * lib/acl.c (qset_acl): New function.
55828         (set_acl): Use new function.  Use more-consistent diagnostics.
55829
55830 2007-11-28  Jim Meyering  <meyering@redhat.com>
55831
55832         * modules/physmem (License): Change from GPL to LGPLv2+.
55833
55834 2007-11-26  Bruno Haible  <bruno@clisp.org>
55835
55836         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55837         'long double' type has excess precision.
55838         Reported by Jim Meyering in
55839         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55840
55841 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55842
55843         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55844         Sync from <http://gnu.org/licenses>.
55845         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55846         with license text from same location.
55847         * doc/maintain.texi, doc/standards.texi:  Sync from
55848         <http://savannah.gnu.org/projects/gnustandards>.
55849
55850 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55851         and Jim Meyering  <meyering@redhat.com>
55852
55853         Adjust getdate' grammar to accept a slightly more regular language.
55854         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55855         Before, the former was rejected.
55856         * lib/getdate.y (digits_to_date_time): New function, factored
55857         out of ...
55858         (number): ...here.  Just call digits_to_date_time.
55859         (hybrid): New non-terminal to handle an <unsigned number,
55860         signed relative offset> sequence consistently.
55861
55862 2007-11-18  Jim Meyering  <meyering@redhat.com>
55863
55864         Pull my changes from coreutils:
55865         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55866         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55867         use of $gnulib_tool_option_extras, so that it's separated from the
55868         preceding argument.
55869
55870         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55871         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55872         parent destination directories before copying a file into place.
55873
55874 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55875
55876         bootstrap: work also with 4-argument variant of AC_INIT
55877         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55878
55879 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55880
55881         Port test-getaddrinfo to Solaris.
55882         Problem reported by Bruno Haible in
55883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55884         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55885         explanation of setting 'hints'.
55886         Don't reject an implementation merely because it returns EAI_SERVICE.
55887         (EAI_SERVICE): Define to 0 if not defined.
55888
55889 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55890
55891         The license of gnu-make and posix-shell is now "GPLed build tool".
55892         * modules/gnu-make (License): Likewise.
55893         * modules/posix-shell (License): Likewise.
55894
55895         New module posix-shell, for determining a POSIX shell
55896         or perhaps something that is close enough to a POSIX shell.
55897         * m4/posix-shell.m4: New file.
55898         * modules/posix-shell: New file.
55899
55900         * MODULES.html.sh: Mention new module.
55901
55902         New module gnu-make, for determining whether we're using GNU Make.
55903         * m4/gnu-make.m4: New file.
55904         * modules/gnu-make: New file.
55905         * MODULES.html.sh: Mention new module.
55906
55907 2007-11-14  Jim Meyering  <meyering@redhat.com>
55908
55909         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55910         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55911         use this macro to create a function _definition_.
55912         Remove useless "#undef ARGMATCH_DIE".
55913
55914 2007-11-14  Bruno Haible  <bruno@clisp.org>
55915
55916         * lib/config.charset: Update for OpenBSD 4.1.
55917         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55918
55919 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55920
55921         Document 64-bit #if problems in stdint.texi.
55922         * doc/headers/stdint.texi (stdint.h): Mention problems with
55923         64-bit-#if, and how to work around them.
55924
55925         Don't insist on 'long long int' support in the preprocessor.  It
55926         breaks too many things.  For example, PRIdMAX still uses a 'long
55927         long int' format with the latest Sun compiler, even though
55928         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55929         preprocessor problem.  This causes the latest coreutils to dump
55930         core on Solaris 10 sparc with the Sun C compiler.
55931         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55932         the troublesome expressions at configure-time, not at #if-time.
55933         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55934         preprocessor.
55935         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55936         compile-time C checks, done at 'configure'-time.
55937         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55938         * modules/inttypes (Makefile): Substitute the new symbols that
55939         gl_INTTYPES_H now generates.
55940         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55941
55942 2007-11-12  Bruno Haible  <bruno@clisp.org>
55943
55944         Tests for Unicode character classification functions.
55945
55946         * modules/unictype/bidicategory-byname-tests: New file.
55947         * modules/unictype/bidicategory-name-tests: New file.
55948         * modules/unictype/bidicategory-of-tests: New file.
55949         * modules/unictype/bidicategory-test-tests: New file.
55950         * modules/unictype/block-list-tests: New file.
55951         * modules/unictype/block-of-tests: New file.
55952         * modules/unictype/block-test-tests: New file.
55953         * modules/unictype/category-C-tests: New file.
55954         * modules/unictype/category-Cc-tests: New file.
55955         * modules/unictype/category-Cf-tests: New file.
55956         * modules/unictype/category-Cn-tests: New file.
55957         * modules/unictype/category-Co-tests: New file.
55958         * modules/unictype/category-Cs-tests: New file.
55959         * modules/unictype/category-L-tests: New file.
55960         * modules/unictype/category-Ll-tests: New file.
55961         * modules/unictype/category-Lm-tests: New file.
55962         * modules/unictype/category-Lo-tests: New file.
55963         * modules/unictype/category-Lt-tests: New file.
55964         * modules/unictype/category-Lu-tests: New file.
55965         * modules/unictype/category-M-tests: New file.
55966         * modules/unictype/category-Mc-tests: New file.
55967         * modules/unictype/category-Me-tests: New file.
55968         * modules/unictype/category-Mn-tests: New file.
55969         * modules/unictype/category-N-tests: New file.
55970         * modules/unictype/category-Nd-tests: New file.
55971         * modules/unictype/category-Nl-tests: New file.
55972         * modules/unictype/category-No-tests: New file.
55973         * modules/unictype/category-P-tests: New file.
55974         * modules/unictype/category-Pc-tests: New file.
55975         * modules/unictype/category-Pd-tests: New file.
55976         * modules/unictype/category-Pe-tests: New file.
55977         * modules/unictype/category-Pf-tests: New file.
55978         * modules/unictype/category-Pi-tests: New file.
55979         * modules/unictype/category-Po-tests: New file.
55980         * modules/unictype/category-Ps-tests: New file.
55981         * modules/unictype/category-S-tests: New file.
55982         * modules/unictype/category-Sc-tests: New file.
55983         * modules/unictype/category-Sk-tests: New file.
55984         * modules/unictype/category-Sm-tests: New file.
55985         * modules/unictype/category-So-tests: New file.
55986         * modules/unictype/category-Z-tests: New file.
55987         * modules/unictype/category-Zl-tests: New file.
55988         * modules/unictype/category-Zp-tests: New file.
55989         * modules/unictype/category-Zs-tests: New file.
55990         * modules/unictype/category-and-not-tests: New file.
55991         * modules/unictype/category-and-tests: New file.
55992         * modules/unictype/category-byname-tests: New file.
55993         * modules/unictype/category-name-tests: New file.
55994         * modules/unictype/category-none-tests: New file.
55995         * modules/unictype/category-of-tests: New file.
55996         * modules/unictype/category-or-tests: New file.
55997         * modules/unictype/category-test-withtable-tests: New file.
55998         * modules/unictype/combining-class-tests: New file.
55999         * modules/unictype/ctype-alnum-tests: New file.
56000         * modules/unictype/ctype-alpha-tests: New file.
56001         * modules/unictype/ctype-blank-tests: New file.
56002         * modules/unictype/ctype-cntrl-tests: New file.
56003         * modules/unictype/ctype-digit-tests: New file.
56004         * modules/unictype/ctype-graph-tests: New file.
56005         * modules/unictype/ctype-lower-tests: New file.
56006         * modules/unictype/ctype-print-tests: New file.
56007         * modules/unictype/ctype-punct-tests: New file.
56008         * modules/unictype/ctype-space-tests: New file.
56009         * modules/unictype/ctype-upper-tests: New file.
56010         * modules/unictype/ctype-xdigit-tests: New file.
56011         * modules/unictype/decimal-digit-tests: New file.
56012         * modules/unictype/digit-tests: New file.
56013         * modules/unictype/mirror-tests: New file.
56014         * modules/unictype/numeric-tests: New file.
56015         * modules/unictype/property-alphabetic-tests: New file.
56016         * modules/unictype/property-ascii-hex-digit-tests: New file.
56017         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56018         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56019         * modules/unictype/property-bidi-block-separator-tests: New file.
56020         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56021         * modules/unictype/property-bidi-common-separator-tests: New file.
56022         * modules/unictype/property-bidi-control-tests: New file.
56023         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56024         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56025         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56026         * modules/unictype/property-bidi-european-digit-tests: New file.
56027         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56028         * modules/unictype/property-bidi-left-to-right-tests: New file.
56029         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56030         * modules/unictype/property-bidi-other-neutral-tests: New file.
56031         * modules/unictype/property-bidi-pdf-tests: New file.
56032         * modules/unictype/property-bidi-segment-separator-tests: New file.
56033         * modules/unictype/property-bidi-whitespace-tests: New file.
56034         * modules/unictype/property-byname-tests: New file.
56035         * modules/unictype/property-combining-tests: New file.
56036         * modules/unictype/property-composite-tests: New file.
56037         * modules/unictype/property-currency-symbol-tests: New file.
56038         * modules/unictype/property-dash-tests: New file.
56039         * modules/unictype/property-decimal-digit-tests: New file.
56040         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56041         * modules/unictype/property-deprecated-tests: New file.
56042         * modules/unictype/property-diacritic-tests: New file.
56043         * modules/unictype/property-extender-tests: New file.
56044         * modules/unictype/property-format-control-tests: New file.
56045         * modules/unictype/property-grapheme-base-tests: New file.
56046         * modules/unictype/property-grapheme-extend-tests: New file.
56047         * modules/unictype/property-grapheme-link-tests: New file.
56048         * modules/unictype/property-hex-digit-tests: New file.
56049         * modules/unictype/property-hyphen-tests: New file.
56050         * modules/unictype/property-id-continue-tests: New file.
56051         * modules/unictype/property-id-start-tests: New file.
56052         * modules/unictype/property-ideographic-tests: New file.
56053         * modules/unictype/property-ids-binary-operator-tests: New file.
56054         * modules/unictype/property-ids-trinary-operator-tests: New file.
56055         * modules/unictype/property-ignorable-control-tests: New file.
56056         * modules/unictype/property-iso-control-tests: New file.
56057         * modules/unictype/property-join-control-tests: New file.
56058         * modules/unictype/property-left-of-pair-tests: New file.
56059         * modules/unictype/property-line-separator-tests: New file.
56060         * modules/unictype/property-logical-order-exception-tests: New file.
56061         * modules/unictype/property-lowercase-tests: New file.
56062         * modules/unictype/property-math-tests: New file.
56063         * modules/unictype/property-non-break-tests: New file.
56064         * modules/unictype/property-not-a-character-tests: New file.
56065         * modules/unictype/property-numeric-tests: New file.
56066         * modules/unictype/property-other-alphabetic-tests: New file.
56067         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56068         * modules/unictype/property-other-grapheme-extend-tests: New file.
56069         * modules/unictype/property-other-id-continue-tests: New file.
56070         * modules/unictype/property-other-id-start-tests: New file.
56071         * modules/unictype/property-other-lowercase-tests: New file.
56072         * modules/unictype/property-other-math-tests: New file.
56073         * modules/unictype/property-other-uppercase-tests: New file.
56074         * modules/unictype/property-paired-punctuation-tests: New file.
56075         * modules/unictype/property-paragraph-separator-tests: New file.
56076         * modules/unictype/property-pattern-syntax-tests: New file.
56077         * modules/unictype/property-pattern-white-space-tests: New file.
56078         * modules/unictype/property-private-use-tests: New file.
56079         * modules/unictype/property-punctuation-tests: New file.
56080         * modules/unictype/property-quotation-mark-tests: New file.
56081         * modules/unictype/property-radical-tests: New file.
56082         * modules/unictype/property-sentence-terminal-tests: New file.
56083         * modules/unictype/property-soft-dotted-tests: New file.
56084         * modules/unictype/property-space-tests: New file.
56085         * modules/unictype/property-terminal-punctuation-tests: New file.
56086         * modules/unictype/property-test-tests: New file.
56087         * modules/unictype/property-titlecase-tests: New file.
56088         * modules/unictype/property-unassigned-code-value-tests: New file.
56089         * modules/unictype/property-unified-ideograph-tests: New file.
56090         * modules/unictype/property-uppercase-tests: New file.
56091         * modules/unictype/property-variation-selector-tests: New file.
56092         * modules/unictype/property-white-space-tests: New file.
56093         * modules/unictype/property-xid-continue-tests: New file.
56094         * modules/unictype/property-xid-start-tests: New file.
56095         * modules/unictype/property-zero-width-tests: New file.
56096         * modules/unictype/scripts-tests: New file.
56097         * modules/unictype/syntax-c-ident-tests: New file.
56098         * modules/unictype/syntax-c-whitespace-tests: New file.
56099         * modules/unictype/syntax-java-ident-tests: New file.
56100         * modules/unictype/syntax-java-whitespace-tests: New file.
56101         * tests/unictype/test-bidi_byname.c: New file.
56102         * tests/unictype/test-bidi_name.c: New file.
56103         * tests/unictype/test-bidi_of.c: New file.
56104         * tests/unictype/test-bidi_test.c: New file.
56105         * tests/unictype/test-block_list.c: New file.
56106         * tests/unictype/test-block_of.c: New file.
56107         * tests/unictype/test-block_test.c: New file.
56108         * tests/unictype/test-categ_and.c: New file.
56109         * tests/unictype/test-categ_and_not.c: New file.
56110         * tests/unictype/test-categ_byname.c: New file.
56111         * tests/unictype/test-categ_name.c: New file.
56112         * tests/unictype/test-categ_none.c: New file.
56113         * tests/unictype/test-categ_of.c: New file.
56114         * tests/unictype/test-categ_or.c: New file.
56115         * tests/unictype/test-categ_test_withtable.c: New file.
56116         * tests/unictype/test-combining.c: New file.
56117         * tests/unictype/test-decdigit.c: New file.
56118         * tests/unictype/test-digit.c: New file.
56119         * tests/unictype/test-mirror.c: New file.
56120         * tests/unictype/test-numeric.c: New file.
56121         * tests/unictype/test-pr_byname.c: New file.
56122         * tests/unictype/test-pr_test.c: New file.
56123         * tests/unictype/test-predicate-part1.h: New file.
56124         * tests/unictype/test-predicate-part2.h: New file.
56125         * tests/unictype/test-scripts.c: New file.
56126         * tests/unictype/test-sy_c_ident.c: New file.
56127         * tests/unictype/test-sy_java_ident.c: New file.
56128
56129         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56130         for Unicode 5.0.0.
56131         * tests/unictype/test-categ_Cc.c: Likewise.
56132         * tests/unictype/test-categ_Cf.c: Likewise.
56133         * tests/unictype/test-categ_Cn.c: Likewise.
56134         * tests/unictype/test-categ_Co.c: Likewise.
56135         * tests/unictype/test-categ_Cs.c: Likewise.
56136         * tests/unictype/test-categ_L.c: Likewise.
56137         * tests/unictype/test-categ_Ll.c: Likewise.
56138         * tests/unictype/test-categ_Lm.c: Likewise.
56139         * tests/unictype/test-categ_Lo.c: Likewise.
56140         * tests/unictype/test-categ_Lt.c: Likewise.
56141         * tests/unictype/test-categ_Lu.c: Likewise.
56142         * tests/unictype/test-categ_M.c: Likewise.
56143         * tests/unictype/test-categ_Mc.c: Likewise.
56144         * tests/unictype/test-categ_Me.c: Likewise.
56145         * tests/unictype/test-categ_Mn.c: Likewise.
56146         * tests/unictype/test-categ_N.c: Likewise.
56147         * tests/unictype/test-categ_Nd.c: Likewise.
56148         * tests/unictype/test-categ_Nl.c: Likewise.
56149         * tests/unictype/test-categ_No.c: Likewise.
56150         * tests/unictype/test-categ_P.c: Likewise.
56151         * tests/unictype/test-categ_Pc.c: Likewise.
56152         * tests/unictype/test-categ_Pd.c: Likewise.
56153         * tests/unictype/test-categ_Pe.c: Likewise.
56154         * tests/unictype/test-categ_Pf.c: Likewise.
56155         * tests/unictype/test-categ_Pi.c: Likewise.
56156         * tests/unictype/test-categ_Po.c: Likewise.
56157         * tests/unictype/test-categ_Ps.c: Likewise.
56158         * tests/unictype/test-categ_S.c: Likewise.
56159         * tests/unictype/test-categ_Sc.c: Likewise.
56160         * tests/unictype/test-categ_Sk.c: Likewise.
56161         * tests/unictype/test-categ_Sm.c: Likewise.
56162         * tests/unictype/test-categ_So.c: Likewise.
56163         * tests/unictype/test-categ_Z.c: Likewise.
56164         * tests/unictype/test-categ_Zl.c: Likewise.
56165         * tests/unictype/test-categ_Zp.c: Likewise.
56166         * tests/unictype/test-categ_Zs.c: Likewise.
56167         * tests/unictype/test-ctype_alnum.c: Likewise.
56168         * tests/unictype/test-ctype_alpha.c: Likewise.
56169         * tests/unictype/test-ctype_blank.c: Likewise.
56170         * tests/unictype/test-ctype_cntrl.c: Likewise.
56171         * tests/unictype/test-ctype_digit.c: Likewise.
56172         * tests/unictype/test-ctype_graph.c: Likewise.
56173         * tests/unictype/test-ctype_lower.c: Likewise.
56174         * tests/unictype/test-ctype_print.c: Likewise.
56175         * tests/unictype/test-ctype_punct.c: Likewise.
56176         * tests/unictype/test-ctype_space.c: Likewise.
56177         * tests/unictype/test-ctype_upper.c: Likewise.
56178         * tests/unictype/test-ctype_xdigit.c: Likewise.
56179         * tests/unictype/test-decdigit.h: Likewise.
56180         * tests/unictype/test-digit.h: Likewise.
56181         * tests/unictype/test-numeric.h: Likewise.
56182         * tests/unictype/test-pr_alphabetic.c: Likewise.
56183         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56184         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56185         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56186         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56187         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56188         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56189         * tests/unictype/test-pr_bidi_control.c: Likewise.
56190         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56191         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56192         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56193         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56194         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56195         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56196         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56197         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56198         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56199         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56200         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56201         * tests/unictype/test-pr_combining.c: Likewise.
56202         * tests/unictype/test-pr_composite.c: Likewise.
56203         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56204         * tests/unictype/test-pr_dash.c: Likewise.
56205         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56206         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56207         * tests/unictype/test-pr_deprecated.c: Likewise.
56208         * tests/unictype/test-pr_diacritic.c: Likewise.
56209         * tests/unictype/test-pr_extender.c: Likewise.
56210         * tests/unictype/test-pr_format_control.c: Likewise.
56211         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56212         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56213         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56214         * tests/unictype/test-pr_hex_digit.c: Likewise.
56215         * tests/unictype/test-pr_hyphen.c: Likewise.
56216         * tests/unictype/test-pr_id_continue.c: Likewise.
56217         * tests/unictype/test-pr_id_start.c: Likewise.
56218         * tests/unictype/test-pr_ideographic.c: Likewise.
56219         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56220         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56221         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56222         * tests/unictype/test-pr_iso_control.c: Likewise.
56223         * tests/unictype/test-pr_join_control.c: Likewise.
56224         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56225         * tests/unictype/test-pr_line_separator.c: Likewise.
56226         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56227         * tests/unictype/test-pr_lowercase.c: Likewise.
56228         * tests/unictype/test-pr_math.c: Likewise.
56229         * tests/unictype/test-pr_non_break.c: Likewise.
56230         * tests/unictype/test-pr_not_a_character.c: Likewise.
56231         * tests/unictype/test-pr_numeric.c: Likewise.
56232         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56233         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56234         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56235         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56236         * tests/unictype/test-pr_other_id_start.c: Likewise.
56237         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56238         * tests/unictype/test-pr_other_math.c: Likewise.
56239         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56240         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56241         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56242         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56243         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56244         * tests/unictype/test-pr_private_use.c: Likewise.
56245         * tests/unictype/test-pr_punctuation.c: Likewise.
56246         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56247         * tests/unictype/test-pr_radical.c: Likewise.
56248         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56249         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56250         * tests/unictype/test-pr_space.c: Likewise.
56251         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56252         * tests/unictype/test-pr_titlecase.c: Likewise.
56253         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56254         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56255         * tests/unictype/test-pr_uppercase.c: Likewise.
56256         * tests/unictype/test-pr_variation_selector.c: Likewise.
56257         * tests/unictype/test-pr_white_space.c: Likewise.
56258         * tests/unictype/test-pr_xid_continue.c: Likewise.
56259         * tests/unictype/test-pr_xid_start.c: Likewise.
56260         * tests/unictype/test-pr_zero_width.c: Likewise.
56261         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56262         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56263
56264 2007-11-12  Bruno Haible  <bruno@clisp.org>
56265
56266         Unicode character classification functions.
56267         * lib/unictype.h: New file.
56268         * modules/unictype/base: New file.
56269         * modules/unictype/category-L: New file.
56270         * modules/unictype/category-Lu: New file.
56271         * modules/unictype/category-Ll: New file.
56272         * modules/unictype/category-Lt: New file.
56273         * modules/unictype/category-Lm: New file.
56274         * modules/unictype/category-Lo: New file.
56275         * modules/unictype/category-M: New file.
56276         * modules/unictype/category-Mn: New file.
56277         * modules/unictype/category-Mc: New file.
56278         * modules/unictype/category-Me: New file.
56279         * modules/unictype/category-N: New file.
56280         * modules/unictype/category-Nd: New file.
56281         * modules/unictype/category-Nl: New file.
56282         * modules/unictype/category-No: New file.
56283         * modules/unictype/category-P: New file.
56284         * modules/unictype/category-Pc: New file.
56285         * modules/unictype/category-Pd: New file.
56286         * modules/unictype/category-Ps: New file.
56287         * modules/unictype/category-Pe: New file.
56288         * modules/unictype/category-Pi: New file.
56289         * modules/unictype/category-Pf: New file.
56290         * modules/unictype/category-Po: New file.
56291         * modules/unictype/category-S: New file.
56292         * modules/unictype/category-Sm: New file.
56293         * modules/unictype/category-Sc: New file.
56294         * modules/unictype/category-Sk: New file.
56295         * modules/unictype/category-So: New file.
56296         * modules/unictype/category-Z: New file.
56297         * modules/unictype/category-Zs: New file.
56298         * modules/unictype/category-Zl: New file.
56299         * modules/unictype/category-Zp: New file.
56300         * modules/unictype/category-C: New file.
56301         * modules/unictype/category-Cc: New file.
56302         * modules/unictype/category-Cf: New file.
56303         * modules/unictype/category-Cs: New file.
56304         * modules/unictype/category-Co: New file.
56305         * modules/unictype/category-Cn: New file.
56306         * modules/unictype/category-or: New file.
56307         * modules/unictype/category-of: New file.
56308         * modules/unictype/category-test: New file.
56309         * modules/unictype/category-test-withtable: New file.
56310         * modules/unictype/category-byname: New file.
56311         * modules/unictype/category-none: New file.
56312         * modules/unictype/category-and: New file.
56313         * modules/unictype/category-and-not: New file.
56314         * modules/unictype/category-name: New file.
56315         * modules/unictype/combining-class: New file.
56316         * modules/unictype/category-all: New file.
56317         * modules/unictype/bidicategory-all: New file.
56318         * modules/unictype/bidicategory-byname: New file.
56319         * modules/unictype/bidicategory-name: New file.
56320         * modules/unictype/bidicategory-of: New file.
56321         * modules/unictype/bidicategory-test: New file.
56322         * modules/unictype/decimal-digit: New file.
56323         * modules/unictype/digit: New file.
56324         * modules/unictype/numeric: New file.
56325         * modules/unictype/mirror: New file.
56326         * modules/unictype/property-white-space: New file.
56327         * modules/unictype/property-alphabetic: New file.
56328         * modules/unictype/property-other-alphabetic: New file.
56329         * modules/unictype/property-not-a-character: New file.
56330         * modules/unictype/property-default-ignorable-code-point: New file.
56331         * modules/unictype/property-other-default-ignorable-code-point: New
56332         file.
56333         * modules/unictype/property-deprecated: New file.
56334         * modules/unictype/property-logical-order-exception: New file.
56335         * modules/unictype/property-variation-selector: New file.
56336         * modules/unictype/property-private-use: New file.
56337         * modules/unictype/property-unassigned-code-value: New file.
56338         * modules/unictype/property-uppercase: New file.
56339         * modules/unictype/property-other-uppercase: New file.
56340         * modules/unictype/property-lowercase: New file.
56341         * modules/unictype/property-other-lowercase: New file.
56342         * modules/unictype/property-titlecase: New file.
56343         * modules/unictype/property-soft-dotted: New file.
56344         * modules/unictype/property-id-start: New file.
56345         * modules/unictype/property-other-id-start: New file.
56346         * modules/unictype/property-id-continue: New file.
56347         * modules/unictype/property-other-id-continue: New file.
56348         * modules/unictype/property-xid-start: New file.
56349         * modules/unictype/property-xid-continue: New file.
56350         * modules/unictype/property-pattern-white-space: New file.
56351         * modules/unictype/property-pattern-syntax: New file.
56352         * modules/unictype/property-join-control: New file.
56353         * modules/unictype/property-grapheme-base: New file.
56354         * modules/unictype/property-grapheme-extend: New file.
56355         * modules/unictype/property-other-grapheme-extend: New file.
56356         * modules/unictype/property-grapheme-link: New file.
56357         * modules/unictype/property-bidi-control: New file.
56358         * modules/unictype/property-bidi-left-to-right: New file.
56359         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56360         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56361         * modules/unictype/property-bidi-european-digit: New file.
56362         * modules/unictype/property-bidi-eur-num-separator: New file.
56363         * modules/unictype/property-bidi-eur-num-terminator: New file.
56364         * modules/unictype/property-bidi-arabic-digit: New file.
56365         * modules/unictype/property-bidi-common-separator: New file.
56366         * modules/unictype/property-bidi-block-separator: New file.
56367         * modules/unictype/property-bidi-segment-separator: New file.
56368         * modules/unictype/property-bidi-whitespace: New file.
56369         * modules/unictype/property-bidi-non-spacing-mark: New file.
56370         * modules/unictype/property-bidi-boundary-neutral: New file.
56371         * modules/unictype/property-bidi-pdf: New file.
56372         * modules/unictype/property-bidi-embedding-or-override: New file.
56373         * modules/unictype/property-bidi-other-neutral: New file.
56374         * modules/unictype/property-hex-digit: New file.
56375         * modules/unictype/property-ascii-hex-digit: New file.
56376         * modules/unictype/property-ideographic: New file.
56377         * modules/unictype/property-unified-ideograph: New file.
56378         * modules/unictype/property-radical: New file.
56379         * modules/unictype/property-ids-binary-operator: New file.
56380         * modules/unictype/property-ids-trinary-operator: New file.
56381         * modules/unictype/property-zero-width: New file.
56382         * modules/unictype/property-space: New file.
56383         * modules/unictype/property-non-break: New file.
56384         * modules/unictype/property-iso-control: New file.
56385         * modules/unictype/property-format-control: New file.
56386         * modules/unictype/property-dash: New file.
56387         * modules/unictype/property-hyphen: New file.
56388         * modules/unictype/property-punctuation: New file.
56389         * modules/unictype/property-line-separator: New file.
56390         * modules/unictype/property-paragraph-separator: New file.
56391         * modules/unictype/property-quotation-mark: New file.
56392         * modules/unictype/property-sentence-terminal: New file.
56393         * modules/unictype/property-terminal-punctuation: New file.
56394         * modules/unictype/property-currency-symbol: New file.
56395         * modules/unictype/property-math: New file.
56396         * modules/unictype/property-other-math: New file.
56397         * modules/unictype/property-paired-punctuation: New file.
56398         * modules/unictype/property-left-of-pair: New file.
56399         * modules/unictype/property-combining: New file.
56400         * modules/unictype/property-composite: New file.
56401         * modules/unictype/property-decimal-digit: New file.
56402         * modules/unictype/property-numeric: New file.
56403         * modules/unictype/property-diacritic: New file.
56404         * modules/unictype/property-extender: New file.
56405         * modules/unictype/property-ignorable-control: New file.
56406         * modules/unictype/property-test: New file.
56407         * modules/unictype/property-byname: New file.
56408         * modules/unictype/property-all: New file.
56409         * modules/unictype/scripts: New file.
56410         * modules/unictype/scripts-all: New file.
56411         * modules/unictype/block-of: New file.
56412         * modules/unictype/block-test: New file.
56413         * modules/unictype/block-list: New file.
56414         * modules/unictype/block-all: New file.
56415         * modules/unictype/syntax-c-whitespace: New file.
56416         * modules/unictype/syntax-java-whitespace: New file.
56417         * modules/unictype/syntax-c-ident: New file.
56418         * modules/unictype/syntax-java-ident: New file.
56419         * modules/unictype/ctype-alnum: New file.
56420         * modules/unictype/ctype-alpha: New file.
56421         * modules/unictype/ctype-cntrl: New file.
56422         * modules/unictype/ctype-digit: New file.
56423         * modules/unictype/ctype-graph: New file.
56424         * modules/unictype/ctype-lower: New file.
56425         * modules/unictype/ctype-print: New file.
56426         * modules/unictype/ctype-punct: New file.
56427         * modules/unictype/ctype-space: New file.
56428         * modules/unictype/ctype-upper: New file.
56429         * modules/unictype/ctype-xdigit: New file.
56430         * modules/unictype/ctype-blank: New file.
56431         * lib/unictype/bidi_byname.c: New file.
56432         * lib/unictype/bidi_name.c: New file.
56433         * lib/unictype/bidi_of.c: New file.
56434         * lib/unictype/bidi_test.c: New file.
56435         * lib/unictype/bitmap.h: New file.
56436         * lib/unictype/block_test.c: New file.
56437         * lib/unictype/blocks.c: New file.
56438         * lib/unictype/categ_C.c: New file.
56439         * lib/unictype/categ_Cc.c: New file.
56440         * lib/unictype/categ_Cf.c: New file.
56441         * lib/unictype/categ_Cn.c: New file.
56442         * lib/unictype/categ_Co.c: New file.
56443         * lib/unictype/categ_Cs.c: New file.
56444         * lib/unictype/categ_L.c: New file.
56445         * lib/unictype/categ_Ll.c: New file.
56446         * lib/unictype/categ_Lm.c: New file.
56447         * lib/unictype/categ_Lo.c: New file.
56448         * lib/unictype/categ_Lt.c: New file.
56449         * lib/unictype/categ_Lu.c: New file.
56450         * lib/unictype/categ_M.c: New file.
56451         * lib/unictype/categ_Mc.c: New file.
56452         * lib/unictype/categ_Me.c: New file.
56453         * lib/unictype/categ_Mn.c: New file.
56454         * lib/unictype/categ_N.c: New file.
56455         * lib/unictype/categ_Nd.c: New file.
56456         * lib/unictype/categ_Nl.c: New file.
56457         * lib/unictype/categ_No.c: New file.
56458         * lib/unictype/categ_P.c: New file.
56459         * lib/unictype/categ_Pc.c: New file.
56460         * lib/unictype/categ_Pd.c: New file.
56461         * lib/unictype/categ_Pe.c: New file.
56462         * lib/unictype/categ_Pf.c: New file.
56463         * lib/unictype/categ_Pi.c: New file.
56464         * lib/unictype/categ_Po.c: New file.
56465         * lib/unictype/categ_Ps.c: New file.
56466         * lib/unictype/categ_S.c: New file.
56467         * lib/unictype/categ_Sc.c: New file.
56468         * lib/unictype/categ_Sk.c: New file.
56469         * lib/unictype/categ_Sm.c: New file.
56470         * lib/unictype/categ_So.c: New file.
56471         * lib/unictype/categ_Z.c: New file.
56472         * lib/unictype/categ_Zl.c: New file.
56473         * lib/unictype/categ_Zp.c: New file.
56474         * lib/unictype/categ_Zs.c: New file.
56475         * lib/unictype/categ_and.c: New file.
56476         * lib/unictype/categ_and_not.c: New file.
56477         * lib/unictype/categ_byname.c: New file.
56478         * lib/unictype/categ_name.c: New file.
56479         * lib/unictype/categ_none.c: New file.
56480         * lib/unictype/categ_of.c: New file.
56481         * lib/unictype/categ_or.c: New file.
56482         * lib/unictype/categ_test.c: New file.
56483         * lib/unictype/combining.c: New file.
56484         * lib/unictype/ctype_alnum.c: New file.
56485         * lib/unictype/ctype_alpha.c: New file.
56486         * lib/unictype/ctype_blank.c: New file.
56487         * lib/unictype/ctype_cntrl.c: New file.
56488         * lib/unictype/ctype_digit.c: New file.
56489         * lib/unictype/ctype_graph.c: New file.
56490         * lib/unictype/ctype_lower.c: New file.
56491         * lib/unictype/ctype_print.c: New file.
56492         * lib/unictype/ctype_punct.c: New file.
56493         * lib/unictype/ctype_space.c: New file.
56494         * lib/unictype/ctype_upper.c: New file.
56495         * lib/unictype/ctype_xdigit.c: New file.
56496         * lib/unictype/decdigit.c: New file.
56497         * lib/unictype/digit.c: New file.
56498         * lib/unictype/identsyntaxmap.h: New file.
56499         * lib/unictype/mirror.c: New file.
56500         * lib/unictype/numeric.c: New file.
56501         * lib/unictype/pr_alphabetic.c: New file.
56502         * lib/unictype/pr_ascii_hex_digit.c: New file.
56503         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56504         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56505         * lib/unictype/pr_bidi_block_separator.c: New file.
56506         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56507         * lib/unictype/pr_bidi_common_separator.c: New file.
56508         * lib/unictype/pr_bidi_control.c: New file.
56509         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56510         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56511         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56512         * lib/unictype/pr_bidi_european_digit.c: New file.
56513         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56514         * lib/unictype/pr_bidi_left_to_right.c: New file.
56515         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56516         * lib/unictype/pr_bidi_other_neutral.c: New file.
56517         * lib/unictype/pr_bidi_pdf.c: New file.
56518         * lib/unictype/pr_bidi_segment_separator.c: New file.
56519         * lib/unictype/pr_bidi_whitespace.c: New file.
56520         * lib/unictype/pr_byname.c: New file.
56521         * lib/unictype/pr_byname.gperf: New file.
56522         * lib/unictype/pr_combining.c: New file.
56523         * lib/unictype/pr_composite.c: New file.
56524         * lib/unictype/pr_currency_symbol.c: New file.
56525         * lib/unictype/pr_dash.c: New file.
56526         * lib/unictype/pr_decimal_digit.c: New file.
56527         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56528         * lib/unictype/pr_deprecated.c: New file.
56529         * lib/unictype/pr_diacritic.c: New file.
56530         * lib/unictype/pr_extender.c: New file.
56531         * lib/unictype/pr_format_control.c: New file.
56532         * lib/unictype/pr_grapheme_base.c: New file.
56533         * lib/unictype/pr_grapheme_extend.c: New file.
56534         * lib/unictype/pr_grapheme_link.c: New file.
56535         * lib/unictype/pr_hex_digit.c: New file.
56536         * lib/unictype/pr_hyphen.c: New file.
56537         * lib/unictype/pr_id_continue.c: New file.
56538         * lib/unictype/pr_id_start.c: New file.
56539         * lib/unictype/pr_ideographic.c: New file.
56540         * lib/unictype/pr_ids_binary_operator.c: New file.
56541         * lib/unictype/pr_ids_trinary_operator.c: New file.
56542         * lib/unictype/pr_ignorable_control.c: New file.
56543         * lib/unictype/pr_iso_control.c: New file.
56544         * lib/unictype/pr_join_control.c: New file.
56545         * lib/unictype/pr_left_of_pair.c: New file.
56546         * lib/unictype/pr_line_separator.c: New file.
56547         * lib/unictype/pr_logical_order_exception.c: New file.
56548         * lib/unictype/pr_lowercase.c: New file.
56549         * lib/unictype/pr_math.c: New file.
56550         * lib/unictype/pr_non_break.c: New file.
56551         * lib/unictype/pr_not_a_character.c: New file.
56552         * lib/unictype/pr_numeric.c: New file.
56553         * lib/unictype/pr_other_alphabetic.c: New file.
56554         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56555         * lib/unictype/pr_other_grapheme_extend.c: New file.
56556         * lib/unictype/pr_other_id_continue.c: New file.
56557         * lib/unictype/pr_other_id_start.c: New file.
56558         * lib/unictype/pr_other_lowercase.c: New file.
56559         * lib/unictype/pr_other_math.c: New file.
56560         * lib/unictype/pr_other_uppercase.c: New file.
56561         * lib/unictype/pr_paired_punctuation.c: New file.
56562         * lib/unictype/pr_paragraph_separator.c: New file.
56563         * lib/unictype/pr_pattern_syntax.c: New file.
56564         * lib/unictype/pr_pattern_white_space.c: New file.
56565         * lib/unictype/pr_private_use.c: New file.
56566         * lib/unictype/pr_punctuation.c: New file.
56567         * lib/unictype/pr_quotation_mark.c: New file.
56568         * lib/unictype/pr_radical.c: New file.
56569         * lib/unictype/pr_sentence_terminal.c: New file.
56570         * lib/unictype/pr_soft_dotted.c: New file.
56571         * lib/unictype/pr_space.c: New file.
56572         * lib/unictype/pr_terminal_punctuation.c: New file.
56573         * lib/unictype/pr_test.c: New file.
56574         * lib/unictype/pr_titlecase.c: New file.
56575         * lib/unictype/pr_unassigned_code_value.c: New file.
56576         * lib/unictype/pr_unified_ideograph.c: New file.
56577         * lib/unictype/pr_uppercase.c: New file.
56578         * lib/unictype/pr_variation_selector.c: New file.
56579         * lib/unictype/pr_white_space.c: New file.
56580         * lib/unictype/pr_xid_continue.c: New file.
56581         * lib/unictype/pr_xid_start.c: New file.
56582         * lib/unictype/pr_zero_width.c: New file.
56583         * lib/unictype/scripts.c: New file.
56584         * lib/unictype/sy_c_ident.c: New file.
56585         * lib/unictype/sy_c_whitespace.c: New file.
56586         * lib/unictype/sy_java_ident.c: New file.
56587         * lib/unictype/sy_java_whitespace.c: New file.
56588
56589         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56590         Unicode 5.0.0.
56591         * lib/unictype/blocks.h: Likewise.
56592         * lib/unictype/categ_C.h: Likewise.
56593         * lib/unictype/categ_Cc.h: Likewise.
56594         * lib/unictype/categ_Cf.h: Likewise.
56595         * lib/unictype/categ_Cn.h: Likewise.
56596         * lib/unictype/categ_Co.h: Likewise.
56597         * lib/unictype/categ_Cs.h: Likewise.
56598         * lib/unictype/categ_L.h: Likewise.
56599         * lib/unictype/categ_Ll.h: Likewise.
56600         * lib/unictype/categ_Lm.h: Likewise.
56601         * lib/unictype/categ_Lo.h: Likewise.
56602         * lib/unictype/categ_Lt.h: Likewise.
56603         * lib/unictype/categ_Lu.h: Likewise.
56604         * lib/unictype/categ_M.h: Likewise.
56605         * lib/unictype/categ_Mc.h: Likewise.
56606         * lib/unictype/categ_Me.h: Likewise.
56607         * lib/unictype/categ_Mn.h: Likewise.
56608         * lib/unictype/categ_N.h: Likewise.
56609         * lib/unictype/categ_Nd.h: Likewise.
56610         * lib/unictype/categ_Nl.h: Likewise.
56611         * lib/unictype/categ_No.h: Likewise.
56612         * lib/unictype/categ_P.h: Likewise.
56613         * lib/unictype/categ_Pc.h: Likewise.
56614         * lib/unictype/categ_Pd.h: Likewise.
56615         * lib/unictype/categ_Pe.h: Likewise.
56616         * lib/unictype/categ_Pf.h: Likewise.
56617         * lib/unictype/categ_Pi.h: Likewise.
56618         * lib/unictype/categ_Po.h: Likewise.
56619         * lib/unictype/categ_Ps.h: Likewise.
56620         * lib/unictype/categ_S.h: Likewise.
56621         * lib/unictype/categ_Sc.h: Likewise.
56622         * lib/unictype/categ_Sk.h: Likewise.
56623         * lib/unictype/categ_Sm.h: Likewise.
56624         * lib/unictype/categ_So.h: Likewise.
56625         * lib/unictype/categ_Z.h: Likewise.
56626         * lib/unictype/categ_Zl.h: Likewise.
56627         * lib/unictype/categ_Zp.h: Likewise.
56628         * lib/unictype/categ_Zs.h: Likewise.
56629         * lib/unictype/categ_of.h: Likewise.
56630         * lib/unictype/combining.h: Likewise.
56631         * lib/unictype/ctype_alnum.h: Likewise.
56632         * lib/unictype/ctype_alpha.h: Likewise.
56633         * lib/unictype/ctype_blank.h: Likewise.
56634         * lib/unictype/ctype_cntrl.h: Likewise.
56635         * lib/unictype/ctype_digit.h: Likewise.
56636         * lib/unictype/ctype_graph.h: Likewise.
56637         * lib/unictype/ctype_lower.h: Likewise.
56638         * lib/unictype/ctype_print.h: Likewise.
56639         * lib/unictype/ctype_punct.h: Likewise.
56640         * lib/unictype/ctype_space.h: Likewise.
56641         * lib/unictype/ctype_upper.h: Likewise.
56642         * lib/unictype/ctype_xdigit.h: Likewise.
56643         * lib/unictype/decdigit.h: Likewise.
56644         * lib/unictype/digit.h: Likewise.
56645         * lib/unictype/mirror.h: Likewise.
56646         * lib/unictype/numeric.h: Likewise.
56647         * lib/unictype/pr_alphabetic.h: Likewise.
56648         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56649         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56650         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56651         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56652         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56653         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56654         * lib/unictype/pr_bidi_control.h: Likewise.
56655         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56656         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56657         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56658         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56659         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56660         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56661         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56662         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56663         * lib/unictype/pr_bidi_pdf.h: Likewise.
56664         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56665         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56666         * lib/unictype/pr_combining.h: Likewise.
56667         * lib/unictype/pr_composite.h: Likewise.
56668         * lib/unictype/pr_currency_symbol.h: Likewise.
56669         * lib/unictype/pr_dash.h: Likewise.
56670         * lib/unictype/pr_decimal_digit.h: Likewise.
56671         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56672         * lib/unictype/pr_deprecated.h: Likewise.
56673         * lib/unictype/pr_diacritic.h: Likewise.
56674         * lib/unictype/pr_extender.h: Likewise.
56675         * lib/unictype/pr_format_control.h: Likewise.
56676         * lib/unictype/pr_grapheme_base.h: Likewise.
56677         * lib/unictype/pr_grapheme_extend.h: Likewise.
56678         * lib/unictype/pr_grapheme_link.h: Likewise.
56679         * lib/unictype/pr_hex_digit.h: Likewise.
56680         * lib/unictype/pr_hyphen.h: Likewise.
56681         * lib/unictype/pr_id_continue.h: Likewise.
56682         * lib/unictype/pr_id_start.h: Likewise.
56683         * lib/unictype/pr_ideographic.h: Likewise.
56684         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56685         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56686         * lib/unictype/pr_ignorable_control.h: Likewise.
56687         * lib/unictype/pr_iso_control.h: Likewise.
56688         * lib/unictype/pr_join_control.h: Likewise.
56689         * lib/unictype/pr_left_of_pair.h: Likewise.
56690         * lib/unictype/pr_line_separator.h: Likewise.
56691         * lib/unictype/pr_logical_order_exception.h: Likewise.
56692         * lib/unictype/pr_lowercase.h: Likewise.
56693         * lib/unictype/pr_math.h: Likewise.
56694         * lib/unictype/pr_non_break.h: Likewise.
56695         * lib/unictype/pr_not_a_character.h: Likewise.
56696         * lib/unictype/pr_numeric.h: Likewise.
56697         * lib/unictype/pr_other_alphabetic.h: Likewise.
56698         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56699         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56700         * lib/unictype/pr_other_id_continue.h: Likewise.
56701         * lib/unictype/pr_other_id_start.h: Likewise.
56702         * lib/unictype/pr_other_lowercase.h: Likewise.
56703         * lib/unictype/pr_other_math.h: Likewise.
56704         * lib/unictype/pr_other_uppercase.h: Likewise.
56705         * lib/unictype/pr_paired_punctuation.h: Likewise.
56706         * lib/unictype/pr_paragraph_separator.h: Likewise.
56707         * lib/unictype/pr_pattern_syntax.h: Likewise.
56708         * lib/unictype/pr_pattern_white_space.h: Likewise.
56709         * lib/unictype/pr_private_use.h: Likewise.
56710         * lib/unictype/pr_punctuation.h: Likewise.
56711         * lib/unictype/pr_quotation_mark.h: Likewise.
56712         * lib/unictype/pr_radical.h: Likewise.
56713         * lib/unictype/pr_sentence_terminal.h: Likewise.
56714         * lib/unictype/pr_soft_dotted.h: Likewise.
56715         * lib/unictype/pr_space.h: Likewise.
56716         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56717         * lib/unictype/pr_titlecase.h: Likewise.
56718         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56719         * lib/unictype/pr_unified_ideograph.h: Likewise.
56720         * lib/unictype/pr_uppercase.h: Likewise.
56721         * lib/unictype/pr_variation_selector.h: Likewise.
56722         * lib/unictype/pr_white_space.h: Likewise.
56723         * lib/unictype/pr_xid_continue.h: Likewise.
56724         * lib/unictype/pr_xid_start.h: Likewise.
56725         * lib/unictype/pr_zero_width.h: Likewise.
56726         * lib/unictype/scripts.h: Likewise.
56727         * lib/unictype/scripts_byname.gperf: Likewise.
56728         * lib/unictype/sy_c_ident.h: Likewise.
56729         * lib/unictype/sy_c_whitespace.h: Likewise.
56730         * lib/unictype/sy_java_ident.h: Likewise.
56731         * lib/unictype/sy_java_whitespace.h: Likewise.
56732
56733         * lib/unictype/Makefile: New file.
56734         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56735         glibc.
56736         * lib/unictype/3level.h: New file, copied from glibc.
56737         * lib/unictype/3levelbit.h: New file.
56738
56739 2007-11-11  Bruno Haible  <bruno@clisp.org>
56740
56741         * modules/gperf: New file.
56742         * modules/iconv_open (Depends-on): Add it.
56743         (Makefile.am): Remove the GPERF definition.
56744
56745 2007-11-11  Bruno Haible  <bruno@clisp.org>
56746
56747         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56748         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56749
56750 2007-11-11  Bruno Haible  <bruno@clisp.org>
56751
56752         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56753         (usage): Remove function.
56754
56755 2007-11-11  Bruno Haible  <bruno@clisp.org>
56756
56757         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56758         gl_FUNC_CEILF_LIBS.
56759         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56760         gl_FUNC_CEIL_LIBS.
56761         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56762         gl_FUNC_CEILL_LIBS.
56763         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56764         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56765         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56766
56767 2007-11-11  Bruno Haible  <bruno@clisp.org>
56768
56769         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56770         roundf were declared but do not exist on functions.
56771         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56772         roundl were declared but do not exist on functions.
56773         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56774         HAVE_FLOORL_AND_CEILL, respectively.
56775         Needed for Sun C on Solaris 10.
56776
56777 2007-11-11  Bruno Haible  <bruno@clisp.org>
56778
56779         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56780         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56781         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56782         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56783         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56784         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56785         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56786         HAVE_DECL_ROUNDF.
56787         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56788         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56790         of HAVE_DECL_ROUND*.
56791         * modules/math (Makefile.am): Update.
56792
56793 2007-11-10  Bruno Haible  <bruno@clisp.org>
56794
56795         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56796         ptrdiff_t as m4/intl.m4.
56797
56798 2007-11-10  Jim Meyering  <meyering@redhat.com>
56799
56800         Avoid link failure for the argmatch test.
56801         * tests/test-argmatch.c (usage): Define function to avoid a link
56802         failure: argmatch_die requires a usage function.
56803
56804 2007-11-09  Bruno Haible  <bruno@clisp.org>
56805
56806         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56807         * doc/functions/vsnprintf.texi: Likewise.
56808         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56809         with a size argument < 2.
56810
56811 2007-11-09  Bruno Haible  <bruno@clisp.org>
56812
56813         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56814         buffer. Fixes an inefficiency introduced on 2007-11-03.
56815
56816 2007-11-09  Bruno Haible  <bruno@clisp.org>
56817
56818         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56819         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56820
56821 2007-11-08  Jim Meyering  <meyering@redhat.com>
56822
56823         Change cache variable name prefix "jm_" to "gl_" everywhere.
56824         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56825         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56826         * m4/uptime.m4: s/gl_/jm_/
56827
56828 2007-11-07  Bruno Haible  <bruno@clisp.org>
56829
56830         Update to GNU gettext 0.17.
56831         * m4/intl.m4: Update to GNU gettext 0.17.
56832         * m4/po.m4: Likewise.
56833         * modules/gettext (Files): Remove m4/ulonglong.m4.
56834         (configure.ac): Require gettext infrastructure from version 0.17.
56835
56836 2007-11-06  Bruno Haible  <bruno@clisp.org>
56837
56838         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56839         symbolic values are not defined in a public header.
56840         * lib/freadable.c (freadable) [QNX]: Likewise.
56841         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56842         * lib/freading.c (freading) [QNX]: Likewise.
56843         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56844         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56845         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56846         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56847         Reported by Alain Magloire.
56848
56849         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56850
56851 2007-11-05  Bruno Haible  <bruno@clisp.org>
56852
56853         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56854         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56855         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56856         Reported by Eric Blake.
56857
56858 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56859             Bruno Haible  <bruno@clisp.org>
56860
56861         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56862         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56863         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56864         (malloc): Undefine also before including <stdlib.h>.
56865         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56866         Needed on OSF/1 4.0.
56867
56868 2007-11-05  Jim Meyering  <meyering@redhat.com>
56869
56870         git-version-gen: sync from coreutils.
56871         * build-aux/git-version-gen: Add comments.
56872         Change the first '-' to '.' in the snapshot version string,
56873         e.g., 6.9-377-08144 -> 6.9.377-08144
56874         Remove first parameter.
56875         Don't declare a version "-dirty" merely because a time
56876         stamp has changed.
56877
56878 2007-11-04  Bruno Haible  <bruno@clisp.org>
56879
56880         * lib/lock.h: Protect all macro definitions containing an 'if'
56881         statement through a "do { ... } while (0)".
56882         * lib/tls.h: Likewise.
56883
56884 2007-11-04  Bruno Haible  <bruno@clisp.org>
56885
56886         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56887
56888 2007-11-04  Bruno Haible  <bruno@clisp.org>
56889
56890         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56891         * modules/fprintf-posix (Depends-on): Add nocrash.
56892         * modules/snprintf-posix (Depends-on): Likewise.
56893         * modules/sprintf-posix (Depends-on): Likewise.
56894         * modules/vasnprintf-posix (Depends-on): Likewise.
56895         * modules/vasprintf-posix (Depends-on): Likewise.
56896         * modules/vfprintf-posix (Depends-on): Likewise.
56897         * modules/vsnprintf-posix (Depends-on): Likewise.
56898         * modules/vsprintf-posix (Depends-on): Likewise.
56899         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56900         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56901         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56902         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56903         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56904         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56905         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56906
56907 2007-11-04  Bruno Haible  <bruno@clisp.org>
56908
56909         * modules/nocrash: New file.
56910         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56911         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56912
56913 2007-11-04  Bruno Haible  <bruno@clisp.org>
56914
56915         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56916         precision handling.
56917         * tests/test-vasprintf-posix.c (test_function): Likewise.
56918         * tests/test-snprintf-posix.h (test_function): Likewise.
56919         * tests/test-sprintf-posix.h (test_function): Likewise.
56920
56921         Fix *printf behaviour for large precisions on mingw and BeOS.
56922         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56923         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56924         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56925         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56927         gl_PRINTF_PRECISION and test its result. Invoke
56928         gl_PREREQ_VASNPRINTF_PRECISION.
56929         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56930         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56931         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56932         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56936         * doc/functions/fprintf.texi: Update.
56937         * doc/functions/printf.texi: Update.
56938         * doc/functions/snprintf.texi: Update.
56939         * doc/functions/sprintf.texi: Update.
56940         * doc/functions/vfprintf.texi: Update.
56941         * doc/functions/vprintf.texi: Update.
56942         * doc/functions/vsnprintf.texi: Update.
56943         * doc/functions/vsprintf.texi: Update.
56944
56945 2007-11-04  Bruno Haible  <bruno@clisp.org>
56946
56947         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56948
56949 2007-11-04  Bruno Haible  <bruno@clisp.org>
56950
56951         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56952         Reported by Sylvain Beucler <beuc@gnu.org>.
56953
56954 2007-11-03  Bruno Haible  <bruno@clisp.org>
56955
56956         * tests/test-fprintf-posix2.sh: New file.
56957         * tests/test-fprintf-posix2.c: New file.
56958         * modules/fprintf-posix-tests (Files): Add them.
56959         (TESTS): Add test-fprintf-posix2.sh.
56960         (configure.ac): Check for getrlimit and setrlimit.
56961         (check_PROGRAMS): Add test-fprintf-posix2.
56962
56963         * tests/test-printf-posix2.sh: New file.
56964         * tests/test-printf-posix2.c: New file.
56965         * modules/printf-posix-tests (Files): Add them.
56966         (TESTS): Add test-printf-posix2.sh.
56967         (configure.ac): Check for getrlimit and setrlimit.
56968         (check_PROGRAMS): Add test-printf-posix2.
56969
56970         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56971         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56972         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56973         (decode_double): New function, copied from decode_long_double.
56974         (scale10_round_decimal_decoded): New function, extracted from
56975         scale10_round_decimal_long_double.
56976         (scale10_round_decimal_long_double): Use it.
56977         (scale10_round_decimal_double): New function.
56978         (floorlog10): New function.
56979         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56980         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56981         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56982         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56983         gl_PRINTF_ENOMEM and test its result. Invoke
56984         gl_PREREQ_VASNPRINTF_ENOMEM.
56985         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56986         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56987         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56988         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56989         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56990         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56991         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56992         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56993         * modules/snprintf-posix (Depends-on): Likewise.
56994         * modules/sprintf-posix (Depends-on): Likewise.
56995         * modules/vasnprintf-posix (Depends-on): Likewise.
56996         * modules/vasprintf-posix (Depends-on): Likewise.
56997         * modules/vfprintf-posix (Depends-on): Likewise.
56998         * modules/vsnprintf-posix (Depends-on): Likewise.
56999         * modules/vsprintf-posix (Depends-on): Likewise.
57000         * doc/functions/fprintf.texi: Update.
57001         * doc/functions/printf.texi: Update.
57002         * doc/functions/snprintf.texi: Update.
57003         * doc/functions/sprintf.texi: Update.
57004         * doc/functions/vfprintf.texi: Update.
57005         * doc/functions/vprintf.texi: Update.
57006         * doc/functions/vsnprintf.texi: Update.
57007         * doc/functions/vsprintf.texi: Update.
57008
57009 2007-11-03  Bruno Haible  <bruno@clisp.org>
57010
57011         * modules/frexp-nolibm-tests: New file.
57012
57013         * modules/frexp-nolibm: New file.
57014         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
57015
57016 2007-11-03  Bruno Haible  <bruno@clisp.org>
57017
57018         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57019         value is C99 compliant.
57020         Needed for OSF/1 5.1.
57021
57022 2007-11-03  Bruno Haible  <bruno@clisp.org>
57023
57024         Fix out-of-memory handling of vasnprintf.
57025         * lib/printf-parse.c: Include <errno.h>.
57026         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57027         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57028         is already set.
57029
57030 2007-11-02  Eric Blake  <ebb9@byu.net>
57031
57032         Fix tests on cygwin.
57033         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57034
57035 2007-11-01  Bruno Haible  <bruno@clisp.org>
57036
57037         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57038         warning.
57039         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57040         needed for POSIX compatibility.
57041
57042 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57043
57044         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57045         for compatibility with GNU.
57046
57047 2007-11-01  Bruno Haible  <bruno@clisp.org>
57048
57049         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57050         (putenv): Renamed from rpl_putenv. Change argument type from
57051         'const char *' to 'char *'.
57052         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57053         of defining putenv in config.h, just set REPLACE_PUTENV.
57054         * modules/putenv (Depends-on): Add stdlib.
57055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57056         (Include): Use <stdlib.h>.
57057         * lib/stdlib.in.h (putenv): New declaration.
57058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57059         REPLACE_PUTENV.
57060         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57061         REPLACE_PUTENV.
57062         Needed for MacOS X 10.5.0.
57063         Reported by Peter O'Gorman <peter@pogma.com>.
57064
57065 2007-11-01  Jim Meyering  <meyering@redhat.com>
57066
57067         Treat an empty date string exactly like "0".
57068         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57069         if the remaining date string (to be parsed) is empty, use "0".
57070         Reported by Mischa Molhoek and discussed in this thread:
57071         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57072
57073 2007-10-31  Bruno Haible  <bruno@clisp.org>
57074
57075         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57076         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57077         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57078         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57079         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57080         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57081
57082 2007-10-31  Bruno Haible  <bruno@clisp.org>
57083
57084         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57085         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57086         (AC_TYPE_LONG_LONG_INT): Use it.
57087         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57088         it as well.
57089         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57090         to m4/longlong.m4.
57091         * modules/stdint (Files): Remove m4/ulonglong.m4.
57092         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57093         m4/ulonglong.m4.
57094         * modules/strtoumax (Files): Likewise.
57095
57096 2007-10-30  Bruno Haible  <bruno@clisp.org>
57097
57098         * modules/xvasprintf-posix: New file.
57099         Suggested by Eric Blake.
57100
57101 2007-10-30  Bruno Haible  <bruno@clisp.org>
57102
57103         * modules/xprintf-posix-tests: New file.
57104         * tests/test-xprintf-posix.sh: New file.
57105         * tests/test-xprintf-posix.c: New file.
57106         * tests/test-xfprintf-posix.c: New file.
57107
57108         * modules/xprintf-posix: New file.
57109
57110 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57111
57112         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57113         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57114         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57115
57116 2007-10-29  Bruno Haible  <bruno@clisp.org>
57117
57118         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57119         contain the special marker '_cv_'.
57120         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57121         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57122         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57123         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57124         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57125         Reported by Ralf Wildenhues.
57126
57127 2007-10-29  Bruno Haible  <bruno@clisp.org>
57128
57129         * gnulib-tool (func_import): When --lgpl is not specified, set
57130         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57131         GPLv3.
57132         Reported by Simon Josefsson.
57133
57134 2007-10-28  Bruno Haible  <bruno@clisp.org>
57135
57136         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57137         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57138         HAVE_DECL_ISFINITE.
57139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57140         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57141         HAVE_DECL_ISFINITE.
57142
57143 2007-10-28  Bruno Haible  <bruno@clisp.org>
57144
57145         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57146         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57147
57148 2007-10-28  Bruno Haible  <bruno@clisp.org>
57149
57150         Fix link errors with Sun C 5.0 on Solaris 10.
57151         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57152         function is declared but not present in the compiler's libm.
57153         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57154         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57155         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57156         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57157         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57158         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57159         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57161         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57162         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57163         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57164         HAVE_DECL_FLOORL.
57165
57166 2007-10-28  Bruno Haible  <bruno@clisp.org>
57167
57168         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57169         gl_FUNC_FLOORL. Cache the result.
57170         (gl_FUNC_FLOORL): Use it.
57171         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57172         gl_FUNC_CEILL. Cache the result.
57173         (gl_FUNC_CEILL): Use it.
57174
57175         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57176         gl_FUNC_FLOOR. Cache the result.
57177         (gl_FUNC_FLOOR): Use it.
57178         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57179         gl_FUNC_CEIL. Cache the result.
57180         (gl_FUNC_CEIL): Use it.
57181
57182         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57183         gl_FUNC_FLOORF. Cache the result.
57184         (gl_FUNC_FLOORF): Use it.
57185         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57186         gl_FUNC_CEILF. Cache the result.
57187         (gl_FUNC_CEILF): Use it.
57188
57189 2007-10-28  Bruno Haible  <bruno@clisp.org>
57190
57191         * gnulib-tool: Allow specifying the LGPL version number through
57192         --lgpl=2 or --lgpl=3.
57193         (func_usage): Document --lgpl with argument.
57194         Handle --lgpl=... arguments.
57195         (func_import): Recognize also gl_LGPL calls with an argument. When
57196         --lgpl=2 is used and the module's license is just LGPL, report an
57197         error. Set sed_transform_lib_file according to the lgpl variable. In
57198         the generated files, use --lgpl or gl_LGPL invocations with argument,
57199         if necessary.
57200         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57201         an LGPv2+ license.
57202         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57203         gl_LGPL macro.
57204
57205 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57206             Bruno Haible  <bruno@clisp.org>
57207
57208         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57209         (u16_uctomb_aux): Likewise.
57210         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57211         !HAVE_INLINE.
57212         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57213
57214 2007-10-28  Bruno Haible  <bruno@clisp.org>
57215
57216         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57217         Invoke AM_GETTEXT_OPTION if it exists.
57218         * modules/vasprintf: Likewise.
57219         * modules/verror: Likewise.
57220         * modules/xprintf: Likewise.
57221         * modules/xvasprintf: Likewise.
57222
57223 2007-10-27  Ben Pfaff  <blp@gnu.org>
57224
57225         * lib/math.in.h: Define isfinite macro and prototypes for
57226         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57227         implementations.
57228         * m4/math_h.m4: New substitutions for isfinite module.
57229         * lib/isfinite.c: New file.
57230         * m4/isfinite.m4: New file.
57231         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57232         * modules/isfinite: New file.
57233         * modules/isfinite-tests: New file.
57234         * tests/tests-isfinite.c: New file.
57235         * doc/functions/isfinite.texi: Mention isfinite module.
57236         * MODULES.html.sh: Mention new module.
57237
57238 2007-10-27  Ben Pfaff  <blp@gnu.org>
57239
57240         Ralf Wildenhues reported that Tru64 4.0D declares the round
57241         functions but does not have definitions.
57242         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57243         cannot be found in any library, set the output variable to
57244         "missing" instead of "".
57245         * m4/round.m4: Also use our substitute if we cannot find round in
57246         any library, even if it is declared.
57247         * m4/roundf.m4: Likewise for roundf.
57248         * m4/roundl.m4: Likewise for roundl.
57249         * lib/math.in.h: Undefine roundf, round, roundl before defining
57250         their replacements, to allow for hypothetical systems where these
57251         may be defined as macros but not available in libraries.
57252
57253 2007-10-27  Bruno Haible  <bruno@clisp.org>
57254
57255         * doc/gnulib.texi: Invoke @firstparagraphindent.
57256         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57257         changes in gnulib.
57258         (Source changes): New section.
57259
57260 2007-10-26  Bruno Haible  <bruno@clisp.org>
57261
57262         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57263         borrowed from autoconf.
57264
57265 2007-10-26  Bruno Haible  <bruno@clisp.org>
57266
57267         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57268         strerror returned the empty string. Needed on HP-UX 11.00.
57269
57270 2007-10-24  Micah Cowan  <micah@cowan.name>
57271
57272         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57273         * build-aux/bootstrap: Remove support for now-unnecessary option,
57274         --cvs-user, and envvars CVS_USER, CVS_RSH.
57275
57276 2007-10-24  Jim Meyering  <meyering@redhat.com>
57277
57278         Avoid diagnostics from sha1sum when there is no cached checksum.
57279         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57280         if the po.s1 file hasn't been created yet.
57281
57282         * build-aux/bootstrap: Sync from coreutils:
57283         2007-10-24  Jim Meyering  <meyering@redhat.com>
57284         Get gnulib from the git repository, not from an obsolete cvs one.
57285         * build-aux/bootstrap: Suggestion from Micah Cowan.
57286         2007-10-04  Jim Meyering  <jim@meyering.net>
57287         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57288         (update_po_files): Work also when there are no .po files in po/.
57289
57290 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57291
57292         * README: Append ".git" to git and cg examples.
57293         Problem reported by Benoit Sigoure.
57294
57295 2007-10-23  Micah Cowan  <micah@cowan.name>
57296
57297         * users.txt: Add wget.
57298
57299 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57300
57301         Fix linking of some unistdio tests on FreeBSD.
57302         * modules/unistdio/u16-vsnprintf-tests
57303         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57304         * modules/unistdio/u16-vsprintf-tests
57305         (test_u16_vsnprintf1_LDADD): Likewise.
57306         * modules/unistdio/u32-vsnprintf-tests
57307         (test_u32_vsnprintf1_LDADD): Likewise.
57308         * modules/unistdio/u32-vsprintf-tests
57309         (test_u32_vsprintf1_LDADD): Likewise.
57310         * modules/unistdio/u8-vsnprintf-tests
57311         (test_u8_vsnprintf1_LDADD): Likewise.
57312         * modules/unistdio/u8-vsprintf-tests
57313         (test_u8_vsprintf1_LDADD): Likewise.
57314         * modules/unistdio/ulc-vsnprintf-tests
57315         (test_ulc_vsnprintf1_LDADD): Likewise.
57316         * modules/unistdio/ulc-vsprintf-tests
57317         (test_ulc_vsprintf1_LDADD): Likewise.
57318
57319         Fix linking of some uniconv tests on FreeBSD.
57320         * modules/uniconv/u16-conv-from-enc-tests
57321         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57322         * modules/uniconv/u16-conv-to-enc-tests
57323         (test_u16_conv_to_enc_LDADD): Likewise.
57324         * modules/uniconv/u16-strconv-from-enc-tests
57325         (test_u16_strconv_from_enc_LDADD): Likewise.
57326         * modules/uniconv/u16-strconv-to-enc-tests
57327         (test_u16_strconv_to_enc_LDADD): Likewise.
57328         * modules/uniconv/u32-conv-from-enc-tests
57329         (test_u32_conv_from_enc_LDADD): Likewise.
57330         * modules/uniconv/u32-conv-to-enc-tests
57331         (test_u32_conv_to_enc_LDADD): Likewise.
57332         * modules/uniconv/u32-strconv-from-enc-tests
57333         (test_u32_strconv_from_enc_LDADD): Likewise.
57334         * modules/uniconv/u32-strconv-to-enc-tests
57335         (test_u32_strconv_to_enc_LDADD): Likewise.
57336         * modules/uniconv/u8-conv-from-enc-tests
57337         (test_u8_conv_from_enc_LDADD): Likewise.
57338         * modules/uniconv/u8-conv-to-enc-tests
57339         (test_u8_conv_to_enc_LDADD): Likewise.
57340         * modules/uniconv/u8-strconv-from-enc-tests
57341         (test_u8_strconv_from_enc_LDADD): Likewise.
57342         * modules/uniconv/u8-strconv-to-enc-tests
57343         (test_u8_strconv_to_enc_LDADD): Likewise.
57344
57345 2007-10-22  Bruno Haible  <bruno@clisp.org>
57346
57347         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57348         size.
57349
57350 2007-10-22  Eric Blake  <ebb9@byu.net>
57351
57352         Tweak x*printf documentation.
57353         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57354         variable name and comments.
57355         Suggested by Bruno Haible.
57356
57357 2007-10-22  Bruno Haible  <bruno@clisp.org>
57358
57359         * lib/acl.c (copy_acl): Fix file name in comment.
57360
57361 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57362
57363         Fix Tru64 problem with stdbool.h.
57364         * lib/stdbool.in.h (false, true):
57365         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57366         Don't declare as an enum in this situation; it runs afoul of Tru64.
57367         Problem reported by Steven M. Schweda in
57368         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57369
57370 2007-10-22  Eric Blake  <ebb9@byu.net>
57371
57372         Also wrap vf?printf.
57373         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57374         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57375         (xvprintf, xvfprintf): New functions.
57376
57377 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57378
57379         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57380         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57381
57382         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57383         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57384
57385 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57386
57387         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57388         by Bruno Haible.
57389
57390 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57391
57392         * lib/getloadavg.c
57393         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57394         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57395
57396         * tests/test-i-ring.c: Work for C89.
57397
57398 2007-10-22  Bruno Haible  <bruno@clisp.org>
57399
57400         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57401         -1u, in preprocessor expression, so that we don't test for the bug
57402         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57403         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57404
57405 2007-10-22  Eric Blake  <ebb9@byu.net>
57406
57407         * tests/test-yesno.sh: Silence stderr during test.
57408
57409 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57410
57411         * modules/crypto/gc-camellia: New file.
57412
57413         * m4/gc-camellia.m4: New file.
57414
57415         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57416
57417         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57418
57419 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57420
57421         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57422         --help to stdout.  Reported by sms@antinode.org (Steven
57423         M. Schweda).
57424
57425 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57426
57427         * users.txt: Fix link to libksba.
57428
57429 2007-10-21  Ben Pfaff  <blp@gnu.org>
57430
57431         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57432         round.c roundf implementation that depends on floorf and ceilf to
57433         be tested unconditionally.
57434
57435 2007-10-21  Ben Pfaff  <blp@gnu.org>
57436
57437         * m4/check-libm-func.m4: Removed.
57438         * m4/check-math-lib.m4: New file.
57439         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57440         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57441         definition and lack of AC_LIBOBJ([roundf]).
57442         * m4/roundl.m4: Ditto, and similarly for roundl.
57443         * modules/round: Reference new m4 file.
57444         * modules/roundf: Ditto.
57445         * modules/roundl: Ditto.
57446         * tests/test-round2.c (main): Use ROUND instead of round.
57447         Bug report from Bruno Haible.
57448
57449 2007-10-21  Bruno Haible  <bruno@clisp.org>
57450
57451         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57452         context.
57453
57454 2007-10-21  Bruno Haible  <bruno@clisp.org>
57455
57456         * tests/test-wcwidth.c (main): Allow negative result for some control
57457         characters.
57458
57459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57460         Needed on OSF/1 5.1.
57461
57462 2007-10-21  Bruno Haible  <bruno@clisp.org>
57463
57464         * tests/test-floorf1.c: Include isnanf.h.
57465         (main): Use isnanf() instead of isnan().
57466         * tests/test-ceilf1.c: Include isnanf.h.
57467         (main): Use isnanf() instead of isnan().
57468         * tests/test-truncf1.c: Include isnanf.h.
57469         (main): Use isnanf() instead of isnan().
57470         * tests/test-roundf1.c: Include isnanf.h.
57471         (main): Use isnanf() instead of isnan().
57472
57473 2007-10-21  Eric Blake  <ebb9@byu.net>
57474
57475         * users.txt: Update URL for m4.
57476
57477 2007-10-21  Bruno Haible  <bruno@clisp.org>
57478
57479         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57480
57481 2007-10-21  Bruno Haible  <bruno@clisp.org>
57482
57483         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57484         Git's management files if the CVS files are not present.
57485
57486 2007-10-20  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57489         gcc-3.4.x.
57490
57491 2007-10-20  Ben Pfaff  <blp@gnu.org>
57492
57493         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57494         implementations.
57495         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57496         * lib/round.c: New file.
57497         * lib/roundf.c: New file.
57498         * lib/roundl.c: New file.
57499         * m4/round.m4: New file.
57500         * m4/roundf.m4: New file.
57501         * m4/roundl.m4: New file.
57502         * m4/check-libm-func-m4: New file.
57503         * modules/math: Replace round, roundf, roundl related @VARS@ in
57504         math.in.h.
57505         * modules/round: New file.
57506         * modules/round-tests: New file.
57507         * modules/roundf: New file.
57508         * modules/roundf-tests: New file.
57509         * modules/roundl: New file.
57510         * modules/roundl-tests: New file.
57511         * tests/test-round1.c: New file.
57512         * tests/test-round2.c: New file.
57513         * tests/test-roundf1.c: New file.
57514         * tests/test-roundf2.c: New file.
57515         * tests/test-roundl.c: New file.
57516         * doc/functions/round.texi: Mention round module.
57517         * doc/functions/roundf.texi: Mention roundf module.
57518         * doc/functions/roundl.texi: Mention roundl module.
57519         * MODULES.html.sh: Mention new modules.
57520         Thanks to Bruno Haible for suggestions.
57521
57522 2007-10-20  Jim Meyering  <meyering@redhat.com>
57523
57524         * lib/xprintf.c: Include <config.h> unconditionally.
57525
57526         Change xprintf's license to GPL.
57527         * modules/xprintf (License): s/LGPL/GPL/, since this module
57528         depends on modules (exit and exitfail) which are GPL.
57529         Suggestion from Bruno Haible.
57530
57531         xprintf fixes.
57532         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57533         Use a clearer diagnostic.
57534         Patch from Bruno Haible.
57535
57536 2007-10-20  Bruno Haible  <bruno@clisp.org>
57537
57538         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57539         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57540         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57541
57542 2007-10-20  Bruno Haible  <bruno@clisp.org>
57543
57544         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57545         precision in the comparison result > x - 1 or similar.
57546         * tests/test-ceilf2.c (correct_result_p): Likewise.
57547         * tests/test-truncf2.c (correct_result_p): Likewise.
57548         * tests/test-trunc2.c (correct_result_p): Likewise.
57549         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57550
57551 2007-10-20  Bruno Haible  <bruno@clisp.org>
57552
57553         * modules/ceil: New file.
57554         * m4/ceil.m4: New file.
57555         * doc/functions/ceil.texi: Mention the 'ceil' module.
57556
57557 2007-10-20  Bruno Haible  <bruno@clisp.org>
57558
57559         * modules/floor: New file.
57560         * m4/floor.m4: New file.
57561         * doc/functions/floor.texi: Mention the 'floor' module.
57562
57563 2007-10-20  Bruno Haible  <bruno@clisp.org>
57564
57565         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57566         of %a.
57567         * modules/floorf-tests (Depends-on): Likewise.
57568         * modules/truncf-tests (Depends-on): Likewise.
57569         * modules/trunc-tests (Depends-on): Likewise.
57570         Reported by Ben Pfaff.
57571
57572 2007-10-19  Jim Meyering  <meyering@redhat.com>
57573
57574         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57575         Don't bother testing specific errno values.  Just test ferror.
57576
57577         New module: xprintf
57578         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57579
57580 2007-10-19  Bruno Haible  <bruno@clisp.org>
57581
57582         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57583         syntax.
57584         * modules/javaexec (Makefile.am): Likewise.
57585         * modules/relocatable-prog (Makefile.am): Likewise.
57586         Suggested by Jim Meyering.
57587
57588 2007-10-18  Bruno Haible  <bruno@clisp.org>
57589
57590         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57591         Reported by Jim Meyering.
57592
57593 2007-10-18  Eric Blake  <ebb9@byu.net>
57594
57595         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57596
57597 2007-10-18  Bruno Haible  <bruno@clisp.org>
57598
57599         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57600         the format string into writable memory. Needed in Fortify conditions.
57601
57602 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57603             Bruno Haible  <bruno@clisp.org>
57604
57605         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57606         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57607         * modules/trim (Depends-on): Add mbchar.
57608         (configure.ac): Add gl_FUNC_MBRTOWC.
57609         (Makefile.am): Augment lib_SOURCES.
57610
57611 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57612
57613         Modify glob.c to use fstatat and dirfd, to simplify it.
57614         Suggested by Eric Blake.
57615         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57616         Don't include <stdbool.h>; not used.
57617         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57618         (link_exists_p): Simplify implementation, since we can now assume
57619         dirfd and fstatat.
57620         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57621
57622 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57623
57624         * gnulib-tool (func_get_dependencies): Fix sed script to
57625         match only tests.
57626
57627 2007-10-17  Bruno Haible  <bruno@clisp.org>
57628
57629         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57630         allow locale names without encoding suffix.
57631         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57632         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57633
57634 2007-10-16  Bruno Haible  <bruno@clisp.org>
57635
57636         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57637         * lib/getgroups.c (getgroups): Likewise.
57638         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57639
57640 2007-10-16  Bruno Haible  <bruno@clisp.org>
57641
57642         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57643         * modules/malloc-posix (License): Likewise.
57644         * modules/realloc-posix (License): Likewise.
57645         * modules/calloc-posix (License): Likewise.
57646         * modules/intprops (License): Change from GPL to LGPL, with
57647         Paul Eggert's approval.
57648
57649 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57650
57651         Merge glibc changes into lib/glob.c.
57652
57653         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57654         2007-10-15 04:59:03 UTC.  Here are the changes:
57655
57656         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57657
57658         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57659
57660         * lib/glob.c: Add some branch prediction throughout.
57661
57662         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57663
57664         [BZ #5103]
57665         * lib/glob.c (glob): Recognize patterns starting \/.
57666
57667         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57668
57669         [BZ #3996]
57670         * lib/glob.c (attribute_hidden): Define if not defined.
57671         (glob): Unescape dirname, filename or username when needed and not
57672         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57673         is NULL.  Handle unescaped [ in pattern without closing ].
57674         Don't pass GLOB_CHECK down to recursive glob for directories.
57675         (__glob_pattern_type): New function.
57676         (__glob_pattern_p): Implement using __glob_pattern_type.
57677         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57678         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57679         Remove unreachable code.
57680
57681         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57682
57683         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57684         explain why there are no leaks.
57685
57686         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57687
57688         [BZ #3253]
57689         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57690         time, rather allocate increasingly bigger arrays of pointers, if
57691         possible with alloca, if too large with malloc.
57692
57693 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57694
57695         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57696         Problem reported by H.Merijn Brand in
57697         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57698         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57699         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57700
57701 2007-10-15  Bruno Haible  <bruno@clisp.org>
57702
57703         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57704         with explicit rpl_ prefix.
57705         * lib/fopen.c (fopen): Likewise.
57706         * lib/freopen.c (freopen): Likewise.
57707         * lib/iconv.c (iconv): Likewise.
57708         * lib/iconv_close.c (iconv_close): Likewise.
57709
57710 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57711
57712         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57713
57714 2007-10-15  Bruno Haible  <bruno@clisp.org>
57715
57716         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57717         <stddef.h> instead of <stdlib.h> since we only need NULL.
57718         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57719
57720 2007-10-15  Bruno Haible  <bruno@clisp.org>
57721
57722         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57723         Replace paragraph talking about LIBOBJS.
57724         Reported by Colin Watson <cjwatson@debian.org>.
57725
57726 2007-10-15  Bruno Haible  <bruno@clisp.org>
57727
57728         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57729         <stdlib.h> before using NULL.
57730
57731 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57732
57733         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57734         Reported by Albert Chin <china@thewrittenword.com>.
57735
57736 2007-10-14  Bruno Haible  <bruno@clisp.org>
57737
57738         * modules/iconv_open-utf-tests: New file.
57739         * tests/test-iconv-utf.c: New file.
57740
57741         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57742         * modules/iconv_open-utf: New file.
57743         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57744         (iconv, iconv_close): New declarations.
57745         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57746         be defined.
57747         (iconv_open): Add special handling of conversion between UTF-8 and
57748         UTF-{16,32}{BE,LE}.
57749         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57750         * lib/iconv_close.c: New file.
57751         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57752         gl_FUNC_ICONV_OPEN.
57753         (gl_FUNC_ICONV_OPEN): Use it.
57754         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57755         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57756         and REPLACE_ICONV_UTF.
57757         * modules/iconv_open (Depends-on): Add c-strcase.
57758         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57759         ICONV_CONST.
57760         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57761
57762 2007-10-13  Albert Chin  <china@thewrittenword.com>
57763             Bruno Haible  <bruno@clisp.org>
57764
57765         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57766         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57767
57768 2007-10-13  Bruno Haible  <bruno@clisp.org>
57769
57770         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57771         defined, use the ISO C99 inline semantics.
57772         * lib/argp.h (ARGP_EI): Likewise.
57773
57774 2007-10-13  Bruno Haible  <bruno@clisp.org>
57775
57776         Handle 'inline' change in gcc 4.3.0.
57777         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57778         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57779         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57780         argp_fmtstream_point): Disable 'extern' declaration if the function
57781         definition is going to be provided inline.
57782         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57783         semantics, not the ISO C99 inline semantics.
57784         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57785         'extern' declaration if the function definition is going to be provided
57786         inline.
57787         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57788         the GNU C inline semantics, not the ISO C99 inline semantics. With
57789         GCC 4.2, avoid a warning.
57790
57791 2007-10-13  Bruno Haible  <bruno@clisp.org>
57792
57793         * lib/freading.h (freading): Enable the use of __freading for
57794         glibc >= 2.7.
57795         * lib/freading.c (freading): Likewise.
57796
57797 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57798
57799         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57800         "warning: C99 inline functions are not supported; using GNU89".
57801
57802 2007-10-12  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57805         of 2.
57806         * tests/test-ceilf2.c: New file.
57807         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57808
57809         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57810         * modules/ceilf-tests: Update.
57811
57812 2007-10-12  Bruno Haible  <bruno@clisp.org>
57813
57814         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57815         of 2.
57816         * tests/test-floorf2.c: New file.
57817         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57818
57819         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57820         * modules/floorf-tests: Update.
57821
57822 2007-10-12  Bruno Haible  <bruno@clisp.org>
57823
57824         * tests/test-trunc2.c: New file.
57825         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57826
57827         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57828         * modules/trunc-tests: Update.
57829
57830 2007-10-12  Bruno Haible  <bruno@clisp.org>
57831
57832         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57833         of 2.
57834         * tests/test-truncf2.c: New file.
57835         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57836
57837         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57838         * modules/truncf-tests: Update.
57839
57840 2007-10-11  Eric Blake  <ebb9@byu.net>
57841
57842         Don't claim strerror is broken on Interix.
57843         * doc/functions/strerror.texi (strerror): Known broken systems are
57844         now Solaris 8, and not Interix.
57845         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57846         Interix on cross-compile.
57847         Reported by Martin Koeppe in
57848         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57849
57850 2007-10-11  Bruno Haible  <bruno@clisp.org>
57851
57852         * modules/i-ring-tests: New file.
57853         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57854         instead of assert.
57855
57856 2007-10-11  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/filenamecat-tests: New file.
57859         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57860         * lib/filenamecat.c: Remove test code.
57861
57862 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57863
57864         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57865
57866         * lib/strerror.c: Include <string.h> always, to test interface,
57867         and to remove the need for the dummy.
57868         Include intprops.h to compute width instead of doing it ourselves
57869         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57870         (strerror): Define it to return NULL if there's no system strerror.
57871         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57872         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57873         ancient pre-strerror Unix systems well any more.  Saying "unknown
57874         system error" is enough.
57875         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57876         simpler strerror.c implementation.
57877         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57878         Simplify the tests to reflect the simpler strerror implementation.
57879         * modules/strerror (Depends-on): Add intprops.
57880
57881 2007-10-09  Eric Blake  <ebb9@byu.net>
57882
57883         Silence test-fpending.
57884         * modules/fpending-tests (Files): Add wrapper script.
57885         * tests/test-fpending.sh: New file.
57886
57887 2007-10-09  Bruno Haible  <bruno@clisp.org>
57888
57889         * MODULES.html.sh (func_module): Don't create a hyperlink for
57890         function names like 'printf_frexp'.
57891         (Misc): Add crc, memxor.
57892         (Characteristics of floating types): New section.
57893         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57894         isnanf-nolibm, signbit, trunc, truncf, truncl.
57895         (Enhancements for ISO C 99 functions): New subsection Input/output.
57896         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57897         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57898         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57899         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57900         (Enhancements for POSIX:2001 functions): Add chdir-long.
57901         (File system functions): Add areadlink, chdir-safer, read-file.
57902         Remove cycle-check.
57903         (File system as inode set): New section.
57904         (Date and time): Add gethrxtime.
57905         (Multithreading): Add openmp.
57906         (Internationalization functions): Add localename.
57907         (Unicode string functions): Add unistr/u*-mbsnlen.
57908         (Support for maintaining and releasing projects): Add git-version-gen.
57909         (Lone files): Remove directories.
57910
57911 2007-10-08  Ben Pfaff  <blp@gnu.org>
57912
57913         * lib/xmalloca.h: Fix typo in comment.
57914
57915 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57918         when avoiding problems with integer overflow.  Use a portable test
57919         instead.
57920
57921 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57922
57923         * modules/dummy (License): Change to LGPLv2+.
57924         * modules/float (License): Likewise
57925         * modules/realloc (License): Likewise
57926         * modules/stdlib (License): Likewise
57927
57928 2007-10-07  Bruno Haible  <bruno@clisp.org>
57929
57930         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57931         * floor.c (TWO_MANT_DIG): Likewise.
57932         * ceil.c (TWO_MANT_DIG): Likewise.
57933         Reported by Ben Pfaff.
57934
57935 2007-10-07  Bruno Haible  <bruno@clisp.org>
57936
57937         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57938         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57939         * lib/frexp.c (FUNC): Likewise.
57940         * lib/printf-frexp.h (printf_frexp): Likewise.
57941         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57942         * lib/printf-frexp.c (FUNC): Likewise.
57943         Suggested by Jim Meyering.
57944
57945 2007-10-07  Jim Meyering  <meyering@redhat.com>
57946
57947         Make xnanosleep's integer overflow test more robust.
57948         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57949         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57950
57951 2007-10-07  Bruno Haible  <bruno@clisp.org>
57952
57953         * NEWS: Mention the license change.
57954
57955         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57956         abbreviations in the modules files.
57957
57958         Change copyright notice from GPLv2+ to GPLv3+.
57959         * README: Change copyright notice.
57960         * MODULES.html.sh: Likewise.
57961         * build-aux/bootstrap.conf: Likewise.
57962         * build-aux/config.libpath: Likewise.
57963         * build-aux/csharpcomp.sh.in: Likewise.
57964         * build-aux/csharpexec.sh.in: Likewise.
57965         * build-aux/install-reloc: Likewise.
57966         * build-aux/javacomp.sh.in: Likewise.
57967         * build-aux/javaexec.sh.in: Likewise.
57968         * build-aux/ldd.sh.in: Likewise.
57969         * build-aux/reloc-ldflags: Likewise.
57970         * build-aux/relocatable.sh.in: Likewise.
57971         * build-aux/x-to-1.in: Likewise.
57972         * check-module: Likewise.
57973         * config/srclistvars.sh: Likewise.
57974         * gnulib-tool: Likewise.
57975         * lib/acl-internal.h: Likewise.
57976         * lib/acl.c: Likewise.
57977         * lib/acl.h: Likewise.
57978         * lib/acl_entries.c: Likewise.
57979         * lib/areadlink-with-size.c: Likewise.
57980         * lib/areadlink.c: Likewise.
57981         * lib/areadlink.h: Likewise.
57982         * lib/argmatch.c: Likewise.
57983         * lib/argmatch.h: Likewise.
57984         * lib/argp-ba.c: Likewise.
57985         * lib/argp-eexst.c: Likewise.
57986         * lib/argp-fmtstream.c: Likewise.
57987         * lib/argp-fmtstream.h: Likewise.
57988         * lib/argp-fs-xinl.c: Likewise.
57989         * lib/argp-help.c: Likewise.
57990         * lib/argp-namefrob.h: Likewise.
57991         * lib/argp-parse.c: Likewise.
57992         * lib/argp-pin.c: Likewise.
57993         * lib/argp-pv.c: Likewise.
57994         * lib/argp-pvh.c: Likewise.
57995         * lib/argp-xinl.c: Likewise.
57996         * lib/argp.h: Likewise.
57997         * lib/at-func.c: Likewise.
57998         * lib/atanl.c: Likewise.
57999         * lib/backupfile.c: Likewise.
58000         * lib/backupfile.h: Likewise.
58001         * lib/basename.c: Likewise.
58002         * lib/binary-io.h: Likewise.
58003         * lib/byteswap.in.h: Likewise.
58004         * lib/c-stack.c: Likewise.
58005         * lib/c-stack.h: Likewise.
58006         * lib/c-strcasestr.c: Likewise.
58007         * lib/c-strcasestr.h: Likewise.
58008         * lib/c-strstr.c: Likewise.
58009         * lib/c-strstr.h: Likewise.
58010         * lib/c-strtod.c: Likewise.
58011         * lib/calloc.c: Likewise.
58012         * lib/canon-host.c: Likewise.
58013         * lib/canon-host.h: Likewise.
58014         * lib/canonicalize-lgpl.c: Likewise.
58015         * lib/canonicalize.c: Likewise.
58016         * lib/canonicalize.h: Likewise.
58017         * lib/ceil.c: Likewise.
58018         * lib/ceilf.c: Likewise.
58019         * lib/ceill.c: Likewise.
58020         * lib/chdir-long.c: Likewise.
58021         * lib/chdir-long.h: Likewise.
58022         * lib/chdir-safer.c: Likewise.
58023         * lib/chdir-safer.h: Likewise.
58024         * lib/chown.c: Likewise.
58025         * lib/classpath.c: Likewise.
58026         * lib/classpath.h: Likewise.
58027         * lib/clean-temp.c: Likewise.
58028         * lib/clean-temp.h: Likewise.
58029         * lib/cloexec.c: Likewise.
58030         * lib/close-stream.c: Likewise.
58031         * lib/closein.c: Likewise.
58032         * lib/closein.h: Likewise.
58033         * lib/closeout.c: Likewise.
58034         * lib/closeout.h: Likewise.
58035         * lib/concat-filename.c: Likewise.
58036         * lib/copy-file.c: Likewise.
58037         * lib/copy-file.h: Likewise.
58038         * lib/count-one-bits.h: Likewise.
58039         * lib/crc.c: Likewise.
58040         * lib/crc.h: Likewise.
58041         * lib/creat-safer.c: Likewise.
58042         * lib/csharpcomp.c: Likewise.
58043         * lib/csharpcomp.h: Likewise.
58044         * lib/csharpexec.c: Likewise.
58045         * lib/csharpexec.h: Likewise.
58046         * lib/cycle-check.c: Likewise.
58047         * lib/cycle-check.h: Likewise.
58048         * lib/diacrit.c: Likewise.
58049         * lib/diacrit.h: Likewise.
58050         * lib/diffseq.h: Likewise.
58051         * lib/dirchownmod.c: Likewise.
58052         * lib/dirent.in.h: Likewise.
58053         * lib/dirfd.c: Likewise.
58054         * lib/dirfd.h: Likewise.
58055         * lib/dirname.c: Likewise.
58056         * lib/dirname.h: Likewise.
58057         * lib/dummy.c: Likewise.
58058         * lib/dup-safer.c: Likewise.
58059         * lib/dup2.c: Likewise.
58060         * lib/eealloc.h: Likewise.
58061         * lib/error.c: Likewise.
58062         * lib/error.h: Likewise.
58063         * lib/euidaccess.c: Likewise.
58064         * lib/exclude.c: Likewise.
58065         * lib/exclude.h: Likewise.
58066         * lib/execute.c: Likewise.
58067         * lib/execute.h: Likewise.
58068         * lib/exitfail.c: Likewise.
58069         * lib/exitfail.h: Likewise.
58070         * lib/expl.c: Likewise.
58071         * lib/fatal-signal.c: Likewise.
58072         * lib/fatal-signal.h: Likewise.
58073         * lib/fbufmode.c: Likewise.
58074         * lib/fbufmode.h: Likewise.
58075         * lib/fchdir.c: Likewise.
58076         * lib/fchmodat.c: Likewise.
58077         * lib/fchownat.c: Likewise.
58078         * lib/fcntl--.h: Likewise.
58079         * lib/fcntl-safer.h: Likewise.
58080         * lib/fcntl.in.h: Likewise.
58081         * lib/fd-safer.c: Likewise.
58082         * lib/fflush.c: Likewise.
58083         * lib/file-has-acl.c: Likewise.
58084         * lib/file-set.c: Likewise.
58085         * lib/file-type.c: Likewise.
58086         * lib/file-type.h: Likewise.
58087         * lib/fileblocks.c: Likewise.
58088         * lib/filemode.c: Likewise.
58089         * lib/filemode.h: Likewise.
58090         * lib/filename.h: Likewise.
58091         * lib/filenamecat.c: Likewise.
58092         * lib/filenamecat.h: Likewise.
58093         * lib/findprog.c: Likewise.
58094         * lib/findprog.h: Likewise.
58095         * lib/float.in.h: Likewise.
58096         * lib/floor.c: Likewise.
58097         * lib/floorf.c: Likewise.
58098         * lib/floorl.c: Likewise.
58099         * lib/fopen-safer.c: Likewise.
58100         * lib/fopen.c: Likewise.
58101         * lib/fpending.c: Likewise.
58102         * lib/fpending.h: Likewise.
58103         * lib/fprintf.c: Likewise.
58104         * lib/fprintftime.h: Likewise.
58105         * lib/fpucw.h: Likewise.
58106         * lib/fpurge.c: Likewise.
58107         * lib/fpurge.h: Likewise.
58108         * lib/freadable.c: Likewise.
58109         * lib/freadable.h: Likewise.
58110         * lib/freadahead.c: Likewise.
58111         * lib/freadahead.h: Likewise.
58112         * lib/freading.c: Likewise.
58113         * lib/freading.h: Likewise.
58114         * lib/free.c: Likewise.
58115         * lib/freopen.c: Likewise.
58116         * lib/frexp.c: Likewise.
58117         * lib/frexpl.c: Likewise.
58118         * lib/fseek.c: Likewise.
58119         * lib/fseterr.c: Likewise.
58120         * lib/fseterr.h: Likewise.
58121         * lib/fstatat.c: Likewise.
58122         * lib/fstrcmp.c: Likewise.
58123         * lib/fstrcmp.h: Likewise.
58124         * lib/fsusage.c: Likewise.
58125         * lib/fsusage.h: Likewise.
58126         * lib/ftell.c: Likewise.
58127         * lib/ftello.c: Likewise.
58128         * lib/fts-cycle.c: Likewise.
58129         * lib/fts.c: Likewise.
58130         * lib/fts_.h: Likewise.
58131         * lib/full-read.c: Likewise.
58132         * lib/full-read.h: Likewise.
58133         * lib/full-write.c: Likewise.
58134         * lib/full-write.h: Likewise.
58135         * lib/fwritable.c: Likewise.
58136         * lib/fwritable.h: Likewise.
58137         * lib/fwriteerror.c: Likewise.
58138         * lib/fwriteerror.h: Likewise.
58139         * lib/fwriting.c: Likewise.
58140         * lib/fwriting.h: Likewise.
58141         * lib/gcd.c: Likewise.
58142         * lib/gcd.h: Likewise.
58143         * lib/getcwd.c: Likewise.
58144         * lib/getdate.h: Likewise.
58145         * lib/getdate.y: Likewise.
58146         * lib/getdomainname.c: Likewise.
58147         * lib/getdomainname.h: Likewise.
58148         * lib/getgroups.c: Likewise.
58149         * lib/gethostname.c: Likewise.
58150         * lib/gethrxtime.c: Likewise.
58151         * lib/gethrxtime.h: Likewise.
58152         * lib/getloadavg.c: Likewise.
58153         * lib/getndelim2.c: Likewise.
58154         * lib/getndelim2.h: Likewise.
58155         * lib/getnline.c: Likewise.
58156         * lib/getnline.h: Likewise.
58157         * lib/getopt.c: Likewise.
58158         * lib/getopt.in.h: Likewise.
58159         * lib/getopt1.c: Likewise.
58160         * lib/getopt_int.h: Likewise.
58161         * lib/getpagesize.h: Likewise.
58162         * lib/getsubopt.c: Likewise.
58163         * lib/gettime.c: Likewise.
58164         * lib/getugroups.c: Likewise.
58165         * lib/getugroups.h: Likewise.
58166         * lib/getusershell.c: Likewise.
58167         * lib/gl_anyavltree_list1.h: Likewise.
58168         * lib/gl_anyavltree_list2.h: Likewise.
58169         * lib/gl_anyhash_list1.h: Likewise.
58170         * lib/gl_anyhash_list2.h: Likewise.
58171         * lib/gl_anylinked_list1.h: Likewise.
58172         * lib/gl_anylinked_list2.h: Likewise.
58173         * lib/gl_anyrbtree_list1.h: Likewise.
58174         * lib/gl_anyrbtree_list2.h: Likewise.
58175         * lib/gl_anytree_list1.h: Likewise.
58176         * lib/gl_anytree_list2.h: Likewise.
58177         * lib/gl_anytree_oset.h: Likewise.
58178         * lib/gl_anytreehash_list1.h: Likewise.
58179         * lib/gl_anytreehash_list2.h: Likewise.
58180         * lib/gl_array_list.c: Likewise.
58181         * lib/gl_array_list.h: Likewise.
58182         * lib/gl_array_oset.c: Likewise.
58183         * lib/gl_array_oset.h: Likewise.
58184         * lib/gl_avltree_list.c: Likewise.
58185         * lib/gl_avltree_list.h: Likewise.
58186         * lib/gl_avltree_oset.c: Likewise.
58187         * lib/gl_avltree_oset.h: Likewise.
58188         * lib/gl_avltreehash_list.c: Likewise.
58189         * lib/gl_avltreehash_list.h: Likewise.
58190         * lib/gl_carray_list.c: Likewise.
58191         * lib/gl_carray_list.h: Likewise.
58192         * lib/gl_linked_list.c: Likewise.
58193         * lib/gl_linked_list.h: Likewise.
58194         * lib/gl_linkedhash_list.c: Likewise.
58195         * lib/gl_linkedhash_list.h: Likewise.
58196         * lib/gl_list.c: Likewise.
58197         * lib/gl_list.h: Likewise.
58198         * lib/gl_oset.c: Likewise.
58199         * lib/gl_oset.h: Likewise.
58200         * lib/gl_rbtree_list.c: Likewise.
58201         * lib/gl_rbtree_list.h: Likewise.
58202         * lib/gl_rbtree_oset.c: Likewise.
58203         * lib/gl_rbtree_oset.h: Likewise.
58204         * lib/gl_rbtreehash_list.c: Likewise.
58205         * lib/gl_rbtreehash_list.h: Likewise.
58206         * lib/gl_sublist.c: Likewise.
58207         * lib/gl_sublist.h: Likewise.
58208         * lib/group-member.c: Likewise.
58209         * lib/group-member.h: Likewise.
58210         * lib/hard-locale.c: Likewise.
58211         * lib/hard-locale.h: Likewise.
58212         * lib/hash-pjw.c: Likewise.
58213         * lib/hash-pjw.h: Likewise.
58214         * lib/hash-triple.c: Likewise.
58215         * lib/hash.c: Likewise.
58216         * lib/hash.h: Likewise.
58217         * lib/human.c: Likewise.
58218         * lib/human.h: Likewise.
58219         * lib/i-ring.c: Likewise.
58220         * lib/i-ring.h: Likewise.
58221         * lib/idcache.c: Likewise.
58222         * lib/imaxabs.c: Likewise.
58223         * lib/imaxdiv.c: Likewise.
58224         * lib/inet_pton.c: Likewise.
58225         * lib/inet_pton.h: Likewise.
58226         * lib/intprops.h: Likewise.
58227         * lib/inttostr.c: Likewise.
58228         * lib/inttostr.h: Likewise.
58229         * lib/inttypes.in.h: Likewise.
58230         * lib/isapipe.c: Likewise.
58231         * lib/isdir.c: Likewise.
58232         * lib/isnan.c: Likewise.
58233         * lib/isnan.h: Likewise.
58234         * lib/isnanf.c: Likewise.
58235         * lib/isnanf.h: Likewise.
58236         * lib/isnanl-nolibm.h: Likewise.
58237         * lib/isnanl.c: Likewise.
58238         * lib/isnanl.h: Likewise.
58239         * lib/javacomp.c: Likewise.
58240         * lib/javacomp.h: Likewise.
58241         * lib/javaexec.c: Likewise.
58242         * lib/javaexec.h: Likewise.
58243         * lib/javaversion.c: Likewise.
58244         * lib/javaversion.h: Likewise.
58245         * lib/javaversion.java: Likewise.
58246         * lib/lbrkprop.h: Likewise.
58247         * lib/lchmod.h: Likewise.
58248         * lib/lchown.c: Likewise.
58249         * lib/ldexpl.c: Likewise.
58250         * lib/linebreak.c: Likewise.
58251         * lib/linebreak.h: Likewise.
58252         * lib/linebuffer.c: Likewise.
58253         * lib/linebuffer.h: Likewise.
58254         * lib/locale.in.h: Likewise.
58255         * lib/logl.c: Likewise.
58256         * lib/long-options.c: Likewise.
58257         * lib/long-options.h: Likewise.
58258         * lib/lstat.c: Likewise.
58259         * lib/lstat.h: Likewise.
58260         * lib/math.in.h: Likewise.
58261         * lib/mbchar.c: Likewise.
58262         * lib/mbchar.h: Likewise.
58263         * lib/mbfile.h: Likewise.
58264         * lib/mbiter.h: Likewise.
58265         * lib/mbscasecmp.c: Likewise.
58266         * lib/mbscasestr.c: Likewise.
58267         * lib/mbschr.c: Likewise.
58268         * lib/mbscspn.c: Likewise.
58269         * lib/mbslen.c: Likewise.
58270         * lib/mbsncasecmp.c: Likewise.
58271         * lib/mbsnlen.c: Likewise.
58272         * lib/mbspbrk.c: Likewise.
58273         * lib/mbspcasecmp.c: Likewise.
58274         * lib/mbsrchr.c: Likewise.
58275         * lib/mbssep.c: Likewise.
58276         * lib/mbsspn.c: Likewise.
58277         * lib/mbsstr.c: Likewise.
58278         * lib/mbstok_r.c: Likewise.
58279         * lib/mbswidth.c: Likewise.
58280         * lib/mbswidth.h: Likewise.
58281         * lib/mbuiter.h: Likewise.
58282         * lib/memcasecmp.c: Likewise.
58283         * lib/memcasecmp.h: Likewise.
58284         * lib/memchr.c: Likewise.
58285         * lib/memcmp.c: Likewise.
58286         * lib/memcoll.c: Likewise.
58287         * lib/memcoll.h: Likewise.
58288         * lib/memcpy.c: Likewise.
58289         * lib/memrchr.c: Likewise.
58290         * lib/mkancesdirs.c: Likewise.
58291         * lib/mkdir-p.c: Likewise.
58292         * lib/mkdir-p.h: Likewise.
58293         * lib/mkdir.c: Likewise.
58294         * lib/mkdirat.c: Likewise.
58295         * lib/mkdtemp.c: Likewise.
58296         * lib/mkstemp-safer.c: Likewise.
58297         * lib/mkstemp.c: Likewise.
58298         * lib/modechange.c: Likewise.
58299         * lib/modechange.h: Likewise.
58300         * lib/mountlist.c: Likewise.
58301         * lib/mountlist.h: Likewise.
58302         * lib/mpsort.c: Likewise.
58303         * lib/nanosleep.c: Likewise.
58304         * lib/obstack.c: Likewise.
58305         * lib/obstack.h: Likewise.
58306         * lib/open-safer.c: Likewise.
58307         * lib/open.c: Likewise.
58308         * lib/openat-die.c: Likewise.
58309         * lib/openat-priv.h: Likewise.
58310         * lib/openat-proc.c: Likewise.
58311         * lib/openat.c: Likewise.
58312         * lib/openat.h: Likewise.
58313         * lib/pagealign_alloc.c: Likewise.
58314         * lib/pagealign_alloc.h: Likewise.
58315         * lib/physmem.c: Likewise.
58316         * lib/physmem.h: Likewise.
58317         * lib/pipe-safer.c: Likewise.
58318         * lib/pipe.c: Likewise.
58319         * lib/pipe.h: Likewise.
58320         * lib/posixtm.c: Likewise.
58321         * lib/posixtm.h: Likewise.
58322         * lib/posixver.c: Likewise.
58323         * lib/printf-frexp.c: Likewise.
58324         * lib/printf-frexp.h: Likewise.
58325         * lib/printf-frexpl.c: Likewise.
58326         * lib/printf-frexpl.h: Likewise.
58327         * lib/printf.c: Likewise.
58328         * lib/progname.c: Likewise.
58329         * lib/progname.h: Likewise.
58330         * lib/progreloc.c: Likewise.
58331         * lib/putenv.c: Likewise.
58332         * lib/quote.c: Likewise.
58333         * lib/quote.h: Likewise.
58334         * lib/quotearg.c: Likewise.
58335         * lib/quotearg.h: Likewise.
58336         * lib/raise.c: Likewise.
58337         * lib/readline.c: Likewise.
58338         * lib/readline.h: Likewise.
58339         * lib/readlink.c: Likewise.
58340         * lib/readtokens.c: Likewise.
58341         * lib/readtokens.h: Likewise.
58342         * lib/readtokens0.c: Likewise.
58343         * lib/readtokens0.h: Likewise.
58344         * lib/readutmp.c: Likewise.
58345         * lib/readutmp.h: Likewise.
58346         * lib/realloc.c: Likewise.
58347         * lib/relocwrapper.c: Likewise.
58348         * lib/rename-dest-slash.c: Likewise.
58349         * lib/rename.c: Likewise.
58350         * lib/rmdir.c: Likewise.
58351         * lib/rpmatch.c: Likewise.
58352         * lib/safe-read.c: Likewise.
58353         * lib/safe-read.h: Likewise.
58354         * lib/safe-write.c: Likewise.
58355         * lib/safe-write.h: Likewise.
58356         * lib/same-inode.h: Likewise.
58357         * lib/same.c: Likewise.
58358         * lib/same.h: Likewise.
58359         * lib/save-cwd.c: Likewise.
58360         * lib/save-cwd.h: Likewise.
58361         * lib/savedir.c: Likewise.
58362         * lib/savedir.h: Likewise.
58363         * lib/savewd.c: Likewise.
58364         * lib/savewd.h: Likewise.
58365         * lib/search.in.h: Likewise.
58366         * lib/setenv.c: Likewise.
58367         * lib/setenv.h: Likewise.
58368         * lib/settime.c: Likewise.
58369         * lib/sh-quote.c: Likewise.
58370         * lib/sh-quote.h: Likewise.
58371         * lib/sig2str.c: Likewise.
58372         * lib/sig2str.h: Likewise.
58373         * lib/signal.in.h: Likewise.
58374         * lib/signbitd.c: Likewise.
58375         * lib/signbitf.c: Likewise.
58376         * lib/signbitl.c: Likewise.
58377         * lib/sigprocmask.c: Likewise.
58378         * lib/sincosl.c: Likewise.
58379         * lib/sleep.c: Likewise.
58380         * lib/sprintf.c: Likewise.
58381         * lib/sqrtl.c: Likewise.
58382         * lib/stat-time.h: Likewise.
58383         * lib/stdio--.h: Likewise.
58384         * lib/stdio-safer.h: Likewise.
58385         * lib/stdlib--.h: Likewise.
58386         * lib/stdlib-safer.h: Likewise.
58387         * lib/stdlib.in.h: Likewise.
58388         * lib/stpcpy.c: Likewise.
58389         * lib/stpncpy.c: Likewise.
58390         * lib/strchrnul.c: Likewise.
58391         * lib/strcspn.c: Likewise.
58392         * lib/strerror.c: Likewise.
58393         * lib/strftime.c: Likewise.
58394         * lib/strftime.h: Likewise.
58395         * lib/striconveh.c: Likewise.
58396         * lib/striconveh.h: Likewise.
58397         * lib/striconveha.c: Likewise.
58398         * lib/striconveha.h: Likewise.
58399         * lib/stripslash.c: Likewise.
58400         * lib/strnlen1.c: Likewise.
58401         * lib/strnlen1.h: Likewise.
58402         * lib/strtod.c: Likewise.
58403         * lib/strtoimax.c: Likewise.
58404         * lib/strtok_r.c: Likewise.
58405         * lib/strtol.c: Likewise.
58406         * lib/strtoll.c: Likewise.
58407         * lib/strtoul.c: Likewise.
58408         * lib/strtoull.c: Likewise.
58409         * lib/sysexits.in.h: Likewise.
58410         * lib/tempname.c: Likewise.
58411         * lib/tempname.h: Likewise.
58412         * lib/timespec.h: Likewise.
58413         * lib/tls.c: Likewise.
58414         * lib/tls.h: Likewise.
58415         * lib/tmpdir.c: Likewise.
58416         * lib/tmpdir.h: Likewise.
58417         * lib/tmpfile-safer.c: Likewise.
58418         * lib/tmpfile.c: Likewise.
58419         * lib/trigl.c: Likewise.
58420         * lib/trigl.h: Likewise.
58421         * lib/trim.c: Likewise.
58422         * lib/trim.h: Likewise.
58423         * lib/trunc.c: Likewise.
58424         * lib/truncf.c: Likewise.
58425         * lib/truncl.c: Likewise.
58426         * lib/tsearch.c: Likewise.
58427         * lib/unicodeio.c: Likewise.
58428         * lib/unicodeio.h: Likewise.
58429         * lib/unistd--.h: Likewise.
58430         * lib/unistd-safer.h: Likewise.
58431         * lib/unistdio/ulc-fprintf.c: Likewise.
58432         * lib/unistdio/ulc-vfprintf.c: Likewise.
58433         * lib/unlinkdir.c: Likewise.
58434         * lib/unlinkdir.h: Likewise.
58435         * lib/unlocked-io.h: Likewise.
58436         * lib/unsetenv.c: Likewise.
58437         * lib/userspec.c: Likewise.
58438         * lib/utime.c: Likewise.
58439         * lib/utimecmp.c: Likewise.
58440         * lib/utimecmp.h: Likewise.
58441         * lib/utimens.c: Likewise.
58442         * lib/verify.h: Likewise.
58443         * lib/verror.c: Likewise.
58444         * lib/verror.h: Likewise.
58445         * lib/version-etc-fsf.c: Likewise.
58446         * lib/version-etc.c: Likewise.
58447         * lib/version-etc.h: Likewise.
58448         * lib/vfprintf.c: Likewise.
58449         * lib/vprintf.c: Likewise.
58450         * lib/vsprintf.c: Likewise.
58451         * lib/w32spawn.h: Likewise.
58452         * lib/wait-process.c: Likewise.
58453         * lib/wait-process.h: Likewise.
58454         * lib/wcwidth.c: Likewise.
58455         * lib/write-any-file.c: Likewise.
58456         * lib/xalloc-die.c: Likewise.
58457         * lib/xalloc.h: Likewise.
58458         * lib/xasprintf.c: Likewise.
58459         * lib/xgetcwd.c: Likewise.
58460         * lib/xgetcwd.h: Likewise.
58461         * lib/xgetdomainname.c: Likewise.
58462         * lib/xgetdomainname.h: Likewise.
58463         * lib/xgethostname.c: Likewise.
58464         * lib/xmalloc.c: Likewise.
58465         * lib/xmalloca.c: Likewise.
58466         * lib/xmalloca.h: Likewise.
58467         * lib/xmemcoll.c: Likewise.
58468         * lib/xnanosleep.c: Likewise.
58469         * lib/xreadlink.c: Likewise.
58470         * lib/xreadlink.h: Likewise.
58471         * lib/xsetenv.c: Likewise.
58472         * lib/xsetenv.h: Likewise.
58473         * lib/xstriconv.c: Likewise.
58474         * lib/xstriconv.h: Likewise.
58475         * lib/xstrndup.c: Likewise.
58476         * lib/xstrndup.h: Likewise.
58477         * lib/xstrtod.c: Likewise.
58478         * lib/xstrtod.h: Likewise.
58479         * lib/xstrtol-error.c: Likewise.
58480         * lib/xstrtol.c: Likewise.
58481         * lib/xstrtol.h: Likewise.
58482         * lib/xtime.h: Likewise.
58483         * lib/xvasprintf.c: Likewise.
58484         * lib/xvasprintf.h: Likewise.
58485         * lib/yesno.c: Likewise.
58486         * lib/yesno.h: Likewise.
58487         * posix-modules: Likewise.
58488         * tests/test-alloca-opt.c: Likewise.
58489         * tests/test-arcfour.c: Likewise.
58490         * tests/test-arctwo.c: Likewise.
58491         * tests/test-argmatch.c: Likewise.
58492         * tests/test-argp-2.sh: Likewise.
58493         * tests/test-argp.c: Likewise.
58494         * tests/test-arpa_inet.c: Likewise.
58495         * tests/test-array_list.c: Likewise.
58496         * tests/test-array_oset.c: Likewise.
58497         * tests/test-atexit.c: Likewise.
58498         * tests/test-avltree_list.c: Likewise.
58499         * tests/test-avltree_oset.c: Likewise.
58500         * tests/test-avltreehash_list.c: Likewise.
58501         * tests/test-base64.c: Likewise.
58502         * tests/test-binary-io.c: Likewise.
58503         * tests/test-byteswap.c: Likewise.
58504         * tests/test-c-ctype.c: Likewise.
58505         * tests/test-c-strcasecmp.c: Likewise.
58506         * tests/test-c-strcasestr.c: Likewise.
58507         * tests/test-c-strncasecmp.c: Likewise.
58508         * tests/test-c-strstr.c: Likewise.
58509         * tests/test-canonicalize-lgpl.c: Likewise.
58510         * tests/test-canonicalize.c: Likewise.
58511         * tests/test-carray_list.c: Likewise.
58512         * tests/test-ceilf.c: Likewise.
58513         * tests/test-ceill.c: Likewise.
58514         * tests/test-count-one-bits.c: Likewise.
58515         * tests/test-crc.c: Likewise.
58516         * tests/test-dirname.c: Likewise.
58517         * tests/test-fbufmode.c: Likewise.
58518         * tests/test-fcntl.c: Likewise.
58519         * tests/test-fflush.c: Likewise.
58520         * tests/test-floorf.c: Likewise.
58521         * tests/test-floorl.c: Likewise.
58522         * tests/test-fopen.c: Likewise.
58523         * tests/test-fprintf-posix.c: Likewise.
58524         * tests/test-fprintf-posix.h: Likewise.
58525         * tests/test-fpurge.c: Likewise.
58526         * tests/test-freadable.c: Likewise.
58527         * tests/test-freadahead.c: Likewise.
58528         * tests/test-freading.c: Likewise.
58529         * tests/test-freopen.c: Likewise.
58530         * tests/test-frexp.c: Likewise.
58531         * tests/test-frexpl.c: Likewise.
58532         * tests/test-fseek.c: Likewise.
58533         * tests/test-fseeko.c: Likewise.
58534         * tests/test-fseterr.c: Likewise.
58535         * tests/test-fstrcmp.c: Likewise.
58536         * tests/test-ftell.c: Likewise.
58537         * tests/test-ftello.c: Likewise.
58538         * tests/test-fwritable.c: Likewise.
58539         * tests/test-fwriting.c: Likewise.
58540         * tests/test-getaddrinfo.c: Likewise.
58541         * tests/test-getpass.c: Likewise.
58542         * tests/test-gettimeofday.c: Likewise.
58543         * tests/test-hmac-md5.c: Likewise.
58544         * tests/test-hmac-sha1.c: Likewise.
58545         * tests/test-iconv.c: Likewise.
58546         * tests/test-iconvme.c: Likewise.
58547         * tests/test-inttypes.c: Likewise.
58548         * tests/test-isnan.c: Likewise.
58549         * tests/test-isnanf.c: Likewise.
58550         * tests/test-isnanl-nolibm.c: Likewise.
58551         * tests/test-isnanl.c: Likewise.
58552         * tests/test-isnanl.h: Likewise.
58553         * tests/test-ldexpl.c: Likewise.
58554         * tests/test-linked_list.c: Likewise.
58555         * tests/test-linkedhash_list.c: Likewise.
58556         * tests/test-locale.c: Likewise.
58557         * tests/test-localename.c: Likewise.
58558         * tests/test-lock.c: Likewise.
58559         * tests/test-lseek.c: Likewise.
58560         * tests/test-malloca.c: Likewise.
58561         * tests/test-math.c: Likewise.
58562         * tests/test-mbscasecmp.c: Likewise.
58563         * tests/test-mbscasestr1.c: Likewise.
58564         * tests/test-mbscasestr2.c: Likewise.
58565         * tests/test-mbscasestr3.c: Likewise.
58566         * tests/test-mbscasestr4.c: Likewise.
58567         * tests/test-mbschr.c: Likewise.
58568         * tests/test-mbscspn.c: Likewise.
58569         * tests/test-mbsncasecmp.c: Likewise.
58570         * tests/test-mbspbrk.c: Likewise.
58571         * tests/test-mbspcasecmp.c: Likewise.
58572         * tests/test-mbsrchr.c: Likewise.
58573         * tests/test-mbsspn.c: Likewise.
58574         * tests/test-mbsstr1.c: Likewise.
58575         * tests/test-mbsstr2.c: Likewise.
58576         * tests/test-mbsstr3.c: Likewise.
58577         * tests/test-md5.c: Likewise.
58578         * tests/test-memmem.c: Likewise.
58579         * tests/test-netinet_in.c: Likewise.
58580         * tests/test-open.c: Likewise.
58581         * tests/test-printf-frexp.c: Likewise.
58582         * tests/test-printf-frexpl.c: Likewise.
58583         * tests/test-printf-posix.c: Likewise.
58584         * tests/test-printf-posix.h: Likewise.
58585         * tests/test-rbtree_list.c: Likewise.
58586         * tests/test-rbtree_oset.c: Likewise.
58587         * tests/test-rbtreehash_list.c: Likewise.
58588         * tests/test-read-file.c: Likewise.
58589         * tests/test-rijndael.c: Likewise.
58590         * tests/test-search.c: Likewise.
58591         * tests/test-signbit.c: Likewise.
58592         * tests/test-sleep.c: Likewise.
58593         * tests/test-snprintf-posix.c: Likewise.
58594         * tests/test-snprintf-posix.h: Likewise.
58595         * tests/test-snprintf.c: Likewise.
58596         * tests/test-sprintf-posix.c: Likewise.
58597         * tests/test-sprintf-posix.h: Likewise.
58598         * tests/test-stat-time.c: Likewise.
58599         * tests/test-stdbool.c: Likewise.
58600         * tests/test-stdint.c: Likewise.
58601         * tests/test-stdio.c: Likewise.
58602         * tests/test-stdlib.c: Likewise.
58603         * tests/test-stpncpy.c: Likewise.
58604         * tests/test-strcasestr.c: Likewise.
58605         * tests/test-striconv.c: Likewise.
58606         * tests/test-striconveh.c: Likewise.
58607         * tests/test-striconveha.c: Likewise.
58608         * tests/test-string.c: Likewise.
58609         * tests/test-sys_select.c: Likewise.
58610         * tests/test-sys_socket.c: Likewise.
58611         * tests/test-sys_stat.c: Likewise.
58612         * tests/test-sys_time.c: Likewise.
58613         * tests/test-sysexits.c: Likewise.
58614         * tests/test-time.c: Likewise.
58615         * tests/test-tls.c: Likewise.
58616         * tests/test-trunc.c: Likewise.
58617         * tests/test-truncf.c: Likewise.
58618         * tests/test-truncl.c: Likewise.
58619         * tests/test-unistd.c: Likewise.
58620         * tests/test-vasnprintf-posix.c: Likewise.
58621         * tests/test-vasnprintf-posix2.c: Likewise.
58622         * tests/test-vasnprintf.c: Likewise.
58623         * tests/test-vasprintf-posix.c: Likewise.
58624         * tests/test-vasprintf.c: Likewise.
58625         * tests/test-verify.c: Likewise.
58626         * tests/test-vfprintf-posix.c: Likewise.
58627         * tests/test-vprintf-posix.c: Likewise.
58628         * tests/test-vsnprintf-posix.c: Likewise.
58629         * tests/test-vsnprintf.c: Likewise.
58630         * tests/test-vsprintf-posix.c: Likewise.
58631         * tests/test-wchar.c: Likewise.
58632         * tests/test-wctype.c: Likewise.
58633         * tests/test-wcwidth.c: Likewise.
58634         * tests/test-xstrtol.c: Likewise.
58635         * tests/test-xvasprintf.c: Likewise.
58636         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58637         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58638         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58639         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58640         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58641         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58642         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58643         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58644         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58645         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58646         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58647         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58648         * tests/uniname/test-uninames.c: Likewise.
58649         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58650         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58651         * tests/unistdio/test-u16-printf1.h: Likewise.
58652         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58653         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58654         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58655         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58656         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58657         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58658         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58659         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58660         * tests/unistdio/test-u32-printf1.h: Likewise.
58661         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58662         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58663         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58664         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58665         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58666         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58667         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58668         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58669         * tests/unistdio/test-u8-printf1.h: Likewise.
58670         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58671         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58672         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58673         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58674         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58675         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58676         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58677         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58678         * tests/unistdio/test-ulc-printf1.h: Likewise.
58679         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58680         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58681         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58682         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58683         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58684         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58685         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58686         * tests/uniwidth/test-u16-width.c: Likewise.
58687         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58688         * tests/uniwidth/test-u32-width.c: Likewise.
58689         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58690         * tests/uniwidth/test-u8-width.c: Likewise.
58691         * tests/uniwidth/test-uc_width.c: Likewise.
58692         * config/srclist-update: Likewise.
58693         (fixlicense): Update to GPLv3+.
58694
58695         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58696         * tests/test-tsearch.c: Change copyright notice.
58697
58698         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58699         * lib/c-strcaseeq.h: Change copyright notice.
58700         * lib/streq.h: Likewise.
58701         * lib/uniconv.h: Likewise.
58702         * lib/uniconv/u-conv-from-enc.h: Likewise.
58703         * lib/uniconv/u-conv-to-enc.h: Likewise.
58704         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58705         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58706         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58707         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58708         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58709         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58710         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58711         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58712         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58713         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58714         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58715         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58716         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58717         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58718         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58719         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58720         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58721         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58722         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58723         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58724         * lib/uniname.h: Likewise.
58725         * lib/uniname/uniname.c: Likewise.
58726         * lib/unistdio.h: Likewise.
58727         * lib/unistdio/u-asnprintf.h: Likewise.
58728         * lib/unistdio/u-asprintf.h: Likewise.
58729         * lib/unistdio/u-printf-args.c: Likewise.
58730         * lib/unistdio/u-printf-args.h: Likewise.
58731         * lib/unistdio/u-printf-parse.h: Likewise.
58732         * lib/unistdio/u-snprintf.h: Likewise.
58733         * lib/unistdio/u-sprintf.h: Likewise.
58734         * lib/unistdio/u-vasprintf.h: Likewise.
58735         * lib/unistdio/u-vsnprintf.h: Likewise.
58736         * lib/unistdio/u-vsprintf.h: Likewise.
58737         * lib/unistdio/u16-asnprintf.c: Likewise.
58738         * lib/unistdio/u16-asprintf.c: Likewise.
58739         * lib/unistdio/u16-printf-parse.c: Likewise.
58740         * lib/unistdio/u16-snprintf.c: Likewise.
58741         * lib/unistdio/u16-sprintf.c: Likewise.
58742         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58743         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58744         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58745         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58746         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58747         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58748         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58749         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58750         * lib/unistdio/u16-vasnprintf.c: Likewise.
58751         * lib/unistdio/u16-vasprintf.c: Likewise.
58752         * lib/unistdio/u16-vsnprintf.c: Likewise.
58753         * lib/unistdio/u16-vsprintf.c: Likewise.
58754         * lib/unistdio/u32-asnprintf.c: Likewise.
58755         * lib/unistdio/u32-asprintf.c: Likewise.
58756         * lib/unistdio/u32-printf-parse.c: Likewise.
58757         * lib/unistdio/u32-snprintf.c: Likewise.
58758         * lib/unistdio/u32-sprintf.c: Likewise.
58759         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58760         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58761         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58762         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58763         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58764         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58765         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58766         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58767         * lib/unistdio/u32-vasnprintf.c: Likewise.
58768         * lib/unistdio/u32-vasprintf.c: Likewise.
58769         * lib/unistdio/u32-vsnprintf.c: Likewise.
58770         * lib/unistdio/u32-vsprintf.c: Likewise.
58771         * lib/unistdio/u8-asnprintf.c: Likewise.
58772         * lib/unistdio/u8-asprintf.c: Likewise.
58773         * lib/unistdio/u8-printf-parse.c: Likewise.
58774         * lib/unistdio/u8-snprintf.c: Likewise.
58775         * lib/unistdio/u8-sprintf.c: Likewise.
58776         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58777         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58778         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58779         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58780         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58781         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58782         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58783         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58784         * lib/unistdio/u8-vasnprintf.c: Likewise.
58785         * lib/unistdio/u8-vasprintf.c: Likewise.
58786         * lib/unistdio/u8-vsnprintf.c: Likewise.
58787         * lib/unistdio/u8-vsprintf.c: Likewise.
58788         * lib/unistdio/ulc-asnprintf.c: Likewise.
58789         * lib/unistdio/ulc-asprintf.c: Likewise.
58790         * lib/unistdio/ulc-printf-parse.c: Likewise.
58791         * lib/unistdio/ulc-snprintf.c: Likewise.
58792         * lib/unistdio/ulc-sprintf.c: Likewise.
58793         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58794         * lib/unistdio/ulc-vasprintf.c: Likewise.
58795         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58796         * lib/unistdio/ulc-vsprintf.c: Likewise.
58797         * lib/unistr.h: Likewise.
58798         * lib/unistr/u-cpy-alloc.h: Likewise.
58799         * lib/unistr/u-cpy.h: Likewise.
58800         * lib/unistr/u-endswith.h: Likewise.
58801         * lib/unistr/u-move.h: Likewise.
58802         * lib/unistr/u-set.h: Likewise.
58803         * lib/unistr/u-startswith.h: Likewise.
58804         * lib/unistr/u-stpcpy.h: Likewise.
58805         * lib/unistr/u-stpncpy.h: Likewise.
58806         * lib/unistr/u-strcat.h: Likewise.
58807         * lib/unistr/u-strcpy.h: Likewise.
58808         * lib/unistr/u-strcspn.h: Likewise.
58809         * lib/unistr/u-strdup.h: Likewise.
58810         * lib/unistr/u-strlen.h: Likewise.
58811         * lib/unistr/u-strncat.h: Likewise.
58812         * lib/unistr/u-strncpy.h: Likewise.
58813         * lib/unistr/u-strnlen.h: Likewise.
58814         * lib/unistr/u-strpbrk.h: Likewise.
58815         * lib/unistr/u-strspn.h: Likewise.
58816         * lib/unistr/u-strstr.h: Likewise.
58817         * lib/unistr/u-strtok.h: Likewise.
58818         * lib/unistr/u16-check.c: Likewise.
58819         * lib/unistr/u16-chr.c: Likewise.
58820         * lib/unistr/u16-cmp.c: Likewise.
58821         * lib/unistr/u16-cpy-alloc.c: Likewise.
58822         * lib/unistr/u16-cpy.c: Likewise.
58823         * lib/unistr/u16-endswith.c: Likewise.
58824         * lib/unistr/u16-mblen.c: Likewise.
58825         * lib/unistr/u16-mbsnlen.c: Likewise.
58826         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58827         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58828         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58829         * lib/unistr/u16-mbtouc.c: Likewise.
58830         * lib/unistr/u16-mbtoucr.c: Likewise.
58831         * lib/unistr/u16-move.c: Likewise.
58832         * lib/unistr/u16-next.c: Likewise.
58833         * lib/unistr/u16-prev.c: Likewise.
58834         * lib/unistr/u16-set.c: Likewise.
58835         * lib/unistr/u16-startswith.c: Likewise.
58836         * lib/unistr/u16-stpcpy.c: Likewise.
58837         * lib/unistr/u16-stpncpy.c: Likewise.
58838         * lib/unistr/u16-strcat.c: Likewise.
58839         * lib/unistr/u16-strchr.c: Likewise.
58840         * lib/unistr/u16-strcmp.c: Likewise.
58841         * lib/unistr/u16-strcpy.c: Likewise.
58842         * lib/unistr/u16-strcspn.c: Likewise.
58843         * lib/unistr/u16-strdup.c: Likewise.
58844         * lib/unistr/u16-strlen.c: Likewise.
58845         * lib/unistr/u16-strmblen.c: Likewise.
58846         * lib/unistr/u16-strmbtouc.c: Likewise.
58847         * lib/unistr/u16-strncat.c: Likewise.
58848         * lib/unistr/u16-strncmp.c: Likewise.
58849         * lib/unistr/u16-strncpy.c: Likewise.
58850         * lib/unistr/u16-strnlen.c: Likewise.
58851         * lib/unistr/u16-strpbrk.c: Likewise.
58852         * lib/unistr/u16-strrchr.c: Likewise.
58853         * lib/unistr/u16-strspn.c: Likewise.
58854         * lib/unistr/u16-strstr.c: Likewise.
58855         * lib/unistr/u16-strtok.c: Likewise.
58856         * lib/unistr/u16-to-u32.c: Likewise.
58857         * lib/unistr/u16-to-u8.c: Likewise.
58858         * lib/unistr/u16-uctomb-aux.c: Likewise.
58859         * lib/unistr/u16-uctomb.c: Likewise.
58860         * lib/unistr/u32-check.c: Likewise.
58861         * lib/unistr/u32-chr.c: Likewise.
58862         * lib/unistr/u32-cmp.c: Likewise.
58863         * lib/unistr/u32-cpy-alloc.c: Likewise.
58864         * lib/unistr/u32-cpy.c: Likewise.
58865         * lib/unistr/u32-endswith.c: Likewise.
58866         * lib/unistr/u32-mblen.c: Likewise.
58867         * lib/unistr/u32-mbsnlen.c: Likewise.
58868         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58869         * lib/unistr/u32-mbtouc.c: Likewise.
58870         * lib/unistr/u32-mbtoucr.c: Likewise.
58871         * lib/unistr/u32-move.c: Likewise.
58872         * lib/unistr/u32-next.c: Likewise.
58873         * lib/unistr/u32-prev.c: Likewise.
58874         * lib/unistr/u32-set.c: Likewise.
58875         * lib/unistr/u32-startswith.c: Likewise.
58876         * lib/unistr/u32-stpcpy.c: Likewise.
58877         * lib/unistr/u32-stpncpy.c: Likewise.
58878         * lib/unistr/u32-strcat.c: Likewise.
58879         * lib/unistr/u32-strchr.c: Likewise.
58880         * lib/unistr/u32-strcmp.c: Likewise.
58881         * lib/unistr/u32-strcpy.c: Likewise.
58882         * lib/unistr/u32-strcspn.c: Likewise.
58883         * lib/unistr/u32-strdup.c: Likewise.
58884         * lib/unistr/u32-strlen.c: Likewise.
58885         * lib/unistr/u32-strmblen.c: Likewise.
58886         * lib/unistr/u32-strmbtouc.c: Likewise.
58887         * lib/unistr/u32-strncat.c: Likewise.
58888         * lib/unistr/u32-strncmp.c: Likewise.
58889         * lib/unistr/u32-strncpy.c: Likewise.
58890         * lib/unistr/u32-strnlen.c: Likewise.
58891         * lib/unistr/u32-strpbrk.c: Likewise.
58892         * lib/unistr/u32-strrchr.c: Likewise.
58893         * lib/unistr/u32-strspn.c: Likewise.
58894         * lib/unistr/u32-strstr.c: Likewise.
58895         * lib/unistr/u32-strtok.c: Likewise.
58896         * lib/unistr/u32-to-u16.c: Likewise.
58897         * lib/unistr/u32-to-u8.c: Likewise.
58898         * lib/unistr/u32-uctomb.c: Likewise.
58899         * lib/unistr/u8-check.c: Likewise.
58900         * lib/unistr/u8-chr.c: Likewise.
58901         * lib/unistr/u8-cmp.c: Likewise.
58902         * lib/unistr/u8-cpy-alloc.c: Likewise.
58903         * lib/unistr/u8-cpy.c: Likewise.
58904         * lib/unistr/u8-endswith.c: Likewise.
58905         * lib/unistr/u8-mblen.c: Likewise.
58906         * lib/unistr/u8-mbsnlen.c: Likewise.
58907         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58908         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58909         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58910         * lib/unistr/u8-mbtouc.c: Likewise.
58911         * lib/unistr/u8-mbtoucr.c: Likewise.
58912         * lib/unistr/u8-move.c: Likewise.
58913         * lib/unistr/u8-next.c: Likewise.
58914         * lib/unistr/u8-prev.c: Likewise.
58915         * lib/unistr/u8-set.c: Likewise.
58916         * lib/unistr/u8-startswith.c: Likewise.
58917         * lib/unistr/u8-stpcpy.c: Likewise.
58918         * lib/unistr/u8-stpncpy.c: Likewise.
58919         * lib/unistr/u8-strcat.c: Likewise.
58920         * lib/unistr/u8-strchr.c: Likewise.
58921         * lib/unistr/u8-strcmp.c: Likewise.
58922         * lib/unistr/u8-strcpy.c: Likewise.
58923         * lib/unistr/u8-strcspn.c: Likewise.
58924         * lib/unistr/u8-strdup.c: Likewise.
58925         * lib/unistr/u8-strlen.c: Likewise.
58926         * lib/unistr/u8-strmblen.c: Likewise.
58927         * lib/unistr/u8-strmbtouc.c: Likewise.
58928         * lib/unistr/u8-strncat.c: Likewise.
58929         * lib/unistr/u8-strncmp.c: Likewise.
58930         * lib/unistr/u8-strncpy.c: Likewise.
58931         * lib/unistr/u8-strnlen.c: Likewise.
58932         * lib/unistr/u8-strpbrk.c: Likewise.
58933         * lib/unistr/u8-strrchr.c: Likewise.
58934         * lib/unistr/u8-strspn.c: Likewise.
58935         * lib/unistr/u8-strstr.c: Likewise.
58936         * lib/unistr/u8-strtok.c: Likewise.
58937         * lib/unistr/u8-to-u16.c: Likewise.
58938         * lib/unistr/u8-to-u32.c: Likewise.
58939         * lib/unistr/u8-uctomb-aux.c: Likewise.
58940         * lib/unistr/u8-uctomb.c: Likewise.
58941         * lib/unitypes.h: Likewise.
58942         * lib/uniwidth.h: Likewise.
58943         * lib/uniwidth/cjk.h: Likewise.
58944         * lib/uniwidth/u16-strwidth.c: Likewise.
58945         * lib/uniwidth/u16-width.c: Likewise.
58946         * lib/uniwidth/u32-strwidth.c: Likewise.
58947         * lib/uniwidth/u32-width.c: Likewise.
58948         * lib/uniwidth/u8-strwidth.c: Likewise.
58949         * lib/uniwidth/u8-width.c: Likewise.
58950         * lib/uniwidth/width.c: Likewise.
58951
58952 2007-10-07  Bruno Haible  <bruno@clisp.org>
58953
58954         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58955         The file is still under LGPL (see modules/inttypes).
58956
58957 2007-10-06  Bruno Haible  <bruno@clisp.org>
58958
58959         * modules/trunc (Dependencies): Add 'extensions'.
58960         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58961         Reported by Ben Pfaff <blp@gnu.org>.
58962
58963 2007-10-06  Bruno Haible  <bruno@clisp.org>
58964
58965         * modules/freopen-tests: New file.
58966         * tests/test-freopen.c: New file.
58967
58968         * modules/fopen-tests: New file.
58969         * tests/test-fopen.c: New file.
58970
58971         * modules/fopen: New file.
58972         * lib/fopen.c: New file.
58973         * m4/fopen.m4: New file.
58974         * modules/freopen: New file.
58975         * lib/freopen.c: New file.
58976         * m4/freopen.m4: New file.
58977         * lib/stdio.in.h (fopen, freopen): New declarations.
58978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58979         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58980         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58981         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58982         * doc/functions/fopen.texi: Mention the 'fopen' module.
58983         * doc/functions/freopen.texi: Mention the 'freopen' module.
58984
58985 2007-10-06  Bruno Haible  <bruno@clisp.org>
58986
58987         * modules/open-tests: New file.
58988         * tests/test-open.c: New file.
58989
58990         * modules/open: New file.
58991         * lib/open.c: New file.
58992         * m4/open.m4: New file.
58993         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58994         lib/open.c does.
58995         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58996         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58997         macros.
58998         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58999         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
59000         REPLACE_OPEN.
59001         * doc/functions/open.texi: Mention the 'open' module.
59002
59003 2007-10-04  Bruno Haible  <bruno@clisp.org>
59004
59005         * modules/ceill-tests: New file.
59006         * tests/test-ceill.c: New file.
59007
59008         * modules/ceill: New file.
59009         * lib/ceill.c: Replace entire file.
59010         * m4/ceill.m4: New file.
59011         * lib/math.in.h (ceill): Replace declaration.
59012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
59013         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
59014         * doc/functions/ceill.texi: Mention the 'ceill' module.
59015         * modules/mathl (Files): Remove lib/ceill.c.
59016         (Depends-on): Add ceill.
59017
59018 2007-10-04  Bruno Haible  <bruno@clisp.org>
59019
59020         * modules/ceilf-tests: New file.
59021         * tests/test-ceilf.c: New file.
59022
59023         * modules/ceilf: New file.
59024         * lib/ceil.c: New file.
59025         * lib/ceilf.c: New file.
59026         * m4/ceilf.m4: New file.
59027         * lib/math.in.h (ceilf): New declaration.
59028         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59029         HAVE_DECL_CEILF.
59030         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59031         HAVE_DECL_CEILF.
59032         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59033
59034 2007-10-04  Bruno Haible  <bruno@clisp.org>
59035
59036         * modules/floorl-tests: New file.
59037         * tests/test-floorl.c: New file.
59038
59039         * modules/floorl: New file.
59040         * lib/floorl.c: Replace entire file.
59041         * m4/floorl.m4: New file.
59042         * lib/math.in.h (floorl): Replace declaration.
59043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59044         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59045         * doc/functions/floorl.texi: Mention the 'floorl' module.
59046         * modules/mathl (Files): Remove lib/floorl.c.
59047         (Depends-on): Add floorl.
59048
59049 2007-10-04  Bruno Haible  <bruno@clisp.org>
59050
59051         * modules/floorf-tests: New file.
59052         * tests/test-floorf.c: New file.
59053
59054         * modules/floorf: New file.
59055         * lib/floor.c: New file.
59056         * lib/floorf.c: New file.
59057         * m4/floorf.m4: New file.
59058         * lib/math.in.h (floorf): New declaration.
59059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59060         HAVE_DECL_FLOORF.
59061         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59062         HAVE_DECL_FLOORF.
59063         * doc/functions/floorf.texi: Mention the 'floorf' module.
59064
59065 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59066             Bruno Haible  <bruno@clisp.org>
59067
59068         Advertise for the Git server instead of the CVS server.
59069         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59070         repository instead of the CVS one.
59071         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59072         about all VCS systems generically.
59073         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59074
59075 2007-10-04  Bruno Haible  <bruno@clisp.org>
59076
59077         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59078         means.
59079         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59080
59081 2007-10-04  Bruno Haible  <bruno@clisp.org>
59082
59083         * modules/truncl-tests: New file.
59084         * tests/test-truncl.c: New file.
59085
59086         * modules/truncl: New file.
59087         * lib/truncl.c: New file.
59088         * m4/truncl.m4: New file.
59089         * lib/math.in.h (truncl): New declaration.
59090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59091         HAVE_DECL_TRUNCL.
59092         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59093         HAVE_DECL_TRUNCL.
59094         * doc/functions/truncl.texi: Mention the 'truncl' module.
59095
59096 2007-10-04  Bruno Haible  <bruno@clisp.org>
59097
59098         * modules/truncf-tests: New file.
59099         * tests/test-truncf.c: New file.
59100
59101         * modules/truncf: New file.
59102         * lib/trunc.c: Make paramerizable through USE_* macros.
59103         * lib/truncf.c: New file.
59104         * m4/truncf.m4: New file.
59105         * lib/math.in.h (truncf): New declaration.
59106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59107         HAVE_DECL_TRUNCF.
59108         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59109         HAVE_DECL_TRUNCF.
59110         * doc/functions/truncf.texi: Mention the 'truncf' module.
59111
59112 2007-10-03  Bruno Haible  <bruno@clisp.org>
59113
59114         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59115         augmentation also for tests modules.
59116         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59117         * modules/atexit-tests (Makefile.am): Likewise.
59118         * modules/binary-io-tests (Makefile.am): Likewise.
59119         * modules/c-strcase-tests (Makefile.am): Likewise.
59120         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59121         * modules/canonicalize-tests (Makefile.am): Likewise.
59122         * modules/closein-tests (Makefile.am): Likewise.
59123         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59124         * modules/freadahead-tests (Makefile.am): Likewise.
59125         * modules/fseek-tests (Makefile.am): Likewise.
59126         * modules/fseeko-tests (Makefile.am): Likewise.
59127         * modules/ftell-tests (Makefile.am): Likewise.
59128         * modules/ftello-tests (Makefile.am): Likewise.
59129         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59130         * modules/isnanl-tests (Makefile.am): Likewise.
59131         * modules/lseek-tests (Makefile.am): Likewise.
59132         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59133         * modules/mbscasestr-tests (Makefile.am): Likewise.
59134         * modules/mbschr-tests (Makefile.am): Likewise.
59135         * modules/mbscspn-tests (Makefile.am): Likewise.
59136         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59137         * modules/mbspbrk-tests (Makefile.am): Likewise.
59138         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59139         * modules/mbsrchr-tests (Makefile.am): Likewise.
59140         * modules/mbsspn-tests (Makefile.am): Likewise.
59141         * modules/mbsstr-tests (Makefile.am): Likewise.
59142         * modules/printf-posix-tests (Makefile.am): Likewise.
59143         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59144         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59145         * modules/tsearch-tests (Makefile.am): Likewise.
59146         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59147         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59148         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59149         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59150         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59151         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59152         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59153         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59154         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59155         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59156         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59157         * modules/xstrtol-tests (Makefile.am): Likewise.
59158         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59159         * modules/yesno-tests (Makefile.am): Likewise.
59160
59161 2007-10-03  Bruno Haible  <bruno@clisp.org>
59162
59163         * modules/trunc-tests: New file.
59164         * tests/test-trunc.c: New file.
59165
59166         * modules/trunc: New file.
59167         * lib/trunc.c: New file.
59168         * m4/trunc.m4: New file.
59169         * lib/math.in.h (trunc): New declaration.
59170         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59171         HAVE_DECL_TRUNC.
59172         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59173         HAVE_DECL_TRUNC.
59174         * doc/functions/trunc.texi: Mention the 'trunc' module.
59175
59176 2007-10-03  Bruno Haible  <bruno@clisp.org>
59177
59178         * tests/test-fpending.c: New file, mostly copied
59179         from coreutils/lib/t-fpending.c.
59180         * modules/fpending-tests: New file.
59181
59182 2007-10-03  Bruno Haible  <bruno@clisp.org>
59183
59184         Port the stdio extensions to QNX (untested).
59185         * lib/fseterr.c (fseterr): Add support for QNX.
59186         * lib/fbufmode.c (fbufmode): Likewise.
59187         * lib/freadable.c (freadable): Likewise.
59188         * lib/fwritable.c (fwritable): Likewise.
59189         * lib/freading.c (freading): Likewise.
59190         * lib/fwriting.c (fwriting): Likewise.
59191         * lib/freadahead.c (freadahed): Likewise.
59192         * lib/fpurge.c (fpurge): Likewise.
59193         * lib/fseeko.c (rpl_fseeko): Likewise.
59194
59195 2007-10-03  Bruno Haible  <bruno@clisp.org>
59196             Jim Meyering  <jim@meyering.net>
59197             Eric Blake  <ebb9@byu.net>
59198
59199         * doc/relocatable.texi: Use @command instead of @program.
59200
59201 2007-10-02  Jim Meyering  <jim@meyering.net>
59202
59203         Perform one more "_.h" -> ".in.h" substitution.
59204         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59205         instead of unistd_.h here, too.
59206
59207 2007-10-01  Bruno Haible  <bruno@clisp.org>
59208
59209         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59210         Needed for the alloca-opt module.
59211
59212 2007-09-30  Bruno Haible  <bruno@clisp.org>
59213
59214         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59215         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59216         alloca_.h.
59217         * lib/argz.in.h: Renamed from lib/argz_.h.
59218         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59219         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59220         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59221         byteswap_.h.
59222         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59223         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59224         dirent_.h.
59225         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59226         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59227         fcntl_.h.
59228         * lib/float.in.h: Renamed from lib/float_.h.
59229         * modules/float (Files, Makefile.am): Use float.in.h instead of
59230         float_.h.
59231         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59232         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59233         fnmatch_.h.
59234         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59235         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59236         getopt_.h.
59237         * lib/glob.in.h: Renamed from lib/glob_.h.
59238         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59239         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59240         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59241         iconv_.h.
59242         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59243         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59244         inttypes_.h.
59245         * lib/locale.in.h: Renamed from lib/locale_.h.
59246         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59247         locale_.h.
59248         * lib/math.in.h: Renamed from lib/math_.h.
59249         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59250         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59251         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59252         of netinet_in_.h. Add dependency.
59253         * lib/poll.in.h: Renamed from lib/poll_.h.
59254         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59255         * lib/search.in.h: Renamed from lib/search_.h.
59256         * modules/search (Files, Makefile.am): Use search.in.h instead of
59257         search_.h.
59258         * lib/signal.in.h: Renamed from lib/signal_.h.
59259         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59260         _signal.h.
59261         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59262         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59263         stdbool_.h.
59264         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59265         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59266         stdint_.h.
59267         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59268         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59269         stdio_.h.
59270         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59271         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59272         stdlib_.h.
59273         * lib/string.in.h: Renamed from lib/string_.h.
59274         * modules/string (Files, Makefile.am): Use string.in.h instead of
59275         string_.h.
59276         * doc/gnulib-tool.texi (Initial import): Update.
59277         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59278         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59279         of sys_select_.h. Add dependency.
59280         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59281         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59282         of sys_socket_.h.
59283         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59284         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59285         sys_stat_.h.
59286         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59287         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59288         sys_time_.h.
59289         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59290         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59291         sysexits_.h.
59292         * lib/time.in.h: Renamed from lib/time_.h.
59293         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59294         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59295         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59296         unistd_.h.
59297         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59298         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59299         wchar_.h.
59300         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59301         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59302         wctype_.h.
59303         * build-aux/bootstrap (slurp): Update.
59304         * lib/.cppi-disable: Update.
59305
59306 2007-09-30  Bruno Haible  <bruno@clisp.org>
59307
59308         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59309         Needed on BeOS.
59310
59311 2007-09-30  Bruno Haible  <bruno@clisp.org>
59312
59313         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59314
59315 2007-09-29  Bruno Haible  <bruno@clisp.org>
59316
59317         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59318
59319 2007-09-29  Bruno Haible  <bruno@clisp.org>
59320
59321         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59322         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59323         * build-aux/install-reloc: Compile also areadlink.c.
59324         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59325
59326 2007-09-29  Bruno Haible  <bruno@clisp.org>
59327
59328         * gnulib-tool (func_emit_initmacro_done): Indentation.
59329
59330 2007-09-29  Bruno Haible  <bruno@clisp.org>
59331
59332         * README: Add CVS checkout update instructions.
59333         Info from Bob Proulx <bob@proulx.com>.
59334
59335 2007-09-28  Eric Blake  <ebb9@byu.net>
59336
59337         Provide move-if-change.
59338         * build-aux/move-if-change: New file, based on best practice
59339         rather than any canonical upstream location.
59340
59341 2007-09-28  Jim Meyering  <jim@meyering.net>
59342
59343         Fix canonicalize loop-detection corner case.
59344         Do not attempt to stat the symlink values stored via seen_triple.
59345         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59346         on linux-2.6.18, (but not 2.6.22).
59347         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59348         triple_compare.  The former compares dev,ino,filename, while the latter
59349         would actually stat dirname(filename) when dev and ino were equal.
59350         * lib/hash-triple.c: Install <string.h>.
59351         (STREQ): Define.
59352         (triple_compare_ino_str): New function.
59353         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59354
59355 2007-09-28  Eric Blake  <ebb9@byu.net>
59356
59357         Enforce that AC_REPLACE_FUNCS files exist.
59358         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59359         override check for typos.
59360
59361         Fix test-closein on Solaris 10.
59362         * tests/test-closein.c (main): Don't assume stdin can be inherited
59363         closed on all systems.
59364         * tests/test-closein.sh: Likewise.
59365         Reported by Piotr Tarnowski.
59366
59367 2007-09-28  Jim Meyering  <jim@meyering.net>
59368
59369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59370
59371 2007-09-27  Jim Meyering  <jim@meyering.net>
59372
59373         canonicalize: Avoid a false-positive cycle failure.
59374         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59375         Sort.  Remove cycle-check.
59376         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59377         not cycle-check.h.
59378         (seen_triple): New function.
59379         (canonicalize_filename_mode): Use it instead of cycle-check.
59380         * tests/test-canonicalize.c: Add a test for this bug.
59381         * tests/test-canonicalize.sh: Set up and run the test.
59382
59383         New module, file-set, from coreutils.
59384         * modules/file-set: Define it.
59385         * lib/file-set.c, lib/file-set.h: Implement.
59386
59387         New module, hash-triple, from coreutils.
59388         * modules/hash-triple: Define it.
59389         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59390
59391 2007-09-25  Eric Blake  <ebb9@byu.net>
59392
59393         Fix strerror on Interix.
59394         * lib/string_.h (strerror): Declare replacement.
59395         * doc/functions/strerror.texi (strerror): Document the Interix
59396         shortcoming.
59397         * modules/string (Makefile.am): Support new hooks.
59398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59399         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59400         gl_FUNC_STRERROR_SEPARATE.
59401         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59402         * lib/strerror.c (rpl_strerror): Provide replacement.
59403         * modules/strerror (Depends-on): Add string.
59404         (configure.ac): Detect use of module.
59405         * tests/test-strerror.c: New file.
59406         * modules/strerror-tests: New test module.
59407         * modules/argp (Depends-on): Add strerror.
59408         * modules/error (Depends-on): Likewise.
59409         Reported by Martin Koeppe.
59410
59411 2007-09-24  Bruno Haible  <bruno@clisp.org>
59412
59413         * README: Update git instructions.
59414
59415 2007-09-24  Eric Blake  <ebb9@byu.net>
59416
59417         Revert fpending breakage from 2007-09-08.
59418         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59419         __fpending.c.
59420
59421 2007-09-24  Jim Meyering  <jim@meyering.net>
59422
59423         filenamecat.c: Add a test.
59424         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59425         showing how the function works when DIR is the empty string.
59426
59427 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59428
59429         * tests/test-canonicalize.sh: Turn on executable bit.
59430
59431 2007-09-19  Eric Blake  <ebb9@byu.net>
59432
59433         * README: Update CVS instructions.
59434
59435 2007-09-18  Bruno Haible  <bruno@clisp.org>
59436
59437         * modules/areadlink: New file.
59438         * lib/areadlink.h (areadlink): New declaration.
59439         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59440
59441 2007-09-17  Jim Meyering  <jim@meyering.net>
59442
59443         * lib/savewd.c (ESTALE) [!defined]: Define.
59444         Reported to be required on Interix by Martin Koeppe.
59445
59446 2007-09-17  Bruno Haible  <bruno@clisp.org>
59447
59448         * gnulib-tool (func_version): Use $version.
59449
59450 2007-09-16  Bruno Haible  <bruno@clisp.org>
59451
59452         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59453         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59454         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59455         Reported by Greg Schafer <gschafer@zip.com.au>.
59456
59457 2007-09-15  Bruno Haible  <bruno@clisp.org>
59458
59459         * gnulib-tool (sed): Try a little harder to make bash understand the
59460         alias.
59461         Reported by Bruce Korb <bruce.korb@gmail.com>.
59462
59463 2007-09-13  Eric Blake  <ebb9@byu.net>
59464
59465         * ChangeLog: Remove conflict markers.
59466
59467 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59468
59469         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59470         Reported by Bruno Haible <bruno@clisp.org>.
59471
59472 2007-09-12  Bruno Haible  <bruno@clisp.org>
59473
59474         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59475         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59476         is not defined.
59477
59478 2007-09-12  Eric Blake  <ebb9@byu.net>
59479
59480         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59481         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59482         Autoconf definition.
59483         * modules/euidaccess (Depends-on): Add extensions, for
59484         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59485         * modules/fnmatch (Depends-on): Likewise.
59486         * modules/getaddrinfo (Depends-on): Likewise.
59487         * modules/getdelim (Depends-on): Likewise.
59488         * modules/getline (Depends-on): Likewise.
59489         * modules/getsubopt (Depends-on): Likewise.
59490         * modules/gettext (Depends-on): Likewise.
59491         * modules/group-member (Depends-on): Likewise.
59492         * modules/mbchar (Depends-on): Likewise.
59493         * modules/memmem (Depends-on): Likewise.
59494         * modules/mempcpy (Depends-on): Likewise.
59495         * modules/memrchr (Depends-on): Likewise.
59496         * modules/pagealign_alloc (Depends-on): Likewise.
59497         * modules/readutmp (Depends-on): Likewise.
59498         * modules/stpcpy (Depends-on): Likewise.
59499         * modules/stpncpy (Depends-on): Likewise.
59500         * modules/strchrnul (Depends-on): Likewise.
59501         * modules/strndup (Depends-on): Likewise.
59502         * modules/strsep (Depends-on): Likewise.
59503         * modules/strverscmp (Depends-on): Likewise.
59504         * modules/vasprintf (Depends-on): Likewise.
59505         * modules/wcwidth (Depends-on): Likewise.
59506         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59507         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59508         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59509         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59510         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59511         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59512         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59513         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59514         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59515         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59517         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59518         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59520         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59521         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59522         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59523         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59524         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59525         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59526         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59527         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59528         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59529         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59530         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59532         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59533         so that lock.m4 can be used in gettext without extensions module.
59534
59535 2007-09-11  Bruno Haible  <bruno@clisp.org>
59536
59537         * m4/isc-posix.m4: Remove file.
59538         Suggested by Eric Blake.
59539
59540 2007-09-11  Eric Blake  <ebb9@byu.net>
59541
59542         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59543
59544 2007-09-10  Bruno Haible  <bruno@clisp.org>
59545
59546         * posix-modules: Fix typo in error message.
59547         Reported by Matt <mkraai@beckman.com>.
59548
59549 2007-09-09  Bruno Haible  <bruno@clisp.org>
59550
59551         * doc/functions/getdelim.texi: Update list of platforms lacking the
59552         function.
59553         * doc/functions/getline.texi: Likewise.
59554
59555 2007-09-09  Jim Meyering  <jim@meyering.net>
59556
59557         * lib/hash.c (hash_initialize): Detect calloc failure.
59558         Reported by Bruno Haible.
59559
59560 2007-09-09  Bruno Haible  <bruno@clisp.org>
59561
59562         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59563         malloc or realloc fails.
59564
59565 2007-09-09  Bruno Haible  <bruno@clisp.org>
59566
59567         * modules/getcwd (Depends-on): Add malloc-posix.
59568         * modules/glob (Depends-on): Likewise.
59569         * modules/putenv (Depends-on): Likewise.
59570         * modules/strdup (Depends-on): Likewise.
59571         * modules/getdelim (Depends-on): Add realloc-posix.
59572         * modules/read-file (Depends-on): Likewise.
59573
59574 2007-09-09  Bruno Haible  <bruno@clisp.org>
59575
59576         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59577         (gl_FUNC_MALLOC_POSIX): Require it.
59578         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59579         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59580         * modules/realloc (Files): Add m4/malloc.m4.
59581         * modules/calloc (Files): Likewise.
59582
59583 2007-09-09  Bruno Haible  <bruno@clisp.org>
59584
59585         * modules/malloc-posix: New file.
59586         * modules/malloc (Depends-on): Add malloc-posix.
59587         * lib/malloc.c: Include errno.h.
59588         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59589         and a POSIX-compatible malloc into a single function. Set ENOMEM
59590         when returning NULL.
59591         * m4/malloc.m4: New file.
59592         * doc/functions/malloc.texi: Mention the malloc-posix module.
59593         * lib/stdlib_.h (malloc): New declaration.
59594         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59595         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59596         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59597         and HAVE_MALLOC_POSIX.
59598
59599 2007-09-09  Bruno Haible  <bruno@clisp.org>
59600
59601         * modules/realloc-posix: New file.
59602         * modules/realloc (Depends-on): Add realloc-posix.
59603         * lib/realloc.c: Include errno.h.
59604         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59605         and a POSIX-compatible realloc into a single function. Set ENOMEM
59606         when returning NULL.
59607         * m4/realloc.m4: New file.
59608         * doc/functions/realloc.texi: Mention the realloc-posix module.
59609         * lib/stdlib_.h (realloc): New declaration.
59610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59611         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59612         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59613         and HAVE_REALLOC_POSIX.
59614
59615 2007-09-09  Bruno Haible  <bruno@clisp.org>
59616
59617         * modules/calloc-posix: New file.
59618         * modules/calloc (Depends-on): Add calloc-posix.
59619         * lib/calloc.c: Include errno.h.
59620         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59621         and a POSIX-compatible calloc into a single function. Set ENOMEM
59622         when returning NULL.
59623         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59624         * doc/functions/calloc.texi: Mention the calloc-posix module.
59625         * lib/stdlib_.h (calloc): New declaration.
59626         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59627         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59628         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59629         and HAVE_CALLOC_POSIX.
59630
59631 2007-09-09  Bruno Haible  <bruno@clisp.org>
59632
59633         Allow for modules to show an arbitrary notice.
59634         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59635         * gnulib-tool: New option --extract-notice.
59636         (func_usage): Document it.
59637         (sed_extract_prog): Update.
59638         (func_get_notice): New function.
59639         (func_modules_notice): New function.
59640         (func_import, func_create_testdir): Invoke it.
59641         Suggested by Jim Meyering.
59642
59643 2007-09-09  Bruno Haible  <bruno@clisp.org>
59644
59645         * gnulib-tool: New options --verbose, --quiet.
59646         (func_usage): Document them.
59647         (verbose): New variable.
59648         (func_execute_command): New function.
59649         (func_import): Don't show the module list and the file list if
59650         $verbose < 0.
59651         (func_create_testdir): Likewise. Use func_execute_command.
59652         (func_create_megatestdir): Use func_execute_command.
59653
59654 2007-09-08  Bruno Haible  <bruno@clisp.org>
59655
59656         * gnulib-tool (func_import): Prefer rsync over wget when available,
59657         for fetching the PO files.
59658
59659 2007-09-08  Bruno Haible  <bruno@clisp.org>
59660
59661         * posix-modules: New file. Portions copied from gnulib-tool.
59662         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59663
59664 2007-09-08  Jim Meyering  <jim@meyering.net>
59665
59666         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59667         * lib/fpending.h: Rename from __fpending.h.
59668         * lib/fpending.c: Rename from __fpending.c.
59669         Include "fpending.h", not "__fpending.h".
59670         * lib/__fpending.h, lib/__fpending.c: Remove files.
59671         * modules/fpending (Files): Reflect new file names.
59672         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59673
59674 2007-09-08  Bruno Haible  <bruno@clisp.org>
59675
59676         * m4/inttypes-h.m4: Remove stub file.
59677
59678 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59679
59680         * doc/headers/stdint.texi: Discuss #include_next issue.
59681
59682 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59683
59684         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59685
59686 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59687
59688         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59689         in variable name.
59690
59691 2007-09-03  Jim Meyering  <jim@meyering.net>
59692
59693         New module: git-version-gen.
59694         * modules/git-version-gen: New file.
59695
59696         Import changes from coreutils for bootstrap script.
59697
59698         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59699
59700         bootstrap: uses rsync to download the .po files
59701         * build-aux/bootstrap (po_download_command_format): New global.
59702         (download_po_files): Use rsync.
59703         (update_po_files): Don't remove .po files after download,
59704         so future rsync runs can take advantage of the copies.
59705
59706         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59707
59708         Solve the unnecessary-.po-file-regeneration problem once and for all.
59709         * build-aux/bootstrap (download_po_files): New function, renamed from
59710         get_translations.  Now, downloads, but doesn't update LINGUAS.
59711         (update_po_files): New function.
59712
59713         bootstrap: Ignore more.
59714         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59715         uniwidth to e.g., lib/.gitignore.
59716         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59717
59718         * build-aux/bootstrap: New setting: vc_ignore.
59719         (insert_sorted_if_absent): Create $file if absent.
59720         Adapt to new, possibly empty, list: $vc_ignore.
59721
59722         bootstrap: generate more ignorable names
59723         * build-aux/bootstrap (slurp): When generating ignorable names,
59724         also map .sin to .sed, .gperf to .c, and .y to .c.
59725
59726 2007-09-03  Jim Meyering  <jim@meyering.net>
59727
59728         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59729         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59730
59731 2007-09-02  Bruno Haible  <bruno@clisp.org>
59732
59733         Fix mis-recognition of 'mcs' on QNX 6.
59734         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59735         output contains the string "Mono".
59736         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59737         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59738
59739 2007-09-01  Bruno Haible  <bruno@clisp.org>
59740
59741         Fix collision between uniwidth/* and linebreak modules.
59742         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59743         u32_width): Remove declarations.
59744         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59745         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59746         streq3, streq2, streq1, streq0): Remove functions.
59747         (STREQ): Remove macro.
59748         (is_cjk_encoding): Remove function.
59749         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59750         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59751         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59752         * NEWS: Document the change.
59753
59754 2007-09-01  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/streq.h: Add double-inclusion guard.
59757
59758 2007-09-01  Karl Berry  <karl@gnu.org>
59759
59760         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59761
59762 2007-08-28  Jim Meyering  <jim@meyering.net>
59763
59764         Rename mreadlink_with_size to areadlink_with_size.
59765         * NEWS: Document the change.
59766         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59767         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59768         * lib/mreadlink.h: Rename this to...
59769         * lib/areadlink.h: ...this.
59770         * modules/mreadlink-with-size: Rename this to...
59771         * modules/areadlink-with-size: ...this.
59772         * lib/canonicalize.c: Reflect the renaming.
59773         * modules/canonicalize: Likewise.
59774
59775 2007-08-26  Bruno Haible  <bruno@clisp.org>
59776
59777         * gnulib-tool (func_import): When deciding which files to remove,
59778         consider also dangling symbolic links.
59779         Reported by Eric Blake.
59780
59781 2007-08-26  Bruno Haible  <bruno@clisp.org>
59782
59783         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59784
59785 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59786
59787         * lib/readline.c: Don't include getline.h, the prototype is now
59788         found in stdio.h.
59789
59790 2007-08-23  Jim Meyering  <jim@meyering.net>
59791
59792         Getdelim touchup.
59793         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59794         around the funlockfile call, since funlockfile never sets errno.
59795         Don't set errno upon failed realloc.
59796
59797 2007-08-22  Eric Blake  <ebb9@byu.net>
59798
59799         Getline touchups.
59800         * lib/getdelim.c (getdelim): Revert regression that required *n to
59801         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59802         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59803         getdelim, rather than whether implementation is missing.
59804         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59805         * lib/stdio_.h (getline): Also declare if replacement is
59806         required.
59807         * doc/functions/getdelim.texi: New file.
59808         * doc/functions/getline.texi: Likewise.
59809         * doc/gnulib.texi (Function Substitutes): Add new files.
59810         Reported by Bruno Haible.
59811
59812 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59813
59814         * users.txt: Add Guile.
59815
59816 2007-08-22  Eric Blake  <ebb9@byu.net>
59817
59818         * tests/test-getdelim.c (main): Use remove, not unlink.
59819         * tests/test-getline.c (main): Likewise.
59820
59821         Move getline and getdelim into stdio.h, per POSIX 200x.
59822         * modules/getline (Files): Remove getline.h.
59823         (Depends-on): Add stdio.
59824         (configure.ac): Add module indicator.
59825         * modules/getdelim (Files): Remove getdelim.h.
59826         (Depends-on): Add stdio.
59827         (configure.ac): Add module indicator.
59828         * modules/stdio (Makefile.am): Work with new indicators.
59829         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59830         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59831         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59832         * lib/getdelim.h: Delete.
59833         * lib/getline.h: Delete.
59834         * lib/stdio_.h (getdelim, getline): Declare.
59835         * modules/getdelim-tests: New module.
59836         * modules/getline-tests: Likewise.
59837         * tests/test-getdelim.c: New file.
59838         * tests/test-getline.c: Likewise.
59839         * NEWS: Document the change.
59840         * lib/getline.c: Update choice of header.
59841         * lib/csharpcomp.c: Likewise.
59842         * lib/getpass.c: Likewise.
59843         * lib/javacomp.c: Likewise.
59844         * lib/javaversion.c: Likewise.
59845         * lib/yesno.c: Likewise.
59846         * lib/getdelim.c: Likewise.
59847         (getdelim): Set errno on failure, and avoid memory leak.
59848
59849 2007-08-19  Bruno Haible  <bruno@clisp.org>
59850
59851         * modules/closein (Depends-on): Add freadahead.
59852         * lib/closein.c: Include freadahead.h.
59853         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59854         is zero.
59855
59856 2007-08-19  Bruno Haible  <bruno@clisp.org>
59857
59858         * modules/freadahead-tests: New file.
59859         * tests/test-freadahead.sh: New file.
59860         * tests/test-freadahead.c: New file.
59861
59862         * modules/freadahead: New file.
59863         * lib/freadahead.h: New file.
59864         * lib/freadahead.c: New file.
59865         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59866         fbufmode, fpurge, freadable, fwritable.
59867
59868 2007-08-19  Eric Blake  <ebb9@byu.net>
59869
59870         Test yesno in combination with closein.
59871         * lib/yesno.c (yesno): Document use of stdin.
59872         * modules/yesno-tests (Files): New module.
59873         * tests/test-yesno.c (main): New file.
59874         * tests/test-yesno.sh: Likewise.
59875
59876 2007-08-19  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59879         * lib/fseeko.c (rpl_fseeko): Likewise.
59880         * lib/fseterr.c (fseterr): Likewise.
59881
59882 2007-08-19  Bruno Haible  <bruno@clisp.org>
59883
59884         * tests/test-lseek.c (main): Disable a test for BeOS.
59885         * doc/functions/lseek.texi: Document the BeOS bug.
59886
59887 2007-08-19  Bruno Haible  <bruno@clisp.org>
59888             Eric Blake  <ebb9@byu.net>
59889
59890         * lib/lseek.c: Include <sys/stat.h>.
59891         (rpl_lseek): Add workaround code also for Unix platforms.
59892         Needed for BeOS.
59893         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59894         * doc/functions/lseek.texi: Document BeOS definiency.
59895
59896 2007-08-18  Bruno Haible  <bruno@clisp.org>
59897
59898         * modules/fstrcmp-tests: New file.
59899         * tests/test-fstrcmp.c: New file.
59900
59901 2007-08-18  Bruno Haible  <bruno@clisp.org>
59902
59903         * modules/fstrcmp: New file, from GNU gettext with modifications.
59904         * lib/fstrcmp.h: New file, from GNU gettext.
59905         * lib/fstrcmp.c: New file, from GNU gettext.
59906         * MODULES.html.sh (String handling): Add fstrcmp.
59907
59908 2007-08-18  Bruno Haible  <bruno@clisp.org>
59909
59910         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59911         'bool'.
59912         (diag, compareseq): Remove const from the ctxt argument.
59913         (USE_HEURISTIC): Undefine at the end.
59914
59915 2007-08-18  Jim Meyering  <jim@meyering.net>
59916
59917         New file: lib/idcache.h
59918         * NEWS: Mention the addition.
59919         * modules/idcache (Files): Add lib/idcache.h
59920         * lib/idcache.c: Include "idcache.h".
59921         Don't include <sys/types.h>.
59922         Add a FIXME comment.
59923         Move file-scoped "static" declarations to the top.
59924         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59925
59926 2007-08-17  Bruno Haible  <bruno@clisp.org>
59927         and Paul Eggert  <eggert@cs.ucla.edu>
59928
59929         * MODULES.html.sh: Add diffseq.
59930         * modules/diffseq: New file.
59931         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59932         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59933
59934 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59935
59936         Import changes from coreutils for bootstrap script.
59937
59938         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59939
59940         * build-aux/bootstrap (slurp): Work even in environments where
59941         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59942         current code does not slurp files whose names start with ".", and
59943         this looks like it might be a troublesome area.
59944
59945         2007-07-11  Jim Meyering  <jim@meyering.net>
59946
59947         If there's a GPL vN copyright comment, require that N == 3.
59948
59949         2007-07-08  Jim Meyering  <jim@meyering.net>
59950
59951         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59952         * build-aux/bootstrap (mam_template): Move definition out of loop.
59953
59954         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59955
59956         * build-aux/bootstrap (symlink_to_dir): Rename function from
59957         symlink_to_gnulib.  Add a directory parameter.  Update all
59958         callers.
59959         (cp_mark_as_generated): Also check for -- and link to -- files in
59960         gl/.
59961
59962         2007-07-08  Jim Meyering  <jim@meyering.net>
59963
59964         Adapt to deeper hierarchy in gnulib.
59965         * build-aux/bootstrap (symlink_to_dir): If the destination
59966         directory doesn't exist, create it. This is required at least for
59967         "lib/uniwidth/cjk.h".
59968
59969         2007-05-15  Jim Meyering  <jim@meyering.net>
59970
59971         * build-aux/bootstrap: Now that generated Makefile.am files
59972         are no longer under version control, they must be created at
59973         bootstrap time.
59974
59975 2007-08-14  Ben Pfaff  <blp@gnu.org>
59976
59977         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59978
59979 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59980
59981         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59982         given the changes below.
59983         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59984         even on hosts that have padding bits beyond the supported 64.
59985
59986 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59987
59988         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59989         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59990         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59991         depends on it.
59992         (xstrtol_error): Remove.
59993         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59994         but with a different signature.
59995         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59996         * lib/xstrtol-error.c: Include exitfail.h.
59997         (xstrtol_fatal): New function, with a different signature from the
59998         old xstrtol_error, so that the caller need not worry about passing
59999         in an exit status, or about storage management of the option argument.
60000         (xstrtol_error): Now a static function.  Redo signature to
60001         implement xstrtol_fatal.  Output the correct number of hyphens in
60002         front of the option so that the caller need not worry about
60003         storage management.
60004         (N_): New macro.
60005         (_): Remove; not used now.
60006         * modules/xstrtol: Depend on getopt.
60007         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
60008         of old STRTOL_FATAL_ERROR macro.
60009         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
60010         of test program.
60011         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
60012         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
60013
60014 2007-08-08  Eric Blake  <ebb9@byu.net>
60015
60016         * lib/xstrtol-error.c: Add missing include.
60017
60018         Move xstrtol messages into gnulib domain, when --pobase is used.
60019         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60020         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60021         * modules/xstrtol (Files): Distribute new file.
60022         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60023         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60024         * tests/test-xstrtol.c: ...into new file.
60025         * tests/test-xstrtoul.c: Also test xstrtoul.
60026         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60027         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60028         * tests/test-xstrtol.sh: Drive the tests.
60029         * tests/test-xstrtoimax.sh: Likewise.
60030         * tests/test-xstrtoumax.sh: Likewise.
60031         * modules/xstrtol-tests: New module.
60032         * modules/xstrtoimax-tests: Likewise.
60033         * modules/xstrtoumax-tests: Likewise.
60034
60035 2007-08-08  Jim Meyering  <jim@meyering.net>
60036
60037         New function: mfile_name_concat.
60038         * lib/filenamecat.c (mfile_name_concat): New function, just like
60039         file_name_concat, but return NULL upon failure rather than exiting
60040         with a diagnostic.
60041         * lib/filenamecat.h: Declare it.
60042
60043 2007-08-07  Bruno Haible  <bruno@clisp.org>
60044
60045         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60046         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60047         warning from gcc.
60048         Reported by Eric Blake.
60049
60050 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60051
60052         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60053         * modules/crypto/arcfour (License): Likewise.
60054         * modules/crypto/des-tests (License): Likewise.
60055         * modules/crypto/gc-arctwo-tests (License): Likewise.
60056         * modules/crypto/gc-des-tests (License): Likewise.
60057         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60058         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60059         * modules/crypto/gc-md2-tests (License): Likewise.
60060         * modules/crypto/gc-md4-tests (License): Likewise.
60061         * modules/crypto/gc-md5-tests (License): Likewise.
60062         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60063         * modules/crypto/gc-rijndael-tests (License): Likewise.
60064         * modules/crypto/gc-sha1-tests (License): Likewise.
60065         * modules/crypto/gc-tests (License): Likewise.
60066         * modules/crypto/hmac-md5 (License): Likewise.
60067         * modules/crypto/hmac-sha1 (License): Likewise.
60068         * modules/crypto/md2-tests (License): Likewise.
60069         * modules/crypto/md4-tests (License): Likewise.
60070         * modules/crypto/md5 (License): Likewise.
60071         * modules/crypto/rijndael (License): Likewise.
60072         * modules/crypto/sha1 (License): Likewise.
60073         * modules/memxor (License): Likewise.
60074
60075 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60076         and Bruno Haible  <bruno@clisp.org>
60077
60078         * NEWS: Describe interface changes to human, xstrtol.
60079         * lib/human.h: Include <xstrtol.h>.
60080         (human_options): Return enum strtol_error, not int.  Remove
60081         bool arg; take int * instead.
60082         * lib/human.c: Don't include "gettext.h".
60083         (_): Remove; no longer used.
60084         Don't include <xstrtol.h>, since human.h does it.
60085         (human_options): Adjust to abovementioned interface changes.
60086         Do not report error to stderr; that's now the caller's
60087         responsibility.
60088         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60089         interface change.
60090         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60091         Str, Argument_type_string.  All uses changed.  Put " argument"
60092         in diagnostics to make them clearer.  Change wording of suffix
60093         message for clarity.
60094         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60095         Argument_type_string.
60096         (STRTOL_FATAL_WARN): Remove; no longer used.
60097         * modules/human (Depends-on): Remove gettext-h.
60098
60099 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60100
60101         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60102
60103 2007-07-31  Bruno Haible  <bruno@clisp.org>
60104
60105         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60106         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60107         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60108
60109 2007-07-31  Bruno Haible  <bruno@clisp.org>
60110
60111         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60112         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60113
60114 2007-07-30  Bruno Haible  <bruno@clisp.org>
60115
60116         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60117         * modules/c-ctype (License): Likewise.
60118         * modules/c-strcase (License): Likewise.
60119         * modules/check-version (License): Likewise.
60120         * modules/iconv (License): Likewise.
60121         * modules/iconv_open (License): Likewise.
60122         * modules/read-file (License): Likewise.
60123         * modules/striconv (License): Likewise.
60124         * modules/strverscmp (License): Likewise.
60125         * modules/vasprintf (License): Likewise.
60126         * modules/crypto/des (License): Likewise.
60127         * modules/crypto/gc (License): Likewise.
60128         * modules/crypto/gc-arcfour (License): Likewise.
60129         * modules/crypto/gc-arctwo (License): Likewise.
60130         * modules/crypto/gc-des (License): Likewise.
60131         * modules/crypto/gc-hmac-md5 (License): Likewise.
60132         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60133         * modules/crypto/gc-md2 (License): Likewise.
60134         * modules/crypto/gc-md4 (License): Likewise.
60135         * modules/crypto/gc-md5 (License): Likewise.
60136         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60137         * modules/crypto/gc-random (License): Likewise.
60138         * modules/crypto/gc-rijndael (License): Likewise.
60139         * modules/crypto/gc-sha1 (License): Likewise.
60140         * modules/crypto/md2 (License): Likewise.
60141         * modules/crypto/md4 (License): Likewise.
60142
60143 2007-07-30  Jim Meyering  <jim@meyering.net>
60144
60145         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60146         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60147         it has valid stat data.  This bug would cause du not to count the
60148         sizes of inaccessible directories.
60149         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60150         in <http://bugzilla.redhat.com/250077>.
60151
60152 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60153             Bruno Haible  <bruno@clisp.org>
60154
60155         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60156         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60157         #include_next, gives a diagnostic about it, but reports no error in
60158         the exit code.
60159         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60160
60161 2007-07-24  Ben Pfaff  <blp@gnu.org>
60162
60163         Improve name: "count-one-bits" is better than "popcount".
60164         * MODULES.html.sh: Update name.
60165         * lib/popcount.h: Renamed lib/count-one-bits.h.
60166         (popcount): Renamed count_one_bits.
60167         (popcountl): Renamed count_one_bits_l.
60168         (popcountll): Renamed count_one_bits_ll.
60169         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60170         * modules/popcount: Renamed module/count-one-bits.
60171         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60172         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60173
60174 2007-07-23  Ben Pfaff  <blp@gnu.org>
60175
60176         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60177         better code generation, and add U to large constants to avoid
60178         warnings, in non-GCC case.
60179         Suggested by Bruno Haible.
60180
60181 2007-07-23  Ben Pfaff  <blp@gnu.org>
60182
60183         * lib/popcount.h: Use verify_true instead of if...abort.
60184         * modules/popcount: Depend on verify module.
60185         Suggested by Jim Meyering.
60186
60187 2007-07-23  Bruno Haible  <bruno@clisp.org>
60188
60189         * gnulib-tool (func_import): Create a .cvsignore file also when the
60190         directory is not yet in CVS but the toplevel directory is. When
60191         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60192         Reported by Karl Berry.
60193
60194 2007-07-22  Ben Pfaff  <blp@gnu.org>
60195
60196         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60197         case.
60198         Suggested by Eric Blake.
60199
60200 2007-07-22  Ben Pfaff  <blp@gnu.org>
60201
60202         New module: popcount.
60203         * MODULES.html.sh: Add popcount.
60204         * modules/popcount: New file.
60205         * modules/popcount-tests: New file.
60206         * tests/test-popcount.c: New file.
60207         * lib/popcount.h: New file.
60208         * m4/popcount.m4: New file.
60209
60210 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60211
60212         * build-aux/announce-gen: Update to GPLv3.
60213
60214         * build-aux/config.guess: Update from config.
60215
60216 2007-07-21  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60219         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60220
60221 2007-07-20  Jim Meyering  <jim@meyering.net>
60222
60223         * check-module: Diagnose a self-dependency.
60224
60225 2007-07-19  Bruno Haible  <bruno@clisp.org>
60226
60227         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60228         empty.
60229         Reported by Eric Blake.
60230
60231 2007-07-18  Bruno Haible  <bruno@clisp.org>
60232
60233         * gnulib-tool: New options --po-base, --po-domain.
60234         (func_usage): Document them.
60235         (pobase, po_domain): New variables.
60236         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60237         DEFAULT_TEXT_DOMAIN.
60238         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60239         (func_import): Consider pobase and po_domain. Create a po/ directory.
60240         (func_create_testdir): Set pobase and po_domain to empty.
60241         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60242         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60243
60244 2007-07-18  Bruno Haible  <bruno@clisp.org>
60245
60246         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60247         EXTRA_DIST augmentation for files in build-aux/.
60248
60249 2007-07-16  Bruno Haible  <bruno@clisp.org>
60250
60251         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60252         * modules/getdelim (License): Likewise.
60253
60254 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60255
60256         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60257         * modules/d-type (License): Likewise.
60258         * modules/extensions (License): Likewise.
60259         * modules/fnmatch (License): Likewise.
60260         * modules/fseeko (License): Likewise.
60261         * modules/getaddrinfo (License): Likewise.
60262         * modules/getline (License): Likewise.
60263         * modules/getlogin_r (License): Likewise.
60264         * modules/getpass (License): Likewise.
60265         * modules/gettimeofday (License): Likewise.
60266         * modules/glob (License): Likewise.
60267         * modules/inet_ntop (License): Likewise.
60268         * modules/malloc (License): Likewise.
60269         * modules/malloca (License): Likewise.
60270         * modules/memmem (License): Likewise.
60271         * modules/mempcpy (License): Likewise.
60272         * modules/memset (License): Likewise.
60273         * modules/minmax (License): Likewise.
60274         * modules/mktime (License): Likewise.
60275         * modules/netinet_in (License): Likewise.
60276         * modules/pathmax (License): Likewise.
60277         * modules/poll (License): Likewise.
60278         * modules/regex (License): Likewise.
60279         * modules/snprintf (License): Likewise.
60280         * modules/stdbool (License): Likewise.
60281         * modules/stdint (License): Likewise.
60282         * modules/stdio (License): Likewise.
60283         * modules/strcase (License): Likewise.
60284         * modules/strcasestr (License): Likewise.
60285         * modules/strdup (License): Likewise.
60286         * modules/string (License): Likewise.
60287         * modules/strndup (License): Likewise.
60288         * modules/strnlen (License): Likewise.
60289         * modules/strpbrk (License): Likewise.
60290         * modules/strptime (License): Likewise.
60291         * modules/strsep (License): Likewise.
60292         * modules/sys_select (License): Likewise.
60293         * modules/sys_socket (License): Likewise.
60294         * modules/sys_stat (License): Likewise.
60295         * modules/sys_time (License): Likewise.
60296         * modules/time (License): Likewise.
60297         * modules/time_r (License): Likewise.
60298         * modules/timegm (License): Likewise.
60299         * modules/unistd (License): Likewise.
60300         * modules/vsnprintf (License): Likewise.
60301         * modules/wctype (License): Likewise.
60302
60303 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60304
60305         * modules/argz (License): LGPLv2+.
60306
60307 2007-07-15  Karl Berry  <karl@gnu.org>
60308
60309         * doc/gnulib.texi: revise node structure per new fdl.texi.
60310
60311 2007-07-14  Bruno Haible  <bruno@clisp.org>
60312
60313         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60314         the output file.
60315         * lib/uniname/uninames.h: Regenerated.
60316
60317 2007-07-14  Karl Berry  <karl@gnu.org>
60318
60319         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60320         omitting sectioning and index commands.
60321
60322 2007-07-13  Bruno Haible  <bruno@clisp.org>
60323
60324         New gnulib-tool option --more-symlinks.
60325         * gnulib-tool (func_usage): Document --more-symlinks.
60326         (do_copyrights): New variable.
60327         Recognize option --more-symlinks.
60328         (func_import): Don't add a copyright notice transform to
60329         sed_transform_lib_file if do_copyrights is empty.
60330
60331 2007-07-13  Bruno Haible  <bruno@clisp.org>
60332
60333         * lib/vasnprintf.c (decimal_point_char): Define also if
60334         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60335         && !NEED_PRINTF_DIRECTIVE_A.
60336         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60337         Gary V. Vaughan <gary@gnu.org>.
60338
60339 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60340
60341         * lib/inttypes_.h: Undo previous change, since it was fixed
60342         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60343
60344 2007-07-13  Bruno Haible  <bruno@clisp.org>
60345
60346         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60347         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60348
60349 2007-07-13  Jim Meyering  <jim@meyering.net>
60350
60351         df: Don't fail for Tru64's "file-on-file mount".
60352         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60353         so we fall through and use statfs instead.  Details here:
60354         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60355         Reported by Albert Chin.
60356
60357 2007-07-13  Bruno Haible  <bruno@clisp.org>
60358
60359         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60360         * modules/configmake (License): Likewise.
60361         * modules/gettext (License): Likewise.
60362         * modules/gettext-h (License): Likewise.
60363         * modules/include_next (License): Likewise.
60364         * modules/link-warning (License): Likewise.
60365         * modules/localcharset (License): Likewise.
60366         * modules/localename (License): Likewise.
60367         * modules/lock (License): Likewise.
60368         * modules/relocatable-lib-lgpl (License): Likewise.
60369         * modules/size_max (License): Likewise.
60370         * modules/vasnprintf (License): Likewise.
60371         * modules/wchar (License): Likewise.
60372         * modules/xsize (License): Likewise.
60373
60374 2007-07-13  Bruno Haible  <bruno@clisp.org>
60375
60376         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60377         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60378
60379 2007-07-12  Bruno Haible  <bruno@clisp.org>
60380
60381         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60382         in the modules files.
60383
60384 2007-07-11  Karl Berry  <karl@gnu.org>
60385
60386         * MODULES.html.sh (func_module): use
60387          sed -e '\|^'"${includefile}"'$|d'
60388          instead of /.../d, to avoid errors on $includefile's containing /.
60389
60390 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60391
60392         * gnulib-tool (func_import): Avoid duplication of --avoid
60393         statements
60394         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60395         names to `_' in variable names.
60396
60397 2007-07-10  Eric Blake  <ebb9@byu.net>
60398
60399         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60400         * NEWS: Document this change.
60401
60402 2007-07-08  Bruno Haible  <bruno@clisp.org>
60403
60404         Update to Unicode 5.0.
60405         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60406         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60407         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60408         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60409         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60410         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60411         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60412         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60413         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60414         U+10A3F, U+1D242..U+1D244.
60415         (nonspacing_table_ind): Update.
60416         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60417         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60418
60419 2007-07-08  Bruno Haible  <bruno@clisp.org>
60420
60421         Update to Unicode 5.0.
60422         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60423         code transform. Extend the name index field of unicode_name_to_code and
60424         unicode_code_to_name from 16 to 24 bits.
60425         * lib/uniname/uniname.c (unicode_character_name,
60426         unicode_name_character): Add the range 0x12xxx to the code transform.
60427         * lib/uniname/uninames.h: Regenerated.
60428         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60429
60430 2007-07-07  Bruno Haible  <bruno@clisp.org>
60431
60432         * modules/wcwidth-tests: New file.
60433         * tests/test-wcwidth.c: New file.
60434
60435         Work around MacOS X wcwidth() bug.
60436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60437         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60438         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60439         original wcwidth in non-UTF-8 locales.
60440         * modules/wcwidth (Depends-on): Add localcharset, streq,
60441         uniwidth/width.
60442         * doc/functions/wcwidth.texi: Update.
60443
60444 2007-07-07  Bruno Haible  <bruno@clisp.org>
60445
60446         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60447         (wcwidth): New declaration.
60448         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60449         macros.
60450         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60451         here. Prepare for creating <wchar.h> unconditionally.
60452         * modules/wchar (Depends-on): Add link-warning.
60453         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60454         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60455         * lib/wcwidth.h: Remove file.
60456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60457         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60458         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60459         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60460         (Include): Replace wcwidth.h with <wchar.h>.
60461         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60462         * lib/mbchar.h: Don't include wcwidth.h.
60463         * lib/mbswidth.c: Likewise.
60464         * NEWS: Mention the change.
60465
60466 2007-07-07  Bruno Haible  <bruno@clisp.org>
60467
60468         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60469         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60470         definition with an external declaration.
60471         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60472         defined as a function. Remove AC_C_INLINE requirement.
60473         * modules/wcwidth (Files): Add lib/wcwidth.c.
60474         (Makefile.am): Remove redundant statement.
60475
60476 2007-07-07  Bruno Haible  <bruno@clisp.org>
60477
60478         * MODULES.html.sh (Unicode string functions): Add the new modules.
60479
60480         * tests/uniwidth/test-u32-strwidth.c: New file.
60481         * modules/uniwidth/u32-strwidth-tests: New file.
60482
60483         * lib/uniwidth/u32-strwidth.c: New file.
60484         * modules/uniwidth/u32-strwidth: New file.
60485
60486         * tests/uniwidth/test-u16-strwidth.c: New file.
60487         * modules/uniwidth/u16-strwidth-tests: New file.
60488
60489         * lib/uniwidth/u16-strwidth.c: New file.
60490         * modules/uniwidth/u16-strwidth: New file.
60491
60492         * tests/uniwidth/test-u8-strwidth.c: New file.
60493         * modules/uniwidth/u8-strwidth-tests: New file.
60494
60495         * lib/uniwidth/u8-strwidth.c: New file.
60496         * modules/uniwidth/u8-strwidth: New file.
60497
60498         * tests/uniwidth/test-u32-width.c: New file.
60499         * modules/uniwidth/u32-width-tests: New file.
60500
60501         * lib/uniwidth/u32-width.c: New file.
60502         * modules/uniwidth/u32-width: New file.
60503
60504         * tests/uniwidth/test-u16-width.c: New file.
60505         * modules/uniwidth/u16-width-tests: New file.
60506
60507         * lib/uniwidth/u16-width.c: New file.
60508         * modules/uniwidth/u16-width: New file.
60509
60510         * tests/uniwidth/test-u8-width.c: New file.
60511         * modules/uniwidth/u8-width-tests: New file.
60512
60513         * lib/uniwidth/u8-width.c: New file.
60514         * modules/uniwidth/u8-width: New file.
60515
60516         * tests/uniwidth/test-uc_width.c: New file.
60517         * modules/uniwidth/width-tests: New file.
60518
60519         * lib/uniwidth/width.c: New file, from GNU libiconv.
60520         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60521         * modules/uniwidth/width: New file.
60522
60523         * lib/uniwidth.h: New file, from GNU libiconv.
60524         * modules/uniwidth/base: New file.
60525
60526 2007-07-07  Bruno Haible  <bruno@clisp.org>
60527
60528         * lib/uniname.h: New file, from GNU gettext.
60529         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60530         * lib/uniname/uninames.h: New file, from GNU gettext.
60531         * lib/uniname/uniname.c: New file, from GNU gettext.
60532         * tests/uniname/test-uninames.sh: New file.
60533         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60534         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60535         * modules/uniname/base: New file.
60536         * modules/uniname/uniname: New file.
60537         * modules/uniname/uniname-tests: New file.
60538         * MODULES.html.sh (Unicode string functions): Add the new modules.
60539
60540 2007-07-06  Bruno Haible  <bruno@clisp.org>
60541
60542         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60543
60544 2007-07-06  Bruno Haible  <bruno@clisp.org>
60545
60546         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60547         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60548         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60549         include <sys/time.h>.
60550         Reported by Eric Blake.
60551
60552 2007-07-06  Eric Blake  <ebb9@byu.net>
60553
60554         Fix testing canonicalize on cygwin.
60555         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60556         Revert patch from 2007-06-19.
60557         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60558         canonicalize module is also in use.
60559         * tests/test-canonicalize.c: New file.
60560         * tests/test-canonicalize.sh: Likewise.
60561         * modules/canonicalize-tests: Likewise.
60562
60563 2007-07-06  Jim Meyering  <jim@meyering.net>
60564
60565         * lib/getugroups.c (getugroups): Detect getgrent failure.
60566         Adjust comment to reflect reality: this function may return -1.
60567
60568 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60569
60570         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60571         the new TP address.
60572         (usage): Fix typo
60573         (gnulib_mk): New variable.
60574
60575 2007-07-05  Jim Meyering  <jim@meyering.net>
60576
60577         Don't let endgrent clobber errno, no matter how improbable.
60578         * lib/getugroups.c (getugroups): Save and restore errno around
60579         endgrent call.
60580
60581         Close the group DB even when failing with 2^31 or more members.
60582         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60583
60584 2007-07-04  Jim Meyering  <jim@meyering.net>
60585
60586         * lib/getugroups.h: New file.
60587         * lib/getugroups.c: Include "getugroups.h".
60588         Remove uses of "register" keyword.
60589         Move local variable, "cp", down into scope where used.
60590         Give "username" parameter the "const" attribute.
60591         * modules/getugroups (Files): Add lib/getugroups.h
60592
60593 2007-07-04  Karl Berry  <karl@gnu.org>
60594
60595         * MODULES.html.sh (func_all_modules): Complete rename of
60596         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60597
60598 2007-07-02  Bruno Haible  <bruno@clisp.org>
60599
60600         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60601         mode, when inttypes.h comes from gnulib.
60602         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60603
60604 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60605
60606         * NEWS: Mention lgpl module name change.
60607
60608         * modules/lgpl-2.1: Renamed from lgpl.
60609
60610         * NEWS: Mention gpl module name change.
60611
60612         * modules/gpl-3.0: New file, based on gpl-2.0.
60613
60614         * modules/gpl-2.0: Renamed from gpl.
60615
60616         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60617         doc/gpl-2.0.texi.
60618
60619 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60620
60621         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60622         #define __STDC_LIMIT_MACROS temporarily while including
60623         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60624         Problem reported by Joel E. Denny in
60625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60626
60627 2007-07-01  Bruno Haible  <bruno@clisp.org>
60628
60629         * lib/unistdio.h: New file.
60630         * lib/unistdio/u-asnprintf.h: New file.
60631         * lib/unistdio/u-asprintf.h: New file.
60632         * lib/unistdio/u-printf-args.c: New file.
60633         * lib/unistdio/u-printf-args.h: New file.
60634         * lib/unistdio/u-printf-parse.h: New file.
60635         * lib/unistdio/u-snprintf.h: New file.
60636         * lib/unistdio/u-sprintf.h: New file.
60637         * lib/unistdio/u-vasprintf.h: New file.
60638         * lib/unistdio/u-vsnprintf.h: New file.
60639         * lib/unistdio/u-vsprintf.h: New file.
60640         * lib/unistdio/ulc-asnprintf.c: New file.
60641         * lib/unistdio/ulc-asprintf.c: New file.
60642         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60643         * lib/unistdio/ulc-printf-parse.c: New file.
60644         * lib/unistdio/ulc-snprintf.c: New file.
60645         * lib/unistdio/ulc-sprintf.c: New file.
60646         * lib/unistdio/ulc-vasnprintf.c: New file.
60647         * lib/unistdio/ulc-vasprintf.c: New file.
60648         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60649         * lib/unistdio/ulc-vsnprintf.c: New file.
60650         * lib/unistdio/ulc-vsprintf.c: New file.
60651         * lib/unistdio/u8-asnprintf.c: New file.
60652         * lib/unistdio/u8-asprintf.c: New file.
60653         * lib/unistdio/u8-printf-parse.c: New file.
60654         * lib/unistdio/u8-snprintf.c: New file.
60655         * lib/unistdio/u8-sprintf.c: New file.
60656         * lib/unistdio/u8-vasnprintf.c: New file.
60657         * lib/unistdio/u8-vasprintf.c: New file.
60658         * lib/unistdio/u8-vsnprintf.c: New file.
60659         * lib/unistdio/u8-vsprintf.c: New file.
60660         * lib/unistdio/u8-u8-asnprintf.c: New file.
60661         * lib/unistdio/u8-u8-asprintf.c: New file.
60662         * lib/unistdio/u8-u8-snprintf.c: New file.
60663         * lib/unistdio/u8-u8-sprintf.c: New file.
60664         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60665         * lib/unistdio/u8-u8-vasprintf.c: New file.
60666         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60667         * lib/unistdio/u8-u8-vsprintf.c: New file.
60668         * lib/unistdio/u16-asnprintf.c: New file.
60669         * lib/unistdio/u16-asprintf.c: New file.
60670         * lib/unistdio/u16-printf-parse.c: New file.
60671         * lib/unistdio/u16-snprintf.c: New file.
60672         * lib/unistdio/u16-sprintf.c: New file.
60673         * lib/unistdio/u16-vasnprintf.c: New file.
60674         * lib/unistdio/u16-vasprintf.c: New file.
60675         * lib/unistdio/u16-vsnprintf.c: New file.
60676         * lib/unistdio/u16-vsprintf.c: New file.
60677         * lib/unistdio/u16-u16-asnprintf.c: New file.
60678         * lib/unistdio/u16-u16-asprintf.c: New file.
60679         * lib/unistdio/u16-u16-snprintf.c: New file.
60680         * lib/unistdio/u16-u16-sprintf.c: New file.
60681         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60682         * lib/unistdio/u16-u16-vasprintf.c: New file.
60683         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60684         * lib/unistdio/u16-u16-vsprintf.c: New file.
60685         * lib/unistdio/u32-asnprintf.c: New file.
60686         * lib/unistdio/u32-asprintf.c: New file.
60687         * lib/unistdio/u32-printf-parse.c: New file.
60688         * lib/unistdio/u32-snprintf.c: New file.
60689         * lib/unistdio/u32-sprintf.c: New file.
60690         * lib/unistdio/u32-vasnprintf.c: New file.
60691         * lib/unistdio/u32-vasprintf.c: New file.
60692         * lib/unistdio/u32-vsnprintf.c: New file.
60693         * lib/unistdio/u32-vsprintf.c: New file.
60694         * lib/unistdio/u32-u32-asnprintf.c: New file.
60695         * lib/unistdio/u32-u32-asprintf.c: New file.
60696         * lib/unistdio/u32-u32-snprintf.c: New file.
60697         * lib/unistdio/u32-u32-sprintf.c: New file.
60698         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60699         * lib/unistdio/u32-u32-vasprintf.c: New file.
60700         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60701         * lib/unistdio/u32-u32-vsprintf.c: New file.
60702         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60703         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60704         * tests/unistdio/test-ulc-printf1.h: New file.
60705         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60706         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60707         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60708         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60709         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60710         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60711         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60712         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60713         * tests/unistdio/test-u8-asnprintf1.c: New file.
60714         * tests/unistdio/test-u8-asnprintf1.h: New file.
60715         * tests/unistdio/test-u8-printf1.h: New file.
60716         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60717         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60718         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60719         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60720         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60721         * tests/unistdio/test-u8-vasprintf1.c: New file.
60722         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60723         * tests/unistdio/test-u8-vsprintf1.c: New file.
60724         * tests/unistdio/test-u16-asnprintf1.c: New file.
60725         * tests/unistdio/test-u16-asnprintf1.h: New file.
60726         * tests/unistdio/test-u16-printf1.h: New file.
60727         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60728         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60729         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60730         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60731         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60732         * tests/unistdio/test-u16-vasprintf1.c: New file.
60733         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60734         * tests/unistdio/test-u16-vsprintf1.c: New file.
60735         * tests/unistdio/test-u32-asnprintf1.c: New file.
60736         * tests/unistdio/test-u32-asnprintf1.h: New file.
60737         * tests/unistdio/test-u32-printf1.h: New file.
60738         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60739         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60740         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60741         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60742         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60743         * tests/unistdio/test-u32-vasprintf1.c: New file.
60744         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60745         * tests/unistdio/test-u32-vsprintf1.c: New file.
60746         * modules/unistdio/base: New file.
60747         * modules/unistdio/u-printf-args: New file.
60748         * modules/unistdio/ulc-asnprintf: New file.
60749         * modules/unistdio/ulc-asprintf: New file.
60750         * modules/unistdio/ulc-fprintf: New file.
60751         * modules/unistdio/ulc-printf-parse: New file.
60752         * modules/unistdio/ulc-snprintf: New file.
60753         * modules/unistdio/ulc-sprintf: New file.
60754         * modules/unistdio/ulc-vasnprintf: New file.
60755         * modules/unistdio/ulc-vasprintf: New file.
60756         * modules/unistdio/ulc-vfprintf: New file.
60757         * modules/unistdio/ulc-vsnprintf: New file.
60758         * modules/unistdio/ulc-vsprintf: New file.
60759         * modules/unistdio/u8-asnprintf: New file.
60760         * modules/unistdio/u8-asprintf: New file.
60761         * modules/unistdio/u8-printf-parse: New file.
60762         * modules/unistdio/u8-snprintf: New file.
60763         * modules/unistdio/u8-sprintf: New file.
60764         * modules/unistdio/u8-vasnprintf: New file.
60765         * modules/unistdio/u8-vasprintf: New file.
60766         * modules/unistdio/u8-vsnprintf: New file.
60767         * modules/unistdio/u8-vsprintf: New file.
60768         * modules/unistdio/u8-u8-asnprintf: New file.
60769         * modules/unistdio/u8-u8-asprintf: New file.
60770         * modules/unistdio/u8-u8-snprintf: New file.
60771         * modules/unistdio/u8-u8-sprintf: New file.
60772         * modules/unistdio/u8-u8-vasnprintf: New file.
60773         * modules/unistdio/u8-u8-vasprintf: New file.
60774         * modules/unistdio/u8-u8-vsnprintf: New file.
60775         * modules/unistdio/u8-u8-vsprintf: New file.
60776         * modules/unistdio/u16-asnprintf: New file.
60777         * modules/unistdio/u16-asprintf: New file.
60778         * modules/unistdio/u16-printf-parse: New file.
60779         * modules/unistdio/u16-snprintf: New file.
60780         * modules/unistdio/u16-sprintf: New file.
60781         * modules/unistdio/u16-vasnprintf: New file.
60782         * modules/unistdio/u16-vasprintf: New file.
60783         * modules/unistdio/u16-vsnprintf: New file.
60784         * modules/unistdio/u16-vsprintf: New file.
60785         * modules/unistdio/u16-u16-asnprintf: New file.
60786         * modules/unistdio/u16-u16-asprintf: New file.
60787         * modules/unistdio/u16-u16-snprintf: New file.
60788         * modules/unistdio/u16-u16-sprintf: New file.
60789         * modules/unistdio/u16-u16-vasnprintf: New file.
60790         * modules/unistdio/u16-u16-vasprintf: New file.
60791         * modules/unistdio/u16-u16-vsnprintf: New file.
60792         * modules/unistdio/u16-u16-vsprintf: New file.
60793         * modules/unistdio/u32-asnprintf: New file.
60794         * modules/unistdio/u32-asprintf: New file.
60795         * modules/unistdio/u32-printf-parse: New file.
60796         * modules/unistdio/u32-snprintf: New file.
60797         * modules/unistdio/u32-sprintf: New file.
60798         * modules/unistdio/u32-vasnprintf: New file.
60799         * modules/unistdio/u32-vasprintf: New file.
60800         * modules/unistdio/u32-vsnprintf: New file.
60801         * modules/unistdio/u32-vsprintf: New file.
60802         * modules/unistdio/u32-u32-asnprintf: New file.
60803         * modules/unistdio/u32-u32-asprintf: New file.
60804         * modules/unistdio/u32-u32-snprintf: New file.
60805         * modules/unistdio/u32-u32-sprintf: New file.
60806         * modules/unistdio/u32-u32-vasnprintf: New file.
60807         * modules/unistdio/u32-u32-vasprintf: New file.
60808         * modules/unistdio/u32-u32-vsnprintf: New file.
60809         * modules/unistdio/u32-u32-vsprintf: New file.
60810         * modules/unistdio/ulc-asnprintf-tests: New file.
60811         * modules/unistdio/ulc-vasnprintf-tests: New file.
60812         * modules/unistdio/ulc-vasprintf-tests: New file.
60813         * modules/unistdio/ulc-vsnprintf-tests: New file.
60814         * modules/unistdio/ulc-vsprintf-tests: New file.
60815         * modules/unistdio/u8-asnprintf-tests: New file.
60816         * modules/unistdio/u8-vasnprintf-tests: New file.
60817         * modules/unistdio/u8-vasprintf-tests: New file.
60818         * modules/unistdio/u8-vsnprintf-tests: New file.
60819         * modules/unistdio/u8-vsprintf-tests: New file.
60820         * modules/unistdio/u16-asnprintf-tests: New file.
60821         * modules/unistdio/u16-vasnprintf-tests: New file.
60822         * modules/unistdio/u16-vasprintf-tests: New file.
60823         * modules/unistdio/u16-vsnprintf-tests: New file.
60824         * modules/unistdio/u16-vsprintf-tests: New file.
60825         * modules/unistdio/u32-asnprintf-tests: New file.
60826         * modules/unistdio/u32-vasnprintf-tests: New file.
60827         * modules/unistdio/u32-vasprintf-tests: New file.
60828         * modules/unistdio/u32-vsnprintf-tests: New file.
60829         * modules/unistdio/u32-vsprintf-tests: New file.
60830         * MODULES.html.sh (Unicode string functions): Add the new modules.
60831
60832 2007-07-01  Bruno Haible  <bruno@clisp.org>
60833
60834         * lib/sprintf.c (sprintf): Limit the available length estimation,
60835         to avoid address wraparound.
60836         * lib/vsprintf.c (vsprintf): Likewise.
60837         * modules/sprintf-posix (Dependencies): Add stdint.
60838         * modules/vsprintf-posix (Dependencies): Likewise.
60839
60840 2007-07-01  Bruno Haible  <bruno@clisp.org>
60841
60842         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60843         Windows PATH as well. Conservative double-quoting. Comments.
60844
60845 2007-07-01  Bruno Haible  <bruno@clisp.org>
60846             Eric Blake  <ebb9@byu.net>
60847             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60848
60849         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60850         empty components in $PATH, denoting '.'.
60851
60852 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60853
60854         * gnulib-tool: Fix indentation.
60855         (func_create_megatestdir): Likewise.
60856         Report by Bruno Haible.
60857
60858 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60859
60860         Sync from Automake.
60861         * build-aux/gnupload: Fix shell portability issues with for loops.
60862         Report by Karl Berry.
60863
60864 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60865
60866         * build-aux/maint.mk (POURL): Use translationproject.org.
60867
60868 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60869             Bruno Haible  <bruno@clisp.org>
60870
60871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60872         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60873         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60874         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60875         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60876
60877 2007-06-27  Bruno Haible  <bruno@clisp.org>
60878
60879         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60880         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60881
60882 2007-06-26  Karl Berry  <karl@gnu.org>
60883
60884         * MODULES.html.sh: remove xreadlink-with-size.
60885
60886 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60887
60888         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60889         method that I hope also handles the double-include problem noted
60890         by Bruno Haible in
60891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60892
60893 2007-06-23  Bruno Haible  <bruno@clisp.org>
60894
60895         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60896         Don't let the 'mostlyclean' target fail if the last subdirectory could
60897         not be removed.
60898         Reported by Karl Berry.
60899
60900 2007-06-23  Bruno Haible  <bruno@clisp.org>
60901
60902         * gnulib-tool (echo): Add a speedier workaround for ksh.
60903         * tests/test-echo.sh: Likewise.
60904
60905 2007-06-23  Bruno Haible  <bruno@clisp.org>
60906
60907         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60908         * tests/test-echo.sh: Likewise.
60909
60910 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60911
60912         * gnulib-tool (IFS): Initialize early, so we don't set it to
60913         empty later.
60914         (self_abspathname): Rewrite algorithm to set it, reindent.
60915         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60916         (func_create_megatestdir): Merge some sed scripts.
60917
60918 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60919
60920         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60921         exposed by Sun Studio 11 cc on Solaris 8.
60922
60923 2007-06-22  Bruno Haible  <bruno@clisp.org>
60924
60925         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60926         backslashes.
60927         * tests/test-echo.sh: New file.
60928
60929 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60930
60931         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60932         simplify `sed_replace_build_aux' scripts, they are portable but
60933         echoing them with `echo' is not.
60934         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60935
60936 2007-06-21  Karl Berry  <karl@gnu.org>
60937
60938         * config/srclist.txt: guess we can't handle the licenses via
60939         srclist at the moment.
60940
60941 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60942
60943         * MODULES.html.sh: Add include_next.
60944         * modules/include_next: New file.
60945
60946 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60947
60948         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60949         INCLUDE_NEXT.
60950         (gl_CHECK_NEXT_HEADERS): New macro.
60951         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60952         the obsolescent gl_ABSOLUTE_HEADER.
60953         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60954         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60955         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60956         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60957         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60958         * m4/math_h.m4 (gl_MATH_H): Likewise.
60959         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60960         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60961         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60962         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60963         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60964         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60965         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60966         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60967         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60968         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60969         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60970         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60971         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60972         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60973         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60974         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60975         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60976         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60977         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60978         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60979         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60980         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60981         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60982         * lib/float_.h: Likewise.
60983         * lib/inttypes_.h: Likewise.
60984         * lib/math_.h: Likewise.
60985         * lib/search_.h: Likewise.
60986         * lib/signal_.h: Likewise.
60987         * lib/stdint_.h: Likewise.
60988         * lib/stdio_.h: Likewise.
60989         * lib/stdlib_.h: Likewise.
60990         * lib/string_.h: Likewise.
60991         * lib/sys_stat_.h: Likewise.
60992         * lib/sys_time_.h: Likewise.
60993         * lib/time_.h: Likewise.
60994         * lib/unistd_.h: Likewise.
60995         * lib/wchar_.h: Likewise.
60996         * lib/wctype_.h: Likewise.
60997         * lib/dirent_.h: Likewise.
60998         * lib/iconv_.h: Likewise.
60999         * lib/locale_.h: Likewise.
61000         * lib/netinet_in_.h: Likewise.
61001         * lib/sys_select_.h: Likewise.
61002         * lib/sys_socket_.h: Likewise.
61003         * lib/sysexits_.h: Likewise.
61004         * modules/fcntl (Depends-on): Depend on include_next, not
61005         absolute_header.
61006         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
61007         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
61008         * modules/fchdir: Likewise.
61009         * modules/float: Likewise.
61010         * modules/iconv_open: Likewise.
61011         * modules/inttypes: Likewise.
61012         * modules/locale: Likewise.
61013         * modules/math: Likewise.
61014         * modules/netinet_in: Likewise.
61015         * modules/search: Likewise.
61016         * modules/signal: Likewise.
61017         * modules/stdint: Likewise.
61018         * modules/stdio: Likewise.
61019         * modules/stdlib: Likewise.
61020         * modules/string: Likewise.
61021         * modules/sys_select: Likewise.
61022         * modules/sys_socket: Likewise.
61023         * modules/sys_stat: Likewise.
61024         * modules/sys_time: Likewise.
61025         * modules/sysexits: Likewise.
61026         * modules/time: Likewise.
61027         * modules/unistd: Likewise.
61028         * modules/wchar: Likewise.
61029         * modules/wctype: Likewise.
61030         * modules/sys_stat: Change maintainer to "all".
61031         * modules/unistd: Likewise.
61032
61033 2007-06-20  Karl Berry  <karl@gnu.org>
61034
61035         * config/srclist.txt: track www changes in license files.
61036
61037 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61038
61039         * build-aux/bootstrap: Remove stray dot.
61040         Make sure build_aux settings are honored when linking
61041         gnulib_extra_files.
61042
61043 2007-06-19  Eric Blake  <ebb9@byu.net>
61044
61045         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61046         Allow compilation on cygwin.
61047
61048 2007-06-19  Jim Meyering  <jim@meyering.net>
61049
61050         xreadlink-with-size: Remove module.  No longer used.
61051         Ex-callers now use xreadlink or mreadlink-with-size.
61052         * modules/xreadlink-with-size: Remove module.
61053         * lib/xreadlink-with-size.c: Remove file.
61054         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61055         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61056         just before the function definition *is* accurate.
61057
61058         Eliminate one way canonicalize_filename_mode could exit.
61059         * lib/canonicalize.c (canonicalize_filename_mode):
61060         Use mreadlink_with_size, not xreadlink_with_size.
61061
61062 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61063
61064         Detect porting problems to FreeBSD/arm, which has time_t wider than
61065         long int.  Original problem reported for GNU diff by Xin Li in
61066         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61067         * modules/getdate (Depends-on): Add intprops, verify.
61068         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61069         is an integer type no wider than long int.
61070
61071 2007-06-18  Jim Meyering  <jim@meyering.net>
61072
61073         New module: mreadlink-with-size.
61074         * MODULES.html.sh: Add mreadlink-with-size.
61075         * modules/mreadlink-with-size: New module
61076         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61077         not xreadlink-with-size.
61078         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61079
61080 2007-06-16  Bruno Haible  <bruno@clisp.org>
61081
61082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61083         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61084         Reported by Gary V. Vaughan <gary@gnu.org>.
61085
61086 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61087
61088         Revamp lchown so that it lives in unistd.h where it belongs.
61089         * lib/lchown.h: Remove.
61090         * lib/dirchownmod.c: Don't include lib/lchown.h.
61091         * lib/fchownat.c: Likewise.
61092         * lib/openat.c: Likewise.
61093         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61094         does not follow symlinks.
61095         (EOPNOTSUPP): Define if not defined.
61096         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61097         is defined to 0.
61098         (lchown): New decl.
61099         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61100         Do not check for lchown decl.
61101         Set REPLACE_LCHOWN.
61102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61103         REPLACE_LCHOWN.
61104         * modules/chown: Make it clear it follows symlinks.
61105         * modules/lchown: Make it clear it doesn't follow symlinks.
61106         (Files): Remove lib/lchown.h
61107         (Depends-on): Add unistd.
61108         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61109         (Include): Include <unistd.h>, not "lchown.h".
61110         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61111         REPLACE_LCHOWN.
61112
61113 2007-06-15  Jim Meyering  <jim@meyering.net>
61114
61115         Change license (GPL to LGPL) of fsusage and dependents.
61116         * modules/fsusage (License): Change to LGPL.
61117         * modules/full-read (License): Likewise.
61118         * modules/full-write (License): Likewise.
61119         * modules/safe-read (License): Likewise.
61120         * modules/safe-write (License): Likewise.
61121
61122 2007-06-14  Ben Pfaff  <blp@gnu.org>
61123
61124         Missing part of allocsa -> malloca transition.
61125         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61126         gl_MALLOCA.
61127
61128 2007-06-12  Bruno Haible  <bruno@clisp.org>
61129
61130         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61131         to ia64, x86_64, i386.
61132         Reported by Eric Blake.
61133
61134 2007-06-12  Bruno Haible  <bruno@clisp.org>
61135
61136         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61137         cross-compiling to x86_64.
61138
61139 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61140
61141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61142         glitch reported by Ralf Wildenhues in
61143         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61144
61145         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61146         Vin Shelton.
61147
61148 2007-06-11  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61151         replacement string.
61152         Reported by Eric Blake.
61153
61154 2007-06-10  Bruno Haible  <bruno@clisp.org>
61155
61156         Prepare vasnprintf code for use with Unicode strings.
61157         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61158         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61159         TYPE_U32_STRING.
61160         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61161         a_u32_string variants.
61162         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61163         * lib/printf-args.c: Don't include config.h and the specification
61164         header if PRINTF_FETCHARGS is already defined.
61165         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61166         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61167         TYPE_U16_STRING, TYPE_U32_STRING.
61168         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61169         u16_directive, u16_directives, u32_directive, u32_directives): New
61170         types.
61171         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61172         New declarations.
61173         * lib/printf-parse.c: Don't include config.h and the specification
61174         header if PRINTF_PARSE is already defined. Eliminate the set of
61175         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61176         them now. Include c-ctype.h.
61177         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61178         directive and CHAR_T_ONLY_ASCII.
61179         * lib/vasnprintf.c: Don't include config.h and the specification header
61180         if VASNPRINTF is already defined.
61181         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61182         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61183         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61184         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61185         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61186         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61187         code accordingly.
61188         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61189         pad_ourselves also in this case, with the 'c' and 's' directives, and
61190         with a different notion of "width".
61191         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61192
61193 2007-06-10  Bruno Haible  <bruno@clisp.org>
61194
61195         * modules/unistr/u32-mbsnlen: New file.
61196         * lib/unistr/u32-mbsnlen.c: New file.
61197
61198         * modules/unistr/u16-mbsnlen: New file.
61199         * lib/unistr/u16-mbsnlen.c: New file.
61200
61201         * modules/unistr/u8-mbsnlen: New file.
61202         * lib/unistr/u8-mbsnlen.c: New file.
61203
61204         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61205         declarations.
61206
61207 2007-06-10  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/string_.h (mbsnlen): New declaration.
61210         * lib/mbsnlen.c: New file.
61211         * m4/mbsnlen.m4: New file.
61212         * modules/mbsnlen: New file.
61213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61214         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61215         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61216
61217 2007-06-10  Bruno Haible  <bruno@clisp.org>
61218
61219         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61220
61221 2007-06-10  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61224         * lib/mbuiter.h: Likewise.
61225
61226 2007-06-10  Bruno Haible  <bruno@clisp.org>
61227
61228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61229         declaration.
61230
61231 2007-06-10  Karl Berry  <karl@gnu.org>
61232
61233         * config/srclist.txt: remove gettext entries, Bruno prefers
61234         to update individually.
61235
61236 2007-06-10  Bruno Haible  <bruno@clisp.org>
61237
61238         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61239         'maxlen'. Ensure only length + width bytes are allocated, not
61240         length + 1 + width.
61241
61242 2007-06-09  Bruno Haible  <bruno@clisp.org>
61243
61244         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61245         (CHAR_T): Remove macro.
61246         (VASNPRINTF): Update.
61247
61248 2007-06-09  Bruno Haible  <bruno@clisp.org>
61249
61250         * MODULES.html.sh (Unicode string functions): Add the new modules.
61251
61252         * modules/uniconv/u32-conv-to-enc: New file.
61253         * lib/uniconv/u32-conv-to-enc.c: New file.
61254         * modules/uniconv/u32-conv-to-enc-tests: New file.
61255         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61256
61257         * modules/uniconv/u16-conv-to-enc: New file.
61258         * lib/uniconv/u16-conv-to-enc.c: New file.
61259         * lib/uniconv/u-conv-to-enc.h: New file.
61260         * modules/uniconv/u16-conv-to-enc-tests: New file.
61261         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61262
61263         * modules/uniconv/u8-conv-to-enc: New file.
61264         * lib/uniconv/u8-conv-to-enc.c: New file.
61265         * modules/uniconv/u8-conv-to-enc-tests: New file.
61266         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61267
61268         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61269         u32_conv_to_encoding): New declarations.
61270
61271 2007-06-09  Bruno Haible  <bruno@clisp.org>
61272
61273         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61274
61275 2007-06-09  Bruno Haible  <bruno@clisp.org>
61276
61277         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61278         * modules/malloca: Renamed from modules/allocsa, updated.
61279         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61280         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61281         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61282         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61283         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61284         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61285         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61286         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61287         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61288         * modules/c-strcasestr (Depends-on): Update.
61289         * lib/c-strcasestr.c: Update.
61290         * modules/c-strstr (Depends-on): Update.
61291         * lib/c-strstr.c: Update.
61292         * modules/canonicalize-lgpl (Depends-on): Update.
61293         * lib/canonicalize-lgpl.c: Update.
61294         * modules/clean-temp (Depends-on): Update.
61295         * lib/clean-temp.c: Update.
61296         * modules/csharpcomp (Depends-on): Update.
61297         * lib/csharpcomp.c: Update.
61298         * modules/csharpexec (Depends-on): Update.
61299         * lib/csharpexec.c: Update.
61300         * modules/javacomp (Depends-on): Update.
61301         * lib/javacomp.c: Update.
61302         * modules/javaexec (Depends-on): Update.
61303         * lib/javaexec.c: Update.
61304         * modules/mbscasestr (Depends-on): Update.
61305         * lib/mbscasestr.c: Update.
61306         * modules/mbsstr (Depends-on): Update.
61307         * lib/mbsstr.c: Update.
61308         * modules/setenv (Depends-on): Update.
61309         * lib/setenv.c: Update.
61310         * modules/strcasestr (Depends-on): Update.
61311         * lib/strcasestr.c: Update.
61312         * modules/striconveha (Depends-on): Update.
61313         * lib/striconveha.c: Update.
61314         * modules/relocatable-prog-wrapper (Files): Update.
61315         * lib/relocwrapper.c: Update.
61316         * build-aux/install-reloc: Update.
61317         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61318
61319 2007-06-08  Bruno Haible  <bruno@clisp.org>
61320
61321         Port to uClibc.
61322         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61323         * lib/fpurge.c (fpurge): Likewise.
61324         * lib/freading.c (freading): Likewise.
61325         * lib/fseeko.c (rpl_fseeko): Likewise.
61326         * lib/fseterr.c (fseterr): Likewise.
61327         * lib/fwriting.c (fwriting): Likewise.
61328         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61329
61330 2007-06-08  Bruno Haible  <bruno@clisp.org>
61331
61332         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61333         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61334         * modules/gettext (Files): Add m4/intlmacosx.m4.
61335
61336 2007-06-07  Bruno Haible  <bruno@clisp.org>
61337
61338         * modules/localename-tests: New file.
61339         * tests/test-localename.c: New file.
61340
61341         New module 'localename'.
61342         * lib/localename.h: New file.
61343         * lib/localename.c: New file, from GNU gettext.
61344         * m4/localename.m4: New file.
61345         * modules/localename: New file.
61346
61347 2007-06-07  Bruno Haible  <bruno@clisp.org>
61348
61349         Work around the lack of <wchar.h> on some builds of uClibc.
61350         * doc/headers/wchar.texi: Update.
61351         * lib/wchar_.h: Include <wchar.h> only if it exists.
61352         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61353         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61354         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61355         doesn't exist.
61356         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61357         * modules/mbfile (Depends-on): Add wchar.
61358         * modules/mbiter (Depends-on): Likewise.
61359         * modules/mbuiter (Depends-on): Likewise.
61360         Reported by Simon Josefsson.
61361
61362 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61363
61364         Work around problem reported by Steven M. Schweda in
61365         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61366         Tru64 5.1B with the Compaq compiler environment installed declares
61367         an 'isblank' function but does not define it in the C library.
61368         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61369         * lib/regex_internal.h (isblank): Likewise.
61370         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61371         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61372
61373 2007-06-05  Bruno Haible  <bruno@clisp.org>
61374
61375         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61376         ia64.
61377         * modules/printf-safe: New file.
61378         * modules/fprintf-posix (Depends-on): Add printf-safe.
61379         * modules/printf-posix (Depends-on): Likewise.
61380         * modules/snprintf-posix (Depends-on): Likewise.
61381         * modules/sprintf-posix (Depends-on): Likewise.
61382         * modules/vasnprintf-posix (Depends-on): Likewise.
61383         * modules/vasprintf-posix (Depends-on): Likewise.
61384         * modules/vfprintf-posix (Depends-on): Likewise.
61385         * modules/vprintf-posix (Depends-on): Likewise.
61386         * modules/vsnprintf-posix (Depends-on): Likewise.
61387         * modules/vsprintf-posix (Depends-on): Likewise.
61388         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61389         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61390         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61391         "no" on i386, x86_64, ia64.
61392         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61393         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61394         on i386, x86_64, ia64.
61395         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61396         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61397         on i386, x86_64, ia64.
61398         * tests/test-vasnprintf-posix.c: Include float.h.
61399         (LDBL80_WORDS): New macro.
61400         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61401         on i386, x86_64, ia64.
61402         * tests/test-vasprintf-posix.c: Include float.h.
61403         (LDBL80_WORDS): New macro.
61404         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61405         on i386, x86_64, ia64.
61406         * tests/test-snprintf-posix.c: Include float.h.
61407         * tests/test-sprintf-posix.c: Likewise.
61408         * tests/test-vsnprintf-posix.c: Likewise.
61409         * tests/test-vsprintf-posix.c: Likewise.
61410
61411 2007-06-05  Bruno Haible  <bruno@clisp.org>
61412
61413         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61414         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61415         non-IEEE numbers on i386, x86_64, ia64.
61416         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61417         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61418         * tests/test-isnanl.h: Include float.h.
61419         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61420
61421 2007-06-05  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61424         also the %a / %A. Handle the %a / %A code before this extra handling.
61425
61426 2007-06-05  Bruno Haible  <bruno@clisp.org>
61427
61428         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61429         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61430
61431 2007-06-05  Bruno Haible  <bruno@clisp.org>
61432
61433         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61434         typo in variable name.
61435
61436 2007-06-05  Eric Blake  <ebb9@byu.net>
61437
61438         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61439         Reported by Simon Josefsson.
61440
61441 2007-06-04  Bruno Haible  <bruno@clisp.org>
61442
61443         Avoid test failures on some PowerPC platforms.
61444         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61445         Define differently for PowerPC.
61446         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61447         Reported by Gary V. Vaughan <gary@gnu.org>.
61448
61449 2007-06-02  Bruno Haible  <bruno@clisp.org>
61450
61451         Fix test-stdint failure on FreeBSD/ia64.
61452         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61453         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61454         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61455         * doc/headers/stdint.texi: Update.
61456
61457 2007-06-01  Bruno Haible  <bruno@clisp.org>
61458
61459         * tests/test-binary-io.c (main): Pass a third argument to open().
61460         Reported by Gary V. Vaughan <gary@gnu.org>.
61461
61462 2007-06-01  Bruno Haible  <bruno@clisp.org>
61463
61464         * doc/functions/frexpl.texi: Update for mingw.
61465
61466 2007-06-01  Bruno Haible  <bruno@clisp.org>
61467
61468         * tests/test-lseek.c (main): Disable test of errno for invalid third
61469         argument.
61470         * doc/functions/lseek.texi: Update.
61471         Reported by Gary V. Vaughan <gary@gnu.org>.
61472
61473 2007-05-28  Bruno Haible  <bruno@clisp.org>
61474
61475         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61476
61477 2007-05-31  Eric Blake  <ebb9@byu.net>
61478
61479         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61480         cross compiling.
61481
61482 2007-05-30  Eric Blake  <ebb9@byu.net>
61483         and Bruno Haible  <bruno@clisp.org>
61484
61485         Work around mingw test failures exposed by m4-1.4.9b.
61486         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61487         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61488         moment.
61489
61490 2007-05-30  Bruno Haible  <bruno@clisp.org>
61491
61492         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61493         assuming that they are closed. Needed on HP-UX 11.
61494
61495 2007-05-29  Bruno Haible  <bruno@clisp.org>
61496
61497         Fix a problem with #include_next.
61498         * lib/dirent_.h: Split the double-inclusion guard.
61499         * lib/fcntl_.h: Likewise.
61500         * lib/float_.h: Likewise.
61501         * lib/iconv_.h: Likewise.
61502         * lib/inttypes_.h: Likewise.
61503         * lib/locale_.h: Likewise.
61504         * lib/math_.h: Likewise.
61505         * lib/netinet_in_.h: Likewise.
61506         * lib/search_.h: Likewise.
61507         * lib/signal_.h: Likewise.
61508         * lib/stdint_.h: Likewise.
61509         * lib/stdio_.h: Likewise.
61510         * lib/stdlib_.h: Likewise.
61511         * lib/string_.h: Likewise.
61512         * lib/sys_select_.h: Likewise.
61513         * lib/sys_socket_.h: Likewise.
61514         * lib/sys_stat_.h: Likewise.
61515         * lib/sys_time_.h: Likewise.
61516         * lib/sysexits_.h: Likewise.
61517         * lib/time_.h: Likewise.
61518         * lib/unistd_.h: Likewise.
61519         * lib/wchar_.h: Likewise.
61520         * lib/wctype_.h: Likewise.
61521
61522 2007-05-29  Bruno Haible  <bruno@clisp.org>
61523
61524         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61525         for the moment.
61526
61527 2007-05-29  Bruno Haible  <bruno@clisp.org>
61528
61529         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61530         invocation.
61531         Reported by Eric Blake.
61532
61533 2007-05-29  Bruno Haible  <bruno@clisp.org>
61534
61535         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61536         compiling case.
61537
61538 2007-05-29  Eric Blake  <ebb9@byu.net>
61539             Bruno Haible  <bruno@clisp.org>
61540
61541         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61542         cross compiles.
61543
61544 2007-05-28  Eric Blake  <ebb9@byu.net>
61545
61546         * modules/closein-tests (test_closein_LDADD): Support test on
61547         cygwin with libtool.
61548
61549 2007-05-28  Bruno Haible  <bruno@clisp.org>
61550
61551         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61552         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61553         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61554         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61555         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61556         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61557         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61558         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61559         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61560
61561 2007-05-28  Eric Blake  <ebb9@byu.net>
61562
61563         Unconditionally include <config.h> in unit tests.
61564         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61565         * tests/test-allocsa.c, tests/test-arcfour.c,
61566         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61567         tests/test-array_list.c, tests/test-array_oset.c,
61568         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61569         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61570         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61571         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61572         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61573         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61574         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61575         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61576         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61577         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61578         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61579         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61580         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61581         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61582         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61583         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61584         test-md5.c, test-memmem.c, test-printf-posix.c,
61585         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61586         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61587         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61588         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61589         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61590         test-vasnprintf-posix2.c, test-vasnprintf.c,
61591         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61592         test-vfprintf-posix.c, test-vprintf-posix.c,
61593         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61594         test-xvasprintf.c: Likewise.
61595
61596 2007-05-28  Bruno Haible  <bruno@clisp.org>
61597
61598         * gnulib-tool (func_import): Remember the --with-tests command-line
61599         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61600         Reported by Eric Blake.
61601
61602 2007-05-28  Bruno Haible  <bruno@clisp.org>
61603
61604         * modules/ftell-tests: New file.
61605         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61606         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61607
61608         * lib/ftell.c: New file.
61609         * modules/ftell: New file.
61610         * m4/ftell.m4: New file.
61611         * doc/functions/ftell.texi: Update.
61612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61613         REPLACE_FTELL.
61614         * lib/stdio_.h (rpl_ftell): New declaration.
61615         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61616         REPLACE_FTELL.
61617
61618 2007-05-28  Eric Blake  <ebb9@byu.net>
61619
61620         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61621
61622 2007-05-28  Bruno Haible  <bruno@clisp.org>
61623
61624         * modules/fseek-tests: New file.
61625         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61626         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61627
61628         * lib/fseek.c: New file.
61629         * modules/fseek: New file.
61630         * m4/fseek.m4: New file.
61631         * doc/functions/fseek.texi: Update.
61632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61633         REPLACE_FSEEK.
61634         * lib/stdio_.h (rpl_fseek): New declaration.
61635         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61636         REPLACE_FSEEK.
61637
61638 2007-05-28  Bruno Haible  <bruno@clisp.org>
61639
61640         * lib/stdio_.h (fflush): More comments.
61641
61642 2007-05-28  Bruno Haible  <bruno@clisp.org>
61643
61644         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61645         runtime test.
61646
61647 2007-05-28  Eric Blake  <ebb9@byu.net>
61648
61649         Improve lseek module.
61650         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61651         * lib/unistd_.h (lseek): Scale back link warning message.
61652         * tests/test-lseek.c: Beef up test.
61653         * tests/test-lseek.sh: Exercise more facets of lseek.
61654         Reported by Bruno Haible.
61655
61656 2007-05-28  Bruno Haible  <bruno@clisp.org>
61657
61658         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61659         to define.
61660
61661 2007-05-27  Bruno Haible  <bruno@clisp.org>
61662
61663         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61664
61665 2007-05-27  Bruno Haible  <bruno@clisp.org>
61666
61667         * modules/openmp: New file.
61668         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61669         Noah Misch.
61670
61671 2007-05-26  Bruno Haible  <bruno@clisp.org>
61672
61673         * modules/chdir-long (Depends-on): Add fchdir.
61674         * modules/chdir-safer (Depends-on): Likewise.
61675         * modules/fts (Depends-on): Likewise.
61676         * modules/fts-lgpl (Depends-on): Likewise.
61677         * modules/openat (Depends-on): Likewise.
61678         * modules/savewd (Depends-on): Likewise.
61679
61680 2007-05-24  Eric Blake  <ebb9@byu.net>
61681
61682         Fix lseek on mingw.
61683         * modules/lseek: New module.
61684         * m4/lseek.m4: New file.
61685         * lib/lseek.c: New file.
61686         * modules/lseek-tests: New file.
61687         * tests/test-lseek.c: New file.
61688         * tests/test-lseek.sh: New file.
61689         * MODULES.html.sh: Document lseek module.
61690         * modules/fflush (Depends-on): Add lseek, fseeko.
61691         * modules/fseeko (Depends-on): Likewise.
61692         * modules/ftello (Depends-on): Likewise.
61693         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61694         broken.
61695         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61696         broken.
61697         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61698         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61699         * lib/ftello.c (rpl_ftello): Likewise.
61700         * tests/test-fseeko.c (main): Test this.
61701         * tests/test-fseeko.sh: Likewise.
61702         * tests/test-ftello.c (main): Likewise.
61703         * tests/test-ftello.sh: Likewise.
61704         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61705         implies replacing fseek.
61706         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61707         HAVE_FTELLO.
61708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61709         * modules/unistd (Makefile.am): Likewise.
61710         * lib/unistd_.h (lseek): Declare a replacement.
61711         * doc/functions/lseek.texi (lseek): Document this fix.
61712         * doc/functions/fseek.texi (fseek): Likewise.
61713         * doc/functions/ftell.texi (ftell): Likewise.
61714
61715 2007-05-24  Bruno Haible  <bruno@clisp.org>
61716
61717         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61718         in the printed representation of a NaN.
61719         * tests/test-vasprintf-posix.c (test_function): Likewise.
61720         * tests/test-snprintf-posix.h (test_function): Likewise.
61721         * tests/test-sprintf-posix.h (test_function): Likewise.
61722         Reported by Eric Blake.
61723
61724 2007-05-23  Eric Blake  <ebb9@byu.net>
61725
61726         Fix fseeko/ftello on cygwin 1.5.24.
61727         * doc/functions/fseeko.texi (fseeko): Document the fix.
61728         * doc/functions/ftello.texi (ftello): Document the fix.
61729         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61730         * doc/functions/stdout.text (stdout): New file.
61731         * doc/functions/stderr.text (stderr): New file.
61732         * doc/gnulib.texi (Function Substitutes): Use new files.
61733         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61734         prior to 1.7.0.
61735         * tests/test-ftello.c (main): Likewise for ftello.
61736         * tests/test-fseeko.sh: New file.
61737         * tests/test-ftello.sh: New file.
61738         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61739         with seekable stdin.
61740         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61741         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61742         (gl_REPLACE_FSEEKO): New macro.
61743         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61744         * modules/fseeko (Files): Distribute fseeko.c.
61745         * modules/ftello (Files): Distribute ftello.c.
61746         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61747         mode.
61748         * lib/ftello.c (rpl_ftello): New file.
61749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61750         fseeko, ftello.
61751         (gl_STDIN_LARGE_OFFSET): New macro.
61752         * modules/stdio (Makefile.am): Perform the replacement.
61753         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61754
61755 2007-05-23  Bruno Haible  <bruno@clisp.org>
61756
61757         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61758         GNULIB_POSIXCHECK is defined.
61759
61760 2007-05-21  Bruno Haible  <bruno@clisp.org>
61761
61762         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61763         Check also the output for NaN arguments. When cross-compiling, guess
61764         no on IRIX.
61765         * lib/vasnprintf.c: Update comments.
61766         * tests/test-vasnprintf-posix.c (strisnan): New function.
61767         (test_function): Use it.
61768         * tests/test-vasprintf-posix.c (strisnan): New function.
61769         (test_function): Use it.
61770         * tests/test-snprintf-posix.h (strisnan): New function.
61771         (test_function): Use it.
61772         * tests/test-sprintf-posix.h (strisnan): New function.
61773         (test_function): Use it.
61774         Reported by Eric Blake.
61775
61776 2007-05-20  Bruno Haible  <bruno@clisp.org>
61777
61778         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61779         numbers that fails on BeOS.
61780         * doc/functions/frexpl.texi: Update.
61781
61782 2007-05-20  Jim Meyering  <jim@meyering.net>
61783
61784         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61785         forced upon us by glibc-2.6.
61786
61787 2007-05-20  Bruno Haible  <bruno@clisp.org>
61788
61789         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61790         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61791         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61792         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61793         NEED_PRINTF_INFINITE.
61794         (is_infinitel): New function.
61795         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61796         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61797         gl_PREREQ_VASNPRINTF_INFINITE.
61798         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61800         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61801         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61802         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61803         gl_PREREQ_VASNPRINTF_INFINITE.
61804         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61805         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61806         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61807         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61808         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61809         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61810         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61811         * doc/functions/fprintf.texi: Update.
61812         * doc/functions/printf.texi: Update.
61813         * doc/functions/snprintf.texi: Update.
61814         * doc/functions/sprintf.texi: Update.
61815         * doc/functions/vfprintf.texi: Update.
61816         * doc/functions/vprintf.texi: Update.
61817         * doc/functions/vsnprintf.texi: Update.
61818         * doc/functions/vsprintf.texi: Update.
61819
61820 2007-05-20  Bruno Haible  <bruno@clisp.org>
61821
61822         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61823         was not found in libc.
61824         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61825
61826 2007-05-20  Bruno Haible  <bruno@clisp.org>
61827
61828         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61829         printed as "-nan" instead of "nan".
61830         * tests/test-vasprintf-posix.c (test_function): Likewise.
61831         * tests/test-snprintf-posix.h (test_function): Likewise.
61832         * tests/test-sprintf-posix.h (test_function): Likewise.
61833         Needed for HP-UX 11.
61834
61835 2007-05-20  Jim Meyering  <jim@meyering.net>
61836
61837         Fix buggy test for the fchownat-deref bug.
61838         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61839         symlink required for the run-test.  Without it, this test would
61840         always declare that fchownat doesn't work, and client code would
61841         unnecessarily use the replacement function with fixed libc.
61842         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61843         Reported by Greg Schafer.
61844
61845 2007-05-19  Bruno Haible  <bruno@clisp.org>
61846
61847         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61848         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61849         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61850         Needed for IRIX 6.5 and Solaris 2.5.1.
61851
61852 2007-05-19  Bruno Haible  <bruno@clisp.org>
61853
61854         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61855         (test_function): Skip tests involving -0.0 on platforms where
61856         -0.0 = 0.0.
61857         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61858         (test_function): Skip tests involving -0.0 on platforms where
61859         -0.0 = 0.0.
61860         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61861         (test_function): Skip tests involving -0.0 on platforms where
61862         -0.0 = 0.0.
61863         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61864         (test_function): Skip tests involving -0.0 on platforms where
61865         -0.0 = 0.0.
61866         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61867         tests.
61868         * tests/test-printf-posix.h (test_function): Likewise.
61869         * tests/test-printf-posix.output: Remove all -0.0 related results.
61870         Needed for IRIX 6.5.
61871
61872 2007-05-19  Bruno Haible  <bruno@clisp.org>
61873
61874         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61875         printed as "nan0x7fffffff" instead of "nan".
61876         * tests/test-vasprintf-posix.c (test_function): Likewise.
61877         * tests/test-snprintf-posix.h (test_function): Likewise.
61878         * tests/test-sprintf-posix.h (test_function): Likewise.
61879         * tests/test-fprintf-posix.h (NaN): Remove macro.
61880         (test_function): Remove all NaN related tests.
61881         * tests/test-printf-posix.h (NaN): Remove macro.
61882         (test_function): Remove all NaN related tests.
61883         * tests/test-printf-posix.output: Remove all NaN related results.
61884         Needed for IRIX 6.5.
61885
61886 2007-05-19  Bruno Haible  <bruno@clisp.org>
61887
61888         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61889         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61890
61891 2007-05-19  Bruno Haible  <bruno@clisp.org>
61892
61893         * lib/float_.h: New file.
61894         * m4/float_h.m4: New file.
61895         * modules/float: New file.
61896         * modules/isnanl (Dependencies): Add float.
61897         * modules/isnanl-nolibm (Dependencies): Likewise.
61898         * modules/mathl (Dependencies): Likewise.
61899         * modules/printf-frexpl (Dependencies): Likewise.
61900         * modules/signbit (Dependencies): Likewise.
61901         * modules/vasnprintf (Dependencies): Likewise.
61902         * doc/headers/float.texi: Update.
61903
61904 2007-05-19  Jim Meyering  <jim@meyering.net>
61905
61906         * lib/utimens.c (gl_futimens): Rename from futimens,
61907         now that glibc-2.6 declares futimens.
61908         * lib/utimens.h: Likewise.
61909
61910 2007-05-19  Bruno Haible  <bruno@clisp.org>
61911
61912         Avoid test failures on mingw.
61913         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61914         * tests/test-printf-posix.sh: Likewise.
61915         * tests/test-vfprintf-posix.sh: Likewise.
61916         * tests/test-vprintf-posix.sh: Likewise.
61917
61918 2007-05-19  Bruno Haible  <bruno@clisp.org>
61919
61920         Fix *printf result for NaN, Inf, -0.0 on mingw.
61921         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61922         * lib/vasnprintf.c: Include math.h and isnan.h.
61923         (is_infinite_or_zero): New function.
61924         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61925         values in the %f, %F, %e, %E, %g, %G directives.
61926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61928         gl_PRINTF_INFINITE and test its result. Invoke
61929         gl_PREREQ_VASNPRINTF_INFINITE.
61930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61931         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61932         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61934         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61937         * doc/functions/fprintf.texi: Update.
61938         * doc/functions/printf.texi: Update.
61939         * doc/functions/snprintf.texi: Update.
61940         * doc/functions/sprintf.texi: Update.
61941         * doc/functions/vfprintf.texi: Update.
61942         * doc/functions/vprintf.texi: Update.
61943         * doc/functions/vsnprintf.texi: Update.
61944         * doc/functions/vsprintf.texi: Update.
61945
61946 2007-05-19  Bruno Haible  <bruno@clisp.org>
61947
61948         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61949         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61950         Instead of multiplying with 10^k, set extra_zeroes to k.
61951         (scale10_round_long_double): Remove function.
61952
61953 2007-05-18  Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61956         introduced on 2007-05-06.
61957
61958 2007-05-18  Bruno Haible  <bruno@clisp.org>
61959
61960         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61961         %g directives.
61962         * tests/test-vasprintf-posix.c (test_function): Likewise.
61963         * tests/test-snprintf-posix.h (test_function): Likewise.
61964         * tests/test-sprintf-posix.h (test_function): Likewise.
61965
61966 2007-05-18  Bruno Haible  <bruno@clisp.org>
61967
61968         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61969         (strmatch): New function.
61970         (test_function): Test the %f directive on numbers of various exponents.
61971         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61972         (strmatch): New function.
61973         (test_function): Test the %f directive on numbers of various exponents.
61974         * tests/test-snprintf-posix.h (strmatch): New function.
61975         (test_function): Test the %f directive on numbers of various exponents.
61976         * tests/test-sprintf-posix.h (strmatch): New function.
61977         (test_function): Test the %f directive on numbers of various exponents.
61978         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61979         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61980         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61981         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61982
61983 2007-05-18  Bruno Haible  <bruno@clisp.org>
61984
61985         Add support for 'long double' number output.
61986         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61987         * lib/vasnprintf.c: Include math.h and float+.h.
61988         (mp_limb_t): New type.
61989         (GMP_LIMB_BITS): New macro.
61990         (mp_twolimb_t): New type.
61991         (GMP_TWOLIMB_BITS): New macro.
61992         (mpn_t): New type.
61993         (multiply, divide, convert_to_decimal, decode_long_double,
61994         scale10_round_long_double, scale10_round_decimal_long_double,
61995         floorlog10l): New functions.
61996         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61997         for the %f, %F, %e, %E, %g, %G directives.
61998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62000         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
62001         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
62002         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62003         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62004         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62005         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62009         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
62010         * modules/snprintf-posix (Depends-on): Likewise.
62011         * modules/sprintf-posix (Depends-on): Likewise.
62012         * modules/vasnprintf-posix (Depends-on): Likewise.
62013         * modules/vasprintf-posix (Depends-on): Likewise.
62014         * modules/vfprintf-posix (Depends-on): Likewise.
62015         * modules/vsnprintf-posix (Depends-on): Likewise.
62016         * modules/vsprintf-posix (Depends-on): Likewise.
62017         * modules/vasnprintf (Files): Add lib/float+.h.
62018         * doc/functions/fprintf.texi: Update.
62019         * doc/functions/printf.texi: Update.
62020         * doc/functions/snprintf.texi: Update.
62021         * doc/functions/sprintf.texi: Update.
62022         * doc/functions/vfprintf.texi: Update.
62023         * doc/functions/vprintf.texi: Update.
62024         * doc/functions/vsnprintf.texi: Update.
62025         * doc/functions/vsprintf.texi: Update.
62026
62027 2007-05-18  Bruno Haible  <bruno@clisp.org>
62028
62029         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62030
62031 2007-05-18  Bruno Haible  <bruno@clisp.org>
62032
62033         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62034         for printing 64-bit integers. Needed for mingw.
62035
62036 2007-05-18  Bruno Haible  <bruno@clisp.org>
62037
62038         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62039         gl_FUNC_FREXPL_WORKS.
62040         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62041
62042 2007-05-18  Bruno Haible  <bruno@clisp.org>
62043
62044         * modules/frexpl-nolibm-tests: New file.
62045
62046         * modules/frexpl-nolibm: New file.
62047         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62048
62049 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62050
62051         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62052         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62053         GCC 4.2, which otherwise issues a lot of warnings.
62054         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62055         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62056         Likewise.
62057         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62058         * modules/iconv_open (iconv.h): Likewise.
62059         * modules/locale (locale.h): Likewise.
62060         * modules/netinet_in (netinet/in.h): Likewise.
62061         * modules/sys_select (sys_select.h): Likewise.
62062         * modules/sys_socket (sys/socket.h): Likewise.
62063         * modules/sys_stat (sys/stat.h): Likewise.
62064         * modules/sysexits (sysexits.h): Likewise.
62065         * modules/unistd (unistd.h): Likewise.
62066
62067 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62068
62069         * modules/closein-tests (Makefile.am): Distribute
62070         `test-closein.sh'.
62071
62072 2007-05-17  Bruno Haible  <bruno@clisp.org>
62073
62074         * tests/test-printf-posix.output: Renamed from
62075         tests/test-fprintf-posix.out.
62076         * modules/fprintf-posix-tests: Update.
62077         * modules/printf-posix-tests: Update.
62078         * modules/vfprintf-posix-tests: Update.
62079         * modules/vprintf-posix-tests: Update.
62080         * tests/test-fprintf-posix.sh: Update.
62081         * tests/test-printf-posix.sh: Update.
62082         * tests/test-vfprintf-posix.sh: Update.
62083         * tests/test-vprintf-posix.sh: Update.
62084         Reported by Ralf Wildenhues.
62085
62086 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62087
62088         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62089         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62090         GCC 4.2, which otherwise issues a lot of warnings.
62091         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62092         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62093         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62094         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62095         it should no longer be needed.
62096         * lib/string_.h: Likewise.
62097         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62098         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62099         * modules/inttypes (inttypes.h): Likewise.
62100         * modules/math (math.h): Likewise.
62101         * modules/search (search.h): Likewise.
62102         * modules/signal (signal.h): Likewise.
62103         * modules/stdint (stdint.h): Likewise.
62104         * modules/stdio (stdio.h): Likewise.
62105         * modules/stdlib (stdlib.h): Likewise.
62106         * modules/string (string.h): Likewise.
62107         * modules/sys_time (sys/time.h): Likewise.
62108         * modules/time (time.h): Likewise.
62109         * modules/wchar (wchar.h): Likewise.
62110         * modules/wctype (wtype.h): Likewise.
62111
62112 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62113
62114         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62115
62116 2007-05-13  Bruno Haible  <bruno@clisp.org>
62117
62118         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62119         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62120         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62121         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62122         (gl_PREREQ_STRTOK_R): Don't require it here.
62123
62124 2007-05-13  Bruno Haible  <bruno@clisp.org>
62125
62126         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62127         when used in C++ mode.
62128
62129 2007-05-12  Bruno Haible  <bruno@clisp.org>
62130
62131         * lib/linebuffer.h: Tweak doc.
62132         * lib/linebuffer.c: Likewise.
62133
62134 2007-05-12  James Youngman  <jay@gnu.org>
62135
62136         * lib/linebuffer.c (readlinebuffer_delim): New function,
62137         like readlinebuffer, but use a caller-specified delimiter.
62138         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62139         as the delimiter.
62140         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62141
62142 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62143
62144         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62145         * modules/openat (Files): Remove openat-die.c.
62146         (Depends-on): Add openat-die.
62147         * modules/openat-die: New module.
62148
62149 2007-05-06  Bruno Haible  <bruno@clisp.org>
62150
62151         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62152         Update with info about Cygwin.
62153         * doc/functions/fprintf.texi: Update.
62154         * doc/functions/printf.texi: Update.
62155         * doc/functions/snprintf.texi: Update.
62156         * doc/functions/sprintf.texi: Update.
62157         * doc/functions/vfprintf.texi: Update.
62158         * doc/functions/vprintf.texi: Update.
62159         * doc/functions/vsnprintf.texi: Update.
62160         * doc/functions/vsprintf.texi: Update.
62161         Reported by Eric Blake.
62162
62163 2007-05-06  Bruno Haible  <bruno@clisp.org>
62164
62165         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62166         padding ourselves for the floating-point directives.
62167         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62168         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62169         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62170         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62171         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62174         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62176         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62178         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62179         * tests/test-snprintf-posix.h (test_function): Also check the width
62180         and some flags in the %f directive.
62181         * tests/test-sprintf-posix.h (test_function): Likewise.
62182         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62183         * tests/test-vasprintf-posix.c (test_function): Likewise.
62184         * doc/functions/fprintf.texi: Update.
62185         * doc/functions/printf.texi: Update.
62186         * doc/functions/snprintf.texi: Update.
62187         * doc/functions/sprintf.texi: Update.
62188         * doc/functions/vfprintf.texi: Update.
62189         * doc/functions/vprintf.texi: Update.
62190         * doc/functions/vsnprintf.texi: Update.
62191         * doc/functions/vsprintf.texi: Update.
62192
62193 2007-05-06  Bruno Haible  <bruno@clisp.org>
62194
62195         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62196         pass the ' flag character to sprintf or snprintf.
62197         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62199         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62200         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62201         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62202         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62204         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62206         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62207         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62208         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62209         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62210         flag.
62211         * tests/test-sprintf-posix.h (test_function): Likewise.
62212         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62213         * tests/test-vasprintf-posix.c (test_function): Likewise.
62214         * doc/functions/fprintf.texi: Update.
62215         * doc/functions/printf.texi: Update.
62216         * doc/functions/snprintf.texi: Update.
62217         * doc/functions/sprintf.texi: Update.
62218         * doc/functions/vfprintf.texi: Update.
62219         * doc/functions/vprintf.texi: Update.
62220         * doc/functions/vsnprintf.texi: Update.
62221         * doc/functions/vsprintf.texi: Update.
62222
62223 2007-05-01  Bruno Haible  <bruno@clisp.org>
62224
62225         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62226
62227 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62230         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62231
62232 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62233
62234         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62235         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62236         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62237
62238 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62239
62240         * lib/argp-help.c (struct hol_entry): New member `ord'.
62241         (HOL_ENTRY_PTRCMP): Use ord for comparison
62242         (hol_sort): Initialize ord.
62243
62244 2007-05-01  Bruno Haible  <bruno@clisp.org>
62245
62246         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62247         Reported by Eric Blake.
62248         * doc/gnulib.texi (Function Substitutes): Update.
62249
62250 2007-05-01  Bruno Haible  <bruno@clisp.org>
62251
62252         * doc/functions.texi: Remove file, now redundant through
62253         doc/functions/*.texi.
62254
62255 2007-05-01  Bruno Haible  <bruno@clisp.org>
62256
62257         * modules/argp (Depends-on): Add sleep.
62258
62259 2007-05-01  Bruno Haible  <bruno@clisp.org>
62260
62261         * modules/sleep-tests: New file.
62262         * tests/test-sleep.c: New file.
62263
62264         * modules/sleep: New file.
62265         * lib/sleep.c: New file.
62266         * m4/sleep.m4: New file.
62267         * lib/unistd_.h (sleep): New declaration.
62268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62269         HAVE_SLEEP.
62270         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62271         * doc/functions/sleep.texi: Document the sleep module.
62272
62273 2007-05-01  Bruno Haible  <bruno@clisp.org>
62274
62275         * lib/sigprocmask.h: Remove file.
62276         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62277         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62279         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62280         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62281         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62282         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62283         HAVE_SIGSET_T as a shell variable.
62284         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62285         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62286         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62287         (Depends-on): Add signal. Remove verify.
62288         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62289         (Include): Mention <signal.h> instead of sigprocmask.h.
62290         * NEWS: Mention the change.
62291         * lib/fatal-signal.c: Don't include sigprocmask.h.
62292
62293 2007-05-01  Bruno Haible  <bruno@clisp.org>
62294
62295         * modules/signal: New file.
62296         * lib/signal_.h: New file.
62297         * m4/signal_h.m4: New file.
62298
62299 2007-05-01  Bruno Haible  <bruno@clisp.org>
62300
62301         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62302         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62303         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62304         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62305
62306 2007-05-01  Bruno Haible  <bruno@clisp.org>
62307
62308         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62309         configure time.
62310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62311         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62312         * modules/sys_stat (Makefile.am): Substitute their values into
62313         sys/stat.h.
62314
62315 2007-05-01  Bruno Haible  <bruno@clisp.org>
62316
62317         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62318         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62319         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62320
62321 2007-05-01  Bruno Haible  <bruno@clisp.org>
62322
62323         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62324         'assert' module here.
62325
62326 2007-05-01  Bruno Haible  <bruno@clisp.org>
62327
62328         * doc/functions/*.texi: New files.
62329         * doc/functions/google-ranking.txt: New file.
62330         * doc/gnulib.texi (Function Substitutes): New chapter.
62331         (ctime, inet_ntoa): Remove sections.
62332         * doc/ctime.texi: Remove file.
62333         * doc/inet_ntoa.texi: Remove file.
62334         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62335         dependencies.
62336         (%.info): New rule, specifying a --reference-limit.
62337
62338 2007-05-01  Bruno Haible  <bruno@clisp.org>
62339
62340         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62341
62342 2007-05-01  Bruno Haible  <bruno@clisp.org>
62343
62344         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62345         the portability of 'mkdir' to mingw systems.
62346
62347 2007-05-01  Bruno Haible  <bruno@clisp.org>
62348
62349         * doc/headers/google-ranking.txt: New file.
62350
62351 2007-04-30  Eric Blake  <ebb9@byu.net>
62352
62353         Prefer fseeko to fseek.
62354         * modules/getpass (Depends-on): Add fseeko.
62355         * lib/getpass.c (getpass): Use fseeko, not fseek.
62356
62357 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62358
62359         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62360         assumes the sorting is stable, while most qsort implementations
62361         are not.  Use argument addresses to ensure they never compare as
62362         equal.
62363
62364         * tests/test-argp-2.sh (usage-indent test): Fix output
62365         (func_compare): Restore diff options
62366         * tests/test-argp.c: Restore #include "progname.h"
62367
62368 2007-04-29  Bruno Haible  <bruno@clisp.org>
62369
62370         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62371         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62372         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62374         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62375         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62376         (TESTS, check_PROGRAMS): Add test-snprintf.
62377         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62378         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62379         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62380         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62381         assertions that fail on HP-UX, OSF/1, or IRIX.
62382         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62383
62384 2007-04-29  Bruno Haible  <bruno@clisp.org>
62385
62386         * MODULES.html.sh (posix_functions): Remove 'contents'.
62387
62388 2007-04-29  Karl Berry  <karl@gnu.org>
62389
62390         * config/srclist.txt (gendocs_template_min): new entry.
62391
62392 2007-04-29  Bruno Haible  <bruno@clisp.org>
62393
62394         Work around fpurge bug on BSD systems.
62395         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62396         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62397         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62398         fpurge to rpl_fpurge if the system already has this function.
62399         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62400         the case where the system already has this function. Correct invariants
62401         on BSD systems.
62402         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62403         BSD systems.
62404
62405 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62406
62407         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62408         proposed by Sven Verdoolaege.
62409
62410         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62411         options.
62412         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62413         (usage and help tests): Update
62414
62415 2007-04-29  Bruno Haible  <bruno@clisp.org>
62416
62417         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62418         Print more information in case of failure. Disable a test on BeOS.
62419
62420 2007-04-29  Bruno Haible  <bruno@clisp.org>
62421
62422         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62423         This helps debugging on systems on which no gdb is available.
62424
62425 2007-04-29  Bruno Haible  <bruno@clisp.org>
62426
62427         * lib/freading.h: Improve comments.
62428         * lib/fwriting.h: Likewise.
62429         * tests/test-freading.c (main): Don't check freading immediately after
62430         repositioning. Needed for glibc.
62431
62432 2007-04-29  Bruno Haible  <bruno@clisp.org>
62433
62434         * lib/freading.c (freading): Trivial simplification.
62435
62436 2007-04-28  Bruno Haible  <bruno@clisp.org>
62437
62438         * tests/test-fwriting.c (main): Also test the interaction between
62439         fflush and fwriting.
62440         * modules/fwriting-tests (Depends-on): Add fflush.
62441
62442         * tests/test-freading.c (main): Also test the interaction between
62443         fflush and freading.
62444         * modules/freading-tests (Depends-on): Add fflush.
62445
62446 2007-04-28  Bruno Haible  <bruno@clisp.org>
62447
62448         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62449         fseeko and ftello.
62450         Suggested by Eric Blake.
62451
62452 2007-04-28  Jim Meyering  <jim@meyering.net>
62453
62454         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62455         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62456         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62457
62458 2007-04-27  Eric Blake  <ebb9@byu.net>
62459
62460         * doc/headers/assert.texi (assert.h): Document assert module use.
62461
62462 2007-04-27  Bruno Haible  <bruno@clisp.org>
62463
62464         * doc/headers/*.texi: New files.
62465         * doc/gnulib.texi (Header File Substitutes): New chapter.
62466         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62467         dependencies.
62468         (standards.info ,standards.html, standards.dvi): Update dependencies.
62469         (mostlyclean, clean): New targets.
62470
62471 2007-04-27  Bruno Haible  <bruno@clisp.org>
62472
62473         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62474         * modules/sysexits (Files, Makefile.am): Update.
62475
62476         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62477         * modules/sys_socket (Files, Makefile.am): Update.
62478
62479         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62480         * modules/sys_stat (Files, Makefile.am): Update.
62481
62482 2007-04-27  Eric Blake  <ebb9@byu.net>
62483
62484         * lib/freading.h: Improve comments.
62485         * lib/fwriting.h: Likewise.
62486         * lib/fflush.c: Likewise.
62487
62488         Fix closein for mingw.
62489         * modules/closein-tests: Add tests for closein.
62490         * tests/test-closein.c: New file.
62491         * tests/test-closein.sh: Likewise.
62492         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62493         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62494
62495 2007-04-27  Bruno Haible  <bruno@clisp.org>
62496
62497         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62498         version is < 6.
62499         * lib/math_.h [__DECC]: Likewise.
62500         * lib/stdio_.h [__DECC]: Likewise.
62501         * lib/stdlib_.h [__DECC]: Likewise.
62502         * lib/string_.h [__DECC]: Likewise.
62503         * lib/time_.h [__DECC]: Likewise.
62504         * lib/wchar_.h [__DECC]: Likewise.
62505         * lib/wctype_.h [__DECC]: Likewise.
62506
62507 2007-04-27  Bruno Haible  <bruno@clisp.org>
62508
62509         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62510
62511 2007-04-27  Bruno Haible  <bruno@clisp.org>
62512
62513         * lib/fflush.c: Add comments.
62514         * modules/fpurge-tests (Depends-on): Add fflush.
62515         * modules/freadable-tests (Depends-on): Likewise.
62516         * modules/fwritable-tests (Depends-on): Likewise.
62517
62518 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62519
62520         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62521         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62522         Report by Bruno Haible <bruno@clisp.org>.
62523
62524 2007-04-26  Eric Blake  <ebb9@byu.net>
62525
62526         Fix fflush on mingw.
62527         * modules/fflush (Depends-on): Add freading.
62528         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62529         but unread data.
62530
62531 2007-04-26  Eric Blake  <ebb9@byu.net>
62532         and Bruno Haible  <bruno@clisp.org>
62533
62534         Implement freading and fwriting.
62535         * lib/freading.c: New file.
62536         * lib/freading.h: Likewise.
62537         * m4/freading.m4: Likewise.
62538         * modules/freading: Likewise.
62539         * modules/freading-tests: Likewise.
62540         * tests/test-freading.c: Likewise.
62541         * lib/fwriting.c: New file.
62542         * lib/fwriting.h: Likewise.
62543         * m4/fwriting.m4: Likewise.
62544         * modules/fwriting: Likewise.
62545         * modules/fwriting-tests: Likewise.
62546         * tests/test-fwriting.c: Likewise.
62547         * MODULES.html.sh (File stream based Input/Output): Mention them.
62548
62549 2007-04-26  Bruno Haible  <bruno@clisp.org>
62550
62551         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62552         'long' when we assume it.
62553         Suggested by Eric Blake.
62554
62555 2007-04-26  Bruno Haible  <bruno@clisp.org>
62556
62557         Ensure fseeko, ftello are declared on glibc systems.
62558         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62559         * modules/fseeko (configure.ac-early): Likewise.
62560         * modules/ftello (configure.ac-early): Likewise.
62561         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62562         AC_FUNC_FSEEKO for this.
62563         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62564         (gl_CHECK_FSEEKO): Remove macro.
62565
62566 2007-04-26  Bruno Haible  <bruno@clisp.org>
62567
62568         * tests/test-fflush.c (main): Also check the ftell result after
62569         fflush and fseek/fseeko.
62570         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62571         file descriptor position cache in the stream.
62572         * lib/fseeko.c (rpl_fseeko): Likewise.
62573
62574 2007-04-26  Bruno Haible  <bruno@clisp.org>
62575
62576         * modules/fflush-tests (Depends-on): Add fseeko.
62577
62578 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62579             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62580
62581         * lib/argz_.h: ensure error_t definition is obtained in same
62582         mechanism system argz.h would have.
62583         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62584         argz facilities are known bad.  Err on the side of caution if
62585         cross-compiling.
62586
62587 2007-04-25  Eric Blake  <ebb9@byu.net>
62588
62589         * lib/fpurge.c (includes): Use stdlib.h for free.
62590         * tests/test-fflush.c (main): Also test fflush-fseeko.
62591
62592 2007-04-25  Bruno Haible  <bruno@clisp.org>
62593
62594         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62595         * lib/fseeko.c: New file.
62596         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62597         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62598         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62599         gl_FUNC_FSEEKO.
62600         (gl_FUNC_FSEEKO): Invoke it.
62601         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62602         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62603         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62604
62605 2007-04-25  Bruno Haible  <bruno@clisp.org>
62606
62607         * modules/fflush (Depends-on): Add ftello.
62608
62609 2007-04-25  Bruno Haible  <bruno@clisp.org>
62610
62611         * modules/ftello-tests: New file.
62612         * tests/test-ftello.c: New file.
62613
62614         * modules/ftello: New file.
62615         * m4/ftello.m4: New file.
62616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62617         HAVE_FTELLO.
62618         * lib/stdio_.h (ftello): New declaration.
62619         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62620         HAVE_FTELLO.
62621
62622 2007-04-25  Bruno Haible  <bruno@clisp.org>
62623
62624         * modules/fseeko-tests: New file.
62625         * tests/test-fseeko.c: New file.
62626
62627         * modules/fseeko: New file.
62628         * m4/fseeko.m4: New file.
62629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62630         HAVE_FSEEKO.
62631         * lib/stdio_.h (fseeko): New declaration.
62632         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62633         HAVE_FSEEKO.
62634
62635 2007-04-25  Bruno Haible  <bruno@clisp.org>
62636
62637         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62638
62639 2007-04-25  Bruno Haible  <bruno@clisp.org>
62640
62641         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62642         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62643         * tests/test-unistd.c: Likewise.
62644         * tests/test-fcntl.c: Likewise.
62645
62646 2007-04-23  Eric Blake  <ebb9@byu.net>
62647
62648         * lib/fflush.c: Fix missing include.
62649         Reported by Bruno Haible.
62650
62651 2007-04-23  Bruno Haible  <bruno@clisp.org>
62652
62653         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62654         Reported by Eric Blake.
62655
62656 2007-04-23  Bruno Haible  <bruno@clisp.org>
62657
62658         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62659
62660 2007-04-23  Bruno Haible  <bruno@clisp.org>
62661
62662         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62663
62664 2007-04-23  Bruno Haible  <bruno@clisp.org>
62665
62666         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62667         Needed on HP-UX 11.
62668
62669 2007-04-16  Eric Blake  <ebb9@byu.net>
62670
62671         Make fflush rely on fpurge.
62672         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62673         open coding all variants.
62674         * modules/fflush (Depends-on): Add fpurge and unistd.
62675         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62676         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62677
62678         Fix --with-tests compilation on cygwin.
62679         * modules/argmatch-tests (Makefile.am): List gnulib library first
62680         in LDADD.
62681         * modules/argp-tests (Makefile.am): Likewise.
62682         * modules/array-list-tests (Makefile.am): Likewise.
62683         * modules/array-oset-tests (Makefile.am): Likewise.
62684         * modules/avltree-list-tests (Makefile.am): Likewise.
62685         * modules/avltree-oset-tests (Makefile.am): Likewise.
62686         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62687         * modules/carray-list-tests (Makefile.am): Likewise.
62688         * modules/dirname-tests (Makefile.am): Likewise.
62689         * modules/frexp-tests (Makefile.am): Likewise.
62690         * modules/isnanl-tests (Makefile.am): Likewise.
62691         * modules/linked-list-tests (Makefile.am): Likewise.
62692         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62693         * modules/lock-tests (Makefile.am): Likewise.
62694         * modules/rbtree-list-tests (Makefile.am): Likewise.
62695         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62696         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62697         * modules/tls-tests (Makefile.am): Likewise.
62698         * modules/tsearch-tests (Makefile.am): Likewise.
62699         * modules/xvasprintf-tests (Makefile.am): Likewise.
62700
62701         Fix fpurge for cygwin.
62702         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62703         value.
62704         * modules/fpurge-tests (Depends-on): Clean up trash.
62705
62706 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62707
62708         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62709
62710         * m4/autobuild.m4: Re-indent.
62711
62712 2007-04-13  Bruno Haible  <bruno@clisp.org>
62713
62714         * modules/fpurge-tests: New file.
62715         * tests/test-fpurge.c: New file.
62716
62717         * modules/fpurge: New file.
62718         * lib/fpurge.h: New file.
62719         * lib/fpurge.c: New file.
62720         * m4/fpurge.m4: New file.
62721
62722 2007-04-13  Bruno Haible  <bruno@clisp.org>
62723
62724         * modules/fbufmode-tests: New file.
62725         * tests/test-fbufmode.c: New file.
62726
62727         * modules/fbufmode: New file.
62728         * lib/fbufmode.h: New file.
62729         * lib/fbufmode.c: New file.
62730         * m4/fbufmode.m4: New file.
62731
62732 2007-04-13  Bruno Haible  <bruno@clisp.org>
62733
62734         * modules/fwritable-tests: New file.
62735         * tests/test-fwritable.c: New file.
62736
62737         * modules/fwritable: New file.
62738         * lib/fwritable.h: New file.
62739         * lib/fwritable.c: New file.
62740         * m4/fwritable.m4: New file.
62741
62742 2007-04-13  Bruno Haible  <bruno@clisp.org>
62743
62744         * modules/freadable-tests: New file.
62745         * tests/test-freadable.c: New file.
62746
62747         * modules/freadable: New file.
62748         * lib/freadable.h: New file.
62749         * lib/freadable.c: New file.
62750         * m4/freadable.m4: New file.
62751
62752 2007-04-13  Bruno Haible  <bruno@clisp.org>
62753
62754         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62755         MOSTLYCLEANFILES.
62756
62757 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62758
62759         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62760         gzip bootstrap.conf to avoid dragging in i18n machinery.
62761         (gnulib_tool_option): Use it.
62762
62763 2007-04-13  Bruno Haible  <bruno@clisp.org>
62764
62765         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62766         %F directives.
62767         * tests/test-vasprintf-posix.c (test_function): Likewise.
62768         * tests/test-snprintf-posix.h (test_function): Likewise.
62769         * tests/test-sprintf-posix.h (test_function): Likewise.
62770         * tests/test-fprintf-posix.h (test_function): Likewise.
62771         * tests/test-printf-posix.h (test_function): Likewise.
62772         * tests/test-fprintf-posix.out: Likewise.
62773
62774 2007-04-13  Bruno Haible  <bruno@clisp.org>
62775
62776         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62777         * modules/tls-tests (configure.ac): Likewise.
62778         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62779
62780 2007-04-13  Bruno Haible  <bruno@clisp.org>
62781
62782         * lib/tls.c (glthread_tls_get): Fix return type.
62783         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62784
62785 2007-04-12  Eric Blake  <ebb9@byu.net>
62786
62787         * modules/gettime (Depends-on): Remove gettime.
62788         Reported by Dmitry V. Levin.
62789
62790 2007-04-12  Bruno Haible  <bruno@clisp.org>
62791
62792         * modules/fflush (Include): Mention <stdio.h>.
62793         * modules/strtoimax (Include): Mention <inttypes.h>.
62794         * modules/strtoumax (Include): Likewise.
62795
62796 2007-04-12  Eric Blake  <ebb9@byu.net>
62797
62798         * .cvsignore: New file.
62799         * .gitignore: Likewise.
62800
62801 2007-04-12  Bruno Haible  <bruno@clisp.org>
62802
62803         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62804         not before, since $(LDADD) often contains libgnu.a.
62805         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62806         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62807         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62808         Needed on Cygwin.
62809
62810 2007-04-12  Eric Blake  <ebb9@byu.net>
62811
62812         Work around glibc's failure to flush stdin on fclose.
62813         * lib/closein.c (close_stdin): Flush stdin before closing.
62814
62815         Work around glibc's failure to reset seekable stdin on exit.
62816         * modules/closein: New module.
62817         * lib/closein.c: New file.
62818         * lib/closein.h: Likewise.
62819         * m4/closein.m4: Likewise.
62820         * MODULES.html.sh (File stream based Input/Output): Document it.
62821
62822 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62823
62824         * gnulib-tool: Rename generated 'autobuild' script to
62825         'do-autobuild' in --create-megatestdir output.
62826
62827         * doc/gnulib.texi (Build robot for gnulib): Fix.
62828
62829 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62830
62831         * modules/sysexits (Depends-on): Add absolute-header.
62832
62833 2007-04-12  Eric Blake  <ebb9@byu.net>
62834
62835         No need to preserve errno on success.
62836         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62837         Reported by Bruno Haible.
62838
62839 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62840
62841         * MODULES.html.sh (Support for maintaining and releasing
62842         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62843
62844 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62845
62846         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62847
62848 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62849
62850         * modules/autobuild: New module.
62851
62852         * m4/autobuild.m4: New file.
62853
62854 2007-04-11  Bruno Haible  <bruno@clisp.org>
62855
62856         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62857         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62858         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62859         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62860         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62861         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62862         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62863         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62864         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62865         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62866         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62867         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62868         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62869         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62870         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62871         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62873         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62874         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62875         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62876         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62877         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62878         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62879         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62880         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62882         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62883         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62884         Reported by Eric Blake.
62885
62886 2007-04-11  Bruno Haible  <bruno@clisp.org>
62887
62888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62889
62890 2007-04-10  Bruno Haible  <bruno@clisp.org>
62891
62892         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62893         for NaN and Infinity. Needed on FreeBSD 6.1.
62894         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62895         regarding results for "%010a" of Infinity and NaN.
62896         * tests/test-vasprintf-posix.c (test_function): Likewise.
62897         * tests/test-snprintf-posix.h (test_function): Likewise.
62898         * tests/test-sprintf-posix.h (test_function): Likewise.
62899         * tests/test-fprintf-posix.h (test_function): Likewise.
62900         * tests/test-printf-posix.h (test_function): Likewise.
62901         * tests/test-fprintf-posix.out: Likewise.
62902
62903 2007-04-10  Bruno Haible  <bruno@clisp.org>
62904
62905         * modules/locale-tests: New file.
62906         * tests/test-locale.c: New file.
62907
62908         * modules/locale: New file.
62909         * lib/locale_.h: New file.
62910         * m4/locale_h.m4: New file.
62911
62912 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62913             Bruno Haible  <bruno@clisp.org>
62914
62915         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62916         be determined, test for availability of the copysignf, copysign,
62917         copysignl functions.
62918         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62919         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62920         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62921
62922 2007-04-09  Eric Blake  <ebb9@byu.net>
62923
62924         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62925         * modules/stdio (Makefile.am): Support fflush.
62926         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62927         * modules/fflush: New file.
62928         * lib/fflush.c: Likewise.
62929         * m4/fflush.m4: Likewise.
62930         * modules/fflush-tests: New test.
62931         * tests/test-fflush.c: Likewise.
62932         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62933
62934 2007-04-06  Bruno Haible  <bruno@clisp.org>
62935
62936         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62937         (VASNPRINTF): Use signbit for faster determination whether to print a
62938         minus sign.
62939         * modules/vasnprintf (Files): Remove lib/float+.h.
62940         * modules/fprintf-posix (Depends-on): Add signbit.
62941         * modules/snprintf-posix (Depends-on): Likewise.
62942         * modules/sprintf-posix (Depends-on): Likewise.
62943         * modules/vasnprintf-posix (Depends-on): Likewise.
62944         * modules/vasprintf-posix (Depends-on): Likewise.
62945         * modules/vfprintf-posix (Depends-on): Likewise.
62946         * modules/vsnprintf-posix (Depends-on): Likewise.
62947         * modules/vsprintf-posix (Depends-on): Likewise.
62948
62949 2007-04-06  Bruno Haible  <bruno@clisp.org>
62950
62951         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62952         * tests/test-frexpl.c (main): Likewise.
62953         * tests/test-ldexpl.c (main): Likewise.
62954         * modules/frexp-tests (Depends-on): Add signbit.
62955         * modules/frexpl-tests (Depdends-on): Likewise.
62956         * modules/ldexpl-tests (Depdends-on): Likewise.
62957
62958 2007-04-06  Bruno Haible  <bruno@clisp.org>
62959
62960         * modules/signbit-tests: New file.
62961         * tests/test-signbit.c: New file.
62962
62963         * modules/signbit: New file.
62964         * lib/signbitf.c: New file.
62965         * lib/signbitd.c: New file.
62966         * lib/signbitl.c: New file.
62967         * m4/signbit.m4: New file.
62968         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62969         (signbit): New macro.
62970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62971         REPLACE_SIGNBIT.
62972         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62973         REPLACE_FREXPL into math.h.
62974
62975 2007-04-06  Bruno Haible  <bruno@clisp.org>
62976
62977         * modules/isnanf-nolibm-tests: New file.
62978         * tests/test-isnanf.c: New file.
62979
62980         * modules/isnanf-nolibm: New file.
62981         * lib/isnanf.h: New file.
62982         * lib/isnanf.c: New file.
62983         * lib/isnan.c: Consider the USE_FLOAT macro.
62984         * m4/isnanf.m4: New file.
62985
62986 2007-04-06  Bruno Haible  <bruno@clisp.org>
62987
62988         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62989         (Link): New section.
62990
62991         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62992
62993 2007-04-06  Bruno Haible  <bruno@clisp.org>
62994
62995         Assume the 'long double' type.
62996         * m4/longdouble.m4: Remove file.
62997         * config/srclist.txt: Don't mention longdouble.m4.
62998         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62999         * lib/float+.h: Likewise.
63000         * lib/frexp.c: Likewise.
63001         * lib/printf-args.h: Likewise.
63002         * lib/printf-args.c: Likewise.
63003         * lib/printf-frexp.c: Likewise.
63004         * lib/printf-parse.c: Likewise.
63005         * lib/vasnprintf.c: Likewise.
63006         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
63007         * m4/intl.m4: Likewise.
63008         * m4/isnanl.m4: Likewise.
63009         * m4/printf.m4: Likewise.
63010         * m4/printf-frexpl.m4: Likewise.
63011         * m4/vasnprintf.m4: Likewise.
63012         * modules/allocsa (Files): Remove m4/longdouble.m4.
63013         * modules/gettext (Files): Likewise.
63014         * modules/relocatable-prog-wrapper (Files): Likewise.
63015         * modules/vasnprintf (Files): Likewise.
63016         * modules/isnanl (Files): Likewise.
63017         (Include): Simplify.
63018         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63019         (Include): Simplify.
63020         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63021         (Include): Simplify.
63022         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63023         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63024         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63025         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63026         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63027         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63028         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63029         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63030         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63031         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63032         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63033         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63034         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63035         * tests/test-isnanl.c: Likewise.
63036         * tests/test-snprintf-posix.h: Likewise.
63037         * tests/test-sprintf-posix.h: Likewise.
63038         * tests/test-vasnprintf-posix.c: Likewise.
63039         * tests/test-vasnprintf-posix2.c: Likewise.
63040         * tests/test-vasprintf-posix.c: Likewise.
63041
63042 2007-04-06  Bruno Haible  <bruno@clisp.org>
63043
63044         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63045         * lib/math_.h [__DECC]: Include the overridden include file through
63046         #include_next, outside the double-inclusion guard.
63047         * lib/stdio_.h [__DECC]: Likewise.
63048         * lib/stdlib_.h [__DECC]: Likewise.
63049         * lib/string_.h [__DECC]: Likewise.
63050         * lib/time_.h [__DECC]: Likewise.
63051         * lib/wchar_.h [__DECC]: Likewise.
63052         * lib/wctype_.h [__DECC]: Likewise.
63053         * lib/inttypes_.h [__DECC]: Likewise.
63054         Reported by Albert Chin <china@thewrittenword.com> in
63055         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63056
63057 2007-04-04  Eric Blake  <ebb9@byu.net>
63058
63059         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63060         1.5.x.
63061
63062 2007-04-04  Bruno Haible  <bruno@clisp.org>
63063
63064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63065         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63066
63067 2007-04-04  Bruno Haible  <bruno@clisp.org>
63068
63069         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63070         results for "%010a" of Infinity and NaN.
63071         * tests/test-vasprintf-posix.c (test_function): Likewise.
63072         * tests/test-snprintf-posix.h (test_function): Likewise.
63073         * tests/test-sprintf-posix.h (test_function): Likewise.
63074         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63075         * tests/test-printf-posix.h (test_function): Likewise.
63076         * tests/test-fprintf-posix.out: Update.
63077         Needed for FreeBSD 6.1.
63078
63079 2007-04-04  Bruno Haible  <bruno@clisp.org>
63080
63081         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63082         directly used by the gnulib modules nor by gnulib-tool.
63083
63084 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63085
63086         * DEPENDENCIES: Give overall description of version dependency
63087         desirability.  Use more-typical names for apps.
63088         Add shell, coreutils, diffutils, grep, tar, gzip.
63089
63090 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63091
63092         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63093
63094 2007-04-04  Karl Berry  <karl@gnu.org>
63095
63096         * MODULES.html.sh (func_module): missing '.
63097
63098 2007-04-03  Bruno Haible  <bruno@clisp.org>
63099
63100         * modules/argmatch-tests (Makefile.am): New variable
63101         test_argmatch_LDADD.
63102         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63103         * modules/array-list-tests (Makefile.am): New variable
63104         test_array_list_LDADD.
63105         * modules/array-oset-tests (Makefile.am): New variable
63106         test_array_oset_LDADD.
63107         * modules/avltree-list-tests (Makefile.am): New variable
63108         test_avltree_list_LDADD.
63109         * modules/avltree-oset-tests (Makefile.am): New variable
63110         test_avltree_oset_LDADD.
63111         * modules/avltreehash-list-tests (Makefile.am): New variable
63112         test_avltreehash_list_LDADD.
63113         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63114         test_canonicalize_lgpl_LDADD.
63115         * modules/carray-list-tests (Makefile.am): New variable
63116         test_carray_list_LDADD.
63117         * modules/dirname-tests (Makefile.am): New variable
63118         test_dirname_LDADD.
63119         * modules/linked-list-tests (Makefile.am): New variable
63120         test_linked_list_LDADD.
63121         * modules/linkedhash-list-tests (Makefile.am): New variable
63122         test_linkedhash_list_LDADD.
63123         * modules/rbtree-list-tests (Makefile.am): New variable
63124         test_rbtree_list_LDADD.
63125         * modules/rbtree-oset-tests (Makefile.am): New variable
63126         test_rbtree_oset_LDADD.
63127         * modules/rbtreehash-list-tests (Makefile.am): New variable
63128         test_rbtreehash_list_LDADD.
63129         * modules/xvasprintf-tests (Makefile.am): New variable
63130         test_xvasprintf_LDADD.
63131         Reported by Eric Blake.
63132
63133 2007-04-03  Eric Blake  <ebb9@byu.net>
63134
63135         * DEPENDENCIES: Weaken m4 requirements.
63136
63137 2007-04-03  Bruno Haible  <bruno@clisp.org>
63138
63139         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63140         * modules/isnanl-tests (configure.ac): Likewise.
63141
63142 2007-04-03  Ben Pfaff  <blp@gnu.org>
63143
63144         * modules/iconv_open: Add $(srcdir)/ to source directory
63145         references in Makefile fragments that call gperf, to fix VPATH
63146         builds.
63147
63148 2007-04-03  Bruno Haible  <bruno@clisp.org>
63149
63150         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63151         * lib/ldexpl.c: Undo last change.
63152
63153 2007-04-03  Bruno Haible  <bruno@clisp.org>
63154
63155         * modules/printf-frexpl (Depends-on): Undo last change.
63156         (Files): Add m4/ldexpl.m4.
63157
63158 2007-04-03  Bruno Haible  <bruno@clisp.org>
63159
63160         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63161         * modules/isnanl (Link): New section.
63162
63163         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63164         * modules/frexp (Link): New section.
63165
63166         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63167         * modules/frexpl (Link): New section.
63168
63169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63170         * modules/ldexpl (Link): New section.
63171
63172 2007-04-03  Bruno Haible  <bruno@clisp.org>
63173
63174         * modules/TEMPLATE-EXTENDED: New file.
63175         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63176
63177 2007-04-03  Bruno Haible  <bruno@clisp.org>
63178
63179         * DEPENDENCIES: New file.
63180         Suggested by Simon Josefsson.
63181
63182 2007-04-03  Bruno Haible  <bruno@clisp.org>
63183
63184         * doc/gnulib.texi: Escape @.
63185
63186 2007-04-03  James Youngman  <jay@gnu.org>
63187         and Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63190         birthtime on all systems that have birthtime, not just those which
63191         use st_birthtimensec rather than st_birthtim.  Putting zero in
63192         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63193         that the birth time is not available for files on an NFS mount.
63194
63195 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63196
63197         * modules/memxor: Move back from crypto/, suggested by Bruno.
63198         * modules/crypto/hmac-sha1: Fix memxor dependency.
63199
63200         * modules/crypto/gc: Moved from ../.
63201
63202 2007-04-02  Eric Blake  <ebb9@byu.net>
63203
63204         * lib/ldexpl.c (includes): Avoid libm.
63205
63206         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63207
63208 2007-04-02  Bruno Haible  <bruno@clisp.org>
63209
63210         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63211         on IRIX.
63212
63213 2007-04-02  Bruno Haible  <bruno@clisp.org>
63214
63215         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63216         x86 or x86_64 platforms running MacOS X.
63217         Reported by Ryan Schmidt <@ryandesign.com>.
63218
63219 2007-04-02  Bruno Haible  <bruno@clisp.org>
63220
63221         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63222         i386.
63223
63224 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63225
63226         * modules/crypto/arcfour: Moved from ../.
63227         * modules/crypto/arcfour-tests: Moved from ../.
63228         * modules/crypto/arctwo: Moved from ../.
63229         * modules/crypto/arctwo-tests: Moved from ../.
63230         * modules/crypto/des: Moved from ../.
63231         * modules/crypto/des-tests: Moved from ../.
63232         * modules/crypto/gc-arcfour: Moved from ../.
63233         * modules/crypto/gc-arcfour-tests: Moved from ../.
63234         * modules/crypto/gc-arctwo: Moved from ../.
63235         * modules/crypto/gc-arctwo-tests: Moved from ../.
63236         * modules/crypto/gc-des: Moved from ../.
63237         * modules/crypto/gc-des-tests: Moved from ../.
63238         * modules/crypto/gc-hmac-md5: Moved from ../.
63239         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63240         * modules/crypto/gc-hmac-sha1: Moved from ../.
63241         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63242         * modules/crypto/gc-md2: Moved from ../.
63243         * modules/crypto/gc-md2-tests: Moved from ../.
63244         * modules/crypto/gc-md4: Moved from ../.
63245         * modules/crypto/gc-md4-tests: Moved from ../.
63246         * modules/crypto/gc-md5: Moved from ../.
63247         * modules/crypto/gc-md5-tests: Moved from ../.
63248         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63249         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63250         * modules/crypto/gc-random: Moved from ../.
63251         * modules/crypto/gc-rijndael: Moved from ../.
63252         * modules/crypto/gc-rijndael-tests: Moved from ../.
63253         * modules/crypto/gc-sha1: Moved from ../.
63254         * modules/crypto/gc-sha1-tests: Moved from ../.
63255         * modules/crypto/gc-tests: Moved from ../.
63256         * modules/crypto/hmac-md5: Moved from ../.
63257         * modules/crypto/hmac-md5-tests: Moved from ../.
63258         * modules/crypto/hmac-sha1: Moved from ../.
63259         * modules/crypto/hmac-sha1-tests: Moved from ../.
63260         * modules/crypto/md2: Moved from ../.
63261         * modules/crypto/md2-tests: Moved from ../.
63262         * modules/crypto/md4: Moved from ../.
63263         * modules/crypto/md4-tests: Moved from ../.
63264         * modules/crypto/md5: Moved from ../.
63265         * modules/crypto/md5-tests: Moved from ../.
63266         * modules/crypto/memxor: Moved from ../.
63267         * modules/crypto/rijndael: Moved from ../.
63268         * modules/crypto/rijndael-tests: Moved from ../.
63269         * modules/crypto/sha1: Moved from ../.
63270
63271 2007-03-30  James Youngman  <jay@gnu.org>
63272
63273         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63274         rename() to change the ctime of a file (because ctime is unaffected
63275         by rename on jfs2 on AIX 5.1).
63276         (main): Start by doing cleanup, in case a previous run failed leaving
63277         test files behind.
63278
63279 2007-03-31  Bruno Haible  <bruno@clisp.org>
63280
63281         Support old proprietary implementations of iconv.
63282         * modules/iconv_open: New file.
63283         * lib/iconv_.h: New file.
63284         * m4/iconv_h.m4: New file.
63285         * lib/iconv_open.c: New file.
63286         * lib/iconv_open-aix.gperf: New file.
63287         * lib/iconv_open-hpux.gperf: New file.
63288         * lib/iconv_open-irix.gperf: New file.
63289         * lib/iconv_open-osf.gperf: New file.
63290         * m4/iconv_open.m4: New file.
63291         * modules/linebreak (Depends-on): Add iconv_open.
63292         * modules/striconv (Depends-on): Likewise.
63293         * modules/striconveh (Depends-on): Likewise.
63294         * modules/unicodeio (Depends-on): Likewise.
63295         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63296         (iconv_t)(-1).
63297         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63298         conversion if cd is (iconv_t)(-1).
63299         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63300         is not possible.
63301
63302 2007-03-31  Bruno Haible  <bruno@clisp.org>
63303
63304         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63305         work on Solaris either. Protect also second use of "autodetect_jp".
63306
63307 2007-03-31  Bruno Haible  <bruno@clisp.org>
63308
63309         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63310         the function is not present.
63311
63312 2007-03-31  Bruno Haible  <bruno@clisp.org>
63313
63314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63315         the function is not present.
63316
63317 2007-03-31  Bruno Haible  <bruno@clisp.org>
63318
63319         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63320         a bug in HP-UX iconv_open().
63321
63322 2007-03-31  Bruno Haible  <bruno@clisp.org>
63323
63324         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63325         (Mathematics <math.h>): New section, add fpieee.
63326         (Input/output <stdio.h>): Add fseterr.
63327         (Mathematics <math.h>): New section, add printf-frexp.
63328         (Container data structures): Add sublist.
63329         (Core language properties): Add fpucw, inline.
63330         (Functions for greatest-width integer types <inttypes.h>): Add
63331         imaxabs, imaxdiv, inttypes.
63332         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63333         isnanl-nolibm, ldexp.
63334         (Mathematics <math.h>): New section, add printf-frexpl.
63335         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63336         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63337         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63338         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63339         (Unicode string functions): Add unistr/u*-mbtoucr.
63340         (Java): Add javacomp-script, javaexec-script.
63341         (C#): Add csharpcomp-script, csharpexec-script.
63342         (Support for building libraries and executables): Add havelib,
63343         relocatable-*.
63344         (Support for maintaining and releasing projects): Renamed from
63345         'Support for maintaining and release projects'. Add announce-gen.
63346
63347 2007-03-31  Bruno Haible  <bruno@clisp.org>
63348
63349         * README: Talk primarily about git.
63350         (git and CVS): Renamed from CVS.
63351         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63352         gnulib is available through git.
63353         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63354
63355 2007-03-30  Bruno Haible  <bruno@clisp.org>
63356
63357         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63358         * lib/poll_.h: Likewise.
63359         * lib/stat_.h: Likewise.
63360         * lib/sys_time_.h: Likewise.
63361         * lib/sysexit_.h: Likewise.
63362         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63363         * lib/stdbool_.h: Likewise.
63364         * lib/byteswap_.h: Add double-inclusion guard.
63365
63366 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63367
63368         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63369
63370 2007-03-30  Karl Berry  <karl@gnu.org>
63371
63372         * config/srclist-update: double space after USA in the license
63373         substitution, since that's how it's usually (?) written.
63374
63375 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63376
63377         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63378         reported by Bruno Haible.
63379
63380 2007-03-29  Bruno Haible  <bruno@clisp.org>
63381
63382         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63383         a bug in AIX iconv().
63384
63385 2007-03-29  Bruno Haible  <bruno@clisp.org>
63386
63387         * modules/ldexpl-tests: New file.
63388         * tests/test-ldexpl.c: New file.
63389
63390 2007-03-29  Bruno Haible  <bruno@clisp.org>
63391
63392         * lib/ldexpl.c: Include fpucw.h.
63393         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63394         multiplication.
63395         * modules/ldexpl (Depends-on): Add fpucw.
63396
63397 2007-03-29  Bruno Haible  <bruno@clisp.org>
63398
63399         * modules/ldexpl: New file.
63400         * m4/ldexpl.m4: New file.
63401         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63402         set.
63403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63404         REPLACE_LDEXPL.
63405         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63406         REPLACE_LDEXPL.
63407         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63408         gl_FUNC_LDEXPL_WORKS.
63409         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63410         * modules/mathl (Files): Remove lib/ldexpl.c.
63411         (Depends-on): Add ldexpl.
63412
63413 2007-03-29  Bruno Haible  <bruno@clisp.org>
63414
63415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63416
63417 2007-03-29  Bruno Haible  <bruno@clisp.org>
63418
63419         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63420         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63421         and possibly also HP-UX.
63422         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63423         work on AIX, IRIX, HP-UX, OSF/1.
63424         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63425         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63426         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63427         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63428         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63429         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63430
63431 2007-03-29  Bruno Haible  <bruno@clisp.org>
63432
63433         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63434
63435 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63436
63437         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63438         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63439
63440 2007-03-29  Eric Blake  <ebb9@byu.net>
63441
63442         * lib/acl-internal.h: Remove redundant include.
63443         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63444         Cygwin when a file is locked.
63445
63446 2007-03-29  Bruno Haible  <bruno@clisp.org>
63447
63448         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63449         file.
63450         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63451
63452 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63453
63454         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63455         try to remove a parent directory if the child couldn't be removed
63456         (except for the first rmdir, which could fail because the child
63457         doesn't exist).  Problem reported by Jeff Blaine in
63458         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63459
63460 2007-03-28  Bruno Haible  <bruno@clisp.org>
63461
63462         * lib/striconveh.c (utf8conv_carefully): New function.
63463         (mem_cd_iconveh_internal): Invoke it.
63464
63465 2007-03-28  Bruno Haible  <bruno@clisp.org>
63466
63467         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63468         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63469         input.
63470         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63471         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63472         unistr/u8-uctomb.
63473
63474 2007-03-28  Bruno Haible  <bruno@clisp.org>
63475
63476         * modules/unistr/u8-mbtoucr: New file.
63477         * lib/unistr/u8-mbtoucr.c: New file.
63478         * modules/unistr/u16-mbtoucr: New file.
63479         * lib/unistr/u16-mbtoucr.c: New file.
63480         * modules/unistr/u16-mbtoucr: New file.
63481         * lib/unistr/u16-mbtoucr.c: New file.
63482         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63483
63484 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63485             Bruno Haible  <bruno@clisp.org>
63486
63487         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63488         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63489         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63490
63491         * m4/stdio_h.m4: Add stubs for vasprintf too.
63492
63493         * modules/stdio: Support vasprintf in sed command.
63494
63495         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63496         vasprintf.h.  Add stdio module indicator.
63497
63498         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63499         vasprintf.h.
63500
63501         * lib/vasprintf.h: File removed.
63502
63503         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63504         * lib/vasprintf.c: Ditto.
63505         * lib/xvasprintf.c: Ditto.
63506         * tests/test-vasprintf-posix.c: Ditto.
63507         * tests/test-vasprintf.c: Ditto.
63508
63509 2007-03-27  Bruno Haible  <bruno@clisp.org>
63510
63511         Make vasnprintf multithread-safe.
63512         * lib/vasnprintf.c (decimal_point_char): New function.
63513         (VASNPRINTF): Use it.
63514         Suggested by Simon Josefsson.
63515
63516 2007-03-27  Eric Blake  <ebb9@byu.net>
63517
63518         Support sub-second birthtime on cygwin.
63519         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63520         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63521         (get_stat_birthtime): Also work with st_birthtim.
63522
63523 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63524
63525         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63526         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63527         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63528         (get_stat_birthtime_ns): Simplify compile-time tests.
63529         (get_stat_birthtime): Change the API to look like
63530         get_stat_mtime etc., except return a negative tv_nsec on error.
63531         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63532         Don't check for "spare" fields.
63533         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63534         or for struct stat.st_birthtime, as these tests aren't used.
63535         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63536
63537 2007-03-27  Bruno Haible  <bruno@clisp.org>
63538
63539         * lib/stat-time.h: Include <sys/stat.h>.
63540
63541 2007-03-27  James Youngman  <jay@gnu.org>
63542
63543         * lib/stat-time.h (get_stat_birthtime): New function for
63544           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63545         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63546           and its variants.
63547         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63548         * modules/stat-time-test: New file.
63549         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63550
63551 2007-03-26  Bruno Haible  <bruno@clisp.org>
63552
63553         Better support of signalling NaNs.
63554         * lib/atanl.c: Include isnanl.h.
63555         (atanl): Perform test for NaN at the beginning of the function and
63556         through a call to isnanl.
63557         * lib/cosl.c: Include isnanl.h.
63558         (cosl): Perform test for NaN at the beginning of the function and
63559         through a call to isnanl.
63560         * lib/ldexpl.c: Include isnanl.h.
63561         (ldexpl): Perform test for NaN through a call to isnanl.
63562         * lib/logl.c: Include isnanl.h.
63563         (logl): Perform test for NaN at the beginning of the function and
63564         through a call to isnanl.
63565         * lib/sinl.c: Include isnanl.h.
63566         (sinl): Perform test for NaN at the beginning of the function and
63567         through a call to isnanl.
63568         * lib/sqrtl.c: Include isnanl.h.
63569         (sqrtl): Perform test for NaN at the beginning of the function and
63570         through a call to isnanl.
63571         * lib/tanl.c: Include isnanl.h.
63572         (tanl): Perform test for NaN at the beginning of the function and
63573         through a call to isnanl.
63574         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63575         * modules/mathl (Depends-on): Add isnanl.
63576
63577 2007-03-26  Eric Blake  <ebb9@byu.net>
63578
63579         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63580         regression in logic sense of previous patch.
63581
63582 2007-03-26  Bruno Haible  <bruno@clisp.org>
63583
63584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63585         unportable shell command "if ! ...".
63586         Reported by Ralf Wildenhues.
63587
63588 2007-03-25  Bruno Haible  <bruno@clisp.org>
63589
63590         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63591         <sysexits.h> file, and only add EX_CONFIG.
63592         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63593         absolute file name and whether it is sufficient. Substitute also
63594         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63595         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63596         ABSOLUTE_SYSEXITS_H into sysexits.h.
63597
63598 2007-03-25  Bruno Haible  <bruno@clisp.org>
63599
63600         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63601         hints is NULL.
63602
63603 2007-03-25  Bruno Haible  <bruno@clisp.org>
63604
63605         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63606         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63607
63608 2007-03-25  Bruno Haible  <bruno@clisp.org>
63609
63610         * lib/vasnprintf.c: Include langinfo.h.
63611         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63612         multithread-safe.
63613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63614         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63622         Reported by Simon Josefsson.
63623
63624 2007-03-25  Bruno Haible  <bruno@clisp.org>
63625
63626         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63627         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63628         * modules/vasnprintf (Depends-on): Add stdint.
63629
63630 2007-03-25  Bruno Haible  <bruno@clisp.org>
63631
63632         * modules/fpieee: New file.
63633         * m4/fpieee.m4: New file.
63634         * modules/isnan-nolibm (Depends-on): Add fpieee.
63635         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63636         * modules/isnanl (Depends-on): Add fpieee.
63637
63638 2007-03-25  Bruno Haible  <bruno@clisp.org>
63639
63640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63641
63642 2007-03-25  Bruno Haible  <bruno@clisp.org>
63643
63644         Avoid test failures on IRIX 6.5.
63645         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63646         (main): Use it.
63647         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63648         macros.
63649         (main): Use them.
63650
63651 2007-03-25  Bruno Haible  <bruno@clisp.org>
63652
63653         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63654         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63655         exists but doesn't work.
63656         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63657         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63658         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63659         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63660         math.h.
63661
63662 2007-03-25  Bruno Haible  <bruno@clisp.org>
63663
63664         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63665         returns inf. Needed on IRIX 6.5.
63666
63667 2007-03-25  Bruno Haible  <bruno@clisp.org>
63668
63669         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63670         (main): Use isnanl instead of x != x idiom.
63671         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63672
63673         * tests/test-frexp.c: Include isnan.h.
63674         (main): Use isnan instead of x != x idiom.
63675         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63676
63677 2007-03-25  Bruno Haible  <bruno@clisp.org>
63678
63679         * tests/test-frexp.c (NaN): New function/macro.
63680         (main): Use it instead of 0.0 / 0.0.
63681         * tests/test-isnan.c (NaN): New function/macro.
63682         (main): Use it instead of 0.0 / 0.0.
63683         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63684         (test_function): Use it instead of 0.0 / 0.0.
63685         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63686         (test_function): Use it instead of 0.0 / 0.0.
63687         * tests/test-snprintf-posix.h (NaN): New function/macro.
63688         (test_function): Use it instead of 0.0 / 0.0.
63689         * tests/test-sprintf-posix.h (NaN): New function/macro.
63690         (test_function): Use it instead of 0.0 / 0.0.
63691         * tests/test-fprintf-posix.h (NaN): New function/macro.
63692         (test_function): Use it instead of 0.0 / 0.0.
63693         * tests/test-printf-posix.h (NaN): New function/macro.
63694         (test_function): Use it instead of 0.0 / 0.0.
63695
63696         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63697
63698 2007-03-25  Bruno Haible  <bruno@clisp.org>
63699
63700         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63701
63702 2007-03-25  Bruno Haible  <bruno@clisp.org>
63703
63704         * lib/regexec.c (merge_state_with_log): Make static.
63705
63706 2007-03-25  Bruno Haible  <bruno@clisp.org>
63707
63708         * lib/trigl.c (kernel_rem_pio2): Make static.
63709
63710 2007-03-25  Bruno Haible  <bruno@clisp.org>
63711
63712         * lib/sincosl.c (sincosl_table): Make static.
63713
63714 2007-03-25  Bruno Haible  <bruno@clisp.org>
63715
63716         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63717         if the compiler does not support C99.
63718
63719 2007-03-25  Bruno Haible  <bruno@clisp.org>
63720
63721         * modules/time (Makefile.am): Ensure all rule action lines start with a
63722         tab.
63723
63724 2007-03-24  Bruno Haible  <bruno@clisp.org>
63725
63726         * modules/tsearch-tests: New file.
63727         * tests/test-tsearch.sh: New file.
63728         * tests/test-tsearch.c: New file, mostly copied from glibc.
63729
63730         * modules/search-tests: New file.
63731         * tests/test-search.c: New file.
63732
63733         * modules/search: New file.
63734         * lib/search_.h: New file, incorporating lib/tsearch.h.
63735         * m4/search_h.m4: New file.
63736         * lib/tsearch.h: Remove file.
63737         * lib/tsearch.c: Include search.h instead of tsearch.h.
63738         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63739         HAVE_TSEARCH.
63740         * modules/tsearch (Files): Remove lib/tsearch.h.
63741         (Depends-on): Add search.
63742         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63743         (Include): Change tsearch.h into search.h.
63744
63745 2007-03-24  Bruno Haible  <bruno@clisp.org>
63746
63747         * modules/fpucw: New file.
63748         * lib/fpucw.h: New file.
63749         * lib/frexp.c: Include fpucw.h.
63750         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63751         (FUNC): Use them.
63752         * lib/printf-frexp.c: Include fpucw.h.
63753         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63754         (FUNC): Use them.
63755         * lib/vasnprintf.c: Include fpucw.h.
63756         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63757         'long double' calculations.
63758         * tests/test-frexpl.c: Include fpucw.h.
63759         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63760         * tests/test-printf-frexpl.c: Include fpucw.h.
63761         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63762         * modules/frexpl (Depends-on): Add fpucw.
63763         * modules/printf-frexpl (Depends-on): Likewise.
63764         * modules/fprintf-posix (Depends-on): Likewise.
63765         * modules/snprintf-posix (Depends-on): Likewise.
63766         * modules/sprintf-posix (Depends-on): Likewise.
63767         * modules/vasnprintf-posix (Depends-on): Likewise.
63768         * modules/vasprintf-posix (Depends-on): Likewise.
63769         * modules/vfprintf-posix (Depends-on): Likewise.
63770         * modules/vsnprintf-posix (Depends-on): Likewise.
63771         * modules/vsprintf-posix (Depends-on): Likewise.
63772         * modules/frexpl-tests (Depends-on): Likewise.
63773         * modules/printf-frexpl-tests (Depends-on): Likewise.
63774
63775 2007-03-24  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/float+.h: New file.
63778         * lib/isnan.c: Include float+.h.
63779         (SIZE): New macro.
63780         (FUNC): Compare only SIZE bytes of the value.
63781         * lib/vasnprintf.c: Include float+.h.
63782         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63783         SIZEOF_LDBL or SIZEOF_DBL bytes.
63784         * modules/isnan-nolibm (Files): Add lib/float+.h.
63785         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63786         * modules/isnanl (Files): Add lib/float+.h.
63787         * modules/vasnprintf (Files): Add lib/float+.h.
63788
63789 2007-03-24  Bruno Haible  <bruno@clisp.org>
63790
63791         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63792         include isnanl-nolibm.h.
63793
63794 2007-03-24  Bruno Haible  <bruno@clisp.org>
63795
63796         * tests/test-read-file.c (main): Don't produce spurious output for
63797         expected situations. Make the test fail if it encountered unexpected
63798         results.
63799
63800 2007-03-24  Bruno Haible  <bruno@clisp.org>
63801
63802         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63803         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63804
63805 2007-03-24  Bruno Haible  <bruno@clisp.org>
63806
63807         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63808
63809 2007-03-24  Bruno Haible  <bruno@clisp.org>
63810
63811         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63812         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63813
63814         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63815         * modules/utf8-ucs4: Turn into a symbolic link to module
63816         unistr/u8-mbtouc.
63817
63818         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63819         utf8-ucs4-unsafe.
63820         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63821         unistr/u8-mbtouc-unsafe.
63822
63823         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63824         * modules/utf16-ucs4: Turn into a symbolic link to module
63825         unistr/u16-mbtouc.
63826
63827         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63828         utf16-ucs4-unsafe.
63829         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63830         unistr/u16-mbtouc-unsafe.
63831
63832         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63833         * modules/ucs4-utf8: Turn into a symbolic link to module
63834         unistr/u8-ubtomb.
63835
63836         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63837         * modules/ucs4-utf16: Turn into a symbolic link to module
63838         unistr/u16-ubtomb.
63839
63840 2007-03-24  Bruno Haible  <bruno@clisp.org>
63841
63842         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63843         Enable the function only if HAVE_INLINE.
63844         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63845         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63846         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63847         Enable the function only if HAVE_INLINE.
63848         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63849         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63850         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63851         Enable the function only if HAVE_INLINE.
63852         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63853         Enable the function only if HAVE_INLINE.
63854         * modules/utf8-ucs4: Update.
63855         * modules/utf8-ucs4-unsafe: Update.
63856         * modules/utf16-ucs4: Update.
63857         * modules/utf16-ucs4-unsafe: Update.
63858         * modules/ucs4-utf8: Update.
63859         * modules/ucs4-utf16: Update.
63860
63861 2007-03-24  Bruno Haible  <bruno@clisp.org>
63862
63863         * lib/utf8-ucs4.h: Remove file.
63864         * lib/utf8-ucs4-unsafe.h: Remove file.
63865         * lib/utf16-ucs4.h: Remove file.
63866         * lib/utf16-ucs4-unsafe.h: Remove file.
63867         * lib/ucs4-utf8.h: Remove file.
63868         * lib/ucs4-utf16.h: Remove file.
63869         * lib/unistr.h: Include their previous contents.
63870         * m4/utf-ucs4.m4: Remove file.
63871         * m4/ucs4-utf.m4: Remove file.
63872         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63873         (Depends-on): Add unistr/base.
63874         (configure.ac): Remove gl_UTF_UCS4.
63875         (Makefile.am): Update.
63876         (Include): Change to unistr.h.
63877         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63878         (Depends-on): Add unistr/base.
63879         (configure.ac): Remove gl_UTF_UCS4.
63880         (Makefile.am): Update.
63881         (Include): Change to unistr.h.
63882         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63883         (Depends-on): Add unistr/base.
63884         (configure.ac): Remove gl_UTF_UCS4.
63885         (Makefile.am): Update.
63886         (Include): Change to unistr.h.
63887         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63888         (Depends-on): Add unistr/base.
63889         (configure.ac): Remove gl_UTF_UCS4.
63890         (Makefile.am): Update.
63891         (Include): Change to unistr.h.
63892         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63893         (Depends-on): Add unistr/base.
63894         (configure.ac): Remove gl_UCS4_UTF.
63895         (Makefile.am): Update.
63896         (Include): Change to unistr.h.
63897         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63898         (Depends-on): Add unistr/base.
63899         (configure.ac): Remove gl_UCS4_UTF.
63900         (Makefile.am): Update.
63901         (Include): Change to unistr.h.
63902         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63903         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63904         utf8-ucs4-unsafe.h.
63905         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63906         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63907         utf16-ucs4-unsafe.h.
63908         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63909         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63910         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63911         * lib/unistr/u8-strchr.c: Likewise.
63912         * lib/unistr/u8-strrchr.c: Likewise.
63913         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63914         * lib/unistr/u16-strchr.c: Likewise.
63915         * lib/unistr/u16-strrchr.c: Likewise.
63916         * lib/striconveh.c: Update.
63917         * lib/linebreak.c: Update.
63918
63919 2007-03-24  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63922         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63923
63924 2007-03-22  Bruno Haible  <bruno@clisp.org>
63925
63926         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63927
63928 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         * MODULES.html.sh (File system functions): New module write-any-file.
63931         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63932         * m4/write-any-file.m4: New files.
63933
63934 2007-03-23  Eric Blake  <ebb9@byu.net>
63935
63936         * gnulib-tool: Rearrange space-tab sequences, since some editors
63937         like to eat them.
63938
63939 2007-03-23  Eric Blake  <ebb9@byu.net>
63940
63941         * lib/version-etc.c (version_etc_va): Update license wording to
63942         be more concise.  Recommended by Richard Stallman.
63943
63944 2007-03-22  Bruno Haible  <bruno@clisp.org>
63945
63946         * lib/poll.c (MSG_PEEK): New fallback definition.
63947
63948 2007-03-22  Bruno Haible  <bruno@clisp.org>
63949
63950         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63951         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63952         (main): Update.
63953         Fixes a compilation error on BeOS.
63954
63955 2007-03-22  Bruno Haible  <bruno@clisp.org>
63956
63957         * modules/frexpl-tests: New file.
63958         * tests/test-frexpl.c: New file.
63959
63960         * modules/frexpl: New file.
63961         * m4/frexpl.m4: New file.
63962         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63963         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63965         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63966         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63967         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63968
63969 2007-03-22  Bruno Haible  <bruno@clisp.org>
63970
63971         * lib/frexpl.c: Share code with lib/frexp.c.
63972         * modules/mathl (Files): Add lib/frexp.c.
63973         (Depends-on): Add isnanl-nolibm.
63974
63975 2007-03-22  Bruno Haible  <bruno@clisp.org>
63976
63977         * modules/printf-frexp (Files): Add m4/frexp.m4.
63978         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63979         only if the found frexp function actually works.
63980
63981 2007-03-22  Bruno Haible  <bruno@clisp.org>
63982
63983         * lib/frexp.c: Remove older implementation that uses divisions.
63984
63985 2007-03-21  Bruno Haible  <bruno@clisp.org>
63986
63987         * modules/frexp-tests: New file.
63988         * tests/test-frexp.c: New file.
63989
63990         * modules/frexp: New file.
63991         * lib/frexp.c: New file.
63992         * m4/frexp.m4: New file.
63993         * lib/math_.h (frexp): New declaration.
63994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63995         REPLACE_FREXP.
63996         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63997
63998 2007-03-21  Bruno Haible  <bruno@clisp.org>
63999
64000         * modules/isnanl-tests: New file.
64001         * tests/test-isnanl.c: New file.
64002
64003         * modules/isnanl: New file.
64004         * lib/isnanl.h: New file.
64005         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
64006         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
64007         gl_FUNC_ISNANL_WORKS.
64008         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
64009         New macros.
64010
64011 2007-03-21  Bruno Haible  <bruno@clisp.org>
64012
64013         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
64014         lib/isnanl.h.
64015         (Include): Update.
64016         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64017         * lib/vasnprintf.c: Update.
64018         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64019         tests/test-isnanl.h, remove tests/test-isnanl.c.
64020         (Makefile.am): Update.
64021         * tests/test-isnanl-nolibm.c: New file.
64022         * tests/test-isnanl.h: New file.
64023         * tests/test-isnanl.c: Remove file.
64024
64025 2007-03-21  Jim Meyering  <jim@meyering.net>
64026
64027         When trying to open ".", treat ESTALE like EACCES.
64028         * lib/savewd.c (savewd_save): Resort to forking not just upon
64029         failure with EACCES, but also when errno is ESTALE.
64030
64031 2007-03-20  Bruno Haible  <bruno@clisp.org>
64032
64033         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64034         Needed on AIX 5.1. Reported by Matthew Woehlke.
64035
64036 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64037
64038         Suggestions by Bruno Haible:
64039         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64040         our own.
64041         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64042         * modules/acl (Depends-on): Add gettext.
64043
64044 2007-03-19  Bruno Haible  <bruno@clisp.org>
64045
64046         * modules/iconvme: Remove file.
64047         * lib/iconvme.h: Remove file.
64048         * lib/iconvme.c: Remove file.
64049         * m4/iconvme.m4: Remove file.
64050
64051 2007-03-19  Bruno Haible  <bruno@clisp.org>
64052
64053         * doc/relocatable-maint.texi: Break long shell script line.
64054         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64055
64056 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64057
64058         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64059         handle file_has_acl.
64060         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64061         * lib/acl.c: Move header inclusions and related macro defns into
64062         lib/acl-internal.h.
64063         (S_ISLNK): Remove defn, since that's now done for us.
64064         (file_has_acl): Move to lib/file-has-acl.c.
64065         Call acl_trivial if available.  This is the crucial part of the fix.
64066         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64067         shared within the library.  Rewrite a bit, partly to make it compatible
64068         with the GNU coding style.
64069         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64070         Remove unnecessary double-quotes.
64071         Don't test for acl_to_text; the build will catch that.
64072         Replace acl_entries if it doesn't exist and it is needed.
64073         Check for -lsec and acl_trivial (as used on Solaris 10).
64074         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64075         lib/file-has-acl.c.
64076         (Depends-on): Add sys_stat, for S_ISLNK.
64077
64078 2007-03-19  Ben Pfaff  <blp@gnu.org>
64079
64080         * doc/gnulib.texi: Fix typos.
64081         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64082
64083 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64084
64085         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64086         If size is zero here, buf must be zero.
64087
64088 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64089
64090         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64091         <bruno@clisp.org>.
64092
64093 2007-03-18  Bruno Haible  <bruno@clisp.org>
64094
64095         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64096         Suggested by Eric Blake.
64097
64098 2007-03-18  Ben Pfaff  <blp@gnu.org>
64099
64100         * doc/relocatable.texi: Recommend using as prefix a directory
64101         that does not exist and will never be created.  Based on
64102         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64103         and others.
64104
64105 2007-03-17  Bruno Haible  <bruno@clisp.org>
64106
64107         * lib/fchownat.c: Include lchown.h.
64108
64109 2007-03-17  Bruno Haible  <bruno@clisp.org>
64110
64111         Fix endless loop when the given allocated size was > INT_MAX.
64112         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64113         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64114         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64115         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64116         * lib/sprintf.c (sprintf): Likewise.
64117
64118 2007-03-17  Bruno Haible  <bruno@clisp.org>
64119
64120         * tests/test-argp-2.sh (func_compare): Output a context diff.
64121
64122 2007-03-17  Bruno Haible  <bruno@clisp.org>
64123
64124         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64125         locale's decimal-point character.
64126
64127 2007-03-17  Bruno Haible  <bruno@clisp.org>
64128
64129         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64130         before comparing it. Needed because on some platforms (e.g. x86) a
64131         'long double' occupies less bytes than sizeof (long double).
64132
64133 2007-03-17  Bruno Haible  <bruno@clisp.org>
64134
64135         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64136         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64137         * tests/test-getaddrinfo.c (simple): Likewise.
64138         * tests/test-read-file.c (main): Likewise.
64139
64140 2007-03-17  Bruno Haible  <bruno@clisp.org>
64141
64142         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64143
64144 2007-03-17  Bruno Haible  <bruno@clisp.org>
64145
64146         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64147         unused variable.
64148
64149 2007-03-17  Bruno Haible  <bruno@clisp.org>
64150
64151         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64152         * tests/test-c-strncasecmp.c: Likewise.
64153
64154 2007-03-17  Bruno Haible  <bruno@clisp.org>
64155
64156         * modules/stdlib (Depends-on): Add unistd.
64157         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64158         Needed for MacOS X 10.3.
64159
64160 2007-03-17  Bruno Haible  <bruno@clisp.org>
64161
64162         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64163
64164 2007-03-17  Bruno Haible  <bruno@clisp.org>
64165
64166         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64167
64168 2007-03-17  Bruno Haible  <bruno@clisp.org>
64169
64170         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64171         to reflect files copied from gnulib (with or without modifications).
64172         Suggested by Jim Meyering.
64173
64174 2007-03-17  Eric Blake  <ebb9@byu.net>
64175
64176         * NEWS: Document stdlib change from 2007-02-18.
64177
64178 2007-03-17  Jim Meyering  <jim@meyering.net>
64179
64180         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64181         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64182         someone uses a name containing shell meta-characters.
64183         Reported by Alfred M. Szmidt.
64184
64185         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64186
64187 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64188
64189         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64190         and copy gettext configuration files only if configure.ac contains
64191         a use of AM_GNU_GETTEXT_VERSION.
64192
64193 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64194
64195         * build-aux/bootstrap (gnulib_name): New variable.
64196         (gnulib_tool_options): Use it.
64197
64198 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64199
64200         * tests/test-des.c: Use new namespace.
64201
64202 2007-03-15  Bruno Haible  <bruno@clisp.org>
64203
64204         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64205         Reported by James Youngman <jay@gnu.org>.
64206
64207 2007-03-15  Bruno Haible  <bruno@clisp.org>
64208
64209         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64210         declared prototype. Needed with cc on OSF/1 5.1.
64211
64212 2007-03-15  Bruno Haible  <bruno@clisp.org>
64213
64214         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64215         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64216         (struct gl_list_implementation): Add dispose_fn argument to the
64217         'create_empty', 'create' methods.
64218         (struct gl_list_impl_base): Add field 'dispose_fn'.
64219         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64220         argument.
64221         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64222         dispose_fn argument.
64223         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64224         dispose_fn on the dropped values.
64225         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64226         dispose_fn argument.
64227         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64228         dropped values.
64229         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64230         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64231         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64232         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64233         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64234         argument.
64235         (gl_tree_list_free): Call dispose_fn on the dropped values.
64236         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64237         the dropped values.
64238         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64239         Add dispose_fn argument.
64240         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64241         Call dispose_fn on the dropped values.
64242         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64243         Add dispose_fn argument.
64244         (gl_sublist_create): Initialize the 'dispose_fn' field.
64245         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64246         * tests/test-array_list.c (main): Update.
64247         * tests/test-carray_list.c (main): Update.
64248         * tests/test-avltree_list.c (main): Update.
64249         * tests/test-rbtree_list.c (main): Update.
64250         * tests/test-avltreehash_list.c (main): Update.
64251         * tests/test-rbtreehash_list.c (main): Update.
64252         * tests/test-linked_list.c (main): Update.
64253         * tests/test-linkedhash_list.c (main): Update.
64254         * tests/test-array_oset.c (main): Update.
64255
64256 2007-03-15  Bruno Haible  <bruno@clisp.org>
64257
64258         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64259         (gl_oset_create_empty): Add dispose_fn argument.
64260         (struct gl_oset_implementation): Add dispose_fn argument to
64261         'create_empty' method.
64262         (struct gl_oset_impl_base): Add dispose_fn field.
64263         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64264         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64265         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64266         values.
64267         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64268         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64269         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64270         dropped value.
64271         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64272         dropped value.
64273         * tests/test-array_oset.c (main): Update.
64274         * tests/test-avltree_oset.c (main): Update.
64275         * tests/test-rbtree_oset.c (main): Update.
64276         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64277
64278 2007-03-13  Bruno Haible  <bruno@clisp.org>
64279
64280         * tests/test-stdbool.c (i): Update after last patch.
64281
64282 2007-03-12  Bruno Haible  <bruno@clisp.org>
64283
64284         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64285         the iswprint macro. Needed on Solaris 2.5.1.
64286
64287 2007-03-12  Bruno Haible  <bruno@clisp.org>
64288
64289         * tests/test-printf-frexp.c (main): Declare x as volatile.
64290
64291 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64292
64293         * doc/gnulib.texi (Build robot for gnulib): New section.
64294
64295 2007-03-12  Jim Meyering  <jim@meyering.net>
64296
64297         * build-aux/bootstrap: New file.
64298         * build-aux/bootstrap.conf: New file, from coreutils.
64299
64300 2007-03-11  Bruno Haible  <bruno@clisp.org>
64301
64302         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64303
64304 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64305
64306         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64307         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64308         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64309
64310 2007-03-11  Bruno Haible  <bruno@clisp.org>
64311
64312         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64313         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64314
64315 2007-03-11  Bruno Haible  <bruno@clisp.org>
64316
64317         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64318         formula. Needed for SunPRO C 5.0.
64319
64320 2007-03-11  Bruno Haible  <bruno@clisp.org>
64321
64322         * modules/long-options (Depends-on): Add getopt.
64323
64324 2007-03-11  Bruno Haible  <bruno@clisp.org>
64325
64326         * modules/modechange (Depends-on): Add stdbool.
64327
64328 2007-03-11  Bruno Haible  <bruno@clisp.org>
64329
64330         * modules/i-ring (Depends-on): Add stdbool.
64331
64332 2007-03-11  Bruno Haible  <bruno@clisp.org>
64333
64334         * modules/gc-des (Depends-on): Add stdbool.
64335
64336 2007-03-11  Bruno Haible  <bruno@clisp.org>
64337
64338         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64339
64340 2007-03-11  Bruno Haible  <bruno@clisp.org>
64341
64342         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64343
64344 2007-03-11  Bruno Haible  <bruno@clisp.org>
64345
64346         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64347
64348 2007-03-11  Bruno Haible  <bruno@clisp.org>
64349
64350         * lib/vasnprintf.c (sprintf): Undefine.
64351
64352 2007-03-11  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64355         initializers in SunPRO C and Compaq C compilers.
64356
64357 2007-03-11  Bruno Haible  <bruno@clisp.org>
64358
64359         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64360         decrementing code ANSI C compliant.
64361
64362 2007-03-11  Bruno Haible  <bruno@clisp.org>
64363
64364         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64365         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64366
64367 2007-03-11  Bruno Haible  <bruno@clisp.org>
64368
64369         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64370         <stdbool.h> substitute doesn't pass.
64371
64372 2007-03-11  Bruno Haible  <bruno@clisp.org>
64373
64374         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64375
64376 2007-03-11  Bruno Haible  <bruno@clisp.org>
64377
64378         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64379         script, for submission to autobuild.josefsson.org.
64380
64381 2007-03-10  Bruno Haible  <bruno@clisp.org>
64382
64383         * modules/canonicalize-lgpl-tests: New file.
64384         * tests/test-canonicalize-lgpl.sh: New file.
64385         * tests/test-canonicalize-lgpl.c: New file.
64386
64387         * modules/c-strcase-tests: New file.
64388         * tests/test-c-strcase.sh: New file.
64389         * tests/test-c-strcasecmp.c: New file.
64390         * tests/test-c-strncasecmp.c: New file.
64391
64392         * modules/atexit-tests: New file.
64393         * tests/test-atexit.sh: New file.
64394         * tests/test-atexit.c: New file.
64395
64396 2007-03-10  Bruno Haible  <bruno@clisp.org>
64397
64398         * tests/test-binary-io.sh: Use temporary filenames that are not so
64399         likely to clash with those of other tests (in a parallel make).
64400         * tests/test-binary-io.c: Likewise.
64401
64402 2007-03-10  Bruno Haible  <bruno@clisp.org>
64403
64404         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64405         fallback; use #error instead.
64406         Suggested by Simon Josefsson.
64407
64408 2007-03-10  Bruno Haible  <bruno@clisp.org>
64409
64410         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64411         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64412         first and the last.
64413
64414 2007-03-10  Bruno Haible  <bruno@clisp.org>
64415
64416         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64417
64418 2007-03-10  Bruno Haible  <bruno@clisp.org>
64419
64420         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64421         "make distcheck".
64422         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64423         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64424         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64425
64426 2007-03-10  Bruno Haible  <bruno@clisp.org>
64427
64428         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64429         variable.
64430         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64431         variable.
64432
64433 2007-03-09  Eric Blake  <ebb9@byu.net>
64434         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64435
64436         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64437         types are not being provided by gnulib.
64438         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64439         types are supported.
64440
64441 2007-03-10  Bruno Haible  <bruno@clisp.org>
64442
64443         * lib/stdio_.h (__attribute__): New macro.
64444         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64445         vsprintf): Specify __attribute__ __format__ for GCC.
64446         Suggested by Eric Blake.
64447
64448 2007-03-09  Bruno Haible  <bruno@clisp.org>
64449
64450         * modules/printf-posix-tests: New file.
64451         * tests/test-printf-posix.sh: New file.
64452         * tests/test-printf-posix.c: New file.
64453
64454         * modules/printf-posix: New file.
64455         * lib/printf.c: New file.
64456         * m4/printf-posix-rpl.m4: New file.
64457         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64458         REPLACE_PRINTF.
64459         * lib/stdio_.h (printf): New declaration.
64460         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64461         ____strfmon____): New macros.
64462         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64463         REPLACE_PRINTF.
64464
64465 2007-03-09  Bruno Haible  <bruno@clisp.org>
64466
64467         * tests/test-vasnprintf-posix2.sh: New file.
64468         * tests/test-vasnprintf-posix2.c: New file.
64469         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64470         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64471         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64472
64473         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64474         a locale dependent decimal point, rather than always '.'.
64475
64476 2007-03-09  Eric Blake  <ebb9@byu.net>
64477
64478         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64479         spite of platforms like Tandem/NSK that define it to -1.
64480
64481 2007-03-08  Bruno Haible  <bruno@clisp.org>
64482
64483         * modules/vprintf-posix-tests: New file.
64484         * tests/test-vprintf-posix.sh: New file.
64485         * tests/test-vprintf-posix.c: New file.
64486         * tests/test-printf-posix.h: New file.
64487
64488         * modules/vprintf-posix: New file.
64489         * lib/vprintf.c: New file.
64490         * m4/vprintf-posix.m4: New file.
64491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64492         REPLACE_VPRINTF.
64493         * lib/stdio_.h (vprintf): New declaration.
64494         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64495         REPLACE_VPRINTF.
64496
64497 2007-03-08  Bruno Haible  <bruno@clisp.org>
64498
64499         * modules/fprintf-posix-tests: New file.
64500         * tests/test-fprintf-posix.sh: New file.
64501         * tests/test-fprintf-posix.c: New file.
64502
64503         * modules/fprintf-posix: New file.
64504         * lib/fprintf.c: New file.
64505         * m4/fprintf-posix.m4: New file.
64506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64507         REPLACE_FPRINTF.
64508         * lib/stdio_.h (fprintf): New declaration.
64509         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64510         REPLACE_FPRINTF.
64511
64512 2007-03-08  Bruno Haible  <bruno@clisp.org>
64513
64514         * modules/vfprintf-posix-tests: New file.
64515         * tests/test-vfprintf-posix.sh: New file.
64516         * tests/test-vfprintf-posix.c: New file.
64517         * tests/test-fprintf-posix.h: New file.
64518         * tests/test-fprintf-posix.out: New file.
64519
64520         * modules/vfprintf-posix: New file.
64521         * lib/vfprintf.c: New file.
64522         * m4/vfprintf-posix.m4: New file.
64523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64524         REPLACE_VFPRINTF.
64525         * lib/stdio_.h (vfprintf): New declaration.
64526         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64527         REPLACE_VFPRINTF.
64528
64529 2007-03-08  Bruno Haible  <bruno@clisp.org>
64530
64531         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64532
64533 2007-03-08  Bruno Haible  <bruno@clisp.org>
64534
64535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64536         instead of 'expr' invocations.
64537         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64541         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64542         Suggested by Paul Eggert.
64543
64544 2007-03-08  Bruno Haible  <bruno@clisp.org>
64545
64546         * modules/fseterr-tests: New file.
64547         * tests/test-fseterr.c: New file.
64548
64549         * modules/fseterr: New file.
64550         * lib/fseterr.h: New file.
64551         * lib/fseterr.c: New file.
64552
64553 2007-03-08  Bruno Haible  <bruno@clisp.org>
64554
64555         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64556         * lib/getopt_.h: Likewise.
64557         * lib/mbswidth.h: Likewise.
64558         * lib/setenv.h: Likewise.
64559         * lib/vasnprintf.h: Likewise.
64560         * lib/vasprintf.h: Likewise.
64561         * lib/verror.h: Likewise.
64562         * lib/xsetenv.h: Likewise.
64563         * lib/xvasprintf.h: Likewise.
64564
64565 2007-03-08  Jim Meyering  <jim@meyering.net>
64566
64567         * users.txt: Add parted.
64568
64569         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64570
64571 2007-03-07  Bruno Haible  <bruno@clisp.org>
64572
64573         * m4/printf.m4: Make the shell script snippets copy&pastable.
64574
64575 2007-03-02  Bruno Haible  <bruno@clisp.org>
64576
64577         * lib/netinet_in_.h: New file.
64578         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64579         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64580         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64581         (Depends-on): Add absolute-header.
64582         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64583         into netinet/in.h.
64584
64585 2007-03-03  Bruno Haible  <bruno@clisp.org>
64586
64587         * lib/sys_select_.h: New file.
64588         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64589         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64590         * modules/sys_select (Files): Add lib/sys_select_.h.
64591         (Depends-on): Add absolute-header.
64592         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64593         into sys/select.h.
64594
64595 2007-03-02  Bruno Haible  <bruno@clisp.org>
64596
64597         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64598         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64599         values.
64600         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64601         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64602         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64603         * modules/sys_socket (Depends-on): Add absolute-header.
64604         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64605         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64606         (Include): Remove requirement of inclusion of <sys/types.h>.
64607
64608 2007-03-02  Bruno Haible  <bruno@clisp.org>
64609
64610         * lib/byteswap_.h (bswap_32): Fix formula.
64611
64612 2007-03-06  Bruno Haible  <bruno@clisp.org>
64613
64614         * modules/sprintf-posix-tests: New file.
64615         * tests/test-sprintf-posix.c: New file.
64616
64617         * modules/sprintf-posix: New file.
64618         * lib/sprintf.c: New file.
64619         * m4/sprintf-posix.m4: New file.
64620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64621         REPLACE_SPRINTF.
64622         * lib/stdio_.h (sprintf): New declaration.
64623         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64624         REPLACE_SPRINTF.
64625
64626 2007-03-06  Bruno Haible  <bruno@clisp.org>
64627
64628         * modules/vsprintf-posix-tests: New file.
64629         * tests/test-vsprintf-posix.c: New file.
64630         * tests/test-sprintf-posix.h: New file.
64631
64632         * modules/vsprintf-posix: New file.
64633         * lib/vsprintf.c: New file.
64634         * m4/vsprintf-posix.m4: New file.
64635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64636         REPLACE_VSPRINTF.
64637         * lib/stdio_.h (vsprintf): New declaration.
64638         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64639         REPLACE_VSPRINTF.
64640
64641 2007-03-06  Bruno Haible  <bruno@clisp.org>
64642
64643         * modules/vsnprintf (Depend-on): Remove minmax.
64644
64645 2007-03-06  Bruno Haible  <bruno@clisp.org>
64646
64647         * modules/snprintf-posix-tests: New file.
64648         * tests/test-snprintf-posix.c: New file.
64649
64650         * modules/snprintf-posix: New file.
64651         * m4/snprintf-posix.m4: New file.
64652         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64653         gl_FUNC_SNPRINTF.
64654         (gl_FUNC_SNPRINTF): Invoke it.
64655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64656         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64657         is set.
64658         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64659
64660 2007-03-06  Bruno Haible  <bruno@clisp.org>
64661
64662         * modules/vsnprintf-posix-tests: New file.
64663         * tests/test-vsnprintf-posix.c: New file.
64664         * tests/test-snprintf-posix.h: New file.
64665
64666         * modules/vsnprintf-posix: New file.
64667         * m4/vsnprintf-posix.m4: New file.
64668         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64669         gl_FUNC_VSNPRINTF.
64670         (gl_FUNC_VSNPRINTF): Invoke it.
64671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64672         * lib/stdio_.h (vsnprintf): Define as a replacement if
64673         REPLACE_VSNPRINTF is set.
64674         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64675
64676 2007-03-06  Bruno Haible  <bruno@clisp.org>
64677
64678         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64679         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64680
64681 2007-03-06  Bruno Haible  <bruno@clisp.org>
64682
64683         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64684         (asinl): Declare also if HAVE_DECL_ASINL is set.
64685         (atanl): Declare also if HAVE_DECL_ATANL is set.
64686         (ceill): Declare also if HAVE_DECL_CEILL is set.
64687         (cosl): Declare also if HAVE_DECL_COSL is set.
64688         (expl): Declare also if HAVE_DECL_EXPL is set.
64689         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64690         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64691         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64692         (logl): Declare also if HAVE_DECL_LOGL is set.
64693         (sinl): Declare also if HAVE_DECL_SINL is set.
64694         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64695         (tanl): Declare also if HAVE_DECL_TANL is set.
64696         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64697         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64698         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64699         declaration of frexpl, ldexpl.
64700         * modules/printf-frexpl (Depends-on): Add math.
64701         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64702
64703 2007-03-05  Bruno Haible  <bruno@clisp.org>
64704
64705         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64706         frexpl and ldexpl are declared.
64707         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64708
64709 2007-03-05  Bruno Haible  <bruno@clisp.org>
64710
64711         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64712         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64713
64714 2007-03-05  Bruno Haible  <bruno@clisp.org>
64715
64716         * lib/stdio_.h: Include <stddef.h>.
64717
64718 2007-03-05  Bruno Haible  <bruno@clisp.org>
64719
64720         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64721
64722 2007-03-05  Bruno Haible  <bruno@clisp.org>
64723
64724         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64725         NetBSD 4, from Ralf Wildenhues.
64726
64727 2007-03-04  Bruno Haible  <bruno@clisp.org>
64728
64729         * lib/vasprintf.h: Update #if logic for the case when the functions
64730         exist but are overridden.
64731
64732 2007-03-04  Bruno Haible  <bruno@clisp.org>
64733
64734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64735         implementations: glibc-2.4 and MacOS X 10.3.
64736         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64737         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64738         * tests/test-vasprintf-posix.c (test_function): Likewise.
64739
64740 2007-03-04  Bruno Haible  <bruno@clisp.org>
64741
64742         * modules/vasprintf-posix-tests: New file.
64743         * tests/test-vasprintf-posix.c: New file.
64744
64745         * modules/vasprintf-posix: New file.
64746         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64747         defined.
64748         * m4/vasprintf-posix.m4: New file.
64749         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64750         gl_FUNC_VASPRINTF.
64751         (gl_FUNC_VASPRINTF): Invoke it.
64752         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64753         here.
64754         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64755
64756 2007-03-04  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64759         REPLACE_GETTIMEOFDAY.
64760         * modules/sys_time (Makefile.am): Likewise.
64761         * m4/sys_time_h.m4: Likewise.
64762         * m4/gettimeofday.m4: Likewise.
64763
64764 2007-03-04  Bruno Haible  <bruno@clisp.org>
64765
64766         * modules/vasnprintf-posix-tests: New file.
64767         * tests/test-vasnprintf-posix.c: New file.
64768
64769         * modules/vasnprintf-posix: New file.
64770         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64771         printf-frexpl.h.
64772         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64773         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64774         REPLACE_VASNPRINTF is defined.
64775         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64776         gl_FUNC_VASNPRINTF.
64777         (gl_FUNC_VASNPRINTF): Invoke it.
64778         * m4/vasnprintf-posix.m4: New file.
64779         * m4/printf.m4: New file.
64780
64781 2007-03-04  Bruno Haible  <bruno@clisp.org>
64782
64783         Compile progreloc.c only if --enable-relocatable is specified.
64784         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64785         if --enable-relocatable was specified.
64786         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64787         lib_SOURCES.
64788
64789 2007-03-04  Jim Meyering  <jim@meyering.net>
64790
64791         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64792         Use it consistently, rather than enumerating errno constants.
64793
64794 2007-03-04  Bruno Haible  <bruno@clisp.org>
64795
64796         * modules/xvasprintf-tests: New file.
64797         * tests/test-xvasprintf.c: New file.
64798
64799         * modules/vasprintf-tests: New file.
64800         * tests/test-vasprintf.c: New file.
64801
64802         * modules/vasnprintf-tests: New file.
64803         * tests/test-vasnprintf.c: New file.
64804
64805         * modules/vsnprintf-tests: New file.
64806         * tests/test-vsnprintf.c: New file.
64807
64808         * modules/snprintf-tests: New file.
64809         * tests/test-snprintf.c: New file.
64810
64811 2007-03-04  Bruno Haible  <bruno@clisp.org>
64812
64813         Compile relocatable.c only if --enable-relocatable is specified.
64814         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64815         gl_RELOCATABLE_LIBRARY.
64816         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64817         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64818         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64819         gl_RELOCATABLE_LIBRARY.
64820         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64821         (Makefile.am): Remove lib_SOURCES.
64822         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64823         gl_RELOCATABLE_LIBRARY.
64824         (Makefile.am): Remove lib_SOURCES.
64825         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64826         always.
64827         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64828         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64829
64830 2007-03-04  Bruno Haible  <bruno@clisp.org>
64831
64832         * modules/argmatch-tests: New file.
64833         * tests/test-argmatch.c: New file.
64834
64835         * tests/test-allocsa.c (main): Halve the number of loop runs.
64836
64837         * modules/alloca-opt-tests: New file.
64838         * tests/test-alloca-opt.c: New file.
64839
64840 2007-03-04  Jim Meyering  <jim@meyering.net>
64841
64842         Work around difference between Linux ACLs and Solaris 10 ZFS.
64843         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64844         for EINVAL.
64845
64846 2007-03-03  Bruno Haible  <bruno@clisp.org>
64847
64848         * modules/relocatable-prog (Depends-on): Add back progreloc's
64849         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64850
64851 2007-03-03  Bruno Haible  <bruno@clisp.org>
64852
64853         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64854         * modules/relocatable-lib: New file.
64855
64856 2007-03-03  Bruno Haible  <bruno@clisp.org>
64857
64858         * modules/relocatable-prog: Renamed from modules/relocatable.
64859         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64860
64861 2007-03-03  Bruno Haible  <bruno@clisp.org>
64862
64863         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64864         m4/relocatable-lib.m4.
64865         (Depends-on): Remove 'relocatable'.
64866         (configure.ac): Add gl_RELOCATABLE_NOP.
64867
64868 2007-03-03  Bruno Haible  <bruno@clisp.org>
64869
64870         * modules/relocatable-prog-wrapper: New file.
64871         * modules/relocatable (Depends-on): Add it. Remove all other
64872         dependencies except progname.
64873         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64874
64875         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64876         (gl_FUNC_STRERROR): Nop.
64877         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64878
64879         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64880         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64881
64882         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64883         (gl_FUNC_READLINK): Update.
64884
64885         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64886
64887 2007-03-03  Bruno Haible  <bruno@clisp.org>
64888
64889         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64890         * modules/xreadlink (Depends-on): Add unistd.
64891         * modules/xreadlink-with-size (Depends-on): Likewise.
64892
64893 2007-03-03  Bruno Haible  <bruno@clisp.org>
64894
64895         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64896         extracted from gt_FUNC_SETENV.
64897         (gt_FUNC_SETENV): Remove macro.
64898         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64899         remove gt_FUNC_SETENV.
64900
64901 2007-03-03  Bruno Haible  <bruno@clisp.org>
64902
64903         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64904         ENABLE_RELOCATABLE here.
64905         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64906
64907 2007-03-03  Bruno Haible  <bruno@clisp.org>
64908
64909         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64910         * tests/test-rbtreehash_list.c: Include progname.h.
64911         (main): Call set_program_name.
64912
64913         * modules/rbtree-oset-tests (Depends-on): Add progname.
64914         * tests/test-rbtree_oset.c: Include progname.h.
64915         (main): Call set_program_name.
64916
64917         * modules/rbtree-list-tests (Depends-on): Add progname.
64918         * tests/test-rbtree_list.c: Include progname.h.
64919         (main): Call set_program_name.
64920
64921         * modules/linked-list-tests (Depends-on): Add progname.
64922         * tests/test-linked_list.c: Include progname.h.
64923         (main): Call set_program_name.
64924
64925 2007-03-03  Bruno Haible  <bruno@clisp.org>
64926
64927         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64928         All uses of __restrict changed to _Restrict_.
64929         * lib/glob_.h (__restrict): Remove macro.
64930
64931 2007-03-02  Bruno Haible  <bruno@clisp.org>
64932
64933         * modules/gettext (configure.ac): Require gettext infrastructure
64934         from version 0.16.1.
64935
64936 2007-03-02  Bruno Haible  <bruno@clisp.org>
64937
64938         * modules/linkedhash-list-tests (Depends-on): Add progname.
64939         * tests/test-linkedhash_list.c: Include progname.h.
64940         (main): Call set_program_name.
64941
64942         * modules/carray-list-tests (Depends-on): Add progname.
64943         * tests/test-carray_list.c: Include progname.h.
64944         (main): Call set_program_name.
64945
64946         * modules/avltreehash-list-tests (Depends-on): Add progname.
64947         * tests/test-avltreehash_list.c: Include progname.h.
64948         (main): Call set_program_name.
64949
64950         * modules/avltree-oset-tests (Depends-on): Add progname.
64951         * tests/test-avltree_oset.c: Include progname.h.
64952         (main): Call set_program_name.
64953
64954         * modules/avltree-list-tests (Depends-on): Add progname.
64955         * tests/test-avltree_list.c: Include progname.h.
64956         (main): Call set_program_name.
64957
64958         * modules/array-oset-tests (Depends-on): Add progname.
64959         * tests/test-array_oset.c: Include progname.h.
64960         (main): Call set_program_name.
64961
64962         * modules/array-list-tests (Depends-on): Add progname.
64963         * tests/test-array_list.c: Include progname.h.
64964         (main): Call set_program_name.
64965
64966         * modules/argp-tests (Depends-on): Add progname.
64967         * tests/test-argp.c: Include argp.h first. Include progname.h.
64968         (main): Call set_program_name.
64969
64970 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64971
64972         * doc/gnulib-tool.texi (Initial import): Reword description of
64973         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64974         limited effect even if defined after the first system include.
64975
64976 2007-03-01  Bruno Haible  <bruno@clisp.org>
64977
64978         * build-aux/config.libpath: Update to libtool-1.5.22.
64979         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64980
64981 2007-03-01  Bruno Haible  <bruno@clisp.org>
64982
64983         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64984         foo_CFLAGS.
64985         Reported by Ralf Wildenhues.
64986
64987 2007-03-01  Bruno Haible  <bruno@clisp.org>
64988
64989         * build-aux/install-reloc: Remove object files left over by some
64990         compilers.
64991         Reported by Ralf Wildenhues.
64992
64993 2007-03-01  Bruno Haible  <bruno@clisp.org>
64994
64995         * build-aux/install-reloc: Break long lines.
64996
64997 2007-03-01  Bruno Haible  <bruno@clisp.org>
64998
64999         * doc/relocatable.texi: Document that it may not work on OpenBSD.
65000         Reported by Ralf Wildenhues.
65001
65002 2007-03-01  Bruno Haible  <bruno@clisp.org>
65003
65004         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
65005         include ordering constraints.
65006
65007 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65008
65009         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
65010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
65011         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
65012         as another example.
65013         * lib/time_.h: Fix misspelling.
65014         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65015         Require gl_HEADER_TIME_H_DEFAULTS.
65016         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65017         * m4/time_r.m4 (gl_TIME_R): Likewise.
65018         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65019
65020 2007-03-01  Bruno Haible  <bruno@clisp.org>
65021
65022         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65023         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65024
65025 2007-03-01  Jim Meyering  <jim@meyering.net>
65026
65027         * modules/xreadlink (Maintainer): Add my name.
65028         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65029
65030 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65031             Bruno Haible  <bruno@clisp.org>
65032
65033         * build-aux/install-reloc: Compile also c-ctype.c.
65034         * build-aux/relocatable.sh.in: New file.
65035         * doc/relocatable.texi: New file.
65036         * doc/relocatable-maint.texi: New file.
65037         * doc/gnulib.texi: Include relocatable-maint.texi.
65038         * lib/progreloc.c: Include unistd.h unconditionally.
65039         * lib/relocwrapper.c: Include unistd.h unconditionally.
65040         Include c-ctype.h.
65041         (add_dotbin): Use c_tolower.
65042         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65043         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65044         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65045         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65046         to m4/relocatable-lib.m4.
65047         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65048         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65049         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65050         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65051         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65052         * modules/relocatable: New file.
65053         * modules/relocatable-lib: New file.
65054         * modules/relocatable-script: New file.
65055
65056 2007-02-28  Bruno Haible  <bruno@clisp.org>
65057
65058         Import --enable-relocatable infrastructure.
65059         * build-aux/config.libpath: New file, from GNU gettext.
65060         * build-aux/install-reloc: New file, from GNU gettext.
65061         * build-aux/reloc-ldflags: New file, from GNU gettext.
65062         * lib/relocatable.h: New file, from GNU gettext.
65063         * lib/relocatable.c: New file, from GNU gettext.
65064         * lib/relocwrapper.c: New file, from GNU gettext.
65065         * m4/relocatable.m4: New file, from GNU gettext.
65066
65067 2007-02-28  Bruno Haible  <bruno@clisp.org>
65068
65069         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65070
65071         * modules/xreadlink: New file, from GNU gettext with modifications.
65072         * lib/xreadlink.c: New file, from GNU gettext.
65073         * lib/xreadlink.h: Add comments.
65074         (xreadlink): New declaration.
65075
65076         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65077         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65078         lib/xreadlink-with-size.c.
65079         (configure.ac): Remove gl_XREADLINK invocation.
65080         (Makefile.am): Augment lib_SOURCES.
65081         * m4/xreadlink.m4: Remove file.
65082         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65083         (xreadlink_with_size): Renamed from xreadink.
65084         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65085         * modules/canonicalize (Depends-on): Replace xreadlink with
65086         xreadlink-with-size.
65087         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65088
65089 2007-02-25  Jim Meyering  <jim@meyering.net>
65090
65091         * build-aux/announce-gen: When complaining about excess arguments,
65092         list them.
65093
65094 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65095
65096         * README: Document signed integer overflow situation more
65097         accurately.
65098
65099 2007-02-25  Bruno Haible  <bruno@clisp.org>
65100
65101         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65102         'a' or 'A' conversion.
65103
65104 2007-02-25  Bruno Haible  <bruno@clisp.org>
65105
65106         * modules/filename: Renamed from modules/pathname.
65107         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65108         lib/concatpath.c with lib/concat-filename.c.
65109         (Makefile.am): Update.
65110         (Include): Replace pathname.h with filename.h.
65111         * lib/filename.h: Renamed from lib/pathname.h.
65112         (concatenated_filename): Renamed from concatenated_pathname.
65113         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65114         (concatenated_filename): Renamed from concatenated_pathname.
65115         * lib/findprog.c: Include filename.h instead of pathname.h.
65116         (find_in_path): Update.
65117         * lib/javacomp.c: Include filename.h instead of pathname.h.
65118         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65119         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65120         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65121         is_oldgcj_14_13_usable, is_javac_usable): Update.
65122         * lib/javaexec.c: Include filename.h instead of pathname.h.
65123         (execute_java_class): Update.
65124         * modules/findprog: Update.
65125         * modules/javacomp: Update.
65126         * modules/javaexec: Update.
65127         * MODULES.html.sh (File system functions): Add 'filename', remove
65128         'pathname'.
65129
65130 2007-02-25  Bruno Haible  <bruno@clisp.org>
65131
65132         * modules/printf-frexpl-tests: New file.
65133         * tests/test-printf-frexpl.c: New file.
65134
65135         * modules/printf-frexpl: New file.
65136         * lib/printf-frexpl.h: New file.
65137         * lib/printf-frexpl.c: New file.
65138         * m4/printf-frexpl.m4: New file.
65139
65140 2007-02-25  Bruno Haible  <bruno@clisp.org>
65141
65142         * modules/printf-frexp-tests: New file.
65143         * tests/test-printf-frexp.c: New file.
65144
65145         * modules/printf-frexp: New file.
65146         * lib/printf-frexp.h: New file.
65147         * lib/printf-frexp.c: New file.
65148         * m4/printf-frexp.m4: New file.
65149
65150 2007-02-25  Bruno Haible  <bruno@clisp.org>
65151
65152         Assume automake >= 1.10 for the tests.
65153         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65154         * modules/arctwo-tests: Likewise.
65155         * modules/argp-tests: Likewise.
65156         * modules/avltree-list-tests: Likewise.
65157         * modules/avltree-oset-tests: Likewise.
65158         * modules/avltreehash-list-tests: Likewise.
65159         * modules/carray-list-tests: Likewise.
65160         * modules/crc-tests: Likewise.
65161         * modules/des-tests: Likewise.
65162         * modules/gc-arcfour-tests: Likewise.
65163         * modules/gc-arctwo-tests: Likewise.
65164         * modules/gc-des-tests: Likewise.
65165         * modules/gc-hmac-md5-tests: Likewise.
65166         * modules/gc-hmac-sha1-tests: Likewise.
65167         * modules/gc-md2-tests: Likewise.
65168         * modules/gc-md4-tests: Likewise.
65169         * modules/gc-md5-tests: Likewise.
65170         * modules/gc-pbkdf2-sha1-tests: Likewise.
65171         * modules/gc-rijndael-tests: Likewise.
65172         * modules/gc-sha1-tests: Likewise.
65173         * modules/gc-tests: Likewise.
65174         * modules/getaddrinfo-tests: Likewise.
65175         * modules/hmac-md5-tests: Likewise.
65176         * modules/hmac-sha1-tests: Likewise.
65177         * modules/linked-list-tests: Likewise.
65178         * modules/linkedhash-list-tests: Likewise.
65179         * modules/lock-tests: Likewise.
65180         * modules/md2-tests: Likewise.
65181         * modules/md4-tests: Likewise.
65182         * modules/md5-tests: Likewise.
65183         * modules/rbtree-list-tests: Likewise.
65184         * modules/rbtree-oset-tests: Likewise.
65185         * modules/rbtreehash-list-tests: Likewise.
65186         * modules/read-file-tests: Likewise.
65187         * modules/rijndael-tests: Likewise.
65188         * modules/stdint-tests: Likewise.
65189         * modules/tls-tests: Likewise.
65190
65191 2007-02-24  Bruno Haible  <bruno@clisp.org>
65192
65193         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65194         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65195         function; instead check whether isnan with a double argument links.
65196         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65197         function; instead check whether isnan with a 'long double' argument
65198         links.
65199         Reported by Eric Blake <ebb9@byu.net>.
65200
65201 2007-02-24  Bruno Haible  <bruno@clisp.org>
65202
65203         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65204         defined.
65205         * lib/isnanl.c: Remove all code. Just include isnan.c.
65206         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65207
65208 2007-02-25  Jim Meyering  <jim@meyering.net>
65209
65210         Avoid conflicting types for 'unsetenv' on FreeBSD.
65211         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65212         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65213         in stdlib.h.
65214
65215 2007-02-24  Bruno Haible  <bruno@clisp.org>
65216
65217         * modules/isnanl-nolibm-tests: New file.
65218         * tests/test-isnanl.c: New file.
65219
65220         * modules/isnanl-nolibm: New file.
65221         * lib/isnanl.h: New file.
65222         * lib/isnanl.c: New file.
65223         * m4/isnanl.m4: New file.
65224
65225 2007-02-24  Bruno Haible  <bruno@clisp.org>
65226
65227         * modules/isnan-nolibm-tests: New file.
65228         * tests/test-isnan.c: New file.
65229
65230         * modules/isnan-nolibm: New file.
65231         * lib/isnan.h: New file.
65232         * lib/isnan.c: New file.
65233         * m4/isnan.m4: New file.
65234
65235 2007-02-24  Bruno Haible  <bruno@clisp.org>
65236
65237         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65238         assume that an exponent fits in 20 bits.
65239
65240 2007-02-24  Jim Meyering  <jim@meyering.net>
65241
65242         * m4/regex.m4: Update the description of the configure-time option,
65243         --without-included-regex, to state accurately what the defaults are,
65244         and perhaps to give people an idea why using this option is risky.
65245
65246 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65247
65248         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65249         loops on small arguments.  This attempts to avoid the problem
65250         Bruno Haible reported for AIX 4.3.2 in
65251         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65252
65253 2007-02-23  Bruno Haible  <bruno@clisp.org>
65254
65255         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65256         Needed for help2man.
65257
65258 2007-02-23  Karl Berry  <karl@gnu.org>
65259
65260         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65261         exists, foo.h should be cvs-ignored, not committed.
65262
65263 2007-02-23  Eric Blake  <ebb9@byu.net>
65264
65265         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65266         * lib/stat-time.h (includes): Likewise.
65267         * lib/utimecmp.c (includes): Likewise.
65268         * lib/utimens.h (includes): Likewise.
65269         * lib/getdate.y (includes): Also include "timespec.h" for use
65270         internal to the module.
65271         * modules/utimens (Depends-on): Revert yesterday's patch.
65272         * modules/nanosleep (Depends-on): Add missing dependency.
65273
65274 2007-02-22  Bruno Haible  <bruno@clisp.org>
65275
65276         * lib/glob.c: Don't include getlogin_r.h.
65277
65278 2007-02-22  Jim Meyering  <jim@meyering.net>
65279
65280         * modules/utimens (Depends-on): Add timespec, required for
65281         utimens.h's inclusion of timespec.h.
65282
65283 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65286         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65287         Schwab in
65288         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65289         I'll try to think of a better way to fix the Solaris problem.
65290
65291         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65292         like glibc; on Solaris 10, it fails with errno == EINVAL.
65293         POSIX says the behavior is unspecified if the first argument is NULL,
65294         so play it safe and never pass NULL to the system getcwd.
65295
65296 2007-02-21  Jim Meyering  <jim@meyering.net>
65297
65298         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65299         of gettimeofday.  It would conflict with the one now always
65300         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65301         an IRIX 6.5 build failure.
65302
65303 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65304
65305         Minor fixups to port to Solaris 10 with Sun C 5.8.
65306         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65307         * modules/getcwd (Depends-on): Add dirfd.
65308         * lib/putenv.c (putenv): #undef it.
65309         (rpl_putenv): New decl.
65310         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65311
65312 2007-02-20  Bruno Haible  <bruno@clisp.org>
65313
65314         * modules/stdio-tests: New file.
65315         * tests/test-stdio.c: New file.
65316
65317         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65318         (Depends-on): Add stdio.
65319         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65320         (Include): Use <stdio.h> instead of vsnprintf.h.
65321         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65322         HAVE_DECL_VSNPRINTF.
65323         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65324
65325         * modules/snprintf (Files): Remove lib/snprintf.h.
65326         (Depends-on): Add stdio.
65327         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65328         (Include): Use <stdio.h> instead of snprintf.h.
65329         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65330         HAVE_DECL_SNPRINTF.
65331         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65332         * lib/getaddrinfo.c: Likewise.
65333
65334         * modules/stdio: New file.
65335         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65336         * lib/snprintf.h: Remove file.
65337         * lib/vsnprintf.h: Remove file.
65338         * lib/.cppi-disable: Remove snprintf.h.
65339         * m4/stdio_h.m4: New file.
65340         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65341
65342 2007-02-20  Jim Meyering  <jim@meyering.net>
65343
65344         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65345         used by e.g., mingw.  From Bruno Haible.
65346
65347 2007-02-19  Bruno Haible  <bruno@clisp.org>
65348
65349         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65350         warnings.
65351         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65352
65353 2007-02-19  Bruno Haible  <bruno@clisp.org>
65354
65355         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65356         from mingw users.
65357
65358 2007-02-19  Bruno Haible  <bruno@clisp.org>
65359
65360         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65361         warnings.
65362         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65363
65364 2007-02-19  Jim Meyering  <jim@meyering.net>
65365
65366         Don't use FD after a successful "fdopendir (fd)".
65367         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65368         Reset it by calling dirfd on the just-obtained DIR*.
65369
65370         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65371         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65372
65373 2007-02-18  Bruno Haible  <bruno@clisp.org>
65374
65375         * lib/readlink.c: Include <unistd.h>.
65376         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65377         HAVE_READLINK.
65378         * modules/readlink (Depends-on): Add unistd.
65379         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65380         (Include): Add <unistd.h>.
65381
65382         * lib/getlogin_r.h: Remove file.
65383         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65384         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65385         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65386         HAVE_DECL_GETLOGIN_R.
65387         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65388         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65389         (Include): Use <unistd.h> instead of getlogin_r.h.
65390
65391         * lib/getcwd.h: Remove file.
65392         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65393         * lib/xgetcwd.c: Likewise.
65394         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65395         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65396         * modules/getcwd (Files): Remove lib/getcwd.h.
65397         (Depends-on): Add unistd.
65398         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65399         (Include): Use <unistd.h> instad of getcwd.h.
65400
65401         * lib/ftruncate.c: Include <unistd.h> first.
65402         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65403         Set HAVE_FTRUNCATE.
65404         * modules/ftruncate (Depends-on): Add unistd.
65405         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65406
65407         * lib/fchdir.c: Include <unistd.h> first.
65408         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65410         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65411         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65412         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65413
65414         * lib/dup2.c: Include <unistd.h> first.
65415         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65416         HAVE_DUP2.
65417         * modules/dup2 (Depends-on): Add unistd.
65418         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65419
65420         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65421         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65422         REPLACE_CHOWN. Don't define chown as a macro here.
65423         * modules/chown (Depends-on): Add unistd.
65424         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65425
65426         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65427         Add definition for GL_LINK_WARNING.
65428         (chown, dup2): New declarations.
65429         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65430         link warning.
65431         (ftruncate): New declaration.
65432         (getcwd): New declaration, taken from old getcwd.h.
65433         (getlogin_r): New declaration, taken from old getlogin_r.h.
65434         (readlink): New declaration.
65435         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65436         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65437         (gl_PREREQ_UNISTD): Remove macro.
65438         (gl_UNISTD_MODULE_INDICATOR): New macro.
65439         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65440         many new variables. Don't set UNISTD_H.
65441         * modules/unistd (Description): Change.
65442         (Depends-on): Add link-warning.
65443         (configure.ac): Update.
65444         (Makefile.am): Create unistd.h always. Substitute many new variables
65445         into it.
65446
65447 2007-02-18  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65450         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65451         HAVE_GETSUBOPT.
65452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65453         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65454         * lib/getsubopt.h: Remove file.
65455         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65456         (Depends-on): Add stdlib.
65457         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65458         (Includes): Use <stdlib.h> instead of getsubopt.h.
65459         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65460         Set HAVE_GETSUBOPT.
65461         * lib/getsubopt.c: Don't include getsubopt.h.
65462
65463 2007-02-18  Bruno Haible  <bruno@clisp.org>
65464
65465         * modules/fchdir (Depends-on): Add dup2.
65466
65467 2007-02-18  Bruno Haible  <bruno@clisp.org>
65468
65469         * lib/stdlib_.h: Handle glibc's special invocation convention
65470         specially.
65471
65472 2007-02-18  Bruno Haible  <bruno@clisp.org>
65473
65474         * modules/stdlib-tests: New file.
65475         * tests/test-stdlib.c: New file.
65476
65477         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65478         (Depends-on): Add stdlib.
65479         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65480         (Includes): Use <stdlib.h> instead of mkstemp.h.
65481         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65482         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65483         * lib/mkstemp.c: Don't include mkstemp.h.
65484         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65485         * lib/stdlib--.h: Don't include mkstemp.h.
65486
65487         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65488         (Depends-on): Add stdlib.
65489         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65490         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65491         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65492         HAVE_MKDTEMP.
65493         * lib/mkdtemp.c: Don't include mkdtemp.h.
65494         * lib/clean-temp.c: Don't include mkdtemp.h.
65495
65496         * modules/exit (Files): Remove lib/exit.h.
65497         (Depends-on): Add stdlib.
65498         (Makefile.am): Remove lib_SOURCES.
65499         (Include): Use <stdlib.h> instead of exit.h.
65500         * lib/argmatch.c: Don't include exit.h.
65501         * lib/execute.c: Likewise.
65502         * lib/pagealign_alloc.c: Likewise.
65503         * lib/pipe.c: Likewise.
65504         * lib/wait-process.c: Likewise.
65505         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65506         * lib/exitfail.c: Likewise.
65507         * lib/savewd.c: Likewise.
65508         * lib/xsetenv.c: Likewise.
65509
65510         * modules/stdlib: New file.
65511         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65512         and extra comments about mkstemp().
65513         * lib/exit.h: Remove file.
65514         * lib/mkdtemp.h: Remove file.
65515         * lib/mkstemp.h: Remove file.
65516         * m4/stdlib_h.m4: New file.
65517         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65518
65519 2007-02-18  Bruno Haible  <bruno@clisp.org>
65520
65521         * modules/math-tests: New file.
65522         * tests/test-math.c: New file.
65523
65524         * modules/math: New file.
65525         * modules/mathl (Files): Remove lib/mathl.h.
65526         (Depends-on): Add math.
65527         (Makefile.am): Don't mention mathl.h.
65528         (Include): Use <math.h> instead of mathl.h.
65529         * lib/math_.h: New file.
65530         * lib/mathl.h: Remove file.
65531         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65532         mathl.h.
65533         * lib/asinl.c: Likewise.
65534         * lib/atanl.c: Likewise.
65535         * lib/ceill.c: Likewise.
65536         * lib/cosl.c: Likewise.
65537         * lib/expl.c: Likewise.
65538         * lib/floorl.c: Likewise.
65539         * lib/frexpl.c: Likewise.
65540         * lib/ldexpl.c: Likewise.
65541         * lib/logl.c: Likewise.
65542         * lib/sincosl.c: Likewise.
65543         * lib/sinl.c: Likewise.
65544         * lib/sqrtl.c: Likewise.
65545         * lib/tanl.c: Likewise.
65546         * lib/trigl.c: Likewise.
65547         * m4/math_h.m4: New file.
65548         * MODULES.html.sh (Mathematics): Add math.
65549
65550 2007-02-17  Bruno Haible  <bruno@clisp.org>
65551
65552         * modules/wctype-tests: New file.
65553         * tests/test-wctype.c: New file.
65554
65555         * modules/wchar-tests: New file.
65556         * tests/test-wchar.c: New file.
65557
65558         * modules/unistd-tests: New file.
65559         * tests/test-unistd.c: New file.
65560
65561         * modules/time-tests: New file.
65562         * tests/test-time.c: New file.
65563
65564         * modules/sysexits-tests: New file.
65565         * tests/test-sysexits.c: New file.
65566
65567         * modules/sys_time-tests: New file.
65568         * tests/test-sys_time.c: New file.
65569
65570         * modules/sys_stat-tests: New file.
65571         * tests/test-sys_stat.c: New file.
65572
65573         * modules/sys_socket-tests: New file.
65574         * tests/test-sys_socket.c: New file.
65575
65576         * modules/sys_select-tests: New file.
65577         * tests/test-sys_select.c: New file.
65578
65579         * modules/string-tests: New file.
65580         * tests/test-string.c: New file.
65581
65582         * modules/stdbool-tests: New file.
65583         * tests/test-stdbool.c: New file.
65584
65585         * modules/netinet_in-tests: New file.
65586         * tests/test-netinet_in.c: New file.
65587
65588         * modules/inttypes-tests: New file.
65589         * tests/test-inttypes.c: New file.
65590
65591         * modules/fcntl-tests: New file.
65592         * tests/test-fcntl.c: New file.
65593
65594         * modules/byteswap-tests: New file.
65595         * tests/test-byteswap.c: New file.
65596
65597         * modules/arpa_inet-tests: New file.
65598         * tests/test-arpa_inet.c: New file.
65599
65600 2007-02-17  Bruno Haible  <bruno@clisp.org>
65601
65602         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65603         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65604         if the corresponding module is not enabled. Emit link warnings if
65605         the function is used nevertheless.
65606         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65607         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65608         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65609         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65610         * modules/inttypes (Depends-on): Add link-warning.
65611         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65612         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65613         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65614         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65615         * modules/imaxdiv (configure.ac): Likewise.
65616         * modules/strtoimax (configure.ac): Likewise.
65617         * modules/strtoumax (configure.ac): Likewise.
65618
65619 2007-02-17  Bruno Haible  <bruno@clisp.org>
65620
65621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65622         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65623         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65624         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65625
65626 2007-02-17  Bruno Haible  <bruno@clisp.org>
65627
65628         * modules/link-warning: New file.
65629         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65630         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65631         * modules/string (Depends-on): Add link-warning.
65632         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65633         string.h.
65634         * MODULES.html.sh (Support for building libraries and executables): Add
65635         link-warning.
65636
65637 2007-02-17  Bruno Haible  <bruno@clisp.org>
65638
65639         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65640         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65641         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65642         long lines.
65643
65644 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65645             Bruno Haible  <bruno@clisp.org>
65646
65647         * modules/tmpfile: New file.
65648         * lib/tmpfile.c: New file.
65649         * m4/tmpfile.m4: New file.
65650         * MODULES.html.sh (func_all_modules): New section "Input/output".
65651
65652 2007-02-15  Bruno Haible  <bruno@clisp.org>
65653
65654         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65655         (supports_delete_on_close): New function.
65656         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65657
65658 2007-02-14  Bruno Haible  <bruno@clisp.org>
65659
65660         * modules/mbspcasecmp-tests: New file.
65661         * tests/test-mbspcasecmp.sh: New file.
65662         * tests/test-mbspcasecmp.c: New file.
65663
65664         New module mbspcasecmp.
65665         * modules/mbspcasecmp: New file.
65666         * lib/mbspcasecmp.c: New file.
65667         * lib/string_.h (strncasecmp): Change warning message.
65668         (mbspcasecmp): New declaration.
65669         * m4/mbspcasecmp.m4: New file.
65670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65671         GNULIB_MBSPCASECMP.
65672         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65673         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65674
65675 2007-02-14  Bruno Haible  <bruno@clisp.org>
65676
65677         * modules/mbsncasecmp-tests: New file.
65678         * tests/test-mbsncasecmp.sh: New file.
65679         * tests/test-mbsncasecmp.c: New file.
65680
65681         New module mbsncasecmp.
65682         * modules/mbsncasecmp: New file.
65683         * lib/mbsncasecmp.c: New file.
65684         * lib/string_.h (mbsncasecmp): New declaration.
65685         * m4/mbsncasecmp.m4: New file.
65686         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65687         GNULIB_MBSNCASECMP.
65688         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65689         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65690
65691 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65692
65693         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65694         Verify that it doesn't overlap with our flags.
65695         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65696         do not have the desired effect in multibyte locales; instead, use
65697         mbscasecmp.
65698         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65699         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65700         we don't require GNU fnmatch ourselves (if our users require it, they
65701         should do so explicitly).
65702
65703         Fix regex code so it doesn't rely on strcasecmp.
65704         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65705         Otherwise, include gnulib's langinfo.h.
65706         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65707         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65708         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65709         * modules/regex (FILES): Remove m4/codeset.m4.
65710         (Depends-on): Add localcharset.  Remove strcase.
65711
65712 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65713
65714         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65715         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65716
65717 2007-02-13  Bruno Haible  <bruno@clisp.org>
65718
65719         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65721
65722 2007-02-12  Bruno Haible  <bruno@clisp.org>
65723
65724         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65725         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65726         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65727         time warning rather than a link error.
65728
65729 2007-02-12  Bruno Haible  <bruno@clisp.org>
65730
65731         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65732         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65733         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65734
65735 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65738         args, not 2.
65739
65740 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65741
65742         New module 'time', so that apps can include <time.h> as per
65743         POSIX and GNU instead of separate include files like time_r.h
65744         and timegm.h.  This implementation tries out a simpler approach
65745         for replacing decls in standard include files (as compared to
65746         the string module), somewhat as an experiment.
65747
65748         * config/srclist.txt: Comment out mktime.c for now.
65749         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65750         since it doesn't apply any more.  Use generic wording instead.
65751         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65752         'time'.
65753         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65754         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65755         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65756         Don't include <sys/types.h>; no longer needed since we assume C89.
65757         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65758         * lib/strftime.c: Likewise.
65759         * lib/time_r.c: Likewise.
65760         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65761         * lib/nanosleep.c: Include <time.h> first, to check interface.
65762         * lib/strptime.c: Likewise.
65763         * lib/time_r.c: Likewise.
65764         * lib/timegm.c: Likewise.
65765         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65766         needed.
65767         * lib/timegm.c: Don't include timegm.h; no longer needed.
65768         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65769         time.h now handles any problems in that area.
65770         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65771         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65772         that time.h defines struct timespec.
65773         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65774         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65775         handles that.
65776         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65777         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65778         needed.  Set REPLACE_LOCALTIME.
65779         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65780         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65781         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65782         nanosleep; time_h.m4 now does that.  Don't require
65783         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65784         module handles this now.
65785         * modules/getdate (Depends-on): Remove timespec.  Add time.
65786         * modules/nanosleep (Depends-on): Likewise.
65787         * modules/stat-time (Depends-on): Likewise.
65788         * modules/nanosleep (Include): Include time.h, not timespec.h.
65789         * modules/strptime (Files): Remove lib/strptime.h.
65790         (Depends-on): Add extensions, time.
65791         (Include): Include time.h, not strptime.h.
65792         * modules/time_r (Files): Remove lib/time_r.h.
65793         (Depends-on): Add time.
65794         (Include): Include time.h, not time_r.h.
65795         * modules/timegm: Likewise.
65796         * modules/timespec (Description): Now does timespec-related decls
65797         of our own, instead of struct timespec itself.
65798         (Depends-on): Add time; remove extensions.
65799         (Maintainer): Add self.
65800         * modules/utimecmp (Depends-on): Add time; remove timespec.
65801         * modules/utimens (Depends-on): Likewise.
65802         * modules/xnanosleep (Depends-on): Likewise.
65803
65804 2007-02-11  Bruno Haible  <bruno@clisp.org>
65805
65806         * lib/c-strstr.c: Include allocsa.h.
65807         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65808         * lib/c-strcasestr.c: Include allocsa.h.
65809         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65810         * lib/strcasestr.c: Include allocsa.h.
65811         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65812         * lib/mbsstr.c: Include allocsa.h.
65813         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65814         allocsa/freesa instead of malloc/free.
65815         * lib/mbscasestr.c: Include allocsa.h.
65816         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65817         allocsa/freesa instead of malloc/free.
65818         * modules/c-strstr (Depends-on): Add allocsa.
65819         * modules/c-strcasestr (Depends-on): Likewise.
65820         * modules/strcasestr (Depends-on): Likewise.
65821         * modules/mbsstr (Depends-on): Likewise.
65822         * modules/mbscasestr (Depends-on): Likewise.
65823
65824 2007-02-11  Bruno Haible  <bruno@clisp.org>
65825
65826         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65827
65828         * modules/mbsspn-tests: New file.
65829         * tests/test-mbsspn.sh: New file.
65830         * tests/test-mbsspn.c: New file.
65831
65832 2007-02-11  Bruno Haible  <bruno@clisp.org>
65833
65834         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65835
65836         * modules/mbspbrk-tests: New file.
65837         * tests/test-mbspbrk.sh: New file.
65838         * tests/test-mbspbrk.c: New file.
65839
65840 2007-02-11  Bruno Haible  <bruno@clisp.org>
65841
65842         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65843         unneeded cast.
65844
65845         * modules/mbscspn-tests: New file.
65846         * tests/test-mbscspn.sh: New file.
65847         * tests/test-mbscspn.c: New file.
65848
65849 2007-02-11  Bruno Haible  <bruno@clisp.org>
65850
65851         * modules/mbscasecmp-tests: New file.
65852         * tests/test-mbscasecmp.sh: New file.
65853         * tests/test-mbscasecmp.c: New file.
65854
65855 2007-02-11  Bruno Haible  <bruno@clisp.org>
65856
65857         Ensure O(n) worst-case complexity of mbscasestr.
65858         * lib/mbscasestr.c: Include stdbool.h.
65859         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65860         functions.
65861         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65862         the bookkeeping indicates that it's worth it.
65863         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65864
65865         * modules/mbscasestr-tests: New file.
65866         * tests/test-mbscasestr1.c: New file.
65867         * tests/test-mbscasestr2.sh: New file.
65868         * tests/test-mbscasestr2.c: New file.
65869         * tests/test-mbscasestr3.sh: New file.
65870         * tests/test-mbscasestr3.c: New file.
65871         * tests/test-mbscasestr4.sh: New file.
65872         * tests/test-mbscasestr4.c: New file.
65873         * m4/locale-tr.m4: New file.
65874
65875 2007-02-11  Bruno Haible  <bruno@clisp.org>
65876
65877         Ensure O(n) worst-case complexity of mbsstr.
65878         * lib/mbsstr.c: Include stdbool.h.
65879         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65880         functions.
65881         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65882         bookkeeping indicates that it's worth it.
65883         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65884
65885         * modules/mbsstr-tests: New file.
65886         * tests/test-mbsstr1.c: New file.
65887         * tests/test-mbsstr2.sh: New file.
65888         * tests/test-mbsstr2.c: New file.
65889         * tests/test-mbsstr3.sh: New file.
65890         * tests/test-mbsstr3.c: New file.
65891         * m4/locale-fr.m4: New file.
65892
65893 2007-02-11  Bruno Haible  <bruno@clisp.org>
65894
65895         * lib/mbsrchr.c (mbsrchr): Fix bug.
65896
65897         * modules/mbsrchr-tests: New file.
65898         * tests/test-mbsrchr.sh: New file.
65899         * tests/test-mbsrchr.c: New file.
65900
65901 2007-02-11  Bruno Haible  <bruno@clisp.org>
65902
65903         * lib/mbschr.c (mbschr): Fix bug.
65904
65905         * modules/mbschr-tests: New file.
65906         * tests/test-mbschr.sh: New file.
65907         * tests/test-mbschr.c: New file.
65908         * m4/locale-zh.m4: New file.
65909
65910 2007-02-11  Bruno Haible  <bruno@clisp.org>
65911
65912         Support for copying multibyte string iterators.
65913         * lib/mbiter.h: Include <string.h>.
65914         (mbiter_multi_copy): New function.
65915         (mbi_copy): New macro.
65916         * lib/mbuiter.h: Include <string.h>.
65917         (mbuiter_multi_copy): New function.
65918         (mbui_copy): New macro.
65919
65920 2007-02-11  Bruno Haible  <bruno@clisp.org>
65921
65922         New module mbslen.
65923         * modules/mbslen: New file.
65924         * lib/mbslen.c: New file.
65925         * lib/string_.h (mbslen): New declaration.
65926         * m4/mbslen.m4: New file.
65927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65928         GNULIB_MBSLEN.
65929         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65930         * MODULES.html.sh (Internationalization functions): Add mbslen.
65931
65932 2007-02-11  Bruno Haible  <bruno@clisp.org>
65933
65934         Ensure O(n) worst-case complexity of strcasestr substitute.
65935         * lib/strcasestr.c: Include stdbool.h.
65936         (knuth_morris_pratt): New function.
65937         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65938         bookkeeping indicates that it's worth it.
65939         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65940
65941         * modules/strcasestr-tests: New file.
65942         * tests/test-strcasestr.c: New file.
65943
65944 2007-02-11  Bruno Haible  <bruno@clisp.org>
65945
65946         Ensure O(n) worst-case complexity of c_strcasestr.
65947         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65948         (knuth_morris_pratt): New function.
65949         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65950         the bookkeeping indicates that it's worth it.
65951         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65952
65953         * modules/c-strcasestr-tests: New file.
65954         * tests/test-c-strcasestr.c: New file.
65955
65956 2007-02-11  Bruno Haible  <bruno@clisp.org>
65957
65958         Ensure O(n) worst-case complexity of c_strstr.
65959         * lib/c-strstr.c: Include stdbool.h, string.h.
65960         (knuth_morris_pratt): New function.
65961         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65962         bookkeeping indicates that it's worth it.
65963         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65964
65965         * lib/c-strstr.c: Complete rewrite for maintainability.
65966
65967         * modules/c-strstr-tests: New file.
65968         * tests/test-c-strstr.c: New file.
65969
65970 2007-02-11  Bruno Haible  <bruno@clisp.org>
65971
65972         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65973         5.2.1 and earlier, whereby \055 was treated just like the range
65974         delimiter '-'.
65975         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65976
65977 2007-02-08  Bruno Haible  <bruno@clisp.org>
65978
65979         * modules/regex (Depends-on): Add stdbool.
65980         Reported by Dalibor Topic <robilad@kaffe.org>.
65981
65982 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65985         Prefer returning from main to exiting from it.
65986         Remove unnecessary parens after sizeof.
65987
65988 2007-02-05  Bruno Haible  <bruno@clisp.org>
65989
65990         New module mbssep.
65991         * modules/mbssep: New file.
65992         * lib/mbssep.c: New file.
65993         * lib/string_.h (strsep): Add a conditional link warning.
65994         (mbssep): New declaration.
65995         * m4/mbssep.m4: New file.
65996         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65997         GNULIB_MBSSEP.
65998         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65999         * MODULES.html.sh (Internationalization functions): Add mbssep.
66000
66001 2007-02-05  Bruno Haible  <bruno@clisp.org>
66002
66003         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
66004         Optimize search in case of 1 delimiter.
66005
66006 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66007
66008         * lib/acl.h: Include sys/types.h before sys/acl.h.
66009
66010 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66011
66012         Merge upstream fix for glibc bugzilla #3957:
66013
66014         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
66015
66016         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66017         bit for RE_HAT_LISTS_NOT_NEWLINE.
66018         (build_charclass_op): Remove bogus comment.
66019
66020 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66021
66022         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66023
66024 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66025
66026         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66027         * lib/memmem.c [!defined _LIBC]: Include config.h.
66028
66029 2007-02-04  Bruno Haible  <bruno@clisp.org>
66030
66031         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66032         warning message.
66033
66034 2007-02-04  Bruno Haible  <bruno@clisp.org>
66035
66036         New module mbstok_r.
66037         * modules/mbstok_r: New file.
66038         * lib/mbstok_r.c: New file.
66039         * lib/string_.h (strtok_r): Change argument names to match the
66040         comments. Add a conditional link warning.
66041         (mbstok_r): New declaration.
66042         * m4/mbstok_r.m4: New file.
66043         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66044         GNULIB_MBSTOK_R.
66045         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66046         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66047
66048 2007-02-04  Bruno Haible  <bruno@clisp.org>
66049
66050         New module mbsspn.
66051         * modules/mbsspn: New file.
66052         * lib/mbsspn.c: New file.
66053         * lib/string_.h (strspn): Add a conditional link warning.
66054         (mbsspn): New declaration.
66055         * m4/mbsspn.m4: New file.
66056         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66057         GNULIB_MBSSPN.
66058         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66059         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66060
66061 2007-02-04  Bruno Haible  <bruno@clisp.org>
66062
66063         New module mbspbrk.
66064         * modules/mbspbrk: New file.
66065         * lib/mbspbrk.c: New file.
66066         * lib/string_.h (strpbrk): Add a conditional link warning.
66067         (mbspbrk): New declaration.
66068         * m4/mbspbrk.m4: New file.
66069         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66070         GNULIB_MBSPBRK.
66071         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66072         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66073
66074 2007-02-04  Bruno Haible  <bruno@clisp.org>
66075
66076         New module mbscspn.
66077         * modules/mbscspn: New file.
66078         * lib/mbscspn.c: New file.
66079         * lib/string_.h (strcspn): Add a conditional link warning.
66080         (mbscspn): New declaration.
66081         * m4/mbscspn.m4: New file.
66082         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66083         GNULIB_MBSCSPN.
66084         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66085         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66086
66087 2007-02-04  Bruno Haible  <bruno@clisp.org>
66088
66089         New module mbscasestr, reduced goal of strcasestr.
66090         * modules/mbscasestr: New file.
66091         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66092         (mbscasestr): Renamed from strcasestr.
66093         * lib/strcasestr.c: Don't include mbuiter.h.
66094         (strcasestr): Remove support for multibyte locales.
66095         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66096         Change the conditional link warning.
66097         (mbscasestr): New declaration.
66098         * m4/mbscasestr.m4: New file.
66099         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66100         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66101         REPLACE_STRCASESTR.
66102         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66104         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66105         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66106         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66107         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66108         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66109         (Depends-on): Remove mbuiter.
66110         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66111
66112 2007-02-04  Bruno Haible  <bruno@clisp.org>
66113
66114         Simplify handling of strncasecmp.
66115         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66116         the conditional link warning.
66117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66118         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66119         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66120         * modules/strcase (configure.ac): Don't invoke
66121         gl_STRING_MODULE_INDICATOR.
66122         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66123
66124 2007-02-04  Bruno Haible  <bruno@clisp.org>
66125
66126         New module mbscasecmp, reduced goal of strcasecmp.
66127         * modules/mbscasecmp: New file.
66128         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66129         (mbscasecmp): Renamed from strcasecmp.
66130         * lib/strcasecmp.c: Don't include mbuiter.h.
66131         (strcasecmp): Remove support for multibyte locales.
66132         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66133         Change the conditional link warning.
66134         (mbscasecmp): New declaration.
66135         * m4/mbscasecmp.m4: New file.
66136         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66137         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66138         REPLACE_STRCASECMP.
66139         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66140         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66141         GNULIB_MBSCASECMP.
66142         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66143         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66144         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66145         (Depends-on): Remove mbuiter.
66146         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66147
66148 2007-02-04  Bruno Haible  <bruno@clisp.org>
66149
66150         New module mbsstr. Remove module strstr.
66151         * modules/mbsstr: New file.
66152         * modules/strstr: Remove file.
66153         * lib/mbsstr.c: Renamed from lib/strstr.c.
66154         (mbsstr): Renamed from strstr.
66155         * lib/string_.h (strstr): Remove declaration. Change the conditional
66156         link warning.
66157         (mbsstr): New declaration.
66158         * m4/mbsstr.m4: New file.
66159         * m4/strstr.m4: Remove file.
66160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66161         REPLACE_STRSTR.
66162         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66163         Don't initialize GNULIB_STRSTR.
66164         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66165         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66166         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66167         (Support for systems lacking ANSI C 89): Remove strstr.
66168
66169 2007-02-04  Bruno Haible  <bruno@clisp.org>
66170
66171         New module mbsrchr.
66172         * modules/mbsrchr: New file.
66173         * lib/mbsrchr.c: New file.
66174         * lib/string_.h (strrchr): Add a conditional link warning.
66175         (mbsrchr): New declaration.
66176         * m4/mbsrchr.m4: New file.
66177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66178         GNULIB_MBSRCHR.
66179         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66180         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66181
66182 2007-02-04  Bruno Haible  <bruno@clisp.org>
66183
66184         New module mbschr.
66185         * modules/mbschr: New file.
66186         * lib/mbschr.c: New file.
66187         * lib/string_.h (strchr): Add a conditional link warning.
66188         (mbschr): New declaration.
66189         * m4/mbschr.m4: New file.
66190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66191         GNULIB_MBSCHR.
66192         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66193         * MODULES.html.sh (Internationalization functions): Add mbschr.
66194
66195 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66196
66197         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66198
66199         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66200
66201 2007-02-04  Bruno Haible  <bruno@clisp.org>
66202
66203         New module description section 'configure.ac-early'.
66204         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66205         (func_get_autoconf_early_snippet): New function.
66206         (func_import, func_create_testdir): Use it. Remove special cases for
66207         modules 'extensions' and 'lock'.
66208         * modules/extensions (configure.ac-early): Require
66209         gl_USE_SYSTEM_EXTENSIONS.
66210         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66211
66212 2007-02-04  Bruno Haible  <bruno@clisp.org>
66213
66214         Make use of gcj-4.3's -fsource and -ftarget option.
66215         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66216         and if so try the options -fsource and -ftarget.
66217         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66218         source_version, ftarget_option, target_version arguments.
66219         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66220         (is_envjavac_oldgcj_14_14_usable): Renamed from
66221         is_envjavac_gcj_14_14_usable.
66222         (is_envjavac_oldgcj_14_13_usable): Renamed from
66223         is_envjavac_gcj_14_13_usable.
66224         (is_gcj_present): Update.
66225         (is_gcj_43, is_gcj43_usable): New functions.
66226         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66227         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66228         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66229         try the options -fsource and -ftarget.
66230
66231 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66232
66233         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66234         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66235         larger value.
66236
66237 2007-02-03  Jim Meyering  <jim@meyering.net>
66238
66239         Give tools a better chance to allocate space for very large buffers.
66240         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66241
66242         Make pwd and readlink work also when run with an unreadable parent dir
66243         on systems with openat support.
66244         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66245         provided getcwd function, even when we have openat support.
66246         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66247
66248 2007-02-02  Bruno Haible  <bruno@clisp.org>
66249
66250         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66251         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66252         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66253         portability problems if one of these functions is only used on specific
66254         platforms.
66255         Reported by Paul Eggert.
66256
66257 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66258
66259         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66260         is causing more trouble than it's curing.
66261         * lib/regex_internal.h (__mempcpy): Remove.
66262         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66263         (and make the code a tad smaller to boot).
66264         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66265
66266 2007-02-02  Jim Meyering  <jim@meyering.net>
66267
66268         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66269         section, not in the Makefile.am: one.
66270
66271 2007-02-02  Eric Blake  <ebb9@byu.net>
66272
66273         * lib/strchrnul.c: Always include config.h first.
66274
66275         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66276         gnulib strstr is not necessary here.
66277
66278 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66279
66280         * m4/socklen.m4: Fix typo.
66281
66282 2007-02-02  Eric Blake  <ebb9@byu.net>
66283
66284         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66285         * modules/netinet_in (Makefile.am): Likewise.
66286
66287 2007-02-01  Bruno Haible  <bruno@clisp.org>
66288
66289         * lib/string_.h (GL_LINK_WARNING): New macro.
66290         (strcasecmp, strstr, strcasestr): If provided by the system,
66291         conditionally define as a macro that leads to a warning instead of to
66292         an error.
66293         (strncasecmp): Conditionally define as a macro that leads to a warning.
66294
66295 2007-02-01  Karl Berry  <karl@gnu.org>
66296
66297         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66298
66299 2007-02-01  Bruno Haible  <bruno@clisp.org>
66300
66301         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66302         renamings.
66303
66304 2007-02-01  Eric Blake  <ebb9@byu.net>
66305
66306         * modules/regex (Depends-on): Revert dependence on mempcpy.
66307         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66308         module's definition of mempcpy.
66309         Reported by Paul Eggert.
66310
66311 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66312
66313         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66314         the symbol XYZ before redefining it.  This fixes a problem with
66315         programs that don't use XYZ, when compiled on systems that define
66316         XYZ to something else.
66317
66318 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66319
66320         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66321         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66322         writeable to group or other and (2) is intended to have a special
66323         mode bit that is set or cleared.  In such a case, the directory
66324         should be neither group- nor other-writeable until the special
66325         mode bits are right.
66326
66327 2007-01-31  Eric Blake  <ebb9@byu.net>
66328
66329         * modules/mountlist (Depends-on): Add strstr.
66330
66331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66332         bug.
66333         * modules/string (Makefile.am): Remove redundant replacement.
66334         * modules/regex (Depends-on): Add mempcpy.
66335
66336 2007-01-31  Bruno Haible  <bruno@clisp.org>
66337
66338         New module description field 'Link'.
66339         * gnulib-tool (func_usage): Document --extract-link-directive.
66340         (sed_extract_prog): Recognize 'Link' directive.
66341         (func_get_link_directive): New function.
66342         (func_import): Show summary of link directives.
66343         Handle --extract-link-directive option.
66344         * modules/acl (Link): New section.
66345         * modules/clock-time (Link): New section.
66346         * modules/euidaccess (Link): New section.
66347         * modules/gettext (Link): New section.
66348         * modules/iconv (Link): New section.
66349         * modules/lock (Link): New section.
66350         * modules/nanosleep (Link): New section.
66351         * modules/readline (Link): New section.
66352
66353 2007-01-27  Bruno Haible  <bruno@clisp.org>
66354
66355         Enforce the use of gnulib modules for unportable <string.h> functions.
66356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66357         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66358         (gl_HEADER_STRING_H_BODY): Require it.
66359         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66360         the symbol XYZ to one that gives a link error.
66361         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66362         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66363         * modules/mempcpy (configure.ac): Likewise.
66364         * modules/memrchr (configure.ac): Likewise.
66365         * modules/stpcpy (configure.ac): Likewise.
66366         * modules/stpncpy (configure.ac): Likewise.
66367         * modules/strcase (configure.ac): Likewise.
66368         * modules/strcasestr (configure.ac): Likewise.
66369         * modules/strchrnul (configure.ac): Likewise.
66370         * modules/strdup (configure.ac): Likewise.
66371         * modules/strndup (configure.ac): Likewise.
66372         * modules/strnlen (configure.ac): Likewise.
66373         * modules/strpbrk (configure.ac): Likewise.
66374         * modules/strsep (configure.ac): Likewise.
66375         * modules/strstr (configure.ac): Likewise.
66376         * modules/strtok_r (configure.ac): Likewise.
66377
66378 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66379
66380         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66381
66382 2007-01-30  Jim Meyering  <jim@meyering.net>
66383
66384         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66385
66386 2007-01-29  Bruno Haible  <bruno@clisp.org>
66387
66388         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66389         * lib/execute.c: Likewise.
66390         * lib/pipe.c: Likewise.
66391         * lib/printf-args.h: Likewise.
66392         * lib/printf-args.c: Likewise.
66393         * lib/printf-parse.c: Likewise.
66394         * lib/vasnprintf.c: Likewise.
66395
66396 2007-01-29  Eric Blake  <ebb9@byu.net>
66397
66398         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66399         declaration.
66400
66401 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66402
66403         * lib/strptime.h (strptime): Use 'restrict' for args where
66404         POSIX requires this.
66405         * lib/strptime.c (strptime): Likewise.
66406         Change license notice from LGPL to GPL, since gnulib-tool will
66407         change this as needed.
66408         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66409         defined.
66410         Include "strptime.h" first, to check interface.
66411         Do not #undef _LIBC and _NL_CURRENT.
66412         Do not include <stdlib.h>; no longer needed.
66413         Include "time_r.h" and declare ptime_locale_status
66414         only if _LIBC is not defined.
66415         (__P): Remove unused macro.
66416         (match_string): Bring back glibc version, but use it only if _LIBC
66417         is defined.
66418         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66419         Remove unnecessary assertion and abort() call.
66420         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66421         * m4/strptime.m4: Fix serial number comment.
66422         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66423         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66424         (Depends-on): Add time_r.
66425
66426 2007-01-29  Bruno Haible  <bruno@clisp.org>
66427
66428         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66429         strptime.
66430         * modules/strptime (Depends-on): Add stdbool.
66431         * lib/strptime.h: Include <time.h> always. Add comments.
66432
66433 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66434
66435         * modules/strptime: New file.
66436         * lib/strptime.h: New file.
66437         * lib/strptime.c: New file.
66438         * m4/strptime.m4: New file.
66439
66440 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66441
66442         * MODULES.html.sh: New module mpsort.
66443         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66444
66445         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66446         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66447         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66448         All uses changed.
66449         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66450         All uses changed.
66451         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66452         to _Restrict_.
66453         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66454         the parameter matches the prototype.
66455
66456 2007-01-28  Jim Meyering  <jim@meyering.net>
66457
66458         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66459         sys/time.h here, reverting that part of the previous patch:
66460         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66461
66462 2007-01-28  Bruno Haible  <bruno@clisp.org>
66463
66464         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66465         value of $(SYS_TIME_H).
66466         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66467         remove it conditionally, too. [added by Jim Meyering]
66468         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66469         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66470         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66471         GETTIMEOFDAY_REPLACEMENT to 1.
66472
66473 2007-01-28  Bruno Haible  <bruno@clisp.org>
66474
66475         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66476         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66478         Set UNISTD_H instead of UNISTD_H2.
66479         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66480
66481 2007-01-28  Bruno Haible  <bruno@clisp.org>
66482
66483         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66484         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66485
66486 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66487
66488         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66489         (func_create_testdir): Ensure C locale for `grep' and `tr'
66490         character ranges.
66491         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66492         ACLOCAL_AMFLAGS parsing state machine.
66493
66494 2007-01-27  Bruno Haible  <bruno@clisp.org>
66495
66496         * modules/unistr/base: Update.
66497
66498 2007-01-27  Bruno Haible  <bruno@clisp.org>
66499
66500         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66501         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66502         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66503         modules/unistr/u32-mbtouc.
66504         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66505         * lib/unistr.h: Update.
66506         * lib/linebreak.c: Update.
66507         * modules/unistr/u32-mbtouc: Renamed from
66508         modules/unistr/u32-mbtouc-safe.
66509         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66510         * lib/unistr.h: Update.
66511         * lib/unistr/u32-to-u8.c: Update.
66512         * lib/unistr/u32-to-u16.c: Update.
66513
66514 2007-01-27  Bruno Haible  <bruno@clisp.org>
66515
66516         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66517         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66518         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66519         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66520         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66521         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66522         modules/unistr/u16-mbtouc.
66523         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66524         * lib/unistr.h: Update.
66525         * lib/linebreak.c: Update.
66526         * modules/linebreak: Update.
66527         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66528         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66529         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66530         * modules/unistr/u16-mbtouc: Renamed from
66531         modules/unistr/u16-mbtouc-safe.
66532         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66533         * lib/unistr.h: Update.
66534         * lib/unistr/u16-to-u8.c: Update.
66535         * modules/unistr/u16-to-u8: Update.
66536         * lib/unistr/u16-to-u32.c: Update.
66537         * modules/unistr/u16-to-u32: Update.
66538
66539 2007-01-27  Bruno Haible  <bruno@clisp.org>
66540
66541         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66542         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66543         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66544         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66545         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66546         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66547         modules/unistr/u8-mbtouc.
66548         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66549         * lib/unistr.h: Update.
66550         * lib/striconveh.c: Update.
66551         * modules/striconveh: Update.
66552         * lib/linebreak.c: Update.
66553         * modules/linebreak: Update.
66554         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66555         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66556         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66557         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66558         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66559         * lib/unistr.h: Update.
66560         * lib/striconveh.c: Update.
66561         * modules/striconveh: Update.
66562         * lib/unistr/u8-to-u16.c: Update.
66563         * modules/unistr/u8-to-u16: Update.
66564         * lib/unistr/u8-to-u32.c: Update.
66565         * modules/unistr/u8-to-u32: Update.
66566
66567 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66568
66569         Sync from Libtool.
66570         * lib/argz.c: Do not include strings.h nor memory.h, include
66571         string.h unconditionally.  Patch by Simon Josefsson.
66572
66573 2007-01-27  Bruno Haible  <bruno@clisp.org>
66574
66575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66576         from gl_HEADER_STRING_H_BODY.
66577         (gl_HEADER_STRING_H_BODY): Require it.
66578         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66579         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66580         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66581         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66582         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66583         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66585         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66586         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66587         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66588         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66589         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66590         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66591         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66592         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66593
66594 2007-01-27  Bruno Haible  <bruno@clisp.org>
66595
66596         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66597         check_PROGRAMS into noinst_PROGRAMS.
66598         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66599         check_PROGRAMS in this case.
66600         (func_import): Set for_test to false.
66601         (func_create_testdir): Set for_test to true.
66602
66603 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66604             Bruno Haible  <bruno@clisp.org>
66605
66606         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66607         (Depends-on): Add string.
66608         (Includes): Use <string.h> instead of strcasestr.h.
66609         * modules/string (Makefile.am): Also substitute the value of
66610         REPLACE_STRCASESTR.
66611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66612         assume strcasestr is declared in <string.h> not <strings.h>. Also
66613         set REPLACE_STRCASESTR.
66614         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66615         REPLACE_STRCASESTR.
66616         * lib/strcasestr.h: Remove file.
66617         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66618         * lib/string_.h (strcasestr): New declaration.
66619
66620 2007-01-27  Bruno Haible  <bruno@clisp.org>
66621
66622         * lib/string_.h: Use 'extern'.
66623
66624 2007-01-27  Jim Meyering  <jim@meyering.net>
66625
66626         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66627         of set-but-not-used local, "q".
66628
66629         * lib/mempcpy.c: Include <config.h> before <string.h>.
66630         This fixes a compilation error on HP-UX, due to the system's
66631         "restrict"-using mempcpy prototype.
66632
66633 2007-01-26  Bruno Haible  <bruno@clisp.org>
66634
66635         Small optimization.
66636         * lib/javacomp.c: Include c-strstr.h.
66637          (is_envjavac_gcj): Use c_strstr instead of strstr.
66638         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66639
66640 2007-01-26  Bruno Haible  <bruno@clisp.org>
66641
66642         * MODULES.html.sh (Unicode string functions): Add the new modules.
66643
66644         * modules/uniconv/u32-strconv-to-locale: New file.
66645         * lib/uniconv/u32-strconv-to-locale.c: New file.
66646
66647         * modules/uniconv/u16-strconv-to-locale: New file.
66648         * lib/uniconv/u16-strconv-to-locale.c: New file.
66649
66650         * modules/uniconv/u8-strconv-to-locale: New file.
66651         * lib/uniconv/u8-strconv-to-locale.c: New file.
66652
66653         * modules/uniconv/u32-strconv-from-locale: New file.
66654         * lib/uniconv/u32-strconv-from-locale.c: New file.
66655
66656         * modules/uniconv/u16-strconv-from-locale: New file.
66657         * lib/uniconv/u16-strconv-from-locale.c: New file.
66658
66659         * modules/uniconv/u8-strconv-from-locale: New file.
66660         * lib/uniconv/u8-strconv-from-locale.c: New file.
66661
66662         * modules/uniconv/u32-strconv-to-enc: New file.
66663         * lib/uniconv/u32-strconv-to-enc.c: New file.
66664         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66665         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66666
66667         * modules/uniconv/u16-strconv-to-enc: New file.
66668         * lib/uniconv/u16-strconv-to-enc.c: New file.
66669         * lib/uniconv/u-strconv-to-enc.h: New file.
66670         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66671         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66672
66673         * modules/uniconv/u8-strconv-to-enc: New file.
66674         * lib/uniconv/u8-strconv-to-enc.c: New file.
66675         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66676         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66677
66678         * modules/uniconv/u32-strconv-from-enc: New file.
66679         * lib/uniconv/u32-strconv-from-enc.c: New file.
66680         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66681         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66682
66683         * modules/uniconv/u16-strconv-from-enc: New file.
66684         * lib/uniconv/u16-strconv-from-enc.c: New file.
66685         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66686         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66687
66688         * modules/uniconv/u8-strconv-from-enc: New file.
66689         * lib/uniconv/u8-strconv-from-enc.c: New file.
66690         * lib/uniconv/u-strconv-from-enc.h: New file.
66691         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66692         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66693
66694         * modules/uniconv/u32-conv-from-enc: New file.
66695         * lib/uniconv/u32-conv-from-enc.c: New file.
66696         * modules/uniconv/u32-conv-from-enc-tests: New file.
66697         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66698
66699         * modules/uniconv/u16-conv-from-enc: New file.
66700         * lib/uniconv/u16-conv-from-enc.c: New file.
66701         * lib/uniconv/u-conv-from-enc.h: New file.
66702         * modules/uniconv/u16-conv-from-enc-tests: New file.
66703         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66704
66705         * modules/uniconv/u8-conv-from-enc: New file.
66706         * lib/uniconv/u8-conv-from-enc.c: New file.
66707         * modules/uniconv/u8-conv-from-enc-tests: New file.
66708         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66709
66710         * modules/uniconv/base: New file.
66711         * lib/uniconv.h: New file.
66712
66713 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66714
66715         * doc/gnulib-tool.texi (Initial import): Update to match current
66716         behavior with strdup module.
66717         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66718         * lib/memmem.h: Remove; all uses removed.  This is now done
66719         by <string.h>.
66720         * lib/mempcpy.h: Likewise.
66721         * lib/memrchr.h: Likewise.
66722         * lib/stpcpy.h: Likewise.
66723         * lib/stpncpy.h: Likewise.
66724         * lib/strcase.h: Likewise.
66725         * lib/strchrnul.h: Likewise.
66726         * lib/strdup.h: Likewise.
66727         * lib/strndup.h: Likewise.
66728         * lib/strnlen.h: Likewise.
66729         * lib/strpbrk.h: Likewise.
66730         * lib/strsep.h: Likewise.
66731         * lib/strstr.h: Likewise.
66732         * lib/strtok_r.h: Likewise.
66733         * lib/string_.h: New file.
66734         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66735         Rely on <string.h> instead.
66736         * lib/canon-host.c: Likewise.
66737         * lib/chdir-long.c: Likewise.
66738         * lib/concatpath.c: Likewise.
66739         * lib/exclude.c: Likewise.
66740         * lib/fchdir.c: Likewise.
66741         * lib/getaddrinfo.c: Likewise.
66742         * lib/getcwd.c: Likewise.
66743         * lib/getsubopt.c: Likewise.
66744         * lib/glob.c: Likewise.
66745         * lib/hard-locale.c: Likewise.
66746         * lib/iconvme.c: Likewise.
66747         * lib/javacomp.c: Likewise.
66748         * lib/mempcpy.c: Likewise.
66749         * lib/memrchr.c: Likewise.
66750         * lib/regex_internal.h: Likewise.
66751         * lib/stpncpy.c: Likewise.
66752         * lib/strcasecmp.c: Likewise.
66753         * lib/strchrnul.c: Likewise.
66754         * lib/strdup.c: Likewise.
66755         * lib/striconv.c: Likewise.
66756         * lib/striconveh.c: Likewise.
66757         * lib/striconveha.c: Likewise.
66758         * lib/strncasecmp.c: Likewise.
66759         * lib/strndup.c: Likewise.
66760         * lib/strnlen.c: Likewise.
66761         * lib/strsep.c: Likewise.
66762         * lib/strstr.c: Likewise.
66763         * lib/strtok_r.c: Likewise.
66764         * lib/userspec.c: Likewise.
66765         * lib/w32spawn.h: Likewise.
66766         * lib/xstrndup.c: Likewise.
66767         * lib/mountlist.c (strstr): Remove decl.
66768         * m4/string_h.m4: New file.
66769         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66770         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66771         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66772         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66773         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66774         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66775         Set REPLACE_STRCASECMP if necessary.
66776         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66777         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66778         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66779         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66780         HAVE_DECL_STRDUP if necessary.
66781         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66782         since gl_FUNC_STRNDUP does that now.
66783         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66784         Check for decl here...
66785         (gl_PREREQ_STRNLEN): ... not here.
66786         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66787         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66788         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66789         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66790         necessary.
66791         * modules/string: New file.
66792         * modules/memmem (Files): Remove special-purpose include file.
66793         (Depends-on): Add string.
66794         (Include): Include <string.h>, not the removed file.
66795         * modules/mempcpy: Likewise.
66796         * modules/memrchr: Likewise.
66797         * modules/stpcpy: Likewise.
66798         * modules/stpncpy: Likewise.
66799         * modules/strcase: Likewise.
66800         * modules/strchrnul: Likewise.
66801         * modules/strdup: Likewise.
66802         * modules/strndup: Likewise.
66803         * modules/strnlen: Likewise.
66804         * modules/strpbrk: Likewise.
66805         * modules/strsep: Likewise.
66806         * modules/strstr: Likewise.
66807         * modules/strtok_r: Likewise.
66808         * tests/test-dirname.c: Don't include "strdup.h", since
66809         <string.h> now suffices.
66810         * tests/test-memmem.c: Don't include "memmem.h", since
66811         <string.h> now suffices.
66812
66813 2007-01-25  Bruno Haible  <bruno@clisp.org>
66814
66815         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66816         *resultp is 0.
66817
66818         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66819         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66820         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66821         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66822
66823         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66824         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66825         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66826         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66827         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66828         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66829
66830 2007-01-24  Bruno Haible  <bruno@clisp.org>
66831
66832         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66833         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66834         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66835         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66836         gl_FUNC_FTS_CORE.
66837         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66838         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66839         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66840         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66841         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66842         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66843         gl_FUNC_FCHOWNAT.
66844         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66845         gl_FUNC_STRFTIME.
66846         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66847         Reported by Ralf Wildenhues.
66848
66849 2007-01-24  Bruno Haible  <bruno@clisp.org>
66850
66851         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66852         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66853         gl_GETADDRINFO.
66854         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66855         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66856         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66857
66858 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66859
66860         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66861         Don't use 'exit'; just return from 'main'.
66862         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66863
66864         * lib/fnmatch_.h: Readjust white space and comments to match
66865         glibc, to avoid spurious diffs.
66866
66867 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66870         2004-12-01 change by Jakub Jelinek, since this code won't compile
66871         if !LIBC.  Problem reported by Bob Proulx.
66872
66873 2007-01-23  Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/striconveh.c: Include c-strcaseeq.h.
66876         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66877         * modules/striconveh (Depends-on): Add c-strcaseeq.
66878
66879 2007-01-23  Bruno Haible  <bruno@clisp.org>
66880
66881         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66882
66883         * modules/c-strcaseeq: New file.
66884         * lib/c-strcaseeq.h: New file.
66885
66886         * modules/streq: New file.
66887         * lib/streq.h: New file.
66888
66889 2007-01-23  Bruno Haible  <bruno@clisp.org>
66890
66891         * modules/striconveha-tests: New file.
66892         * tests/test-striconveha.c: New file.
66893
66894         * lib/striconveha.h: Include <stdbool.h>.
66895         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66896         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66897         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66898         (mem_iconveha): New function.
66899         (str_iconveha_notranslit): Renamed from str_iconveha.
66900         (str_iconveha): New function.
66901         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66902         c-strcase.
66903
66904 2007-01-23  Bruno Haible  <bruno@clisp.org>
66905
66906         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66907         encodings without forgiving before trying any encoding with handler.
66908         (str_iconveha): Try all encodings without forgiving before trying any
66909         encoding with handler.
66910
66911 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66912
66913         Import the following changes from libc.
66914
66915         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66916
66917         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66918
66919         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66920
66921         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66922         normal_bracket label.
66923
66924         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66925
66926         [BZ #361]
66927         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66928         to normal_bracket after fetching the next character.
66929
66930 2007-01-22  Bruno Haible  <bruno@clisp.org>
66931
66932         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66933         argument.
66934         * lib/striconveh.c (iconv_carefully_1): New function.
66935         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66936         argument.
66937         (str_cd_iconveh): Update.
66938         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66939         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66940         * tests/test-striconveh.c (MAGIC): New macro.
66941         (new_offsets): New function.
66942         (main): Test call with and without offsets.
66943
66944 2007-01-22  Bruno Haible  <bruno@clisp.org>
66945
66946         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66947         * modules/sys_select (Makefile.am): Likewise.
66948         * modules/sys_socket (Makefile.am): Likewise.
66949         * modules/sys_time (Makefile.am): Likewise.
66950
66951 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66952
66953         * modules/gettimeofday (License): Change from GPL to LGPL, since
66954         gettimeofday is a library function.
66955
66956 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66957
66958         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66959
66960 2007-01-21  Bruno Haible  <bruno@clisp.org>
66961
66962         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66963
66964 2007-01-21  Bruno Haible  <bruno@clisp.org>
66965
66966         * modules/striconveha: New file.
66967         * lib/striconveha.h: New file.
66968         * lib/striconveha.c: New file.
66969         * MODULES.html.sh (Internationalization functions): Add striconveha.
66970         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66971         string.
66972         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66973
66974 2007-01-21  Bruno Haible  <bruno@clisp.org>
66975
66976         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66977         * lib/striconveh.c (str_iconveh): Likewise.
66978
66979 2007-01-21  Bruno Haible  <bruno@clisp.org>
66980
66981         * lib/striconveh.h (mem_iconveh): New declaration.
66982         * lib/striconveh.c (mem_iconveh): New function.
66983         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66984
66985 2007-01-21  Bruno Haible  <bruno@clisp.org>
66986
66987         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66988
66989         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66990         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66991         original result buffer.
66992         (str_cd_iconveh): Update.
66993         * tests/test-striconveh.c (main): Update.
66994
66995         * lib/striconv.h (mem_cd_iconv): Change specification.
66996         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66997         result buffer.
66998         (str_cd_iconv): Update.
66999         * tests/test-striconv.c (main): Update.
67000
67001 2007-01-21  Bruno Haible  <bruno@clisp.org>
67002
67003         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
67004
67005 2007-01-20  Jim Meyering  <jim@meyering.net>
67006
67007         * lib/userspec.c (parse_with_separator): If a user or group string
67008         starts with "+", skip the corresponding name-to-ID look-up, since
67009         such a look-up must fail: user and group names may not include "+".
67010
67011 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67012
67013         * lib/poll.c: Include sys/time.h and time.h unconditionally,
67014         since we now assume the sys_time module.
67015         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67016         check for sys/time.h; no longer needed.
67017         * modules/poll (Depends-on): Depend on sys_time.
67018
67019 2007-01-18  Bruno Haible  <bruno@clisp.org>
67020
67021         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67022         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67023
67024         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67025         gettimeofday.
67026
67027         * tests/test-gettimeofday.c: Include <time.h>.
67028         (dummy): Remove variable.
67029
67030         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67031         gl_HEADER_SYS_TIME_H.
67032         (gl_HEADER_SYS_TIME_H): New macro.
67033
67034         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67035         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67036         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67037         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67038         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67039         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67040         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67041         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67042         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67043         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67044         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67045
67046         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67047         last change; it caused a compilation error when cross-compiling to
67048         Cygwin.
67049
67050 2007-01-18  Jim Meyering  <jim@meyering.net>
67051
67052         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67053         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67054         than the race-prone "test -d sys || mkdir sys".
67055         (configure.ac): Use AC_PROG_MKDIR_P.
67056         * modules/sys_select: Likewise.
67057         * modules/sys_socket: Likewise.
67058         * modules/sys_time: Likewise.
67059
67060 2007-01-18  Eric Blake  <ebb9@byu.net>
67061
67062         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67063         replace gettimeofday.
67064         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67065         name, to avoid infinite recursion.
67066
67067 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67068
67069         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67070         module sys_time.
67071         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67072         assume timespec.h defines struct timeval.
67073         * lib/settime.c: Likewise.
67074         * lib/utimens.c: Likewise.
67075         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67076         since we now assume the gettimeofday module.
67077         * lib/tempname.c (__gen_tempname): Likewise.
67078         * lib/gettimeofday.h: Remove.
67079         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67080         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67081         Include <time.h>, for 'time()'.
67082         (localtime_buffer_addr): Also use this workaround if
67083         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67084         to simplify the uses.  All uses changed.
67085         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67086         that #undef is inside {}, and 'const' follows type name consistently.
67087         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67088         (gettimeofday): Do not use the maximum possible value for
67089         tv->tv_usec, since that might break usages other than ls.c.
67090         Instead, we'll leave ls.c alone.  This undoes today's patch
67091         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67092         we've never observed the problem but might as well keep the
67093         canary.
67094         * lib/nanosleep.c: Include timespec.h first, for interface check.
67095         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67096         now assume the sys_time module.
67097         * lib/tempname.c: Likewise.
67098         * lib/timespec.h: Likewise.
67099         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67100         needed.
67101         * lib/strftime.c: Likewise.
67102         * lib/timespec.h: Likewise.
67103         * lib/posixtm.c: Include posixtm.h first, for interface check.
67104         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67105         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67106         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67107         * lib/sys_time_.h: New file.
67108         * lib/timespec.h (struct timespec): Use long int, not long.
67109         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67110         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67111         Remove obsolescent call to AC_HEADER_TIME.
67112         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67114         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67115         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67116         Likewise.
67117         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67118         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67120         into the sys_time module.  Check for gettimeofday just once.
67121         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67122         for gettimeofday signature to just check the signature.  Merely
67123         compile it, since linking doesn't test signature.  Improve test for
67124         whether gettimeofday.o is actually needed.
67125         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67126         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67127         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67128         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67129         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67130         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67131         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67132         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67133         than worrying about sys/time.h.
67134         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67135         Don't bother worrying about TIME_WITH_SYS_TIME.
67136         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67137         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67138         * m4/sys_time_h.m4: New file.
67139         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67140         Don't include sys/time.h.  Return from main rather than exiting.
67141         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67142         all uses changed.
67143         * modules/gethrxtime (Depends-on): Add sys_time.
67144         * modules/gettime (Depends-on): Likewise.
67145         * modules/gettimeofday (Depends-on): Likewise.
67146         * modules/nanosleep (Depends-on): Likewise.
67147         * modules/settime (Depends-on): Likewise.
67148         * modules/tempname (Depends-on): Likewise.
67149         * modules/utimens (Depends-on): Likewise.
67150         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67151         (Include): Change back to <sys/time.h>.
67152         (Maintainer): Add self.
67153         * modules/sys_time: New file.
67154         * modules/tempname (Depends-on): Add gettimeofday.
67155         * tests/test-gettimeofday.c: Include <sys/time.h>
67156         rather than gettimeofday.h.
67157
67158 2007-01-17  Bruno Haible  <bruno@clisp.org>
67159
67160         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67161         the license default to GPL.
67162         (func_create_testdir): Don't complain if a module is LGPL and its
67163         tests module depends on GPLed modules.
67164
67165 2007-01-17  Bruno Haible  <bruno@clisp.org>
67166
67167         * lib/gettimeofday.c (gettimeofday): Add code for the case
67168         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67169         maximum possible value for tv->tv_usec, rather than the minimum one.
67170
67171 2005-10-08  Martin Lambers  <marlam@marlam.de>
67172 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67173 2007-01-16  Bruno Haible  <bruno@clisp.org>
67174
67175         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67176         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67177         gl_FUNC_GETTIMEOFDAY.
67178         (Include): Add gettimeofday.h.
67179         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67180         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67181         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67182         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67183         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67184         * lib/gettimeofday.h: New file.
67185         * lib/gettimeofday.c: Include <sys/timeb.h>.
67186         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67187         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67188         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67189         fall back on time().
67190
67191         * tests/test-gettimeofday.c: New file.
67192         * modules/gettimeofday-tests: New file.
67193
67194 2007-01-16  Eric Blake  <ebb9@byu.net>
67195
67196         * modules/fnmatch (Depends-on): Depend on wchar.
67197         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67198         * m4/fnmatch.m4: Likewise.
67199         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67200         * m4/mbchar.m4: Likewise.
67201         * modules/mbswidth (Depends-on): Depend on wchar.
67202         * lib/mbswidth.c: Assume <wchar.h>.
67203         * m4/mbswidth.m4: Likewise.
67204         * modules/quotearg (Depends-on): Depend on wchar.
67205         * lib/quotearg.c: Assume <wchar.h>.
67206         * m4/quotearg.m4: Likewise.
67207         * modules/regex (Depends-on): Depend on wchar.
67208         * lib/regex_internal.h: Assume <wchar.h>.
67209         * m4/regex.m4: Likewise.
67210         * modules/stdint (Depends-on): Depend on wchar.
67211         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67212         * m4/stdint.m4: Likewise.
67213         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67214         * modules/strftime (Depends-on): Depend on wchar.
67215         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67216         * modules/strtol (Depends-on): Depend on wchar.
67217         * lib/strtol.c: Assume <wchar.h>.
67218         * modules/wcwidth (Depends-on): Depend on wchar.
67219         * lib/wcwidth.h: Assume <wchar.h>.
67220         * m4/wcwidth.m4: Likewise.
67221
67222 2007-01-16  Bruno Haible  <bruno@clisp.org>
67223
67224         * modules/csharpexec-script: New, created from...
67225         * modules/csharpexec: ... this.
67226
67227 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67228
67229         * modules/javaexec-script: New, created from...
67230         * modules/javaexec: ... this.
67231
67232 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67233
67234         * modules/poll (Dependencies): Add sys_select.
67235
67236 2007-01-15  Jim Meyering  <jim@meyering.net>
67237
67238         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67239         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67240         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67241         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67242
67243 2007-01-15  Bruno Haible  <bruno@clisp.org>
67244
67245         * modules/striconveh: New file.
67246         * lib/striconveh.h: New file.
67247         * lib/striconveh.c: New file.
67248         * MODULES.html.sh (Internationalization functions): Add striconveh.
67249
67250         * modules/striconveh-tests: New file.
67251         * tests/test-striconveh.c: New file.
67252
67253 2007-01-15  Bruno Haible  <bruno@clisp.org>
67254
67255         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67256         not from GNU libiconv or GNU libc.
67257
67258 2007-01-15  Bruno Haible  <bruno@clisp.org>
67259
67260         * doc/gnulib-intro.texi (Copyright): Explain the different license
67261         terms for module descriptions, autoconf macros, tests, documentation.
67262
67263 2007-01-14  Bruno Haible  <bruno@clisp.org>
67264
67265         * modules/striconv-tests: New file.
67266         * tests/test-striconv.c: New file.
67267
67268 2007-01-14  Bruno Haible  <bruno@clisp.org>
67269
67270         * modules/iconv-tests: New file.
67271         * tests/test-iconv.c: New file.
67272
67273 2007-01-14  Bruno Haible  <bruno@clisp.org>
67274
67275         * gnulib-tool (func_get_license): For test modules, use the license of
67276         the main module.
67277
67278 2007-01-14  Bruno Haible  <bruno@clisp.org>
67279
67280         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67281         if iconv is found to exist.
67282
67283 2007-01-14  Bruno Haible  <bruno@clisp.org>
67284
67285         * modules/c-ctype-tests: New file.
67286         * tests/test-c-ctype.c: New file.
67287
67288 2007-01-14  Bruno Haible  <bruno@clisp.org>
67289
67290         * modules/binary-io-tests: New file.
67291         * tests/test-binary-io.sh: New file.
67292         * tests/test-binary-io.c: New file.
67293
67294 2007-01-14  Bruno Haible  <bruno@clisp.org>
67295
67296         * modules/array-oset-tests: New file.
67297         * tests/test-array_oset.c: New file.
67298
67299 2007-01-14  Bruno Haible  <bruno@clisp.org>
67300
67301         * modules/array-list-tests: New file.
67302         * tests/test-array_list.c: New file.
67303
67304 2007-01-14  Bruno Haible  <bruno@clisp.org>
67305
67306         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67307         and make.
67308         Reported by Simon Josefsson in
67309         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67310
67311 2007-01-14  Bruno Haible  <bruno@clisp.org>
67312
67313         * modules/allocsa-tests: New file.
67314         * tests/test-allocsa.c: New file.
67315
67316 2007-01-14  Bruno Haible  <bruno@clisp.org>
67317
67318         * modules/fchdir (Depends-on): Add absolute-header.
67319         * modules/unistd (Depends-on): Likewise.
67320
67321 2006-12-30  Bruno Haible  <bruno@clisp.org>
67322
67323         * modules/fchdir: New file.
67324         * modules/unistd (Files): Add lib/unistd_.h.
67325         (Makefile.am): Generate unistd.h from unistd_.h.
67326         * lib/fchdir.c: New file.
67327         * lib/dirent_.h: New file.
67328         * lib/unistd_.h: New file.
67329         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67330         * m4/fchdir.m4: New file.
67331         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67332         (gl_HEADER_UNISTD): Invoke it.
67333         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67334         function.
67335         * lib/backupfile.c (opendir, closedir): Undefine.
67336         * lib/chown.c (open, close): Undefine.
67337         * lib/clean-temp.c (open, close): Undefine.
67338         * lib/copy-file.c (open, close): Undefine.
67339         * lib/execute.c (open, close): Undefine.
67340         * lib/fsusage.c (open, close): Undefine.
67341         * lib/gc-gnulib.c (open, close): Undefine.
67342         * lib/getcwd.c (opendir, closedir): Undefine.
67343         * lib/glob.c (opendir, closedir): Undefine.
67344         * lib/javacomp.c (open, close): Undefine.
67345         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67346         * lib/openat-proc.c (open, close): Undefine.
67347         * lib/pagealign_alloc.c (open, close): Undefine.
67348         * lib/pipe.c (open, close): Undefine.
67349         * lib/progreloc.c (open, close): Undefine.
67350         * lib/savedir.c (opendir, closedir): Undefine.
67351         * lib/utime.c (open, close): Undefine.
67352         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67353
67354 2007-01-10  Bruno Haible  <bruno@clisp.org>
67355
67356         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67357
67358 2007-01-12  Eric Blake  <ebb9@byu.net>
67359
67360         Provide a robust <wchar.h>.  Further simplifications are now
67361         possible in other modules, but not included here.
67362         * modules/wchar: New module.
67363         * m4/wchar.m4: New file.
67364         * lib/wchar_.h: Likewise.
67365         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67366         of the new module.
67367         * MODULES.html.sh (Extended multibyte and wide character utilities):
67368         New section.
67369
67370 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67371
67372         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67373         to a reasonable default for memory allocation.
67374         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67375         file system that reports garbage st_size values for symlinks.
67376         Problem reported by Liyang Hu.
67377
67378 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67379
67380         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67381         Emacs .#* auto-save files).
67382
67383 2007-01-11  Bruno Haible  <bruno@clisp.org>
67384
67385         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67386         directory.
67387
67388 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67389
67390         Use @...@ consistently in lib/wctype_.h.
67391         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67392         on it being set to 1 or 0.
67393         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67394         go back to AC_SUBSTing it.
67395         * modules/wctype (Makefile.am): Undo previous change.
67396
67397 2007-01-10  Eric Blake  <ebb9@byu.net>
67398
67399         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67400         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67401         * modules/wctype (Makefile.am): Likewise.
67402         Reported by Chris McGuire.
67403
67404 2007-01-10  Jim Meyering  <jim@meyering.net>
67405
67406         fts.c: a small readability/maintainability improvement
67407         * lib/fts.c (fts_read): Make this code slightly more readable and
67408         maintainable by hoisting the "sp->fts_cur = p" assignments to
67409         immediately follow the statements that set P.  Derived from
67410         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67411
67412 2007-01-10  Eric Blake  <ebb9@byu.net>
67413
67414         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67415         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67417         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67418         Reported by Chris McGuire.
67419
67420 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67421
67422         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67423         in sed script.
67424
67425 2007-01-09  Bruno Haible  <bruno@clisp.org>
67426
67427         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67428         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67429         variables.
67430         (func_module): Use them.
67431
67432 2007-01-09  Bruno Haible  <bruno@clisp.org>
67433
67434         * modules/unistr/base: New file.
67435         * lib/unistr.h: New file.
67436
67437         * modules/unistr/u8-to-u16: New file.
67438         * lib/unistr/u8-to-u16.c: New file.
67439
67440         * modules/unistr/u8-to-u32: New file.
67441         * lib/unistr/u8-to-u32.c: New file.
67442
67443         * modules/unistr/u16-to-u8: New file.
67444         * lib/unistr/u16-to-u8.c: New file.
67445
67446         * modules/unistr/u16-to-u32: New file.
67447         * lib/unistr/u16-to-u32.c: New file.
67448
67449         * modules/unistr/u32-to-u8: New file.
67450         * lib/unistr/u32-to-u8.c: New file.
67451
67452         * modules/unistr/u32-to-u16: New file.
67453         * lib/unistr/u32-to-u16.c: New file.
67454
67455         * modules/unistr/u8-check: New file.
67456         * modules/unistr/u16-check: New file.
67457         * modules/unistr/u32-check: New file.
67458         * lib/unistr/u8-check.c: New file.
67459         * lib/unistr/u16-check.c: New file.
67460         * lib/unistr/u32-check.c: New file.
67461
67462         * modules/unistr/u8-chr: New file.
67463         * modules/unistr/u16-chr: New file.
67464         * modules/unistr/u32-chr: New file.
67465         * lib/unistr/u8-chr.c: New file.
67466         * lib/unistr/u16-chr.c: New file.
67467         * lib/unistr/u32-chr.c: New file.
67468
67469         * modules/unistr/u8-cmp: New file.
67470         * modules/unistr/u16-cmp: New file.
67471         * modules/unistr/u32-cmp: New file.
67472         * lib/unistr/u8-cmp.c: New file.
67473         * lib/unistr/u16-cmp.c: New file.
67474         * lib/unistr/u32-cmp.c: New file.
67475
67476         * modules/unistr/u8-cpy: New file.
67477         * modules/unistr/u16-cpy: New file.
67478         * modules/unistr/u32-cpy: New file.
67479         * lib/unistr/u8-cpy.c: New file.
67480         * lib/unistr/u16-cpy.c: New file.
67481         * lib/unistr/u32-cpy.c: New file.
67482         * lib/unistr/u-cpy.h: New file.
67483
67484         * modules/unistr/u8-cpy-alloc: New file.
67485         * modules/unistr/u16-cpy-alloc: New file.
67486         * modules/unistr/u32-cpy-alloc: New file.
67487         * lib/unistr/u8-cpy-alloc.c: New file.
67488         * lib/unistr/u16-cpy-alloc.c: New file.
67489         * lib/unistr/u32-cpy-alloc.c: New file.
67490         * lib/unistr/u-cpy-alloc.h: New file.
67491
67492         * modules/unistr/u8-endswith: New file.
67493         * modules/unistr/u16-endswith: New file.
67494         * modules/unistr/u32-endswith: New file.
67495         * lib/unistr/u8-endswith.c: New file.
67496         * lib/unistr/u16-endswith.c: New file.
67497         * lib/unistr/u32-endswith.c: New file.
67498         * lib/unistr/u-endswith.h: New file.
67499
67500         * modules/unistr/u8-mblen: New file.
67501         * modules/unistr/u16-mblen: New file.
67502         * modules/unistr/u32-mblen: New file.
67503         * lib/unistr/u8-mblen.c: New file.
67504         * lib/unistr/u16-mblen.c: New file.
67505         * lib/unistr/u32-mblen.c: New file.
67506
67507         * modules/unistr/u8-mbtouc: New file.
67508         * modules/unistr/u16-mbtouc: New file.
67509         * modules/unistr/u32-mbtouc: New file.
67510         * lib/unistr/u8-mbtouc.c: New file.
67511         * lib/unistr/u16-mbtouc.c: New file.
67512         * lib/unistr/u32-mbtouc.c: New file.
67513
67514         * modules/unistr/u8-mbtouc-safe: New file.
67515         * modules/unistr/u16-mbtouc-safe: New file.
67516         * modules/unistr/u32-mbtouc-safe: New file.
67517         * lib/unistr/u8-mbtouc-safe.c: New file.
67518         * lib/unistr/u16-mbtouc-safe.c: New file.
67519         * lib/unistr/u32-mbtouc-safe.c: New file.
67520
67521         * modules/unistr/u8-move: New file.
67522         * modules/unistr/u16-move: New file.
67523         * modules/unistr/u32-move: New file.
67524         * lib/unistr/u8-move.c: New file.
67525         * lib/unistr/u16-move.c: New file.
67526         * lib/unistr/u32-move.c: New file.
67527         * lib/unistr/u-move.h: New file.
67528
67529         * modules/unistr/u8-next: New file.
67530         * modules/unistr/u16-next: New file.
67531         * modules/unistr/u32-next: New file.
67532         * lib/unistr/u8-next.c: New file.
67533         * lib/unistr/u16-next.c: New file.
67534         * lib/unistr/u32-next.c: New file.
67535
67536         * modules/unistr/u8-prev: New file.
67537         * modules/unistr/u16-prev: New file.
67538         * modules/unistr/u32-prev: New file.
67539         * lib/unistr/u8-prev.c: New file.
67540         * lib/unistr/u16-prev.c: New file.
67541         * lib/unistr/u32-prev.c: New file.
67542
67543         * modules/unistr/u8-set: New file.
67544         * modules/unistr/u16-set: New file.
67545         * modules/unistr/u32-set: New file.
67546         * lib/unistr/u8-set.c: New file.
67547         * lib/unistr/u16-set.c: New file.
67548         * lib/unistr/u32-set.c: New file.
67549         * lib/unistr/u-set.h: New file.
67550
67551         * modules/unistr/u8-startswith: New file.
67552         * modules/unistr/u16-startswith: New file.
67553         * modules/unistr/u32-startswith: New file.
67554         * lib/unistr/u8-startswith.c: New file.
67555         * lib/unistr/u16-startswith.c: New file.
67556         * lib/unistr/u32-startswith.c: New file.
67557         * lib/unistr/u-startswith.h: New file.
67558
67559         * modules/unistr/u8-stpcpy: New file.
67560         * modules/unistr/u16-stpcpy: New file.
67561         * modules/unistr/u32-stpcpy: New file.
67562         * lib/unistr/u8-stpcpy.c: New file.
67563         * lib/unistr/u16-stpcpy.c: New file.
67564         * lib/unistr/u32-stpcpy.c: New file.
67565         * lib/unistr/u-stpcpy.h: New file.
67566
67567         * modules/unistr/u8-stpncpy: New file.
67568         * modules/unistr/u16-stpncpy: New file.
67569         * modules/unistr/u32-stpncpy: New file.
67570         * lib/unistr/u8-stpncpy.c: New file.
67571         * lib/unistr/u16-stpncpy.c: New file.
67572         * lib/unistr/u32-stpncpy.c: New file.
67573         * lib/unistr/u-stpncpy.h: New file.
67574
67575         * modules/unistr/u8-strcat: New file.
67576         * modules/unistr/u16-strcat: New file.
67577         * modules/unistr/u32-strcat: New file.
67578         * lib/unistr/u8-strcat.c: New file.
67579         * lib/unistr/u16-strcat.c: New file.
67580         * lib/unistr/u32-strcat.c: New file.
67581         * lib/unistr/u-strcat.h: New file.
67582
67583         * modules/unistr/u8-strchr: New file.
67584         * modules/unistr/u16-strchr: New file.
67585         * modules/unistr/u32-strchr: New file.
67586         * lib/unistr/u8-strchr.c: New file.
67587         * lib/unistr/u16-strchr.c: New file.
67588         * lib/unistr/u32-strchr.c: New file.
67589
67590         * modules/unistr/u8-strcmp: New file.
67591         * modules/unistr/u16-strcmp: New file.
67592         * modules/unistr/u32-strcmp: New file.
67593         * lib/unistr/u8-strcmp.c: New file.
67594         * lib/unistr/u16-strcmp.c: New file.
67595         * lib/unistr/u32-strcmp.c: New file.
67596
67597         * modules/unistr/u8-strcpy: New file.
67598         * modules/unistr/u16-strcpy: New file.
67599         * modules/unistr/u32-strcpy: New file.
67600         * lib/unistr/u8-strcpy.c: New file.
67601         * lib/unistr/u16-strcpy.c: New file.
67602         * lib/unistr/u32-strcpy.c: New file.
67603         * lib/unistr/u-strcpy.h: New file.
67604
67605         * modules/unistr/u8-strcspn: New file.
67606         * modules/unistr/u16-strcspn: New file.
67607         * modules/unistr/u32-strcspn: New file.
67608         * lib/unistr/u8-strcspn.c: New file.
67609         * lib/unistr/u16-strcspn.c: New file.
67610         * lib/unistr/u32-strcspn.c: New file.
67611         * lib/unistr/u-strcspn.h: New file.
67612
67613         * modules/unistr/u8-strdup: New file.
67614         * modules/unistr/u16-strdup: New file.
67615         * modules/unistr/u32-strdup: New file.
67616         * lib/unistr/u8-strdup.c: New file.
67617         * lib/unistr/u16-strdup.c: New file.
67618         * lib/unistr/u32-strdup.c: New file.
67619         * lib/unistr/u-strdup.h: New file.
67620
67621         * modules/unistr/u8-strlen: New file.
67622         * modules/unistr/u16-strlen: New file.
67623         * modules/unistr/u32-strlen: New file.
67624         * lib/unistr/u8-strlen.c: New file.
67625         * lib/unistr/u16-strlen.c: New file.
67626         * lib/unistr/u32-strlen.c: New file.
67627         * lib/unistr/u-strlen.h: New file.
67628
67629         * modules/unistr/u8-strmblen: New file.
67630         * modules/unistr/u16-strmblen: New file.
67631         * modules/unistr/u32-strmblen: New file.
67632         * lib/unistr/u8-strmblen.c: New file.
67633         * lib/unistr/u16-strmblen.c: New file.
67634         * lib/unistr/u32-strmblen.c: New file.
67635
67636         * modules/unistr/u8-strmbtouc: New file.
67637         * modules/unistr/u16-strmbtouc: New file.
67638         * modules/unistr/u32-strmbtouc: New file.
67639         * lib/unistr/u8-strmbtouc.c: New file.
67640         * lib/unistr/u16-strmbtouc.c: New file.
67641         * lib/unistr/u32-strmbtouc.c: New file.
67642
67643         * modules/unistr/u8-strncat: New file.
67644         * modules/unistr/u16-strncat: New file.
67645         * modules/unistr/u32-strncat: New file.
67646         * lib/unistr/u8-strncat.c: New file.
67647         * lib/unistr/u16-strncat.c: New file.
67648         * lib/unistr/u32-strncat.c: New file.
67649         * lib/unistr/u-strncat.h: New file.
67650
67651         * modules/unistr/u8-strncmp: New file.
67652         * modules/unistr/u16-strncmp: New file.
67653         * modules/unistr/u32-strncmp: New file.
67654         * lib/unistr/u8-strncmp.c: New file.
67655         * lib/unistr/u16-strncmp.c: New file.
67656         * lib/unistr/u32-strncmp.c: New file.
67657
67658         * modules/unistr/u8-strncpy: New file.
67659         * modules/unistr/u16-strncpy: New file.
67660         * modules/unistr/u32-strncpy: New file.
67661         * lib/unistr/u8-strncpy.c: New file.
67662         * lib/unistr/u16-strncpy.c: New file.
67663         * lib/unistr/u32-strncpy.c: New file.
67664         * lib/unistr/u-strncpy.h: New file.
67665
67666         * modules/unistr/u8-strnlen: New file.
67667         * modules/unistr/u16-strnlen: New file.
67668         * modules/unistr/u32-strnlen: New file.
67669         * lib/unistr/u8-strnlen.c: New file.
67670         * lib/unistr/u16-strnlen.c: New file.
67671         * lib/unistr/u32-strnlen.c: New file.
67672         * lib/unistr/u-strnlen.h: New file.
67673
67674         * modules/unistr/u8-strpbrk: New file.
67675         * modules/unistr/u16-strpbrk: New file.
67676         * modules/unistr/u32-strpbrk: New file.
67677         * lib/unistr/u8-strpbrk.c: New file.
67678         * lib/unistr/u16-strpbrk.c: New file.
67679         * lib/unistr/u32-strpbrk.c: New file.
67680         * lib/unistr/u-strpbrk.h: New file.
67681
67682         * modules/unistr/u8-strrchr: New file.
67683         * modules/unistr/u16-strrchr: New file.
67684         * modules/unistr/u32-strrchr: New file.
67685         * lib/unistr/u8-strrchr.c: New file.
67686         * lib/unistr/u16-strrchr.c: New file.
67687         * lib/unistr/u32-strrchr.c: New file.
67688
67689         * modules/unistr/u8-strspn: New file.
67690         * modules/unistr/u16-strspn: New file.
67691         * modules/unistr/u32-strspn: New file.
67692         * lib/unistr/u8-strspn.c: New file.
67693         * lib/unistr/u16-strspn.c: New file.
67694         * lib/unistr/u32-strspn.c: New file.
67695         * lib/unistr/u-strspn.h: New file.
67696
67697         * modules/unistr/u8-strstr: New file.
67698         * modules/unistr/u16-strstr: New file.
67699         * modules/unistr/u32-strstr: New file.
67700         * lib/unistr/u8-strstr.c: New file.
67701         * lib/unistr/u16-strstr.c: New file.
67702         * lib/unistr/u32-strstr.c: New file.
67703         * lib/unistr/u-strstr.h: New file.
67704
67705         * modules/unistr/u8-strtok: New file.
67706         * modules/unistr/u16-strtok: New file.
67707         * modules/unistr/u32-strtok: New file.
67708         * lib/unistr/u8-strtok.c: New file.
67709         * lib/unistr/u16-strtok.c: New file.
67710         * lib/unistr/u32-strtok.c: New file.
67711         * lib/unistr/u-strtok.h: New file.
67712
67713         * modules/unistr/u8-uctomb: New file.
67714         * modules/unistr/u16-uctomb: New file.
67715         * modules/unistr/u32-uctomb: New file.
67716         * lib/unistr/u8-uctomb.c: New file.
67717         * lib/unistr/u16-uctomb.c: New file.
67718         * lib/unistr/u32-uctomb.c: New file.
67719
67720         * MODULES.html.sh (Unicode string functions): Add the new modules.
67721
67722 2007-01-08  Bruno Haible  <bruno@clisp.org>
67723
67724         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67725         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67726         subdirectories.
67727
67728 2007-01-08  Karl Berry  <karl@gnu.org>
67729
67730         * doc/error.texi: mention that main() fns must set program_name
67731         when progname is used.
67732
67733 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67734
67735         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67736         WCTYPE_H is empty, for the benefit of builds from non-distclean
67737         directories.  Problem reported by Eric Blake in
67738         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67739
67740 2007-01-08  Bruno Haible  <bruno@clisp.org>
67741
67742         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67743         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67744         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67745         PROVIDE_CANONICALIZE_FILENAME_MODE.
67746         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67747
67748 2007-01-08  Bruno Haible  <bruno@clisp.org>
67749
67750         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67751         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67752         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67753         * lib/fts.c: Likewise.
67754         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67755
67756 2006-12-25  Bruno Haible  <bruno@clisp.org>
67757
67758         * modules/utf8-ucs4-safe: New file.
67759         * lib/utf8-ucs4-safe.h: New file.
67760         * lib/unistr/utf8-ucs4-safe.c: New file.
67761
67762         * modules/utf16-ucs4-safe: New file.
67763         * lib/utf16-ucs4-safe.h: New file.
67764         * lib/unistr/utf16-ucs4-safe.c: New file.
67765
67766         * MODULES.html.sh (Unicode string functions): Add the new modules.
67767
67768 2007-01-08  Bruno Haible  <bruno@clisp.org>
67769
67770         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67771         (Depends-on): Add unitypes.
67772         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67773         (u8_mbtouc_aux): Move out to separate file.
67774         (u8_mbtouc): Use ucs4_t, uint8_t types.
67775         * lib/unistr/utf8-ucs4.c: New file.
67776
67777         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67778         (Depends-on): Add unitypes.
67779         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67780         (u16_mbtouc_aux): Move out to separate file.
67781         (u16_mbtouc): Use ucs4_t, uint16_t types.
67782         * lib/unistr/utf16-ucs4.c: New file.
67783
67784         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67785         (Depends-on): Add unitypes.
67786         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67787         (u8_uctomb_aux): Move out to separate file.
67788         (u8_uctomb): Use ucs4_t, uint8_t types.
67789         * lib/unistr/ucs4-utf8.c: New file.
67790
67791         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67792         (Depends-on): Add unitypes.
67793         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67794         (u16_uctomb_aux): Move out to separate file.
67795         (u16_uctomb): Use ucs4_t, uint16_t types.
67796         * lib/unistr/ucs4-utf16.c: New file.
67797
67798 2006-12-25  Bruno Haible  <bruno@clisp.org>
67799
67800         * modules/unitypes: New file.
67801         * lib/unitypes.h: New file.
67802         * MODULES.html.sh (func_all_modules): New section "Unicode string
67803         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67804         this section. Add unitypes.
67805
67806 2007-01-08  Bruno Haible  <bruno@clisp.org>
67807
67808         Avoid variable names that conflict with those from libtool.
67809         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67810         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67811         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67812         library_names_spec to acl_library_names_spec, hardcode_* to
67813         acl_hardcode_*.
67814         Reported by Ralf Wildenhues.
67815
67816 2007-01-08  Bruno Haible  <bruno@clisp.org>
67817
67818         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67819         definition.
67820         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67821         definition.
67822         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67823         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67824         definition.
67825         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67826         definition.
67827         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67828         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67829         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67830         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67831         definition.
67832         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67833         definition.
67834         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67835         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67836         GC_USE_<algorithm>.
67837         * lib/gc-libgcrypt.c: Likewise.
67838         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67839         * modules/gc-arctwo (configure.ac): Likewise.
67840         * modules/gc-des (configure.ac): Likewise.
67841         * modules/gc-hmac-md5 (configure.ac): Likewise.
67842         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67843         * modules/gc-md2 (configure.ac): Likewise.
67844         * modules/gc-md4 (configure.ac): Likewise.
67845         * modules/gc-md5 (configure.ac): Likewise.
67846         * modules/gc-random (configure.ac): Likewise.
67847         * modules/gc-rijndael (configure.ac): Likewise.
67848         * modules/gc-sha1 (configure.ac): Likewise.
67849
67850 2007-01-08  Bruno Haible  <bruno@clisp.org>
67851
67852         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67853         macro definition.
67854         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67855         definition.
67856         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67857         definition.
67858         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67859         * modules/fcntl-safer (configure.ac): Likewise.
67860         * modules/fopen-safer (configure.ac): Likewise.
67861         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67862         GNULIB_FWRITEERROR macro definition.
67863
67864 2007-01-08  Bruno Haible  <bruno@clisp.org>
67865
67866         * m4/gnulib-common.m4: New file.
67867         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67868         (func_get_filelist): Add m4/gnulib-common.m4.
67869
67870 2007-01-08  Bruno Haible  <bruno@clisp.org>
67871
67872         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67873         command.
67874
67875 2007-01-08  Jim Meyering  <jim@meyering.net>
67876
67877         Use a more robust test for a "can't happen" condition.
67878         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67879         narrowed the st_size value.  Presuming the "can't happen" condition
67880         is true, that narrowing could conceivably convert an invalid st_size
67881         value into a valid one.  Instead, use a change based on Matthew
67882         Woehlke's original patch.
67883
67884         Slight readability improvement: use an assert-like macro
67885         in place of literal "abort ()" uses.
67886         * lib/fts.c (fts_assert): Define.
67887         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67888         Use this macro instead of a bare 'abort'.
67889
67890 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67891
67892         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67893         simply work around them.
67894         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67895         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67896         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67897         declaring.
67898         Don't bother to define as macros, since the standard doesn't require it.
67899         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67900         longer worry about IRIX 5.3.
67901         (HAVE_WCTYPE_CTMP_BUG): Remove.
67902
67903 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67906         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67907         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67908         Problems reported by Georg Schwarz for IRIX 5.3.
67909
67910         * gnulib-tool (autoconf_minversion): Take the maximum version number
67911         found, not the minimum.  Problem reported by James Youngman.
67912
67913 2007-01-03  Karl Berry  <karl@gnu.org>
67914
67915         * doc/error.texi: new file, explaining interaction with progname.
67916         * doc/gnulib.texi: include it.  Update copyright.
67917
67918 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67919
67920         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67921         AC_CANONICAL_HOST, to improve autobuild outputs.
67922
67923 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67924             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67925
67926         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67927         sockets, server sockets, and other file descriptors.  Count errors
67928         to compute the return value.  Reorder the code a bit to be easier
67929         to follow.  Don't set event bits that were not requested (except
67930         POLLERR and POLLHUP).
67931
67932 2007-01-01  Bruno Haible  <bruno@clisp.org>
67933
67934         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67935
67936 2007-01-03  Jim Meyering  <jim@meyering.net>
67937
67938         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67939
67940 2007-01-02  Bruno Haible  <bruno@clisp.org>
67941
67942         * modules/settime (Include): Require timespec.h.
67943         * modules/nanosleep (Include): Likewise.
67944
67945 2007-01-01  Bruno Haible  <bruno@clisp.org>
67946
67947         * gnulib-tool (func_emit_copyright_notice): Bump year.
67948         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67949
67950 2007-01-01  Bruno Haible  <bruno@clisp.org>
67951
67952         Improve support for OpenBSD.
67953         * build-aux/config.rpath (libname_spec): Export.
67954         (library_names_spec): New variable. Export.
67955         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67956         library_names_spec from the config.rpath output. Locate shared library
67957         through the name pattern in library_names_spec.
67958
67959 2007-01-01  Eric Blake  <ebb9@byu.net>
67960
67961         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67962
67963 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67964
67965         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67966         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67967         assume the C locale, and avoid an "eval" that could cause trouble.
67968         Problem with SORT reported by Bob Proulx.
67969
67970         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67971         Define.  Trivial patch from Henning Nielsen Lund, originally
67972         sent to bug-grep@gnu.org today.
67973
67974 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67975
67976         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67977         struct stat.  Problem reported by Henning Nielsen Lund.
67978         * lib/acl.c: Include acl.h first, to check interface.  Don't
67979         bother to include sys/types.h and sys/stat.h again.
67980
67981 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67982
67983         Import the following change from libc; problem reported by
67984         Sven Verdoolaege.
67985
67986         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67987
67988         [BZ #1373]
67989         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67990
67991 2006-12-28  Jim Meyering  <jim@meyering.net>
67992
67993         * build-aux/announce-gen: Do not assume that the package
67994         builds any of tar.gz, tar.bz2, and .xdelta files.
67995         Suggestion from Simon Josefsson.
67996
67997 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67998
67999         * modules/announce-gen: New file.
68000
68001 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * lib/mbchar.h: Just include <wctype.h>; the wctype module
68004         handles its gotchas now.
68005         * lib/mbswidth.c: Likewise.
68006         * lib/wcwidth.h: Likewise.
68007         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
68008         and iswcntrl; the wctype module does this stuff now.
68009         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68010         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68011         * modules/mbchar (Depends-on): Add wctype.
68012         * modules/mbswidth (Depends-on): Likewise.
68013         * modules/wcwidth (Depends-on): Likewise.
68014
68015 2006-12-27  Eric Blake  <ebb9@byu.net>
68016
68017         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68018         module uses more than what <wctype.h> is required to provide.
68019
68020 2006-12-26  Eric Blake  <ebb9@byu.net>
68021
68022         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68023
68024 2006-12-26  Eric Blake  <ebb9@byu.net>
68025
68026         * modules/absolute-header: New module.
68027         * modules/fcntl (Depends-on): Depend on it.
68028         * modules/inttypes (Depends-on): Likewise.
68029         * modules/stdint (Depends-on): Likewise.
68030         * modules/sys_stat (Depends-on): Likewise.
68031         * modules/wctype (Depends-on): Likewise.
68032         * MODULES.html.sh (Support for building libraries and
68033         executables): Document it.
68034
68035 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * gnulib-tool (SED): Remove, undoing previous change.
68038         The problem was that it broke coreutils on Solaris, because
68039         "sed --posix" leaked into a makefile.
68040         (sed): New alias, if 'alias' and GNU sed.
68041
68042 2006-12-24  Jim Meyering  <jim@meyering.net>
68043
68044         Work around an fchownat bug in glibc-2.4:
68045         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68046         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68047         in spite of the -P option.
68048         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68049         New macros.
68050         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68051         * modules/openat (Files): Add lib/fchownat.c.
68052         * lib/openat.c (fchownat): Don't define here.  Move to...
68053         * lib/fchownat.c: ...this new file.
68054
68055 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68056
68057         Fix bug reported by Bruno Haible in
68058         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68059         where quotearg.c didn't compile on Mac OS X 10.2 because it
68060         lacks <wchar.h> and wint_t.
68061         * lib/wctype_.h (__wctype_wint_t): New type.
68062         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68063         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68064         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68065         Arg is now of type __wctype_wint_t, not wint_t.
68066         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68067         substitute HAVE_WINT_T.
68068         * modules/wctype (Files): Add m4/wint_t.m4.
68069         (wctype.h): Substitute HAVE_WINT_T.
68070
68071 2006-12-23  Bruno Haible  <bruno@clisp.org>
68072
68073         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68074
68075 2006-12-23  Bruno Haible  <bruno@clisp.org>
68076
68077         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68078         S_ISLNK.
68079         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68080         mingw.
68081
68082 2006-12-22  Bruno Haible  <bruno@clisp.org>
68083
68084         * lib/copy-file.c: Include acl.h.
68085         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68086         Close the file descriptors only after being done with copy_acl.
68087         * modules/copy-file (Depends-on): Add acl.
68088
68089 2006-12-22  Bruno Haible  <bruno@clisp.org>
68090
68091         * gnulib-tool (SED): New variable.
68092         Use $SED instead of sed everywhere.
68093
68094 2006-12-22  Bruno Haible  <bruno@clisp.org>
68095
68096         * modules/no-c++: New file.
68097         * m4/no-c++.m4: New file.
68098         * MODULES.html.sh (Support for building libraries and executables):
68099         Add no-c++.
68100
68101 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68102
68103         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68104         Include <limits.h>, and use its INT_MAX to rewrite the
68105         j loop so that it does not overflow 'int'.  Problem reported by
68106         Ralf Wildenhues in
68107         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68108         Play it safe by shifting left by 1 rather than multiplying by 2,
68109         as GCC is less likely to optimize this away when the value
68110         is signed (when it assumes overflow leads to undefined behavior).
68111         Also, don't assume time_t uses two's complement.
68112
68113 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68114
68115         * MODULES.html.sh: New module wctype.
68116         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68117         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68118         <wctype.h>, since the new wctype module should fix this.
68119         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68120         the wctype module should arrange for it.
68121         * lib/regex_internal.h: Likewise.
68122         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68123         since the wctype module should handle this now.
68124         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68125         * modules/fnmatch (Depends-on): Add wctype.
68126         * modules/quotearg (Depends-on): Likewise.
68127         * modules/regex (Depends-on): Likewise.
68128
68129 2006-12-19  Bruno Haible  <bruno@clisp.org>
68130
68131         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68132         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68133
68134 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68135
68136         * modules/savewd (Depends-on): Fix dependency on fcntl.
68137
68138 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68141         conforms to C99, rather than relying on the user's environment
68142         setting of STDINT_H.
68143
68144 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68145         and Eric Blake  <ebb9@byu.net>
68146
68147         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68148         This is more consistent with the other defines here.
68149         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68150         Port to z/OS.  Problem reported by Paul Gilmartin.
68151         Change local vars to use gl_ prefix rather than ac_.
68152         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68153         with other defines.
68154         * modules/double-slash-root: New module.
68155         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68156         (Depends-on): Add double-slash-root.
68157         * MODULES.html.sh (File system functions): Mention new module.
68158
68159 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68162         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68163         This is for the benefit of gzip, which doesn't do i18n.
68164
68165 2006-12-12  Jim Meyering  <jim@meyering.net>
68166
68167         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68168         Reported by Andreas Schwab <schwab@suse.de>.
68169
68170 2006-12-12  Bruno Haible  <bruno@clisp.org>
68171
68172         Merge these changes.
68173         2006-09-05  Bruno Haible  <bruno@clisp.org>
68174         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68175         iconv_alloc succeeded.
68176         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68177         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68178         test for " && dest " at the end - dest is always != NULL there. Call
68179         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68180         with 2xNULL arguments, also to flush the state storage. Handle the
68181         IRIX iconv behaviour. Realloc the final result, to throw away unused
68182         memory.
68183
68184 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68185
68186         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68187         and fchmodat unconditionally, since glibc 2.4 has them.
68188         Problem reported by Arkadiusz Miskiewicz.
68189
68190 2006-12-10  Bruno Haible  <bruno@clisp.org>
68191
68192         * gnulib-tool (func_import): Show the include files only for those
68193         modules that are copied and specified.
68194         Reported by Karl Berry.
68195
68196 2006-12-08  Jim Meyering  <jim@meyering.net>
68197
68198         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68199         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68200
68201         * build-aux/announce-gen: Add two new options, both optional:
68202         --bootstrap-tools=TOOL_LIST
68203               a comma-separated list of tools, e.g.,
68204               autoconf,automake,bison,gnulib
68205         --gnulib-snapshot-date=DATE
68206               if gnulib is in the bootstrap tool list,
68207               then report this as the snapshot date.
68208               If not specified, use the current date/time.
68209               If you specify a date here, be sure it's UTC.
68210
68211 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68212
68213         * tests/test-argp-2.sh: Fix test to match actual output.
68214         (func_compare): Fix sed script to be portable.
68215
68216 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68217
68218         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68219         workaround for this case.  It is not autoconfigured now; offhand
68220         it's hard to see how to autoconfigure it.
68221
68222 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68223
68224         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68225         a directory that is about to be chowned.  Such a directory's
68226         initial file permissions should permit the owner only and this
68227         should not be changed until after the chown, since the group and
68228         other bits would be incorrect if they granted permission before
68229         the chown.
68230
68231         Fix porting problem for iswctype reported by Georg Schwarz in:
68232         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68233         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68234         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68235         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68236         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68237
68238 2006-12-03  Jim Meyering  <jim@meyering.net>
68239
68240         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68241         p->fts_statp may not yet be defined.
68242         (fts_read): Instead, set it in the caller, once p->fts_statp is
68243         sure to be defined, and corresponds to a top-level directory.
68244         This bug made du -x fail.  Here's the coreutils test case:
68245         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68246         Reported by Mike Frysinger.
68247
68248 2006-12-01  Jim Meyering  <jim@meyering.net>
68249
68250         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68251         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68252         Reported by Simon Josefsson.
68253
68254 2006-11-30  Jim Meyering  <jim@meyering.net>
68255
68256         * m4/warning.m4: Use the all-permissive copyright notice
68257         recommended by RMS (rather than LGPL).
68258         * m4/vararrays.m4: Likewise.
68259         * m4/flexmember.m4: Likewise.
68260
68261 2006-11-29  Bruno Haible  <bruno@clisp.org>
68262
68263         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68264         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68265         using +=.
68266         Reported by Simon Josefsson <simon@josefsson.org>.
68267
68268 2006-11-28  James Youngman <jay@gnu.org>
68269
68270         * README: Advise users that they might find the bug-gnulib@gnu.org
68271         and autotools-announce@gnu.org mailing lists useful.
68272
68273 2006-11-28  Bruno Haible  <bruno@clisp.org>
68274
68275         * m4/ptrdiff_max.m4: Remove file.
68276
68277 2006-11-21  Bruno Haible  <bruno@clisp.org>
68278
68279         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68280         _AC_COMPUTE_INT.
68281         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68282         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68283         _AC_COMPUTE_INT.
68284         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68285         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68286         _AC_COMPUTE_INT.
68287         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68288
68289 2006-11-28  Jim Meyering  <jim@meyering.net>
68290
68291         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68292         warning from "gcc -Wshadow" about shadowing the builtin.
68293
68294 2006-11-27  Bruno Haible  <bruno@clisp.org>
68295
68296         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68297         _AC_COMPUTE_INT.
68298         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68299
68300 2006-11-27  Bruno Haible  <bruno@clisp.org>
68301             Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68304
68305 2006-11-26  Bruno Haible  <bruno@clisp.org>
68306
68307         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68308         noinst_LTLIBRARIES.
68309
68310 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68311             Bruno Haible  <bruno@clisp.org>
68312
68313         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68314         if compiling with "gcc -ansi".
68315
68316 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         Fix some incompatibilities with gcc -ansi -pedantic.
68319         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68320         if compiling pedantically with GCC, unless it's C99 or later.
68321         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68322         it mishandles gcc -ansi -pedantic as well.
68323         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68324         if gcc -pedantic.
68325         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68326         initializers for struct if -pedantic, unless it's C99 or later.
68327
68328 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68329
68330         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68331         Don't close an fd more than once. Identical atimes indicate
68332         success, not failure.
68333
68334 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68335
68336         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68337
68338 2006-11-23  Jim Meyering  <jim@meyering.net>
68339
68340         * build-aux/announce-gen: New file.  From coreutils.
68341
68342 2006-11-22  Jim Meyering  <jim@meyering.net>
68343
68344         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68345         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68346         (fts_read): Use a temporary to narrow the overused st_size member
68347         before using it in a switch statement.  Reported by Matthew Woehlke.
68348
68349         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68350         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68351
68352 2006-11-20  Bruno Haible  <bruno@clisp.org>
68353
68354         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68355         changequote instead of pairs of brackets.
68356         Reported by Andreas Schwab <schwab@suse.de>.
68357
68358 2006-11-21  Jim Meyering  <jim@meyering.net>
68359
68360         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68361         so as to remain compatible with older compilers.
68362         Patch from Michael Deutschmann.
68363
68364 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68365
68366         * MODULES.html.sh (File system functions): Add openat.
68367
68368         * lib/openat.h (rpl_fstatat): New macro, if
68369         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68370         (fstatat): Define to rpl_fstatat under the same conditions,
68371         unless COMPILING_FSTATAT.
68372         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68373         seems to have the bug.
68374         * lib/fstatat.c: New file.
68375         * modules/openat (Files): Add it.
68376
68377 2006-11-20  Bruno Haible  <bruno@clisp.org>
68378
68379         * Makefile: New file.
68380
68381 2006-11-20  Jim Meyering  <jim@meyering.net>
68382
68383         The beginnings of syntax-related checks for gnulib.
68384         * lib/Makefile: New file.
68385         * lib/t-idcache: New script.  Ensure that the two halves of
68386         idcache.c stay in sync.
68387
68388         * lib/idcache.c: Adjust comments in user- and group- portions to
68389         be more accurate, and to be consistent with one another.
68390
68391 2006-11-20  Jim Meyering  <jim@meyering.net>
68392
68393         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68394         continue using the flexible array member (thus, this module performs
68395         half as many malloc calls), with the addition that...
68396         (getgroup, getuser): Consistently record a non-match via an empty
68397         "name" string, and map an empty string match to a NULL return value.
68398         * modules/idcache (Depends-on): Re-add flexmember.
68399
68400         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68401         (getuidbyname, getgroup, getgidbyname): Likewise.
68402
68403         Use cleaner syntax: NULL rather than 0.
68404         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68405
68406 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68407
68408         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68409         It mishandled the case where the group was missing.
68410         Problem reported by Greg Schafer.
68411         * modules/idcache: Likewise.
68412
68413 2006-11-18  Jim Meyering  <jim@meyering.net>
68414
68415         * check-module (%exempt_header): Add exception for some
68416         conditionally-included headers.
68417
68418         * modules/i-ring (Depends-on): Add verify.
68419         (License): Change to LGPL.
68420
68421 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68422
68423         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68424         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68425         and inttostr.h.  Use snprintf rather than uinttostr, so that
68426         LGPLed code doesn't depend on GPLed.
68427
68428 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68429
68430         * modules/inline (License): Change from GPL to LGPL.
68431
68432 2006-11-17  Jim Meyering  <jim@meyering.net>
68433
68434         * modules/d-type (License): Switch to LGPL.
68435
68436 2006-11-15  Bruno Haible  <bruno@clisp.org>
68437
68438         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68439
68440 2006-11-15  Eric Blake  <ebb9@byu.net>
68441
68442         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68443         the module dependency.
68444
68445 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68446             Bruno Haible  <bruno@clisp.org>
68447
68448         * gnulib-tool (func_create_testdir): Add license consistency check.
68449
68450 2006-11-15  Eric Blake  <ebb9@byu.net>
68451
68452         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68453         random "(cached)" in configure output.
68454
68455 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68456
68457         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68458         test for conforming inttypes.h is both announced and cached.
68459
68460         * MODULES.html.sh (seen_modules, seen_files): New variables.
68461         (func_module): Rewrite to use a few less gnulib-tool and sed
68462         invocations.  Avoid a couple of quadratic algorithms for ...
68463         (missed_modules, missed_files): ... these, with ...
68464         (func_append, func_tmpdir): ... these new functions, from
68465         gnulib-tool.  Analogously, install traps for cleanup.
68466
68467         * tests/test-gc.c (main): Remove unused variables.
68468         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68469
68470 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68471
68472         * modules/inttostr (License): Change to LGPL.
68473
68474 2006-11-14  Eric Blake  <ebb9@byu.net>
68475
68476         * modules/tempname (License): Change to LGPL.
68477
68478 2006-11-14  Eric Blake  <ebb9@byu.net>
68479
68480         * doc/functions.texi (Function Portability): *printf functions on
68481         Cygwin now understand all POSIX size specifiers.
68482
68483 2006-11-14  Bruno Haible  <bruno@clisp.org>
68484
68485         * modules/c-ctype (License): Change to LGPL.
68486
68487 2006-11-12  Bruno Haible  <bruno@clisp.org>
68488
68489         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68490         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68491         for GNOME libraries, for which the include files are installed in
68492         subdirectories of $prefix/include.
68493
68494 2006-11-12  Bruno Haible  <bruno@clisp.org>
68495
68496         * m4/lib-link.m4: Require at least autoconf-2.54.
68497         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68498         name to underscores for the --with option.
68499
68500 2006-11-13  Bruno Haible  <bruno@clisp.org>
68501
68502         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68503         the tests directory.
68504         Reported by Ralf Wildenhues.
68505
68506 2006-11-13  Bruno Haible  <bruno@clisp.org>
68507
68508         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68509         (func_emit_initmacro_end): Undo the override here.
68510         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68511         Works around the famous automake error in coreutils.
68512
68513 2006-11-13  Eric Blake  <ebb9@byu.net>
68514
68515         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68516         element, not its node.
68517
68518 2006-11-12  Bruno Haible  <bruno@clisp.org>
68519
68520         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68521         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68522
68523 2006-11-12  Bruno Haible  <bruno@clisp.org>
68524
68525         * gnulib-tool: New option --local-symlink.
68526         (func_usage): Document it.
68527         (lsymbolic): New variable.
68528         (func_import, func_create_testdir): If --symlink was not specified,
68529         test whether --local-symlink was specified and the file comes from
68530         the local_gnulib_dir.
68531
68532 2006-11-12  Bruno Haible  <bruno@clisp.org>
68533
68534         * gnulib-tool (func_ln): New function.
68535         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68536
68537 2006-11-12  Bruno Haible  <bruno@clisp.org>
68538
68539         Finish support for source files in subdirectories.
68540         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68541         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68542         AUTOMAKE_OPTIONS.
68543         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68544
68545 2006-11-12  Bruno Haible  <bruno@clisp.org>
68546
68547         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68548         EXTRA_lib_SOURCES augmentation.
68549         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68550
68551 2006-11-12  Jim Meyering  <jim@meyering.net>
68552
68553         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68554         file descriptors.  This also averts a failure on systems with
68555         native openat support when a traversed directory lacks "x" access.
68556         * lib/fts_.h: Include "i-ring.h"
68557         (struct FTS) [fts_fd_ring]: New member.
68558         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68559         (FCHDIR): Add parentheses.
68560         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68561         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68562         When descending, rather than simply closing the previous
68563         fts_cwd_fd value, push that file descriptor onto the ring.
68564         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68565         (fts_open): Initialize the new fd_ring member.
68566         (fts_close): Clear the ring.
68567         (fts_safe_changedir): When possible, use our new fd_ring to skip
68568         the diropen and fstat and dev/ino comparison that would normally
68569         accompany a virtual `chdir ("..")'.
68570
68571         * modules/fts (Depends-on): Add i-ring.
68572         * modules/i-ring: New module.
68573         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68574         * m4/i-ring.m4: New file.
68575
68576 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68577
68578         * gnulib-tool (func_create_testdir): Fix replacement of
68579         `build-aux' in configure.ac.  Run autotools in gltests
68580         subdirectory.
68581         (func_create_testdir, func_create_megatestdir, test): There is
68582         no need for '--force' in most autotool invocations in a new
68583         tree.  Actually fail the whole test if any of the tools, or the
68584         configure or make stages fail.
68585
68586         Sync from Automake.
68587         * build-aux/gnupload: Revert last change.  Add pointer to upload
68588         instructions of the GNU Maintenance Instructions.
68589         Suggestion by Karl Berry.
68590
68591 2006-11-10  Jim Meyering  <jim@meyering.net>
68592
68593         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68594
68595 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68598         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68599         (bind_textdomain_codeset) [! ENABLE_NLS]:
68600         Evaluate all the arguments.  That way, callers get compatible behavior
68601         if the arguments have side effects.  Also, it avoids some GCC
68602         diagnostics in some cases; Joel E. Denny reported problems when Bison
68603         was configured with --enable-gcc-warnigs.
68604
68605 2006-11-10  Jim Meyering  <jim@meyering.net>
68606
68607         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68608         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68609         account.
68610
68611 2006-11-10  Jim Meyering  <jim@meyering.net>
68612
68613         * modules/inline: New file/module.
68614         * modules/xalloc (Files): Remove m4/inline.m4.
68615         (Depends-on): Add inline, instead.
68616         * modules/oset: Likewise.
68617         * modules/list: Likewise.
68618
68619 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68620
68621         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68622         Problem reported by Matthew Woehlke.
68623
68624 2006-11-09  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/tempname.c (gen_tempname): Remove variant that invokes
68627         __gen_tempname.
68628         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68629         __gen_tempname.
68630
68631 2006-11-08  Bruno Haible  <bruno@clisp.org>
68632
68633         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68634         to 'yes' instead of 'cross-compiling'.
68635
68636 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68637
68638         * lib/quotearg.h (quotearg_free): New decl.
68639         * lib/quotearg.c (quotearg_free): New function.
68640         (slot0, nslots, slotvec0, slotvec):
68641         Now file-scope so that quotearg_free can get at them.
68642
68643 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68644
68645         Sync from Automake.
68646         * build-aux/gnupload: Add missing 'gnu' to example URL.
68647         Report by Karl Berry.
68648
68649 2006-11-08  Bruno Haible  <bruno@clisp.org>
68650
68651         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68652         Suggested by Paul Eggert.
68653
68654 2006-11-08  Jim Meyering  <jim@meyering.net>
68655
68656         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68657         It's already included if !_LIBC.
68658         (fts_safe_changedir): Add a comment.
68659
68660 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68661
68662         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68663         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68664         Matthew Woehlke.
68665
68666         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68667         definitions up, to avoid colliding with change below.
68668         (static_inline) [HAVE_INLINE]: New macro.
68669         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68670         Provide extern decls when !HAVE_INLINE.  Do not define unless
68671         static_inline is defined, either by us or by xmalloc.c.  Use
68672         static_inline rather than static inline.
68673         (XCALLOC): Optimize sizeof(T) = 1 case.
68674         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68675
68676 2006-11-07  Bruno Haible  <bruno@clisp.org>
68677
68678         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68679         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68680         AC_C_INLINE.
68681         * modules/xalloc (Files): Add m4/inline.m4.
68682
68683 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68684
68685         * README: Fix typo.
68686         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68687         (Miscellanous Notes): ...from this.
68688
68689 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68690
68691         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68692         Mention that offsetof should be used instead of sizeof.
68693         From Bruno Haible.
68694
68695 2006-11-07  Bruno Haible  <bruno@clisp.org>
68696
68697         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68698
68699 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68700
68701         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68702         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68703         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68704         (gl_tree_add_before, gl_tree_add_after):
68705         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68706         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68707         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68708         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68709         (gl_linked_add_after, gl_linked_add_at): Likewise.
68710         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68711         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68712         (gl_tree_add_before, gl_tree_add_after): Likewise.
68713         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68714         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68715         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68716
68717 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68718
68719         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68720
68721 2006-11-06  Bruno Haible  <bruno@clisp.org>
68722
68723         * m4/inline.m4: New file.
68724         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68725         * modules/list (Files): Add m4/inline.m4.
68726         * modules/oset (Files): Likewise.
68727
68728 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68729
68730         * lib/idcache.c: Include <stddef.h>, for offsetof.
68731         (struct userid.name): Change from char * to a flexible array member.
68732         All uses changed.
68733         * modules/idcache (Depends-on): Add flexmember.
68734
68735         * MODULES.html.sh (Core language properties): New module flexmember.
68736         * modules/flexmember, m4/flexmember.m4: New files.
68737
68738         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68739         inline functions that are identical with the old xnmalloc_inline,
68740         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68741         that we can avoid some unnecessary integer multiplications and
68742         divisions in the common case where the element size is known at
68743         compile time.
68744         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68745         needed.
68746         (xnboundedmalloc): Remove.
68747         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68748         arguments, for consistency with rest of this header.
68749         (xcharalloc): Rewrite using XNMALLOC.
68750         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68751         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68752         versions have been moved to lib/xalloc.h and renamed to be the
68753         non-*_inline versions.
68754         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68755         and xnrealloc functions, since those functions are now inline and
68756         now call us.
68757         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68758         renaming described above.
68759         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68760         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68761         captures the dependency in AC_C_INLINE.
68762
68763         New module canonicalize-lgpl, proposed by Charles Wilson in
68764         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68765         with a few small changes afterwards.
68766         * MODULES.html.sh (File system functions): New module
68767         canonicalize-lgpl.
68768         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68769         and canonicalize_file_name.
68770         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68771         * modules/canonicalize-lgpl: New files.
68772
68773 2006-11-05  Bruno Haible  <bruno@clisp.org>
68774
68775         * gnulib-tool (func_import, func_create_testdir): Create directories
68776         also for files in subdirectories of lib/.
68777
68778 2006-11-05  Bruno Haible  <bruno@clisp.org>
68779
68780         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68781         ANSI C compliant.
68782
68783 2006-11-03  Bruno Haible  <bruno@clisp.org>
68784
68785         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68786         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68787         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68788         (xnboundedmalloc): New inline function.
68789         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68790         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68791         xmalloc.
68792         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68793         xmalloc.
68794         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68795         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68796         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68797         xmalloc.
68798         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68799         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68800         xmalloc.
68801         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68802         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68803         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68804         xmalloc.
68805         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68806         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68807         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68808         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68809         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68810         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68811         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68812
68813 2006-11-03  Bruno Haible  <bruno@clisp.org>
68814
68815         * lib/c-ctype.h [C++]: Define functions without name mangling.
68816         * lib/fwriteerror.h [C++]: Likewise.
68817         * lib/gcd.h [C++]: Likewise.
68818         * lib/linebreak.h [C++]: Likewise.
68819
68820 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68821
68822         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68823         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68824         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68825         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68826         Check for functions and headers just once.
68827         Check for declaration of canonicalize_file_name.
68828         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68829
68830 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68831
68832         * gnulib-tool (func_import): Fix typo in actioncmd.
68833
68834 2006-11-02  Bruno Haible  <bruno@clisp.org>
68835
68836         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68837         newline sequence in the Makefile.am snippet as a space, like "make"
68838         does.
68839         Reported by Roger Persson <perrog@gmail.com>.
68840
68841 2006-11-01  Bruno Haible  <bruno@clisp.org>
68842
68843         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68844         already declared in <string.h>.
68845         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68846
68847 2006-11-01  Bruno Haible  <bruno@clisp.org>
68848
68849         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68850         * lib/strcase.h: Include <string.h>.
68851         (strcasecmp): Define to rpl_strcasecmp here.
68852
68853 2006-11-01  Bruno Haible  <bruno@clisp.org>
68854
68855         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68856
68857 2006-11-01  Eric Blake  <ebb9@byu.net>
68858
68859         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68860
68861         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68862
68863 2006-10-29  Bruno Haible  <bruno@clisp.org>
68864
68865         Make it compile in C++ mode.
68866         * lib/full-write.c (full_rw): Add a cast.
68867
68868 2006-11-01  Bruno Haible  <bruno@clisp.org>
68869
68870         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68871         be POSIX compliant.
68872         Reported by Roger Persson <perrog@gmail.com>.
68873
68874 2006-11-01  Eric Blake  <ebb9@byu.net>
68875
68876         * lib/getopt_.h: Fix comments.
68877
68878 2006-10-31  Eric Blake  <ebb9@byu.net>
68879
68880         * modules/tmpdir (Depends-on): Add sys_stat.
68881         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68882         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68883         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68884         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68885         tempname.
68886
68887 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68888
68889         Avoid some C++ diagnostics reported by Bruno Haible.
68890         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68891         xmalloc.
68892         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68893         (struct slotvec): Move to top level.
68894         (quotearg_n_options): Rewrite to avoid xmalloc.
68895         * lib/xalloc.h (xcharalloc): New function.
68896         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68897         [defined __cplusplus]: Add function template that provides result
68898         type propagation.  This part of the change is from Bruno Haible.
68899
68900 2006-10-29  Bruno Haible  <bruno@clisp.org>
68901
68902         Make it compile in C++ mode.
68903         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68904         * lib/strnlen1.c (strnlen1): Cast memchr result.
68905         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68906         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68907         (create_temp_dir): Rename local variable 'template'.
68908         (compile_csharp_using_sscli): Add cast.
68909         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68910         * lib/findprog.c (find_in_path): Likewise.
68911         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68912         * lib/wait-process.c (register_slave_subprocess): Likewise.
68913
68914 2006-10-22  Bruno Haible  <bruno@clisp.org>
68915
68916         * modules/tsearch: New file.
68917         * lib/tsearch.h: New file.
68918         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68919         * m4/tsearch.m4: New file.
68920         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68921
68922 2006-10-29  Eric Blake  <ebb9@byu.net>
68923
68924         * lib/arcfour.c: Assume config.h.
68925         * lib/arctwo.c: Likewise.
68926         * lib/base64.c: Likewise.
68927         * lib/check-version.c: Likewise.
68928         * lib/crc.c: Likewise.
68929         * lib/des.c: Likewise.
68930         * lib/gc-gnulib.c: Likewise.
68931         * lib/gc-libgcrypt.c: Likewise.
68932         * lib/gc-pbkdf2-sha1.c: Likewise.
68933         * lib/getaddrinfo.c: Likewise.
68934         * lib/getdelim.c: Likewise.
68935         * lib/getline.c: Likewise.
68936         * lib/hmac-md5.c: Likewise.
68937         * lib/hmac-sha1.c: Likewise.
68938         * lib/iconvme.c: Likewise.
68939         * lib/md2.c: Likewise.
68940         * lib/md4.c: Likewise.
68941         * lib/memxor.c: Likewise.
68942         * lib/read-file.c: Likewise.
68943         * lib/readline.c: Likewise.
68944         * lib/rijndael-alg-fst.c: Likewise.
68945         * lib/rijndael-api-fst.c: Likewise.
68946         * lib/xgetdomainname.c: Likewise.
68947
68948 2006-10-28  Eric Blake  <ebb9@byu.net>
68949
68950         * lib/xstrndup.c: Assume config.h.
68951
68952 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68953
68954         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68955         stat-macros.h is now for our own macros, whereas stat_h is for
68956         macros in the <sys/stat.h> name space.
68957         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68958         (STAT_MACROS_H): Remove.
68959         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68960         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68961         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68962         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68963         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68964         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68965         Move these macros to ...
68966         * lib/stat_.h: here.  Don't include stat-macros.h.
68967         * lib/canonicalize.c: Don't include stat-macros.h.
68968         * lib/chown.c: Likewise.
68969         * lib/euidaccess.c: Likewise.
68970         * lib/file-type.c: Likewise.
68971         * lib/filemode.c: Likewise.
68972         * lib/glob.c: Likewise.
68973         * lib/isapipe.c: Likewise.
68974         * lib/lchown.c: Likewise.
68975         * lib/lstat.c: Likewise.
68976         * lib/mkdir-p.c: Likewise.
68977         * lib/rmdir.c: Likewise.
68978         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68979         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68980         unless mkdir isn't declared, to speed up 'configure'.
68981         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68982         would define all the S_* symbols.
68983         * modules/canonicalize (Depends-on):
68984         Depend on sys_stat, not stat-macros.
68985         * modules/chown: Likewise.
68986         * modules/euidaccess: Likewise.
68987         * modules/filemode: Likewise.
68988         * modules/file-type: Likewise.
68989         * modules/glob: Likewise.
68990         * modules/isapipe: Likewise.
68991         * modules/lchown: Likewise.
68992         * modules/lstat: Likewise.
68993         * modules/mkancesdirs: Likewise.
68994         * modules/rmdir: Likewise.
68995         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68996         * modules/modechange: Likewise.
68997         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68998         (configure.ac): Remove gl_STAT_MACROS.
68999         * modules/sys_stat (Depends-on): Remove stat-macros.
69000
69001 2006-10-27  Bruno Haible  <bruno@clisp.org>
69002
69003         * m4/signed.m4: Remove file.
69004         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
69005         invocation.
69006         * modules/vasnprintf (Files): Remove m4/signed.m4.
69007
69008 2006-10-27  Bruno Haible  <bruno@clisp.org>
69009
69010         Update to GNU gettext 0.16.
69011         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
69012         m4/inttypes-h.m4, m4/signed.m4.
69013         * m4/gettext.m4: Update to GNU gettext 0.16.
69014         * m4/intl.m4: New file, from GNU gettext.
69015         * m4/intldir.m4: New file, from GNU gettext.
69016         * config/srclist.txt: Update
69017
69018 2006-10-27  Eric Blake  <ebb9@byu.net>
69019
69020         * MODULES.html.sh: Document tempname.
69021         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69022         dependencies.
69023         (Files): Move lib/tempname.c...
69024         * modules/tempname: ...to this new module.
69025         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69026         (gl_PREREQ_TEMPNAME): Move...
69027         * m4/tempname.m4: ...to this new file.
69028         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69029         * modules/sys_stat (Depends-on): Add stat-macros.
69030         * lib/stat_.h (includes): Pick up stat macros.
69031         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69032         if stat macros are broken.
69033         * lib/tempname.c (includes): No need to include "stat-macros.h".
69034         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69035         (direxists, __path_search) [!_LIBC]: Don't compile these in
69036         gnulib; the tmpdir module covers that.
69037         * lib/tempname.h: New file.
69038
69039 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * COPYING: Explain how gnulib-tool converts licence headers.
69042         Almost all wording by Eric Blake.
69043
69044 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69045
69046         * lib/mbchar.h (is_basic_table): Make read-only.
69047         * lib/mbchar.c (is_basic_table): Likewise.
69048         Reported by John Darrington.
69049
69050 2006-10-25  Bruno Haible  <bruno@clisp.org>
69051
69052         * lib/progname.h (set_program_name): Undefine before defining.
69053
69054 2006-10-25  Bruno Haible  <bruno@clisp.org>
69055
69056         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69057         false for non-gcc C++ compilers.
69058         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69059
69060 2006-10-24  Bruno Haible  <bruno@clisp.org>
69061
69062         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69063         iconv implementations like Irix iconv.
69064
69065 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         * modules/vararrays: New file.
69068         * m4/vararrays.m4: New file, taken from diffutils.
69069         * MODULES.html.sh: New module vararrays.
69070
69071 2006-10-24  Karl Berry  <karl@gnu.org>
69072
69073         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69074         Don't call GNU Unix.
69075
69076 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69077
69078         * users.txt: Add Libtool.
69079
69080         Sync from Libtool:
69081
69082         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69085         to gnulib's policy of including config.h unconditionally.
69086
69087 2006-10-24  Bruno Haible  <bruno@clisp.org>
69088
69089         * modules/wcwidth (Files): Add m4/wint_t.m4.
69090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69091         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69092
69093 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69094
69095         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69096         to pacify GCC with some -W flags enabled.  Problem reported by
69097         Bruno Haible.
69098
69099 2006-10-24  Jim Meyering  <jim@meyering.net>
69100
69101         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69102         Reported by Karl Berry.
69103
69104 2006-10-23  Bruno Haible  <bruno@clisp.org>
69105
69106         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69107
69108 2006-10-24  Bruno Haible  <bruno@clisp.org>
69109
69110         * lib/gl_list.h: Use C comment style, not C++ comment style.
69111
69112 2006-10-23  Eric Blake  <ebb9@byu.net>
69113
69114         * lib/getaddrinfo.c (includes): Add missing include.
69115
69116 2006-10-23  Bruno Haible  <bruno@clisp.org>
69117             Paul Eggert  <eggert@cs.ucla.edu>
69118
69119         Ability to rename obstack_free.
69120         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69121         obstack_free.
69122         (obstack_free): Invoke the __obstack_free macro.
69123         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69124
69125 2006-10-23  Bruno Haible  <bruno@clisp.org>
69126             Paul Eggert  <eggert@cs.ucla.edu>
69127
69128         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69129         __argc, __argv from the declaration. (They are defined as macros on
69130         mingw.)
69131
69132 2006-10-22  Bruno Haible  <bruno@clisp.org>
69133
69134         * doc/gnulib-intro.texi: New file.
69135         * doc/gnulib.texi: Include it.
69136
69137 2006-10-21  Bruno Haible  <bruno@clisp.org>
69138
69139         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69140         "Introduction", "Miscellanous Notes", "Particular Modules".
69141
69142 2006-10-21  Bruno Haible  <bruno@clisp.org>
69143
69144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69145         Change mostlyclean-local rule to avoid sh syntax error from bash
69146         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69147
69148 2006-10-23  Jim Meyering  <jim@meyering.net>
69149
69150         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69151         in place of snprintf.
69152
69153         * modules/inttostr (Files): Add lib/uinttostr.c.
69154         * lib/uinttostr.c (inttostr): New file/function.
69155         * lib/inttostr.h (uinttostr): Declare.
69156         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69157         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69158         Add uinttostr.
69159         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69160
69161 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69162
69163         * lib/canonicalize.c (ELOOP): Define if not already defined.
69164         Problem reported by Bruno Haible in
69165         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69166
69167 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69170         Problem reported by Perry Smith and Ville Laurikari.
69171
69172         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69173         uses.
69174
69175 2006-10-19  Bruno Haible  <bruno@clisp.org>
69176
69177         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69178         for mingw.
69179
69180 2006-10-19  Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69183         Needed for mingw.
69184
69185 2006-10-19  Bruno Haible  <bruno@clisp.org>
69186
69187         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69188
69189 2006-10-19  Bruno Haible  <bruno@clisp.org>
69190
69191         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69192         it.
69193
69194 2006-10-19  Bruno Haible  <bruno@clisp.org>
69195
69196         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69197         invocation.
69198
69199 2006-10-19  Bruno Haible  <bruno@clisp.org>
69200
69201         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69202         mountlist by default.
69203
69204 2006-10-16  Bruno Haible  <bruno@clisp.org>
69205
69206         * lib/c-strstr.c: Include c-strstr.h.
69207
69208 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69209
69210         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69211         in a slash.
69212
69213 2006-10-18  Bruno Haible  <bruno@clisp.org>
69214
69215         * lib/lock.h [C++]: Wrap definitions in extern "C".
69216
69217 2006-10-18  Bruno Haible  <bruno@clisp.org>
69218
69219         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69220         gl_LIBOBJS list.
69221
69222 2006-10-18  Bruno Haible  <bruno@clisp.org>
69223
69224         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69225
69226 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69227
69228         * lib/xstrtol.h: Include gettext.h.
69229         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69230         Problem reported by Eric Blake.
69231         * modules/xstrtol (Depends-on): Add gettext-h.
69232
69233 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69234
69235         * lib/strftime.c (advance): New macro.
69236         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69237         incomplete type, so you can't add 0 to it.  Problem and patch
69238         reported by Eelco Dolstra for dietlibc.
69239
69240 2006-10-18  Jim Meyering  <jim@meyering.net>
69241
69242         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69243         type for a local, and rename it: s/up/user_proc/.
69244
69245 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69246
69247         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69248         READ_UTMP_USER_PROCESS.
69249         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69250
69251 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69252
69253         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69254         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69255
69256 2006-10-17  Eric Blake  <ebb9@byu.net>
69257
69258         * lib/sigprocmask.c (sigprocmask): Fix typo.
69259
69260         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69261
69262         * modules/clean-temp (Makefile.am): Don't add to make output...
69263         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69264         config.h.
69265
69266 2006-10-17  Bruno Haible  <bruno@clisp.org>
69267
69268         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69269         differently if DEFAULT_TEXT_DOMAIN is set.
69270
69271 2006-10-16  Bruno Haible  <bruno@clisp.org>
69272
69273         * lib/clean-temp.c: Include fwriteerror.h.
69274
69275 2006-10-16  Bruno Haible  <bruno@clisp.org>
69276
69277         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69278
69279 2006-10-16  Bruno Haible  <bruno@clisp.org>
69280
69281         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69282         * lib/sigprocmask.h: Include <sys/types.h>.
69283         (sigset_t): Use the system's definition if present.
69284
69285 2006-10-17  Eric Blake  <ebb9@byu.net>
69286
69287         * lib/xvasprintf.c (includes): Assume config.h.
69288         * lib/xasprintf.c (includes): Likewise.
69289
69290 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69291
69292         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69293         at least as wide as intmax_t.
69294
69295 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69296
69297         (Imported from Automake.)
69298         * build-aux/gnupload: Update to version 1.1 of directive file.
69299
69300 2006-10-16  Eric Blake  <ebb9@byu.net>
69301
69302         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69303         match Automake 1.10a.
69304
69305 2006-10-14  Bruno Haible  <bruno@clisp.org>
69306
69307         * modules/sigprocmask: New file.
69308         * lib/sigprocmask.h: New file.
69309         * lib/sigprocmask.c: New file.
69310         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69311         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69312         request sigprocmask.o.
69313         (gl_PREREQ_SIGPROCMASK): New macro.
69314         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69315         (Depends-on): Add sigprocmask.
69316         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69317         gt_SIGNALBLOCKING. Test for 'raise' only once.
69318         * lib/fatal-signal.c: Include sigprocmask.h.
69319         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69320         unblock_fatal_signals): Define always.
69321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69322         sigprocmask.
69323
69324 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69325
69326         Sync from Automake.
69327         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69328         which incorrectly sets the mode of an existing destination
69329         directory.  In some cases the unpatched install-sh could do the
69330         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69331         system.  We hope this is rare in practice, but it's clearly worth
69332         fixing.  Problem reported by Alex Unleashed in
69333         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69334         Also, don't bother to check for -m bugs unless we're using -m;
69335         suggested by Stepan Kasal.
69336
69337 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69338
69339         Sync from Automake.
69340         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69341         `-c' flag, so they appear at the same position as in %FASTDEP%
69342         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69343         which ignores unknown options only after the first non-option.
69344         Bug report against M4 by Nelson H. F. Beebe.
69345
69346 2006-10-13  Jim Meyering  <jim@meyering.net>
69347
69348         Fix a bug in yesterday's change.
69349         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69350         p->fts_statp->st_dev would be used uninitialized.
69351         Ensures that we always call fts_stat on the very first entry.
69352         Miklos Szeredi reported that find -xdev stopped working.
69353
69354 2006-10-12  Bruno Haible  <bruno@clisp.org>
69355
69356         * gnulib-tool (func_get_automake_snippet): Append an automatically
69357         computed EXTRA_DIST augmentation.
69358         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69359         * modules/alloca-opt (Makefile.am): Likewise.
69360         * modules/allocsa (Makefile.am): Likewise.
69361         * modules/arcfour (Makefile.am): Likewise.
69362         * modules/arctwo (Makefile.am): Likewise.
69363         * modules/argmatch (Makefile.am): Likewise.
69364         * modules/argz (Makefile.am): Likewise.
69365         * modules/atexit (Makefile.am): Likewise.
69366         * modules/backupfile (Makefile.am): Likewise.
69367         * modules/byteswap (Makefile.am): Likewise.
69368         * modules/c-strtod (Makefile.am): Likewise.
69369         * modules/c-strtold (Makefile.am): Likewise.
69370         * modules/calloc (Makefile.am): Likewise.
69371         * modules/canon-host (Makefile.am): Likewise.
69372         * modules/canonicalize (Makefile.am): Likewise.
69373         * modules/chdir-long (Makefile.am): Likewise.
69374         * modules/chdir-safer (Makefile.am): Likewise.
69375         * modules/check-version (Makefile.am): Likewise.
69376         * modules/chown (Makefile.am): Likewise.
69377         * modules/cloexec (Makefile.am): Likewise.
69378         * modules/close-stream (Makefile.am): Likewise.
69379         * modules/closeout (Makefile.am): Likewise.
69380         * modules/crc (Makefile.am): Likewise.
69381         * modules/csharpexec (Makefile.am): Likewise.
69382         * modules/cycle-check (Makefile.am): Likewise.
69383         * modules/des (Makefile.am): Likewise.
69384         * modules/dev-ino (Makefile.am): Likewise.
69385         * modules/dirfd (Makefile.am): Likewise.
69386         * modules/dirname (Makefile.am): Likewise.
69387         * modules/dup2 (Makefile.am): Likewise.
69388         * modules/eealloc (Makefile.am): Likewise.
69389         * modules/error (Makefile.am): Likewise.
69390         * modules/euidaccess (Makefile.am): Likewise.
69391         * modules/exclude (Makefile.am): Likewise.
69392         * modules/exitfail (Makefile.am): Likewise.
69393         * modules/fcntl-safer (Makefile.am): Likewise.
69394         * modules/fcntl (Makefile.am): Likewise.
69395         * modules/file-type (Makefile.am): Likewise.
69396         * modules/fileblocks (Makefile.am): Likewise.
69397         * modules/filemode (Makefile.am): Likewise.
69398         * modules/filenamecat (Makefile.am): Likewise.
69399         * modules/fnmatch (Makefile.am): Likewise.
69400         * modules/fopen-safer (Makefile.am): Likewise.
69401         * modules/fpending (Makefile.am): Likewise.
69402         * modules/fprintftime (Makefile.am): Likewise.
69403         * modules/free (Makefile.am): Likewise.
69404         * modules/fsusage (Makefile.am): Likewise.
69405         * modules/ftruncate (Makefile.am): Likewise.
69406         * modules/fts (Makefile.am): Likewise.
69407         * modules/gc-arcfour (Makefile.am): Likewise.
69408         * modules/gc-des (Makefile.am): Likewise.
69409         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69410         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69411         * modules/gc-md4 (Makefile.am): Likewise.
69412         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69413         * modules/gc-sha1 (Makefile.am): Likewise.
69414         * modules/gc (Makefile.am): Likewise.
69415         * modules/getaddrinfo (Makefile.am): Likewise.
69416         * modules/getcwd (Makefile.am): Likewise.
69417         * modules/getdelim (Makefile.am): Likewise.
69418         * modules/getdomainname (Makefile.am): Likewise.
69419         * modules/getgroups (Makefile.am): Likewise.
69420         * modules/gethostname (Makefile.am): Likewise.
69421         * modules/gethrxtime (Makefile.am): Likewise.
69422         * modules/getline (Makefile.am): Likewise.
69423         * modules/getloadavg (Makefile.am): Likewise.
69424         * modules/getlogin_r (Makefile.am): Likewise.
69425         * modules/getndelim2 (Makefile.am): Likewise.
69426         * modules/getopt (Makefile.am): Likewise.
69427         * modules/getpagesize (Makefile.am): Likewise.
69428         * modules/getpass-gnu (Makefile.am): Likewise.
69429         * modules/getpass (Makefile.am): Likewise.
69430         * modules/getsubopt (Makefile.am): Likewise.
69431         * modules/gettime (Makefile.am): Likewise.
69432         * modules/gettimeofday (Makefile.am): Likewise.
69433         * modules/getugroups (Makefile.am): Likewise.
69434         * modules/getusershell (Makefile.am): Likewise.
69435         * modules/glob (Makefile.am): Likewise.
69436         * modules/group-member (Makefile.am): Likewise.
69437         * modules/hard-locale (Makefile.am): Likewise.
69438         * modules/hash (Makefile.am): Likewise.
69439         * modules/hmac-md5 (Makefile.am): Likewise.
69440         * modules/hmac-sha1 (Makefile.am): Likewise.
69441         * modules/human (Makefile.am): Likewise.
69442         * modules/idcache (Makefile.am): Likewise.
69443         * modules/imaxabs (Makefile.am): Likewise.
69444         * modules/imaxdiv (Makefile.am): Likewise.
69445         * modules/inet_ntop (Makefile.am): Likewise.
69446         * modules/inet_pton (Makefile.am): Likewise.
69447         * modules/intprops (Makefile.am): Likewise.
69448         * modules/inttostr (Makefile.am): Likewise.
69449         * modules/inttypes (Makefile.am): Likewise.
69450         * modules/isapipe (Makefile.am): Likewise.
69451         * modules/javaversion (Makefile.am): Likewise.
69452         * modules/lchmod (Makefile.am): Likewise.
69453         * modules/lchown (Makefile.am): Likewise.
69454         * modules/localcharset (Makefile.am): Likewise.
69455         * modules/long-options (Makefile.am): Likewise.
69456         * modules/lstat (Makefile.am): Likewise.
69457         * modules/malloc (Makefile.am): Likewise.
69458         * modules/mathl (Makefile.am): Likewise.
69459         * modules/mbchar (Makefile.am): Likewise.
69460         * modules/md2 (Makefile.am): Likewise.
69461         * modules/md4 (Makefile.am): Likewise.
69462         * modules/md5 (Makefile.am): Likewise.
69463         * modules/memcasecmp (Makefile.am): Likewise.
69464         * modules/memchr (Makefile.am): Likewise.
69465         * modules/memcmp (Makefile.am): Likewise.
69466         * modules/memcoll (Makefile.am): Likewise.
69467         * modules/memcpy (Makefile.am): Likewise.
69468         * modules/memmem (Makefile.am): Likewise.
69469         * modules/memmove (Makefile.am): Likewise.
69470         * modules/mempcpy (Makefile.am): Likewise.
69471         * modules/memrchr (Makefile.am): Likewise.
69472         * modules/memset (Makefile.am): Likewise.
69473         * modules/memxor (Makefile.am): Likewise.
69474         * modules/mkancesdirs (Makefile.am): Likewise.
69475         * modules/mkdir-p (Makefile.am): Likewise.
69476         * modules/mkdir (Makefile.am): Likewise.
69477         * modules/mkdtemp (Makefile.am): Likewise.
69478         * modules/mkstemp (Makefile.am): Likewise.
69479         * modules/mktime (Makefile.am): Likewise.
69480         * modules/modechange (Makefile.am): Likewise.
69481         * modules/mountlist (Makefile.am): Likewise.
69482         * modules/nanosleep (Makefile.am): Likewise.
69483         * modules/obstack (Makefile.am): Likewise.
69484         * modules/openat (Makefile.am): Likewise.
69485         * modules/pagealign_alloc (Makefile.am): Likewise.
69486         * modules/pathmax (Makefile.am): Likewise.
69487         * modules/physmem (Makefile.am): Likewise.
69488         * modules/poll (Makefile.am): Likewise.
69489         * modules/posixtm (Makefile.am): Likewise.
69490         * modules/posixver (Makefile.am): Likewise.
69491         * modules/putenv (Makefile.am): Likewise.
69492         * modules/quote (Makefile.am): Likewise.
69493         * modules/quotearg (Makefile.am): Likewise.
69494         * modules/raise (Makefile.am): Likewise.
69495         * modules/read-file (Makefile.am): Likewise.
69496         * modules/readline (Makefile.am): Likewise.
69497         * modules/readlink (Makefile.am): Likewise.
69498         * modules/readtokens (Makefile.am): Likewise.
69499         * modules/readutmp (Makefile.am): Likewise.
69500         * modules/realloc (Makefile.am): Likewise.
69501         * modules/regex (Makefile.am): Likewise.
69502         * modules/rename-dest-slash (Makefile.am): Likewise.
69503         * modules/rename (Makefile.am): Likewise.
69504         * modules/rijndael (Makefile.am): Likewise.
69505         * modules/rmdir (Makefile.am): Likewise.
69506         * modules/rpmatch (Makefile.am): Likewise.
69507         * modules/safe-read (Makefile.am): Likewise.
69508         * modules/safe-write (Makefile.am): Likewise.
69509         * modules/same-inode (Makefile.am): Likewise.
69510         * modules/same (Makefile.am): Likewise.
69511         * modules/save-cwd (Makefile.am): Likewise.
69512         * modules/savedir (Makefile.am): Likewise.
69513         * modules/setenv (Makefile.am): Likewise.
69514         * modules/settime (Makefile.am): Likewise.
69515         * modules/sha1 (Makefile.am): Likewise.
69516         * modules/sig2str (Makefile.am): Likewise.
69517         * modules/snprintf (Makefile.am): Likewise.
69518         * modules/stat-macros (Makefile.am): Likewise.
69519         * modules/stat-time (Makefile.am): Likewise.
69520         * modules/stdbool (Makefile.am): Likewise.
69521         * modules/stdint (Makefile.am): Likewise.
69522         * modules/stdlib-safer (Makefile.am): Likewise.
69523         * modules/stpcpy (Makefile.am): Likewise.
69524         * modules/stpncpy (Makefile.am): Likewise.
69525         * modules/strcase (Makefile.am): Likewise.
69526         * modules/strcasestr (Makefile.am): Likewise.
69527         * modules/strchrnul (Makefile.am): Likewise.
69528         * modules/strcspn (Makefile.am): Likewise.
69529         * modules/strdup (Makefile.am): Likewise.
69530         * modules/strerror (Makefile.am): Likewise.
69531         * modules/strftime (Makefile.am): Likewise.
69532         * modules/strndup (Makefile.am): Likewise.
69533         * modules/strnlen (Makefile.am): Likewise.
69534         * modules/strpbrk (Makefile.am): Likewise.
69535         * modules/strsep (Makefile.am): Likewise.
69536         * modules/strstr (Makefile.am): Likewise.
69537         * modules/strtod (Makefile.am): Likewise.
69538         * modules/strtoimax (Makefile.am): Likewise.
69539         * modules/strtok_r (Makefile.am): Likewise.
69540         * modules/strtol (Makefile.am): Likewise.
69541         * modules/strtoll (Makefile.am): Likewise.
69542         * modules/strtoul (Makefile.am): Likewise.
69543         * modules/strtoull (Makefile.am): Likewise.
69544         * modules/strtoumax (Makefile.am): Likewise.
69545         * modules/strverscmp (Makefile.am): Likewise.
69546         * modules/sys_socket (Makefile.am): Likewise.
69547         * modules/sys_stat (Makefile.am): Likewise.
69548         * modules/sysexits (Makefile.am): Likewise.
69549         * modules/time_r (Makefile.am): Likewise.
69550         * modules/timegm (Makefile.am): Likewise.
69551         * modules/timespec (Makefile.am): Likewise.
69552         * modules/tmpfile-safer (Makefile.am): Likewise.
69553         * modules/trim (Makefile.am): Likewise.
69554         * modules/unistd-safer (Makefile.am): Likewise.
69555         * modules/unlinkdir (Makefile.am): Likewise.
69556         * modules/unlocked-io (Makefile.am): Likewise.
69557         * modules/userspec (Makefile.am): Likewise.
69558         * modules/utime (Makefile.am): Likewise.
69559         * modules/utimecmp (Makefile.am): Likewise.
69560         * modules/utimens (Makefile.am): Likewise.
69561         * modules/vasnprintf (Makefile.am): Likewise.
69562         * modules/vasprintf (Makefile.am): Likewise.
69563         * modules/vsnprintf (Makefile.am): Likewise.
69564         * modules/xalloc (Makefile.am): Likewise.
69565         * modules/xgetcwd (Makefile.am): Likewise.
69566         * modules/xnanosleep (Makefile.am): Likewise.
69567         * modules/xreadlink (Makefile.am): Likewise.
69568         * modules/xstrtod (Makefile.am): Likewise.
69569         * modules/xstrtol (Makefile.am): Likewise.
69570         * modules/xstrtold (Makefile.am): Likewise.
69571         * modules/yesno (Makefile.am): Likewise.
69572         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69573
69574 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69575
69576         * modules/error (Makefile.am): Distribute files through
69577         EXTRA_DIST, not lib_SOURCES.
69578
69579 2006-10-12  Eric Blake  <ebb9@byu.net>
69580
69581         * modules/error (Makefile.am): Distribute files in /lib.
69582         * modules/obstack (Makefile.am): Likewise.
69583
69584 2006-10-12  Bruno Haible  <bruno@clisp.org>
69585
69586         * modules/acl (Makefile.am): Distribute all files in lib/ through
69587         EXTRA_DIST.
69588         * modules/arcfour (Makefile.am): Likewise.
69589         * modules/arctwo (Makefile.am): Likewise.
69590         * modules/argmatch (Makefile.am): Likewise.
69591         * modules/argz (Makefile.am): Likewise.
69592         * modules/atexit (Makefile.am): Likewise.
69593         * modules/backupfile (Makefile.am): Likewise.
69594         * modules/c-strtod (Makefile.am): Likewise.
69595         * modules/c-strtold (Makefile.am): Likewise.
69596         * modules/calloc (Makefile.am): Likewise.
69597         * modules/canon-host (Makefile.am): Likewise.
69598         * modules/canonicalize (Makefile.am): Likewise.
69599         * modules/chdir-long (Makefile.am): Likewise.
69600         * modules/chdir-safer (Makefile.am): Likewise.
69601         * modules/check-version (Makefile.am): Likewise.
69602         * modules/chown (Makefile.am): Likewise.
69603         * modules/cloexec (Makefile.am): Likewise.
69604         * modules/close-stream (Makefile.am): Likewise.
69605         * modules/closeout (Makefile.am): Likewise.
69606         * modules/crc (Makefile.am): Likewise.
69607         * modules/cycle-check (Makefile.am): Likewise.
69608         * modules/des (Makefile.am): Likewise.
69609         * modules/dirfd (Makefile.am): Likewise.
69610         * modules/dirname (Makefile.am): Likewise.
69611         * modules/dup2 (Makefile.am): Likewise.
69612         * modules/euidaccess (Makefile.am): Likewise.
69613         * modules/exclude (Makefile.am): Likewise.
69614         * modules/exitfail (Makefile.am): Likewise.
69615         * modules/fcntl-safer (Makefile.am): Likewise.
69616         * modules/file-type (Makefile.am): Likewise.
69617         * modules/fileblocks (Makefile.am): Likewise.
69618         * modules/filemode (Makefile.am): Likewise.
69619         * modules/filenamecat (Makefile.am): Likewise.
69620         * modules/fnmatch (Makefile.am): Likewise.
69621         * modules/fopen-safer (Makefile.am): Likewise.
69622         * modules/fpending (Makefile.am): Likewise.
69623         * modules/fprintftime (Makefile.am): Likewise.
69624         * modules/free (Makefile.am): Likewise.
69625         * modules/fsusage (Makefile.am): Likewise.
69626         * modules/ftruncate (Makefile.am): Likewise.
69627         * modules/fts (Makefile.am): Likewise.
69628         * modules/gc (Makefile.am): Likewise.
69629         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69630         * modules/getaddrinfo (Makefile.am): Likewise.
69631         * modules/getcwd (Makefile.am): Likewise.
69632         * modules/getdelim (Makefile.am): Likewise.
69633         * modules/getdomainname (Makefile.am): Likewise.
69634         * modules/getgroups (Makefile.am): Likewise.
69635         * modules/gethostname (Makefile.am): Likewise.
69636         * modules/gethrxtime (Makefile.am): Likewise.
69637         * modules/getline (Makefile.am): Likewise.
69638         * modules/getloadavg (Makefile.am): Likewise.
69639         * modules/getlogin_r (Makefile.am): Likewise.
69640         * modules/getopt (Makefile.am): Likewise.
69641         * modules/getpass (Makefile.am): Likewise.
69642         * modules/getpass-gnu (Makefile.am): Likewise.
69643         * modules/getsubopt (Makefile.am): Likewise.
69644         * modules/gettime (Makefile.am): Likewise.
69645         * modules/gettimeofday (Makefile.am): Likewise.
69646         * modules/getugroups (Makefile.am): Likewise.
69647         * modules/getusershell (Makefile.am): Likewise.
69648         * modules/glob (Makefile.am): Likewise.
69649         * modules/group-member (Makefile.am): Likewise.
69650         * modules/hard-locale (Makefile.am): Likewise.
69651         * modules/hash (Makefile.am): Likewise.
69652         * modules/hmac-md5 (Makefile.am): Likewise.
69653         * modules/hmac-sha1 (Makefile.am): Likewise.
69654         * modules/human (Makefile.am): Likewise.
69655         * modules/idcache (Makefile.am): Likewise.
69656         * modules/imaxabs (Makefile.am): Likewise.
69657         * modules/imaxdiv (Makefile.am): Likewise.
69658         * modules/inet_ntop (Makefile.am): Likewise.
69659         * modules/inet_pton (Makefile.am): Likewise.
69660         * modules/inttostr (Makefile.am): Likewise.
69661         * modules/isapipe (Makefile.am): Likewise.
69662         * modules/lchown (Makefile.am): Likewise.
69663         * modules/long-options (Makefile.am): Likewise.
69664         * modules/lstat (Makefile.am): Likewise.
69665         * modules/malloc (Makefile.am): Likewise.
69666         * modules/mathl (Makefile.am): Likewise.
69667         * modules/mbchar (Makefile.am): Likewise.
69668         * modules/md2 (Makefile.am): Likewise.
69669         * modules/md4 (Makefile.am): Likewise.
69670         * modules/md5 (Makefile.am): Likewise.
69671         * modules/memcasecmp (Makefile.am): Likewise.
69672         * modules/memchr (Makefile.am): Likewise.
69673         * modules/memcmp (Makefile.am): Likewise.
69674         * modules/memcoll (Makefile.am): Likewise.
69675         * modules/memcpy (Makefile.am): Likewise.
69676         * modules/memmem (Makefile.am): Likewise.
69677         * modules/memmove (Makefile.am): Likewise.
69678         * modules/mempcpy (Makefile.am): Likewise.
69679         * modules/memrchr (Makefile.am): Likewise.
69680         * modules/memset (Makefile.am): Likewise.
69681         * modules/memxor (Makefile.am): Likewise.
69682         * modules/mkancesdirs (Makefile.am): Likewise.
69683         * modules/mkdir (Makefile.am): Likewise.
69684         * modules/mkdir-p (Makefile.am): Likewise.
69685         * modules/mkdtemp (Makefile.am): Likewise.
69686         * modules/mkstemp (Makefile.am): Likewise.
69687         * modules/mktime (Makefile.am): Likewise.
69688         * modules/modechange (Makefile.am): Likewise.
69689         * modules/mountlist (Makefile.am): Likewise.
69690         * modules/nanosleep (Makefile.am): Likewise.
69691         * modules/openat (Makefile.am): Likewise.
69692         * modules/pagealign_alloc (Makefile.am): Likewise.
69693         * modules/physmem (Makefile.am): Likewise.
69694         * modules/poll (Makefile.am): Likewise.
69695         * modules/posixtm (Makefile.am): Likewise.
69696         * modules/posixver (Makefile.am): Likewise.
69697         * modules/putenv (Makefile.am): Likewise.
69698         * modules/quote (Makefile.am): Likewise.
69699         * modules/quotearg (Makefile.am): Likewise.
69700         * modules/raise (Makefile.am): Likewise.
69701         * modules/read-file (Makefile.am): Likewise.
69702         * modules/readline (Makefile.am): Likewise.
69703         * modules/readlink (Makefile.am): Likewise.
69704         * modules/readtokens (Makefile.am): Likewise.
69705         * modules/readutmp (Makefile.am): Likewise.
69706         * modules/realloc (Makefile.am): Likewise.
69707         * modules/regex (Makefile.am): Likewise.
69708         * modules/rename (Makefile.am): Likewise.
69709         * modules/rename-dest-slash (Makefile.am): Likewise.
69710         * modules/rijndael (Makefile.am): Likewise.
69711         * modules/rmdir (Makefile.am): Likewise.
69712         * modules/rpmatch (Makefile.am): Likewise.
69713         * modules/safe-read (Makefile.am): Likewise.
69714         * modules/safe-write (Makefile.am): Likewise.
69715         * modules/same (Makefile.am): Likewise.
69716         * modules/save-cwd (Makefile.am): Likewise.
69717         * modules/savedir (Makefile.am): Likewise.
69718         * modules/setenv (Makefile.am): Likewise.
69719         * modules/settime (Makefile.am): Likewise.
69720         * modules/sha1 (Makefile.am): Likewise.
69721         * modules/sig2str (Makefile.am): Likewise.
69722         * modules/snprintf (Makefile.am): Likewise.
69723         * modules/stdlib-safer (Makefile.am): Likewise.
69724         * modules/stpcpy (Makefile.am): Likewise.
69725         * modules/stpncpy (Makefile.am): Likewise.
69726         * modules/strcase (Makefile.am): Likewise.
69727         * modules/strcasestr (Makefile.am): Likewise.
69728         * modules/strchrnul (Makefile.am): Likewise.
69729         * modules/strcspn (Makefile.am): Likewise.
69730         * modules/strdup (Makefile.am): Likewise.
69731         * modules/strerror (Makefile.am): Likewise.
69732         * modules/strftime (Makefile.am): Likewise.
69733         * modules/strndup (Makefile.am): Likewise.
69734         * modules/strnlen (Makefile.am): Likewise.
69735         * modules/strpbrk (Makefile.am): Likewise.
69736         * modules/strsep (Makefile.am): Likewise.
69737         * modules/strstr (Makefile.am): Likewise.
69738         * modules/strtod (Makefile.am): Likewise.
69739         * modules/strtoimax (Makefile.am): Likewise.
69740         * modules/strtok_r (Makefile.am): Likewise.
69741         * modules/strtol (Makefile.am): Likewise.
69742         * modules/strtoll (Makefile.am): Likewise.
69743         * modules/strtoul (Makefile.am): Likewise.
69744         * modules/strtoull (Makefile.am): Likewise.
69745         * modules/strtoumax (Makefile.am): Likewise.
69746         * modules/strverscmp (Makefile.am): Likewise.
69747         * modules/time_r (Makefile.am): Likewise.
69748         * modules/timegm (Makefile.am): Likewise.
69749         * modules/tmpfile-safer (Makefile.am): Likewise.
69750         * modules/unistd-safer (Makefile.am): Likewise.
69751         * modules/unlinkdir (Makefile.am): Likewise.
69752         * modules/userspec (Makefile.am): Likewise.
69753         * modules/utime (Makefile.am): Likewise.
69754         * modules/utimecmp (Makefile.am): Likewise.
69755         * modules/utimens (Makefile.am): Likewise.
69756         * modules/vasnprintf (Makefile.am): Likewise.
69757         * modules/vasprintf (Makefile.am): Likewise.
69758         * modules/vsnprintf (Makefile.am): Likewise.
69759         * modules/xalloc (Makefile.am): Likewise.
69760         * modules/xgetcwd (Makefile.am): Likewise.
69761         * modules/xnanosleep (Makefile.am): Likewise.
69762         * modules/xreadlink (Makefile.am): Likewise.
69763         * modules/xstrtod (Makefile.am): Likewise.
69764         * modules/xstrtol (Makefile.am): Likewise.
69765         * modules/xstrtold (Makefile.am): Likewise.
69766         * modules/yesno (Makefile.am): Likewise.
69767
69768 2006-10-12  Jim Meyering  <jim@meyering.net>
69769
69770         * m4/getloadavg.m4: Revert the change below.
69771
69772         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69773         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69774         fail with a symlink, which is what coreutils' ./bootstrap now
69775         creates by default.
69776
69777 2006-10-12  Bruno Haible  <bruno@clisp.org>
69778
69779         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69780         mingw.
69781         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69782         MSVC and mingw explicitly.
69783
69784 2006-10-11  Simon Josefsson  <jas@extundo.com>
69785             Bruno Haible  <bruno@clisp.org>
69786
69787         Add support for multiple gnulib-tool invocations in the scope of a
69788         single configure.ac file.
69789         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69790         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69791         with the same contents as the _LIBADD variable.
69792         (func_emit_initmacro_start, func_emit_initmacro_end,
69793         func_emit_initmacro_done): New functions.
69794         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69795         gl_LIBOBJS and gl_LTLIBOBJS.
69796
69797 2006-10-11  Bruno Haible  <bruno@clisp.org>
69798
69799         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69800         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69801         autoreconf. Instead, invoke autopoint explicitly but move back the
69802         *.m4 files from gnulib.
69803
69804 2006-10-11  Bruno Haible  <bruno@clisp.org>
69805
69806         * gnulib-tool (func_usage): Make module names after --create-testdir
69807         optional.
69808         (func_create_testdir): If no module was specified, use nearly all
69809         modules.
69810
69811 2006-10-12  Jim Meyering  <jim@meyering.net>
69812
69813         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69814         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69815         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69816         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69817         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69818         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69819         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69820         (fts_set_stat_required): New function.
69821         (fts_open): Defer the calls to fts_stat, if possible or requested.
69822         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69823         into fts_stat itself.
69824         (fts_read): Perform any required (deferred) fts_stat call.
69825         (fts_build): Likewise, for the directory we're about to open and read.
69826         In the readdir loop, carefully decide whether each entry will require
69827         an eventual call to fts_stat, using dirent.d_type info if available.
69828         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69829         a command line argument into this function.  Update all callers.
69830         Map a return value of FTS_DOT to FTS_D for a command line argument.
69831         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69832         Thanks to Miklos Szeredi for his tenacity and for the initial
69833         bug report about "find" failing on a FUSE-based file system.
69834
69835         * lib/fts.c (fts_open): Use consistent indentation.
69836
69837 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69840         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69841         reported by Jim Meyering.  All uses of cache variables renamed
69842         to match Autoconf's.
69843         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69844         the other one.
69845
69846         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69847         Fix misspelling in diagnostic.
69848
69849 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69852         defined.  Problem reported by Matthew Woehlke.
69853
69854         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69855         Add support for Tandem NonStop R series.
69856         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69857         Use new macro.
69858
69859         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69860         (has_trailing_slash): Omit size arg; all callers changed.
69861         Omit 'inline', since it doesn't help performance and we'd
69862         need to configure it.
69863         Don't count //, ///, etc. as having a trailing slash.
69864         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69865         (rpl_rename_dest_slash): On failure, use rename's errno rather
69866         than (in some cases) an incorrect or junk errno.
69867         Simplify code by removing need to compute length; this does
69868         cause it to make two passes instead of one over the file name,
69869         but it's worth it.
69870
69871         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69872         change, since Autoconf's version may no longer be appropriate now
69873         that we are using CVS Autoconf's version.  Add support for Tandem.
69874
69875 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69876             Bruno Haible  <bruno@clisp.org>
69877
69878         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69879         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69880         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69881         gl_AC_TYPE_LONG_LONG.
69882
69883         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69884         instead of HAVE_LONG_LONG.
69885         * lib/printf-args.c (printf_fetchargs): Likewise.
69886         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69887         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69888         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69889         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69890         gl_AC_TYPE_LONG_LONG.
69891
69892 2006-10-11  Bruno Haible  <bruno@clisp.org>
69893
69894         * m4/longlong.m4: Add comments.
69895         * m4/ulonglong.m4: Likewise.
69896
69897 2006-10-10  Bruno Haible  <bruno@clisp.org>
69898
69899         Make it possible to #define stpcpy, strdup to aliases.
69900         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69901         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69902
69903 2006-10-10  Bruno Haible  <bruno@clisp.org>
69904
69905         Make it possible to #define gcd to an alias.
69906         * lib/gcd.c: Include config.h.
69907
69908 2006-10-10  Bruno Haible  <bruno@clisp.org>
69909
69910         Make it possible to #define c_isascii to an alias.
69911         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69912         defined. Undefine the macros before defining them, to avoid gcc
69913         warnings.
69914         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69915         define NO_C_CTYPE_MACROS early.
69916
69917 2006-10-10  Bruno Haible  <bruno@clisp.org>
69918
69919         Make it possible to #define set_program_name to an alias.
69920         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69921         ENABLE_RELOCATABLE early.
69922
69923 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69924
69925         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69926         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69927         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69928         More generally, don't assume that 64-bit signed int is available
69929         if unsigned int is, and vice versa.
69930         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69931         unsigned symbols, not on their signed counterparts.
69932         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69933         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69934         (UINT64_C, UINTMAX_C):
69935         Likewise.
69936         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69937         unsigned counterparts.
69938         (Have_long_long, Unsigned): New macros.
69939         (Int): Renamed from INT.
69940         (strtoimax): Use the new macros.
69941         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69942         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69943         * modules/inttypes (inttypes.h): Substitute
69944         HAVE_UNSIGNED_LONG_LONG_INT.
69945         * modules/stdint (stdint.h): Likewise.
69946         (Files): Add m4/ulonglong.m4.
69947
69948 2006-10-10  Bruno Haible  <bruno@clisp.org>
69949
69950         Fix a gcc -Wshadow warning.
69951         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69952         to 'bucket'.
69953         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69954         gl_linked_indexof_from_to): Likewise.
69955         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69956         Likewise.
69957         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69958         Likewise.
69959         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69960         Reported by Eric Blake.
69961
69962 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69965         for NetBSD.  Problem reported by Bruno Haible.
69966
69967 2006-10-09  Jim Meyering  <jim@meyering.net>
69968
69969         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69970         Patch from Bruno Haible.
69971
69972 2006-10-09  Jim Meyering  <jim@meyering.net>
69973
69974         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69975         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69976         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69977
69978 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69979
69980         Don't include <config.h> twice; this doesn't work in some cases,
69981         e.g., when config.h has "#define intmax_t long long int" and
69982         we include <config.h>, <inttypes.h>, <config.h> in that order.
69983         Problem reported by Matthew Woehlke in:
69984         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69985         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69986         * lib/fts-cycle.c: Don't include config.h.
69987         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69988         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69989         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69990         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69991         inttypes.h.
69992         * lib/xstrtoumax.c: Likewise.
69993         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69994         __strtol and the like, so that this module is more like its siblings.
69995         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69996         Remove; no longer needed now that we assume gnulib inttypes.h.
69997
69998 2006-10-08  Bruno Haible  <bruno@clisp.org>
69999
70000         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
70001         option.
70002
70003 2006-10-07  Jim Meyering  <jim@meyering.net>
70004
70005         * modules/inttypes (inttypes.h): Revert what seems to have been
70006         an inadvertent part of today's change: use "|", not "/" in the
70007         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
70008
70009 2006-10-07  Bruno Haible  <bruno@clisp.org>
70010
70011         * modules/sublist: New file.
70012
70013 2006-10-07  Bruno Haible  <bruno@clisp.org>
70014
70015         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70016         * modules/argz (argz.h): Likewise.
70017         * modules/arpa_inet (arpa/inet.h): Likewise.
70018         * modules/byteswap (byteswap.h): Likewise.
70019         * modules/configmake (configmake.h): Likewise.
70020         * modules/fcntl (fcntl.h): Likewise.
70021         * modules/fnmatch (fnmatch.h): Likewise.
70022         * modules/getopt (getopt.h): Likewise.
70023         * modules/glob (glob.h): Likewise.
70024         * modules/inttypes (inttypes.h): Likewise.
70025         * modules/netinet_in (netinet/in.h): Likewise.
70026         * modules/poll (poll.h): Likewise.
70027         * modules/stdbool (stdbool.h): Likewise.
70028         * modules/stdint (stdint.h): Likewise.
70029         * modules/sys_select (sys/select.h): Likewise.
70030         * modules/sys_socket (sys/socket.h): Likewise.
70031         * modules/sys_stat (sys/stat.h): Likewise.
70032         * modules/sysexits (sysexits.h): Likewise.
70033         * modules/unistd (unistd.h): Likewise.
70034         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70035         Add a "DO NOT EDIT" comment to the generated file.
70036         (func_import): Likewise for gnulib-comp.m4.
70037
70038 2006-10-07  Bruno Haible  <bruno@clisp.org>
70039
70040         * lib/gl_sublist.h: New file.
70041         * lib/gl_sublist.c: New file.
70042
70043 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70044
70045         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70046         name (relative to the original working directory) and the file
70047         name component (relative to the temporary working directory).  All
70048         callers changed.
70049         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70050         * lib/mkdir-p.c (make_dir_parents): Likewise.
70051         * lib/mkdir-p.h (make_dir_parents): Likewise.
70052
70053 2006-10-06  Eric Blake  <ebb9@byu.net>
70054
70055         Define several macros for use by the clean-temp module.
70056         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70057         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70058         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70059
70060         * lib/clean-temp.h (close_stream_temp): New declaration.
70061         * lib/clean-temp.c (includes): Pull in headers according to what
70062         other modules are in use.
70063         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70064
70065 2006-10-06  Bruno Haible  <bruno@clisp.org>
70066
70067         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70068         instead of fopen, fwriteerror.
70069
70070 2006-10-06  Bruno Haible  <bruno@clisp.org>
70071
70072         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70073         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70074         int.
70075         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70076         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70077         Return an error indicator.
70078         Suggested by Eric Blake.
70079
70080 2006-10-06  Bruno Haible  <bruno@clisp.org>
70081
70082         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70083         Reported by Eric Blake.
70084
70085 2006-10-06  Bruno Haible  <bruno@clisp.org>
70086
70087         * modules/closeout (Description): Mention stderr too.
70088
70089 2006-10-06  Bruno Haible  <bruno@clisp.org>
70090         and Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         * lib/closeout.c (close_stdout): Also close stderr.
70093         * lib/closeout.h: Update comment.
70094
70095 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70096
70097         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70098         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70099         * lib/dirchownmod.c: Include lchown.h.
70100         * lib/lchown.c: Don't include files that lchown.h now includes.
70101         Don't declare chown, since lchown.h now does that.
70102         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70103         (lchown): Define to rpl_chown if lchown is declared but
70104         does not exist.  Declare using a prototype if lchown is not
70105         declared.  Add a copyright notice.
70106         * lib/mkstemp.h: Include <unistd.h>.
70107         * lib/openat.c: Include lchown.h.
70108
70109         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70110         we now test for that separately.
70111         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70112         rather than O_NOFOLLOW, when testing whether it's possible to
70113         avoid a race condition reliably.
70114         * lib/savewd.c (savewd_chdir): Likewise.
70115
70116         Remove macros that are no longer needed now that stdint.h is
70117         reliable.
70118         * lib/fsusage.c (UINTMAX_MAX): Remove.
70119         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70120         * lib/utimecmp.c (SIZE_MAX): Remove.
70121
70122         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70123
70124         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70125         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70126         O_NOATIME works.
70127
70128 2006-10-05  Bruno Haible  <bruno@clisp.org>
70129
70130         * lib/gl_list.h (gl_sortedlist_search_from_to,
70131         gl_sortedlist_indexof_from_to): New declarations.
70132         (gl_list_implementation): New fields sortedlist_search_from_to,
70133         sortedlist_indexof_from_to.
70134         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70135         inline functions.
70136         * lib/gl_list.c (gl_sortedlist_search_from_to,
70137         gl_sortedlist_indexof_from_to): New functions.
70138         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70139         function.
70140         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70141         (gl_array_sortedlist_search_from_to): New function.
70142         (gl_array_list_implementation): Update.
70143         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70144         function.
70145         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70146         (gl_carray_sortedlist_search_from_to): New function.
70147         (gl_carray_list_implementation): Update.
70148         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70149         gl_linked_sortedlist_indexof_from_to): New functions.
70150         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70151         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70152         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70153         gl_tree_sortedlist_indexof_from_to): New functions.
70154         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70155         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70156         Update.
70157         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70158         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70159         Update.
70160
70161 2006-10-05  Bruno Haible  <bruno@clisp.org>
70162
70163         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70164         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70165         (struct gl_list_implementation): Add fields search_from_to,
70166         indexof_from_to. Remove fields search, indexof.
70167         (gl_list_search): Use the search_from_to method.
70168         (gl_list_search_from, gl_list_search_from_to): New functions.
70169         (gl_list_indexof): Use the indexof_from_to method.
70170         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70171         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70172         (gl_list_search_from, gl_list_search_from_to): New functions.
70173         (gl_list_indexof): Use the indexof_from_to method.
70174         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70175         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70176         gl_array_indexof. Add start_index, end_index arguments.
70177         (gl_array_search_from_to): Renamed from gl_array_search. Add
70178         start_index, end_index arguments.
70179         (gl_array_remove, gl_array_list_implementation): Update.
70180         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70181         gl_carray_indexof. Add start_index, end_index arguments.
70182         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70183         start_index, end_index arguments.
70184         (gl_carray_remove, gl_carray_list_implementation): Update.
70185         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70186         gl_linked_search. Add start_index, end_index arguments.
70187         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70188         start_index, end_index arguments.
70189         (gl_linked_remove): Update.
70190         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70191         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70192         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70193         field to 'size_t'.
70194         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70195         gl_tree_search. Add start_index, end_index arguments.
70196         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70197         start_index, end_index arguments.
70198         (gl_tree_remove): Update.
70199         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70200         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70201         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70202         function.
70203         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70204         gl_tree_search. Add start_index, end_index arguments.
70205         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70206         start_index, end_index arguments.
70207         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70208         Update.
70209         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70210
70211 2006-10-05  Bruno Haible  <bruno@clisp.org>
70212
70213         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70214
70215         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70216         fwriteerror_temp): New declarations.
70217         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70218         (descriptors): New variable.
70219         (cleanup): First, close the descriptors.
70220         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70221         fclose_temp, fwriteerror_temp): New functions.
70222
70223 2006-10-04  Jim Meyering  <jim@meyering.net>
70224
70225         * lib/fts.c (fts_open): Tiny comment change.
70226
70227 2006-10-04  Bruno Haible  <bruno@clisp.org>
70228
70229         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70230         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70231         gl_LOCK_BODY.
70232         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70233         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70234         gl_LOCK_EARLY_BODY.
70235         (gl_LOCK): Require gl_LOCK_BODY.
70236
70237 2006-10-04  Bruno Haible  <bruno@clisp.org>
70238
70239         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70240         (gl_oset_search_atleast): New declaration.
70241         (struct gl_oset_implementation): Add field 'search_atleast'.
70242         (gl_oset_search_atleast): New inline function.
70243         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70244         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70245         (gl_array_oset_implementation): Update.
70246         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70247         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70248         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70249
70250 2006-10-04  Bruno Haible  <bruno@clisp.org>
70251
70252         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70253
70254 2006-10-03  Bruno Haible  <bruno@clisp.org>
70255
70256         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70257         from gl_avltreehash_list_implementation.
70258
70259 2006-10-03  Bruno Haible  <bruno@clisp.org>
70260
70261         * lib/gl_oset.c (gl_oset_add): Fix return type.
70262
70263 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70264
70265         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70266
70267 2006-10-02  Eric Blake  <ebb9@byu.net>
70268
70269         * modules/strnlen (Depends-on): Add extensions.
70270
70271 2006-10-02  Eric Blake  <ebb9@byu.net>
70272
70273         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70274         definition in 2.60+.
70275
70276 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70277
70278         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70279         checks.
70280
70281 2006-10-02  Bruno Haible  <bruno@clisp.org>
70282
70283         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70284         to the AUTOMAKE_OPTIONS.
70285         Reported by Jim Meyering.
70286
70287 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70288
70289         Work around bug in Solaris 10 /proc file system:
70290         /proc/self/fd/NNN/.. isn't the parent directory of
70291         the directory whose file descriptor is NNN.  This needs to
70292         be worked around at run time, not compile time, since a
70293         program might be built on Solaris 8, where things work, and
70294         run on Solaris 10.
70295         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70296         to use the following interface instead:
70297         (OPENAT_BUFFER_SIZE): New macro.
70298         (openat_proc_name): New function.
70299         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70300         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70301         Likewise.
70302         * lib/openat-proc.c: New file.
70303         * modules/openat (Files): Add lib/openat-proc.c.
70304         (Depends-on): Add same-inode, stdbool.
70305         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70306
70307 2006-09-29  Bruno Haible  <bruno@clisp.org>
70308
70309         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70310         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70311         argument. Set stdout_closed before testing for ferror, not after.
70312         (fwriteerror, fwriteerror_no_ebadf): New functions.
70313
70314 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70315
70316         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70317
70318 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70319
70320         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70321         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70322
70323 2006-09-28  Jim Meyering  <jim@meyering.net>
70324
70325         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70326         Include <unistd.h>.
70327
70328 2006-09-28  Bruno Haible  <bruno@clisp.org>
70329
70330         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70331         * modules/linkedhash-list (Depends-on): Likewise.
70332         * modules/rbtreehash-list (Depends-on): Likewise.
70333
70334 2006-09-28  Bruno Haible  <bruno@clisp.org>
70335
70336         * lib/strndup.h: Simplify the redefinition of strndup.
70337         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70339
70340 2006-09-28  Bruno Haible  <bruno@clisp.org>
70341
70342         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70343         * lib/gl_linkedhash_list.c: Likewise.
70344         * lib/gl_rbtreehash_list.c: Likewise.
70345
70346 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70347
70348         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70349         getaddrinfo.
70350
70351         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70352         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70353         it causes <stdio_ext.h> to cause a compile-time error.
70354         Problem reported by Nelson H. F. Beebe.
70355         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70356         of HAVE_DECL___PENDING.
70357
70358         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70359         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70360         declaration.
70361
70362 2006-09-27  Jim Meyering  <jim@meyering.net>
70363
70364         This file could end up with a definition for a function
70365         named __strndup, rather than rpl_strndup on a system with
70366         incomplete weak_alias support.
70367         * lib/strndup.c (strndup): Rename from __strndup.
70368         Remove #defines that used to map __strndup to strndup.
70369         Don't use K&R prototypes.
70370         Remove LIBC-related code, since this file is not sync'd with glibc.
70371         * lib/strndup.h: Revamp, accordingly.
70372         * m4/strndup.m4: Modernize.
70373
70374 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70375
70376         * modules/savewd (Depends-on): Add 'raise'.
70377         * lib/savewd.c: Include <signal.h>, for 'raise'.
70378
70379 2006-09-26  Jim Meyering  <jim@meyering.net>
70380
70381         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70382         when we detect Darwin 8.7.0's acl_get_file bug.
70383         Rearrange to perform the new (below) run-test while $LIBS
70384         contains any acl-related library.  Set USE_ACL at the end.
70385         (gl_ACL_GET_FILE): New function.
70386
70387 2006-09-26  Eric Blake  <ebb9@byu.net>
70388
70389         * lib/verror.c: Include <config.h> unconditionally.
70390
70391 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70392
70393         * modules/clock-time (Maintainer): Add self.
70394         * modules/getlogin_r (Depends-on): Add extensions.
70395
70396 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70397
70398         * modules/clock-time: New module.
70399         * modules/nanosleep (Depends-on): Add clock-time.
70400         * modules/gethrxtime (Depends-on): Likewise.
70401         * modules/gettime (Depends-on): Likewise.
70402         * modules/settime (Depends-on): Likewise.
70403
70404         * modules/fts-lgpl: Depend on openat.
70405         * modules/mkancesdirs: Depend on savewd.
70406         * modules/mkdir-p: Likewise.
70407
70408 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70409
70410         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70411
70412         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70413         `gl_have_arbitrary_file_name_length_limit' to
70414         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70415         actually works between configure runs.
70416
70417 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70418             Bruno Haible  <bruno@clisp.org>
70419
70420         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70421
70422 2006-09-25  Jim Meyering  <jim@meyering.net>
70423
70424         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70425         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70426
70427 2006-09-25  Eric Blake  <ebb9@byu.net>
70428
70429         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70430         exec's in 2006-09-18 patch when shuffling fds.
70431
70432 2006-09-25  Bruno Haible  <bruno@clisp.org>
70433
70434         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70435         Reported by Jim Meyering.
70436
70437 2006-09-24  Jim Meyering  <jim@meyering.net>
70438
70439         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70440         compare a pointer against a literal "0".  That caused failures with
70441         at least HP-UX's hpcc.
70442
70443 2006-09-22  Simon Josefsson  <jas@extundo.com>
70444
70445         * modules/gc-sha1:
70446         * modules/gc-md4:
70447         * modules/gc-hmac-sha1:
70448         * modules/gc-hmac-md5:
70449         * modules/gc-des:
70450         * modules/gc-arcfour: Distribute more files.
70451
70452 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70453
70454         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70455         (gl_linked_iterator_from_to): Initialize struct completely.
70456         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70457         (gl_tree_iterator_from_to): Likewise
70458         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70459         * lib/gl_array_list.c [lint] (gl_array_iterator)
70460         (gl_array_iterator_from_to): Likewise.
70461         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70462         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70463         (gl_carray_iterator_from_to): Likewise.
70464
70465         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70466         * lib/md4.c (md4_process_block): Remove unused variable.
70467         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70468         parentheses for clarity.
70469
70470 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70471
70472         * modules/bison-i18n (Depends-on): Add gettext.
70473
70474 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70475
70476         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70477         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70478         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70479         also add missing comma that caused broken test.
70480         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70481         stdlib.h, for `abort'.
70482         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70483         variables.
70484         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70485         include unistd.h if present, for `rmdir'.
70486         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70487         variables.
70488         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70489         in the process include standard headers for prototypes.
70490         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70491         gets declared on GNU/Linux.
70492         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70493         unistd.h, for `rmdir'.
70494         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70495
70496         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70497         always true.
70498         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70499
70500         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70501
70502 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70503
70504         * gnulib-tool (func_version): Create output all at once.  This
70505         may help avoid triggering unnecessary SIGPIPEs, and at any
70506         rate it doesn't hurt.
70507
70508 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70509             Bruno Haible  <bruno@clisp.org>
70510
70511         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70512         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70513         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70514
70515         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70516         (gl_FUNC_VASPRINTF): Invoke it.
70517
70518 2006-09-22  Bruno Haible  <bruno@clisp.org>
70519
70520         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70521         getloadavg.c as first argument.
70522
70523 2006-09-22  Bruno Haible  <bruno@clisp.org>
70524
70525         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70526         at the beginning of the gl_INIT macro.
70527         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70528         gl_GETLOADAVG.
70529
70530 2006-09-22  Bruno Haible  <bruno@clisp.org>
70531
70532         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70533         module.
70534         Suggested by Ralf Wildenhues.
70535
70536 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70537
70538         Import this patch from libc:
70539
70540         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70541
70542         * lib/regex_internal.c (re_string_reconstruct): Handle
70543         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70544         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70545         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70546         re_string_context_at.
70547
70548         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70549         now requires it.
70550         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70551         gl_REGEX now does it for us.
70552         (gl_REGEX): Add test taken from
70553         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70554
70555         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70556         Check that large offsets work.  Modernize Autoconf usages.
70557         Prefer "yes" to mean a good thing rather than a bad.
70558         Don't put "#define mkstemp" in config.h, as this might interfere
70559         with standard system headers that "#define mkstemp mkstemp64".
70560
70561         * modules/mkstemp (Depends-on): Add extensions, so that
70562         mkstemp is visible on some platforms.
70563         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70564         (Include): Change to "mkstemp.h" from <stdlib.h>.
70565         (Files): Add mkstemp.h.
70566
70567         * lib/mkstemp.h: New file, since some standard headers
70568         #define mkstemp.
70569         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70570         Include "mkstemp.h".
70571         Make the _LIBC code resemble glibc original more,
70572         e.g., use K&R style.
70573         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70574         (mkstemp): Remove, since mkstemp.h does this for us.
70575         * lib/stdlib--.h: Include mkstemp.h.
70576
70577         Import this patch from libc:
70578
70579         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70580
70581         * lib/tempname.c (__gen_tempname): Change attempts_min
70582         into a macro.  Use preprocessor to decide how to initialize
70583         attempts [Coverity CID 67].
70584
70585 2006-09-20  Bruno Haible  <bruno@clisp.org>
70586
70587         * lib/mkdtemp.c: Import from libc.
70588         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70589                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70590                 attempts_min into a macro.  Use preprocessor to decide how to
70591                 initialize attempts [Coverity CID 67].
70592         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70593                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70594                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70595
70596 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70597
70598         * gnulib-tool (func_exit): New function, to allow to pass the
70599         exit status portably through the trap.  Use everywhere.
70600         (--help, --version): Signal a write error.
70601         (trap): catch SIGPIPE, for write errors.
70602         Exit at the end of the trap, with the correct exit status.
70603
70604 2006-09-19  Karl Berry  <karl@gnu.org>
70605
70606         * doc/gnulib.texi: note about the license texinfo files.
70607
70608 2006-09-19  Eric Blake  <ebb9@byu.net>
70609
70610         * gnulib-tool: Avoid space-tab.
70611
70612 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70613
70614         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70615         that prevented coreutils 6.1 from building.  Problem reported
70616         by Petter Reinholdtsen.
70617
70618 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70619
70620         * gnulib-tool (avoidlist): Fix typo that broke options like
70621         --avoid=lock that are used by coreutils bootstrap.
70622
70623 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70624
70625         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70626         more systematically.
70627
70628 2006-09-18  Jim Meyering  <jim@meyering.net>
70629
70630         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70631
70632 2006-09-18  Bruno Haible  <bruno@clisp.org>
70633
70634         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70635
70636 2006-09-18  Bruno Haible  <bruno@clisp.org>
70637
70638         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70639         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70640         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70641         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70642         * m4/gettext.m4: Require autoconf >= 2.52.
70643         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70644         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70645         of gl_cv_header_inttypes_h.
70646
70647 2006-09-18  Bruno Haible  <bruno@clisp.org>
70648
70649         * lib/javaversion.c: Include configmake.h.
70650
70651 2006-09-18  Bruno Haible  <bruno@clisp.org>
70652
70653         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70654         avoid that the while loops be executed in a subshell.
70655
70656 2006-09-18  Bruno Haible  <bruno@clisp.org>
70657
70658         * MODULES.html.sh (func_module): Break long lines.
70659         Suggested by Bruce Korb <bkorb@gnu.org>.
70660
70661 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70662
70663         Speed up by a factor of 1.12.
70664         * gnulib-tool (nl): New variable.
70665         (func_import): Rewrite include directive extraction to only read each
70666         directive once.
70667
70668 2006-09-17  Bruno Haible  <bruno@clisp.org>
70669
70670         * modules/javaversion (Makefile.am): Remove DEFS setting.
70671         (Depends-on): Add configmake, for PKGDATADIR definition.
70672
70673 2006-09-17  Bruno Haible  <bruno@clisp.org>
70674
70675         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70676
70677 2006-09-17  Bruno Haible  <bruno@clisp.org>
70678
70679         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70680         (func_modules_transitive_closure, func_modules_add_dummy,
70681         func_modules_to_filelist, func_import, func_create_testdir,
70682         func_create_megatestdir, ...): Use it wherever possible.
70683         Suggested by Ralf Wildenhues.
70684
70685 2006-09-16  Karl Berry  <karl@gnu.org>
70686
70687         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70688         to avoid sectioning errors.
70689         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70690         [ifinfo]: blank line after @center-ed titles.
70691         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70692         Spell FSF address consistently with others.
70693         (These changes approved by rms.)
70694
70695 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70696
70697         Speed up by a factor of 1.61.
70698         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70699         already checked module names again.
70700
70701 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70702
70703         Speed up by a factor of 1.13.
70704         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70705         for new_files, and the input to func_add_or_update.
70706
70707 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70708
70709         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70710         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70711
70712 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * modules/mkancesdirs (Depends-on): Add fcntl.
70715         * modules/savewd: New file.
70716         * MODULES.html.sh (File system functions): Add savewd.
70717
70718         * modules/configmake (Makefile.am): Add support for the
70719         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70720
70721 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70722
70723         * m4/savewd.m4: New file.
70724
70725 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70728         (dirchownmod): New arg FD.  All callers changed.
70729         Use FD rather than opening the directory ourself, as opening is
70730         now the caller's responsibility.
70731         * lib/dirchownmod.h: Likewise.
70732         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70733         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70734         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70735         (test_dir): Remove.
70736         (mkancesdirs): Return length of prefix of FILE that has already
70737         been made, or -2 if there is a child doing the work.  Redo
70738         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70739         ".", and treat ".." specially since it might stray back into
70740         already-created areas.  Use a subprocess if necessary.  New arg
70741         WD; all users changed.  MAKE_DIR function should now return 1
70742         if it creates a directory that is not readable.  Return -2 if
70743         a child process is spun off.
70744         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70745         Adjust signature to match code.
70746         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70747         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70748         all users changed.
70749         * lib/savewd.c, lib/savewd.h: New files.
70750
70751 2006-09-15  Jim Meyering  <jim@meyering.net>
70752
70753         * modules/rename-dest-slash: New module.
70754         * MODULES.html.sh (posix_compat): Add it here.
70755
70756         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70757
70758 2006-09-15  Jim Meyering  <jim@meyering.net>
70759
70760         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70761         file.
70762
70763         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70764
70765 2006-09-15  Jim Meyering  <jim@meyering.net>
70766
70767         * lib/rename-dest-slash.c (has_trailing_slash): Use
70768         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70769         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70770         test before testing whether SRC is a directory.
70771         Suggestions from Bruno Haible.
70772
70773         Avoid a warning about an unused variable.
70774         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70775         into the #ifdef block where it's used.
70776
70777         * lib/rename-dest-slash.c: New file.
70778
70779 2006-09-14  Bruno Haible  <bruno@clisp.org>
70780
70781         * lib/allocsa.c: Include <config.h> unconditionally.
70782         * lib/asnprintf.c: Likewise.
70783         * lib/asprintf.c: Likewise.
70784         * lib/c-strcasecmp.c: Likewise.
70785         * lib/c-strcasestr.c: Likewise.
70786         * lib/c-strncasecmp.c: Likewise.
70787         * lib/c-strstr.c: Likewise.
70788         * lib/classpath.c: Likewise.
70789         * lib/clean-temp.c: Likewise.
70790         * lib/concatpath.c: Likewise.
70791         * lib/copy-file.c: Likewise.
70792         * lib/csharpcomp.c: Likewise.
70793         * lib/csharpexec.c: Likewise.
70794         * lib/execute.c: Likewise.
70795         * lib/fatal-signal.c: Likewise.
70796         * lib/findprog.c: Likewise.
70797         * lib/fwriteerror.c: Likewise.
70798         * lib/gl_array_list.c: Likewise.
70799         * lib/gl_array_oset.c: Likewise.
70800         * lib/gl_avltree_list.c: Likewise.
70801         * lib/gl_avltree_oset.c: Likewise.
70802         * lib/gl_avltreehash_list.c: Likewise.
70803         * lib/gl_carray_list.c: Likewise.
70804         * lib/gl_linked_list.c: Likewise.
70805         * lib/gl_linkedhash_list.c: Likewise.
70806         * lib/gl_list.c: Likewise.
70807         * lib/gl_oset.c: Likewise.
70808         * lib/gl_rbtree_list.c: Likewise.
70809         * lib/gl_rbtree_oset.c: Likewise.
70810         * lib/gl_rbtreehash_list.c: Likewise.
70811         * lib/imaxabs.c: Likewise.
70812         * lib/imaxdiv.c: Likewise.
70813         * lib/javacomp.c: Likewise.
70814         * lib/javaexec.c: Likewise.
70815         * lib/javaversion.c: Likewise.
70816         * lib/linebreak.c: Likewise.
70817         * lib/localcharset.c: Likewise.
70818         * lib/lock.c: Likewise.
70819         * lib/mbchar.c: Likewise.
70820         * lib/mbswidth.c: Likewise.
70821         * lib/mkdtemp.c: Likewise.
70822         * lib/pipe.c: Likewise.
70823         * lib/printf-args.c: Likewise.
70824         * lib/printf-parse.c: Likewise.
70825         * lib/progname.c: Likewise.
70826         * lib/progreloc.c: Likewise.
70827         * lib/readlink.c: Likewise.
70828         * lib/sh-quote.c: Likewise.
70829         * lib/stpcpy.c: Likewise.
70830         * lib/stpncpy.c: Likewise.
70831         * lib/strcasecmp.c: Likewise.
70832         * lib/strcasestr.c: Likewise.
70833         * lib/strcspn.c: Likewise.
70834         * lib/striconv.c: Likewise.
70835         * lib/strncasecmp.c: Likewise.
70836         * lib/strnlen1.c: Likewise.
70837         * lib/strstr.c: Likewise.
70838         * lib/strtok_r.c: Likewise.
70839         * lib/tls.c: Likewise.
70840         * lib/tmpdir.c: Likewise.
70841         * lib/unicodeio.c: Likewise.
70842         * lib/unsetenv.c: Likewise.
70843         * lib/vasnprintf.c: Likewise.
70844         * lib/vasprintf.c: Likewise.
70845         * lib/wait-process.c: Likewise.
70846         * lib/xallocsa.c: Likewise.
70847         * lib/xsetenv.c: Likewise.
70848         * lib/xstriconv.c: Likewise.
70849
70850 2006-09-13  Simon Josefsson  <jas@extundo.com>
70851
70852         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70853         that internally, suggested by Ralf Wildenhues
70854         <Ralf.Wildenhues@gmx.de>.
70855
70856 2006-09-13  Simon Josefsson  <jas@extundo.com>
70857
70858         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70859         @LIBOBJS@.
70860         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70861
70862 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70863
70864         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70865         longer worry about uses that don't define HAVE_CONFIG_H.
70866         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70867         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70868         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70869         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70870         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70871         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70872         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70873         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70874         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70875         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70876         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70877         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70878         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70879         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70880         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70881         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70882         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70883         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70884         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70885         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70886         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70887         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70888         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70889         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70890         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70891         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70892         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70893         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70894         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70895         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70896         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70897         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70898         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70899         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70900         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70901         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70902         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70903         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70904         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70905         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70906         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70907         Likewise.
70908
70909 2006-09-13  Eric Blake  <ebb9@byu.net>
70910
70911         * lib/getopt.c: Fix typo in last commit.
70912
70913 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70914
70915         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70916         dgettext.
70917
70918 2006-09-12  Jim Meyering  <jim@meyering.net>
70919
70920         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70921         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70922         Reported by Nelson H. F. Beebe.
70923
70924 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70925
70926         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70927         program_invocation_name and program_invocation_short_name are
70928         initialized.
70929         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70930         and program_invocation_short_name to argp.h, so they are visible
70931         to user programs.
70932         * lib/argp.h: Likewise
70933
70934 2006-09-10  Bruno Haible  <bruno@clisp.org>
70935
70936         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70937         m4/inttypes_h.m4, m4/uintmax_t.m4.
70938
70939 2006-09-10  Bruno Haible  <bruno@clisp.org>
70940
70941         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70942         gl_AC_TYPE_UINTMAX_T.
70943
70944 2006-09-10  Bruno Haible  <bruno@clisp.org>
70945
70946         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70947
70948 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70949
70950         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70951         convention.  Text proposed by Bruno Haible.
70952         (struct argp_option): Document the use of N_() wrappers.
70953
70954         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70955         '\v', and translate the two parts separately, instead of feeding
70956         the whole string to gettext.  This allows to exclude
70957         '\v' from the strings visible to the translator by writing doc
70958         strings as N_("..") "\v" N_("..").
70959
70960 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70961
70962         * config/srclist.txt: Undo latest change; the bug was fixed.
70963
70964 2006-09-09  Bruno Haible  <bruno@clisp.org>
70965
70966         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70967         assignments if building a library without libtool.
70968         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70969         in func_emit_lib_Makefile_am.
70970         (func_import): When building a static library libfoo.a, arrange to
70971         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70972         (func_create_testdir): Likewise.
70973         * modules/gc (configure.ac, Makefile.am): If building statically,
70974         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70975         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70976         * modules/striconv (configure.ac, Makefile.am): Likewise.
70977         Based on a suggestion by Ralf Wildenhues.
70978
70979 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70982         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70983         Also:
70984
70985         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70986         Add year_2050_test to catch glibc bug 2821
70987         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70988
70989         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70990         Prefer #ifdef to #if.
70991
70992         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70993         Return from 'main' instead of calling 'exit'.
70994
70995 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70998         returned the maximum time_t value rather than (time_t) -1.
70999         Problem originally reported by William Bardwell
71000         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71001
71002         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71003         Moved to here ...
71004         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71005         ... from here.
71006
71007 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71008
71009         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
71010         2821 is fixed.
71011
71012 2006-09-08  Jim Meyering  <jim@meyering.net>
71013
71014         Don't make generated files read-only.  That would bother too many
71015         people.  However, do retain the ability to work when targets are
71016         read-only: remove the destination and temporary files before writing
71017         them (when generated via sed or echo), or by using the -f option for
71018         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71019         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71020         * modules/byteswap, modules/configmake, modules/fcntl:
71021         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71022         * modules/localcharset, modules/netinet_in, modules/poll:
71023         * modules/stdbool, modules/stdint, modules/sys_select:
71024         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71025
71026 2006-09-08  Jim Meyering  <jim@meyering.net>
71027
71028         Avoid new build failure on FreeBSD 6.0.
71029         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71030         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71031         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71032
71033 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71034
71035         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71036
71037 2006-09-07  Jim Meyering  <jim@meyering.net>
71038
71039         Fix global typo in last change: use chmod u-w, not chmod u-x.
71040         Spotted by Paul Eggert and Bruce Korb.
71041         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71042         * modules/byteswap, modules/configmake, modules/fcntl:
71043         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71044         * modules/localcharset, modules/netinet_in, modules/poll:
71045         * modules/stdbool, modules/stdint, modules/sys_select:
71046         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71047
71048 2006-09-06  Jim Meyering  <jim@meyering.net>
71049
71050         Make generated files be read-only.
71051         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71052         Ensure that each generated file is now read-only.
71053         * modules/argz: Likewise.
71054         * modules/arpa_inet: Likewise.
71055         * modules/byteswap: Likewise.
71056         * modules/configmake: Likewise.
71057         * modules/fcntl: Likewise.
71058         * modules/fnmatch: Likewise.
71059         * modules/getopt: Likewise.
71060         * modules/glob: Likewise.
71061         * modules/inttypes: Likewise.
71062         * modules/netinet_in: Likewise.
71063         * modules/poll: Likewise.
71064         * modules/stdbool: Likewise.
71065         * modules/stdint: Likewise.
71066         * modules/sys_select: Likewise.
71067         * modules/sys_socket: Likewise.
71068         * modules/sys_stat: Likewise.
71069         * modules/sysexits: Likewise.
71070         * modules/localcharset: Same as above, but continue using temporary
71071         file named "t-$@" (why different?) rather than the "$@-t" used
71072         everywhere else.
71073
71074         * modules/sysexits (Makefile.am): Replace literal occurrences
71075         of "sysexit.h" more readable, and more consistent, "$@".
71076
71077 2006-09-06  Bruno Haible  <bruno@clisp.org>
71078
71079         * modules/striconv: New file.
71080         * modules/xstriconv: New file.
71081         * MODULES.html.sh (Internationalization functions): Add striconv,
71082         xstriconv.
71083
71084 2006-09-06  Bruno Haible  <bruno@clisp.org>
71085
71086         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71087         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71088         not using libtool correctly.
71089
71090 2006-09-06  Bruno Haible  <bruno@clisp.org>
71091
71092         * lib/striconv.h: New file.
71093         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71094         iconvstring.c.
71095         * lib/xstriconv.h: New file.
71096         * lib/xstriconv.c: New file.
71097
71098 2006-09-06  Bruno Haible  <bruno@clisp.org>
71099
71100         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71101         lib_..._LDFLAGS.
71102
71103 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71104
71105         * lib/argz_.h: Sync from Libtool.
71106
71107         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71108                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71109
71110         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71111
71112 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71113
71114         * modules/trim: New file.
71115
71116 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71117
71118         * lib/trim.h: New file.
71119         * lib/trim.c: New file.
71120
71121 2006-09-05  Bruno Haible  <bruno@clisp.org>
71122
71123         * MODULES.html.sh (String handling): Add trim.
71124
71125 2006-09-04  Karl Berry  <karl@gnu.org>
71126
71127         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71128         until next release.
71129
71130 2006-09-03  Bruno Haible  <bruno@clisp.org>
71131
71132         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71133         correctly.
71134
71135 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71138         not gl_GETLOADAVG.  Omit unneeded semicolons.
71139         Problems reported by Ralf Wildenhues in
71140         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71141         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71142         at the end, which is the usual gnulib style.
71143
71144         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71145         of doing all the work ourselves.
71146         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71147         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71148
71149 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71150
71151         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71152         Problem reported by Ralf Wildenhues in
71153         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71154
71155         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71156         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71157
71158 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71159
71160         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71161         yesterday's patch by changing test -n to test -z.
71162
71163 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71164
71165         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71166         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71167         the former is now obsolescent.
71168
71169         * modules/chdir-long (Depends-on): Add fcntl.
71170
71171 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71172
71173         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71174         obsolescent, and programs should use gnulib instead.
71175         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71176         but with prefixes changed.
71177
71178 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71179
71180         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71181         or stdbool.h, because they might not exist while configuring.
71182
71183         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71184         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71185         does that for us.
71186         (O_DIRECTORY): Remove.
71187
71188 2006-08-31  Eric Blake  <ebb9@byu.net>
71189
71190         * gnulib-tool: Don't let emacs change spaces to TAB.
71191
71192 2006-08-31  Bruno Haible  <bruno@clisp.org>
71193
71194         * gnulib-tool: When calling func_import more than once, do it in a
71195         subshell.
71196         Reported by Eric Blake <ebb9@byu.net>.
71197
71198 2006-08-31  Bruno Haible  <bruno@clisp.org>
71199
71200         * gnulib-tool (nl): Remove variable.
71201         (sed_transform_lib_file): Use more robust test for config-h module.
71202         (func_import): Fix typo in 2006-08-25 patch.
71203
71204 2006-08-31  Bruno Haible  <bruno@clisp.org>
71205
71206         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71207         specified, augment Makefile.am variables instead of assigning them.
71208
71209 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71210
71211         Work around a bug in both the Linux and SunOS 64-bit kernels:
71212         nanosleep mishandles sleeps for longer than 2**31 seconds.
71213         Problem reported by Frank v Waveren in
71214         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71216         Check for nanosleep bug.
71217         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71218
71219 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71220
71221         Work around a bug in both the Linux and SunOS 64-bit kernels:
71222         nanosleep mishandles sleeps for longer than 2**31 seconds.
71223         Problem reported by Frank v Waveren in
71224         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71225         * lib/nanosleep.c (BILLION): New constant.
71226         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71227         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71228         implementation.
71229
71230 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         * modules/nanosleep (Depends-on): Add gettime.
71233
71234 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71235         and Simon Josefsson  <jas@extundo.com>
71236         and Oskar Liljeblad  <oskar@osk.mine.nu>
71237
71238         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71239         * gnulib-tool (func_import): New license type 'unmodifiable license
71240         text'.
71241         * modules/fdl: Use it.  Longer description.
71242         * module/gpl, module/lgpl: New files.
71243
71244 2006-08-30  Jim Meyering  <jim@meyering.net>
71245
71246         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71247         shadowing the parameter.
71248
71249 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71250
71251         Sync from Libtool:
71252
71253         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71254
71255         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71256         sharing with gnulib.  Report by Eric Blake.
71257
71258 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71259
71260         * modules/isapipe: New file.
71261         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71262
71263 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71264
71265         * modules/configmake (Makefile.am): Add a comment, and omit
71266         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71267         by Bruno Haible.
71268
71269 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71270
71271         * m4/isapipe.m4: New file.
71272
71273 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         * lib/isapipe.c, lib/isapipe.h: New files.
71276
71277 2006-08-29  Jim Meyering  <jim@meyering.net>
71278
71279         * modules/configmake (Makefile.am): Make configmake.h depend on
71280         Makefile.  Otherwise, a stale configmake.h could hang around.
71281
71282 2006-08-29  Eric Blake  <ebb9@byu.net>
71283
71284         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71285         resolution of upstream bug 3044.
71286
71287 2006-08-29  Bruno Haible  <bruno@clisp.org>
71288
71289         * modules/localcharset (Depends-on): Add configmake.
71290         (Makefile.am): Remove setting of LIBDIR through DEFS.
71291
71292 2006-08-29  Bruno Haible  <bruno@clisp.org>
71293
71294         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71295         defined.
71296
71297 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71298
71299         * modules/fcntl: New file.
71300         * modules/chdir-safer (Depends-on): Add fcntl.
71301         * modules/fts: Likewise.
71302         * modules/mkdir-p: Likewise.
71303
71304         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71305         This undoes the most recent change, since we're now addressing the
71306         problem in a different way.
71307
71308         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71309         into output, since the output might be called Makefile.am even
71310         if $makefile_name is something different.
71311         (func_import): Use $makefile_am rather than
71312         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71313         empty.
71314
71315         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71316
71317 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71318
71319         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71320         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71321         recent change to stdint.m4, since we're now addressing the problem in a
71322         different way.
71323
71324 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71325
71326         * m4/fcntl_h.m4: New file.
71327
71328 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71329
71330         * lib/fcntl_.h: New file.
71331         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71332         the fcntl module.
71333         * lib/dirchownmod.c: Likewise.
71334         * lib/fts.c: Likewise.
71335
71336         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71337         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71338         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71339         just before including <inttypes.h>, to avoid circular inclusion.
71340
71341 2006-08-28  Jim Meyering  <jim@meyering.net>
71342
71343         * doc/visibility.texi: Actually read and correct the grammar of the
71344         sentence affected by yesterday's change.
71345
71346 2006-08-28  Eric Blake  <ebb9@byu.net>
71347
71348         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71349         needs wrapper.
71350
71351 2006-08-28  Eric Blake  <ebb9@byu.net>
71352
71353         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71354
71355 2006-08-28  Eric Blake  <ebb9@byu.net>
71356
71357         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71358
71359 2006-08-28  Bruno Haible  <bruno@clisp.org>
71360
71361         * modules/c-strstr: New file, from GNU gettext.
71362         * MODULES.html.sh (String handling): Add c-strstr.
71363
71364 2006-08-28  Bruno Haible  <bruno@clisp.org>
71365
71366         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71367         macros.
71368         Reported by Eric Blake.
71369
71370 2006-08-28  Bruno Haible  <bruno@clisp.org>
71371
71372         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71373         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71374         * lib/vasprintf.c: Include errno.h, limits.h.
71375         (EOVERFLOW): New fallback definition.
71376         (vasprintf): Test here whether the string length is > INT_MAX.
71377         * lib/vsnprintf.c: Include errno.h, limits.h.
71378         (EOVERFLOW): New fallback definition.
71379         (vsnprintf): Fix bug when generated string was too long for the buffer.
71380         Test here whether the string length is > INT_MAX.
71381
71382 2006-08-28  Bruno Haible  <bruno@clisp.org>
71383
71384         * lib/inttypes_.h (SCNX*): Remove definitions.
71385         Reported by Eric Blake.
71386
71387 2006-08-28  Bruno Haible  <bruno@clisp.org>
71388
71389         * lib/c-strstr.h: New file, from GNU gettext.
71390         * lib/c-strstr.c: New file, from GNU gettext.
71391
71392 2006-08-28  Bruno Haible  <bruno@clisp.org>
71393
71394         * gnulib-tool: Reorder some statements.
71395
71396 2006-08-28  Bruno Haible  <bruno@clisp.org>
71397
71398         * gnulib-tool: New option --makefile-name.
71399         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71400         $makefile_name.
71401         (func_import): Write $makefile_name to the cache file, and read it from
71402         there unless explicitly specified. Use $makefile_name as file name
71403         instead of Makefile.am. Adjust the recommendations accordingly.
71404
71405 2006-08-28  Bruno Haible  <bruno@clisp.org>
71406
71407         * gnulib-tool (func_verify_module): Check against misapplying patch.
71408
71409 2006-08-28  Bruno Haible  <bruno@clisp.org>
71410
71411         * gnulib-tool (func_relativize, func_relconcat): New functions.
71412         Give an error if --local-dir is given with --update.
71413         Remove trailing slashes from $local_gnulib_dir.
71414         (func_import): Store the relativized $local_gnulib_dir in
71415         gnulib-cache.m4, and read it from there if not specified explicitly.
71416
71417 2006-08-28  Bruno Haible  <bruno@clisp.org>
71418
71419         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71420         is the current directory. Respect also $local_gnulib_dir.
71421
71422 2006-08-28  Bruno Haible  <bruno@clisp.org>
71423             Simon Josefsson  <jas@extundo.com>
71424
71425         BeOS portability.
71426         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71427
71428 2006-08-27  Jim Meyering  <jim@meyering.net>
71429
71430         * doc/visibility.texi: Remove duplicate word: "pointer".
71431
71432 2006-08-26  Bruno Haible  <bruno@clisp.org>
71433
71434         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71435         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71436         (Makefile.am): Create inttypes.h from inttypes_.h.
71437         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71438
71439         * modules/imaxabs: New file.
71440
71441         * modules/imaxdiv: New file.
71442
71443 2006-08-26  Bruno Haible  <bruno@clisp.org>
71444
71445         * m4/inttypes.m4: New file.
71446         * m4/_inttypes_h.m4: Remove file.
71447         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71448         PRI_MACROS_BROKEN.
71449         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71450
71451         * m4/imaxabs.m4: New file.
71452
71453         * m4/imaxdiv.m4: New file.
71454
71455 2006-08-26  Bruno Haible  <bruno@clisp.org>
71456
71457         * lib/inttypes_.h: New file.
71458         * lib/inttypes.h: Remove file.
71459         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71460
71461         * lib/imaxabs.c: New file.
71462
71463         * lib/imaxdiv.c: New file.
71464
71465 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         New config-h module, so that "make" output needn't be cluttered
71468         by -DHAVE_CONFIG_H.
71469         * MODULES.html.sh (Support for building libraries and executables):
71470         Add config-h.
71471         * modules/config-h: New file.
71472         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71473         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71474         the config-h module is used.
71475
71476         New configmake module, so that "make" output needn't be cluttered
71477         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71478         * MODULES.html.sh (Support for building libraries and executables):
71479         Add configmake.
71480         * modules/configmake: New file.
71481
71482 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71483
71484         * m4/config-h.m4: New file.
71485
71486 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71487
71488         * config/srclist.txt: Add elisp-comp.
71489
71490 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71491
71492         * MODULES.html.sh (Support for building libraries and executables):
71493         Add elisp-comp.
71494         * build-aux/elisp-comp: New file.
71495         * modules/elisp-comp: New file.
71496
71497 2006-08-24  Bruno Haible  <bruno@clisp.org>
71498
71499         * gnulib-tool (func_create_testdir): Use non-default values of
71500         sourcebase and m4base.
71501
71502 2006-08-24  Bruno Haible  <bruno@clisp.org>
71503
71504         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71505         HTML structure.
71506
71507 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71508
71509         * modules/openat (Depends-on): Add lchown.
71510
71511 2006-08-23  Bruno Haible  <bruno@clisp.org>
71512
71513         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71514         of gl_LOCK_EARLY instead of gl_LOCK.
71515
71516 2006-08-23  Bruno Haible  <bruno@clisp.org>
71517
71518         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71519         on OSF/1 to no.
71520         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71521
71522 2006-08-23  Bruno Haible  <bruno@clisp.org>
71523
71524         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71525         as unusable.
71526
71527         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71528         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71529         (gl_LOCK): New macro.
71530
71531 2006-08-22  Simon Josefsson  <jas@extundo.com>
71532
71533         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71534         to md5 module.
71535
71536 2006-08-22  Simon Josefsson  <jas@extundo.com>
71537
71538         * MODULES.html.sh: Add "Support for maintaining and release
71539         projects".
71540
71541         * build-aux/gnupload: New file, from coreutils.
71542
71543 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71544
71545         Avoid the need for AC_LIBSOURCES in m4 macros.
71546         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71547         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71548         * modules/check-version (EXTRA_DIST): Add check-version.h.
71549         * modules/crc (EXTRA_DIST): Add crc.h.
71550         * modules/des (EXTRA_DIST): Add des.h.
71551         * modules/gc (EXTRA_DIST): Add gc.h.
71552         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71553         * modules/getline (EXTRA_DIST): Add getline.h.
71554         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71555         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71556         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71557         * modules/md2 (EXTRA_DIST): Add md2.h.
71558         * modules/md4 (EXTRA_DIST): Add md4.h.
71559         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71560         * modules/read-file (EXTRA_DIST): Add read-file.h.
71561         * modules/readline (EXTRA_DIST): Add readline.h.
71562         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71563         rijndael-api-fst.h.
71564
71565 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71566
71567         * m4/rijndael.m4 (gl_ARCFOUR):
71568         * m4/arctwo.m4 (gl_ARCTWO):
71569         * m4/check-version.m4 (gl_CHECK_VERSION):
71570         * m4/crc.m4 (gl_CRC):
71571         * m4/des.m4 (gl_DES):
71572         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71573         * m4/gc.m4 (gl_GC):
71574         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71575         * m4/getline.m4 (gl_FUNC_GETLINE):
71576         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71577         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71578         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71579         * m4/md2.m4 (gl_MD2):
71580         * m4/md4.m4 (gl_MD4):
71581         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71582         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71583         * m4/readline.m4 (gl_FUNC_READLINE):
71584         * m4/rijndael.m4 (gl_RIJNDAEL):
71585         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71586         to get the necessary .h files and whatnot.
71587
71588 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71589
71590         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71591         gnulib rather than the other way around.
71592         * config/srclistvars.sh (COREUTILS): Remove.
71593
71594 2006-08-22  Jim Meyering  <jim@meyering.net>
71595
71596         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71597
71598         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71599
71600 2006-08-22  Eric Blake  <ebb9@byu.net>
71601
71602         * modules/regexprops-generic: New file.
71603         * MODULES.html.sh (Support for building documentation): List it.
71604
71605 2006-08-22  Eric Blake  <ebb9@byu.net>
71606
71607         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71608         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71609         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71610         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71611
71612 2006-08-22  Bruno Haible  <bruno@clisp.org>
71613
71614         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71615         and lib_LTLIBRARIES like the other lib_* variables.
71616
71617 2006-08-22  Bruno Haible  <bruno@clisp.org>
71618
71619         * build-aux/x-to-1.in: New file, from GNU gettext.
71620
71621 2006-08-22  Bruno Haible  <bruno@clisp.org>
71622
71623         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71624         <utmpx.h> exists.
71625
71626 2006-08-22  Bruno Haible  <bruno@clisp.org>
71627
71628         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71629         <utmpx.h> exists.
71630
71631 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71632
71633         BeOS portability.
71634         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71635         exist.
71636         Problem reported by Bruno Haible.
71637
71638 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71639
71640         Avoid the need for AC_LIBSOURCES in m4 macros.
71641         * modules/acl (EXTRA_DIST): Add acl.h.
71642         * modules/argmatch (Files): Add m4/argmatch.m4.
71643         (configure.ac): Add gl_ARGMATCH.
71644         (EXTRA_DIST): Renamed from lib_SOURCES, for
71645         consistency with the other modules.  Remove argmatch.c.
71646         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71647         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71648         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71649         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71650         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71651         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71652         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71653         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71654         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71655         * modules/closeout (EXTRA_DIST): Add closeout.h.
71656         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71657         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71658         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71659         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71660         dirname.h; remove basename.c and stripslash.c.
71661         * modules/exclude (EXTRA_DIST): Add exclude.h.
71662         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71663         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71664         * modules/file-type (EXTRA_DIST): Add file-type.h.
71665         * modules/filemode (EXTRA_DIST): Add filemode.h.
71666         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71667         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71668         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71669         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71670         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71671         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71672         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71673         * modules/getdate (EXTRA_DIST): Add getdate.c.
71674         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71675         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71676         * modules/getpass (EXTRA_DIST): Add getpass.h.
71677         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71678         * modules/group-member (EXTRA_DIST): Add group-member.h.
71679         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71680         * modules/hash (EXTRA_DIST): Add hash.h.
71681         * modules/human (EXTRA_DIST): Add human.h.
71682         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71683         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71684         * modules/lchown (EXTRA_DIST): Add lchown.h.
71685         * modules/long-options (EXTRA_DIST): Add long-options.h.
71686         * modules/lstat (EXTRA_DIST): Add lstat.h.
71687         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71688         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71689         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71690         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71691         * modules/memxor (EXTRA_DIST): Add memxor.h.
71692         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71693         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71694         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71695         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71696         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71697         * modules/physmem (EXTRA_DIST): Add physmem.h.
71698         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71699         * modules/posixver (EXTRA_DIST): Add posixver.h.
71700         * modules/quote (EXTRA_DIST): Add quote.h.
71701         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71702         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71703         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71704         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71705         regex_internal.h regexec.c.
71706         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71707         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71708         * modules/same (EXTRA_DIST): Add same.h.
71709         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71710         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71711         * modules/savedir (EXTRA_DIST): Add savedir.h.
71712         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71713         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71714         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71715         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71716         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71717         * modules/strdup (EXTRA_DIST): Add strdup.h.
71718         * modules/strftime (EXTRA_DIST): Add strftime.h.
71719         * modules/strndup (EXTRA_DIST): Add strndup.h.
71720         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71721         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71722         * modules/time_r (EXTRA_DIST): Add time_r.h.
71723         * modules/timespec (EXTRA_DIST): Add timespec.h.
71724         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71725         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71726         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71727         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71728         * modules/userspec (EXTRA_DIST): Add userspec.h.
71729         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71730         * modules/utimens (EXTRA_DIST): Add utimens.h.
71731         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71732         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71733         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71734         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71735         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71736         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71737         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71738         * modules/yesno (EXTRA_DIST): Add yesno.h.
71739
71740 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71741
71742         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71743
71744         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71745         * m4/dev-ino.m4, same-inode.m4: Remove.
71746
71747         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71748         * m4/acl.m4 (AC_FUNC_ACL):
71749         * m4/backupfile.m4 (gl_BACKUPFILE):
71750         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71751         * m4/canon-host.m4 (gl_CANON_HOST):
71752         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71753         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71754         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71755         * m4/cloexec.m4 (gl_CLOEXEC):
71756         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71757         * m4/closeout.m4 (gl_CLOSEOUT):
71758         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71759         * m4/dirname.m4 (gl_DIRNAME):
71760         * m4/exclude.m4 (gl_EXCLUDE):
71761         * m4/exitfail.m4 (gl_EXITFAIL):
71762         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71763         * m4/file-type.m4 (gl_FILE_TYPE):
71764         * m4/filemode.m4 (gl_FILEMODE):
71765         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71766         * m4/fpending.m4 (gl_FUNC_FPENDING):
71767         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71768         * m4/fts.m4 (gl_FUNC_FTS):
71769         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71770         * m4/getdate.m4 (gl_GETDATE):
71771         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71772         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71773         * m4/getpass.m4 (gl_FUNC_GETPASS):
71774         * m4/gettime.m4 (gl_GETTIME):
71775         * m4/getugroups.m4 (gl_GETUGROUPS):
71776         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71777         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71778         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71779         * m4/hash.m4 (gl_HASH):
71780         * m4/idcache.m4 (gl_IDCACHE):
71781         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71782         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71783         * m4/long-options.m4 (gl_LONG_OPTIONS):
71784         * m4/lstat.m4 (gl_FUNC_LSTAT):
71785         * m4/md5.m4 (gl_MD5):
71786         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71787         * m4/memcoll.m4 (gl_MEMCOLL):
71788         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71789         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71790         * m4/memxor.m4 (gl_MEMXOR):
71791         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71792         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71793         * m4/modechange.m4 (gl_MODECHANGE):
71794         * m4/mountlist.m4 (gl_MOUNTLIST):
71795         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71796         * m4/openat.m4 (gl_FUNC_OPENAT):
71797         * m4/pathmax.m4 (gl_PATHMAX):
71798         * m4/physmem.m4 (gl_PHYSMEM):
71799         * m4/posixtm.m4 (gl_POSIXTM):
71800         * m4/posixver.m4 (gl_POSIXVER):
71801         * m4/quote.m4 (gl_QUOTE):
71802         * m4/quotearg.m4 (gl_QUOTEARG):
71803         * m4/readtokens.m4 (gl_READTOKENS):
71804         * m4/readutmp.m4 (gl_READUTMP):
71805         * m4/regex.m4 (gl_REGEX):
71806         * m4/safe-read.m4 (gl_SAFE_READ):
71807         * m4/safe-write.m4 (gl_SAFE_WRITE):
71808         * m4/same.m4 (gl_SAME):
71809         * m4/save-cwd.m4 (gl_SAVE_CWD):
71810         * m4/savedir.m4 (gl_SAVEDIR):
71811         * m4/settime.m4 (gl_SETTIME):
71812         * m4/sha1.m4 (gl_SHA1):
71813         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71814         * m4/stat-macros.m4 (gl_STAT_MACROS):
71815         * m4/stat-time.m4 (gl_STAT_TIME):
71816         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71817         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71818         * m4/strdup.m4 (gl_FUNC_STRDUP):
71819         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71820         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71821         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71822         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71823         * m4/time_r.m4 (gl_TIME_R):
71824         * m4/timespec.m4 (gl_TIMESPEC):
71825         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71826         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71827         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71828         * m4/userspec.m4 (gl_USERSPEC):
71829         * m4/utimecmp.m4 (gl_UTIMECMP):
71830         * m4/utimens.m4 (gl_UTIMENS):
71831         * m4/xalloc.m4 (gl_XALLOC):
71832         * m4/xgetcwd.m4 (gl_XGETCWD):
71833         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71834         * m4/xreadlink.m4 (gl_XREADLINK):
71835         * m4/xstrtod.m4 (gl_XSTRTOD):
71836         * m4/yesno.m4 (gl_YESNO):
71837         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71838         to get the necessary .h files and whatnot.
71839
71840 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71841             Bruno Haible  <bruno@clisp.org>
71842
71843         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71844         /bin/sh understanding of '!' conditional negation.
71845
71846 2006-08-21  Jim Meyering  <jim@meyering.net>
71847
71848         * modules/openat (Depends-on): Really alphabetize.
71849
71850         * modules/acl (Depends-on): Add error and quote.
71851
71852         * check-module (find_included_lib_files): Add at-func.c to the
71853         ok-to-include-more-than-once white list.
71854
71855         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71856
71857 2006-08-21  Bruno Haible  <bruno@clisp.org>
71858
71859         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71860         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71861         Reported by Martin Lambers <marlam@marlam.de>.
71862
71863 2006-08-21  Bruno Haible  <bruno@clisp.org>
71864
71865         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71866         specify an installation location, don't emit a noinst_LIBRARIES or
71867         noinst_LTLIBRARIES assignment.
71868
71869 2006-08-21  Bruno Haible  <bruno@clisp.org>
71870
71871         BeOS portability.
71872         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71873         BeOS has mbrtowc() but no <wctype.h>.
71874
71875 2006-08-21  Bruno Haible  <bruno@clisp.org>
71876
71877         BeOS portability.
71878         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71879         exist.
71880
71881 2006-08-21  Bruno Haible  <bruno@clisp.org>
71882
71883         BeOS portability.
71884         * lib/mbchar.h: Include <wctype.h> only if it exists.
71885
71886 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71887
71888         Remove files that are no longer needed by their respective modules.
71889         * m4/obstack.m4: Remove.
71890         * m4/strerror_r.m4: Remove.
71891         * m4/uint32_t.m4: Remove.
71892         * m4/uintptr_t.m4: Remove.
71893         * m4/ullong_max.m4: Remove.
71894         * m4/xstrtoimax.m4: Remove.
71895         * m4/xstrtoumax.m4: Remove.
71896
71897         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71898         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71899         dependencies now capture this.
71900
71901         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71902         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71903         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71904         * m4/human.m4 (gl_HUMAN): Likewise.
71905         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71906         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71907
71908         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71909
71910         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71911         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71912         stdint.
71913         * m4/human.m4 (gl_HUMAN): Likewise.
71914         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71915         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71916         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71917         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71918         * m4/xstrtol (gl_XSTRTOL): Likewise.
71919
71920         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71921         AC_TYPE_LONG_LONG_INT.
71922         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71923         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71924         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71925         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71926
71927         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71928         on stdbool.
71929
71930         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71931         (gl_PREREQ_XSTRTOUL): Remove.
71932
71933         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71934
71935         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71936         mode.
71937
71938 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71939
71940         Add and change modules to make it easier for coreutils to use
71941         gnulib-tool.
71942         * modules/backupfile (Files): Remove m4/d-ino.m4.
71943         (Depends-on): Add d-ino.
71944         * modules/cycle-check (Depends-on): Add stdint.
71945         (lib_SOURCES): Add cycle-check.h.
71946         * modules/d-ino: New module.
71947         * modules/d-type: New module.
71948         * modules/error (Files): Remove m4/strerror_r.m4.
71949         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71950         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71951         m4/inttypes_h.m4, m4/uintmax_t.m4.
71952         (Depends-on): Add stdint.
71953         (lib_SOURCES): Add fsusage.h.
71954         * modules/getcwd (Files): Remove d-ino.m4.
71955         (Depends-on): Add d-ino.
71956         * modules/getndelim2 (Depends-on): Add stdint.
71957         * modules/glob (Files): Remove m4/d-type.m4.
71958         (Depends-on): Add d-type.
71959         * modules/host-os: New module.
71960         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71961         m4/inttypes_h.m4, m4/uintmax_t.m4.
71962         * Depends-on: Add stdint.
71963         (lib_SOURCES): Add human.h.
71964         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71965         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71966         m4/uintmax_t.m4, m4/ulonglong.m4.
71967         (Depends-on): Add stdint.
71968         (EXTRA_DIST): Add inttostr.h.
71969         * modules/lchmod: New module.
71970         * modules/link-follow: New module.
71971         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71972         (Depends-on): Add lchmod.
71973         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71974         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71975         (Depends-on): Add stdint.
71976         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71977         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71978         (Depends-on): Add stdint.
71979         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71980         * modules/perl: New module.
71981         * modules/regex (Depends-on): Add stdint.
71982         * modules/rmdir-errno: New module.
71983         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71984         m4/intmax_t.m4.
71985         (Depends-on): Add stdint.
71986         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71987         m4/uintmax_t.m4.
71988         (Depends-on): Add stdint.
71989         * modules/unlink-busy: New module.
71990         * modules/utimecmp (Depends-on): Add stdint.
71991         * modules/uptime: New module.
71992         * modules/winsz-ioctl: New module.
71993         * modules/winsz-termios: New module.
71994         * modules/xnanosleep (Depends-on): Add nanosleep.
71995         * modules/ullong_max: Remove.
71996         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71997         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71998         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71999         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
72000         (Depends-on): Add inttypes.
72001         (lib_SOURCES): Add xstrtol.h.
72002         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
72003         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
72004         * MODULES.html.sh: Move 'assert' into the assert section.
72005         Move 'dummy' into the linking section.
72006         Remove ullong_max.
72007         Add section for compatibility checks for POSIX:2001 functions,
72008         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
72009         winsz-ioctl, and winsz-termios into it.
72010         Add lchmod.
72011         Add top-level Misc section and put host-os, perl, and uptime
72012         into it.
72013
72014 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72015
72016         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72017         now assume the stdint module.  Do not include inttypes.h.
72018         * lib/fsusage.h: Likewise.
72019         * lib/getndelim2.c: Likewise.
72020         * lib/human.h: Likewise.
72021         * lib/inttostr.h: Likewise.
72022         * lib/obstack.c: Likewise.
72023         * lib/regex_internal.h: Likewise.
72024         * lib/tempname.c: Likewise.
72025         * lib/utimecmp.c: Likewise.
72026         * lib/xstrtol.h: Likewise.
72027
72028         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72029
72030         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72031         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72032         * lib/xtime.h: Likewise.
72033
72034 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72035
72036         * modules/openat (Files): Add lib/fchmodat.c.
72037         Fixes problem reported by Jay Youngman.
72038
72039 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72040
72041         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72042         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72043
72044 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72045             Bruno Haible  <bruno@clisp.org>
72046
72047         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72048         and is a script that invokes bison. Tighten the code. Add comments.
72049
72050 2006-08-18  Jim Meyering  <jim@meyering.net>
72051
72052         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72053         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72054         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72055         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72056
72057 2006-08-18  Bruno Haible  <bruno@clisp.org>
72058
72059         * modules/bison-i18n: New file.
72060         * MODULES.html.sh (Internationalization functions): Add it.
72061
72062 2006-08-18  Bruno Haible  <bruno@clisp.org>
72063
72064         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72065         sys/statvfs.h. When getmntinfo was found, check its declaration and
72066         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72067
72068 2006-08-18  Bruno Haible  <bruno@clisp.org>
72069
72070         * m4/bison-i18n.m4: New file, from bison.
72071
72072 2006-08-18  Bruno Haible  <bruno@clisp.org>
72073
72074         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72075         (ME_DUMMY): Treat "kernfs" as a dummy.
72076         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72077
72078 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72079
72080         Update from coreutils.
72081
72082         2006-08-15  Jim Meyering  <jim@meyering.net>
72083
72084         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72085
72086         2006-01-17  Jim Meyering  <jim@meyering.net>
72087
72088         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72089
72090         2006-01-11  Jim Meyering  <jim@meyering.net>
72091
72092         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72093         Check for the lchmod function.
72094
72095 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72096
72097         Update from coreutils.
72098
72099         * lib/__fpending.h: Add copyright notice.
72100         * lib/fprintftime.h: Likewise.
72101         * lib/savedir.c: Use (C) in copyright notice.
72102         * lib/savedir.h: Likewise.
72103
72104         2006-08-15  Jim Meyering  <jim@meyering.net>
72105
72106         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72107         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72108         in support of the EXPECTED_ERRNO macro.
72109         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72110         definitions.  Instead, define the appropriate symbols and include
72111         "at-func.c".
72112         * lib/mkdirat.c (mkdirat): Likewise.
72113         * lib/fchmodat.c (fchmodat): Likewise.
72114         (ENOSYS): Remove definition.
72115         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72116         it.  Don't include "unistd--.h" -- it wasn't ever used.
72117
72118         2006-01-17  Jim Meyering  <jim@meyering.net>
72119
72120         Rewrite fts.c not to change the current working directory,
72121         by using openat, fstatat, fdopendir, etc..
72122
72123         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72124         (HAVE_OPENAT_SUPPORT): Define.
72125         [_LIBC] (fchdir): Don't undef or define; no longer used.
72126         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72127         Now, this `function' always succeeds, and consumes its file descriptor
72128         parameter -- so callers must not close such FDs.  Update callers.
72129         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72130         (diropen): Add parameter, SP.  Adjust all callers.
72131         Implement using diropen_fd, rather than open.
72132         (fts_open): Initialize new member, fts_cwd_fd.
72133         Remove fts_rft-setting code.
72134         (fts_close): Close fts_cwd_fd, if necessary.
72135         (__opendir2): Define in terms of opendir or opendirat,
72136         depending on whether the FST_NOCHDIR flag is set.
72137         (fts_build): Since fts_safe_changedir consumes its FD, and since
72138         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72139         and close the dup'd file descriptor upon failure.
72140         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72141         (fts_safe_changedir): Tweak semantics to reflect that this function
72142         now calls cwd_advance_fd and hence consumes its FD argument.
72143         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72144         [struct FTS] (fts_rft): Remove now-unused member.
72145         [struct FTS] (fts_cycle.state): Improve comment.
72146
72147         * lib/openat.c (openat_needs_fchdir): New function.
72148         * lib/openat.h (openat_needs_fchdir): Declare it.
72149
72150 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72151
72152         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72153         Problem and fix reported by Pádraig Brady in
72154         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72155
72156 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72159
72160 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72161
72162         * lib/memcoll.c (memcoll): Optimize for the common case where the
72163         arguments are bytewise equal.
72164
72165 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72166
72167         * doc/regexprops-generic.texi: Add a copyright notice.
72168
72169 2006-08-15  Bruno Haible  <bruno@clisp.org>
72170
72171         * modules/tmpdir (License): Change to LGPL.
72172
72173 2006-08-15  Bruno Haible  <bruno@clisp.org>
72174
72175         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72176         module.
72177
72178 2006-08-14  Simon Josefsson  <jas@extundo.com>
72179
72180         * config/srclist.txt: Add gnupload.
72181
72182 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72183
72184         Change copyright notice from LGPL 2 to GPL 2, since that's the
72185         standard form used in the gnulib repository.
72186         * tests/test-lock.c: Likewise.
72187         * tests/test-stdint.c: Likewise.
72188         * tests/test-tls.c: Likewise.
72189
72190         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72191         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72192         Add copyright notice.
72193
72194         * check-module: Add copyright notice.  Output a copyright
72195         notice if "--version" is specified.
72196         * modules/COPYING: New file.
72197         * tests/test-getaddrinfo.c: Add copyright notice.
72198         * tests/test-verify.c: Likewise.
72199
72200 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         Change copyright notice from LGPL 2 to GPL 2, since that's the
72203         standard form used in the gnulib repository.
72204         * lib/lock.c: LGPL -> GPL.
72205         * lib/lock.h: Likewise.
72206         * lib/strnlen1.c: Likewise.
72207         * lib/strnlen1.h: Likewise.
72208         * lib/tls.c: Likewise.
72209         * lib/tls.h: Likewise.
72210         * lib/tmpdir.c: Likewise.
72211
72212         * lib/TODO: Remove; this belongs only in coreutils.
72213
72214 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72215
72216         Add copyright notices to long-enough files that lack them, since
72217         otherwise the files aren't clearly free.  Use the same notice that
72218         getdate.texi already uses.
72219         * doc/alloca-opt.texi: Add copyright notice.
72220         * doc/alloca.texi: Likewise.
72221         * doc/ctime.texi: Likewise.
72222         * doc/functions.texi: Likewise.
72223         * doc/gcd.texi: Likewise.
72224         * doc/gnulib-tool.texi: Likewise.
72225         * doc/inet_ntoa.texi: Likewise.
72226         * doc/visibility.texi: Likewise.
72227
72228         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72229         * doc/quote.texi: Add copyright notice.
72230
72231         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72232         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72233         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72234         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72235         is now obsolete, and give a pointer to the Sun list.
72236         Add copyright notice.
72237
72238 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72239
72240         * config/srclistvars.sh: Add copyright notice.
72241
72242 2006-08-14  Eric Blake  <ebb9@byu.net>
72243
72244         Import the following change from libc:
72245
72246         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72247
72248         Upstream bug 2997.
72249         * lib/misc/error.c: Add space between program name and message if file
72250         name is missing.
72251
72252 2006-08-12  Karl Berry  <karl@gnu.org>
72253
72254         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72255         remove, these originate in gnulib now.
72256
72257 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72258
72259         * doc/Makefile (standards.info standards.html standards.dvi):
72260         Also depend on make-stds.texi.
72261
72262 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72265         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72266
72267         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72268         in wchar_t.  Problem reported by Eric Blake.
72269
72270         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72271         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72272         Also, help the compiler to keep LEN in a register.
72273
72274 2006-08-11  Eric Blake  <ebb9@byu.net>
72275
72276         * users.txt: Sort.  Add tar.
72277
72278 2006-08-11  Bruno Haible  <bruno@clisp.org>
72279
72280         * users.txt: New file.
72281
72282 2006-08-11  Bruno Haible  <bruno@clisp.org>
72283
72284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72285         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72286
72287 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72288
72289         * modules/snprintf (Depends-on): Remove minmax.
72290         (Maintainer): Add self and Bruno.
72291
72292 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72293
72294         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72295         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72296         (EOVERFLOW): Define if the system does not.
72297         Do not include "minmax.h"; it wasn't used.
72298         (snprintf): Don't assume size_t promotes to an unsigned type.
72299         Fix bug when generated string was too long for the buffer: the
72300         buffer's contents are supposed to be the initial prefix of the
72301         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72302         exceeds INT_MAX; do the check ourselves.
72303
72304         Import the following changes from libc:
72305
72306         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72307
72308         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72309         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72310         set wc to the byte which couldn't be converted.
72311         (re_string_reconstruct): Don't clear valid_raw_len before calling
72312         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72313         tip_context using re_string_context_at.
72314
72315         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72316
72317         * lib/posix/regex.h: g++ still cannot handled [restrict].
72318
72319         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72320
72321         * lib/posix/regex.h: Remove special handling for VMS.
72322
72323 2006-08-10  Jim Meyering  <jim@meyering.net>
72324
72325         * modules/same-inode: New module.
72326         * modules/dev-ino: New module.
72327         * modules/cycle-check: Depend on these modules, rather than simply
72328         including their .h files.
72329         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72330         required via m4/cycle-check.m4.
72331         * modules/same: Depend on new same-inode module, rather than
72332         including same-inode.h.
72333         * modules/chdir-safer: New file.
72334
72335         * modules/chown (Depends-on): Add stat-macros.
72336
72337 2006-08-10  Jim Meyering  <jim@meyering.net>
72338
72339         * m4/cycle-check.m4: New file.
72340         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72341         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72342
72343 2006-08-10  Eric Blake  <ebb9@byu.net>
72344
72345         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72346         in from original proposal.
72347
72348 2006-08-10  Eric Blake  <ebb9@byu.net>
72349         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72350
72351         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72352         namespace.
72353
72354 2006-08-10  Bruno Haible  <bruno@clisp.org>
72355
72356         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72357         as well.
72358
72359 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72360
72361         Sync from coreutils.
72362
72363         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72364
72365         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72366         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72367
72368 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72369
72370         * modules/restrict: Remove; no longer needed now that we assume
72371         Autoconf 2.59 or later.
72372         * MODULES.html.sh: Remove 'restrict'.
72373         * modules/argp (Depends-on): Remove 'restrict'.
72374         * modules/base64 (Depends-on): Likewise.
72375         * modules/gc (Depends-on): Likewise.
72376         * modules/getaddrinfo (Depends-on): Likewise.
72377         * modules/glob (Depends-on): Likewise.
72378         * modules/inet_ntop (Depends-on): Likewise.
72379         * modules/inet_pton (Depends-on): Likewise.
72380         * modules/memxor (Depends-on): Likewise.
72381         * modules/regex (Depends-on): Likewise.
72382         * modules/strtok_r (Depends-on): Likewise.
72383         * modules/time_r (Depends-on): Likewise.
72384
72385 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72388         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72389         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72390         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72391         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72392         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72393         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72394         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72395
72396         Merge from coreutils.
72397         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72398         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72399         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72400         * m4/time_r.m4 (gl_TIME_R): Likewise.
72401
72402 2006-08-09  Karl Berry  <karl@gnu.org>
72403
72404         * config/srclist.txt: no more gettext-tools, per Bruno.
72405
72406 2006-08-08  Eric Blake  <ebb9@byu.net>
72407
72408         * modules/verror: New module.
72409         * MODULES.html.sh: Document it.
72410
72411 2006-08-08  Eric Blake  <ebb9@byu.net>
72412
72413         * lib/verror.h, lib/verror.c: New files.
72414
72415 2006-08-08  Eric Blake  <ebb9@byu.net>
72416
72417         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72418         verror_at_line output complies with GNU Coding Standards even when
72419         file is NULL.
72420
72421 2006-08-07  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72424         versions of AIX.
72425         Reported by Ralf Wildenhues.
72426
72427 2006-08-07  Bruno Haible  <bruno@clisp.org>
72428
72429         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72430         in an AC_DEFUN. Needed so that the autoconf snippets can use
72431         AC_REQUIRE.
72432
72433 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72434
72435         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72436         Initialize pkgdata_DATA.
72437         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72438         overriding it.
72439
72440 2006-08-06  Eric Blake  <ebb9@byu.net>
72441
72442         * lib/error.h: Fold in some upstream changes from glibc.
72443         * lib/error.c: Likewise.
72444
72445 2006-08-04  Bruno Haible  <bruno@clisp.org>
72446
72447         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72448         Make the mostlyclean-local rule depend on mostlyclean-generic.
72449         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72450
72451 2006-07-31  Bruno Haible  <bruno@clisp.org>
72452
72453         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72454         <stdlib.h>, <string.h>.
72455
72456 2006-07-30  Bruno Haible  <bruno@clisp.org>
72457
72458         * modules/readlink (License): Change to LGPL.
72459
72460 2006-07-30  Bruno Haible  <bruno@clisp.org>
72461
72462         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72463         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72464         set PKGDATADIR to point to it.
72465
72466 2006-07-30  Bruno Haible  <bruno@clisp.org>
72467
72468         * modules/csharpexec (configure.ac): Comment out macro invocation.
72469         * modules/javaexec (configure.ac): Likewise.
72470         * modules/javacomp-script (configure.ac): Likewise.
72471
72472         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72473
72474 2006-07-30  Bruno Haible  <bruno@clisp.org>
72475
72476         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72477         linked-list.
72478
72479 2006-07-30  Bruno Haible  <bruno@clisp.org>
72480
72481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72482
72483 2006-07-30  Bruno Haible  <bruno@clisp.org>
72484
72485         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72486         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72487         get removed.
72488
72489 2006-07-29  Bruno Haible  <bruno@clisp.org>
72490
72491         Make it possible for gnulib-tool to work with locally modified or
72492         augmented gnulib repositories.
72493         * gnulib-tool (func_usage): Document --local-dir option.
72494         (local_gnulib_dir): New variable.
72495         Handle --local-dir option.
72496         (func_lookup_file): New function.
72497         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72498         (func_get_description, func_get_filelist, func_get_description,
72499         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72500         func_get_automake_snippet, func_get_include_directive,
72501         func_get_license, func_get_maintainer): Use func_lookup_file.
72502         (func_import, func_create_testdir): Use func_lookup_file.
72503
72504 2006-07-29  Bruno Haible  <bruno@clisp.org>
72505
72506         * modules/setenv (Depends-on): Add unistd.
72507
72508 2006-07-29  Bruno Haible  <bruno@clisp.org>
72509
72510         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72511
72512 2006-07-29  Bruno Haible  <bruno@clisp.org>
72513
72514         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72515
72516 2006-07-29  Bruno Haible  <bruno@clisp.org>
72517
72518         * gnulib-tool (import, update): If there is no Makefile.am, look at
72519         aclocal.m4, instead of bailing out.
72520
72521 2006-07-29  Bruno Haible  <bruno@clisp.org>
72522
72523         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72524         Categorize the options by when they are useful.
72525
72526 2006-07-29  Bruno Haible  <bruno@clisp.org>
72527
72528         * gnulib-tool (func_usage): Document option --no-libtool.
72529         Handle option --no-libtool.
72530         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72531         for changed semantics of $libtool variable.
72532         (func_import): Likewise. If libtool is not used, show this through
72533         an option --no-libtool.
72534         (func_create_testdir): Update.
72535
72536 2006-07-29  Bruno Haible  <bruno@clisp.org>
72537
72538         * gnulib-tool (func_import): Extend error message about missing
72539         --doc-base.
72540
72541 2006-07-29  Bruno Haible  <bruno@clisp.org>
72542
72543         * gnulib-tool (func_import): Don't create the $docbase directory if
72544         there is no file to store there.
72545
72546 2006-07-29  Bruno Haible  <bruno@clisp.org>
72547
72548         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72549         relevant, look for configure.ac there, not in the current directory.
72550         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72551
72552 2006-07-29  Bruno Haible  <bruno@clisp.org>
72553
72554         * gnulib-tool (SORT): New variable.
72555         (func_usage): Undocument --assume-autoconf option.
72556         Remove --assume-autoconf option handling.
72557         (autoconf_minversion): Determine from the contents of configure.ac.
72558         (func_import): Remove autoconf_minversion handling.
72559         Suggested by Eric Blake.
72560
72561 2006-07-29  Bruno Haible  <bruno@clisp.org>
72562
72563         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72564
72565 2006-07-29  Bruno Haible  <bruno@clisp.org>
72566
72567         * config/srclist.txt (*setenv.[ch]): Remove rules.
72568
72569 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72570
72571         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72572
72573 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72574
72575         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72576         arpa/inet.h.
72577
72578 2006-07-28  Simon Josefsson  <jas@extundo.com>
72579
72580         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72581         * modules/inet_pton (Depends-on): Likewise.
72582
72583 2006-07-28  Simon Josefsson  <jas@extundo.com>
72584
72585         * m4/netinet_in_h.m4: New file.
72586
72587 2006-07-28  Simon Josefsson  <jas@extundo.com>
72588
72589         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72590         #include's.
72591
72592 2006-07-28  Simon Josefsson  <jas@extundo.com>
72593
72594         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72595         #include's.
72596
72597 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72598
72599         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72600         setgid on directories only if they set these bits.
72601         * lib/modechange.h: Remove obsolete comment about masks.
72602
72603 2006-07-28  Eric Blake  <ebb9@byu.net>
72604
72605         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72606         macro expansion.
72607
72608 2006-07-28  Bruno Haible  <bruno@clisp.org>
72609
72610         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72611
72612 2006-07-28  Bruno Haible  <bruno@clisp.org>
72613
72614         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72615
72616 2006-07-28  Bruno Haible  <bruno@clisp.org>
72617
72618         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72619         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72620         Define fallbacks.
72621         Avoids link error on FreeBSD 4.x.
72622         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72623
72624         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72625         encoding.
72626         * lib/mbswidth.c (iswcntrl): Likewise.
72627
72628 2006-07-27  Bruno Haible  <bruno@clisp.org>
72629
72630         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72631         test.
72632
72633 2006-07-27  Bruno Haible  <bruno@clisp.org>
72634
72635         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72636         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72637         defined.
72638
72639 2006-07-26  Eric Blake  <ebb9@byu.net>
72640
72641         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72642
72643 2006-07-26  Eric Blake  <ebb9@byu.net>
72644
72645         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72646         like mingw that lack mkstemp.
72647         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72648         avoid compilation warning on mingw.
72649
72650 2006-07-26  Bruno Haible  <bruno@clisp.org>
72651
72652         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72653         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72654         INT_FAST*_MIN, INTPTR_MIN.
72655
72656 2006-07-25  Bruno Haible  <bruno@clisp.org>
72657
72658         * modules/version-etc (Depends-on): Add stdarg.
72659
72660 2006-07-25  Bruno Haible  <bruno@clisp.org>
72661
72662         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72663         complex commands.
72664
72665 2006-07-25  Bruno Haible  <bruno@clisp.org>
72666
72667         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72668         defined in <stdarg.h> or config.h.
72669
72670 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72671
72672         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72673         (gl_STDIO_SAFER): Remove.
72674
72675 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72676
72677         * MODULES.html.sh (File stream based Input/Output):
72678         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72679         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72680         * modules/fopen-safer, modules/tmpfile-safer: New files.
72681         * modules/stdio-safer: Remove.
72682
72683 2006-07-24  Bruno Haible  <bruno@clisp.org>
72684
72685         * modules/tmpdir: New file.
72686         * MODULES.html.sh (File system functions): Add it.
72687
72688 2006-07-24  Bruno Haible  <bruno@clisp.org>
72689
72690         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72691         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72692
72693 2006-07-24  Bruno Haible  <bruno@clisp.org>
72694
72695         * modules/clean-temp: New file.
72696
72697 2006-07-24  Bruno Haible  <bruno@clisp.org>
72698
72699         * m4/tmpdir.m4: New file, from GNU gettext.
72700
72701 2006-07-24  Bruno Haible  <bruno@clisp.org>
72702
72703         * lib/tmpdir.h: New file, from GNU gettext.
72704         * lib/tmpdir.c: New file, from GNU gettext.
72705
72706 2006-07-24  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/clean-temp.h: New file, from GNU gettext.
72709         * lib/clean-temp.c: New file, from GNU gettext.
72710
72711 2006-07-23  Eric Blake  <ebb9@byu.net>
72712
72713         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72714         (Depends-on): Add binary-io.
72715
72716 2006-07-23  Eric Blake  <ebb9@byu.net>
72717
72718         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72719
72720 2006-07-23  Eric Blake  <ebb9@byu.net>
72721
72722         * lib/tmpfile-safer.c: New file.
72723         * lib/stdio-safer.h (fopen_safer): Add prototype.
72724         * lib/stdio--.h (tmpfile): Make safer.
72725
72726 2006-07-23  Bruno Haible  <bruno@clisp.org>
72727
72728         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72729         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72730         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72731         gl_linked_remove_at): Use it.
72732
72733 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72734         and Simon Josefsson <jas@extundo.com>
72735
72736         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72737
72738         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72739
72740 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * modules/close-stream: New file.
72743         * modules/closeout (Description): Make it clear that it exits
72744         with a diagnostic on error.
72745         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72746         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72747
72748 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * m4/close-stream.m4: New file.
72751
72752 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72753
72754         * lib/close-stream.c, lib/close-stream.h: New files.
72755
72756 2006-07-22  Bruno Haible  <bruno@clisp.org>
72757
72758         Merge from GNU gettext 0.15.
72759
72760         2006-05-01  Bruno Haible  <bruno@clisp.org>
72761
72762                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72763
72764         2006-07-22  Bruno Haible  <bruno@clisp.org>
72765
72766                 * modules/javaversion: New file.
72767                 * MODULES.html.sh (Java): Add javaversion.
72768
72769         2006-03-12  Bruno Haible  <bruno@clisp.org>
72770
72771                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72772
72773         2005-12-04  Bruno Haible  <bruno@clisp.org>
72774
72775                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72776                 (untested).
72777
72778         2006-06-21  Bruno Haible  <bruno@clisp.org>
72779
72780                 Avoid warnings from recent versions of mcs.
72781                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72782                 -o, -L, -r any more. Use options documented since mcs-1.0
72783                 instead. Similarly for -g.
72784
72785         2005-12-04  Bruno Haible  <bruno@clisp.org>
72786
72787                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72788                 .resources, not .resource.
72789
72790         2005-07-09  Bruno Haible  <bruno@clisp.org>
72791
72792                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72793                 add a .dll suffix.
72794                 Reported by Mark Junker <mjscod@gmx.de>.
72795
72796         2006-07-22  Bruno Haible  <bruno@clisp.org>
72797
72798                 * modules/gettext: Upgrade to gettext-0.15.
72799                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72800                 m4/visibility.m4.
72801                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72802
72803 2006-07-22  Bruno Haible  <bruno@clisp.org>
72804
72805         Merge from GNU gettext 0.15.
72806
72807         2006-03-25  Bruno Haible  <bruno@clisp.org>
72808
72809                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72810
72811         2006-07-21  Bruno Haible  <bruno@clisp.org>
72812
72813                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72814                 "1.1".
72815
72816         2006-05-09  Bruno Haible  <bruno@clisp.org>
72817
72818                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72819                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72820                 for the conftestver execution.
72821
72822         2006-05-01  Bruno Haible  <bruno@clisp.org>
72823
72824                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72825                 optional target-version argument. Verify that the compiler
72826                 groks source of the specified source-version, or add -source
72827                 option as necessary. Verify that the compiler produces
72828                 bytecode in the specified target-version, or add -target and
72829                 -source options as necessary. Make the result of the test
72830                 available as variable CONF_JAVAC. Also log error output in
72831                 config.log.
72832
72833         2006-03-11  Bruno Haible  <bruno@clisp.org>
72834
72835                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72836
72837         2006-05-09  Bruno Haible  <bruno@clisp.org>
72838
72839                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72840                 CLASSPATH_SEPARATOR to a semicolon.
72841
72842         2006-03-12  Bruno Haible  <bruno@clisp.org>
72843
72844                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72845                 available as variable CONF_JAVA, for subsequent autoconf
72846                 tests. Also log error output in config.log.
72847
72848         2006-07-19  Bruno Haible  <bruno@clisp.org>
72849
72850                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72851                 that getline works on glibc2 systems. Needed to avoid trouble
72852                 in relocatable.c.
72853                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72854
72855         2005-12-04  Bruno Haible  <bruno@clisp.org>
72856
72857                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72858                 launcher (untested).
72859
72860         2005-12-04  Bruno Haible  <bruno@clisp.org>
72861
72862                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72863
72864         2006-07-22  Bruno Haible  <bruno@clisp.org>
72865
72866                 * gettext.m4: Update from GNU gettext-0.15.
72867                 * nls.m4: Likewise.
72868                 * po.m4: Likewise.
72869                 * inttypes-pri.m4: Likewise.
72870                 * inttypes-h.m4: Renamed from inttypes.m4.
72871                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72872
72873 2006-07-22  Bruno Haible  <bruno@clisp.org>
72874
72875         Merge from GNU gettext 0.15.
72876
72877         2005-07-05  Bruno Haible  <bruno@clisp.org>
72878
72879                 * printf-args.c (printf_fetchargs): Work around broken
72880                 definition of wint_t on mingw.
72881
72882         2005-02-12  Bruno Haible  <bruno@clisp.org>
72883
72884                 * xallocsa.h: Add extern "C" for C++.
72885
72886         2006-05-17  Bruno Haible  <bruno@clisp.org>
72887
72888                 Cygwin portability.
72889                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72890
72891         2006-04-30  Bruno Haible  <bruno@clisp.org>
72892
72893                 * progreloc.c: Include <mach-o/dyld.h> if available.
72894                 (find_executable): Use _NSGetExecutablePath when possible.
72895
72896         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72897
72898                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72899                 function.
72900
72901         2005-12-29  Bruno Haible  <bruno@clisp.org>
72902
72903                 * progreloc.c (set_program_name_and_installdir): Fix
72904                 compilation error.
72905
72906         2005-12-04  Bruno Haible  <bruno@clisp.org>
72907
72908                 Cygwin portability.
72909                 * progreloc.c: Include <windows.h> also on Cygwin.
72910                 (find_executable): Add support for Cygwin.
72911                 (set_program_name_and_installdir): Handle also platforms with
72912                 nonempty EXEEXT.
72913
72914         2006-07-11  Bruno Haible  <bruno@clisp.org>
72915
72916                 * javacomp.c: Fix a comment.
72917                 Reported by Jim Meyering.
72918
72919         2006-04-30  Bruno Haible  <bruno@clisp.org>
72920
72921                 * javacomp.h (compile_java_class): Add source_version,
72922                 target_version arguments.
72923                 * javacomp.c: Rewritten to choose only a compiler that
72924                 respects the specified source_version and target_version.
72925
72926         2006-06-27  Bruno Haible  <bruno@clisp.org>
72927
72928                 Assume correct S_ISDIR macro.
72929                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72930
72931         2006-07-22  Bruno Haible  <bruno@clisp.org>
72932
72933                 * javaversion.h: New file, from GNU gettext.
72934                 * javaversion.c: New file, from GNU gettext.
72935                 * javaversion.java: New file, from GNU gettext.
72936                 * javaversion.class: New file, from GNU gettext.
72937
72938         2006-05-17  Bruno Haible  <bruno@clisp.org>
72939
72940                 Cygwin portability.
72941                 * javaexec.c (execute_java_class): Test for jview program
72942                 also on Cygwin.
72943
72944         2006-04-09  Bruno Haible  <bruno@clisp.org>
72945
72946                 * fatal-signal.c: Don't include string.h.
72947                 (at_fatal_signal): Use a copying loop instead of memcpy.
72948
72949         2005-12-04  Bruno Haible  <bruno@clisp.org>
72950
72951                 * csharpexec.c: Add support for 'clix' launcher (untested).
72952                 (execute_csharp_using_sscli): New function.
72953                 (execute_csharp_program): Call it.
72954
72955         2006-06-21  Bruno Haible  <bruno@clisp.org>
72956
72957                 Avoid warnings from recent versions of mcs.
72958                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72959                 -o, -L, -r any more. Use options documented since mcs-1.0
72960                 instead. Similarly for -g.
72961
72962         2005-07-09  Bruno Haible  <bruno@clisp.org>
72963
72964                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72965                 add a .dll suffix.
72966                 Reported by Mark Junker <mjscod@gmx.de>.
72967
72968         2006-06-17  Bruno Haible  <bruno@clisp.org>
72969
72970                 * config.charset: Update for NetBSD 3.0.
72971
72972         2006-05-17  Bruno Haible  <bruno@clisp.org>
72973
72974                 Cygwin portability.
72975                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72976
72977         2006-05-16  Bruno Haible  <bruno@clisp.org>
72978
72979                 * localcharset.c [CYGWIN]: Include <windows.h>.
72980                 (get_charset_aliases): For Cygwin, return the same CPxxx
72981                 aliases list as under WIN32.
72982                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72983                 the environment variables. Fall back to GetACP().
72984
72985         2006-04-05  Bruno Haible  <bruno@clisp.org>
72986
72987                 * config.charset: Update Juan Manuel Guerrero's address.
72988
72989         2005-02-12  Bruno Haible  <bruno@clisp.org>
72990
72991                 * allocsa.h: Add extern "C" for C++.
72992
72993         2005-02-10  Bruno Haible  <bruno@clisp.org>
72994
72995                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72996                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72997
72998         2006-07-22  Bruno Haible  <bruno@clisp.org>
72999
73000                 * gettext.h: Update to GNU gettext-0.15.
73001
73002 2006-07-22  Bruno Haible  <bruno@clisp.org>
73003
73004         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
73005         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
73006         lib-prefix.m4, longdouble.m4, ssize_t.m4.
73007
73008 2006-07-21  Eric Blake  <ebb9@byu.net>
73009
73010         * modules/stdlib-safer: New file.
73011         * MODULES.html.sh (File stream based Input/Output): Add
73012         stdlib-safer.
73013
73014 2006-07-21  Eric Blake  <ebb9@byu.net>
73015
73016         * lib/stdlib-safer.h: New file from coreutils, required by
73017         stdlib--.h.
73018
73019 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73020
73021         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73022
73023 2006-07-20  Bruno Haible  <bruno@clisp.org>
73024
73025         * gnulib-tool: Recognize new option --assume-autoconf.
73026         (autoconf_minversion): New variable.
73027         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73028
73029 2006-07-20  Bruno Haible  <bruno@clisp.org>
73030
73031         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73032
73033 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73034
73035         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73036         Reindent and repaginate.
73037
73038 2006-07-19  Derek Price  <derek@ximbiot.com>
73039
73040         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73041         Correct grammar.
73042
73043 2006-07-17  Bruno Haible  <bruno@clisp.org>
73044
73045         * modules/list: New file.
73046         * modules/array-list: New file.
73047         * modules/carray-list, modules/carray-list-tests: New files.
73048         * modules/linked-list, modules/linked-list-tests: New files.
73049         * modules/avltree-list, modules/avltree-list-tests: New files.
73050         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73051         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73052         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73053         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73054         * modules/oset: New file.
73055         * modules/array-oset: New file.
73056         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73057         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73058         * tests/test-carray_list.c: New file.
73059         * tests/test-linked_list.c: New file.
73060         * tests/test-avltree_list.c: New file.
73061         * tests/test-rbtree_list.c: New file.
73062         * tests/test-linkedhash_list.c: New file.
73063         * tests/test-avltreehash_list.c: New file.
73064         * tests/test-rbtreehash_list.c: New file.
73065         * tests/test-avltree_oset.c: New file.
73066         * tests/test-rbtree_oset.c: New file.
73067         * MODULES.html.sh (Container data structures): New section.
73068
73069 2006-07-17  Bruno Haible  <bruno@clisp.org>
73070
73071         * m4/gl_list.m4: New file.
73072
73073 2006-07-17  Bruno Haible  <bruno@clisp.org>
73074
73075         * lib/gl_list.h: New file.
73076         * lib/gl_list.c: New file.
73077         * lib/gl_array_list.h: New file.
73078         * lib/gl_array_list.c: New file.
73079         * lib/gl_carray_list.h: New file.
73080         * lib/gl_carray_list.c: New file.
73081         * lib/gl_linked_list.h: New file.
73082         * lib/gl_linked_list.c: New file.
73083         * lib/gl_anylinked_list1.h: New file.
73084         * lib/gl_anylinked_list2.h: New file.
73085         * lib/gl_avltree_list.h: New file.
73086         * lib/gl_avltree_list.c: New file.
73087         * lib/gl_anyavltree_list1.h: New file.
73088         * lib/gl_anyavltree_list2.h: New file.
73089         * lib/gl_rbtree_list.h: New file.
73090         * lib/gl_rbtree_list.c: New file.
73091         * lib/gl_anyrbtree_list1.h: New file.
73092         * lib/gl_anyrbtree_list2.h: New file.
73093         * lib/gl_anytree_list1.h: New file.
73094         * lib/gl_anytree_list2.h: New file.
73095         * lib/gl_linkedhash_list.h: New file.
73096         * lib/gl_linkedhash_list.c: New file.
73097         * lib/gl_anyhash_list1.h: New file.
73098         * lib/gl_anyhash_list2.h: New file.
73099         * lib/gl_avltreehash_list.h: New file.
73100         * lib/gl_avltreehash_list.c: New file.
73101         * lib/gl_rbtreehash_list.h: New file.
73102         * lib/gl_rbtreehash_list.c: New file.
73103         * lib/gl_anytreehash_list1.h: New file.
73104         * lib/gl_anytreehash_list2.h: New file.
73105
73106         * lib/gl_oset.h: New file.
73107         * lib/gl_oset.c: New file.
73108         * lib/gl_array_oset.h: New file.
73109         * lib/gl_array_oset.c: New file.
73110         * lib/gl_avltree_oset.h: New file.
73111         * lib/gl_avltree_oset.c: New file.
73112         * lib/gl_rbtree_oset.h: New file.
73113         * lib/gl_rbtree_oset.c: New file.
73114         * lib/gl_anytree_oset.h: New file.
73115
73116 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73117
73118         * m4/mkancesdirs.m4: New file.
73119         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73120         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73121         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73122         it.
73123
73124 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73125
73126         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73127         * lib/mkancesdirs.h: New files.
73128         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73129         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73130         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73131         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73132         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73133         callers changed.  Revamp internals significantly, by not
73134         attempting to create directories that are temporarily more
73135         permissive than the final results.  Do not attempt to use
73136         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73137         This removes some race conditions, fixes some bugs, and simplifies
73138         things.  Use new dirchownmod function to do owner and mode changes.
73139         * lib/mkdir-p.h: Likewise.
73140         * lib/modechange.c (octal_to_mode): New function.
73141         (struct mode_change): New member mentioned.
73142         (make_node_op_equals): New arg mentioned.  All callers changed.
73143         (mode_compile): Keep track of which mode bits the user has explicitly
73144         mentioned.
73145         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73146         New arg PMODE_BITS, to keep track of which mode bits the user
73147         mentioned; it treats S_ISUID and S_ISGID speciall.
73148         All callers changed.
73149         * lib/modechange.h: Likewise.
73150
73151 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73152
73153         * MODULES.html.sh: Add mkancestors.
73154         * modules/mkancesdirs: New module.
73155         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73156         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73157         The chdir-safer and afs files are now orphans; I'll remove them
73158         unless someone speaks up.
73159         Add lib/dirchownmod.c, lib/dirchownmod.h.
73160         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73161         Add lchown, mkancesdirs.
73162         (Maintainer): Add self.
73163
73164 2006-07-15  Karl Berry  <karl@gnu.org>
73165
73166         * gnulib-tool: help message wording/arrangement.
73167
73168 2006-07-14  Simon Josefsson  <jas@extundo.com>
73169
73170         * doc/gnulib.texi (Libtool and Windows): New section.
73171
73172 2006-07-12  Simon Josefsson  <jas@extundo.com>
73173
73174         * modules/gendocs (License): Fix license, approved by Karl.
73175
73176 2006-07-12  Eric Blake  <ebb9@byu.net>
73177
73178         * MODULES.html.sh: Add gendocs.
73179
73180 2006-07-11  Eric Blake  <ebb9@byu.net>
73181
73182         * modules/fdl: New module, to install doc/fdl.texi.
73183         * MODULES.html.sh: Add new section for documentation modules.
73184         * gnulib-tool: Avoid space-tab.
73185         (--doc-base): New option, to manage files from doc.
73186
73187 2006-07-11  Eric Blake  <ebb9@byu.net>
73188
73189         * m4/absolute-header.m4: Fix comments to match recent change.
73190
73191 2006-07-11  Eric Blake  <ebb9@byu.net>
73192
73193         * gnulib-tool: List --doc-base before --tests-base.
73194
73195 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73196
73197         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73198
73199 2006-07-11  Bruno Haible  <bruno@clisp.org>
73200
73201         * README: Mention where to put documentation.
73202
73203 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73204
73205         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73206
73207 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73208
73209         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73210         to stdint.m4.
73211
73212 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73213
73214         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73215         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73216         "no/such/file/stdint.h" when there is no such file, so that
73217         the resulting C code can be parsed by dodgy compilers.
73218         Problems reported by Bob Proulx.
73219
73220 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73221
73222         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73223         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73224         macros into the GNU _D_EXACT_NAMLEN.
73225         * lib/savedir.c:  Likewise.
73226         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73227
73228 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73229         and Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73232         * m4/savedir.m4:
73233         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73234         macros into the GNU _D_EXACT_NAMLEN.
73235
73236 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73237
73238         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73239         around the absolute name, to work around a problem with the HP-UX
73240         11.23 native C compiler, reported by Bob Proulx.
73241
73242 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73243
73244         * doc/maintain.texi, make-stds.texi: Sync from
73245         <http://savannah.gnu.org/projects/gnustandards>.
73246
73247 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73248
73249         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73250
73251 2006-07-09  Jim Meyering  <jim@meyering.net>
73252
73253         * m4/glob.m4: Remove a doubled word in a comment.
73254
73255 2006-07-09  Jim Meyering  <jim@meyering.net>
73256
73257         * lib/argp-pv.c: Remove a doubled word in a comment.
73258         * lib/check-version.c (check_version): Likewise.
73259         * lib/javacomp.c (compile_java_class): Likewise.
73260
73261 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73264         for the benefit of people using Autoconf 2.60.  If you want to
73265         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73266         (or m4/onceonly.m4, if pre-2.57) manually.
73267
73268 2006-07-08  Jim Meyering  <jim@meyering.net>
73269
73270         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73271         comment.
73272         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73273         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73274         comment.
73275
73276 2006-07-08  Jim Meyering  <jim@meyering.net>
73277
73278         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73279
73280 2006-07-07  Simon Josefsson  <jas@extundo.com>
73281
73282         * tests/test-crc.c: Change expected crc value, the test vector
73283         were probably computed using the old broken crc.c?
73284
73285 2006-07-06  Simon Josefsson  <jas@extundo.com>
73286
73287         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73288         now the canonical place for the M4 file).
73289
73290         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73291         from the sys_socket dependency now.
73292
73293         * modules/inet_pton (Files): Ditto.
73294
73295         * modules/inet_ntop (Files): Ditto.
73296
73297 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73298
73299         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73300         not gl_PREREQ_GETUSERSHELL.
73301
73302 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73303
73304         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73305         with only one argument, for Autoconf 2.60.
73306         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73307         expand to nothing, so add a shell command to avoid syntax error.
73308         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73309
73310 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73311
73312         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73313
73314 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73315
73316         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73317         no longer needed.  Check for isblank decl.
73318         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73319         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73320         of existence.
73321
73322 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * lib/getloadavg.c: Use __VMS, not VMS.
73325         * lib/getopt.c: Likewise.
73326         * lib/getpagesize.h: Likewise.
73327         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73328         and probably does not work.
73329
73330 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73331
73332         * lib/.cppi-disable: Add wcwidth.
73333         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73334         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73335         (ISGRAPH): Remove.  All uses changed to isgraph.
73336         (FOLD) [!defined _LIBC]: Remove special case.
73337         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73338         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73339         HAVE_ISBLANK.
73340         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73341         case.
73342
73343 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73344
73345         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73346         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73347         brackets.  Other minor changes to suppress some compiler
73348         warnings.
73349
73350 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73351         and Paul Eggert  <eggert@cs.ucla.edu>
73352
73353         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73354         of invoking obsolescent AC_HEADER_DIRENT macro.
73355         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73356         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73357         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73358         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73359         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73360         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73361         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73362         * m4/readdir.m4: Remove; no longer needed.
73363
73364 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73365         and Paul Eggert  <eggert@cs.ucla.edu>
73366
73367         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73368         Don't worry about this obsolete case any more.
73369         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73370         directories.
73371         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73372         worry about this obsolete case any more.
73373         * lib/fts.c: Likewise.
73374         * lib/getcwd.c: Likewise.
73375         * lib/glob.h: Likewise.
73376         * lib/savedir.c: Likewise.
73377
73378 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73379
73380         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73381         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73382         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73383         needed.
73384         All uses removed.
73385         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73386         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73387         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73388         needed.
73389         * m4/getdate.m4 (gl_GETDATE): Likewise.
73390         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73391         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73392         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73393         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73394         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73395         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73396         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73397         needed.
73398
73399 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73400
73401         * lib/memcasecmp.c: Include <limits.h>.
73402         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73403         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73404         Don't assume isdigit succeeds only on '0' through '9'.
73405
73406 2006-07-05  Eric Blake  <ebb9@byu.net>
73407
73408         * modules/getaddrinfo (Depends-on): Add snprintf.
73409
73410 2006-07-05  Eric Blake  <ebb9@byu.net>
73411
73412         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73413         to avoid 'header present but could not be compiled' on cygwin.
73414
73415 2006-07-05  Eric Blake  <ebb9@byu.net>
73416
73417         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73418         missing from netdb.h.
73419         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73420
73421 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73422
73423         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73424         no longer needed.
73425         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73426         * m4/getdate.m4 (gl_GETDATE): Likewise.
73427         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73428         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73429         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73430         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73431         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73432
73433 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73434
73435         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73436         All uses of is_space replaced by isspace.
73437         * lib/exit.h: Don't talk about STDC_HEADERS.
73438         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73439         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73440         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73441         replaced by isprint etc.
73442         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73443         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73444         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73445         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73446         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73447         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73448
73449 2006-07-05  Bruno Haible  <bruno@clisp.org>
73450
73451         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73452         the function exists, before testing against AIX.
73453         Reported by Martin Lambers <marlam@marlam.de>.
73454
73455 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73456
73457         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73458         From Mark D. Baushke.
73459
73460 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73461
73462         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73463         to the absolute name, not just one, to bypass Sun C 5.8's
73464         "warning: #include of /usr/include/... may be non-portable".
73465
73466 2006-07-04  Eric Blake  <ebb9@byu.net>
73467
73468         * modules/dirname-tests: New test module.
73469         * tests/test-dirname.c: New file, replacing dirname.c
73470         TEST_DIRNAME section that was recently deleted.
73471
73472 2006-07-04  Bruno Haible  <bruno@clisp.org>
73473
73474         Assume ANSI C header files and <ctype.h> functions.
73475         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73476         (mbsnwidth): Use isprint, iscntrl instead.
73477
73478 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         Merge from coreutils.
73481         * MODULES.html.sh: Add xstrtold.
73482         * modules/xstrtold: New file.
73483         * modules/cycle-check (Files): Add lib/same-inode.h.
73484         * modules/dirname (Files): Add m4/double-slash-root.m4.
73485         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73486         * modules/mkdir-p (Files): Add lib/same-inode.h.
73487         * modules/same (Files): Add lib/same-inode.h.
73488
73489 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73490
73491         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73492         This is to keep the terminology clean; POSIX talks about
73493         "absolute pathnames", not "full pathnames", but the GNU
73494         Coding Standards say to use "path" for something else;
73495         so use "absolute" to keep both sides happy.
73496         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73497         Set gl_absolute_header, not gl_full_header_path.
73498         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73499         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73500         All uses changed.
73501
73502         Merge from coreutils.
73503
73504         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73505
73506         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73507         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73508         want to require the building of c-strtod.o.
73509         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73510         needs -lm directly.
73511         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73512
73513         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73514
73515         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73516         --as-needed option if available.  Problem reported by Albert Chin in
73517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73518         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73519         cc merely issues a bunch of annoying warnings for --as-needed
73520         (this problem was reported by Bob Proulx).  Also, try linking with
73521         -lm to detect a bug in binutils 2.16 (this problem was reported
73522         by Ralf Wildenhues).
73523
73524         2006-06-18  Jim Meyering  <jim@meyering.net>
73525
73526         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73527         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73528         macro.
73529         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73530         also check for glibc-2.4's abort-inducing bug.
73531
73532         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73533         Low-probability clean-up should be to use rmdir to get rid of
73534         the just-created directory, not unlink.
73535
73536         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73537         configure fail, and request a bug report to inform us about it.
73538         Add a comment that, barring reports to the contrary, in 2007 we'll
73539         assume ftruncate is universally available.
73540
73541         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73542
73543         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73544
73545         2006-03-12  Jim Meyering  <jim@meyering.net>
73546
73547         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73548         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73549         * m4/same.m4 (gl_SAME): Likewise.
73550         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73551
73552         2006-03-11  Eric Blake  <ebb9@byu.net>
73553
73554         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73555         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73556         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73557         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73558
73559 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73562         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73563         reported by Mark D. Baushke, one in
73564         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73565
73566         Merge from coreutils.
73567
73568         * lib/.cppi-disable: Add stdint_.h.
73569         * lib/.cvsignore: Add stdint.h.
73570
73571         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73572
73573         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73574         both double and long double versions.
73575         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73576         * lib/xstrtold.c: New file.
73577         * lib/xstrtod.h (xstrtold): New decl.
73578
73579         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73580
73581         * lib/filemode.c (setst): Remove.
73582         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73583         (arguably) clearer, and the generated code is a bit smaller on my
73584         Debian GNU/Linux stable x86 host.
73585
73586         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73587
73588         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73589         Assume that filemode.h includes sys/types.h and sys/stat.h.
73590         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73591         (ftypelet): Reorder to put common cases first, for efficiency.
73592         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73593         to do 'M'.
73594         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73595         of 10, for compatibility with FreeBSD.  All callers changed.
73596         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73597         types that can't be deduced solely from st_mode.  First arg is now a
73598         const pointer.
73599         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73600         (strmode): Renamed from mode_string.
73601         (filemodestring): New decl.
73602         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73603         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73604         needed.
73605         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73606
73607         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73608
73609         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73610         fsusage.h now does that.  Include fsusage.h first, to test interface.
73611         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73612         at most one method (the old code could have generated decls that
73613         didn't conform to C89, not that this was ever exercised).
73614         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73615
73616         2006-03-19  Jim Meyering  <jim@meyering.net>
73617
73618         Work even in a chroot where d_ino values for entries in "/"
73619         don't match the stat.st_ino values for the same names.
73620         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73621         number, iterate through all entries again, using lstat instead.
73622         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73623         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73624
73625         * lib/getcwd.c (__getcwd): Clarify a comment.
73626         Use memcpy in place of a call to strcpy.
73627
73628         2006-03-12  Jim Meyering  <jim@meyering.net>
73629
73630         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73631         matches that of the current directory (which we're about to chdir ".."
73632         out of), then save the dev-ino of the parent, instead.
73633
73634         * lib/same-inode.h (SAME_INODE): New file/macro.
73635         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73636         Include "same-inode.h", instead.
73637         * lib/same.c: Likewise.
73638         * lib/cycle-check.h: Include "same-inode.h".
73639         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73640         * lib/cycle-check.c (SAME_INODE): Remove definition.
73641         * lib/root-dev-ino.h: Include "same-inode.h".
73642
73643         2006-03-11  Eric Blake  <ebb9@byu.net>
73644
73645         * lib/same.c (same_name): s/base_name/last_component/
73646         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73647         * lib/filenamecat.c (file_name_concat): Likewise.
73648
73649         2006-03-11  Eric Blake  <ebb9@byu.net>,
73650                     Paul Eggert  <eggert@cs.ucla.edu>
73651
73652         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73653         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73654         drive prefix.
73655         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73656         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73657         (last_component): New method.
73658         * lib/dirname.c (dir_len): Determine when drive letters need a
73659         subsequent slash.  Preserve // when it is special.
73660         (dir_name): Don't append dot when drive letter is absolute.
73661         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73662         * lib/basename.c (base_name): New semantics - malloc the result.
73663         Preserve // when it is special.  Preserve relative files that look
73664         like drive letters.
73665         (base_len): Preserve // when it is special.
73666         (last_component): New method, similar to old base_name semantics.
73667         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73668         base_name.  Strip redundant slashes from ///.
73669
73670 2006-07-03  Jim Meyering  <jim@meyering.net>
73671
73672         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73673         macro is used before the first cycle_check call.
73674
73675 2006-07-03  Eric Blake  <ebb9@byu.net>
73676
73677         * modules/dirname (Depends-on): Add xstrndup.
73678
73679 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73680
73681         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73682         test cases, so that config.log is a bit easier to follow.
73683
73684 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73687         both are 64 bits, since this seems to be the tradition, and this
73688         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73689         we ever run into a host that prefers long long to long in this
73690         case, we'll need another configure-time test.  Problem reported by
73691         Jim Meyering.
73692
73693 2006-07-02  Eric Blake  <ebb9@byu.net>
73694
73695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73696
73697 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73698
73699         * modules/inttypes (Depends-on): No longer depends on stdint.
73700         * modules/stdint (Description): Say more about assumptions.
73701         Say that the fast types might differ.  Say macros are used.
73702         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73703         (Makefile.am): Revise list of substituted symbols to match
73704         new stdint.m4.
73705         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73706         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73707         * tests/test-stdint.c (verify_same_types)
73708         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73709         the code conforms to C99/C89.
73710         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73711         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73712
73713 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73714
73715         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73716         but fix a bug, by requiring at least 64 bits.
73717         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73718         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73719         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73720         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73721
73722         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73723         changes.  Make 2.59 a prerequisite.  Check and substitute for
73724         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73725         inttypes.h.  Do not use special include files; just use the
73726         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73727         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73728         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73729         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73730         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73731         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73732         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73733         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73734         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73735         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73736         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73737         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73738         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73739         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73740         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73741         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73742         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73743         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73744         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73745         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73746         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73747         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73748         not check for things that C99 does not require, e.g., int8_t.  If
73749         a test isn't needed unless <stdint.h> isn't working, and is
73750         unlikely to be needed for any other reason, then don't do it
73751         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73752         size_t, since we assume C89 freestanding at least.  Do not check
73753         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73754         the right thing even if the types are not defined.  Instead use:
73755         (gl_STDINT_TYPE_PROPERTIES): New macro.
73756         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73757         testing whether <sys/types.h> clashes, as Autoconf does this for
73758         us now.  All uses removed.
73759         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73760         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73761         (gl_CHECK_TYPE_SAME):
73762         Remove; no longer needed.
73763         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73764         exists, since we'll return 0 anyway in that case.
73765         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73766
73767 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73770         possible collision with system files.
73771         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73772         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73773         WCHAR_MIN and WCHAR_MAX in this case.
73774         (<stddef.h>): Do not include; no longer needed.
73775         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73776         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73777         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73778         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73779         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73780         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73781         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73782         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73783         !defined(__c99))]: Include in this case too, since it's harmless
73784         now.
73785         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73786         dangerous to do so.
73787         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73788         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73789         (_STDINT_MIN, _STDINT_MAX): New macros.
73790         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73791         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73792         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73793         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73794         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73795         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73796         macros, not typedefs; this simplifies things quite a bit.
73797         Use long int for all types narrower than int64_t.
73798         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73799         Define in terms of long long int or int64_t or long int,
73800         not int64_t or int32_t.  This saves some compile-time testing.
73801         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73802         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73803         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73804         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73805         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73806         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73807         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73808         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73809         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73810         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73811         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73812         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73813         undef any previous version and define our own version, for
73814         simplicity and consistency with the new macros for types.
73815         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73816         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73817         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73818         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73819         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73820         @WINT_T_SUFFIX@ to keep things simple here.
73821         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73822         Simplify by assuming typical 8/16/32/64 host, since we're
73823         already doing that elsewhere anyway.
73824         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73825         and assume long long int is 64 bits if available.  This
73826         speeds up 'configure'.
73827
73828 2006-07-01  Eric Blake  <ebb9@byu.net>
73829
73830         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73831         Reported by Andreas Buening.
73832
73833 2006-07-01  Eric Blake  <ebb9@byu.net>
73834
73835         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73836
73837 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73838
73839         * lib/getaddrinfo.c: fixed typo
73840
73841 2006-06-29  Jim Meyering  <jim@meyering.net>
73842
73843         * modules/strftime (Maintainer): Add my name, since with the
73844         FPRINTFTIME changes strftime.c has forked from glibc.
73845
73846 2006-06-29  Eric Blake  <ebb9@byu.net>
73847
73848         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73849
73850 2006-06-29  Eric Blake  <ebb9@byu.net>
73851
73852         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73853
73854 2006-06-29  Eric Blake  <ebb9@byu.net>
73855
73856         * lib/stat_.h: New file.
73857
73858 2006-06-29  Eric Blake  <ebb9@byu.net>
73859
73860         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73861         unused static function.
73862
73863 2006-06-29  Eric Blake  <ebb9@byu.net>
73864
73865         * doc/functions.texi (Function Portability): Document missing lstat
73866         on mingw.
73867
73868 2006-06-29  Eric Blake  <ebb9@byu.net>
73869
73870         * MODULES.html.sh: Add sys_stat.
73871         * modules/sys_stat: New module.
73872         * modules/mkstemp (Depends-on): Add sys_stat.
73873
73874 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73875
73876         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73877
73878 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73879
73880         * m4/c-bs-a.m4: Removed.
73881
73882 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73883
73884         * lib/strftime.c: Assume strftime() exists.
73885
73886 2006-06-29  Derek Price  <derek@ximbiot.com>
73887
73888         * modules/c-bs-a: Removed - \a is C89.
73889         * MODULES.html.sh: Remove c-bs-a.
73890
73891 2006-06-29  Bruno Haible  <bruno@clisp.org>
73892
73893         * modules/wcwidth (License): Change to LGPL.
73894
73895 2006-06-28  Simon Josefsson  <jas@extundo.com>
73896
73897         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73898         on _WIN32.
73899
73900         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73901         getnameinfo.
73902
73903 2006-06-28  Simon Josefsson  <jas@extundo.com>
73904
73905         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73906
73907 2006-06-28  Simon Josefsson  <jas@extundo.com>
73908
73909         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73910         functions there.  It will succeed on Windows XP, but on Windows
73911         2000 and (presumably) earlier, it will fail, and use the internal
73912         re-implementation.
73913         (use_win32_p): New function.
73914         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73915         Support AI_NUMERICSERV to disable getservbyname.
73916         (getnameinfo): New function, only supports
73917         NI_NUMERICHOST|NI_NUMERICSERV for now.
73918
73919         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73920         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73921         getnameinfo.
73922
73923 2006-06-28  Eric Blake  <ebb9@byu.net>
73924
73925         * modules/wcwidth: New file.
73926         * modules/mbchar (Depends-on): Add wcwidth.
73927         * modules/mbswidth (Depends-on): Add wcwidth.
73928         * MODULES.html.sh: Add wcwidth.
73929
73930 2006-06-28  Eric Blake  <ebb9@byu.net>
73931
73932         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73934
73935 2006-06-28  Eric Blake  <ebb9@byu.net>
73936
73937         * lib/xvasprintf.h: Fix comments.
73938
73939 2006-06-28  Eric Blake  <ebb9@byu.net>
73940
73941         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73942         * lib/mbswidth.c (wcwidth): Move from here...
73943         * lib/wcwidth.h: ...to this new file.
73944
73945 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73946
73947         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73948
73949         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73950         it's obsolete.
73951         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73952
73953 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73954
73955         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73956         Autoconf 2.60 says this stuff was obsolete.
73957
73958 2006-06-28  Bruno Haible  <bruno@clisp.org>
73959
73960         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73961
73962 2006-06-28  Bruno Haible  <bruno@clisp.org>
73963
73964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73965         gt_TYPE_WCHAR_T.
73966
73967 2006-06-28  Bruno Haible  <bruno@clisp.org>
73968
73969         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73970         declaration for wcwidth.
73971         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73972
73973 2006-06-28  Bruno Haible  <bruno@clisp.org>
73974
73975         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73976         (mkdir): Define using _mkdir.
73977
73978 2006-06-28  Bruno Haible  <bruno@clisp.org>
73979
73980         * lib/getaddrinfo.h: Fix POSIX URL.
73981         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73982         _WIN32.
73983         (use_win32_p): Make static.
73984         (getaddrinfo): Reject service name if it is empty or does not consist
73985         solely of decimal digits, or if its value is > 65535.
73986         (getnameinfo): Remove useless casts.
73987
73988 2006-06-27  Simon Josefsson  <jas@extundo.com>
73989
73990         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73991         Eggert and Martin Lambers.
73992
73993 2006-06-27  Simon Josefsson  <jas@extundo.com>
73994
73995         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73996         Eggert and Martin Lambers.
73997
73998 2006-06-27  Bruno Haible  <bruno@clisp.org>
73999
74000         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
74001         result to 0, not to empty.
74002         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
74003
74004 2006-06-27  Bruno Haible  <bruno@clisp.org>
74005
74006         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
74007
74008 2006-06-26  Simon Josefsson  <jas@extundo.com>
74009
74010         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
74011         present.
74012
74013 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
74014
74015         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74016         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74017         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74018
74019 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74020
74021         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74022
74023 2006-06-26  Bruno Haible  <bruno@clisp.org>
74024
74025         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74026
74027 2006-06-26  Bruno Haible  <bruno@clisp.org>
74028
74029         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74030
74031 2006-06-26  Bruno Haible  <bruno@clisp.org>
74032
74033         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74034         SGI C compiler in pre-C99 mode.
74035         Suggested by Mark D. Baushke and Larry Jones.
74036
74037 2006-06-26  Bruno Haible  <bruno@clisp.org>
74038
74039         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74040         WCHAR_MAX.
74041         Reported by Mark D. Baushke and Larry Jones.
74042
74043 2006-06-26  Bruno Haible  <bruno@clisp.org>
74044
74045         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74046         in pre-C99 mode.
74047         Suggested by Mark D. Baushke and Larry Jones.
74048
74049 2006-06-23  Simon Josefsson  <jas@extundo.com>
74050             Bruno Haible  <bruno@clisp.org>
74051
74052         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74053         Emit mostlyclean-local rule.
74054         (func_emit_tests_Makefile_am): Likewise.
74055         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74056
74057 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74058
74059         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74060
74061 2006-06-23  Bruno Haible  <bruno@clisp.org>
74062
74063         * tests/test-stdint.c: Update to match ISO C 99 Technical
74064         Corrigendum 1.
74065
74066 2006-06-23  Bruno Haible  <bruno@clisp.org>
74067
74068         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74069
74070 2006-06-23  Bruno Haible  <bruno@clisp.org>
74071
74072         * lib/stdint_.h: Treat IRIX like OpenBSD.
74073
74074 2006-06-23  Bruno Haible  <bruno@clisp.org>
74075
74076         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74077         ISO C 99 Technical Corrigendum 1.
74078
74079 2006-06-22  Simon Josefsson  <jas@extundo.com>
74080
74081         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74082         MinGW.
74083
74084 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74085
74086         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74087         needed.  Some compiler complained about some of them.  Problem reported
74088         by Larry Jones in
74089         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74090
74091 2006-06-21  Simon Josefsson  <jas@extundo.com>
74092
74093         * tests/test-getaddrinfo.c: New file.
74094
74095         * modules/getaddrinfo-tests: New file.
74096
74097         * MODULES.html.sh: Add inet_pton.
74098
74099         * modules/inet_pton: New file.
74100
74101 2006-06-21  Simon Josefsson  <jas@extundo.com>
74102
74103         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74104         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74105         of using the (limited) gnulib implementation on Windows XP.
74106
74107         * m4/inet_pton.m4: New file.
74108
74109 2006-06-21  Simon Josefsson  <jas@extundo.com>
74110
74111         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74112         variable.
74113
74114         * lib/socket_.h: Don't define WINVER.
74115
74116         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74117         slightly modified to work in gnulib.
74118
74119 2006-06-21  Simon Josefsson  <jas@extundo.com>
74120
74121         * doc/gnulib.texi (Windows sockets): Add.
74122
74123 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74124
74125         * lib/read-file.c (fread_file): Start with buffer allocation of
74126         0 bytes rather than 1 byte; this simplifies the code.
74127         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74128         code to free buffer and save/restore errno.
74129         (internal_read_file): Remove unused local.
74130
74131 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74134         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74135         Problem reported by Denis Excoffier in
74136         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74137
74138 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74139
74140         * modules/sys_socket, modules/socklen: Include sys/types since
74141         FreeBSD 4.x's sys/socket.h needs it.
74142
74143 2006-06-19  Simon Josefsson  <jas@extundo.com>
74144
74145         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74146
74147 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74148
74149         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74150
74151 2006-06-19  Bruno Haible  <bruno@clisp.org>
74152
74153         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74154         and FULL_PATH_INTTYPES_H in angle brackets.
74155         Reported by Mark D. Baushke <mdb@gnu.org>.
74156
74157 2006-06-17  Eric Blake  <ebb9@byu.net>
74158
74159         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74160         errno.
74161
74162 2006-06-17  Bruno Haible  <bruno@clisp.org>
74163
74164         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74165         <sys/inttypes.h>.
74166
74167 2006-06-17  Bruno Haible  <bruno@clisp.org>
74168
74169         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74170         whether errno is declared. Assume <errno.h> declares errno.
74171
74172 2006-06-17  Bruno Haible  <bruno@clisp.org>
74173
74174         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74175
74176 2006-06-17  Bruno Haible  <bruno@clisp.org>
74177
74178         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74179         problem on Solaris 2.5.1.
74180
74181 2006-06-16  Eric Blake  <ebb9@byu.net>
74182
74183         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74184         * lib/unicodeio.c [!defined errno]: Likewise.
74185         * lib/strtol.c [!defined errno]: Likewise.
74186         * lib/strtod.c [!defined errno]: Likewise.
74187
74188 2006-06-15  Eric Blake  <ebb9@byu.net>
74189
74190         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74191
74192 2006-06-15  Eric Blake  <ebb9@byu.net>
74193
74194         * config/srclist.txt (ssize_t.m4): Lose sync.
74195
74196 2006-06-15  Bruno Haible  <bruno@clisp.org>
74197
74198         * modules/stdint (Files): Include m4/full-header-path.m4,
74199         m4/size_max.m4, m4/wchar_t.m4.
74200         (Makefile.am): Many more substitutions.
74201         * modules/stdint-tests: New file.
74202         * tests/test-stdint.c: New file.
74203
74204 2006-06-15  Bruno Haible  <bruno@clisp.org>
74205
74206         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74207         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74208         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74209         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74210         gl_CHECK_TYPE_SAME): New macros.
74211
74212 2006-06-15  Bruno Haible  <bruno@clisp.org>
74213
74214         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74215
74216 2006-06-15  Bruno Haible  <bruno@clisp.org>
74217
74218         * lib/stdint_.h: Rewritten to be fully auto-configured.
74219         Fixes bug on HP-UX/IA64.
74220
74221 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74222
74223         * lib/getdate.y (__attribute__): Don't define if already defined.
74224         Problem reported by Larry Jones.
74225         * lib/utimens.c (__attribute__): Likewise.
74226
74227 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74228
74229         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74230         reported by Andreas Schwab.
74231
74232 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74233             Bruno Haible  <bruno@clisp.org>
74234
74235         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74236         check for the declaration of strnlen and a run test that exposes the
74237         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74238         rpl_strndup.
74239
74240 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74241             Bruno Haible  <bruno@clisp.org>
74242
74243         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74244
74245 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74246
74247         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74248         compile test, for Tru64 4.0D.
74249
74250 2006-05-28  Karl Berry  <karl@gnu.org>
74251
74252         * config/srclist.txt (printf-args.c): lose sync.
74253
74254 2006-05-26  Martin Lambers  <marlam@marlam.de>
74255
74256         * lib/getpass.c: Updates the test for the native W32 API, and adds
74257         missing includes, thus fixing compilation warnings.
74258
74259 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74260
74261         * lib/exclude.c (exclude_fnmatch): New function.
74262         (excluded_file_name): Call exclude_fnmatch.
74263         * lib/exclude.h (excluded_file_name): New prototype
74264
74265 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74266
74267         * lib/tempname.c (small_open, large_open): New macros.
74268         (__open, __open64) [!_LIBC]: Remove.
74269         (__gen_tempname): Use small_open and large_open instead of __open
74270         and __open64.  This fixes a portability bug on HP-UX 11.11i
74271         reported by Simon Wing-Tang in
74272         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74273
74274 2006-05-24  Bruno Haible  <bruno@clisp.org>
74275
74276         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74277         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74278         Reported by Thorsten Maerz <torte@netztorte.de> via
74279         Aaron Stone <aaron@serendipity.cx>.
74280
74281 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74282
74283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74284         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74285         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74286         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74287         not really conditional on the cache.
74288         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74289
74290 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74291
74292         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74293         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74294         (my_usleep): Don't mishandle maximum value.
74295
74296 2006-05-19  Jim Meyering  <jim@meyering.net>
74297
74298         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74299
74300 2006-05-17  Bruno Haible  <bruno@clisp.org>
74301
74302         Cygwin portability.
74303         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74304
74305 2006-05-17  Bruno Haible  <bruno@clisp.org>
74306
74307         * lib/stdint_.h: Fix recognition of Cygwin.
74308
74309 2006-05-15  Bruno Haible  <bruno@clisp.org>
74310
74311         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74312         on libtool patch by Ralf Wildenhues.
74313
74314 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74317         test for C99 conformance; (bool) 0.5 is an integer constant
74318         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74319         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74320
74321 2006-05-11  Simon Josefsson  <jas@extundo.com>
74322
74323         * m4/xvasprintf.m4: Fix obvious typo.
74324
74325 2006-05-11  Jim Meyering  <jim@meyering.net>
74326
74327         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74328         James Lemley.
74329
74330 2006-05-10  Simon Josefsson  <jas@extundo.com>
74331
74332         * lib/md4.c: Typo fix, update copyright years.
74333         (K1, K2): Don't use L because it turn computations into 64-bit on
74334         64-bit platforms.
74335
74336 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74337
74338         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74339         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74340         unwanted sign propagation, e.g., on hosts with 64-bit int.
74341         There still are some problems with reeelly weird theoretical hosts
74342         (e.g., 33-bit int) but it's not worth worrying about now.
74343         * lib/sha1.c (rol): Likewise.
74344         (K1, K2, K3, K4): Remove unnecessary L suffix.
74345
74346 2006-05-10  Bruno Haible  <bruno@clisp.org>
74347
74348         * lib/des.c: Cast to avoid warnings.
74349
74350 2006-05-09  Bruno Haible  <bruno@clisp.org>
74351
74352         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74353         (Depends-on): Depend also on xsize, stdarg.
74354         (configure.ac): Add gl_XVASPRINTF.
74355
74356 2006-05-09  Bruno Haible  <bruno@clisp.org>
74357
74358         * m4/xvasprintf.m4: New file.
74359
74360 2006-05-09  Bruno Haible  <bruno@clisp.org>
74361
74362         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74363         (EOVERFLOW): Define fallback value.
74364         (xstrcat): New function.
74365         (xvasprintf): Recognize the special case of a string concatenation.
74366
74367 2006-05-08  Eric Blake  <ebb9@byu.net>
74368
74369         * gnulib-tool (func_version): Base copyright year on CVS date.
74370         (func_emit_copyright_notice): New function.
74371         (func_emit_lib_Makefile_am): Use it.
74372         (func_emit_tests_Makefile_am): Likewise.
74373         (func_import): Likewise.
74374
74375 2006-05-08  Bruno Haible  <bruno@clisp.org>
74376
74377         * modules/stdarg: New file.
74378         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74379
74380 2006-05-08  Bruno Haible  <bruno@clisp.org>
74381
74382         * m4/stdarg.m4: New file, from GNU gettext.
74383
74384 2006-05-08  Bruno Haible  <bruno@clisp.org>
74385
74386         * config/srclist.txt (build-aux/config.rpath): different from latest
74387         release.
74388
74389 2006-05-08  Bruno Haible  <bruno@clisp.org>
74390
74391         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74392
74393 2006-05-05  Jim Meyering  <jim@meyering.net>
74394
74395         * m4/warning.m4: New file, derived from bison's file by the same name.
74396
74397 2006-05-03  Bruno Haible  <bruno@clisp.org>
74398
74399         * lib/stdint_.h: Shorter URL.
74400         * lib/inttypes.h: Likewise.
74401
74402 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74403
74404         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74405
74406 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74407
74408         * lib/verify.h: Document the internals better.  Most of this change
74409         was written by Bruno Haible.
74410
74411 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74412
74413         * doc/verify.texi: New file, partly based on a proposal by
74414         Bruno Haible.
74415
74416 2006-05-02  Bruno Haible  <bruno@clisp.org>
74417
74418         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74419         test from here...
74420         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74421
74422 2006-04-29  Bruno Haible  <bruno@clisp.org>
74423
74424         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74425         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74426
74427 2006-04-29  Bruno Haible  <bruno@clisp.org>
74428
74429         * gnulib-tool: Make --update option actually work.
74430
74431 2006-04-29  Bruno Haible  <bruno@clisp.org>
74432
74433         * doc/gcd.texi: New file.
74434         * doc/gnulib.texi: Include it.
74435
74436 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74437
74438         * lib/getdate.y (get_date): When adding relative date, start with the
74439         initial time, not with the result of the first mktime call.
74440
74441 2006-04-25  Bruno Haible  <bruno@clisp.org>
74442
74443         * gnulib-tool (func_import): Output the include directives in three
74444         blocks, sorted separately.
74445         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74446
74447 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74448
74449         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74450         to define main with arguments, for C++.  Reported by Eric Blake.
74451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74452         Prefer 'int main ()' to 'int main (void)', for C++.
74453         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74454         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74455         for 'main', for C99 and C++.
74456
74457 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74458
74459         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74460         Don't assume that exit status -1 is valid.
74461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74462         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74463         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74464         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74465         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74466         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74467         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74468         functions can be used without declaring them, or that you can
74469         exit with status -1.
74470         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74471
74472 2006-04-24  Karl Berry  <karl@gnu.org>
74473
74474         * config/srclist.txt (longdouble.m4): sync lost.
74475
74476 2006-04-24  Eric Blake  <ebb9@byu.net>
74477
74478         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74479
74480 2006-04-24  Bruno Haible  <bruno@clisp.org>
74481
74482         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74483         poll() implementation in AIX.
74484         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74485
74486 2006-04-24  Bruno Haible  <bruno@clisp.org>
74487
74488         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74489         assigned exactly once.
74490
74491 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74492             Bruno Haible  <bruno@clisp.org>
74493
74494         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74495         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74496         for AM_CPPFLAGS.
74497
74498 2006-04-23  Bruno Haible  <bruno@clisp.org>
74499
74500         * modules/copy-file: Depend on unistd.
74501         * modules/execute: Likewise.
74502         * modules/fatal-signal: Likewise.
74503         * modules/findprog: Likewise.
74504         * modules/mkdtemp : Likewise.
74505         * modules/pipe: Likewise.
74506         * modules/wait-process: Likewise.
74507
74508 2006-04-23  Bruno Haible  <bruno@clisp.org>
74509
74510         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74511         condition was already detected.
74512         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74513
74514 2006-04-23  Bruno Haible  <bruno@clisp.org>
74515
74516         * lib/copy-file.c: Include <unistd.h> unconditionally.
74517         * lib/execute.c: Likewise.
74518         * lib/fatal-signal.c: Likewise.
74519         * lib/findprog.c: Likewise.
74520         * lib/mkdtemp.c: Likewise.
74521         * lib/pipe.h: Likewise.
74522         * lib/pipe.c: Likewise.
74523         * lib/wait-process.h: Likewise.
74524
74525 2006-04-23  Bruno Haible  <bruno@clisp.org>
74526
74527         * gnulib-tool (func_usage): Fix --import description. Document
74528         --update.
74529         (func_import): Create temporary file in a temporary directory, if
74530         --dry-run is specified. Silence errors from 'grep' when there are no
74531         m4 files in $m4dir.
74532         (func_create_testdir): Silence errors from 'grep' when there are no
74533         m4 files in $m4dir.
74534         Reported by Karl Berry <karl@freefriends.org>.
74535
74536 2006-04-20  Bruno Haible  <bruno@clisp.org>
74537
74538         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74539         one argument, so that the code will be portable to Autoconf 2.60.
74540         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74541         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74542         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74543
74544 2006-04-19  Derek Price  <derek@ximbiot.com>
74545             Eric Blake  <ebb9@byu.net>
74546
74547         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74548         rather than "/full/path.h".  Update comment to match.  Shorten &
74549         generalize m4_translit call via AS_TR_CPP.
74550
74551 2006-04-19  Derek Price  <derek@ximbiot.com>
74552             Eric Blake  <ebb9@byu.net>
74553
74554         * lib/inttypes.h: Correct grammar in comment.
74555
74556 2006-04-18  Derek Price  <derek@ximbiot.com>
74557             Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         * modules/inttypes: New file.
74560         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74561
74562 2006-04-18  Derek Price  <derek@ximbiot.com>
74563             Paul Eggert  <eggert@cs.ucla.edu>
74564
74565         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74566         New files.
74567
74568 2006-04-18  Derek Price  <derek@ximbiot.com>
74569             Paul Eggert  <eggert@cs.ucla.edu>
74570
74571         * lib/inttypes.h: New file.
74572         * lib/strtoimax.c: Assume <inttypes.h>.
74573
74574 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74577         isn't mounted.  Problem reported by Kir Kolyshkin.
74578
74579 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74580
74581         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74582         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74583         Derek R. Price.
74584         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74585         implementation.
74586
74587 2006-04-12  Eric Blake  <ebb9@byu.net>
74588
74589         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74590         is now done automatically by the corresponding Autoconf macro.
74591
74592 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74595         time_r.h.
74596
74597 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74598
74599         Merge regex changes from libc, removing some of our
74600         POSIX-conformance changes that were rejected and redoing them in a
74601         less-intrusive way.
74602
74603         * lib/regcomp.c (re_compile_internal, init_dfa):
74604         Length arg is now size_t, not Idx.  All uses changed.
74605         (peek_token): Forward decl now says internal_function.
74606         (__re_error_msgid, __re_error_msgid_idx):
74607         Now static rather than extern with attribute_hidden.
74608         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74609         For some reason libc prefers K&R style defns for external functions.
74610         (regerror) [!defined _LIBC]: Likewise.
74611         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74612         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74613         (build_range_exp, build_collating_symbol):
74614         Use K&R-style defn.
74615         (re_compile_fastmap): Use '\0' to memset, not 0.
74616         (utf8_sb_map): Make the calculations more obvious.
74617         (init_dfa, parse_bracket_exp, build_charclass_op):
74618         Call calloc and cast result, as glibc does.
74619         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74620         (build_range_exp, build_collating_symbol):
74621         Now internal functions.
74622
74623         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74624
74625         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74626         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74627         Don't depend on VMS; depend on __VMS instead, for POSIX
74628         namespace cleanness.
74629         (regoff_t): Define to ssize_t, not long int.
74630
74631         Remove the REG_ macros named below.  Instead, make the old names
74632         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74633         __USE_GNU_REGEX.
74634         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74635         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74636         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74637         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74638         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74639         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74640         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74641         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74642         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74643         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74644         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74645         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74646         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74647         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74648         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74649         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74650         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74651         (REG_NREGS):
74652         Remove.  All uses replaced by the old RE_* names.
74653         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74654         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74655         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74656         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74657         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74658         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74659         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74660         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74661         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74662         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74663         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74664         Don't bother having these macros be independent of each others'
74665         values, since they no longer exist in the POSIX name space.
74666
74667         Rename the following member names back to their old names,
74668         unless !__USE_GNU_REGEX.  All uses changed back.
74669         (buffer): Renamed from re_buffer.
74670         (allocated): Renamed from re_allocated.
74671         (used): Renamed from re_used.
74672         (syntax): Renamed from re_syntax.
74673         (fastmap): Renamed from re_fastmap.
74674         (translate): Renamed from re_translate.
74675         (can_be_null): Renamed from re_can_be_null.
74676         (regs_allocated): Renamed from re_regs_allocated.
74677         (fastmap_accurate): Renamed from re_fastmap_accurate.
74678         (no_sub): Renamed from re_no_sub.
74679         (not_bol): Renamed from re_not_bol.
74680         (not_eol): Renamed from re_not_eol.
74681         (newline_anchor): Renamed from re_newline_anchor.
74682         (num_regs): Renamed from rm_num_regs.
74683         (start): Renamed from rm_start.
74684         (end): Renamed from rm_end.
74685
74686         (free_state): Move up a bit.
74687
74688         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74689         #define to be empty.
74690         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74691         when that is what is intended.
74692         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74693         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74694         (MAX): New macro.
74695         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74696         All uses changed back to re_malloc, etc.  It's now the caller's
74697         responsibility to check for overflow; all callers changed.
74698         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74699         (re_x2nrealloc): Remove.
74700         (free_state): Remove decl.
74701
74702         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74703         (re_set_registers, re_exec):
74704         Use K&R-style defn.
74705
74706         2006-01-31  Roland McGrath  <roland@redhat.com>
74707
74708         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74709         Reported by Mike Frysinger <vapier@gentoo.org>.
74710
74711         2006-01-15  Andreas Jaeger  <aj@suse.de>
74712
74713         [BZ #1950]
74714         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74715         build_wcs_upper_buffer change.
74716         (build_wcs_upper_buffer): Change return type.
74717
74718         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74719
74720         * lib/regex_internal.h: Include <stdint.h> if available.
74721
74722         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74723
74724         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74725
74726         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74727
74728         * lib/regcomp.c: Adjust for changed secondary hash function.
74729
74730         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74731
74732         * lib/regex.h: Pretty printing.
74733         Clean up namespace a bit.
74734
74735         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74736
74737         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74738         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74739
74740         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74741                     Ulrich Drepper  <drepper@redhat.com>
74742
74743         [BZ #1302]
74744         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74745         changed.
74746         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74747
74748         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74749
74750         [BZ #281]
74751         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74752         * lib/regcomp.c: Remove unnecessary uses of
74753         unsigned RE_TRANSLATE_TYPE.
74754         * lib/regex_internal.h: Likewise.
74755         * lib/regex_internal.c: Likewise.
74756         * lib/regexec.c: Likewise.
74757         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74758
74759         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74760
74761         * lib/regexec.c (find_recover_state): Remove unnecessary
74762         initialization.
74763         (transit_state_bkref): Make DFA a const pointer.
74764         (get_subexp): Likewise.
74765         (check_arrival): Likewise.
74766         (update_cur_sifted_state): Likewise.
74767         (re_search_internal): Likewise.
74768         (prune_impossible_nodes): Likewise.
74769         (acquire_init_state_context): Likewise.
74770         (proceed_next_node): Likewise.
74771         (set_regs): Likewise.
74772         (free_fail_stack_return): Likewise.
74773         (check_arrival_expand_ecl): Mark DFA parameter as const.
74774         (check_arrival_expand_ecl_sub): Likewise.
74775         (check_subexp_limits): Likewise.
74776         (sub_epsilon_src_nodes):  Likewise.
74777         (add_epsilon_src_nodes):  Likewise.
74778         (merge_state_array): Likewise.
74779         (update_regs): Likewise.
74780         (build_trtable): Likewise.
74781         (sift_states_backward): Mark MCTX parameter as const.
74782         (build_sifted_states): Likewise.
74783         (update_cur_sifted_state): Likewise.
74784         (sift_states_mkref): Likewise.
74785         (check_arrival_expand_ecl): Mark eclosure as const.
74786         (check_dst_limits_calc_pos_1): Likewise.
74787         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74788         pointer.
74789
74790         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74791
74792         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74793         (transit_state_sb): Likewise.
74794         (transit_state_mb): Likewise.
74795         (sift_states_iter_mb): Likewise.
74796         (check_arrival_add_next_nodes): Likewise.
74797         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74798         [_LIBC] (re_search_2_stub): Use mempcpy.
74799
74800         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74801         mbrtowc for very simple UTF-8 case.
74802
74803         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74804         a pointer-to-const.
74805         (re_acquire_state_context): Likewise.
74806         * lib/regex_internal.h: Adjust prototypes.
74807
74808         * lib/regex.c: Prevent using C++ compilers.
74809
74810         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74811         (re_acquire_state_context): Likewise.
74812
74813 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74814
74815         * modules/regex (Depends-on): Add ssize_t.
74816
74817 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74818
74819         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74820         translation table.
74821
74822 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74825
74826 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74827             Bruno Haible  <bruno@clisp.org>
74828
74829         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74830         <sys/types.h> and <inttypes.h>.
74831
74832 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74833
74834         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74835         `__error_t_defined', so argp.h will not typedef the former.
74836
74837 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74840         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74841         glibc names.  Even if glibc is changed to conform to POSIX, the
74842         traditional names will be available anyway, since regex depends on
74843         the extensions module.  Also, fix a longstanding typo in the
74844         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74845         reported by Emanuele Giaquinta.  Also, change sense of cached
74846         variable, so that the message makes sense.
74847
74848 2006-03-24  Simon Josefsson  <jas@extundo.com>
74849
74850         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74851         including some doc fixes.
74852         (base64_encode_alloc): Fix +1 bug on allocation failures.
74853
74854 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74855
74856         * lib/base64.c (base64_encode): Do not read past end of array with
74857         unsanitized input on systems with CHAR_BIT > 8.
74858
74859 2006-03-24  Eric Blake  <ebb9@byu.net>
74860
74861         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74862
74863 2006-03-22  Karl Berry  <karl@gnu.org>
74864
74865         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74866         * config/srclistvars.sh (COREUTILS): new var.
74867
74868 2006-03-17  Jim Meyering  <jim@meyering.net>
74869
74870         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74871         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74872
74873 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74876         no longer needs it.  Instead, check that regoff_t is as least
74877         as wide as ptrdiff_t.
74878
74879         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74880         so that our regex.h stays compatible with the installed regex.
74881         This is helpful for installers who configure --without-included-regex.
74882         Problem reported by Emanuele Giaquinta.
74883
74884 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74887         Typedef to long int, not to off_, as POSIX will likely change
74888         in that direction.
74889
74890 2006-03-15  Eric Blake  <ebb9@byu.net>
74891
74892         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74893
74894 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74895
74896         * lib/argp-help.c (validate_uparams): Fix typo
74897         * lib/argp-parse.c (argp_default_options): Consistently begin help
74898         messages with a lowercase letter.
74899
74900 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74903         overrun buffers and shouldn't be used (much as gets shouldn't be
74904         used).
74905         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74906
74907 2006-03-08  Simon Josefsson  <jas@extundo.com>
74908
74909         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74910         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74911
74912 2006-03-08  Simon Josefsson  <jas@extundo.com>
74913
74914         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74915         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74916
74917 2006-03-08  Simon Josefsson  <jas@extundo.com>
74918
74919         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74920         signal that configure disabled the device.
74921
74922 2006-03-08  Simon Josefsson  <jas@extundo.com>
74923
74924         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74925         languages.
74926
74927 2006-03-07  Simon Josefsson  <jas@extundo.com>
74928
74929         * modules/getopt (Depends-on): Add unistd.
74930
74931         * modules/unistd: New file.
74932
74933 2006-03-07  Simon Josefsson  <jas@extundo.com>
74934
74935         * modules/gc-random: New file.
74936
74937 2006-03-07  Simon Josefsson  <jas@extundo.com>
74938
74939         * m4/unistd_h.m4: New file.
74940
74941 2006-03-07  Simon Josefsson  <jas@extundo.com>
74942
74943         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74944         test to be side-effect free by storing the result in the cache
74945         variable gl_cv_lib_readline, and moving the assignment of
74946         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74947         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74948
74949 2006-03-07  Simon Josefsson  <jas@extundo.com>
74950
74951         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74952         error on missing devices (the functions will return an error).
74953
74954         * m4/gc.m4: Move random stuff to gc-random.m4
74955
74956 2006-03-07  Simon Josefsson  <jas@extundo.com>
74957
74958         * lib/unistd_.h: New file.
74959
74960 2006-03-07  Simon Josefsson  <jas@extundo.com>
74961
74962         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74963
74964 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74965
74966         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74967         Problem reported by Juan Manuel Guerrero.
74968
74969 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74972         the unistd module.
74973         * lib/getlogin_r.c: Likewise.
74974         * lib/getlogin_r.h: Likewise.
74975         * lib/glob.c: Likewise.
74976         * lib/pagealign_alloc.c: Likewise.
74977         * lib/unistd_.h: Remove; no longer needed.
74978
74979 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74980
74981         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74982         Add unistd.
74983         * modules/c-stack (Depends-on): Add unistd.
74984         * modules/getlogin_r: Likewise.
74985         * modules/glob: Likewise.
74986         * modules/pagealign_alloc: Likewise.
74987         * modules/unistd (Files): Remove lib/unistd_.h.
74988         (EXTRA_DIST): Remove.
74989         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74990         need unistd_.h.
74991         (MOSTLYCLEANFILES): Remove unistd.h-t.
74992
74993 2006-03-03  Simon Josefsson  <jas@extundo.com>
74994
74995         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74996
74997 2006-03-03  Simon Josefsson  <jas@extundo.com>
74998
74999         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
75000         libidn and bison.
75001
75002 2006-03-03  Simon Josefsson  <jas@extundo.com>
75003
75004         * build-aux/maint.mk: Add indent target.
75005
75006 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
75007
75008         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
75009         our replacement poll.h in any case, to avoid a differing
75010         declaration from a system header.  Seen on AIX.
75011
75012 2006-03-01  Simon Josefsson  <jas@extundo.com>
75013
75014         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
75015         <kasal@ucw.cz>.
75016
75017 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75018
75019         * modules/gettime (Depends-on): Add extensions module.
75020         * modules/nanosleep (Depends-on): Likewise.
75021         * modules/settime (Depends-on): Likewise.
75022
75023 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75024
75025         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75026         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75027         pedantically.
75028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75029         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75030
75031         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75032         not "==".  Reported by Ralf Wildenhues.
75033
75034 2006-03-01  Karl Berry  <karl@gnu.org>
75035
75036         * doc/Copyright/request-*: new files, synced from gnuorg.
75037
75038 2006-03-01  Karl Berry  <karl@gnu.org>
75039
75040         * config/srclist.txt (Copyright/*): new entries.
75041
75042 2006-02-28  Simon Josefsson  <jas@extundo.com>
75043
75044         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75045
75046 2006-02-27  Simon Josefsson  <jas@extundo.com>
75047
75048         * lib/base64.h: Indent #define's.  From Jim Meyering
75049         <jim@meyering.net>.
75050
75051 2006-02-27  Jim Meyering  <jim@meyering.net>
75052
75053         Revert the change of 2006-02-24, so these files can continue
75054         to be sync'd from gettext.
75055         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75056         of `config.h'.
75057
75058 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75059
75060         * modules/intprops: New file.
75061         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75062         Add intprops.
75063         * modules/getloadavg (Files): Remove lib/intprops.h.
75064         (Depends-on): Add intprops.
75065         * modules/human: Likewise.
75066         * modules/inttostr: Likewise.
75067         * modules/openat: Likewise.
75068         * modules/sig2str: Likewise.
75069         * modules/userspec: Likewise.
75070         * modules/utimecmp: Likewise.
75071         * modules/xnanosleep: Likewise.
75072         * modules/xstrtol: Likewise.
75073
75074 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75075
75076         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75077         * modules/lock-tests (TESTS): Use $(EXEEXT).
75078         * modules/tls-tests: Likewise.
75079         * modules/argp-tests: Likewise.
75080         (check_PROGRAMS): New var, replacing...
75081         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75082
75083 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75084
75085         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75086         `config.h'.
75087
75088 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75089
75090         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75091
75092 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75093
75094         Sync from coreutils.
75095         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75096         gl_CHDIR_SAFER.
75097
75098 2006-02-22  Jim Meyering  <jim@meyering.net>
75099
75100         Sync from coreutils.
75101         * m4/chdir-safer.m4: New file.
75102
75103 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75104
75105         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75106         AT_FDCWD exceeds INT_MAX.
75107         * lib/openat.h (AT_FDCWD): Likewise.
75108
75109 2006-02-17  Eric Blake  <address@hidden>
75110
75111         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75112
75113 2006-02-16  Simon Josefsson  <jas@extundo.com>
75114
75115         * modules/getaddrinfo (Depends-on): Add sys_socket.
75116
75117 2006-02-15  Simon Josefsson  <jas@extundo.com>
75118
75119         * build-aux/maint.mk: Add dsyntax-check rule.
75120
75121 2006-02-15  Eric Blake  <ebb9@byu.net>
75122
75123         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75124         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75125         'present but cannot compile' warnings on cygwin.
75126         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75127         use ws2tcpip.h if sys/socket.h works.
75128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75129         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75130
75131 2006-02-14  Simon Josefsson  <jas@extundo.com>
75132
75133         * modules/maintainer-makefile (Files): Rename.
75134
75135         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75136         and (the local) Makefile.cfg to maint-cfg.mk.
75137
75138         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75139         to the latter.
75140
75141         * modules/maintainer-makefile: New module.
75142
75143         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75144         severaly stripped to make it possible to build it up from scratch
75145         with reliable tests.
75146
75147         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75148         fixes to permit overriding the default actions when configure and
75149         makefile are not available.
75150
75151 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75152
75153         Sync from coreutils.
75154         * modules/lstat (Depends-on): Don't depend on xalloc.
75155         (License): Change from GPL to LGPL, since this is now simply a
75156         replacement for a libc function.
75157
75158 2006-02-14  Jim Meyering  <jim@meyering.net>
75159
75160         Sync from coreutils.
75161
75162         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75163         failure on deficient systems, and simplify gnulib lgpl dependencies.
75164         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75165         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75166
75167         * lib/xalloc-die.c: Remove unused definition of N_.
75168
75169 2006-02-14  Jim Meyering  <jim@meyering.net>
75170
75171         Sync from coreutils.
75172         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75173         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75174         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75175         double-quote uses of that variable, to accommodate the rare case in
75176         which getmntent is available in none of the libraries checked.  This
75177         happens at least on FreeBSD 5.0.
75178
75179 2006-02-13  Simon Josefsson  <jas@extundo.com>
75180
75181         * gnulib-tool (Usage): Fix --import, from
75182         karl@freefriends.org (Karl Berry).
75183
75184 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75185
75186         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75187
75188 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75189
75190         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75191         "autoupdate" on 2005-12-12.
75192
75193 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         * modules/closeout (Depends-on): Remove atexit.
75196
75197 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75200         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75201
75202 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75203
75204         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75205         __EXTENSIONS__ if this causes compilation to fail.  Problem
75206         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75207         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75208
75209 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75210
75211         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75212         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75213         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75214         All uses changed.
75215
75216 2006-01-26  Simon Josefsson  <jas@extundo.com>
75217
75218         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75219         prototype is visible on mingw32.
75220
75221         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75222         for mingw32.
75223
75224         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75225         mingw32).
75226
75227 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75230         attempt to open for write; this always fails, at least on POSIX
75231         hosts.  This reinstates the 2006-01-09 change, which was
75232         inadvertently removed.
75233
75234 2006-01-26  Bruno Haible  <bruno@clisp.org>
75235
75236         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75237         Reported by Paul Eggert.
75238
75239 2006-01-26  Bruno Haible  <bruno@clisp.org>
75240             Paul Eggert  <eggert@cs.ucla.edu>
75241
75242         * lib/stdbool_.h (_Bool)
75243         [(! (defined __cplusplus || defined __BEOS__)
75244           && !defined __GNUC__
75245           && !(defined __HP_cc || defined __xlc__
75246                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75247                || defined __sgi))]:
75248         #define to signed char in these cases too; this simplifies
75249         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75250         etc., separately) and makes it more conservative.
75251
75252 2006-01-25  Simon Josefsson  <jas@extundo.com>
75253
75254         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75255         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75256         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75257
75258 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75259
75260         * lib/argp-namefrob.h: Bugfix. Remove stray #
75261
75262 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75263
75264         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75265         so that we test the test.
75266         Check for yet another HP-UX cc bug involving *bool |= bool.
75267
75268 2006-01-25  Karl Berry  <karl@gnu.org>
75269
75270         * config/srclist.txt (vasnprintf.c): sync lost.
75271
75272 2006-01-25  Jim Meyering  <jim@meyering.net>
75273
75274         Sync from the stable (b5) branch of coreutils:
75275
75276         * lib/fts.c (fts_children): Don't let close() clobber errno from
75277         failed fchdir().
75278
75279         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75280         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75281         a dangling symlink.  That can also happen at least for ELOOP.
75282         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75283         FYI, this bug predates the inclusion of fts.c in coreutils.
75284
75285         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75286         in their own block, so pre-c99 compilers don't object.
75287
75288         Avoid the double-free (first in fts_read, second in fts_close) that
75289         would occur when an `active' directory is made inaccessible (e.g.,
75290         via chmod a-x) during a traversal.
75291         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75292         before returning.  Reproduce this failure by
75293         mkdir -p a/b; cd a; chmod a-x . b
75294         Reported by Stavros Passas.
75295
75296 2006-01-25  Jim Meyering  <jim@meyering.net>
75297
75298         * lib/fileblocks.c: Remove more useless parentheses.
75299         * lib/readutmp.h: Likewise.
75300
75301 2006-01-25  Bruno Haible  <bruno@clisp.org>
75302
75303         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75304         warnings.
75305         Reported by Paul Eggert.
75306
75307 2006-01-25  Bruno Haible  <bruno@clisp.org>
75308
75309         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75310         rid of a trap command. For Solaris sh.
75311         Reported by Mark D. Baushke <mdb@gnu.org>.
75312
75313 2006-01-24  Simon Josefsson  <jas@extundo.com>
75314
75315         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75316         Bruno.
75317
75318 2006-01-24  Karl Berry  <karl@gnu.org>
75319
75320         * config/srclist.txt (argp-namefrob.h): sync lost.
75321
75322 2006-01-24  Jim Meyering  <jim@meyering.net>
75323
75324         * modules/openat (Files): Add lib/intprops.h.
75325         From Mark D. Baushke.
75326
75327 2006-01-24  Jim Meyering  <jim@meyering.net>
75328
75329         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75330         Reported by Mark D. Baushke.
75331
75332 2006-01-24  Jim Meyering  <jim@meyering.net>
75333
75334         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75335
75336 2006-01-24  Bruno Haible  <bruno@clisp.org>
75337
75338         * modules/strnlen (Maintainer): Change from glibc to all.
75339
75340 2006-01-24  Bruno Haible  <bruno@clisp.org>
75341
75342         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75343         Patch by Paul Eggert.
75344
75345 2006-01-24  Bruno Haible  <bruno@clisp.org>
75346
75347         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75348         already has it.
75349         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75350         2005-11-26.
75351
75352         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75353         'signed char' to avoid problems with the built-in _Bool type.
75354         Reported by Paul Eggert on 2005-11-26.
75355
75356 2006-01-24  Bruno Haible  <bruno@clisp.org>
75357
75358         * gnulib-tool (func_import): Avoid constructing complicated sed
75359         expressions inside backquote.
75360         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75361
75362 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75363
75364         These changes imported from libc.
75365         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75366         test and two separate function calls.
75367         * lib/strndup.c (__strndup): Add libc_hidden_def.
75368
75369 2006-01-23  Simon Josefsson  <jas@extundo.com>
75370
75371         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75372         Remove the test_*_SOURCES variable: automake infers it by default.
75373         * modules/tls-tests: Likewise.
75374
75375 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75376
75377         Work around porting bugs reported by Dieter in
75378         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75379         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75380         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75381         Include "getopt.h" first, to check interface.
75382         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75383         !HAVE_DECL_GETENV.
75384         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75385         (__strndup): Revert to K&R-style function dfns, the glibc style.
75386         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75387         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75388         Include strnlen.h first, to get prototype properly.
75389         (strnlen): Renamed from __strnlen.
75390         Remove weak alias.
75391
75392 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75395
75396 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         * config/srclist.txt: Adjust to reflect glibc reorganization.
75399         This affects only comments.
75400
75401 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75402
75403          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75404          Reported by Bruce Korb <bkorb@gnu.org>.
75405
75406 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75407
75408         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75409         to pacify gcc -Wswitch-default.
75410
75411 2006-01-22  Bruno Haible  <bruno@clisp.org>
75412
75413         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75414         temporary buffer for sprintf, take into account the precision also
75415         for 'd', 'i', 'u', 'o', 'x', 'X'.
75416
75417 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75418
75419         * modules/argp-tests: New module
75420         * tests/test-argp.c: New file
75421         * tests/test-argp-2.sh: New file
75422
75423 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75424
75425         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75426         (__argp_base_name): Removed
75427         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75428         typo.
75429         (__argp_base_name): Provide macro definition or extern declaration
75430         depending on the configuration
75431
75432 2006-01-20  Simon Josefsson  <jas@extundo.com>
75433
75434         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75435
75436 2006-01-20  Simon Josefsson  <jas@extundo.com>
75437
75438         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75439
75440 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75441
75442         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75443         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75444         Suggested by Bruno Haible.
75445
75446 2006-01-20  Karl Berry  <karl@gnu.org>
75447
75448         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75449         until changes propagate, I guess.
75450
75451 2006-01-19  Simon Josefsson  <jas@extundo.com>
75452
75453         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75454
75455 2006-01-19  Simon Josefsson  <jas@extundo.com>
75456
75457         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75458
75459 2006-01-19  Simon Josefsson  <jas@extundo.com>
75460
75461         * gnulib-tool: Set check_PROGRAMS.
75462
75463         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75464         modules/des-tests, modules/gc-arcfour-tests,
75465         modules/gc-arctwo-tests, modules/gc-des-tests,
75466         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75467         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75468         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75469         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75470         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75471         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75472         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75473         test_*_SOURCES.
75474
75475 2006-01-18  Simon Josefsson  <jas@extundo.com>
75476
75477         * modules/socklen (Depends-on): Depend on sys_socket.
75478
75479 2006-01-18  Simon Josefsson  <jas@extundo.com>
75480
75481         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75482         modules/des-tests, modules/gc-arcfour-tests,
75483         modules/gc-arctwo-tests, modules/gc-des-tests,
75484         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75485         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75486         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75487         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75488         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75489         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75490         $(EXEEXT) to automake TESTS variable, for mingw32.
75491
75492 2006-01-17  Simon Josefsson  <jas@extundo.com>
75493
75494         * modules/socklen (Include): Need sys/socket.h.
75495
75496 2006-01-17  Bruno Haible  <bruno@clisp.org>
75497
75498         * modules/ssize_t (Include): Add <sys/types.h>.
75499
75500 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75503         it's not portable and it doesn't work with cross-compiles.
75504         Problem reported by Bruno Haible.  Fix missing-$ typo in
75505         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75506         -zignore from being used with Sun's C compiler.
75507
75508 2006-01-12  Simon Josefsson  <jas@extundo.com>
75509
75510         * lib/base64.c: Fix warning, reported by Bruno Haible
75511         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75512
75513 2006-01-12  Bruno Haible  <bruno@clisp.org>
75514
75515         * modules/ldd: New file.
75516         * build-aux/ldd.sh.in: New file.
75517         * MODULES.html.sh (Support for building libraries and executables): Add
75518         ldd.
75519
75520 2006-01-12  Bruno Haible  <bruno@clisp.org>
75521
75522         * m4/ldd.m4: New file.
75523
75524 2006-01-12  Bruno Haible  <bruno@clisp.org>
75525
75526         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75527         endless loop while replacing $auxdir with build-aux.
75528
75529 2006-01-11  Simon Josefsson  <jas@extundo.com>
75530
75531         * lib/stdint_.h (SIZE_MAX): Add missing (.
75532
75533 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75534
75535         Sync from coreutils.
75536         * lib/md5.c: Fix commentary typos.
75537         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75538         * lib/md5.h (__attribute__): Remove; unused.
75539         * lib/sha1.c: Fix commentary to match md5 better.
75540         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75541         so that we don't need to worry about alignment.  All uses changed.
75542         This merges the 2005-10-28 md5 change into sha1.
75543
75544 2006-01-11  Jim Meyering  <jim@meyering.net>
75545
75546         Sync from coreutils.
75547         * lib/md5.c (OP): Fix spacing.
75548
75549 2006-01-11  Bruno Haible  <bruno@clisp.org>
75550
75551         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75552         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75553         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75554
75555 2006-01-11  Bruno Haible  <bruno@clisp.org>
75556
75557         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75558         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75559         the "early" section as well.
75560
75561 2006-01-11  Bruno Haible  <bruno@clisp.org>
75562
75563         Avoid "ar: no archive members specified" error on MacOS X.
75564         * gnulib-tool (func_modules_add_dummy): New function.
75565         (func_import, func_create_testdir): Invoke it.
75566
75567 2006-01-11  Bruno Haible  <bruno@clisp.org>
75568
75569         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75570         with $auxdir in AC_CONFIG_FILES statements.
75571
75572 2006-01-11  Bruno Haible  <bruno@clisp.org>
75573
75574         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75575         Initialize also noinst_HEADERS to empty.
75576
75577 2006-01-11  Bruno Haible  <bruno@clisp.org>
75578
75579         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75580         variables.
75581         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75582         autoreconf.
75583
75584 2006-01-11  Bruno Haible  <bruno@clisp.org>
75585
75586         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75587         overridable by the user.
75588         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75589
75590 2006-01-10  Simon Josefsson  <jas@extundo.com>
75591
75592         * modules/sys_socket: New file.
75593
75594 2006-01-10  Simon Josefsson  <jas@extundo.com>
75595
75596         * m4/sys_socket_h.m4: New file.
75597
75598 2006-01-10  Simon Josefsson  <jas@extundo.com>
75599
75600         * lib/socket_.h: New file.
75601
75602 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75603
75604         * modules/readutmp (Maintainer): Add myself.
75605
75606 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75607
75608         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75609         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75610         People who are still concerned with buggy memcmp implementations
75611         can invoke gl_FUNC_MEMCMP themselves.
75612
75613 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75614
75615         * lib/regex_internal.h (BITSET_WORD_BITS):
75616         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75617         preprocessor mishandles large unsigned values as if they were signed.
75618         Problem reported by Claudio Fontana in
75619         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75620
75621 2006-01-10  Jim Meyering  <jim@meyering.net>
75622
75623         Avoid the double-free (first in fts_read, second in fts_close) that
75624         would occur when an `active' directory is made inaccessible (e.g.,
75625         via chmod a-x) during a traversal.
75626         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75627         before returning.  Reproduce this failure by
75628         mkdir -p a/b; cd a; chmod a-x . b
75629         Reported by Stavros Passas.
75630
75631         Sync from coreutils.
75632         * lib/sha1.c: Tweak grammar in a comment.
75633
75634 2006-01-10  Jim Meyering  <jim@meyering.net>
75635
75636         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75637         Patch by Joerg Sonnenberger.
75638
75639 2006-01-10  Bruno Haible  <bruno@clisp.org>
75640
75641         * modules/readutmp: Depend on module free.
75642         * modules/strtok_r: Depend on module restrict.
75643
75644 2006-01-10  Bruno Haible  <bruno@clisp.org>
75645
75646         * modules/gettext (configure.ac): Add an invocation of
75647         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75648
75649 2006-01-10  Bruno Haible  <bruno@clisp.org>
75650
75651         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75652         Reported by Werner Lemberg <wl@gnu.org>.
75653
75654 2006-01-10  Bruno Haible  <bruno@clisp.org>
75655
75656         * lib/localcharset.c: Update from GNU gettext.
75657
75658 2006-01-10  Bruno Haible  <bruno@clisp.org>
75659
75660         * lib/argp.h (__const): Remove macro. Use const instead.
75661         * lib/argp-fmtstream.h (__const): Likewise.
75662         * lib/glob_.h (__const): Remove macro.
75663         * lib/glob-libc.h: Use const instead of __const.
75664
75665 2006-01-10  Bruno Haible  <bruno@clisp.org>
75666
75667         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75668         variable.
75669         Needed to avoid an automake error regarding the 'gettext' module.
75670
75671 2006-01-09  Simon Josefsson  <jas@extundo.com>
75672
75673         * modules/inet_ntop (Depends-on): Add restrict.
75674
75675 2006-01-09  Simon Josefsson  <jas@extundo.com>
75676
75677         * modules/gc-rijndael-tests (License): Put under LGPL.
75678
75679         * modules/gc-des-tests (License): Likewise.
75680
75681         * modules/gc-arcfour-tests (License): Likewise.
75682
75683         * modules/gc-arctwo-tests (License): Likewise.
75684
75685         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75686
75687         * modules/gc-hmac-sha1-tests (Files): Likewise.
75688
75689         * modules/gc-hmac-md5-tests (License): Likewise.
75690
75691         * modules/gc-sha1-tests (License): Likewise.
75692
75693         * modules/gc-md5-tests (License): Likewise.
75694
75695         * modules/gc-md4-tests (License): Likewise.
75696
75697         * modules/gc-md2-tests (License): Likewise.
75698
75699         * modules/gc-tests (License): Likewise.
75700
75701         * modules/des-tests (License): Likewise.
75702
75703         * modules/md4-tests (License): Likewise.
75704
75705         * modules/md2-tests (License): Likewise.
75706
75707 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75708
75709         Sync from coreutils:
75710
75711         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75712         * modules/lib-ignore: New file.
75713         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75714         chdir-safer.m4, lchmod.m4.
75715         * modules/openat: Add mkdirat.c, openat-priv.h.
75716
75717 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75718
75719         Sync from coreutils.
75720         * m4/lib-ignore.m4: New file.
75721         * m4/lchmod.m4: New file.
75722
75723 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75724
75725         Sync from coreutils.
75726         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75727         for write access: POSIX says that must fail.
75728         * lib/fts.c (diropen): Likewise.
75729         * lib/save-cwd.c (save_cwd): Likewise.
75730         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75731         well, for minor improvements on hosts that lack O_DIRECTORY.
75732         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75733         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75734         Fall back on chown if open failed with EACCES.
75735
75736         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75737         Report an error at compile-time if only a 1-second nominal clock
75738         resolution is found.
75739
75740         * lib/lchmod.h: New file.
75741         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75742         (make_dir_parents): Use lchown rather than chown, and
75743         lchmod rather than chmod.
75744
75745         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75746         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75747         "proc" reported by n0dalus.
75748
75749         * lib/mountlist.c: Include <limits.h>.
75750         (dev_from_mount_options)
75751         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75752         New function.  It no longer assumes "dev=" has the System V meaning
75753         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75754         (read_file_system_list)
75755         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75756         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75757         dev= in that case.
75758
75759         * lib/posixtm.h (PDS_PRE_2000): New macro.
75760         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75761         allow_century.  All usages changed.  Reject dates outside the range
75762         1969-1999 if PDS_PRE_2000 is used.
75763
75764 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         Sync from coreutils.
75767         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75768         (Time of day items): Mention the possibility of leap seconds.
75769         Problem reported by Dr. David Alan Gilbert.
75770
75771 2006-01-09  Jim Meyering  <jim@meyering.net>
75772
75773         Sync from coreutils.
75774
75775         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75776
75777         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75778
75779         * lib/modechange.c (mode_compile): Reject an invalid mode string
75780         that starts with an octal digit.  From Andreas Gruenbacher.
75781
75782         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75783         and dup to open_safer and dup_safer, respectively.
75784         (openat_permissive): Fix typo in comment.
75785
75786         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75787         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75788         (_): Remove; no longer needed.
75789         (openat): Renamed from rpl_openat; no need for rpl_openat
75790         since openat.h renames openat for us.
75791         Replace most of the body with a call to openat_permissive,
75792         to avoid duplicate code.
75793         Port to (probably hypothetical) environments were mode_t is
75794         wider than int.
75795         (openat_permissive): Require mode arg, so that we can check
75796         types better.  Put it just after flags.  Change cwd failure
75797         indicator from pointer-to-bool to pointer-to-errno-value.
75798         All callers changed.
75799         Invoke openat_save_fail and/or openat_restore_fail if
75800         cwd_errno is null, so that openat can call us.
75801         (openat_permissive, fdopendir, fstatat, unlinkat):
75802         Simplify errno handling to avoid some duplicate code,
75803         as it's OK to set errno on success.
75804         * lib/openat.h: Revamp code so that function macros depend on
75805         __OPENAT_PREFIX only, not also on AT_FDCWD.
75806         (openat_ro): Remove.  Caller changed to use openat_permissive.
75807         (openat_permissive): Now a macro, if not a function.
75808         (openat_restore_fail, openat_save_fail): Now always functions,
75809         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75810
75811         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75812         and openat.c.
75813         * lib/mkdirat.c: Include openat-priv.h.
75814         Remove definitions of macros defined therein.
75815         * lib/openat.c: Likewise.
75816
75817         * lib/mkdirat.c (mkdirat): New file and function.
75818         * lib/openat.h (mkdirat): Declare.
75819
75820         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75821
75822         * lib/openat.h (openat_permissive): Declare.
75823         (openat_ro): Define.
75824
75825         * lib/openat.c (EXPECTED_ERRNO): New macro.
75826         (openat_permissive): New function -- used in remove.c rewrite.
75827         (all functions): Set errno just before returning, only if there
75828         was an actual failure.
75829         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75830
75831         Emulate openat-family functions using Linux's procfs, if possible.
75832         Idea and some code based on Ulrich Drepper's glibc changes.
75833
75834         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75835         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75836         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75837         before falling back on save_cwd and restore_cwd.
75838         (fdopendir, fstatat, unlinkat): Likewise.
75839
75840         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75841         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75842
75843         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75844         as second argument to va_arg.  Otherwise, some versions of gcc
75845         warn that `if this code is reached, the program will abort'.
75846
75847 2006-01-09  Jim Meyering  <jim@meyering.net>
75848
75849         Sync from coreutils.
75850         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75851         Require openat-priv.h.
75852
75853 2006-01-09  Bruno Haible  <bruno@clisp.org>
75854
75855         * modules/strnlen (Include): Use strnlen.h.
75856
75857 2006-01-09  Bruno Haible  <bruno@clisp.org>
75858
75859         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75860
75861 2006-01-09  Bruno Haible  <bruno@clisp.org>
75862
75863         * lib/sysexit_.h (EX_OK): New macro.
75864         Suggested by Martin Lambers <marlam@marlam.de>.
75865
75866 2006-01-09  Bruno Haible  <bruno@clisp.org>
75867
75868         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75869         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75870
75871 2006-01-09  Bruno Haible  <bruno@clisp.org>
75872
75873         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75874         numbers.
75875
75876 2006-01-09  Bruno Haible  <bruno@clisp.org>
75877
75878         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75879         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75880         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75881         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75882
75883 2006-01-09  Bruno Haible  <bruno@clisp.org>
75884
75885         * build-aux/javacomp.sh.in: New file, moved from lib/.
75886         * modules/javacomp-script (Files): Update.
75887         (configure.ac): Add AC_CONFIG_FILES invocation.
75888         (EXTRA_DIST): Remove variable.
75889
75890         * build-aux/javaexec.sh.in: New file, moved from lib/.
75891         * modules/javaexec (Files): Update.
75892         (configure.ac): Add AC_CONFIG_FILES invocation.
75893         (EXTRA_DIST): Remove javaexec.sh.in.
75894
75895         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75896         * modules/csharpcomp-script (Files): Update.
75897         (configure.ac): Add AC_CONFIG_FILES invocation.
75898         (EXTRA_DIST): Remove variable.
75899
75900         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75901         * modules/csharpexec (Files): Update.
75902         (configure.ac): Add AC_CONFIG_FILES invocation.
75903         (EXTRA_DIST): Remove csharpexec.sh.in.
75904
75905 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75906
75907         Sync from coreutils.
75908
75909         Add POSIX ACL support
75910         * lib/acl.h (copy_acl, set_acl): Add declarations.
75911         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75912         systems other than Linux.
75913         (chmod_or_fchmod): New function: use fchmod when possible,
75914         and chmod otherwise.
75915         (file_has_acl): Add a POSIX ACL implementation, with a
75916         Linux-specific subcase.
75917         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75918         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75919         acls are unsupported.
75920         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75921         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75922         are unsupported.
75923
75924 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75925
75926         Sync from coreutils.
75927         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75928
75929 2006-01-07  Bruno Haible  <bruno@clisp.org>
75930
75931         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75932         gl_EARLY.
75933
75934 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75935
75936         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75937         Problem reported for Mingw by Mark Junker.
75938
75939 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75940
75941         * README: Gnulib normally doesn't generate a tarball.
75942
75943 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75944
75945         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75946         long int, not int, for nanosecond counts, so that people who are
75947         used to POSIX struct timespec won't be surprised.  Reported by Jim
75948         Meyering.
75949
75950 2005-12-28  Bruno Haible  <bruno@clisp.org>
75951
75952         * build-aux/config.rpath: Update from GNU gettext.
75953
75954 2005-12-16  Jim Meyering  <jim@meyering.net>
75955
75956         * modules/fprintftime: New module.
75957         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75958
75959 2005-12-16  Jim Meyering  <jim@meyering.net>
75960
75961         * m4/fprintftime.m4: New file.
75962
75963 2005-12-16  Jim Meyering  <jim@meyering.net>
75964
75965         * lib/fprintftime.c, lib/fprintftime.h: New files.
75966
75967 2005-12-15  Simon Josefsson  <jas@extundo.com>
75968
75969         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75970         new m4/socklen.m4.
75971
75972 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75973
75974         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75975         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75976
75977 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75978
75979         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75980         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75981         struct uparams is valid. Fall back to the default values if it is
75982         not.
75983
75984 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75985
75986         * modules/argp (Files): Add argp-pin.c
75987         (Depends-on): dirname
75988         (lib_SOURCES): Add argp-pin.c
75989
75990 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75991
75992         * m4/argp.m4:  Check if program_invocation_name and
75993         program_invocation_short_name are declared and define appropriate
75994         macros if they are not.
75995
75996 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75997
75998         * lib/argp-help.c (__argp_base_name): New function
75999         (__argp_short_program_name): Rewrite using __argp_base_name
76000         * lib/argp-namefrob.h: Define program_invocation_name and
76001         program_invocation_short_name if requested
76002         (__argp_base_name): Add prototype
76003         * lib/argp-parse.c (argp_def): Use gettext wrappers
76004         (argp_default_parser): Use __argp_base_name
76005         * lib/argp-pin.c: New file. Defines program_invocation_name and
76006         program_invocation_short_name on systems that lack them.
76007
76008 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76009
76010         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
76011         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76012         porting problem reported by Georg Schwarz in
76013         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76014
76015 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76018         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76019         porting problem reported by Georg Schwarz in
76020         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76021
76022 2005-12-05  Bruno Haible  <bruno@clisp.org>
76023
76024         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76025         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76026         Reported by Mark Junker <mjscod@gmx.de>.
76027
76028 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76029
76030         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76031         Use implementation from Albert Chin, with some
76032         comments/corrections by Stepan Kasal and myself.
76033
76034 2005-12-02  Bruno Haible  <bruno@clisp.org>
76035
76036         * gnulib-tool (func_import): Accept GPLed build tool modules when
76037         --lgpl is given.
76038         * modules/csharpcomp-script: New file.
76039         * modules/csharpcomp: Depend on it.
76040         * modules/javacomp-script: New file.
76041         * modules/javacomp: Depend on it.
76042         Suggested by Simon Josefsson.
76043
76044 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76047         statement, to work around an HP-UX 10.20 compiler bug reported by
76048         Peter O'Gorman.
76049
76050 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76051
76052         * modules/savedir (Depends-on): Add openat.
76053
76054 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76055
76056         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76057         (uintmax_t) [defined uintmax_t]: Do not declare.
76058         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76059         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76060         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76061         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76062         sake of portability to weird hosts that C allows (though we don't
76063         know of any practical examples).
76064
76065         * lib/savedir.h (fdsavedir): New decl.
76066         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76067         contains most of the former guts of savedir.
76068         (savedir): Use savedirstream.
76069         Include "openat.h".
76070
76071 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * modules/obstack (Files): Add m4/ulonglong.m4.
76074         Problem reported by Davide Angelocola.
76075
76076 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76077
76078         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76079         coreutils no longer futzes with rounding modes.
76080
76081 2005-11-14  Jim Meyering  <jim@meyering.net>
76082
76083         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76084         replacement of mkstemp.
76085
76086 2005-11-10  Simon Josefsson  <jas@extundo.com>
76087
76088         * lib/readline.c: Remove EOL.
76089
76090 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * modules/gethrxtime (Depends-on): Add gettime.
76093
76094 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76095
76096         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76097         or gettimeofday; no longer needed.
76098
76099 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76100
76101         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76102         time business.
76103         (gethrxtime) [! (HAVE_NANOUPTIME
76104         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76105         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76106         our own approximation.
76107
76108 2005-11-08  Eric Blake  <ebb9@byu.net>
76109
76110         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76111
76112 2005-11-08  Eric Blake  <ebb9@byu.net>
76113
76114         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76115
76116 2005-11-04  Bruno Haible  <bruno@clisp.org>
76117
76118         * gnulib-tool: Implement --update mode.
76119
76120 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76121
76122         Fix porting problem reported by Theodoros V. Kalamatianos.
76123         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76124         Don't assume that futimes failing means we must fail.
76125
76126 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76127
76128         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76129         variables to suggest the intended function of the PATH_MAX check.
76130
76131 2005-10-30  Kean Johnston  <jkj@sco.com>
76132
76133         Trivial changes to support SCO systems.
76134         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76135         as PATH_MAX.
76136         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76137         where __ptr is null when no I/O is pending.
76138
76139 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76140
76141         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76142         leave errno alone.  Problem reported by Dmitry V. Levin.
76143
76144 2005-10-28  Simon Josefsson  <jas@extundo.com>
76145
76146         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76147         Test more.
76148
76149         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76150
76151         * modules/md2, modules/md2-tests: New files.
76152
76153 2005-10-28  Simon Josefsson  <jas@extundo.com>
76154
76155         * m4/inet_ntop.m4: More tests.
76156
76157         * m4/gc-md2.m4, md2.m4: New file.
76158
76159 2005-10-28  Simon Josefsson  <jas@extundo.com>
76160
76161         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76162         "restrict" keywords, as per POSIX.  Protect the function
76163         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76164         Don't use K&R prototypes.  Check the sprintf return values.
76165         Re-define EAFNOSUPPORT if not present.  Indent.
76166
76167         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76168         suggested by Bruno Haible <bruno@clisp.org>.
76169
76170         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76171
76172         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76173
76174         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76175         libgcrypt).
76176
76177         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76178
76179         * lib/md2.h, lib/md2.c: New files.
76180
76181 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76182
76183         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76184         errno alone.  Problem reported by Frederic Jolliton.
76185
76186 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76187
76188         * modules/verify (License): Change from GPL to LGPL.  This is a
76189         tiny module and there are apparently near-equivalents that are
76190         under the BSD license.
76191
76192 2005-10-24  Simon Josefsson  <jas@extundo.com>
76193
76194         * modules/sha1: Relicense to LGPL.
76195
76196 2005-10-24  Simon Josefsson  <jas@extundo.com>
76197
76198         * lib/md4.h: Shrink buffer size, now that we changed the type.
76199
76200 2005-10-23  Simon Josefsson  <jas@extundo.com>
76201
76202         * gnulib-tool (func_import): Fix --tests-base.
76203
76204 2005-10-22  Simon Josefsson  <jas@extundo.com>
76205
76206         * modules/arcfour (Depends-on): Need stdint.
76207
76208 2005-10-22  Simon Josefsson  <jas@extundo.com>
76209
76210         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76211         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76212
76213 2005-10-22  Simon Josefsson  <jas@extundo.com>
76214
76215         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76216         suggested by Bruno Haible <bruno@clisp.org>.
76217
76218 2005-10-22  Simon Josefsson  <jas@extundo.com>
76219
76220         * lib/crc.h: Include stddef.h, for size_t.
76221
76222 2005-10-22  Simon Josefsson  <jas@extundo.com>
76223
76224         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76225         arcfour_context struct (simplify test vector testing in GNU
76226         Shishi).
76227
76228 2005-10-21  Simon Josefsson  <jas@extundo.com>
76229
76230         * modules/des, modules/des-tests: New files.
76231
76232         * modules/gc-des, modules/gc-des-tests: New files.
76233
76234         * tests/test-des.c, tests/test-gc-des.c: New file.
76235
76236 2005-10-21  Simon Josefsson  <jas@extundo.com>
76237
76238         * modules/arctwo, modules/arctwo-tests: New files.
76239
76240         * tests/test-arctwo.c: New file.
76241
76242         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76243
76244         * tests/test-gc-arctwo.c: New file.
76245
76246 2005-10-21  Simon Josefsson  <jas@extundo.com>
76247
76248         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76249         Bruno Haible <bruno@clisp.org>.
76250
76251         * m4/gc-des.m4: New file.
76252
76253 2005-10-21  Simon Josefsson  <jas@extundo.com>
76254
76255         * m4/arctwo.m4: New file.
76256
76257         * m4/gc-arctwo.m4: New file.
76258
76259 2005-10-21  Simon Josefsson  <jas@extundo.com>
76260
76261         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76262         block.
76263
76264 2005-10-21  Simon Josefsson  <jas@extundo.com>
76265
76266         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76267         <bruno@clisp.org>.
76268
76269         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76270
76271         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76272         Bruno Haible <bruno@clisp.org>.
76273
76274         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76275         <bruno@clisp.org>.
76276
76277 2005-10-21  Simon Josefsson  <jas@extundo.com>
76278
76279         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76280
76281 2005-10-21  Simon Josefsson  <jas@extundo.com>
76282
76283         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76284
76285 2005-10-21  Simon Josefsson  <jas@extundo.com>
76286
76287         * lib/des.h, lib/des.c: New files.
76288
76289         * lib/gc-gnulib.c: Support DES.c
76290
76291 2005-10-21  Simon Josefsson  <jas@extundo.com>
76292
76293         * lib/arctwo.h, lib/arctwo.c: New files.
76294
76295         * lib/gc-gnulib.c: Support ARCTWO.
76296
76297 2005-10-21  Simon Josefsson  <jas@extundo.com>
76298
76299         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76300         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76301
76302 2005-10-21  Simon Josefsson  <jas@extundo.com>
76303
76304         * gnulib-tool (func_import, func_create_testdir): Define automake
76305         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76306         Makefile.am snippet),
76307         suggested by Bruno Haible <bruno@clisp.org>.
76308
76309         * modules/gc (Makefile.am): Use it.
76310
76311 2005-10-21  Bruno Haible  <bruno@clisp.org>
76312
76313         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76314         patch.
76315
76316 2005-10-19  Simon Josefsson  <jas@extundo.com>
76317
76318         * tests/test-gc-rijndael.c: New file.
76319
76320         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76321
76322 2005-10-19  Simon Josefsson  <jas@extundo.com>
76323
76324         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76325         interface too.
76326
76327 2005-10-19  Simon Josefsson  <jas@extundo.com>
76328
76329         * tests/test-gc-arcfour.c: New file.
76330
76331         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76332
76333 2005-10-19  Simon Josefsson  <jas@extundo.com>
76334
76335         * modules/gc-md4, modules/gc-md4-tests: New file.
76336
76337         * tests/test-gc-md4.c: New file.
76338
76339 2005-10-19  Simon Josefsson  <jas@extundo.com>
76340
76341         * m4/gc-md4.m4: New file.
76342
76343 2005-10-19  Simon Josefsson  <jas@extundo.com>
76344
76345         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76346         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76347         <kasal@ucw.cz>.
76348
76349 2005-10-19  Simon Josefsson  <jas@extundo.com>
76350
76351         * m4/gc-arcfour.m4: New file.
76352
76353         * m4/gc-rijndael.m4: New file.
76354
76355 2005-10-19  Simon Josefsson  <jas@extundo.com>
76356
76357         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76358
76359 2005-10-19  Simon Josefsson  <jas@extundo.com>
76360
76361         * lib/gc-gnulib.c: Support ARCFOUR.
76362
76363 2005-10-19  Simon Josefsson  <jas@extundo.com>
76364
76365         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76366         support.
76367
76368         * lib/gc.h: Add ECB enum type.
76369
76370         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76371
76372 2005-10-18  Simon Josefsson  <jas@extundo.com>
76373
76374         * tests/test-md5.c: New file.
76375
76376         * modules/md5-tests: New file.
76377
76378 2005-10-18  Simon Josefsson  <jas@extundo.com>
76379
76380         * tests/test-md4.c: New file.
76381
76382         * modules/md4, modules/md4-tests: New files.
76383
76384 2005-10-18  Simon Josefsson  <jas@extundo.com>
76385
76386         * m4/md4.m4: New file.
76387
76388 2005-10-18  Simon Josefsson  <jas@extundo.com>
76389
76390         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76391
76392 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76393
76394         * gnulib-tool (func_create_testdir): Omit the second check whether
76395         BUILT_SOURCES in nonempty.
76396
76397 2005-10-17  Simon Josefsson  <jas@extundo.com>
76398
76399         * tests/test-rijndael.c: New file.
76400
76401 2005-10-17  Simon Josefsson  <jas@extundo.com>
76402
76403         * modules/sha1: Depend on stdint instead of md5.
76404
76405         * modules/md5: Depend on stdint, remove uint32_t.
76406
76407 2005-10-17  Simon Josefsson  <jas@extundo.com>
76408
76409         * modules/gc-sha1-tests: New file.
76410
76411         * tests/test-gc-sha1.c: New file.
76412
76413 2005-10-17  Simon Josefsson  <jas@extundo.com>
76414
76415         * m4/md5.m4: Remove call to uint32_t.m4.
76416
76417 2005-10-17  Simon Josefsson  <jas@extundo.com>
76418
76419         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76420
76421         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76422         md5.h.
76423
76424         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76425
76426         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76427
76428 2005-10-17  Simon Josefsson  <jas@extundo.com>
76429
76430         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76431
76432 2005-10-17  Simon Josefsson  <jas@extundo.com>
76433
76434         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76435
76436 2005-10-17  Simon Josefsson  <jas@extundo.com>
76437
76438         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76439
76440         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76441
76442 2005-10-17  Bruno Haible  <bruno@clisp.org>
76443
76444         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76445         that it can also be used in a test.
76446
76447 2005-10-16  Bruno Haible  <bruno@clisp.org>
76448
76449         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76450         TESTS_ENVIRONMENT, so that individual tests can augment it.
76451
76452         * gnulib-tool (func_create_testdir): Use an intermediate target for
76453         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76454         macros, like $(ALLOCA_H), which cannot be passed through the command
76455         line.
76456
76457 2005-10-15  Simon Josefsson  <jas@extundo.com>
76458
76459         * modules/rijndael-tests: New file.
76460
76461         * modules/rijndael: New file.
76462
76463 2005-10-15  Simon Josefsson  <jas@extundo.com>
76464
76465         * m4/rijndael.m4: New file.
76466
76467 2005-10-15  Simon Josefsson  <jas@extundo.com>
76468
76469         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76470
76471         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76472
76473 2005-10-14  Simon Josefsson  <jas@extundo.com>
76474
76475         * tests/test-arcfour.c: New file.
76476
76477         * modules/arcfour, modules/arcfour-tests: New files.
76478
76479 2005-10-14  Simon Josefsson  <jas@extundo.com>
76480
76481         * m4/arcfour.m4: New file.
76482
76483 2005-10-14  Simon Josefsson  <jas@extundo.com>
76484
76485         * lib/arcfour.h, lib/arcfour.c: New files.
76486
76487 2005-10-14  Roland McGrath  <roland@redhat.com>
76488
76489         Import from libc.  [BZ #1331]
76490         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76491         macro argument.
76492         Reported by Matej Vela <vela@debian.org>.
76493
76494 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76495
76496         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76497         include <wchar.h>; no longer needed.
76498
76499 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76500
76501         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76502
76503 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76504         and  Ulrich Drepper  <drepper@redhat.com>
76505
76506         Import from libc.
76507         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76508         instead of inline stream orientation test and two separate
76509         function calls.  Pay no attention to USE_IN_LIBIO.
76510
76511 2005-10-13  Simon Josefsson  <jas@extundo.com>
76512
76513         * modules/gc-hmac-md5-tests: New file.
76514
76515         * tests/test-gc-hmac-sha1.c: New file.
76516
76517         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76518
76519         * modules/gc-hmac-md5-tests: New file.
76520
76521         * tests/test-gc-md5.c: New file.
76522
76523         * modules/gc-md5-tests: New file.
76524
76525 2005-10-13  Simon Josefsson  <jas@extundo.com>
76526
76527         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76528         Move memory allocation outside of loop.
76529
76530 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76531
76532         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76533         intermediate directory is in a read-only file system.  Problem
76534         reported by Eric Blake.
76535
76536 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76537
76538         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76539
76540 2005-10-12  Simon Josefsson  <jas@extundo.com>
76541
76542         * tests/test-hmac-sha1.c: New file.
76543
76544         * modules/hmac-sha1-tests: New file.
76545
76546         * modules/hmac-sha1: New file.
76547
76548 2005-10-12  Simon Josefsson  <jas@extundo.com>
76549
76550         * modules/gc-sha1: New file.
76551
76552 2005-10-12  Simon Josefsson  <jas@extundo.com>
76553
76554         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76555
76556         * tests/test-gc-pbkdf2-sha1.c: New file.
76557
76558 2005-10-12  Simon Josefsson  <jas@extundo.com>
76559
76560         * modules/gc-md5, modules/gc-hmac-md5: New files.
76561
76562         * modules/gc (Files): Remove md5, memxor and hmac files.
76563
76564 2005-10-12  Simon Josefsson  <jas@extundo.com>
76565
76566         * m4/gc-pbkdf2-sha1.m4: New file.
76567
76568         * m4/gc-hmac-sha1.m4: New file.
76569
76570         * m4/gc-sha1: New file.
76571
76572         * m4/hmac-sha1.m4: New file.
76573
76574 2005-10-12  Simon Josefsson  <jas@extundo.com>
76575
76576         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76577
76578         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76579
76580 2005-10-12  Simon Josefsson  <jas@extundo.com>
76581
76582         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76583         suggested by Bruno Haible <bruno@clisp.org>.
76584
76585 2005-10-12  Simon Josefsson  <jas@extundo.com>
76586
76587         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76588
76589 2005-10-12  Simon Josefsson  <jas@extundo.com>
76590
76591         * lib/gc-pbkdf2-sha1.c: New file.
76592
76593         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76594
76595 2005-10-12  Simon Josefsson  <jas@extundo.com>
76596
76597         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76598
76599         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76600
76601 2005-10-12  Simon Josefsson  <jas@extundo.com>
76602
76603         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76604         GC_USE_HMAC_MD5, respectively.
76605
76606         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76607         (gc_md5): Fix typo.
76608
76609         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76610
76611         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76612
76613         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76614
76615 2005-10-12  Bruno Haible  <bruno@clisp.org>
76616
76617         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76618         Reported by Stepan Kasal <kasal@ucw.cz>.
76619
76620 2005-10-11  Simon Josefsson  <jas@extundo.com>
76621
76622         * tests/test-crc.c: New file.
76623
76624         * modules/crc, modules/crc-tests: New files.
76625
76626 2005-10-11  Simon Josefsson  <jas@extundo.com>
76627
76628         * m4/crc.m4: New file.
76629
76630 2005-10-11  Simon Josefsson  <jas@extundo.com>
76631
76632         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76633
76634         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76635
76636         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76637
76638 2005-10-11  Simon Josefsson  <jas@extundo.com>
76639
76640         * lib/crc.h, lib/crc.c: New files.
76641
76642         * lib/gc.h (gc_hash_buffer): Add doc.
76643
76644 2005-10-11  Bruno Haible  <bruno@clisp.org>
76645
76646         * modules/c-strcasestr: New file.
76647         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76648
76649 2005-10-11  Bruno Haible  <bruno@clisp.org>
76650
76651         * modules/c-strcase: New file.
76652         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76653
76654 2005-10-11  Bruno Haible  <bruno@clisp.org>
76655
76656         * lib/strcasecmp.c: Include limits.h.
76657         (strcasecmp): Avoid integer overflow on exotic platforms.
76658         * lib/strncasecmp.c: Include limits.h.
76659         (strncasecmp): Avoid integer overflow on exotic platforms.
76660         Reported by Paul Eggert.
76661
76662 2005-10-11  Bruno Haible  <bruno@clisp.org>
76663
76664         * lib/c-strcasestr.h: New file, from GNU gettext.
76665         * lib/c-strcasestr.c: New file, from GNU gettext.
76666
76667 2005-10-11  Bruno Haible  <bruno@clisp.org>
76668
76669         * lib/c-strcase.h: New file, from GNU gettext.
76670         * lib/c-strcasecmp.c: New file, from GNU gettext.
76671         * lib/c-strncasecmp.c: New file, from GNU gettext.
76672
76673 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76674
76675         * modules/mempcpy (License): GPL -> LGPL.
76676         * modules/strchrnul (License): Likewise.
76677         * modules/sysexits (License): Likewise.
76678
76679 2005-10-08  Simon Josefsson  <jas@extundo.com>
76680
76681         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76682
76683 2005-10-07  Simon Josefsson  <jas@extundo.com>
76684
76685         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76686
76687 2005-10-06  Simon Josefsson  <jas@extundo.com>
76688
76689         * tests/test-hmac-md5.c: New file.
76690
76691         * modules/hmac-md5-tests: New file.
76692
76693         * modules/hmac-md5: New file.
76694
76695 2005-10-06  Simon Josefsson  <jas@extundo.com>
76696
76697         * m4/hmac-md5.m4: New file.
76698
76699         * m4/memxor.m4: Require gl_C_RESTRICT.
76700
76701 2005-10-06  Simon Josefsson  <jas@extundo.com>
76702
76703         * lib/memxor.c (memxor): Avoid casts and warnings.
76704
76705 2005-10-06  Simon Josefsson  <jas@extundo.com>
76706
76707         * lib/hmac-md5.c: New file.
76708
76709         * lib/hmac.h: New file.
76710
76711 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76712
76713         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76714         promotes to int, not unsigned int, to catch the AIX 5.3
76715         compiler bug.
76716
76717 2005-10-05  Simon Josefsson  <jas@extundo.com>
76718
76719         * modules/memxor: New file.
76720
76721         * modules/iconv (Files): Move config.rpath to havelib, it is used
76722         there.
76723
76724         * modules/havelib (Files): Add config.rpath.
76725
76726 2005-10-05  Simon Josefsson  <jas@extundo.com>
76727
76728         * m4/memxor.m4: New file.
76729
76730 2005-10-05  Simon Josefsson  <jas@extundo.com>
76731
76732         * lib/memxor.c (memxor): Fix compiler error.
76733
76734         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76735         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76736
76737         * lib/memxor.h, lib/memxor.c: New files.
76738
76739         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76740         we assume all systems have it, suggested by Jim Meyering
76741         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76742         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76743         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76744         same reasons.
76745
76746 2005-10-05  Simon Josefsson  <jas@extundo.com>
76747
76748         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76749
76750 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76753         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76754         needed, since the source code now assumes these .h files.
76755
76756 2005-10-05  Derek Price  <derek@ximbiot.com>
76757
76758         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76759
76760 2005-10-05  Bruno Haible  <bruno@clisp.org>
76761
76762         * modules/stdint (License): Change to LGPL.
76763
76764 2005-10-04  Simon Josefsson  <jas@extundo.com>
76765
76766         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76767         D. Baushke" <mdb@gnu.org>.
76768
76769 2005-10-04  Bruno Haible  <bruno@clisp.org>
76770
76771         * lib/verify.h (verify_true): Provide alternative definition for C++.
76772
76773 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76774
76775         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76776         (SSIZE_MAX): New macro, if not already defined.
76777         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76778         than 2 GiB.
76779
76780 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76781
76782         Sync from coreutils.
76783         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76784         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76785         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76786         ULLONG_MAX doesn't work with 2.7.2.1.
76787
76788 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76791         From Ben Pfaff.
76792
76793         * modules/exclude (Depends-on): Depend on verify.
76794         * modules/strtoimax (Depends-on): Likewise.
76795         * modules/utimecmp (Depends-on): Likewise.
76796
76797 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76798
76799         * lib/exclude.c: Include verify.h.
76800         (verify): Remove.  All callers changed to use verify.h's version.
76801         * lib/strtoimax.c: Likewise.
76802         * lib/utimecmp.c: Likewis.e
76803
76804         Sync from coreutils.
76805         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76806         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76807         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76808         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76809         bother returning ENOSYS if settimeofday or stime fails; just let
76810         them return whatever errno they want to return.
76811         * lib/utimens.c: Include unistd.h, for dup2.
76812         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76813         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76814
76815 2005-10-02  Jim Meyering  <jim@meyering.net>
76816
76817         Sync from coreutils.
76818         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76819         from glibc-2.2.5 that fails for read-only files.
76820
76821 2005-10-02  Jim Meyering  <jim@meyering.net>
76822
76823         Sync from coreutils.
76824         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76825         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76826         `#if HAVE_CONFIG_H'.
76827         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76828         Remove AT_FDCWD test.
76829         Do not consume the fd unless successful.
76830         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76831         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76832         block, so that we don't even try to compile it if settimeofday is
76833         available.  This works around a compilation failure on OSF1 V5.1,
76834         due to stime requiring a `long int*' while tv_sec is `int'.
76835
76836 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76837
76838         Sync from coreutils.
76839         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76840         against `yes', rather than just testing for nonempty.
76841
76842 2005-10-01  Simon Josefsson  <jas@extundo.com>
76843
76844         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76845         and Darwin.
76846
76847         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76848         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76849         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76850         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76851         Check if struct addrinfo is declared.
76852
76853 2005-10-01  Simon Josefsson  <jas@extundo.com>
76854
76855         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76856         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76857         AI_* and EAI_* definitions.  Protect function declarations.
76858
76859 2005-10-01  Jim Meyering  <jim@meyering.net>
76860
76861         Sync from coreutils.
76862
76863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76864         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76865         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76866         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76867         in the inet and nsl libraries.  Required on Solaris 5.7.
76868
76869 2005-10-01  Jim Meyering  <jim@meyering.net>
76870
76871         Sync from coreutils.
76872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76873         in the inet and nsl libraries.  Required on Solaris 5.7.
76874
76875 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76876
76877         * lib/getdelim.c (getdelim): Remove unused variables.
76878
76879 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76880
76881         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76882         so that the code works even with ancient cpp.  Portability problem
76883         with GCC 2.7.2.1 reported by Thomas M.Ott.
76884
76885 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76886
76887         * modules/regex (Depends-on): Add strcase.
76888
76889         * modules/gethostname (Licence): Change from GPL to LGPL, since
76890         gethostname.c is a trivial implementation of a standard library
76891         function.
76892         * modules/poll (License): Change from GPL to LGPL, since it's
76893         derived from LGPL code.
76894
76895 2005-09-27  Jim Meyering  <jim@meyering.net>
76896
76897         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76898         HAVE_CONFIG_H.
76899
76900         * lib/intprops.h (signed_type_or_expr__): Define.
76901         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76902         for unsigned types.
76903
76904 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         * lib/verify.h (verify_expr): Remove, replacing with:
76907         (verify_true): New macro that returns true instead of void.
76908         (verify_type__): Remove.
76909         (verify): Use verify_true rather than verify_type__.
76910
76911 2005-09-26  Bruno Haible  <bruno@clisp.org>
76912
76913         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76914         is necessary.
76915         (lib_SOURCES): Remove mbchar.c.
76916         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76917         (Files): Add m4/mbrtowc.m4.
76918         * modules/mbiter: Likewise.
76919         * modules/mbuiter: Likewise.
76920
76921 2005-09-26  Bruno Haible  <bruno@clisp.org>
76922
76923         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76924         compile mbchar.c if they are not both present.
76925         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76926         * m4/mbiter.m4 (gl_MBITER): Likewise.
76927         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76928         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76929         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76930
76931 2005-09-25  Jim Meyering  <jim@meyering.net>
76932
76933         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76934         also uses socklen_t.
76935
76936 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76937
76938         * lib/utimens.c (ENOSYS): Define if not already defined.
76939         (futimens): Support having a null PATH if the file descriptor
76940         is nonnegative.
76941
76942         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76943         Remove.
76944         (__attribute): Define to empty unless GCC 3.1 or later.
76945         This works around a core dump on OpenBSD 3.4, which has GCC
76946         2.95.3, which dumps core when given __attribute__(()).  It also
76947         simplifies other tests, since we really don't want to bother with
76948         worrying about which ancient version of GCC supported what.
76949         Original problem reported by Yoann Vandoorselaere, with part of
76950         the fix suggested by Derek Price.
76951
76952 2005-09-24  Jim Meyering  <jim@meyering.net>
76953
76954         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76955         so we can once again use a positive bitfield width of 1 -- now we
76956         don't have to explain why we were using a bitfield width of 2.
76957
76958 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76961         and similarly for the other external symbols.  Problem reported
76962         by James Gallager.
76963
76964         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76965         bug reported by Jim Meyering.
76966
76967         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76968         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76969         not needed, since socklen is a prerequisite module.
76970
76971 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76974         Problem reported by Eric Blake.
76975         (getaddrinfo): Initialize se so that it's not garbage.
76976         Redo internal storage allocation so that it doesn't make unportable
76977         assumptions about alignment.
76978         Fix a memory leak.
76979
76980         * lib/utimens.c (futimens): Use futimesat if available.
76981         Prefer it to futimes since it doesn't have the futimes bug.
76982
76983         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76984         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76985         Instead, declare a function that returns a pointer to an array,
76986         and use verify_type__ to declare the size of the array.
76987         Problem and germ of a solution reported by Bruno Haible.
76988         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76989         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76990
76991 2005-09-23  Jim Meyering  <jim@meyering.net>
76992
76993         Sync from coreutils.
76994         Correct build failure (socklen_t not defined) on at least
76995         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76996         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76997
76998 2005-09-23  Jim Meyering  <jim@meyering.net>
76999
77000         * modules/getaddrinfo (Depends-on): Add socklen.
77001
77002 2005-09-23  Bruno Haible  <bruno@clisp.org>
77003
77004         * tests/test-verify.c: New file.
77005
77006 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77007
77008         Sync from coreutils.
77009
77010         * modules/argmatch (Depends-on): Add verify.
77011         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
77012         unistd-safer.
77013         * modules/save-cwd (Depends-on): Likewise.
77014
77015         * modules/openat (Files): Add lib/openat-die.c.
77016         (Depends-on): Remove error, exitfail.
77017         Add dirname.
77018
77019         * modules/verify: New file.
77020         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77021         with "verify" module.
77022
77023 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         Sync from coreutils.
77026
77027         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77028         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77029         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77030         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77031         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77032         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77033         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77034         Don't bother checking for string.h, stdlib.h, unistd.h.
77035         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77036         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77037         module's job.
77038         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77039         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77040
77041         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77042         (gl_GETDATE): Use it.
77043
77044         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77045
77046 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77047
77048         Sync from coreutils.
77049
77050         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77051         stat-time.h.
77052         * lib/argmatch.h: Include verify.h
77053         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77054         (ARGMATCH_ASSERT): Remove; unused.
77055         * lib/canonicalize.c: Assume STDC_HEADERS.
77056         * lib/exclude.c: Include "strcase.h".
77057         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77058         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77059         and stdio-safer.h.
77060         (getusershell): Call fopen, not fopen_safer.
77061         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77062         Do not include unistd-safer.h.
77063         (save_cwd): Don't call fd_safer; no longer needed
77064         now that we include fcntl--.h.
77065
77066         * lib/getdate.y (relative_time): New type.
77067         (RELATIVE_TIME_0): New constant.
77068         (parser_control): Use relative_time instead of doing it ourselves.
77069         (%union): Add new relative_time rel member.
77070         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77071         Now typeless.
77072         (relunit, relunit_snumber): Now of type rel.
77073         (zone, rel, relunit, get_date): Adjust to above changes.
77074
77075         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77076         Do not include unistd-safer.h.
77077         (getloadavg): Don't call fd_safer; no longer needed
77078         now that we include fcntl--.h.
77079
77080         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77081         (make_dir_parents): Treat ENOSYS like EEXIST.
77082
77083         Improve quality of diagnostics on restore_cwd failure.
77084         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77085         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77086         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77087         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77088         each time through the loop.  Do not diagnose restore_cwd failure;
77089         that is the caller's job (and perhaps the caller does not care).
77090
77091         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77092         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77093         If the file already exists but is not a directory, don't bother
77094         to try to make its parents.
77095         Close potential file descriptor leak if we can't chdir("/") (!).
77096         Don't always return true if chdir($PWD) fails; return true only
77097         if the requested action was done successfully (except for the
77098         chdir($PWD)).
77099         Don't log final directory unless we actually made it.
77100         Refactor to avoid duplicate code to fix up permissions.
77101         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77102
77103         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77104         to make it a bit faster and (I hope) clearer.
77105         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77106         Fix bug in formats like %2N.
77107
77108         * lib/verify.h: New file.
77109
77110 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77111
77112         Sync from coreutils.
77113         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77114
77115 2005-09-22  Jim Meyering  <jim@meyering.net>
77116
77117         Sync from coreutils.
77118
77119         * m4/lstat.m4 (gl_FUNC_LSTAT):
77120         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77121         Remove obsolete comment.
77122         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77123         * m4/xstrtod.m4: Likewise.
77124
77125         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77126
77127 2005-09-22  Jim Meyering  <jim@meyering.net>
77128
77129         Sync from coreutils.
77130
77131         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77132
77133         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77134         the .tm_year member, since otherwise gcc-4.0 would now warn about
77135         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77136
77137         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77138         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77139
77140         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77141         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77142         when run in a time zone for which daylight savings time is in effect
77143         for the starting date.
77144
77145         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77146         stop us from restricting permissions of just-created absolute-named
77147         directories.
77148         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77149         to restore initial working directory.
77150         * lib/mkdir-p.c (make_dir_parents): New parameter:
77151         different_working_dir, to tell caller if/when we change the working
77152         directory and are unable to return to the initial one.
77153         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77154         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77155         `return false'.  This fixes a bug introduced on 2004-07-30.
77156
77157         * lib/openat.c (fdopendir): Be sure to close the supplied
77158         file descriptor before returning.  This makes our replacement
77159         implementation a little closer to Solaris's, where fdopendir
77160         ties the file descriptor to the returned DIR* pointer.
77161         * lib/openat.c (unlinkat): New function.
77162         * lib/openat.h (unlinkat): Add prototype.
77163         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77164         (openat_restore_fail): Rename from openat_restore_die.
77165         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77166
77167         Provide an alternative to exiting immediately upon save_cwd or
77168         restore_cwd failure.  Now, an application can arrange e.g.,
77169         to perform a longjump in that case.
77170         * lib/openat.c: Include dirname.h.
77171         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77172         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77173         and openat_restore_die rather than calling error directly.
77174         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77175
77176         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77177         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77178         define.
77179
77180         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77181         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77182                             int utc, int nanoseconds);
77183         Background:
77184         date should not have to allocate a megabyte of virtual memory to
77185         handle a format argument like +%1048575T.  When implemented with
77186         strftime, it must allocate such a buffer, use strftime to fill it
77187         in, print it, then free it.
77188         With fprintftime, it simply prints everything and exits.
77189         With no need for memory allocation, that's one fewer way to fail.
77190         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77191         optional field width, not before, so we accept %9:z, not %:9z.
77192         (my_strftime): Be sure to use L_('x') for literals.
77193
77194         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77195         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77196         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77197         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77198         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77199         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77200         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77201         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77202         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77203         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77204         * lib/xgethostname.c, lib/xreadlink.c:
77205         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77206
77207         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77208         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77209         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77210         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77211         and don't include <sys/file.h>).
77212
77213 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77214
77215         Sync from coreutils.
77216
77217         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77218         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77219         [!LDAV_DONE]: Avoid unused variable warning.
77220
77221 2005-09-21  Bruno Haible  <bruno@clisp.org>
77222
77223         * lib/unicodeio.h (unicode_to_mb): New declaration.
77224
77225 2005-09-20  Derek Price  <derek@ximbiot.com>
77226
77227         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77228         getaddrinfo.h.
77229
77230 2005-09-20  Bruno Haible  <bruno@clisp.org>
77231
77232         * gnulib-tool: Remove trailing slashes from the values specified for
77233         --source-base, --m4-base, --tests-base, --aux-dir.
77234         Suggested by Simon Josefsson <jas@extundo.com>.
77235
77236 2005-09-20  Bruno Haible  <bruno@clisp.org>
77237
77238         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77239         func_modules_to_filelist, func_import, func_create_testdir): Make all
77240         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77241         change when gnulib-tool is invoked in a different locale.
77242
77243 2005-09-19  Simon Josefsson  <jas@extundo.com>
77244
77245         * m4/socklen.m4: Fix typo.
77246
77247 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77248
77249         Use a consistent style for including <config.h>.
77250         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77251         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77252         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77253         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77254         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77255         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77256         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77257         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77258         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77259         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77260         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77261         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77262         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77263         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77264         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77265         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77266         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77267         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77268         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77269         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77270         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77271         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77272         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77273         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77274         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77275         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77276         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77277         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77278         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77279         lib/xstrtoumax.c, lib/yesno.c:
77280         Standardize inclusion of config.h.
77281         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77282         lib/inttostr.h:  Removed inclusion of config.h from header files.
77283         * lib/inttostr.c:  Adjusted in-tree users.
77284         * lib/timespec.h: Remove superfluous warning to include config.h.
77285         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77286         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77287         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77288         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77289         config.h with HAVE_CONFIG_H.
77290
77291 2005-09-19  Jim Meyering  <jim@meyering.net>
77292
77293         * modules/pathmax (License): Change to LGPL.
77294
77295 2005-09-19  Derek Price  <derek@ximbiot.com>
77296
77297         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77298
77299 2005-09-19  Bruno Haible  <bruno@clisp.org>
77300
77301         * gnulib-tool (import): Provide default for --tests-base.
77302
77303 2005-09-19  Bruno Haible  <bruno@clisp.org>
77304
77305         * doc/quote.texi: New file, extracted from gnulib.texi.
77306         * doc/ctime.texi: New file, extracted from gnulib.texi.
77307         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77308         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77309         * doc/gnulib.texi: Include them.
77310
77311 2005-09-18  Bruno Haible  <bruno@clisp.org>
77312
77313         Portability fix.
77314         * gnulib-tool (func_readlink): New function.
77315         (func_ln_if_changed): Use it.
77316
77317 2005-09-18  Bruno Haible  <bruno@clisp.org>
77318
77319         * gnulib-tool: Support --with-tests also with --import.
77320         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77321         (func_import): Use variables $testsbase and $inctests. Emit a
77322         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77323         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77324         SUBDIRS += $testsdir.
77325         (func_create_testdir): Update.
77326
77327 2005-09-18  Bruno Haible  <bruno@clisp.org>
77328
77329         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77330         instead of $dry_run.
77331         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77332         (func_ln_if_changed): Don't handle dry-run here.
77333         (func_import): In dry-run mode, detect more precisely which actions
77334         would be performed, and don't use "...ing" verbs.
77335
77336 2005-09-18  Bruno Haible  <bruno@clisp.org>
77337
77338         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77339         (func_import): Use join on two temporary files instead of three nested
77340         loops, in order to determine which files are new or old.
77341
77342 2005-09-18  Bruno Haible  <bruno@clisp.org>
77343
77344         * gnulib-tool (func_import): Comment out code that spits out the
77345         new files with --dry-run.
77346
77347 2005-09-18  Bruno Haible  <bruno@clisp.org>
77348
77349         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77350
77351 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * lib/stat-time.h: New file.
77354         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77355         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77356         in a different way.
77357         (timespec_cmp): New function.
77358         * lib/utimecmp.c: Include stat-time.h.
77359         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77360         members exist, not on the obsolescent ST_MTIM_NSEC.
77361         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77362
77363 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77366
77367 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77368
77369         * MODULES.html.sh (File system functions): Add stat-time.
77370         * modules/stat-time: New file.
77371         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77372         is now done in a different way, by the stat-time module.
77373         * modules/utimecmp (Depends-on): Add stat-time.
77374
77375 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77376
77377         * m4/st_mtim.m4: Remove.  Superseded by...
77378         * m4/stat-time.m4: New file.
77379         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77380         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77381
77382 2005-09-15  Derek Price  <derek@ximbiot.com>
77383
77384         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77385
77386 2005-09-15  Derek Price  <derek@ximbiot.com>
77387
77388         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77389         * lib/regex_internal.c: Ditto, using this...
77390         (__GNUC_PREREQ): ...new macro.
77391         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77392         using...
77393         (__GNUC_PREREQ): ...this new macro.
77394
77395         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77396
77397 2005-09-15  Derek Price  <derek@ximbiot.com>
77398             Paul Eggert  <eggert@cs.ucla.edu>
77399
77400         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77401         changes, consolidating in...
77402         * lib/regex_internal.h: ...this file.
77403
77404 2005-09-13  Jim Meyering  <jim@meyering.net>
77405
77406         * lib/canon-host.c: Filter through gnu indent and reword comments
77407         slightly.
77408         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77409
77410 2005-09-13  Derek Price  <derek@ximbiot.com>
77411
77412         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77413         failure.
77414         Reported by Jim Meyering  <jim@meyering.net>.
77415
77416 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77417
77418         * lib/base64.c: Typo.
77419         (base64_encode): Put b64str in initialized data section.
77420
77421 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77422
77423         Merge glibc and coreutils changes into gnulib, plus a few
77424         extra fixes.
77425         * lib/md5.c: Use #error rather than a string.
77426         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77427         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77428         (__attribute__): Define to empty for non recent-GCC.
77429         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77430         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77431         Renamed from their non-__ counterparts, with new macros replacing
77432         them if not _LIBC.  Add __THROW attribute.
77433         (rol): Remove.
77434         (struct md5_ctx): Align buffer if using GCC.
77435         * lib/sha1.h (struct sha1_ctx): Likewise.
77436         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77437         The old name was backwards.
77438         (NOTSWAP): Remove; not used.
77439         (rol): New macro, moved here from md5.h.
77440         (sha1_process_block): Remove a FIXME that doesn't make sense.
77441
77442 2005-09-12  Derek Price  <derek@ximbiot.com>
77443
77444         Return usable errors from canon-host.
77445         * lib/canon-host.h: New file.
77446         * lib/canon-host.c (canon_host): Wrap...
77447         (canon_host_r): ...this new function, which now relies exclusively on
77448         getaddrinfo.
77449         (ch_strerror): New function.
77450         (last_cherror): New global.
77451         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77452         interface.
77453         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77454         void *.
77455         (freeaddrinfo): Free ai->ai_canonname when set.
77456
77457 2005-09-12  Derek Price  <derek@ximbiot.com>
77458
77459         Make canon-host require getaddrinfo.
77460         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77461         AC_LIBSOURCE canon-host.h.  Call...
77462         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77463         gl_GETADDRINFO.
77464         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77465
77466 2005-09-12  Derek Price  <derek@ximbiot.com>
77467
77468         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77469         LGPL.
77470         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77471
77472 2005-09-12  Derek Price  <derek@ximbiot.com>
77473
77474         * lib/gai_strerror.c: Include config.h when available.  Include
77475         getaddrinfo.h before other headers to test interface.
77476         Reported by Larry Jones <lawrence.jones@ugs.com>.
77477
77478 2005-09-12  Derek Price  <derek@ximbiot.com>
77479             Paul Eggert  <eggert@cs.ucla.edu>
77480
77481         * modules/glob (Files): Add glob-libc.h.
77482
77483 2005-09-12  Derek Price  <derek@ximbiot.com>
77484             Paul Eggert  <eggert@cs.ucla.edu>
77485
77486         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77487         glob_.h, glob-libc.h.
77488         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77489
77490 2005-09-12  Derek Price  <derek@ximbiot.com>
77491             Paul Eggert  <eggert@cs.ucla.edu>
77492
77493         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77494         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77495         protecting things that should be done only in gnulib contexts.
77496         * lib/glob_.h: New file, containing only the glob things needed for
77497         gnulib.
77498         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77499         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77500         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77501         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77502         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77503         and to respect the namespace rules better.
77504
77505 2005-09-08  Simon Josefsson  <jas@extundo.com>
77506
77507         * modules/socklen: New file.
77508
77509 2005-09-08  Simon Josefsson  <jas@extundo.com>
77510
77511         * m4/socklen.m4: New file.
77512
77513 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77514
77515         * modules/utimens (Files): Add m4/utimbuf.m4, since
77516         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77517         Reported by Sergey Poznyakoff.
77518
77519 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77520
77521         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77522         definitions, since that's the preferred style in glibc.
77523         Fix a minor spacing issue, and update copyright notice to match
77524         glibc's.
77525
77526 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77527
77528         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77529
77530 2005-09-06  Simon Josefsson  <jas@extundo.com>
77531
77532         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77533         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77534
77535 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77538         warning.
77539
77540 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77541
77542         * config/srclist.txt: Add glibc bug 1302.
77543
77544 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77545
77546         Change bitset word type from unsigned int to unsigned long int,
77547         as this has better performance on typical 64-bit hosts.
77548         Port bitset code to hosts with unusual word sizes.
77549         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77550         (build_collating_symbol):
77551         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77552         argument is a bitset.  This is merely a style issue, but it makes
77553         it clearer that an entire array is expected.
77554         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77555         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77556         Port to the case where bitset_word is not the same as unsigned int.
77557         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77558         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77559         Likewise.
77560         * lib/regexec.c (check_dst_limits_calc_pos_1,
77561         check_subexp_matching_top):
77562         (build_trtable, group_nodes_into_DFAstates):
77563         Likewise.
77564         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77565         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77566         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77567         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77568         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77569         * lib/regcomp.c (optimize_subexps, lower_subexp):
77570         Work even if bitset_word has holes in its bitwise representation.
77571         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77572         * lib/regexec.c (check_dst_limits_calc_pos_1,
77573         check_subexp_matching_top):
77574         Likewise.
77575         * lib/regex_internal.c (re_string_reconstruct):
77576         Don't assume UCHAR_MAX == 255.
77577         * lib/regex_internal.h (bitset_set_all): Likewise.
77578         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77579         All uses changed.
77580         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77581         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77582         All uses changed.
77583         (BITSET_WORD_MAX): New macro.
77584         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77585         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77586         (bitset_empty, bitset_copy):
77587         Prefer sizeof (bitset) to multiplying it out ourselves.
77588         (bitset_not_merge): Remove; unused.
77589         (bitset_contain): Return bool, not unsigned int with one bit on.
77590         All callers changed.
77591         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77592         alignment than re_node_set; do this by defining a new internal
77593         type struct dests_alloc and using it to allocate memory.
77594
77595 2005-09-05  Bruno Haible  <bruno@clisp.org>
77596
77597         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77598         links.
77599
77600 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77601
77602         * modules/size_max (Makefile.am): Add size_max.h
77603
77604 2005-09-04  Derek Price  <derek@ximbiot.com>
77605
77606         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77607
77608 2005-09-03  Simon Josefsson  <jas@extundo.com>
77609
77610         * gnulib-tool: Fix typo.
77611
77612 2005-09-03  Simon Josefsson  <jas@extundo.com>
77613
77614         * config/srclist.txt: Add glibc bug 1293.
77615
77616 2005-09-03  Derek Price  <derek@ximbiot.com>
77617
77618         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77619         From Larry Jones <lawrence.jones@ugs.com>.
77620
77621 2005-09-02  Simon Josefsson  <jas@extundo.com>
77622
77623         * modules/socklen: New file.
77624
77625 2005-09-02  Simon Josefsson  <jas@extundo.com>
77626
77627         * modules/havelib: New module.
77628
77629         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77630         Use havelib.
77631
77632 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77633
77634         Check for arithmetic overflow when calculating sizes, to prevent
77635         some buffer-overflow issues.  These patches are conservative, in the
77636         sense that when I couldn't determine whether an overflow was possible,
77637         I inserted a run-time check.
77638         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77639         macros.
77640         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77641         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77642         (re_xnrealloc, re_x2nrealloc): New inline functions.
77643         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77644         parse_bracket_exp):
77645         (build_equiv_class, build_charclass): Check for arithmetic overflow
77646         in size expression calculations.
77647         * lib/regex_internal.c (re_string_realloc_buffers):
77648         (build_wcs_upper_buffer, re_node_set_add_intersect):
77649         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77650         (re_dfa_add_node, register_state): Likewise.
77651         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77652         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77653         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77654         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77655
77656 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77657
77658         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77659         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77660
77661 2005-09-02  Bruno Haible  <bruno@clisp.org>
77662
77663         Support for lib vs. lib64 distinction on biarch platforms.
77664         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77665         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77666         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77667
77668 2005-09-02  Bruno Haible  <bruno@clisp.org>
77669
77670         * gnulib-tool (import): In the other first-use case, provide defaults
77671         as well.
77672
77673 2005-09-02  Bruno Haible  <bruno@clisp.org>
77674
77675         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77676         patches not yet found in the latest gettext release.
77677
77678 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77679
77680         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77681         to avoid a collision with bits/local_lim.h in glibc.
77682         All uses changed.  Problem reported by Dmitry V. Levin in
77683         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77684
77685         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77686         bugs in int versus size_t comparisons.
77687         (re_string_context_at): Fix bug where the code assumed that
77688         Idx is signed.
77689
77690         Use bool where appropriate.
77691         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77692         All callers changed.
77693         (calc_eclosure_iter): Likewise, for ROOT arg.
77694         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77695         (build_charclass_op): Likewise, for NON_MATCH arg.
77696         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77697         (re_string_construct_common): Likewise, for ICASE arg.
77698         * lib/regexec.c (re_search_2_stub, re_search_stub):
77699         Likewise, for RET_LEN arg.
77700         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77701         (set_regs): Likewise, for FL_BACKTRACK arg.
77702         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77703         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77704         (calc_eclosure_iter, parse_bracket_exp):
77705         Use bool for internal variables that are booleans.
77706         * lib/regexec.c (re_search_internal, check_matching,
77707         proceed_next_node):
77708         (set_regs, build_sifted_states, sift_states_bkref):
77709         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77710         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77711         (find_collation_sequence_value):
77712         Likewise.
77713         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77714         (re_node_set_compare):
77715         Return bool, not int. All callers changed.
77716         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77717         (build_trtable, check_node_accept): Likewise.
77718         * lib/regex_internal.h: Include stdbool.h.
77719
77720         Fix bugs uncovered when converting to bool.
77721         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77722         failure instead of charging ahead blindly.
77723         * lib/regex_internal.c (register_state): Likewise.
77724         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77725         for freeing internal storage.
77726         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77727         bitset pieces used as boolean, to avoid undefined behavior
77728         on hosts that do int overflow checking.
77729
77730 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77731
77732         * config/srclist.txt: Add glibc bugs 1285-1287.
77733
77734 2005-09-01  Jim Meyering  <jim@meyering.net>
77735
77736         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77737         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77738         Require gl_STAT_MACROS, too.
77739
77740 2005-09-01  Bruno Haible  <bruno@clisp.org>
77741
77742         * gnulib-tool (import): In the first-use case, provide defaults.
77743
77744 2005-09-01  Bruno Haible  <bruno@clisp.org>
77745
77746         * gnulib-tool (func_import): Remove the .tmp files.
77747
77748 2005-09-01  Bruno Haible  <bruno@clisp.org>
77749
77750         * gnulib-tool (func_import): Fix handling of symbolic links.
77751
77752 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77753
77754         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77755         old glibc regex code mishandles strings longer than 2**31 bytes.
77756         This patch fixes this when the regex code is used in gnulib
77757         (i.e., outside glibc).
77758
77759         This patch should not affect the use of the regex code inside
77760         glibc.  No doubt this problem also needs to be handled for glibc
77761         as well, but the result will be an incompatible change to the
77762         glibc ABI, and the old ABI will have to be supported too.  That
77763         can be the the subject for another patch.
77764
77765         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77766         governing whether the rest of this patch is active.  By default,
77767         the macro is disabled and the patch has no effect.
77768         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77769         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77770         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77771         (re_match_2, re_set_registers): Use the new types.
77772         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77773         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77774         New macros.
77775         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77776         (re_string_context_at, bin_tree_t, re_dfastate_t):
77777         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77778         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77779         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77780         (re_string_char_size_at, re_string_wchar_at):
77781         (re_string_elem_size_at):
77782         Use the new types and macros to port to 64-bit hosts.
77783         Use unsigned types for internal values, so that the code
77784         mostly works even for arrays larger than SSIZE_MAX.
77785         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77786         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77787         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77788         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77789         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77790         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77791         (calc_inveclosure, parse_dup_op, build_range_exp):
77792         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77793         (fetch_number, create_token_tree, mark_opt_subexp):
77794         Likewise.
77795         * lib/regex_internal.c (re_string_construct_common,
77796         create_ci_newstate):
77797         (create_cd_newstate, re_string_allocate, re_string_construct):
77798         (re_string_realloc_buffers, build_wcs_upper_buffer):
77799         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77800         (re_string_reconstruct, re_string_peek_byte_case):
77801         (re_string_fetch_byte_case, re_string_context_at):
77802         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77803         (re_node_set_init_copy, re_node_set_add_intersect):
77804         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77805         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77806         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77807         (re_acquire_state, re_acquire_state_context, register_state):
77808         Likewise.
77809         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77810         search_cur_bkref_entry):
77811         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77812         (re_search_internal, re_search_2_stub, re_search_stub)
77813         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77814         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77815         (update_cur_sifted_state, check_dst_limits):
77816         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77817         (check_subexp_limits, sift_states_bkref, merge_state_array):
77818         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77819         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77820         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77821         (expand_bkref_cache, check_node_accept_bytes):
77822         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77823         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77824         (acquire_init_state_context, check_halt_node_context):
77825         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77826         (sift_states_backward, clean_state_log_if_needed):
77827         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77828         (find_recover_state, transit_state_sb, transit_state_mb):
77829         (transit_state_bkref, build_trtable, match_ctx_clean):
77830         Likewise.
77831         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77832         to work around an assumption that REG_MISSING is negative.
77833
77834         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77835         (seek_collating_symbol_entry) [defined _LIBC]:
77836         (lookup_collation_sequence_value) [defined _LIBC]:
77837         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77838         Use prototypes rather than old-style function definitions.
77839         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77840         (transit_state_sb) [0]:
77841         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77842
77843         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77844         rm_eo.
77845
77846         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77847         (optimize_subexps, lower_subexp):
77848         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77849         since the signed shift might overflow.  Use 1u<<31 instead.
77850         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77851         Likewise.
77852         * lib/regexec.c (check_dst_limits_calc_pos_1,
77853         check_subexp_matching_top): Likewise.
77854
77855         * lib/regcomp.c (optimize_subexps, lower_subexp):
77856         Use CHAR_BIT rather than 8, for clarity.
77857         * lib/regexec.c (check_dst_limits_calc_pos_1):
77858         (check_subexp_matching_top): Likewise.
77859         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77860         have to worry about portability issues when shifting it left.
77861         Remove no-longer-needed test for table_size > 0.
77862         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77863         in a word, as the resulting behavior is undefined.
77864         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77865         in one case, a <= should have been an <, and in another case the
77866         whole test was missing.
77867         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77868         the standard name CHAR_BIT.
77869         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77870         this is not true on one's complement and signed-magnitude hosts.
77871
77872         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77873         next_last_offset.
77874         (struct re_dfa_t): Remove unused member states_alloc.
77875         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77876
77877 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77878
77879         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77880         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77881         and large-file glibc and in 32-bit large-file Solaris.
77882
77883 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77884
77885         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77886         lengths fit in regoff_t; this isn't true if regoff_t is the same
77887         width as size_t.
77888         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77889         (= START + RANGE) instead of RANGE.  This avoids overflow
77890         problems when regoff_t is the same width as size_t.
77891         All callers changed.
77892         (re_search_2_stub): Check for overflow when adding the
77893         sizes of the two strings.
77894         (re_search_stub): Check for overflow when adding START
77895         to RANGE; if it occurs, substitute the extreme value.
77896
77897 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77900
77901 2005-08-31  Jim Meyering  <jim@meyering.net>
77902
77903         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77904         a pointer-to-const.
77905         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77906         (register_state): Likewise.
77907         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77908         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77909         (group_nodes_into_DFAstates): Likewise.
77910
77911 2005-08-31  Jim Meyering  <jim@meyering.net>
77912
77913         * check-module: Add a FIXME comment.
77914
77915 2005-08-31  Eric Blake  <ebb9@byu.net>
77916
77917         * modules/unistd-safer (Files): Add unistd--.h.
77918         * modules/stdio-safer (Files): Add stdio--.h.
77919
77920 2005-08-31  Derek Price  <derek@ximbiot.com>
77921
77922         * lib/getdelim.c (getdelim): Return EOF on EOF.
77923         Reported by Larry Jones <lawrence.jones@ugs.com>.
77924
77925 2005-08-31  Bruno Haible  <bruno@clisp.org>
77926
77927         Avoid unnecessary diffs in the generated lib/Makefile.am.
77928         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77929         the generated files.
77930         (func_import): Don't set cmd.
77931
77932 2005-08-31  Bruno Haible  <bruno@clisp.org>
77933
77934         * lib/strstr.c: Include <stddef.h>, for NULL.
77935         * lib/strcasestr.c: Likewise.
77936         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77937
77938 2005-08-31  Bruno Haible  <bruno@clisp.org>
77939
77940         * gnulib-tool: New option --macro-prefix.
77941         (func_import): Use macro_prefix.
77942         (import): Handle option --macro-prefix.
77943
77944 2005-08-31  Bruno Haible  <bruno@clisp.org>
77945
77946         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77947         Also use new variables cached_lgpl, cached_libtool.
77948
77949 2005-08-31  Bruno Haible  <bruno@clisp.org>
77950
77951         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77952         always instantiating them.
77953
77954 2005-08-31  Bruno Haible  <bruno@clisp.org>
77955
77956         * gnulib-tool (func_import): Read the previous cached settings
77957         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77958         earlier added by gnulib but are now dropped. Warn when a gnulib file
77959         overwrites a non-gnulib file.
77960
77961 2005-08-31  Bruno Haible  <bruno@clisp.org>
77962
77963         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77964         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77965         projects that don't keep autogenerated files in CVS. Put into
77966         actioncmd only the specified modules, not the transitive closure.
77967
77968 2005-08-31  Bruno Haible  <bruno@clisp.org>
77969
77970         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77971         Create directories that shall be filled.
77972         (import): Don't look for gl_* macros in configure.ac. Recurse across
77973         all directories containing a gnulib-cache.m4 files, if meaningful.
77974
77975 2005-08-31  Bruno Haible  <bruno@clisp.org>
77976
77977         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77978         (import): Set seen_libtool when we see gl_LIBTOOL.
77979
77980 2005-08-31  Bruno Haible  <bruno@clisp.org>
77981
77982         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77983         declaration macro definitions from generated gnulib.m4.
77984
77985 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77986
77987         * lib/iconvme.h: Add prototype for iconv_alloc.
77988
77989 2005-08-29  Simon Josefsson  <jas@extundo.com>
77990
77991         * lib/iconvme.c: Fix errno.
77992
77993 2005-08-29  Bruno Haible  <bruno@clisp.org>
77994
77995         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77996         that it works when the directory contains spaces.
77997
77998 2005-08-29  Bruno Haible  <bruno@clisp.org>
77999
78000         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
78001
78002 2005-08-29  Bruno Haible  <bruno@clisp.org>
78003
78004         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
78005         Emit more advice.
78006
78007 2005-08-29  Bruno Haible  <bruno@clisp.org>
78008         and Stepan Kasal  <kasal@ucw.cz>
78009
78010         * check-module: If more parameters are given, check each of them
78011         separately; add more exceptions, as noted by Jim Meyering.
78012         (check_module): New procedure.
78013         (%exempt_header): Now contains all exceptions.
78014
78015 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78016
78017         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78018
78019 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78020
78021         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78022
78023 2005-08-28  Bruno Haible  <bruno@clisp.org>
78024
78025         * m4/gnulib-tool.m4: New file.
78026
78027 2005-08-27  Jim Meyering  <jim@meyering.net>
78028
78029         * modules/unistd-safer (Files): Add pipe-safer.c.
78030         * modules/fcntl-safer (Files): Add creat-safer.c.
78031
78032 2005-08-27  Jim Meyering  <jim@meyering.net>
78033
78034         * m4/stdlib-safer.m4: New file.  From coreutils.
78035         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78036         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78037         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78038         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78039         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78040
78041 2005-08-27  Jim Meyering  <jim@meyering.net>
78042
78043         * lib/fopen-safer.c: Merge minor changes from coreutils.
78044         * lib/dup-safer.c: Likewise.
78045         * lib/fd-safer.c: Likewise.
78046
78047         Merge from coreutils.
78048         * lib/stdio--.h: New file.
78049         * lib/stdlib--.h: New file.
78050         * lib/mkstemp-safer.c: New file.
78051
78052         GNU tar needs these.
78053         * lib/pipe-safer.c: New file.
78054         * lib/creat-safer.c: New file.
78055         * lib/fcntl--.h (creat): Define to creat_safer.
78056         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78057         * lib/unistd--.h (pipe): Define to pipe_safer.
78058         * lib/unistd-safer.h: Declare pipe_safer.
78059
78060 2005-08-26  Simon Josefsson  <jas@extundo.com>
78061
78062         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78063         Haible <bruno@clisp.org>.
78064
78065 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78066
78067         * lib/regex_internal.h: Remove all references to
78068         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78069         or better.
78070         (bitset_not, bitset_merge, bitset_not_merge):
78071         (bitset_mask, re_string_allocate, re_string_construct):
78072         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78073         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78074         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78075         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78076         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78077         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78078         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78079         (re_acquire_state_context):
78080         Remove unnecessary forward decls.
78081         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78082         Put __attribute at function definition,
78083         now that the function decl has been removed.
78084         * lib/regex_internal.c (re_string_peek_byte_case):
78085         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78086         Likewise.
78087
78088 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78089
78090         * m4/regex.m4: Add AC_PREREQ(2.50).
78091         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78092
78093 2005-08-25  Simon Josefsson  <jas@extundo.com>
78094
78095         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78096         __fsetlocking.
78097
78098 2005-08-25  Simon Josefsson  <jas@extundo.com>
78099
78100         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78101         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78102         GLIBC specific code.
78103
78104 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78105
78106         Make regex safe for g++.  This fixes one real bug (an "err"
78107         that should have been "*err").  g++ problem reported by
78108         Sam Steingold.
78109         * lib/regex_internal.h (re_calloc): New macro, consistent with
78110         re_malloc etc.  All callers of calloc changed to use re_calloc.
78111         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78112         not int.  All callers changed.
78113         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78114         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78115         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78116         (find_recover_state): Change "err" to "*err"; this fixes what
78117         appears to be a real bug.
78118         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78119         versus int.
78120
78121 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78122
78123         * modules/regex (Depends-on): Add malloc, since the code
78124         assumes that !malloc(0) means failure.
78125
78126 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78127
78128         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78129
78130         alloca modernization/simplification for regex.
78131         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78132         needs to be at the start of the file, and can be moved into
78133         regex_internal.h and simplified.
78134         * lib/regex_internal.h: Include <alloca.h>.
78135         (__libc_use_alloca) [!defined _LIBC]: New macro.
78136         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78137         now works outside glibc.
78138
78139 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78140
78141         * config/srclist.txt: Add glibc bugs 1241, 1245.
78142
78143 2005-08-25  Jim Meyering  <jim@meyering.net>
78144
78145         * lib/open-safer.c: Include <config.h>.
78146         Otherwise, we'd lose LARGEFILE support in any file using
78147         e.g. "fcntl--.h"
78148
78149 2005-08-25  Bruno Haible  <bruno@clisp.org>
78150
78151         * m4/minmax.m4: Require autoconf 2.52.
78152         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78153         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78154         alternatives of translit over the alphabet.
78155         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78156
78157 2005-08-24  Simon Josefsson  <jas@extundo.com>
78158
78159         * tests/test-getpass.c: New file.
78160
78161 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78162
78163         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78164         for GNU regex features.
78165
78166 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78167
78168         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78169         * lib/regex.h (regerror): Likewise.
78170
78171         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78172         requires this.  (The code never needed it.)
78173
78174         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78175         All uses of recently-renamed identifiers changed to use the new,
78176         POSIX-compliant names.  The code will build and run just fine
78177         without these changes, but it's better to eat our own dog food
78178         and use the standard-conforming names.
78179
78180         * lib/regex.h: Fix a multitude of POSIX name space violations.
78181         These changes have an effect only for programs that define
78182         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78183         do not change anything for programs compiled in the normal way.
78184         Also, there is no effect on the ABI.
78185
78186         (_REGEX_SOURCE): New macro.
78187         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78188         defined and _GNU_SOURCE is not; this fixes a name space violation.
78189
78190         Rename the following macros to obey POSIX requirements.
78191         The old names are still visible as macros if _REGEX_SOURCE is defined.
78192         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78193         RE_BACKSLASH_ESCAPE_IN_LISTS.
78194         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78195         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78196         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78197         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78198         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78199         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78200         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78201         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78202         (REG_INTERVALS): renamed from RE_INTERVALS.
78203         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78204         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78205         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78206         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78207         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78208         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78209         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78210         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78211         RE_UNMATCHED_RIGHT_PAREN_ORD.
78212         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78213         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78214         (REG_DEBUG): renamed from RE_DEBUG.
78215         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78216         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78217         unusual, since we can't clash with the POSIX REG_ICASE.
78218         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78219         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78220         (REG_NO_SUB): renamed from RE_NO_SUB.
78221         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78222         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78223         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78224         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78225         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78226         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78227         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78228         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78229         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78230         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78231         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78232         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78233         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78234         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78235         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78236         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78237         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78238         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78239         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78240         (REG_FIXED): Renamed from REGS_FIXED.
78241         (REG_NREGS): Renamed from RE_NREGS.
78242
78243         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78244         of other REG_* macros, since POSIX says the user is allowed to
78245         #undef these macros selectively.
78246
78247         (reg_errcode_t): Update comment stating what other tables need
78248         to be consistent.
78249
78250         Rename the following enum values to obey POSIX requirements.
78251         The old names are still visible as macros.
78252         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78253         is not defined, since GNU is supposed to be a superset of POSIX as
78254         much as possible, and since we want reg_errcode_t to be a signed
78255         type for implementation consistency.
78256         (_REG_NOERROR): Renamed from REG_NOERROR.
78257         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78258         (_REG_BADPAT): Renamed from REG_BADPAT.
78259         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78260         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78261         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78262         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78263         (_REG_EBRACK): Renamed from REG_EBRACK.
78264         (_REG_EPAREN): Renamed from REG_EPAREN.
78265         (_REG_EBRACE): Renamed from REG_EBRACE.
78266         (_REG_BADBR): Renamed from REG_BADBR.
78267         (_REG_ERANGE): Renamed from REG_ERANGE.
78268         (_REG_ESPACE): Renamed from REG_ESPACE.
78269         (_REG_BADRPT): Renamed from REG_BADRPT.
78270         (_REG_EEND): Renamed from REG_EEND.
78271         (_REG_ESIZE): Renamed from REG_ESIZE.
78272         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78273         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78274         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78275         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78276         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78277
78278         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78279         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78280         changed.  But support the old name if the new one is not defined
78281         and if _REGEX_SOURCE.
78282
78283         Change the following member names in struct re_pattern_buffer.
78284         The old names are still supported if !_REGEX_SOURCE.
78285         The new names are always supported, regardless of _REGEX_SOURCE.
78286         (re_buffer): Renamed from buffer.
78287         (re_allocated): Renamed from allocated.
78288         (re_used): Renamed from used.
78289         (re_syntax): Renamed from syntax.
78290         (re_fastmap): Renamed from fastmap.
78291         (re_translate): Renamed from translate.
78292         (re_can_be_null): Renamed from can_be_null.
78293         (re_regs_allocated): Renamed from regs_allocated.
78294         (re_fastmap_accurate): Renamed from fastmap_accurate.
78295         (re_no_sub): Renamed from no_sub.
78296         (re_not_bol): Renamed from not_bol.
78297         (re_not_eol): Renamed from not_eol.
78298         (re_newline_anchor): Renamed from newline_anchor.
78299
78300         Change the following member names in struct re_registers.
78301         The old names are still supported if !_REGEX_SOURCE.
78302         The new names are always supported, regardless of _REGEX_SOURCE.
78303         (rm_num_regs): Renamed from num_regs.
78304         (rm_start): Renamed from start.
78305         (rm_end): Renamed from end.
78306
78307         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78308         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78309         Prepend __ to parameter names.
78310
78311         Undo yesterday's changes.
78312
78313 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78314
78315         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78316         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78317         lib/regex.c.
78318
78319 2005-08-24  Jim Meyering  <jim@meyering.net>
78320
78321         Sync from coreutils.
78322         * m4/fcntl-safer.m4: New file.
78323
78324         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78325         and object files for this module.
78326
78327 2005-08-24  Jim Meyering  <jim@meyering.net>
78328
78329         Sync from coreutils.
78330         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78331
78332 2005-08-24  Jim Meyering  <jim@meyering.net>
78333
78334         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78335         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78336
78337 2005-08-24  Jim Meyering  <jim@meyering.net>
78338
78339         * modules/fcntl-safer: New module.
78340         * modules/fts (Depends-on): Add fcntl-safer.
78341         * MODULES.html.sh (File descriptor based Input/Output):
78342         Add fcntl-safer.
78343
78344 2005-08-24  Bruno Haible  <bruno@clisp.org>
78345
78346         Support for unit test modules.
78347         * modules/README: Mention tests modules.
78348         * modules/TEMPLATE-TESTS: New file.
78349         * gnulib-tool: New options --extract-tests-module, --with-tests and
78350         --tests-base (unused for the moment).
78351         (testsbase, inctests): New variables.
78352         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78353         (func_verify_module): Exclude TEMPLATE-TESTS.
78354         (func_verify_nontests_module, func_verify_tests_module): New functions.
78355         (func_get_dependencies): Add implicit dependency for tests modules.
78356         (func_get_tests_module): New function.
78357         (func_modules_transitive_closure): When --with-tests was specified,
78358         include the unit tests as well, unless explicitly avoided.
78359         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78360         (func_emit_tests_Makefile_am): New function.
78361         (func_create_testdir): When --with-tests was specified, emit a
78362         tests/ directory.
78363         * MODULES.html.sh (Future developments): Update.
78364
78365 2005-08-24  Bruno Haible  <bruno@clisp.org>
78366
78367         * modules/tls-tests: New file.
78368         * tests/test-tls.c: New file, from GNU gettext.
78369
78370 2005-08-24  Bruno Haible  <bruno@clisp.org>
78371
78372         * modules/lock-tests: New file.
78373         * tests/test-lock.c: New file, from GNU gettext.
78374
78375 2005-08-24  Bruno Haible  <bruno@clisp.org>
78376
78377         * lib/lock.h: Add multiple inclusion guard.
78378         * lib/tls.h: Add multiple inclusion guard.
78379
78380 2005-08-24  Bruno Haible  <bruno@clisp.org>
78381
78382         * gnulib-tool: Add support for the --aux-dir option to
78383         --create-testdir, --create-megatestdir, --test, --megatest.
78384         (func_create_testdir, func_create_megatestdir): Optionally emit a
78385         AC_CONFIG_AUX_DIR directive.
78386         (create-testdir, create-megatestdir, test, megatest): Provide a
78387         default value for $auxdir.
78388
78389 2005-08-24  Bruno Haible  <bruno@clisp.org>
78390
78391         * gnulib-tool (import): Use compound statement instead of subshell
78392         where possible.
78393
78394 2005-08-24  Bruno Haible  <bruno@clisp.org>
78395
78396         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78397
78398 2005-08-24  Bruno Haible  <bruno@clisp.org>
78399
78400         * gnulib-tool (func_version): Update.
78401
78402 2005-08-24  Bruno Haible  <bruno@clisp.org>
78403
78404         * gnulib-tool (func_import, func_create_testdir,
78405         func_create_megatestdir): Quote all autoconf macro arguments.
78406
78407 2005-08-24  Bruno Haible  <bruno@clisp.org>
78408
78409         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78410         option --force, because --force causes the aclocal.m4 of each
78411         subdirectory to be newer than the corresponding config.h.in.
78412
78413 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78414
78415         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78416         All contents moved to gl_REGEX.
78417         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78418         assume that it does.
78419
78420 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78421
78422         * lib/regex.h (REG_NOSYS)
78423         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78424         Define, since POSIX requires it as of 2001.
78425         (_REG_ENOSYS)
78426         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78427         New private symbol, used to keep the enum signed in all cases.
78428         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78429         Youngman in
78430         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78431
78432         * lib/regex_internal.c (re_string_skip_chars, register_state):
78433         (calc_state_hash):
78434         Remove forward decls; no longer needed now that we use prototypes.
78435         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78436         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78437         (clean_state_log_if_needed): Likewise.
78438
78439 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * config/srclist.txt: Add glibc bugs 1231-1233.
78442
78443 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78444
78445         Fix problems reported by Sam Steingold in
78446         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78447         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78448         assumed that reg_errcode_t is a signed type, which is not
78449         necessarily true if _XOPEN_SOURCE is not defined.
78450         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78451         since some compilers warn about it otherwise.
78452
78453 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78454
78455         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78456         (init_word_char, create_initial_state, duplicate_node_closure):
78457         (fetch_token, peek_token_bracket, build_range_exp):
78458         (build_collating_symbol): Remove forward decls; no longer needed
78459         now that we use prototypes.
78460
78461         * lib/regcomp.c:
78462         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78463         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78464         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78465         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78466         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78467         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78468         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78469         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78470         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78471         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78472         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78473         (build_charclass, build_charclass_op, fetch_number, create_tree):
78474         (create_token_tree, mark_opt_subexp, duplicate_tree):
78475         Use prototypes rather than old-style definitions.
78476
78477         * lib/regex_internal.c:
78478         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78479         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78480         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78481         (re_string_reconstruct, re_string_peek_byte_case):
78482         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78483         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78484         (re_node_set_init_copy, re_node_set_add_intersect):
78485         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78486         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78487         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78488         (re_acquire_state, re_acquire_state_context, register_state):
78489         (create_ci_newstate, create_cd_newstate, free_state):
78490         Likewise.
78491         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78492         re_search_2):
78493         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78494         (re_search_internal, prune_impossible_nodes):
78495         (acquire_init_state_context, check_matching, static):
78496         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78497         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78498         (update_regs, sift_states_backward, build_sifted_states):
78499         (clean_state_log_if_needed, merge_state_array):
78500         (update_cur_sifted_state, add_epsilon_src_nodes):
78501         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78502         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78503         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78504         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78505         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78506         (check_arrival, check_arrival_add_next_nodes):
78507         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78508         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78509         (check_node_accept_bytes, check_node_accept, extend_buffers):
78510         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78511         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78512         (sift_ctx_init):
78513         Likewise.
78514
78515         * lib/regex_internal.h:
78516         (re_string_allocate, re_string_construct, re_string_reconstruct):
78517         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78518         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78519         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78520         (re_string_context_at, re_string_peek_byte_case):
78521         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78522         is defined, since we now use prototypes always.
78523
78524         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78525         C89 or better.  All uses removed.
78526
78527 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78528
78529         * config/srclist.txt: Add glibc bugs 1220-1227.
78530
78531 2005-08-20  Jim Meyering  <jim@meyering.net>
78532
78533         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78534         of unused local, dfa.
78535
78536 2005-08-20  Bruno Haible  <bruno@clisp.org>
78537
78538         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78539
78540 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78541
78542         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78543         (re_node_set_insert_last, re_dfa_add_node):
78544         Rename local variables to avoid GCC shadowing warnings.
78545
78546 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78547
78548         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78549         [defined lint]: Suppress bogus uninitialized-variable warnings.
78550
78551         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78552         and let the caller return REG_ESPACE if out of space.  This
78553         removes an uninitialied-variable warning with GCC 4.0.1, and also
78554         avoids taking the address of a local variable.  All callers
78555         changed.
78556
78557 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78558
78559         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78560         $LIBCSRC/posix/regexec.c.
78561         Add glibc bug 1217 for regcomp.c.
78562
78563 2005-08-19  Jim Meyering  <jim@meyering.net>
78564
78565         * lib/regexec.c (proceed_next_node): Redo local variables to
78566         avoid GCC shadowing warnings.
78567
78568 2005-08-18  Bruno Haible  <bruno@clisp.org>
78569
78570         * lib/strstr.c (strstr): Fix return value in multibyte case.
78571         * lib/strcasestr.c (strcasestr): Likewise.
78572
78573 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78574
78575         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78576
78577 2005-08-17  Jim Meyering  <jim@meyering.net>
78578
78579         Make the %s format (seconds since the epoch) work for a negative
78580         number and when used with a zero-padded field width, e.g. %015s.
78581
78582         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78583         label so that it precedes the code to set `digits'.  Otherwise,
78584         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78585         print `00-22'.  Now, it prints `-0022', as it should.
78586
78587 2005-08-17  Bruno Haible  <bruno@clisp.org>
78588
78589         * modules/strstr (Files): Add m4/mbrtowc.m4.
78590         (Depends-on): Add mbuiter.
78591
78592 2005-08-17  Bruno Haible  <bruno@clisp.org>
78593
78594         * modules/strcasestr: New file.
78595         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78596         strcasestr.
78597
78598 2005-08-17  Bruno Haible  <bruno@clisp.org>
78599
78600         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78601
78602 2005-08-17  Bruno Haible  <bruno@clisp.org>
78603
78604         * modules/mbuiter: New file.
78605         * MODULES.html.sh (Extended multibyte and wide character utilities):
78606         Add mbuiter.
78607
78608 2005-08-17  Bruno Haible  <bruno@clisp.org>
78609
78610         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78611         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78612
78613 2005-08-17  Bruno Haible  <bruno@clisp.org>
78614
78615         * m4/strcasestr.m4: New file.
78616
78617 2005-08-17  Bruno Haible  <bruno@clisp.org>
78618
78619         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78620         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78621
78622 2005-08-17  Bruno Haible  <bruno@clisp.org>
78623
78624         * lib/strcasestr.h: New file.
78625         * lib/strcasestr.c: New file.
78626
78627 2005-08-17  Bruno Haible  <bruno@clisp.org>
78628
78629         * lib/strcasecmp.c: Use mbuiter.h.
78630
78631 2005-08-17  Bruno Haible  <bruno@clisp.org>
78632
78633         * lib/mbuiter.h: New file.
78634
78635 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78636
78637         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78638         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78639         and gl_GETOPT are both invoked via different paths (as happens
78640         with GNU tar CVS because it uses both argp and getopt), the former
78641         wins.
78642
78643 2005-08-16  Bruno Haible  <bruno@clisp.org>
78644
78645         * modules/tls: New file.
78646         * MODULES.html.sh (Multithreading): Add tls.
78647
78648 2005-08-16  Bruno Haible  <bruno@clisp.org>
78649
78650         * modules/strnlen1: New file.
78651         * MODULES.html.sh (String handling): Add strnlen1.
78652
78653 2005-08-16  Bruno Haible  <bruno@clisp.org>
78654
78655         * modules/strcase (Files): Add m4/mbrtowc.m4.
78656         (Depends-on): Add strnlen1, mbchar.
78657
78658 2005-08-16  Bruno Haible  <bruno@clisp.org>
78659
78660         * modules/mbiter: New file.
78661         * MODULES.html.sh (Extended multibyte and wide character utilities):
78662         Add mbiter.
78663
78664 2005-08-16  Bruno Haible  <bruno@clisp.org>
78665
78666         * modules/mbfile: New file.
78667         * MODULES.html.sh (Extended multibyte and wide character utilities):
78668         Add mbfile.
78669
78670 2005-08-16  Bruno Haible  <bruno@clisp.org>
78671
78672         * modules/mbchar: New file.
78673         * MODULES.html.sh (Extended multibyte and wide character utilities):
78674         New section.
78675
78676 2005-08-16  Bruno Haible  <bruno@clisp.org>
78677
78678         * m4/tls.m4: New file, from GNU gettext.
78679
78680 2005-08-16  Bruno Haible  <bruno@clisp.org>
78681
78682         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78683         always.
78684         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78685
78686 2005-08-16  Bruno Haible  <bruno@clisp.org>
78687
78688         * m4/mbiter.m4: New file.
78689
78690 2005-08-16  Bruno Haible  <bruno@clisp.org>
78691
78692         * m4/mbfile.m4: New file.
78693
78694 2005-08-16  Bruno Haible  <bruno@clisp.org>
78695
78696         * m4/mbchar.m4: New file.
78697
78698 2005-08-16  Bruno Haible  <bruno@clisp.org>
78699
78700         * lib/tls.h: New file, from GNU gettext.
78701         * lib/tls.c: New file, from GNU gettext.
78702
78703 2005-08-16  Bruno Haible  <bruno@clisp.org>
78704
78705         * lib/strnlen1.h: New file.
78706         * lib/strnlen1.c: New file.
78707
78708 2005-08-16  Bruno Haible  <bruno@clisp.org>
78709
78710         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78711         (mbi_init): Update.
78712         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78713         NUL byte, not after it.
78714
78715 2005-08-16  Bruno Haible  <bruno@clisp.org>
78716
78717         * lib/strcase.h (strcasecmp): Add note in comments.
78718         * lib/strncasecmp.c: Use code from strcasecmp.c.
78719         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78720         (strcasecmp): Work correctly in multibyte locales.
78721
78722 2005-08-16  Bruno Haible  <bruno@clisp.org>
78723
78724         * lib/mbiter.h: New file.
78725
78726 2005-08-16  Bruno Haible  <bruno@clisp.org>
78727
78728         * lib/mbfile.h: New file.
78729
78730 2005-08-16  Bruno Haible  <bruno@clisp.org>
78731
78732         * lib/mbchar.h: New file.
78733         * lib/mbchar.c: New file.
78734
78735 2005-08-16  Bruno Haible  <bruno@clisp.org>
78736
78737         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78738         the valid ones. Makes the comparison operations transitive:
78739         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78740         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78741
78742 2005-08-15  Simon Josefsson  <jas@extundo.com>
78743
78744         * modules/ssize_t (License): Change to 'unlimited'.
78745
78746         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78747
78748 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78749
78750         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78751         Add comments for each pending glibc patch.
78752
78753 2005-08-15  Bruno Haible  <bruno@clisp.org>
78754
78755         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78756         __cplusplus is defined.
78757
78758 2005-08-14  Jim Meyering  <jim@meyering.net>
78759
78760         Sync from coreutils.
78761
78762         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78763         Use the hash-table-based cycle-detection code not just when
78764         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78765         Reported by James Youngman in
78766         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78767         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78768         FTS_TIGHT_CYCLE_CHECK.
78769         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78770         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78771         once again.
78772         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78773         * lib/fts.c (fd_safer): Remove decl.
78774         Include fcntl--.h rather than unistd-safer.h
78775         (fts_safe_changedir): Don't call fd_safer; no longer needed
78776         now that we include fcntl--.h.
78777
78778 2005-08-12  Simon Josefsson  <jas@extundo.com>
78779
78780         * modules/getndelim2: Use ssize_t module.
78781         * modules/getnline: Likewise.
78782         * modules/safe-read: Likewise.
78783         * modules/xreadlink: Likewise.
78784
78785         * modules/ssize_t: New file.
78786
78787 2005-08-12  Simon Josefsson  <jas@extundo.com>
78788
78789         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78790
78791 2005-08-12  Simon Josefsson  <jas@extundo.com>
78792
78793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78794         ssize_t.
78795
78796 2005-08-12  Simon Josefsson  <jas@extundo.com>
78797
78798         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78799         readline, getdelim and check_version.
78800         (Support for systems lacking ISO C 99: Sizes of integer types):
78801         Add size_max.
78802
78803 2005-08-12  Bruno Haible  <bruno@clisp.org>
78804
78805         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78806
78807 2005-08-11  Simon Josefsson  <jas@extundo.com>
78808
78809         * modules/readline: New file.
78810
78811         * modules/strnlen (Files): Add strnlen.h.
78812
78813 2005-08-11  Simon Josefsson  <jas@extundo.com>
78814
78815         * m4/readline.m4: New file.
78816
78817 2005-08-11  Simon Josefsson  <jas@extundo.com>
78818
78819         * lib/readline.h, readline.c: New file.
78820
78821 2005-08-11  Simon Josefsson  <jas@extundo.com>
78822
78823         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78824         gl_AVOID.
78825
78826 2005-08-11  Bruno Haible  <bruno@clisp.org>
78827
78828         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78829
78830 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78831
78832         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78833
78834 2005-08-10  Simon Josefsson  <jas@extundo.com>
78835
78836         * tests/test-iconvme.c: New file.
78837
78838 2005-08-10  Simon Josefsson  <jas@extundo.com>
78839
78840         * m4/strnlen.m4: New file.
78841
78842         * m4/strndup.m4: Don't check for strnlen declaration, done in
78843         strnlen.m4.
78844
78845 2005-08-10  Simon Josefsson  <jas@extundo.com>
78846
78847         * lib/strndup.c: Use strnlen.h.
78848
78849         * lib/strnlen.h: New file.
78850
78851 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78852
78853         * README: Typos.
78854
78855 2005-08-02  Simon Josefsson  <jas@extundo.com>
78856
78857         * modules/readline: New file.
78858
78859 2005-08-02  Simon Josefsson  <jas@extundo.com>
78860
78861         * modules/getdelim: New file.
78862
78863         * modules/getline: Rewrite, don't use getndelim2.
78864
78865 2005-08-02  Simon Josefsson  <jas@extundo.com>
78866
78867         * m4/getline.m4: Separate out getdelim stuff into separate module.
78868
78869         * m4/getdelim.m4: New file.
78870
78871 2005-08-02  Simon Josefsson  <jas@extundo.com>
78872
78873         * lib/getline.h, getline.c: Rewrite.
78874
78875         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78876
78877 2005-07-31  Bruno Haible  <bruno@clisp.org>
78878
78879         * lib/lock.h (gl_lock_initializer): New macro.
78880         (gl_lock_define_initialized): Use it.
78881         (gl_rwlock_initializer): New macro.
78882         (gl_rwlock_define_initialized): Use it.
78883         (gl_recursive_lock_initializer): New macro.
78884         (gl_recursive_lock_define_initialized): Use it.
78885
78886 2005-07-30  Karl Berry  <karl@gnu.org>
78887
78888         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78889         Report from Ben Pfaff, regarding getopt.
78890
78891 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78892
78893         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78894         normal way.
78895         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78896         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78897         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78898         (gl_GETOPT): Use the new macros.  Most of the implementation
78899         is moved to the new macros.  This is for programs like Emacs
78900         that don't want all the functionality of gl_GETOPT.
78901
78902 2005-07-26  Bruno Haible  <bruno@clisp.org>
78903
78904         * m4/lock.m4: Update from GNU gettext.
78905
78906 2005-07-26  Bruno Haible  <bruno@clisp.org>
78907
78908         * lib/lock.h: Update from GNU gettext.
78909         * lib/lock.c: Update from GNU gettext.
78910
78911 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78912
78913         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78914         obsolescent AC_TRY_RUN.  Include the default includes files, for
78915         'exit'.
78916
78917 2005-07-24  Bruno Haible  <bruno@clisp.org>
78918
78919         * modules/visibility: New file.
78920         * MODULES.html.sh (Misc): Add visibility.
78921
78922 2005-07-24  Bruno Haible  <bruno@clisp.org>
78923
78924         * m4/visibility.m4: New file.
78925
78926 2005-07-24  Bruno Haible  <bruno@clisp.org>
78927
78928         * doc/visibility.texi: New file.
78929
78930 2005-07-22  Bruno Haible  <bruno@clisp.org>
78931
78932         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78933         $(ALLOCA_H), redundant through BUILT_SOURCES.
78934         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78935         redundant through BUILT_SOURCES.
78936         * modules/byteswap (Makefile.am): Remove explicit dependency on
78937         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78938         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78939         $(FNMATCH_H), redundant through BUILT_SOURCES.
78940         * modules/getopt (Makefile.am): Remove explicit dependency on
78941         $(GETOPT_H), redundant through BUILT_SOURCES.
78942         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78943         redundant through BUILT_SOURCES.
78944         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78945         redundant through BUILT_SOURCES.
78946         * modules/stdbool (Makefile.am): Remove explicit dependency on
78947         $(STDBOOL_H), redundant through BUILT_SOURCES.
78948         * modules/stdint (Makefile.am): Remove explicit dependency on
78949         $(STDINT_H), redundant through BUILT_SOURCES.
78950         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78951         Remove explicit dependency on $(SYSEXITS_H).
78952         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78953
78954 2005-07-18  Simon Josefsson  <jas@extundo.com>
78955
78956         * lib/check-version.c (check_version): Accept identical versions too.
78957
78958 2005-07-18  Bruno Haible  <bruno@clisp.org>
78959
78960         * modules/lock: New file.
78961         * MODULES.html.sh (Multithreading): New section.
78962
78963 2005-07-18  Bruno Haible  <bruno@clisp.org>
78964
78965         * m4/lock.m4: New file, from GNU gettext.
78966
78967 2005-07-18  Bruno Haible  <bruno@clisp.org>
78968
78969         * lib/lock.h: New file, from GNU gettext.
78970         * lib/lock.c: New file, from GNU gettext.
78971
78972 2005-07-18  Bruno Haible  <bruno@clisp.org>
78973
78974         * lib/lock.h (gl_once_t): New type.
78975         (gl_once_define, gl_once): New macros.
78976         * lib/lock.c (fresh_once): New variable.
78977         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78978         functions.
78979
78980 2005-07-16  Simon Josefsson  <jas@extundo.com>
78981
78982         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78983         workaround, suggested by Bruno.
78984
78985 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78986
78987         * modules/xalloc (Depends-on): Add xalloc-die.
78988         * modules/xvasprintf (Depends-on): Add xalloc-die.
78989
78990 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78991
78992         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78993         with a minor change.
78994
78995 2005-07-15  Bruno Haible  <bruno@clisp.org>
78996
78997         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78998         When using lib/poll.c, define poll as rpl_poll.
78999
79000 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
79001
79002         * modules/argp (Depends-on): Remove unlocked-io.
79003
79004 2005-07-14  Derek Price  <derek@ximbiot.com>
79005
79006         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
79007         for glob symlink bug.
79008
79009 2005-07-14  Bruno Haible  <bruno@clisp.org>
79010
79011         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
79012         Instead, test for *_unlocked function declarations directly.
79013
79014 2005-07-11  Simon Josefsson  <jas@extundo.com>
79015
79016         * modules/size_max: New file.
79017
79018         * modules/xsize: Depend on size_max module for size_max.m4.
79019
79020 2005-07-11  Simon Josefsson  <jas@extundo.com>
79021
79022         * lib/size_max.h: New file.
79023
79024 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79025
79026         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79027         copyright symbol and the year.
79028         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79029         (version_etc_va): Use parameterized copyright notice.
79030         Reword to conform to the current GNU coding standards.
79031
79032 2005-07-11  Karl Berry  <karl@gnu.org>
79033
79034         * doc/gnulib.texi (Quoting): new node.
79035         (Initial import): more info, from Patrice.
79036
79037 2005-07-11  Bruno Haible  <bruno@clisp.org>
79038
79039         * gnulib-tool (func_usage): Document option --avoid.
79040         (Command line options): Handle --avoid.
79041         (func_acceptable): New function.
79042         (func_modules_transitive_closure): Use it.
79043
79044 2005-07-11  Bruno Haible  <bruno@clisp.org>
79045
79046         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79047         Reported by Jim Meyering.
79048
79049 2005-07-10  Bruno Haible  <bruno@clisp.org>
79050
79051         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79052         Needed when size_t is smaller than 'unsigned int'.
79053         Reported by Paul Eggert.
79054
79055 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79056
79057         * modules/argp (Depends-on): Add unlocked-io
79058
79059 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79060
79061         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79062         block of defines.
79063
79064 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79065
79066         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79067         fix now.
79068
79069 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79070         and Paul Eggert  <eggert@cs.ucla.edu>
79071
79072         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79073         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79074
79075 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * modules/regex (Files): Add lib/regex_internal.c,
79078         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79079         (Depends-on): Add extensions.
79080         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79081
79082 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79085         pathconf.
79086         * m4/same.m4 (gl_SAME): Likewise.
79087         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79088
79089         * m4/regex.m4: Adjust to new libc regex implementation.
79090         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79091         all the .c and .h parts of (the new) regex.
79092         Quote the m4 stuff better.
79093         Check for RE_ICASE bug of old gnulib.
79094         Check for REG_STARTEND of recent libc.
79095         Rename local variables from jm_* to gl_*.
79096         Quote operand of "test -f".
79097         Say "recent enough" version of libc, not "version 2".
79098         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79099         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79100         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79101         Remove check for btowc, isascii.
79102         Require AM_LANGINFO_CODESET.
79103
79104 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * lib/regex.c, regex.h: Sync from libc.
79107         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79108         * lib/regexec.c:
79109         New files, synced from libc, except that regex_internal.h
79110         currently has a small porting fix.
79111
79112 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79113
79114         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79115         regex_internal.c, regexec.c.
79116         Add regex_internal.h too, but as a comment, since the libc version
79117         is currently broken in gnulib mode.
79118
79119 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         Support programs like Emacs that use gnulib but not gettext.
79122         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79123         * modules/gettext-h: New file.
79124         * modules/gettext (Files): Remove lib/gettext.h.
79125         (Depends-on): Add gettext-h.
79126         (Makefile.am): Remove lib_SOURCES.
79127         * modules/argmatch, modules/c-stack, modules/closeout:
79128         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79129         * modules/execute, modules/file-type, modules/getaddrinfo:
79130         * modules/getopt, modules/human, modules/javacomp:
79131         * modules/javaexec, modules/mkdir-p, modules/obstack:
79132         * modules/openat, modules/pagealign_alloc, modules/pipe:
79133         * modules/quotearg, modules/regex, modules/rpmatch:
79134         * modules/unicodeio, modules/userspec, modules/version-etc:
79135         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79136         * modules/xsetenv:
79137         Depend on gettext-h, not gettext.
79138
79139 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79140
79141         * gnulib-tool (func_import): Add support for 'public domain' license.
79142         * modules/alloca, modules/atexit, modules/memmove:
79143         Now public domain, not GPL.
79144         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79145         * modules/realloc, modules/strerror, modules/strtod:
79146         Now LGPL, not GPL.
79147
79148 2005-07-05  Bruno Haible  <bruno@clisp.org>
79149
79150         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79151         autoconf CVS. Needed for mingw.
79152
79153 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79154
79155         Remove the dependency of the strftime module on the tzset module.
79156         * modules/strftime (Depends-on): Remove dependency on tzset.
79157
79158 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79159
79160         Remove the dependency of the strftime module on the tzset module.
79161         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79162         gl_FUNC_TZSET_CLOBBER.
79163
79164 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79165
79166         Remove the dependency of the strftime module on the tzset module.
79167         * lib/strftime.c (my_strftime)
79168         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79169         Copy the input structure, to work around some of the bug with
79170         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79171         Solaris releases, you should also use the tzset module, but we won't
79172         require it as a dependency any more since we don't want LGPLed code
79173         to depend on GPLed code.
79174
79175 2005-07-02  Jim Meyering  <jim@meyering.net>
79176
79177         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79178         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79179         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79180         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79181
79182 2005-07-02  Jim Meyering  <jim@meyering.net>
79183
79184         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79185
79186 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79189         declares only 'struct timespec;' (!).
79190
79191 2005-07-01  Jim Meyering  <jim@meyering.net>
79192
79193         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79194         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79195         * lib/save-cwd.c, tempname.c:
79196         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79197         and don't include <sys/file.h>).
79198
79199 2005-06-29  Jim Meyering  <jim@meyering.net>
79200
79201         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79202         type name.  Use the variable name instead.
79203         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79204         Likewise.
79205
79206 2005-06-28  Simon Josefsson  <jas@extundo.com>
79207
79208         * modules/check-version (Files): Add check-version.m4.
79209
79210 2005-06-28  Simon Josefsson  <jas@extundo.com>
79211
79212         * m4/check-version.m4: New file, suggested by Jim Meyering
79213         <jim@meyering.net>.
79214
79215 2005-06-28  Simon Josefsson  <jas@extundo.com>
79216
79217         * lib/check-version.h, lib/check-version.c: New files.
79218
79219 2005-06-28  Simon Josefsson  <jas@extundo.com>
79220
79221         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79222         collision with global variable.  Better indentation.  Don't
79223         increment buffer pointer beyond buffer end.  Based on comments
79224         from Paul Eggert <eggert@cs.ucla.edu>.
79225
79226         * lib/base64.h: Indent.
79227
79228 2005-06-28  Simon Josefsson  <jas@extundo.com>
79229
79230         * doc/gnulib.texi (Library version handling): New section.
79231
79232 2005-06-28  Jim Meyering  <jim@meyering.net>
79233
79234         * check-module (find_included_lib_files): Hard-code another
79235         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79236         but modules/fts-lgpl (correctly) does not list those files.
79237
79238         * modules/canonicalize (Files): Add lib/pathmax.h.
79239
79240 2005-06-25  Simon Josefsson  <jas@extundo.com>
79241
79242         * modules/check-version: New file.
79243
79244 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79247         initializer of struct addrinfo, as an indication that we don't
79248         care how many members the structure has.
79249
79250 2005-06-24  Derek Price  <derek@ximbiot.com>
79251         and Bruno Haible  <bruno@clisp.org>
79252
79253         Remove stat module & update lstat.
79254         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79255         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79256         * m4/stat.m4: Remove this file.
79257
79258 2005-06-24  Derek Price  <derek@ximbiot.com>
79259         and Bruno Haible  <bruno@clisp.org>
79260
79261         Remove stat module & update lstat.
79262         * lib/stat.c: Remove this file...
79263         (slash_aware_lstat): ...moving this content and its support...
79264         * lib/lstat.c (rpl_lstat): ...into here.
79265         * lib/lstat.h: New file.
79266
79267 2005-06-24  Derek Price  <derek@ximbiot.com>
79268         and Bruno Haible  <bruno@clisp.org>
79269
79270         Remove stat module & update lstat.
79271         * config/srclist.txt (libc sources): Remove stat.
79272
79273 2005-06-24  Derek Price  <derek@ximbiot.com>
79274         and Bruno Haible  <bruno@clisp.org>
79275
79276         Remove stat module & update lstat.
79277         * MODULES.html.sh (stat): Remove.
79278         * MODULES.html: Regenerated.
79279         * modules/lstat (Description): Correct function name.
79280         (Files): Add "lstat.h".
79281         (Depends-on): Remove stat, add xalloc, stat-macros.
79282         * modules/stat: Remove this file.
79283         (Include): Add "lstat.h", remove <sys/stat.h>.
79284
79285 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79286
79287         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79288         (ranged_convert): Don't save conversion in a temporary struct.
79289         This causes a warning with GCC 4.0.0, and anyway in the typical
79290         case it's not worth the extra 100 bytes or so of code.
79291         (ranged_convert, __mktime_internal): When calling a function via a
79292         pointer P, use P () rather than (*P) (), as we now assume C89 or
79293         better.
79294
79295 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79296
79297         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79298         "who -r" failed to give output.  Problem reported by Tim Waugh.
79299
79300         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79301         (xcalloc): Use it to avoid needless tests.
79302         Problem reported by Jim Meyering.
79303
79304 2005-06-20  Derek Price  <derek@ximbiot.com>
79305
79306         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79307         unnecessary for Autoconfs > 2.59c.
79308
79309 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79310
79311         * lib/argp.h (__option_is_short): Check upper limit of
79312         __key. Isprint() requires its argument to have the value
79313         of an unsigned char or EOF.
79314
79315 2005-06-16  Jim Meyering  <jim@meyering.net>
79316
79317         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79318         when either N or S is zero.
79319
79320 2005-06-16  Derek Price  <derek@ximbiot.com>
79321
79322         * m4/bison.m4: Declare YACC & YFLAGS precious.
79323
79324 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79325
79326         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79327         multibyte string or pattern, fall back on unibyte matching.
79328         Problem reported by James Youngman.
79329
79330 2005-06-08  Bruno Haible  <bruno@clisp.org>
79331
79332         * modules/csharpcomp: New file.
79333         * MODULES.html.sh (C#): Add csharpcomp.
79334
79335 2005-06-08  Bruno Haible  <bruno@clisp.org>
79336
79337         * m4/csharpcomp.m4: New file, from GNU gettext.
79338
79339 2005-06-08  Bruno Haible  <bruno@clisp.org>
79340
79341         * lib/csharpcomp.h: New file, from GNU gettext.
79342         * lib/csharpcomp.c: New file, from GNU gettext.
79343         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79344
79345 2005-06-08  Bruno Haible  <bruno@clisp.org>
79346
79347         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79348         warning on mingw.
79349
79350 2005-06-07  Derek Price  <derek@ximbiot.com>
79351
79352         Sync from CVS.
79353         * lib/glob_.h: Indent nested #ifdef.
79354
79355 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79356
79357         Sync from coreutils.
79358         Use "file name" when talking about file names, instead of "filename"
79359         or "path", as per the GNU coding standards.
79360         * lib/mkdir-p.c: Renamed from makepath.c.
79361         (make_dir_parents): Renamed from make_path.  All callers changed.
79362         * lib/mkdir-p.h: Likewise.  All includers changed.
79363         * lib/filenamecat.c: Renamed from path-concat.c.
79364         (file_name_concat): Renamed from path_concat.  All callers changed.
79365         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79366         * lib/filenamecat.h: Likewise.  All includers changed.
79367         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79368         in comments or local variable names.
79369         * lib/basename.c: Likewise.
79370         * lib/canonicalize.c, canonicalize.h: Likewise.
79371         * lib/dirname.c, dirname.h: Likewise.
79372         * lib/euidaccess.c: Likewise.
79373         * lib/exclude.c: Likewise
79374         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79375         * lib/fsusage.c, fsuage.h: Likewise.
79376         * lib/fts.c, fts_.h: Likewise.
79377         * lib/getcwd.c: Likewise.
79378         * lib/getloadavg.c: Likewise.
79379         * lib/mkstemp.c: Likewise.
79380         * lib/mountlist.c, mountlist.h: Likewise.
79381         * lib/openat.c, openat.h: Likewise.
79382         * lib/readlink-stub.c: Likewise.
79383         * lib/readutmp.c, readutmp.h: Likewise.
79384         * lib/rename.c: Likewise.
79385         * lib/rmdir.c: Likewise.
79386         * lib/same.c: Likewise.
79387         * lib/savedir.c: Likewise.
79388         * lib/stripslash.c: Likewise.
79389         * lib/tempname.c: Likewise.
79390         * lib/xreadlink.c: Likewise.
79391         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79392         All uses changed.
79393         * lib/exclude.h: Likewise.
79394
79395         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79396         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79397         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79398         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79399         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79400         files have been getting away with it for years (MORE/BSD 4.3
79401         is extinct now).
79402         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79403         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79404
79405         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79406         Define to 256, not 255, as per modern POSIX.
79407
79408 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         Sync from coreutils.
79411         Use "file name" when talking about file names, instead of "filename"
79412         or "path", as per the GNU coding standards.
79413         * MODULES.html.sh: mkdir-p renamed from makepath.
79414         filenamecat renamed from path-concat.
79415         * modules/filenamecat: Renamed from modules/path-concat.
79416         (Files): filenamecat.h and filenamecat.c renamed from
79417         path-concat.h and path-concat.c.
79418         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79419         (Include): filenamecat.h, not path-concat.h.
79420         * modules/mkdir-p: Renamed from modules/makepath.
79421         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79422         makepath.c.
79423         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79424         (Include): mkdir-p.h, not makepath.h.
79425
79426 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         Sync from coreutils.
79429         * m4/mkdir-p.m4: Renamed from makepath.m4.
79430         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79431         Rename files from makepath.c to mkdir-p.c, and from
79432         makepath.h to mkdir-p.h.
79433         * m4/filenamecat.m4: Renamed from path-concat.m4.
79434         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79435         Rename files from path-concat.c to filenamecat.c,
79436         and from path-concat.h to filenamecat.h.
79437         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79438         "file name" in local variables or comments.
79439         * m4/rename.m4: Likewise.
79440
79441 2005-06-01  Bruno Haible  <bruno@clisp.org>
79442
79443         * modules/csharpexec: New file.
79444         * MODULES.html.sh (C#): New section.
79445
79446 2005-06-01  Bruno Haible  <bruno@clisp.org>
79447
79448         * m4/csharp.m4: New file, from GNU gettext.
79449         * m4/csharpexec.m4: New file, from GNU gettext.
79450
79451 2005-06-01  Bruno Haible  <bruno@clisp.org>
79452
79453         * lib/csharpexec.h: New file, from GNU gettext.
79454         * lib/csharpexec.c: New file, from GNU gettext.
79455         * lib/csharpexec.sh.in: New file, from GNU gettext.
79456
79457 2005-05-31  Derek Price  <derek@ximbiot.com>
79458             Paul Eggert  <eggert@cs.ucla.edu>
79459
79460         Sync from cvs.
79461         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79462
79463 2005-05-31  Derek Price  <derek@ximbiot.com>
79464             Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         Sync from cvs.
79467         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79468
79469 2005-05-29  Derek Price  <derek@ximbiot.com>
79470
79471         * config/srclist.txt (glob_.h, glob.c): Add these files.
79472
79473 2005-05-29  Derek Price  <derek@ximbiot.com>
79474
79475         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79476         * modules/glob: New file.
79477         * modules/getlogin_r: Add link to POSIX spec in description.
79478
79479 2005-05-29  Derek Price  <derek@ximbiot.com>
79480             Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * m4/glob.m4: New file.
79483
79484 2005-05-29  Derek Price  <derek@ximbiot.com>
79485             Paul Eggert  <eggert@cs.ucla.edu>
79486
79487         * lib/glob_.h, lib/glob.c: New files.
79488
79489 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79490
79491         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79492         * modules/fts-lgpl (Depends-on): Remove gettext.
79493
79494 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79497         and don't require gt_INTTYPES_PRI.
79498
79499 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79500
79501         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79502
79503         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79504         the configuration hassle isn't worth it.
79505         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79506         (LONGEST_MODIFIER, PRIuMAX): Remove.
79507
79508 2005-05-27  Bruno Haible  <bruno@clisp.org>
79509
79510         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79511
79512 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79515         _POSIX_PTHREAD_SEMANTICS for Solaris.
79516
79517 2005-05-25  Derek Price  <derek@ximbiot.com>
79518
79519         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79520
79521 2005-05-25  Derek Price  <derek@ximbiot.com>
79522             Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79525         * lib/getlogin_r.c, getlogin_r.h: New files.
79526
79527 2005-05-25  Bruno Haible  <bruno@clisp.org>
79528             Derek Price  <derek@ximbiot.com>
79529
79530         * lib/getlogin_r.h: Simplify API documentation.
79531
79532 2005-05-23  Derek Price  <derek@ximbiot.com>
79533
79534         * modules/minmax (Files): Add m4/minmax.m4.
79535         (configure.ac): Add gl_MINMAX.
79536
79537 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79538
79539         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79540         so that unistd-safer.h (GPL'ed code) need not be included.
79541
79542 2005-05-22  Bruno Haible  <bruno@clisp.org>
79543
79544         * m4/minmax.m4: New file.
79545         Based on a patch by Derek Price <derek@ximbiot.com>.
79546
79547 2005-05-22  Bruno Haible  <bruno@clisp.org>
79548
79549         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79550         (INT64_MIN): Fix definition.
79551         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79552
79553         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79554         NEED_SIGNED_INT_TYPES.
79555
79556         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79557         HAVE_SYSTEM_INTTYPES.
79558
79559 2005-05-22  Bruno Haible  <bruno@clisp.org>
79560
79561         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79562         Also include <sys/param.h> if it defines MIN, MAX.
79563         Based on a patch by Derek Price <derek@ximbiot.com>.
79564
79565 2005-05-21  Jim Meyering  <jim@meyering.net>
79566
79567         * modules/fts (Files): Add m4/inttypes-pri.m4.
79568         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79569
79570 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         New fts module.
79573         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79574         (setup_dir, free_dir): New functions.
79575         (enter_dir, leave_dir): Define trivial
79576         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79577         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79578         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79579         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79580         Move to fts-cycle.c.
79581         (fts_open): Use setup_dir.
79582         (fts_close): Use free_dir.
79583         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79584         This adds a label and some gotos, but the alternatives were messier.
79585         Check for memory allocation failure when entering a dir.
79586         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79587         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79588         (FTS): New member fts_cycle, that is a union that contains the
79589         old active_dir_ht and cycle_state.  All uses changed to mention
79590         fts_cycle.ht and fts_cycle.state.
79591         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79592         fts.c, with the following changes:
79593         (setup_dir, free_dir): New functions.
79594         (enter_dir): Now returns bool.  Return true if successful, false
79595         if memory exhausted.  All callers changed.
79596         Do not bother partly cleaning up on
79597         memory allocation failure; that is free_dir's job.
79598         However, free ad if hash_insert fails, to avoid memory leak.
79599         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79600         fts->fts_options to see which union member to use.
79601
79602 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79603
79604         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79605         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79606
79607 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79608
79609         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79610
79611 2005-05-20  Jim Meyering  <jim@meyering.net>
79612
79613         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79614         Now a macro, to pacify GCC.
79615
79616 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79617
79618         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79619         of -1.
79620
79621 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79622
79623         * lib/chown.c (rpl_chown): Return -1 on failure.
79624
79625 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79626
79627         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79628         Don't check for stddef.h.
79629         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79630         don't use its results.
79631         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79632         since we include them unconditionally.  Don't require
79633         AM_STDBOOL_H, since stdbool is a prerequisite.
79634         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79635         since we assume C89 or better.
79636         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79637         as we don't use their results.
79638         Don't check for fchdir, memmove, memset, strrchr, as we use
79639         them unconditionally.
79640         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79641         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79642
79643 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79644
79645         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79646         Include <stddef.h> unconditionally, since we assume C89 now.
79647         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79648         * lib/fts.c: Include fts_.h first, to check interface.
79649         Do not include intprops.h; no longer needed.
79650         Include cycle-check.h and hash.h, since fts_.h no longer does.
79651         Remove unnecessary casts of closedir to void.
79652         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79653         decide whether to decrement nlinks.
79654         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79655         (FTS): Use struct hash_table * instead of Hash_table, so that
79656         we no longer need to include hash.h here.
79657
79658 2005-05-18  Jim Meyering  <jim@meyering.net>
79659
79660         * modules/dirfd (License): Change to LGPL.  Most of the code
79661         is already in the public domain.
79662
79663 2005-05-18  Jim Meyering  <jim@meyering.net>
79664
79665         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79666         Reported by Yoann Vandoorselaere.
79667
79668 2005-05-17  Jim Meyering  <jim@meyering.net>
79669
79670         * m4/fts.m4: New file, from coreutils.
79671
79672 2005-05-17  Jim Meyering  <jim@meyering.net>
79673
79674         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79675
79676 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79677
79678         Sync from coreutils.
79679         * m4/unlinkdir.m4: New file.
79680
79681 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79682
79683         Sync from coreutils.
79684         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79685         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79686         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79687         White space changes only.
79688         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79689         special.
79690         * lib/yesno.c: Include getline.h, not ctype.h.
79691         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79692         Use getline to remove arbitrary restriction on response length.
79693
79694 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * config/srclist-update: Spell out "Street" in FSF postal
79697         mail address; this is the style the FSF seems to prefer.
79698
79699         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79700         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79701         this updates FSF postal mail address.
79702
79703         Sync from coreutils.
79704         * modules/unlinkdir: New file.
79705         * modules/yesno (Depends-on): Add getline.
79706         * MODULES.html.sh (File system functions): Add unlinkdir.
79707
79708 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79709
79710         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79711         lib/strsep.h:
79712         Change the initial comment to refer to GPL, not LGPL.
79713         gnulib-tool will change it to LGPL as needed.
79714
79715         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79716         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79717         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79718         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79719         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79720         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79721         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79722         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79723         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79724         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79725         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79726         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79727         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79728         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79729         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79730         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79731         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79732         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79733         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79734         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79735         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79736         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79737         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79738         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79739         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79740         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79741         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79742         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79743         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79744         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79745         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79746         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79747         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79748         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79749         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79750         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79751         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79752         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79753         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79754         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79755         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79756         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79757         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79758         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79759         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79760         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79761         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79762         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79763         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79764         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79765         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79766         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79767         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79768         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79769         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79770         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79771         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79772         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79773         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79774         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79775         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79776         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79777         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79778         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79779         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79780         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79781         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79782         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79783         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79784         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79785         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79786         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79787         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79788         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79789         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79790         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79791         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79792         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79793         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79794         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79795         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79796         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79797         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79798         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79799         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79800         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79801         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79802         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79803         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79804         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79805         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79806         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79807         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79808         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79809         lib/yesno.c, lib/yesno.h:
79810         Update FSF postal mail address.
79811
79812 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79813
79814         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79815         tests/test-memmem.c, tests/test-stpncpy.c:
79816         Update FSF postal mail address.
79817
79818 2005-05-13  Bruno Haible  <bruno@clisp.org>
79819
79820         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79821         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79822         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79823         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79824         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79825         Add support for 64-bit integers in the MSVC compiler.
79826
79827 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79828
79829         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79830
79831 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79832
79833         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79834
79835 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79836
79837         * doc/getdate.texi (General date syntax): Don't say that date
79838         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79839         Problem reported by Nic Ferrier.
79840
79841 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79842
79843         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79844         specified in ai_socktype. Fix invalid ai_protocol
79845         check. ai_protocol is usually set to 0 or depending on
79846         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79847         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79848         ai_socktype / ai_protocol in the returned addrinfo structure.
79849
79850 2005-05-10  Simon Josefsson  <jas@extundo.com>
79851
79852         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79853         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79854
79855 2005-05-10  Karl Berry  <karl@gnu.org>
79856
79857         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79858         (from http://www.gnu.org/licenses).
79859         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79860         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79861         fdl.texi suffices.
79862
79863 2005-05-10  Karl Berry  <karl@gnu.org>
79864
79865         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79866         (COPYING.DOC): remove.
79867
79868         * config/srclist-update: new FSF address.
79869
79870 2005-05-10  Derek Price  <derek@ximbiot.com>
79871
79872         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79873         possible.
79874
79875 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79876             Bruno Haible  <bruno@clisp.org>
79877
79878         * modules/inet_ntop: New file.
79879         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79880         inet_ntop.
79881
79882 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79883             Bruno Haible  <bruno@clisp.org>
79884
79885         * m4/inet_ntop.m4: New file.
79886
79887 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79888             Bruno Haible  <bruno@clisp.org>
79889
79890         * lib/inet_ntop.h: New file.
79891         * lib/inet_ntop.c: New file, from glibc with modifications.
79892
79893 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79894
79895         * modules/time_r (License): Change to LGPL.
79896         * modules/extensions (License): Change to LGPL.  Actually,
79897         the license is more permissive than that, but currently gnulib-tool
79898         doesn't know how to handle more-permissive licenses.
79899
79900         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79901         Problem reported by Dave Love.
79902
79903 2005-05-08  Jim Meyering  <jim@meyering.net>
79904
79905         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79906         blank.
79907
79908 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79909
79910         * modules/argmatch (Depends-on): Add stdbool.
79911         * modules/backupfile (Depends-on): Likewise.
79912         * modules/chdir-long (Depends-on): Likewise.
79913         * modules/closeout (Depends-on): Likewise.
79914         * modules/cycle-check (Depends-on): Likewise.
79915         * modules/dirname (Depends-on): Likewise.
79916         * modules/fnmatch (Depends-on): Likewise.
79917         * modules/fsusage (Depends-on): Likewise.
79918         * modules/fwriteerror (Depends-on): Likewise.
79919         * modules/getcwd (Depends-on): Likewise.
79920         * modules/getloadavg (Depends-on): Likewise.
79921         * modules/hard-locale (Depends-on): Likewise.
79922         * modules/makepath (Depends-on): Likewise.
79923         * modules/mountlist (Depends-on): Likewise.
79924         * modules/nanosleep (Depends-on): Likewise.
79925         * modules/posixtm (Depends-on): Likewise.
79926         * modules/quotearg (Depends-on): Likewise.
79927         * modules/readtokens (Depends-on): Likewise.
79928         * modules/readtokens0 (Depends-on): Likewise.
79929         * modules/readutmp (Depends-on): Likewise.
79930         * modules/save-cwd (Depends-on): Likewise.
79931         * modules/strftime (Depends-on): Likewise.
79932         * modules/userspec (Depends-on): Likewise.
79933         * modules/utimecmp (Depends-on): Likewise.
79934         * modules/xgetcwd (Depends-on): Likewise.
79935         * modules/xnanosleep (Depends-on): Likewise.
79936         * modules/xstrtod (Depends-on): Likewise.
79937         * modules/yesno (Depends-on): Likewise.
79938
79939 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79940
79941         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79942         needless checks.
79943
79944 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79945
79946         Merge from coreutils.  Among other things,
79947         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79948         * lib/fd-safer.c: New file.
79949         * lib/fcntl-safer.h, open-safer.c: Remove.
79950         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79951         * lib/dup-safer.c: Include unistd-safer.h first.
79952         Don't include errno.h.
79953         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79954         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79955         * lib/file-type.c: Rely on file-type.h change.
79956         * lib/getloadavg.c: Include unistd-safer.h.
79957         (getloadavg): Use safer open.
79958         * lib/getusershell.c: Include "stdio-safer.h".
79959         (getusershell): Use safer fopen.
79960         * lib/long-options.c (long_options): Use NULL rather than 0.
79961         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79962         'free'.
79963         * lib/modechange.c: Likewise.
79964         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79965         (MODE_DONE): New constant.
79966         (struct mode_change): Remove 'next' member.
79967         (make_node_op_equals): New function; like the old one of the
79968         same name, except it allocates an array.
79969         (mode_compile, mode_create_from_ref): Use it.
79970         (mode_compile): Allocate result as an array, not a linked list.
79971         Parse octal string ourself, so that we catch mistakes like "+0".
79972         (mode_adjust): Arg is an array, not a linked list.
79973         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79974         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79975         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79976         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79977         Remove.  This is now stat-macros.h's job.
79978         (talloc): Remove.  All callers replaced by xalloc, so that
79979         our invokers don't have to worry about reporting memory failures.
79980         (make_node_op_equals): Remove.
79981         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79982         New constants.
79983         (struct mode_change): Moved here from modechange.h.
79984         (mode_append_entry): Remove.
79985         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79986         apps to have incorrect behavior.  Use simpler algorithm for head
79987         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79988         Detect more invalid usages rather than having somewhat-random behavior.
79989         Don't insert an "a=" action, as that leads to incorrect behavior.
79990         (mode_compile, mode_create_from_ref): Return NULL on error instead
79991         of an enum, since now there's only one way to have an error.  All
79992         callers changed.
79993         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79994         at the correct time.  Simplify calculation of "+u" and its ilk.
79995         Don't mishandle "+X".
79996         (mode_free): Remove "register" and localize decls.
79997         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79998         (struct mode_change): Move to modechange.c; callers don't
79999         need to see this stuff.
80000         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
80001         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
80002         (mode_change, mode_adjust): Reflect the new signatures noted above.
80003         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
80004         that might redefine system include files.
80005         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
80006         (my_usleep): Use NULL rather than (void *) 0.
80007         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
80008         Use siginterrupt to specify that system calls should be interrupted.
80009         (rpl_nanosleep): Move initialization of suspended closer to call of
80010         my_usleep.
80011         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
80012         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
80013         (desirable_utmp_entry): New function.
80014         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
80015         using x2nrealloc, to simplify logic.
80016         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80017         size calculation.  Do not assume utmp file is a regular file.
80018         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80019         (READ_UTMP_CHECK_PIDS): New constant.
80020         * lib/save-cwd.c: Include unistd-safer.h.
80021         (save_cwd): Use fd_safer.
80022         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80023         [!_LIBC] Include "stat-macros.h" instead.
80024         * lib/unistd-safer.h (fd_safer): New decl.
80025
80026 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80027
80028         * modules/getloadavg (Depends-on): Add unistd-safer.
80029         * modules/getusershell (Depends-on): Add stdio-safer.
80030         * modules/lstat (Depends-on): Remove xalloc.
80031         * modules/mkstemp (Depends-on): Add stat-macros.
80032         * modules/modechange (Depends-on): Remove xstrtol.
80033         Add stat-macros, xalloc.
80034         * modules/save-cwd (Depends-on): Add unistd-safer.
80035         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80036         * modules/unistd-safer (Files): Add lib/fd-safer.c
80037         (Makefile.am): Remove lib_SOURCES.
80038
80039         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80040         Remove fcntl-safer; unistd-safer supersedes it.
80041
80042 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80043
80044         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80045         AC_HEADER_STAT.
80046         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80047         (gl_PREREQ_CHOWN): Remove.
80048         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80049         it.  Don't require AC_HEADER_STAT.
80050         (gl_PREREQ_LSTAT): Remove.
80051         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80052         Don't require AC_HEADER_STAT.
80053         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80054         (gl_PREREQ_RMDIR): Remove.
80055         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80056         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80057         the stat-macros module a prerequisite.
80058         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80059         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80060         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80061         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80062         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80063         variable names.
80064         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80065         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80066         variable prefixes.
80067         * m4/fcntl-safer.m4: Remove.
80068         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80069         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80070         Invoke gl_PREREQ_FD_SAFER.
80071         (gl_PREREQ_FD_SAFER): New macro.
80072         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80073         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80074         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80075         Remove duplicate call to AC_LIBOBJ(readutmp).
80076         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80077
80078         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80079         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80080
80081 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80082
80083         * MODULES.html.sh (Misc): Add byteswap.
80084
80085 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80086
80087         * modules/getcwd (Depends-on): Add extensions.
80088         * modules/openat (Depends-on): Likewise.
80089
80090 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80091
80092         * modules/byteswap: New file.
80093
80094 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80095
80096         * m4/byteswap.m4: New file.
80097
80098 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80099
80100         * lib/byteswap_.h: New file.
80101
80102 2005-04-25  Karl Berry  <karl@gnu.org>
80103
80104         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80105
80106 2005-04-25  Albert Chin  <china@thewrittenword.com>
80107
80108         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80109         Toolkit C bug.
80110
80111 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80112
80113         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80114         (func_ln_if_changed): Remove forcibly for no error message
80115         in case file does not exist.
80116
80117 2005-04-19  Simon Josefsson  <jas@extundo.com>
80118
80119         * gnulib-tool (Options): Make --symlink mean --symbolic.
80120
80121 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80122
80123         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80124
80125 2005-04-16  Simon Josefsson  <jas@extundo.com>
80126
80127         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80128
80129 2005-04-15  Simon Josefsson  <jas@extundo.com>
80130
80131         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80132
80133 2005-04-15  Simon Josefsson  <jas@extundo.com>
80134
80135         * gnulib-tool: Rename --symlink to --symbolic.
80136
80137 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80138
80139         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80140         symbolic links to files instead of copying/moving.  Add --aux-dir,
80141         specifying directory relative --dir where auxiliary build tools
80142         are placed.
80143
80144 2005-04-14  Bruno Haible  <bruno@clisp.org>
80145
80146         * modules/allocsa (License): Change to LGPL.
80147         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80148
80149 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80150
80151         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80152         that "UTC +1 second" continues to work.  Problem reported
80153         by Dmitry V. Levin.
80154         (relunit_snumber): New rule.
80155         (relunit): Use it.
80156
80157 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80158
80159         * lib/getdate.y (universal_time_zone_table): New constant.
80160         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80161         universal_time_zone_table.
80162         (lookup_zone): Prefer universal_time_zone_table to
80163         local_time_zone_table, so that "GMT" time stamps are allowed in
80164         London during the summer.  Problem reported by Ian Abbott.
80165
80166 2005-04-12  Jim Meyering  <jim@meyering.net>
80167
80168         * lib/human.c (humblock): Set *options even when returning due to
80169         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80170         warning from gcc-4.
80171
80172 2005-04-09  Jim Meyering  <jim@meyering.net>
80173
80174         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80175         -Wuninitialized: initialize tm0.tm_year.
80176
80177 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80178
80179         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80180         count, since there's no maximum.  All uses changed.
80181         Add member dsts_seen.
80182         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80183         not being INT_MAX.
80184         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80185         Use pc_rels_seen to decide whther a date is absolute.
80186
80187         * lib/getdate.y (number): Don't overwrite year.
80188         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80189         check.
80190
80191 2005-04-02  Simon Josefsson  <jas@extundo.com>
80192
80193         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80194         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80195
80196 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80197
80198         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80199         where no absolute path name can be longer than PATH_MAX.
80200
80201 2005-03-27  Jim Meyering  <jim@meyering.net>
80202
80203         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80204
80205 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80206
80207         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80208         "one's complement" -> "ones' complement" in comment, as per Knuth.
80209         "value of type" -> "type or expression" in comment.
80210         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80211
80212 2005-03-26  Jim Meyering  <jim@meyering.net>
80213
80214         Comment nits.
80215         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80216         Correct typos: s/or/of/.
80217
80218 2005-03-26  Jim Meyering  <jim@meyering.net>
80219
80220         * modules/check-include-files: Move to ../ and rename to...
80221         * check-module: ...this.
80222
80223 2005-03-25  Jim Meyering  <jim@meyering.net>
80224
80225         * modules/xvasprintf (Files): Add xalloc.h.
80226
80227 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80228
80229         * modules/gettext (Files): config/config.rpath ->
80230         build-aux/config.rpath
80231         * modules/iconv (Files): Likewise.
80232         Problem reported by Oskar Liljeblad.
80233
80234 2005-03-23  Jim Meyering  <jim@meyering.net>
80235
80236         * modules/check-include-files: New script to check for
80237         missing dependencies, multiple includes, etc.
80238
80239         * modules/c-strtold (Depends-on): Add xalloc.
80240         * modules/c-strtod (Depends-on): Add xalloc.
80241         * modules/hash (Depends-on): Add xalloc.
80242         (Files): Remove lib/xalloc.h.
80243
80244         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80245         * modules/userspec (Files): Add lib/inttostr.h.
80246
80247 2005-03-23  Jim Meyering  <jim@meyering.net>
80248
80249         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80250
80251 2005-03-22  Jim Meyering  <jim@meyering.net>
80252
80253         * modules/stat-macros: New module.
80254         * modules/canonicalize, modules/euidaccess, modules/file-type,
80255         * modules/filemode, modules/lchown, modules/makepath,
80256         * modules/rmdir, modules/stat: Depend on new stat-macros module
80257         rather than listing lib/stat-macros.h manually.
80258         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80259
80260 2005-03-22  Jim Meyering  <jim@meyering.net>
80261
80262         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80263
80264 2005-03-22  Bruno Haible  <bruno@clisp.org>
80265
80266         * config/srclist.txt: Replace target directory 'config' with
80267         'build-aux'.
80268         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80269         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80270         ../build-aux/.
80271
80272 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         * modules/chdir-long (Depends-on): Add mempcpy.
80275
80276         * modules/acl, modules/backupfile, modules/c-strtod,
80277         modules/c-strtold, modules/canon-host, modules/canonicalize,
80278         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80279         modules/exclude, modules/exitfail, modules/file-type,
80280         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80281         modules/getdate, modules/getline, modules/getpagesize,
80282         modules/getpass, modules/getugroups, modules/group-member,
80283         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80284         modules/inttostr, modules/long-options, modules/makepath,
80285         modules/md5, modules/memcasecmp, modules/memcoll,
80286         modules/modechange, modules/mountlist, modules/path-concat,
80287         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80288         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80289         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80290         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80291         modules/strftime, modules/strndup, modules/strverscmp,
80292         modules/timespec, modules/unlocked-io, modules/userspec,
80293         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80294         modules/yesno:
80295         Remove lib_SOURCES line from Makefile.am section, as this is now
80296         done automatically by the corresponding Autoconf macro.
80297
80298 2005-03-21  Jim Meyering  <jim@meyering.net>
80299
80300         Changes imported from coreutils.
80301
80302         * lib/cycle-check.c: Don't include xalloc.h.
80303
80304         * lib/path-concat.c: Don't include assert.h.
80305         (path_concat): Remove assertion that would have triggered
80306         for ABASE starting with more than one slash.
80307         Reported by Andreas Schwab.
80308
80309         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80310         properly when ABASE is an absolute file name.
80311         Correct the description of this function.
80312         Include <assert.h>.
80313         Add an assertion and a test driver.
80314         This fixes a bug introduced on 2004-07-02.
80315         Andreas Schwab reported the resulting failure of cp --parents:
80316         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80317
80318 2005-03-21  Jim Meyering  <jim@meyering.net>
80319
80320         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80321         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80322
80323 2005-03-21  Jim Meyering  <jim@meyering.net>
80324         and  Paul Eggert  <eggert@cs.ucla.edu>
80325
80326         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80327         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80328         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80329         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80330         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80331         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80332         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80333         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80334         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80335         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80336         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80337         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80338         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80339         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80340         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80341         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80342         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80343         for these modules.
80344
80345 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80348         (which shouldn't happen), generate nothing instead of returning 0
80349         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80350
80351 2005-03-16  Bruno Haible  <bruno@clisp.org>
80352
80353         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80354         HAVE_LONGLONG_64BIT.
80355
80356 2005-03-16  Bruno Haible  <bruno@clisp.org>
80357
80358         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80359         HAVE_LONGLONG_64BIT.
80360
80361 2005-03-16  Bruno Haible  <bruno@clisp.org>
80362
80363         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80364         HAVE_LONGLONG_64BIT.
80365
80366 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80367
80368         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80369         reliably distinguish strftime failure from empty output on POSIX
80370         hosts.
80371
80372 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80373
80374         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80375         (iconv_string): Don't guess a size-zero buffer, as that might cause
80376         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80377         result would be 'too large', where 'too large' is (heuristically)
80378         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80379         overflow concerns.  This will prevent some unwanted malloc failures
80380         when the inputs are very large.
80381
80382 2005-03-15  Karl Berry  <karl@gnu.org>
80383
80384         * config/srclist.txt (config.rpath): from gettext.
80385         * config/config.rpath: update.
80386
80387 2005-03-15  Bruno Haible  <bruno@clisp.org>
80388
80389         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80390         to 'negate'.
80391
80392         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80393         variable.
80394
80395         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80396         results.
80397
80398 2005-03-14  Simon Josefsson  <jas@extundo.com>
80399
80400         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80401         <fx@gnu.org>.
80402
80403 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80404
80405         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80406         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80407         intprops.h.
80408         * lib/strtol.c: Likewise.
80409
80410 2005-03-14  Jim Meyering  <jim@meyering.net>
80411
80412         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80413         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80414         to be nonzero so that we (and caller) can detect the difference
80415         between a valid zero-length expansion and an error return, even
80416         when the underlying strftime fails before writing anything into
80417         that location.
80418
80419 2005-03-14  Bruno Haible  <bruno@clisp.org>
80420
80421         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80422         Update from GNU gettext 0.14.3.
80423
80424 2005-03-10  Jim Meyering  <jim@meyering.net>
80425
80426         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80427
80428 2005-03-10  Jim Meyering  <jim@meyering.net>
80429
80430         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80431         so that this module works on systems without fchdir.
80432
80433 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80434
80435         Factor int-properties macros into a single file, except for
80436         glibc-related files.
80437         * lib/intprops.h: New file.
80438         * lib/getloadavg.c: Include it instead of limits.h.
80439         (INT_STRLEN_BOUND): Remove.
80440         * lib/human.c: Include intprops.h.
80441         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80442         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80443         302/1000.
80444         * lib/inttostr.h: Include intprops.h instead of limits.h.
80445         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80446         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80447         for consistency with intprops.h.
80448         (time_t_is_integer, twos_complement_arithmetic): Use them.
80449         * lib/sig2str.h: Include <signal.h>, intprops.h.
80450         (INT_STRLEN_BOUND): Remove.
80451         * lib/strftime.c (TYPE_SIGNED): Remove.
80452         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80453         * lib/strtol.c: Adjust comments to match intprops.h.
80454         * lib/userspec.c: Include intprops.h.
80455         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80456         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80457         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80458         instead of rolling our own expressions.
80459         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80460
80461         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80462         instead of int.
80463         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80464         the right thing even if adding 1900 would overflow.  Similarly
80465         for tm_mon + 1 and tm_yday + 1.
80466         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80467         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80468         (DO_SIGNED_NUMBER): New macro.
80469         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80470
80471 2005-03-07  Bruno Haible  <bruno@clisp.org>
80472
80473         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80474
80475 2005-03-07  Bruno Haible  <bruno@clisp.org>
80476
80477         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80478
80479 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80480
80481         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80482         (func_import): Only replace files via --import when they have actually
80483         changed.
80484
80485 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80486
80487         * m4/mmap-anon.m4: New file.
80488         * m4/pagealign_alloc.m4: New file.
80489
80490 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80491             Bruno Haible  <bruno@clisp.org>
80492
80493         * modules/pagealign_alloc: New file.
80494         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80495
80496 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80497             Bruno Haible  <bruno@clisp.org>
80498
80499         * lib/pagealign_alloc.h: New file.
80500         * lib/pagealign_alloc.c: New file.
80501
80502 2005-03-03  Bruno Haible  <bruno@clisp.org>
80503
80504         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80505         Use an all-permissive copyright notice, recommended by RMS.
80506
80507 2005-03-02  Bruno Haible  <bruno@clisp.org>
80508
80509         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80510         of AIX, the replacement has to be done only after <string.h> is
80511         included, therefore not in config.h. stpncpy.h does the replacement,
80512         and stpncpy.c uses it.
80513
80514 2005-03-02  Bruno Haible  <bruno@clisp.org>
80515
80516         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80517         stpncpy.c uses it.
80518
80519 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80520
80521         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80522         The workaround isn't strictly needed for POSIX conformance, and
80523         it's too much of a pain to configure and maintain.  We'll ask
80524         people to fix their kernels instead.
80525         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80526         (NANOSLEEP_BUG_WORKAROUND): Remove.
80527         (xnanosleep): Remove the workaround.
80528
80529 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80530
80531         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80532         Reported by Derek Price.
80533         (Include): Add "timespec.h".
80534
80535         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80536
80537 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80538
80539         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80540         to detect nanosleep bug.
80541
80542 2005-03-01  Bruno Haible  <bruno@clisp.org>
80543
80544         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80545
80546 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80547
80548         * modules/gethrxtime: New file.
80549         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80550         (Depends-on): Add gethrxtime.
80551         (configure.ac): Add gl_XNANOSLEEP.
80552         (Makefile.am): Remove lib_SOURCES line.
80553
80554 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80555
80556         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80557         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80558
80559 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80560
80561         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80562         * lib/timespec.h (gettime): Return void, since it always
80563         succeeds now.  All uses changed.
80564         * lib/gettime.c (gettime): Likewise.
80565         [HAVE_NANOTIME]: Prefer nanotime.
80566         Assume gettimeofday succeeds, as POSIX requires.
80567         Assime time () succeeds, since other code already does.
80568         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80569         (timespec_subtract): Remove.
80570         (NANOSLEEP_BUG_WORKAROUND): New constant.
80571         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80572         things considerably.  Use it only on GNU/Linux hosts, since the
80573         workaround shouldn't be needed elsewhere.
80574
80575 2005-02-24  Bruno Haible  <bruno@clisp.org>
80576
80577         * modules/gettext (Files): Add m4/glibc2.m4.
80578
80579 2005-02-24  Bruno Haible  <bruno@clisp.org>
80580
80581         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80582         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80583         * m4/progtest.m4:
80584         Update from GNU gettext 0.14.2.
80585         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80586
80587 2005-02-24  Bruno Haible  <bruno@clisp.org>
80588
80589         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80590         * lib/config.charset: Update from GNU gettext 0.14.2.
80591
80592 2005-02-24  Bruno Haible  <bruno@clisp.org>
80593
80594         * lib/gettext.h: Update from GNU gettext 0.14.2.
80595
80596 2005-02-23  Simon Josefsson  <jas@extundo.com>
80597
80598         * m4/iconvme.m4: New file.
80599
80600 2005-02-23  Jim Meyering  <jim@meyering.net>
80601
80602         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80603         change.
80604         Thanks to Bruno Haible for catching it.
80605
80606 2005-02-22  Simon Josefsson  <jas@extundo.com>
80607
80608         * modules/iconvme: New file.
80609
80610         * MODULES.html.sh: Add iconvme.
80611
80612 2005-02-22  Simon Josefsson  <jas@extundo.com>
80613
80614         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80615
80616 2005-02-22  Simon Josefsson  <jas@extundo.com>
80617
80618         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80619
80620 2005-02-22  Jim Meyering  <jim@meyering.net>
80621
80622         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80623         s/ifndef/ifdef/.
80624
80625 2005-02-20  Neil Conway  <neilc@samurai.com>
80626
80627         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80628         returned by OSX/Darwin if the specified buffer is not large
80629         enough for the hostname.
80630
80631 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80632
80633         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80634         pass it to _help, otherwise the latter coredumps trying to
80635         dereference state.root_argp.
80636
80637 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80638
80639         * modules/chdir-long (Depends-on): Add memrchr.
80640         * modules/memrchr (Files): Add lib/memrchr.h.
80641         (Include): "memrchr.h".
80642
80643 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80644
80645         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80646
80647 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80648
80649         * lib/memrchr.h: New file.
80650         * lib/chdir-long.c: Include it.
80651         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80652         Don't bother including stddef.h.
80653
80654 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80655
80656         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80657         inclusion.
80658         Include <sys/types.h>, for dev_t.
80659         (ME_DUMMY, ME_REMOTE): Move from here....
80660         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80661         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80662         Dmitry V. Levin.
80663         Include mountlist.h first, to test the interface.
80664
80665 2005-01-29  Bruno Haible  <bruno@clisp.org>
80666
80667         * lib/progname.c (program_name): Initialize.
80668         Needed when linking statically on MacOS X.
80669
80670 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         Sync from coreutils.
80673         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80674         (Depends-on): Add c-strtod.
80675         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80676
80677 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80678
80679         Sync from coreutils.
80680         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80681
80682         Remove files that are specific to coreutils.
80683         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80684
80685 2005-01-28  Bruno Haible  <bruno@clisp.org>
80686
80687         * modules/javacomp: New file.
80688         * MODULES.html.sh (Java): Add javacomp.
80689
80690 2005-01-28  Bruno Haible  <bruno@clisp.org>
80691
80692         * m4/javacomp.m4: New file, from GNU gettext.
80693
80694 2005-01-28  Bruno Haible  <bruno@clisp.org>
80695
80696         * lib/javacomp.sh.in: New file, from GNU gettext.
80697         * lib/javacomp.h: New file, from GNU gettext.
80698         * lib/javacomp.c: New file, from GNU gettext.
80699
80700 2005-01-26  Simon Josefsson  <jas@extundo.com>
80701
80702         * lib/gai_strerror.c: Use GPL in header.
80703
80704 2005-01-26  Bruno Haible  <bruno@clisp.org>
80705
80706         * modules/javaexec: New file.
80707         * MODULES.html.sh (Java): Add javaexec.
80708
80709 2005-01-26  Bruno Haible  <bruno@clisp.org>
80710
80711         * m4/javaexec.m4: New file, from GNU gettext.
80712
80713 2005-01-26  Bruno Haible  <bruno@clisp.org>
80714
80715         * lib/javaexec.sh.in: New file, from GNU gettext.
80716         * lib/javaexec.h: New file, from GNU gettext.
80717         * lib/javaexec.c: New file, from GNU gettext.
80718
80719 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80720
80721         * modules/lchown (Depends-on): Remove lchown.h
80722
80723 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80724
80725         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80726         must be defined if the header file was not found, in order
80727         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80728
80729 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80730
80731         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80732         initializers for struct pentry_state.
80733         (__argp_error): Check return value of __asprintf
80734         (__argp_failure): Translate error message
80735
80736         * lib/argp-parse.c: Removed braces around the expansion of N_()
80737
80738 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80739
80740         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80741         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80742         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80743         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80744         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80745         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80746         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80747         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80748         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80749         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80750         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80751         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80752         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80753         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80754         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80755         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80756         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80757         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80758         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80759         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80760         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80761         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80762         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80763         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80764         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80765         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80766         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80767         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80768         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80769         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80770         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80771         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80772         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80773         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80774         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80775         Use an all-permissive copyright notice, recommended by RMS.
80776
80777 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80778
80779         * modules/chdir-long (Depends-on): Remove mempcpy.
80780
80781 2005-01-21  Jim Meyering  <jim@meyering.net>
80782
80783         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80784         same value as for Solaris 9.
80785
80786         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80787         component length.  This included changing the parameter to be
80788         of type `char *' rather than `char const *'.
80789         * lib/chdir-long.h (chdir_long): Update prototype.
80790
80791         * lib/openat.c (fdopendir, fstatat): New functions.
80792         * lib/openat.h: Include headers required for use of DIR and struct
80793         stat.
80794         [AT_SYMLINK_NOFOLLOW]: Define.
80795         (fdopendir, fstatat): Add prototypes.
80796
80797 2005-01-21  Bruno Haible  <bruno@clisp.org>
80798
80799         * modules/classpath: New file.
80800         * MODULES.html.sh (Java): Add classpath.
80801
80802 2005-01-21  Bruno Haible  <bruno@clisp.org>
80803
80804         * lib/classpath.h: New file, from GNU gettext.
80805         * lib/classpath.c: New file, from GNU gettext.
80806
80807 2005-01-20  Simon Josefsson  <jas@extundo.com>
80808
80809         * modules/version-etc-fsf: New file.
80810
80811 2005-01-20  Simon Josefsson  <jas@extundo.com>
80812
80813         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80814         * lib/version-etc.c: Remove version_etc_copyright.
80815         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80816         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80817
80818 2005-01-20  Simon Josefsson  <jas@extundo.com>
80819
80820         * lib/base64.h (isbase64): Add.
80821
80822         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80823         using a unsigned prototype, don't inline.
80824         (base64_decode): Use it.
80825
80826 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80827
80828         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80829         it.
80830
80831 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80832
80833         * lib/save-cwd.c (save_cwd): Remove code to support the case
80834         where fchdir is missing or flaky.
80835
80836 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80837
80838         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80839
80840 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80841
80842         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80843         AC_LIBSOURCES now does this.
80844         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80845         with new ullong_max module.
80846
80847 2005-01-19  Bruno Haible  <bruno@clisp.org>
80848
80849         * modules/sh-quote: New file.
80850         * MODULES.html.sh (Executing programs): Add sh-quote.
80851
80852 2005-01-19  Bruno Haible  <bruno@clisp.org>
80853
80854         * lib/sh-quote.h: New file, from GNU gettext.
80855         * lib/sh-quote.c: New file, from GNU gettext.
80856
80857 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         Merge from coreutils.
80860         * m4/ullong_max.m4: New file.
80861         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80862         (gl_MACROS): Assume localeconv exists.
80863
80864 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80865
80866         Merge changes from coreutils, as described below in several
80867         changelogs dated today.
80868
80869         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80870         (O_DIRECTORY): Remove; not needed here, since "." must be
80871         a directory.  All uses removed.
80872         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80873         universal on Suns, and we also need to test for IRIX.
80874         Revamp code to use 'if' rather than '#if'.
80875         Avoid unnecessary comparison of cwd->desc to 0.
80876
80877         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80878         for known valid error numbers rather than observed invalid ones.
80879
80880 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80881
80882         * modules/ullong_max: New file.
80883
80884         * modules/chdir-long, modules/openat: New files.
80885         * modules/save-cwd (Depends-on): Depend on chdir-long.
80886         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80887
80888 2005-01-18  Jim Meyering  <jim@meyering.net>
80889
80890         Merge from coreutils.
80891         * m4/chdir-long.m4, m4/openat.m4: New files.
80892         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80893         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80894         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80895         is sane and DOES follow symlinks.  Besides, testing 20 different
80896         systems found no broken chown implementations.
80897         Prompted by a change in rsync's copy of this macro.
80898         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80899
80900         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80901
80902         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80903         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80904         NULL-means-set-to-current-time semantics.
80905         Remove temporary file immediately, rather than waiting
80906         for configure's at-exit trap code to do it.
80907
80908 2005-01-18  Jim Meyering  <jim@meyering.net>
80909
80910         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80911
80912         * lib/utimens.c (futimens): Account for the fact that futimes
80913         can also fail with errno == ENOSYS or errno == ENOENT.
80914         Patch from Dmitry V. Levin.
80915
80916         Change the name of the robust chdir function from chdir to chdir_long.
80917         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80918         (restore_cwd): Use chdir_long, not chdir.
80919         * lib/chdir-long.c: Renamed from chdir.c.
80920         * lib/chdir-long.h: Renamed from chdir.h.
80921         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80922         Hurd.
80923
80924 2005-01-18  Bruno Haible  <bruno@clisp.org>
80925
80926         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80927         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80928         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80929         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80930         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80931         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80932         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80933         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80934         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80935         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80936         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80937         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80938         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80939         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80940         Use an all-permissive copyright notice, recommended by RMS.
80941
80942 2005-01-18  Bob Proulx  <bob@proulx.com>
80943
80944         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80945         simplify offsetof() macro construct to avoid compile failure with
80946         native HP-UX 11.0 ANSI C compiler.
80947
80948 2005-01-17  Bruno Haible  <bruno@clisp.org>
80949
80950         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80951         redundant because stpncpy.m4 takes care of it.
80952
80953 2005-01-17  Bruno Haible  <bruno@clisp.org>
80954
80955         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80956
80957 2005-01-17  Bruno Haible  <bruno@clisp.org>
80958
80959         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80960         used.
80961
80962 2005-01-17  Bruno Haible  <bruno@clisp.org>
80963
80964         * lib/fwriteerror.h (fwriteerror): Change specification to include
80965         fclose.
80966         * lib/fwriteerror.c: Include <stdbool.h>.
80967         (fwriteerror): At the end, close the file stream. Record whether
80968         stdout was already closed.
80969
80970 2005-01-17  Bruno Haible  <bruno@clisp.org>
80971
80972         * lib/execute.c (environ): Declare if needed.
80973         * lib/pipe.c (environ): Likewise.
80974         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80975
80976 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80977
80978         * modules/argp: Depend on vsnprintf
80979
80980 2005-01-10  Jim Meyering  <jim@meyering.net>
80981
80982         * modules/closeout (Depends-on): Add atexit.
80983
80984 2005-01-06  Bruno Haible  <bruno@clisp.org>
80985
80986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80987
80988 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80989
80990         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80991         definitions to be after all include files, to avoid collisions.
80992         Problem reported by Bob Proulx.
80993
80994 2005-01-04  Jim Meyering  <jim@meyering.net>
80995
80996         Changes imported from coreutils.
80997         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80998         as the mkstemp template, use a temporary directory and an
80999         8.3-friendly template to avoid trouble on systems like DJGPP.
81000         Reported by Juan M. Guerrero via Stepan Kasal.
81001         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
81002         close. Remove the temporary directory right away, rather than waiting
81003         for configure's at-exit trap code to do it.
81004         Suggestion from Stepan Kasal.
81005
81006 2005-01-01  Simon Josefsson  <jas@extundo.com>
81007
81008         * gnulib-tool: Print #include directives when --import'ing.
81009
81010 2004-12-28  Simon Josefsson  <jas@extundo.com>
81011
81012         * tests/test-base64.c: Include required header files.  Remove
81013         unused variables.
81014
81015 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81016
81017         * modules/error (Depends-on): Remove gettext.
81018
81019 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81020
81021         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81022         not needed.  This removes a dependency on the gettext module.
81023         [defined _LIBC]: Do not include <libintl.h>; not needed.
81024
81025 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81026
81027         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81028         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81029
81030 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81031
81032         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81033         HAVE_DECL_STRTOLD.
81034
81035 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81036
81037         * modules/getdate (Depends-on): Remove alloca-opt.
81038
81039 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81040
81041         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81042
81043 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81044
81045         * lib/argp-parse.c: Include <stddef.h>.
81046         (alignof, alignto): New macros.
81047         (parser_init): Don't assume that void * is aligned sufficiently
81048         for struct option.
81049
81050         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81051         need to extend the stack.
81052         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81053         large.
81054
81055 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81056
81057         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81058
81059 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81060
81061         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81062         (2004-10-24) change.  Apparently this was a false alarm.
81063
81064         * modules/getdate: Depend on alloca-opt, not alloca.
81065
81066 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81067
81068         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81069         Remove now-obsolete comment about AIX.
81070         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81071         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81072         (YYMAXDEPTH): New macro.
81073
81074 2004-12-18  Simon Josefsson  <jas@extundo.com>
81075
81076         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81077
81078 2004-12-18  Bruno Haible  <bruno@clisp.org>
81079
81080         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81081
81082 2004-12-18  Bruno Haible  <bruno@clisp.org>
81083
81084         * lib/fatal-signal.c (fatal_signals): Make non-const.
81085         (init_fatal_signals): New function.
81086         (uninstall_handlers, install_handlers): Ignore signals that were set to
81087         SIG_IGN.
81088         (at_fatal_signal): Call init_fatal_signals.
81089         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81090         SIG_IGN.
81091         Reported by Paul Eggert.
81092
81093 2004-12-18  Bruno Haible  <bruno@clisp.org>
81094
81095         * doc/alloca.texi: New file.
81096         * doc/alloca-opt.texi: New file.
81097
81098 2004-12-17  Jim Meyering  <jim@meyering.net>
81099
81100         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81101         Otherwise, install-sh could exit with improper exit status when
81102         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81103
81104 2004-12-16  Simon Josefsson  <jas@extundo.com>
81105
81106         * tests/test-base64.c: Add license.
81107
81108 2004-12-15  Stepan Kasal  <address@hidden>
81109
81110         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81111
81112 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81113
81114         * modules/getcwd (Files): Add m4/d-ino.m4.
81115         Suggested by Mark D. Baushke.
81116
81117 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81118
81119         * lib/getdate.y (textint): New member "negative".
81120         (time_zone_hhmm): New function.
81121         Expect 14 shift-reduce conflicts, not 13.
81122         (o_colon_minutes): New rule.
81123         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81124         (yylex): Set the "negative" member of signed numbers.
81125
81126 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81127
81128         * doc/getdate.texi (Time of day items, Time zone items):
81129         Describe new formats +00:00, UTC+00:00.
81130
81131 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81132
81133         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81134         spurious "-l"s.  Problem reported by Stepan Kasal.
81135
81136 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81137
81138         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81139         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81140
81141 2004-12-04  Simon Josefsson  <jas@extundo.com>
81142
81143         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81144         Vandoorselaere <yoann@prelude-ids.org>.
81145
81146 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81147
81148         Changes imported from coreutils.
81149         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81150         exist.
81151         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81152
81153 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81154
81155         Changes imported from coreutils.
81156         * lib/hard-locale.c: Assume <locale.h> exists.
81157         Include "strdup.h".
81158         (GLIBC_VERSION): New macro.
81159         (hard_locale): Assume setlocale exists.
81160         Rewrite to avoid #ifdef.
81161         Use strdup rather than malloc + strcpy.
81162         * lib/human.c: Assume <locale.h> exists.
81163         (human_readable): Assume localeconv exists.
81164
81165 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * modules/hard-locale (Depends-on): Add strdup.
81168
81169 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81170
81171         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81172         convert T2, not T.  (Imported from libc.)
81173
81174 2004-11-30  Simon Josefsson  <jas@extundo.com>
81175
81176         * modules/restrict (License): Change to LGPL.
81177
81178 2004-11-30  Simon Josefsson  <jas@extundo.com>
81179
81180         * m4/restrict.m4: Add copyright and copying conditions.
81181
81182 2004-11-30  Simon Josefsson  <jas@extundo.com>
81183
81184         * m4/base64.m4: New file.
81185
81186 2004-11-30  Simon Josefsson  <jas@extundo.com>
81187
81188         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81189         base64.
81190
81191         * tests/test-base64.c: New file.
81192
81193         * modules/base64: New file.
81194
81195 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81196
81197         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81198         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81199
81200         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81201
81202 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81203
81204         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81205         (__getcwd.c): Don't restore errno; glibc doesn't.
81206         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81207         first, falling back to our code only if its results look suspicious.
81208         Ensure that the resulting buffer is only as large as necessary.
81209
81210         * lib/readutmp.c: Include readutmp.h first.
81211         Include <errno.h>, since readutmp.h no longer does that.
81212         * lib/readutmp.h: Don't include <errno.h>,
81213         <sys/param.h>, <time.h>; not needed to establish interface.
81214         (errno): Remove decl.
81215         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81216         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81217         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81218
81219 2004-11-28  Simon Josefsson  <jas@extundo.com>
81220
81221         * lib/base64.h, base64.c: New file.
81222
81223 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81224
81225         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81226
81227 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81228
81229         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81230         (Depends-on): Remove pathmax, same.  Add mempcpy.
81231         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81232         (Makefile.am): Append getcwd.h to lib_SOURCES.
81233         (Include): Add getcwd.h.
81234         (Maintainer): Change from Jim Meyering to "all, glibc",
81235         since getdate now uses intended-for-glibc code.
81236         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81237         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81238
81239 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81240
81241         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81242         HP's ANSI C compiler.
81243         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81244         Declaring int functions causes warnings on some modern systems and
81245         shouldn't be needed to compile on ancient ones.
81246         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81247         defined.
81248
81249         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81250         with the following changes.
81251         (__set_errno): Parenthesize properly.
81252         Include <stdbool.h>.
81253         (MIN, MAX, MATCHING_INO): New macros.
81254         (__getcwd): Define with prototype, not K&R form.
81255         Use heuristics to allocate default buffer on stack if possible.
81256         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81257         behavior, and to avoid the PATH_MAX limit when computing
81258         ../../../../...
81259         Use MATCHING_INO to compare inode number to file.
81260         Check for arithmetic overflow in size calculations.
81261         Fix bug in reallocation of dot array that caused getcwd to fail
81262         on directories nested deeper than 75.
81263         Be more careful about saving errno on error.
81264         Do not use realloc; use only free+malloc, as this is a bit
81265         more flexible and avoids a needless copy operation.
81266         Do not inspect st_dev and st_ino for symbolic links; POSIX
81267         doesn't specify the latter.
81268         Check for closedir errors.
81269         Avoid needless casts.
81270         Use "#ifdef weak_alias" around weak_alias, to be like other
81271         glibc code.
81272         The following changes to getcwd.c have effect only when used in
81273         gnulib; they have no effect inside glibc proper.
81274         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81275         as alloca isn't used.
81276         (alloca, __alloca): Likewise.
81277         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81278         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81279         unconditionally, as gnulib assumes C89 or better.
81280         Do not include <sys/param.h>.
81281         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81282         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81283         better.
81284         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81285         Include <dirent.h> in a way that is compatible with modern Autoconf.
81286         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81287         New macros, if not already defined.
81288         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81289         Use "_LIBC", not "defined _LIBC", for consistency.
81290         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81291         a mempcpy module.
81292         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81293         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81294         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81295         credit only to Jim Meyering and adjust the copyright dates.
81296         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81297         <stdlib.h>, <unistd.h>, "pathmax.h".
81298         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81299         (INITIAL_BUFFER_SIZE): Remove.
81300         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81301
81302 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81303
81304         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81305         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81306         Use the _ONCE methods, for efficiency.
81307         Check for fcntl.h.  In test program, include <errno.h>
81308         and <fcntl.h> if available.  Remove old K&R cruft from
81309         test program.  Check for common errors in GNU/Linux,
81310         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81311         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81312         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81313         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81314         name accordingly.
81315         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81316         accommodate new getcwd.c.
81317         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81318         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81319         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81320         that's all we need now.
81321
81322 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81323
81324         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81325         argp-parse.c depends on getopt internals, that means we should
81326         always use our getopt, to be on the safe side.
81327         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81328         order not to spoil the result of an eventual previous invocation
81329         of gl_GETOPT_SUBSTITUTE.
81330
81331 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81332
81333         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81334         redefinition warnings. To avoid them, include the defines
81335         in `#if !defined __need_getopt ... #endif'. The only place
81336         where __getopt_argv_const is used is in definitions
81337         of getopt_long and getopt_long_only below, which are as well
81338         protected by `#ifndef __need_getopt'.
81339         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81340         __need_getopt after including <stdio.h> and <unistd.h> These
81341         headers might have defined it.
81342
81343 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81344
81345         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81346
81347 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81350         (futimens): New function, which uses futimes if available.
81351         (futimens, utimens): Support timespec==NULL, with same semantics
81352         as utime and utimens.
81353         * lib/utimens.h (futimens): New decl.
81354
81355 2004-11-23  Jim Meyering  <jim@meyering.net>
81356
81357         * lib/getopt_.h: Remove trailing blanks.
81358
81359 2004-11-23  Jim Meyering  <jim@meyering.net>
81360
81361         * lib/__fpending.c: Add comment.
81362
81363 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81364
81365         * modules/canonicalize (Depends-on): Add xreadlink.
81366         Problem reported by James Youngman.
81367
81368 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81369
81370         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81371         New macros.
81372         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81373         optopt): Use them instead of invoking ## directly; otherwise, the
81374         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81375
81376 2004-11-19  Bruno Haible  <bruno@clisp.org>
81377
81378         * lib/strtok_r.c: Move comments from here...
81379         * lib/strtok_r.h: ... to here.
81380
81381 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81382
81383         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81384         implementations that mishandle size_t overflow.
81385
81386 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81387
81388         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81389         might fail.  Problem reported by Yoann Vandoorselaere.
81390         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81391         implementations that mishandle size_t overflow.
81392
81393 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81394
81395         * modules/canon-host (Depends-on): Add strdup.
81396
81397 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81398
81399         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81400
81401 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81402
81403         * lib/canon-host.c: Include "strdup.h".
81404         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81405         Use strdup instead of malloc/strcpy to duplicate strings.
81406
81407         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81408         (human_space_before_unit): New constant.
81409         * lib/human.c (human_readable): Support it.
81410
81411         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81412         (xgetcwd): Set errno correctly when failing.
81413         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81414         the failure is actually due to a PATH_MAX problem.
81415
81416         Further getopt changes to make it more likely that glibc will
81417         buy the changes back.
81418         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81419         (getopt): Use it, so to preserve glibc semantic
81420         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81421         when compiling for libc.
81422         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81423         (getopt_long, getopt_long_only): Use it.
81424
81425         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81426         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81427         (getopt): Argv is now char * const *, as per standard.
81428         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81429         not char *__getopt_argv_const *.
81430         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81431         _getopt_long_only_r): Likewise.
81432         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81433         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81434         _getopt_long_r, _getopt_long_only_r): Likewise.
81435         * lib/getopt_.h (__getopt_argv_const): Remove.
81436         (getopt): Argv is now char * const *, as per standard.
81437
81438         * lib/getdate.y (tORDINAL): New token.
81439         (day, relunit): Allow it for relative times.
81440         (relative_time_table): Use tORDINAL for ordinals.
81441
81442 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81443
81444         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81445         Document that "second" isn't allowed as an ordinal number.
81446
81447 2004-11-16  Jim Meyering  <jim@meyering.net>
81448
81449         * modules/closeout (Depends-on): Add fpending.
81450
81451 2004-11-15  Jim Meyering  <jim@meyering.net>
81452
81453         * lib/closeout.c: Include "__fpending.h" once again.
81454         Include <stdbool.h>.
81455         (close_stdout): Don't fail just because stdout was closed initially,
81456         since some programs don't write to stdout in the normal course of
81457         operation (other than --version and --help), and we don't want this
81458         function to make e.g. `touch file >&-' fail.
81459         But do fail if it was closed and someone has tried to write to it.
81460         E.g., `printf foo >&-' must fail.
81461
81462 2004-11-13  Jim Meyering  <jim@meyering.net>
81463
81464         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81465
81466 2004-11-12  Simon Josefsson  <jas@extundo.com>
81467
81468         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81469         small doc fix is still pending.
81470
81471 2004-11-11  Simon Josefsson  <jas@extundo.com>
81472
81473         * modules/strtok_r: New file.
81474
81475         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81476         strtok_r.
81477
81478 2004-11-11  Simon Josefsson  <jas@extundo.com>
81479
81480         * m4/strtok_r.m4: New file.
81481
81482         * m4/getopt.m4: Replace opterr.
81483
81484 2004-11-11  Simon Josefsson  <jas@extundo.com>
81485
81486         * lib/strtok_r.h, strtok_r.c: New file.
81487
81488 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81489
81490         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81491         of replacing opterr, getopt, etc.  This should handle the
81492         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81493
81494 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81495
81496         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81497         we can stop lying to compilers about the constness of argv when we
81498         are compiled outside glibc.
81499         (getopt, getopt_long, getopt_long_only): Use it.
81500         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81501         _getopt_internal, getopt): Likewise.
81502         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81503         _getopt_long_only_r): Likewise.
81504         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81505         _getopt_long_r, _getopt_long_only_r): Likewise.
81506
81507         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81508         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81509         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81510         the other external symbols.
81511         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81512         declaration, since the above renaming now works around collisions.
81513
81514 2004-11-11  Jim Meyering  <jim@meyering.net>
81515
81516         * lib/linebreak.c: Remove trailing blanks.
81517         * lib/alloca_.h: Likewise.
81518         * lib/acosl.c: Likewise.
81519         * lib/euidaccess.c: Likewise.
81520         * lib/allocsa.h: Likewise.
81521
81522 2004-11-10  Simon Josefsson  <jas@extundo.com>
81523
81524         * m4/getaddrinfo.m4: New file.
81525
81526 2004-11-10  Simon Josefsson  <jas@extundo.com>
81527
81528         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81529
81530 2004-11-10  Simon Josefsson  <jas@extundo.com>
81531
81532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81533         getaddrinfo.
81534
81535         * modules/getaddrinfo: New file.
81536
81537 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81538
81539         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81540
81541 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81542
81543         * lib/mktime.c (SHR): New macro, which is a portable
81544         substitute for >> that should work even on Crays.
81545         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81546         Problem reported by Mark D. Baushke in
81547         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81548         * lib/getdate.y (SHR): Likewise.
81549         (tm_diff): Use it.
81550         * lib/strftime.c (SHR): Likewise.
81551         (tm_diff): Use it.
81552         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81553         quote_these_too, so that right shifts are well defined.  All uses
81554         changed.
81555
81556 2004-11-10  Jim Meyering  <jim@meyering.net>
81557
81558         Ensure that no close failure goes unreported.
81559         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81560         return early when it seems there's nothing to flush.
81561         Don't include __fpending.h.
81562
81563 2004-11-10  Jim Meyering  <jim@meyering.net>
81564
81565         * modules/closeout (Depends-on): Remove fpending.
81566
81567 2004-11-10  Jim Meyering  <jim@meyering.net>
81568
81569         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81570
81571 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81574         gl_FUNC_STRFTIME.
81575         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81576         and AC_REQUIRE when possible, to avoid duplicate checks.
81577         Check for <wchar.h>.
81578
81579 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81580
81581         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81582
81583 2004-11-09  Bruno Haible  <bruno@clisp.org>
81584
81585         * m4/sockpfaf.m4: New file.
81586
81587 2004-11-05  Bruno Haible  <bruno@clisp.org>
81588
81589         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81590         Reported by Mark D. Baushke <mdb@cvshome.org>.
81591
81592 2004-11-04  Bruno Haible  <bruno@clisp.org>
81593
81594         2004-09-11  Bruno Haible  <bruno@clisp.org>
81595                 * allocsa.valgrind: New file.
81596         2004-02-06  Bruno Haible  <bruno@clisp.org>
81597                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81598                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81599                 Reported by Christopher Seip <chris.seip@hp.com>.
81600
81601 2004-11-04  Bruno Haible  <bruno@clisp.org>
81602
81603         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81604         (Makefile.am): Distribute it.
81605
81606 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81607
81608         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81609         with errno == ERANGE if the buffer is too small.
81610         Problem reported by Mark D. Baushke.
81611
81612 2004-11-03  Albert Chin  <china@thewrittenword.com>
81613             Paul Eggert  <eggert@cs.ucla.edu>
81614
81615         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81616         equivalent, substitute $ac_type for equivalent type rather than
81617         blindly using uint32_t *always* which won't work if uint32_t is not
81618         available.  Define _UINT32_T to work around typedef of uint32_t if
81619         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81620         2.5.1.
81621
81622 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81623
81624         * m4/jm-macros.m4: Sync from coreutils.
81625         (gl_MACROS): Check for mbrlen, for pathchk.
81626         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81627
81628 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81629
81630         * lib/xreadlink.c (MAXSIZE): New macro.
81631         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81632         size does not exceed MAXSIZE.  Avoid cast.
81633         As suggested by Mark D. Baushke in
81634         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81635         if readlink fails with buffer size just under MAXSIZE, try again
81636         with MAXSIZE.
81637
81638 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81639
81640         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81641
81642 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81643         and  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81646         (get_date): Overparenthesize to avoid GCC warning.
81647
81648 2004-11-02  Bruno Haible  <bruno@clisp.org>
81649
81650         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81651         returns void.
81652
81653 2004-11-02  Bruno Haible  <bruno@clisp.org>
81654
81655         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81656         function returns void.
81657
81658 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81659
81660         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81661         fflush_unlocked, flockfile, funlockfile, funlockfile,
81662         fputs_unlocked, putc_unlocked.
81663
81664 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81665
81666         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81667         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81668         already declared.
81669
81670 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81671
81672         * modules/getdate (Files): Add doc/getdate.texi.
81673         (Depends-on): Add setenv, xalloc.
81674
81675 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81676
81677         * lib/getdate.y: Add support for TZ="foo" within a date string.
81678         Fix some bugs near time_t boundaries.  Reject dates with
81679         out-of-range components, e.g., "Sept 31".
81680         Include <stdlib.h>, "setenv.h", "xalloc.h".
81681         (ISDIGIT_LOCALE): Remove; unused.
81682         Note that the TZ and time functions used here are not reentrant.
81683         (mktime_ok, get_tz): New functions.
81684         (TZBUFSIZE): New constant.
81685         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81686         This requires that we sometimes generate our own TZ="XXX..." setting.
81687
81688 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81689
81690         * doc/getdate.texi: New file, from coreutils with modifications for
81691         the new TZ parsing.
81692
81693 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81694
81695         * lib/mktime.c (not_equal_tm): Remove redundant check.
81696
81697 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81698
81699         * modules/regex (lib_SOURCES): Add regex.c.
81700         Reported by James Youngman in
81701         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81702
81703 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81704
81705         * lib/getdate.y: Use Bison 1.875 features, and some minor
81706         code cleanups.  This change does not affect semantics.
81707         Don't include <stdlib.h>; no longer needed.
81708         Don't include unlocked-io.h; only the "#if TEST" code uses
81709         stdio, and performance isn't crucial there.
81710         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81711         Bison 1.875 features as described below.
81712         All uses of "PC." replaced by "pc->".
81713         (YYSTYPE): Add a forward declaration.
81714         (yylex, yyerror): Use full prototypes in forward decls.
81715         Use "%pure-parser" rather than obsolescent "%pure_parser".
81716         Use %parse-param and %lex-param instead of obsolescent
81717         YYPARSE_PARAM and YYLEX_PARAM.
81718         (meridian_table, month_and_day_table, time_units_table,
81719         relative_time_table, time_zone_table, military_table,
81720         lookup_zone, lookup_word, get_date):
81721         Use NULL instead of 0 where appropriate.
81722         (to_hour): Avoid abort (), to avoid a dependency on
81723         stdlib.h.
81724         (yyerror, yylex): Now accepts parser_control * arg.
81725         (main) [TEST]: Use '\0' rather than 0 for char.
81726
81727 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81730
81731 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81732
81733         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81734         It's now the caller's responsibility to handle the case where
81735         !HAVE_GETPAGESIZE && !defined getpagesize.
81736
81737         * lib/mktime.c (leapyear): Arg is long int, not int.
81738
81739 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81740
81741         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81742
81743 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81744
81745         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81746         missing.  Problem reported by James Youngman.
81747
81748 2004-10-16  Simon Josefsson  <jas@extundo.com>
81749
81750         * gnulib-tool: Fix comments.  Fix parse problem.
81751         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81752
81753 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81754
81755         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81756         implementation of getopt_long.  Problem reported by Alexander Taler in:
81757         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81758
81759 2004-10-15  Bruno Haible  <bruno@clisp.org>
81760
81761         * gnulib-tool: Untabify. Initialize supplied_libname.
81762         (func_usage): More homogenous output.
81763         (func_modules_transitive_closure, func_modules_to_filelist,
81764         func_emit_lib_Makefile_am): New functions.
81765         (func_import): New function, extracted from big case statement. Use
81766         func_get_license, func_modules_transitive_closure,
81767         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81768         opt_lgpl. Don't use test -a, as it's not portable.
81769         (func_create_testdir): Use func_modules_transitive_closure,
81770         func_modules_to_filelist, func_emit_lib_Makefile_am.
81771
81772 2004-10-15  Bruno Haible  <bruno@clisp.org>
81773
81774         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81775
81776 2004-10-15  Bruno Haible  <bruno@clisp.org>
81777
81778         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81779         the portions belonging to each module.
81780         Suggested by Derek Robert Price <derek@ximbiot.com>.
81781
81782 2004-10-12  Simon Josefsson  <jas@extundo.com>
81783
81784         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81785         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81786         to real functions.
81787
81788 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81789
81790         * modules/vsnprintf: New file.
81791
81792 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81793
81794         * m4/vsnprintf.m4: New file.
81795
81796 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81797
81798         * lib/vsnprintf.h: New file.
81799         * lib/vsnprintf.c: New file.
81800
81801 2004-10-11  Bruno Haible  <bruno@clisp.org>
81802
81803         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81804         vsnprintf.
81805
81806 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81807
81808         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81809
81810 2004-10-07  Bruno Haible  <bruno@clisp.org>
81811
81812         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81813         fits into the provided buffer.
81814
81815 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81816
81817         * lib/diacrit.c, diacrit.h: Add GPL notice.
81818
81819         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81820         notice.
81821         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81822         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81823         This avoids a potential constant-folding bug.
81824
81825 2004-10-05  Bruno Haible  <bruno@clisp.org>
81826
81827         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81828         for the declaration of strsep.
81829
81830 2004-10-05  Bruno Haible  <bruno@clisp.org>
81831
81832         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81833
81834 2004-10-04  Simon Josefsson  <jas@extundo.com>
81835
81836         * modules/memmem: New file.
81837         * tests/test-memmem.c: New file.
81838         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81839
81840 2004-10-04  Simon Josefsson  <jas@extundo.com>
81841
81842         * m4/memmem.m4: New file.
81843
81844 2004-10-04  Simon Josefsson  <jas@extundo.com>
81845
81846         * lib/memmem.h: New file.
81847         * lib/memmem.c: New file, taken from glibc.
81848
81849 2004-10-04  Simon Josefsson  <jas@extundo.com>
81850
81851         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81852         '#ifdef USE_UNLOCKED_IO'.
81853
81854 2004-10-04  Simon Josefsson  <jas@extundo.com>
81855
81856         * config/srclist.txt: Add memmem from glibc.
81857
81858 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81859
81860         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81861
81862         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81863         modules/exclude, modules/getdate, modules/getline,
81864         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81865         modules/getusershell, modules/linebuffer, modules/md5,
81866         modules/mountlist, modules/posixtm, modules/readtokens,
81867         modules/readutmp, modules/regex, modules/sha1,
81868         modules/version-etc, modules/yesno:
81869         Remove dependency on unlocked-io.
81870
81871 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81872
81873         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81874
81875         * m4/unlocked-io.m4: Add copyright notice.
81876         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81877
81878 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81879
81880         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81881         * lib/xmalloc.c (xmemdup): Likewise.
81882         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81883         XFREE): Remove these long-obsolescent macros.
81884         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81885         * lib/xstrdup.c: Remove.
81886
81887         * lib/regex.c (re_comp): Cast gettext return value to char *,
81888         Problem reported by Martin Neitzel via Mark D. Baushke.
81889
81890 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81891
81892         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81893         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81894         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81895         regex.c, sha1.c, version-etc.c, yesno.c:
81896         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81897         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81898         the includer's responsibility.
81899
81900         Sync from coreutils.
81901
81902         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81903         points to the start of a string, as the C Standard says the
81904         resulting behavior is undefined.
81905
81906         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81907         simple -> simple_backups, numbered_existing ->
81908         numbered_existing_backups, numbered -> numbered_backups
81909         to avoid shadowing problems.  All uses changed.
81910         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81911         * lib/backupfile.c (check_extension, numbered_backup):
81912         Rename locals to avoid shadowing 'basename'.
81913         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81914         once.
81915
81916         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81917         * lib/.cvsignore: Add getopt.h.
81918
81919 2004-10-04  Bruno Haible  <bruno@clisp.org>
81920
81921         * modules/README: New file.
81922         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81923         not a module.
81924
81925 2004-10-02  Jim Meyering  <jim@meyering.net>
81926
81927         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81928
81929 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81930
81931         * modules/strsep: New file.
81932
81933 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81934
81935         * m4/strsep.m4: New file.
81936
81937 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81938
81939         * lib/strsep.h: New file.
81940         * lib/strsep.c: New file.
81941
81942 2004-10-01  Simon Josefsson  <jas@extundo.com>
81943
81944         * lib/snprintf.c (snprintf): Handle size==0.
81945
81946 2004-10-01  Simon Josefsson  <jas@extundo.com>
81947             Bruno Haible  <bruno@clisp.org>
81948
81949         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81950         (snprintf): Declare 'args'.
81951
81952 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81953
81954         * lib/snprintf.c: Remove comments as to why each header is needed.
81955
81956 2004-10-01  Bruno Haible  <bruno@clisp.org>
81957
81958         * MODULES.html.sh: Add strsep.
81959
81960 2004-09-30  Simon Josefsson  <jas@extundo.com>
81961
81962         * modules/snprintf: New file.
81963
81964 2004-09-30  Simon Josefsson  <jas@extundo.com>
81965
81966         * m4/snprintf.m4: New file.
81967
81968 2004-09-30  Simon Josefsson  <jas@extundo.com>
81969
81970         * lib/snprintf.h, lib/snprintf.c: New files.
81971
81972 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81973
81974         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81975         (hol_entry_help): Never translate an empty string.
81976         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81977         * lib/argp.h (OPTION_NO_TRANS): New option.
81978
81979 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81980
81981         * modules/argp (Maintainer): Replace Simon Josefsson
81982         by Sergey Poznyakoff.
81983
81984 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81985
81986         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81987         changes merged back into glibc.
81988
81989 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81990
81991         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81992
81993 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81994
81995         * lib/xvasprintf.c: Include xalloc.h.
81996         (xvasprintf): Use xalloc_die, not xmalloc_die.
81997
81998 2004-09-29  Bruno Haible  <bruno@clisp.org>
81999
82000         * modules/alloca-opt: New file, derived from modules/alloca.
82001         * modules/allocsa: Depend on alloca-opt instead of alloca.
82002         * modules/setenv: Likewise.
82003         * modules/vasnprintf: Likewise.
82004         * MODULES.html.sh: Add alloca-opt.
82005
82006 2004-09-28  Simon Josefsson  <jas@extundo.com>
82007
82008         * gnulib-tool: New parameter --lgpl, to asseert that modules are
82009         LGPL, and to replace license template from GPL to LGPL.
82010
82011 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82012
82013         * modules/dummy: Change license to LGPL.
82014
82015 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82016
82017         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82018
82019 2004-09-24  Simon Josefsson  <jas@extundo.com>
82020
82021         * modules/minmax (License): Change from GPL to LGPL.
82022
82023 2004-09-23  Simon Josefsson  <jas@extundo.com>
82024
82025         * gnulib-tool (--import): Typo.
82026
82027 2004-09-23  Simon Josefsson  <jas@extundo.com>
82028
82029         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82030
82031 2004-09-22  Bruno Haible  <bruno@clisp.org>
82032
82033         * modules/*: Add 'License' field.
82034         * gnulib-tool: Accept --extract-license option.
82035         (func_get_license): New function.
82036
82037 2004-09-21  Bruno Haible  <bruno@clisp.org>
82038
82039         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82040         Reported by Simon Josefsson.
82041
82042 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82043
82044         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82045         gl_AC_TYPE_LONG_LONG.
82046
82047 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82048
82049         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82050
82051 2004-09-18  Simon Josefsson  <jas@extundo.com>
82052         and  Paul Eggert  <eggert@cs.ucla.edu>
82053
82054         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82055         calls with autoreconf.  Define GL_LIB.
82056
82057 2004-09-14  Karl Berry  <karl@gnu.org>
82058
82059         * config/srclist.txt: unsync setenv.c, sigh.
82060
82061 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82062
82063         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82064         Problem reported by Bruno Haible in:
82065         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82066
82067 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82068
82069         * config/srclist.txt: Comment out argp-pvh.c.
82070
82071 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82072
82073         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82074         in case some system header has #define'd it.  Problem reported by
82075         Soeren D. Schulze in
82076         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82077
82078 2004-09-09  Karl Berry  <karl@gnu.org>
82079
82080         * regex.[ch]: delete from the root.  These were supposed to be
82081                 synced with emacs cvs, but this has not happened for about
82082                 a year, and anyway nothing else uses emacs regex.[ch].
82083                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82084                 lib/regex[.ch] is untouched.
82085
82086 2004-09-09  Bruno Haible  <bruno@clisp.org>
82087
82088         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82089
82090 2004-09-09  Bruno Haible  <bruno@clisp.org>
82091
82092         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82093         modifications.
82094         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82095
82096 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82097
82098         * modules/xvasprintf: New file.
82099         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82100
82101 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82102
82103         * lib/xvasprintf.h: New file.
82104         * lib/xvasprintf.c: New file.
82105         * lib/xasprintf.c: New file.
82106
82107 2004-09-08  Bruno Haible  <bruno@clisp.org>
82108
82109         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82110
82111 2004-09-08  Bruno Haible  <bruno@clisp.org>
82112
82113         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82114         length is > INT_MAX.
82115         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82116         more.
82117
82118 2004-09-08  Bruno Haible  <bruno@clisp.org>
82119
82120         * lib/stdint_.h: New file, taken from GNU clisp.
82121
82122 2004-09-08  Bruno Haible  <bruno@clisp.org>
82123             Oskar Liljeblad  <oskar@osk.mine.nu>
82124
82125         * modules/stdint: New file.
82126         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82127
82128 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82129
82130         Import from coreutils.
82131         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82132         strings on unbounded length.  alloca's performance benefits aren't
82133         that important here.
82134         (V_STRDUP): Remove.
82135         (parse_with_separator): New function, with most of the internals
82136         of the old parse_user_spec.  Allow user to omit both user and group,
82137         for compatibility with FreeBSD.
82138         Clone only the user name, not the entire spec.
82139         Do not set *uid, *gid unless entirely successful.
82140         Avoid memory leak in some failing cases.
82141         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82142         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82143         (parse_user_spec): Rewrite to use parse_with_separator.
82144
82145 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82146
82147         * modules/userspec: Don't depend on alloca.
82148
82149 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82150
82151         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82152
82153 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82154
82155         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82156         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82157         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82158
82159 2004-08-16  Simon Josefsson  <jas@extundo.com>
82160
82161         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82162         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82163         Add --dry-run for --import.
82164         Let user provided command line parameters override configure.ac
82165         settings.
82166
82167 2004-08-12  Simon Josefsson  <jas@extundo.com>
82168
82169         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82170         as discussed with Paul Eggert in threads rooted at
82171         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82172         and
82173         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82174         Before, the test was empty, and relied on ELIDE_CODE in source
82175         code.)
82176         (gl_PREREQ_GETOPT): New macro.
82177         (gl_GETOPT): Use them.
82178
82179 2004-08-12  Simon Josefsson  <jas@extundo.com>
82180
82181         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82182         * lib/getopt_.h: Renamed from getopt.h.
82183
82184 2004-08-12  Simon Josefsson  <jas@extundo.com>
82185
82186         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82187         Change default library name from libfoo to libgnu.
82188         Now, if you have a configure.ac that says:
82189                 gl_SOURCE_BASE(gl)
82190                 gl_M4_BASE(gl/m4)
82191                 gl_MODULES(error getopt etcetera)
82192                 gl_INIT
82193         you can import all you need by running:
82194                 ../gnulib/gnulib-tool --import
82195
82196         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82197         (Makefile.am): Rewrite, use logic from argz.
82198         (Include): Use <getopt.h> instead of "getopt.h".
82199
82200 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82201
82202         * modules/argp (Files): Add m4/unlocked-io.m4.
82203         (Depends-on): Add extensions.
82204
82205 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82206
82207         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82208         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82209         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82210         Check for program_invocation_name, program_invocation_short_name,
82211         flockfile, funlockfile, features.h, _getopt_long_only_r.
82212
82213 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82214
82215         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82216         its complicated substitute.
82217         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82218         and program_invocation_name.
82219         (__argp_basename) [!_LIBC]: Remove; the only use was
82220         replaced by its body.
82221         (__argp_short_program_name): Change condition from
82222         !defined __argp_short_program_name to
82223         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82224         to match argp-namefrob.h.
82225         (__argp_failure): Don't assume strerror_r returns char *.
82226         * lib/argp-parse.c (N_): Define unconditionally.
82227         (argp_default_options): Fill out initializers with 0 to avoid
82228         gcc warnings.
82229
82230 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82231
82232         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82233         getopt1.c.
82234
82235 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82236
82237         Merge from coreutils.
82238
82239         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82240
82241         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82242         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82243
82244 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82245
82246         Merge from coreutils.
82247
82248         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82249         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82250         for Reliant Unix 5.43.
82251
82252         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82253         (union fooround): Use uintmax_t, not long int.
82254         The rest is a merge from libc:
82255         [defined _LIBC]: Include <shlib-compat.h>.
82256         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82257
82258         * lib/settime.c (settime): Recode to avoid warning with
82259         Sun Forte C 6U2.
82260
82261         * lib/strverscmp.c: Convert to UTF-8.
82262
82263 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82264
82265         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82266         m4/uintmax_t.m4.
82267
82268 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82269
82270         * modules/xalloc-die: New file.
82271         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82272
82273         * modules/md5 (Files): Add m4/uint32_t.m4.
82274         * modules/sha1: Renamed from modules/sha.
82275         (Files):
82276         Rename lib/sha.h to lib/sha1.h.
82277         Rename lib/sha.c to lib/sha1.c.
82278         Rename m4/sha.m4 to m4/sha1.m4.
82279         (lib_SOURCES): Likewise.
82280         (configure.ac): Rename gl_SHA to gl_SHA1.
82281         (Include): sha.h -> sha1.h.
82282
82283 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82286         * m4/sha1.m4: Renamed from sha.m4.
82287         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82288
82289 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82290
82291         * lib/obstack.h (obstack_empty_p):
82292         Don't assume that chunk->contents is suitably aligned.
82293         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82294         Likewise. Problem reported by Benno in
82295         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82296
82297         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82298         readable.  This could be improved further but it'd take some work.
82299
82300 2004-08-08  Simon Josefsson  <jas@extundo.com>
82301
82302         * modules/xgethostname (Depends-on): Remove exit and error (not
82303         used).
82304
82305         * modules/getpass-gnu: Add getpass.h.
82306         (Depends-on): Add stdbool.
82307         * modules/getpass: Add getpass.h.
82308
82309 2004-08-08  Simon Josefsson  <jas@extundo.com>
82310
82311         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82312         Check getpass declaration.
82313
82314 2004-08-08  Simon Josefsson  <jas@extundo.com>
82315
82316         * lib/xgethostname.c: Don't include error.h (not used).
82317
82318         * lib/getpass.h: Add.
82319         * lib/getpass.c: Include getpass.h first.
82320
82321 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82322
82323         * lib/xalloc-die.c: New file.
82324         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82325         All uses removed.
82326         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82327         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82328         xalloc-die.c.
82329         (_, N_, xalloc_die): Move to xalloc-die.c.
82330         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82331         so that we needn't mess with xalloc_msg_memory_exhausted.
82332
82333         * lib/sha1.h: Renamed from sha.h.
82334         (SHA1_H): Renamed from _SHA_H.
82335         (sha1_ctx): Renamed from sha_ctx.
82336         (sha1_init_ctx): Renamed from sha_init_ctx.
82337         (sha1_process_block): Renamed from sha_process_block.
82338         (sha1_process_bytes): Renamed from sha_process_bytes.
82339         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82340         (sha1_read_ctx): Renamed from sha_read_ctx.
82341         (sha1_stream): Renamed from sha_stream.
82342         (sha1_buffer): Renamed from sha_buffer.
82343         * lib/sha1.c: Likewise; renamed from sha.c.
82344         Do not include <sys/types.h>.
82345         Include <stddef.h> rather than <stdlib.h>.
82346
82347 2004-08-08  Bruno Haible  <bruno@clisp.org>
82348
82349         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82350         FILESYSTEM_PREFIX_LEN.
82351         * lib/progreloc.c: Likewise.
82352         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82353
82354 2004-08-06  Simon Josefsson  <jas@extundo.com>
82355
82356         * modules/progname (Depends-on): Don't depend on stdbool.
82357
82358 2004-08-06  Simon Josefsson  <jas@extundo.com>
82359
82360         * modules/getsubopt: New file.
82361         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82362         getsubopt.
82363
82364 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82365
82366         More merge from coreutils.
82367
82368         * m4/utimens.m4, m4/utimecmp.m4: New files.
82369         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82370         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82371         prereq.m4, sha.m4: Import changes from coreutils.
82372
82373 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82374
82375         More merge from coreutils.
82376         * modules/raise, modules/readtokens0, modules/utimens:
82377         * modules/utimecmp, module/xnanosleep: New files.
82378         * modules/strftime: Add lib/strftime.h.
82379         Change include from <time.h> to "strftime.h".
82380         * modules/yesno: Add lib/yesno.h.
82381         * modules/backupfile: Remove lib/addext.c.
82382         * modules/euidaccess: Add stat-macros.h.
82383         * modules/canonicalize, modules/euidaccess,
82384         modules/filemode, modules/lchown, modules/makepath,
82385         modules/rmdir, modules/stat: Likewise.
82386
82387 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82388
82389         Merge from tar.
82390         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82391         SIZE_MAX is a valid preprocessor constant.
82392         (__argp_basename): Change from "#ifndef _LIBC"
82393         to "#ifndef __argp_short_program_name", so that
82394         we don't compile these functions for tar.
82395
82396         More merges from coreutils.
82397         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82398         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82399         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82400         * lib/addext.c: Remove; no longer needed.
82401         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82402         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82403         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82404         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82405         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82406         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82407         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82408         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82409         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82410         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82411         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82412         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82413         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82414         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82415         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82416         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82417         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82418         Import changes from coreutils.
82419
82420 2004-08-05  Simon Josefsson  <jas@extundo.com>
82421
82422         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82423
82424 2004-08-05  Simon Josefsson  <jas@extundo.com>
82425
82426         * m4/getsubopt.m4: New file.
82427
82428 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82429
82430         Merge from coreutils.
82431
82432         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82433         * m4/getcwd-path-max.m4: New files.
82434
82435         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82436         FILESYSTEM_PREFIX_LEN ->
82437         FILE_SYSTEM_PREFIX_LEN.
82438         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82439         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82440         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82441         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82442
82443         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82444         prerequisite modules now handle the DOS stuff.
82445         Don't check for unistd.h.
82446
82447 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82448
82449         Merge from coreutils.
82450
82451         * lib/.gdb-history: Remove; this doesn't belong here.
82452
82453         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82454         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82455         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82456         * lib/getcwd.c: New files.
82457
82458         * lib/dirname.h: Include <stdbool.h>.
82459         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82460         for consistency with POSIX terminology.  All uses changed.
82461         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82462         (strip_trailing_slashes): Use bool for booleans.
82463         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82464
82465         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82466         sometimes returns a positive errno value even when it succeeds.
82467         (print_errno_message) [!LIBC]: Fall back on strerror if
82468         __strerror_r fails.
82469
82470         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82471         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82472         (longest_relative_suffix): New function.
82473         (path_concat): Use it.  Assume first argument is not NULL.
82474         Port to DOS.  Omit redundant separators.
82475         Report an error instead of returning NULL.
82476         Use mempcpy instead of memcpy.
82477         (xpath_concat): Remove: not declared or used.
82478
82479         * lib/same.h: Include <stdbool.h>
82480         (same_name): Return bool, not int.
82481         * lib/same.c (same_name): Likewise.
82482         (errno): Don't declare; we assume C89 or better now.
82483
82484         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82485         if not already defined.
82486
82487         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82488         * lib/dup-safer.c (errno): Likewise.
82489
82490 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82491
82492         Merge from coreutils.
82493         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82494         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82495         * modules/path-concat: Don't depend on strdup.
82496
82497 2004-08-03  Simon Josefsson  <jas@extundo.com>
82498
82499         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82500         * lib/progname.h: Don't include stdbool.h.
82501
82502 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82503
82504         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82505         * MODULES.html.sh (func_all_modules): Remove fatal.
82506
82507 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82508
82509         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82510
82511 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82512
82513         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82514         working.
82515
82516 2004-08-02  Simon Josefsson  <jas@extundo.com>
82517
82518         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82519         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82520         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82521
82522 2004-08-01  Simon Josefsson  <jas@extundo.com>
82523
82524         * lib/xgetdomainname.c: Include stdlib.h, for free().
82525
82526 2004-07-19  Bruno Haible  <bruno@clisp.org>
82527
82528         * MODULES.html.sh (func_all_modules): Add dummy.
82529
82530 2004-07-16  Simon Josefsson  <jas@extundo.com>
82531
82532         * modules/dummy: New file.
82533
82534 2004-07-16  Simon Josefsson  <jas@extundo.com>
82535
82536         * lib/dummy.c: New file.
82537
82538 2004-07-16  Bruno Haible  <bruno@clisp.org>
82539
82540         * lib/backupfile.h: Add extern "C" for C++.
82541         * lib/closeout.h: Likewise.
82542         * lib/copy-file.h: Likewise.
82543         * lib/findprog.h: Likewise.
82544         * lib/full-write.h: Likewise.
82545         * lib/pathname.h: Likewise.
82546         * lib/progname.h: Likewise.
82547         * lib/stpcpy.h: Likewise.
82548         * lib/stpncpy.h: Likewise.
82549         * lib/strcase.h: Likewise.
82550         * lib/strstr.h: Likewise.
82551         * lib/xalloc.h: Likewise.
82552
82553         * lib/mbswidth.h: Add extern "C" for C++.
82554         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82555
82556 2004-07-13  Robert Millan  <robertmh@gnu.org>
82557
82558         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82559
82560 2004-07-09  Simon Josefsson  <jas@extundo.com>
82561
82562         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82563         failed without this.)
82564
82565 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82566
82567         * modules/chown (Files): Add lib/fchown-stub.c, since
82568         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82569
82570 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82571
82572         * lib/fchown-stub.c: New file.
82573
82574 2004-06-24  Jim Meyering  <jim@meyering.net>
82575
82576         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82577
82578 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82579
82580         * modules/argz: Omit "#include".
82581
82582         * MODULES.html.sh (func_all_modules): Add calloc, to match
82583         2004-06-01 addition of calloc module.
82584
82585 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82586
82587         * m4/argz.m4: New file, which is autoupdated from libtool.
82588
82589 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82590
82591         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82592         libtool.
82593
82594 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         * config/srclist-update: Don't insist on "USA." before the
82597         close-comment, as libtool omits the period and puts the */ on a
82598         separate line.
82599         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82600         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82601
82602 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82603
82604         * modules/argz: New file.
82605         * MODULES.html.sh (func_all_modules): Add argz.
82606
82607 2004-06-12  Jim Meyering  <jim@meyering.net>
82608         and  Paul Eggert  <eggert@cs.ucla.edu>
82609
82610         * modules/hash (Files): Add lib/xalloc.h.
82611         * modules/pipe (Depends-on): Add wait-process.
82612         * modules/stat (Depends-on): Add xalloc.
82613         * modules/userspec (Files): Add lib/userspec.h.
82614         * modules/xstrto
82615
82616         Upgrade from gettext-0.13.
82617         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82618         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82619         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82620
82621 2004-06-10  Jim Meyering  <jim@meyering.net>
82622
82623         * lib/calloc.c: New file.
82624
82625 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82626
82627         * lib/getdate.y (yylex): Allow space between sign and number.
82628         Problem reported by Dan Jacobson.
82629
82630 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82631
82632         Merge from coreutils CVS.
82633
82634         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82635         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82636         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82637         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82638         xstrtol.m4: Fix copyright date and/or serial number.
82639
82640         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82641         See if we need an fchown replacement.
82642         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82643         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82644         and use the replacement function if we detect either defect.
82645
82646         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82647         gl_UTIMECMP.
82648
82649 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82650         and  Jim Meyering  <jim@meyering.net>
82651
82652         Merge from coreutils CVS.
82653
82654         * lib/stat-macros.h: New file, with contents from file-type.h
82655         and coreutils' system.h.
82656         * lib/file-type.c: Include "stat-macros.h".
82657         * lib/file-type.h (file_type): Move all macro definitions to new file,
82658         stat-macros.h.
82659
82660         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82661         Wrap old code with this conditional.
82662         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82663         function that does not dereference symlinks.
82664         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82665
82666         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82667         dependency problems.
82668         (xreadlink): Accept new arg SIZE, for efficiency.
82669         All decls and uses changed.
82670         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82671
82672         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82673         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82674
82675         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82676         sysexits.h.
82677
82678 2004-06-01  Jim Meyering  <jim@meyering.net>
82679
82680         * m4/calloc.m4: New file.
82681
82682 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82683
82684         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82685         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82686         Also, fix a typo in a diagnostic.
82687
82688 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82689
82690         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82691         or AC_FUNC_REALLOC.
82692
82693 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82694
82695         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82696         macros to be defined.
82697         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82698         the allocator returns NULL because the requested size is zero.
82699
82700 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82701
82702         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82703         var.  Add comment explaining why libc still defines it.  This
82704         merges the following patch from glibc:
82705         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82706
82707 2004-05-20  Andreas Schwab  <schwab@suse.de>
82708
82709         * m4/free.m4: Replace free if it not known to work, not the other
82710         way round.
82711
82712 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82713
82714         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82715         present in glibc since revision 1.1 of this file.
82716         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82717         obstack_alignment_mask, obstack_alloc, obstack_base,
82718         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82719         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82720         obstack_grow0, obstack_init, obstack_int_grow,
82721         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82722         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82723         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82724         nonexistent functions.
82725
82726 2004-05-18  Karl Berry  <karl@gnu.org>
82727
82728         * config/srclist.txt: break link for vasnprintf.c.
82729
82730 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82731
82732         Port obstack to the AS/400, where pointers are 16 bytes wide and
82733         you cannot cast an integer to a valid pointer.  This patch is
82734         currently waiting to be integrated into glibc; see
82735         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82736
82737         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82738         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82739         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82740         (struct obstack): temp member is now a union of a pointer and
82741         an integer, instead of an integer.  All integer uses changed.
82742         This does not affect the physical layout of struct obstack,
82743         except on hosts (like the AS/400) where the size or alignment of
82744         void * is greater than that of ptrdiff_t.
82745         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82746         __STDC__)]: Store temporary in pointer member of union, not
82747         integer member.
82748         * lib/obstack.c: Include <stddef.h>, for offsetof.
82749         (struct fooalign): Remove; it doesn't need a name.
82750         (union fooround): Change double to long double, and add void *.
82751         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82752         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82753         not a macro.  Hence the values are always int; so remove all
82754         casts-to-int in uses.
82755
82756 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82759         we can get this patch merged into glibc.
82760
82761 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82762             Paul Eggert  <eggert@cs.ucla.edu>
82763
82764         * m4/argp: Depend on alloca.
82765
82766 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82767             Paul Eggert  <eggert@cs.ucla.edu>
82768
82769         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82770         freecoding.
82771
82772 2004-05-17  Bruno Haible  <bruno@clisp.org>
82773
82774         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82775         precision that consists of a '.' followed by an empty digit string.
82776         Patch by Tor Lillqvist <tml@iki.fi>.
82777
82778 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82779
82780         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82781         for backward compatibility with older code.  We need our own
82782         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82783         it under some other name, and our alloca.h will define it.
82784
82785 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82786             Derek Price  <derek@ximbiot.com>
82787
82788         * lib/alloca.c: Include <alloca.h>, to get our interface.
82789         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82790         include <alloca.h> first.  Use C89 prototype for alloca; this
82791         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82792         Use #elif for simplicity, since we can assume C89 now.
82793         Don't try to source the system alloca.h since it will not be found
82794         and to prevent recursively including its replacement.
82795         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82796         * lib/regex.c: Likewise.
82797
82798 2004-05-16  Derek Price  <derek@ximbiot.com>
82799             Paul Eggert  <eggert@cs.ucla.edu>
82800
82801         getline cleanup.  This changes the getndelim2 API: both order of
82802         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82803         no delimiter).
82804
82805         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82806         interface does that.
82807         (getline): Always use getdelim, so that we don't have two
82808         copies of this code.
82809         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82810         if available.
82811         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82812         (GETNDELIM2_MAXIMUM): New macro.
82813         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82814         instead of the old practice of delim2==0.  All callers changed.
82815         Return -1 on overflow, instead of returning junk.
82816         Do not set *linesize unless allocation succeeds.
82817         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82818         that we include sys/types.h.
82819         * lib/getnline.h: Likewise.
82820         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82821         (getndelim2): Reorder arguments.
82822         * lib/getnline.c (getnline, getndelim):
82823         Don't discard the NMAX argument.
82824         (getnline): Invoke getndelim, to avoid code duplication.
82825         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82826         of (size_t) -1 by callers of the getnline family.
82827
82828 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82829
82830         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82831         Check for gettimeofday.
82832         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82833         Check for settimeofday, stime.
82834
82835 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82836
82837         * lib/nanosleep.c (suspended): Change its type from int to
82838         sig_atomic_t volatile.
82839         (first_call): Make it private to rpl_nanosleep, and have it
82840         be zero initially as that's a bit faster.
82841         (my_usleep): Round up fractional times instead of truncating them,
82842         as this is the usual meaning for 'sleep'.
82843
82844         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82845         doesn't work.
82846         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82847         (ENOSYS): Define if not defined.
82848         (settime): Fall back on stime if it exists and settimeofday fails.
82849         But don't bother with fallbacks if a method fails with errno == EPERM.
82850
82851 2004-05-11  Jim Meyering  <jim@meyering.net>
82852
82853         Prior to this change, the save_cwd caller required read access to the
82854         current directory on most systems (ones with the fchdir function).
82855
82856         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82857         fails, try write-only, and finally, resort to using xgetcwd.
82858
82859 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82860
82861         * lib/obstack.c, obstack.h: Import changes from libc.
82862
82863 2004-04-28  Bruno Haible  <bruno@clisp.org>
82864
82865         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82866         also implicitly appends .exe to executables.
82867         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82868         accepts Windows pathnames.
82869         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82870         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82871         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82872         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82873         Reported by Derek Robert Price <derek@ximbiot.com>.
82874
82875 2004-04-21  Karl Berry  <karl@gnu.org>
82876
82877         * config/srclist.txt (localcharset.c): break sync.
82878
82879 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82880
82881         * m4/host-os.m4: Add a copyright notice.
82882
82883 2004-04-20  Jim Meyering  <jim@meyering.net>
82884
82885         Change UTILS_ to gl_ in AC_DEFINE'd names.
82886         Change utils_- and jm_-prefixed variables, too.
82887         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82888         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82889         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82890
82891         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82892         Don't emit trailing blanks.
82893         Also rename jm_-prefixed variables to have gl_ prefix.
82894
82895         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82896         Also rename jm_-prefixed variables to have gl_ prefix.
82897
82898         * m4/jm-macros.m4: Reflect the renamings.
82899         * m4/prereq.m4: Likewise.
82900
82901 2004-04-20  Jim Meyering  <jim@meyering.net>
82902
82903         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82904         memory.
82905
82906 2004-04-20  Jim Meyering  <jim@meyering.net>
82907             Bruno Haible  <bruno@clisp.org>
82908
82909         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82910         memory when realloc fails.
82911
82912 2004-04-19  Jim Meyering  <jim@meyering.net>
82913
82914         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82915         now that readutmp.c may call `free (0)'.
82916
82917 2004-04-19  Bruno Haible  <bruno@clisp.org>
82918
82919         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82920         * m4/inttypes_h.m4: Likewise.
82921         * m4/stdint_h.m4: Likewise.
82922         * m4/intmax_t.m4: Likewise.
82923         * m4/uintmax_t.m4: Likewise.
82924
82925 2004-04-18  Jim Meyering  <jim@meyering.net>
82926
82927         * m4/prereq.m4: Don't forbid jm_ prefix.
82928
82929         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82930         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82931         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82932         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82933         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82934         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82935         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82936         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82937         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82938         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82939         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82940         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82941         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82942         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82943         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82944         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82945         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82946         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82947         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82948
82949 2004-04-18  Jim Meyering  <jim@meyering.net>
82950
82951         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82952         failure, don't leak memory and do call END_UTMP_ENT.
82953
82954 2004-04-16  Jim Meyering  <jim@meyering.net>
82955
82956         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82957         coreutils' stat program.
82958         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82959
82960 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82961
82962         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82963         C89.
82964         (CHAR_BIT): Remove, since we assume C89.
82965         Include <stdint.h> if available, as per current Autoconf CVS advice.
82966
82967 2004-03-31  Jim Meyering  <jim@meyering.net>
82968
82969         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82970         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82971         * m4/xalloc.m4: Likewise.
82972
82973 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82974
82975         Merge from coreutils.
82976
82977         * m4/inttostr.m4: New file.
82978         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82979         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82980         Require gl_CLOCK_TIME.
82981         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82982
82983 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82984
82985         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82986         not bool, to be more consistent with Unix conventions.
82987         Suggested by Bruno Haible.
82988
82989         Merge from coreutils.
82990
82991         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82992         * lib/umaxtostr.c: New files.
82993
82994         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82995         the usual <time.h> dance.
82996         (get_date): Change signature to support fractional time stamps.
82997         All callers changed.
82998         * lib/getdate.y: Include "getdate.h" first, as we can now
82999         assume C89 and don't need to worry about 'const'.
83000         Similarly, include "unlocked-io.h" near start, not in middle.
83001         Include <limits.h>.
83002         (textint.value): Use long int rather than int.
83003         (textint.digits): Use size_t rather than int.
83004         (BILLION, LOG10_BILLION): New constants.
83005         (parser_control): New member rel_ns.  Members day_ordinal,
83006         time_zone, month, day, hour, minutes, rel_year, rel_month,
83007         rel_day, rel_hour, rel_minutes, rel_seconds
83008         are now long int, not int.  Member seconds is now struct timespec,
83009         not int.  New member timespec_seen.  Members dates_seen, days_seen,
83010         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
83011         not int.
83012         (%union.intval): Now long int, not int.
83013         New member timespec.
83014         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
83015         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83016         (spec): Now is a timespec or an item list.
83017         (timespec, items): New nonterminals.
83018         (time, rel, relunit, number, get_date):
83019         Add support for fractional seconds.
83020         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83021         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83022         (to_hour): First arg is now long int, not int.
83023         (to_year): Returns long int, not int.
83024         Don't treat year -70 like 70.
83025         (tm_diff): Returns long int, not int.
83026         (lookup_word): Use bool instead of int when appropriate.
83027         (yylex): Use size_t for count, not int.
83028         Detect overflow when parsing large integer constants.
83029         Add support for fractions.
83030         (get_date): Make pointers 'const' if possible.
83031         Use more-portable code to detect integer overflow.
83032         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83033         Don't use ctime; it's not reliable if the year has >4 digits.
83034
83035         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83036         This is for compatibility with BSD.
83037
83038         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83039         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83040         From coreutils' system.h.
83041
83042         * lib/userspec.c: Don't include "posixver.h".
83043         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83044         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83045         compatible extension.  Simplify code by removing a boolean int
83046         that was always nonzero if a string was nonnull.
83047
83048 2004-03-30  Jim Meyering  <jim@meyering.net>
83049
83050         Merge from coreutils.
83051
83052         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83053         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83054         on some systems one must include <grp.h> before it.
83055         Reported by Christian Krackowizer.
83056
83057 2004-03-30  Jim Meyering  <jim@meyering.net>
83058
83059         Merge from coreutils.
83060
83061         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83062
83063         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83064         an empty input stream.
83065
83066         * lib/readtokens.c: Include <stdbool.h>.
83067         (readtoken): Use `size_t' rather than int/long.
83068         All callers adjusted.
83069         Use `bool' rather than `int' where appropriate.
83070         Use memset rather than an explicit loop.
83071         Use x2nrealloc rather than xrealloc.
83072         Allow the use of `\0' as a delimiter.
83073         (readtokens): Likewise.
83074         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83075
83076 2004-03-30  Jim Meyering  <jim@meyering.net>
83077
83078         * m4/realloc.m4: Remove file, since now it does no more than
83079         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83080         the `configure.ac' section of module/realloc.
83081         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83082
83083 2004-03-30  Bruno Haible  <bruno@clisp.org>
83084
83085         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83086         nonnull.
83087
83088 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83089
83090         Merge changes to getloadavg.c from coreutils and Emacs.
83091
83092         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83093         Define to an expression, not to the empty string.
83094         Include cloexec.h and xalloc.h.
83095         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83096         Use set_cloexec_flag rather than rolling our own.
83097         * lib/cloexec.c, lib/cloexec.h: New files.
83098
83099 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83100
83101         * m4/cloexec.m4: New file.
83102
83103 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83104
83105         * lib/getopt.h: Sync with libc CVS.
83106
83107 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83108             Bruno Haible  <bruno@clisp.org>
83109
83110         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83111         mbswidth.
83112
83113 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83114             Bruno Haible  <bruno@clisp.org>
83115
83116         * lib/mbswidth.h: Include <wchar.h> only if
83117         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83118         <wchar.h>.
83119         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83120
83121 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83122
83123         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83124         Sync with libc CVS.
83125         * lib/getopt_int.h: New file, also synced from libc.
83126
83127 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83128
83129         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83130         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83131         Bring back getopt.c, getopt.h, getopt1.c.
83132
83133 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83134
83135         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83136         All uses changed.  Check for sa_sigaction member; this fixes
83137         a bug first reported by Jason Andrade in
83138         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83139
83140 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83141
83142         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83143         '#if' expressions.  Unlike the code it replaces, it does not
83144         depend on (defined _SC_PAGESIZE).  However, it does depend on
83145         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83146         first reported by Jason Andrade in
83147         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83148
83149 2004-02-25  Simon Josefsson  <jas@extundo.com>
83150
83151         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83152
83153 2004-02-25  Simon Josefsson  <jas@extundo.com>
83154
83155         * lib/strdup.h: New file.
83156         * lib/strdup.c: Include it.
83157         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83158         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83159
83160 2004-02-23  Karl Berry  <karl@gnu.org>
83161
83162         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83163         (from fencepost.gnu.org:/gd/gnuorg).
83164
83165 2004-02-23  Karl Berry  <karl@gnu.org>
83166
83167         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83168         * config/srclist.txt: add maintain/standards documents.
83169
83170 2004-02-18  Bruno Haible  <bruno@clisp.org>
83171
83172         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83173         Reported by Derek Robert Price <derek@ximbiot.com>.
83174
83175 2004-02-16  Karl Berry  <karl@gnu.org>
83176
83177         * config/mkinstalldirs, install-sh: update from automake.
83178
83179 2004-02-06  Karl Berry  <karl@gnu.org>
83180
83181         * m4/po.m4: update from gettext 0.14.1.
83182
83183 2004-02-06  Karl Berry  <karl@gnu.org>
83184
83185         * lib/config.charset: update from gettext 0.14.1.
83186
83187 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83188
83189         Add comments and code, prompted by suggestions from Bruno Haible
83190         for sh-quote.
83191         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83192         describing the enum quoting_style values.
83193         * lib/quotearg.c (quotearg_alloc): New function.
83194         (quotearg_buffer_restyled): Treat lone { and } as special.
83195         Treat = as special.  Work around bug with older shells
83196         that "see" a '\' that is really the 2nd byte of a multibyte char.
83197         Quote empty string with shell_quoting_style.
83198
83199 2004-02-03  Bruno Haible  <bruno@clisp.org>
83200
83201         * m4/pipe.m4: New file, from GNU gettext.
83202
83203 2004-02-03  Bruno Haible  <bruno@clisp.org>
83204
83205         * lib/pipe.h: New file, from GNU gettext.
83206         * lib/pipe.c: New file, from GNU gettext.
83207
83208 2004-01-27  Bruno Haible  <bruno@clisp.org>
83209
83210         * m4/execute.m4: New file, from GNU gettext.
83211
83212 2004-01-27  Bruno Haible  <bruno@clisp.org>
83213
83214         * lib/execute.h: New file, from GNU gettext.
83215         * lib/execute.c: New file, from GNU gettext.
83216         * lib/w32spawn.h: New file, from GNU gettext.
83217
83218 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83219
83220         Merge from diffutils.
83221
83222         * lib/file-type.c (file_type): Add typed memory objects.
83223         * lib/file-type.h (S_TYPEISTMO): New macro.
83224
83225         * lib/c-stack.h (c_stack_action): Remove argv argument.
83226         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83227         (die): Don't calculate message unless segv_action returns.
83228         (get_stack_location, min_address_from_argv, max_address_from_argv,
83229         volatile stack_base, volatile_stack_size): Remove.
83230         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83231         that every segmentation violation is a stack overflow.  (Ouch!)
83232         See Debian bug 136249 (still outstanding) for more info about why
83233         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83234
83235 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83236
83237         Exit-status fix from coreutils.
83238
83239         Use exit_failure consistently in place of EXIT_FAILURE,
83240         so that program exit statuses are consistent on failure.
83241
83242         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83243         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83244         * lib/argmatch.h: Comment fix to match the above.
83245         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83246         Now a macro referring to exit_failure, instead of a separate
83247         variable.  Include "exitfail.h" to get it.
83248         * lib/xstrtol.h: Include "exitfail.h".
83249         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83250
83251         * lib/long-options.c (parse_long_options): Use prototype
83252         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83253         for clarity.
83254
83255 2004-01-21  Jim Meyering  <jim@meyering.net>
83256
83257         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83258         so as not to conflict with a different-sized __mktime_internal
83259         function in GNU libc.
83260         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83261         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83262
83263 2004-01-20  Karl Berry  <karl@gnu.org>
83264
83265         * config/config.guess: update from config.
83266
83267         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83268
83269 2004-01-20  Bruno Haible  <bruno@clisp.org>
83270
83271         Safer stack allocation.
83272         * lib/setenv.c: Include allocsa.h.
83273         (alloca): Remove fallback definition.
83274         (freea): Remove macro.
83275         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83276         instead of freea.
83277
83278 2004-01-20  Bruno Haible  <bruno@clisp.org>
83279
83280         * m4/eealloc.m4: New file, from GNU gettext.
83281
83282 2004-01-20  Bruno Haible  <bruno@clisp.org>
83283
83284         * m4/allocsa.m4: New file, from GNU gettext.
83285
83286 2004-01-20  Bruno Haible  <bruno@clisp.org>
83287
83288         * lib/xallocsa.h: New file, from GNU gettext.
83289         * lib/xallocsa.c: New file, from GNU gettext.
83290
83291 2004-01-20  Bruno Haible  <bruno@clisp.org>
83292
83293         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83294
83295 2004-01-20  Bruno Haible  <bruno@clisp.org>
83296
83297         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83298         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83299         specially.
83300
83301 2004-01-20  Bruno Haible  <bruno@clisp.org>
83302
83303         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83304         patch.
83305
83306 2004-01-20  Bruno Haible  <bruno@clisp.org>
83307
83308         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83309
83310 2004-01-20  Bruno Haible  <bruno@clisp.org>
83311
83312         * lib/eealloc.h: New file.
83313
83314 2004-01-20  Bruno Haible  <bruno@clisp.org>
83315
83316         * lib/binary-io.h: Avoid warnings on Cygwin.
83317
83318 2004-01-20  Bruno Haible  <bruno@clisp.org>
83319
83320         * lib/allocsa.h: New file, from GNU gettext.
83321         * lib/allocsa.c: New file, from GNU gettext.
83322
83323 2004-01-18  Karl Berry  <karl@gnu.org>
83324
83325         * doc/gpl.texi, doc/lgpl.texi: new files.
83326
83327 2004-01-18  Karl Berry  <karl@gnu.org>
83328
83329         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83330         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83331
83332 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83333
83334         Merge from coreutils.
83335
83336         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83337         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83338         (gl_DEFAULT_POSIX2_VERSION): Move
83339         the documentation from 'configure' into 'config.hin',
83340         so that 'configure --help' isn't burdened by it and
83341         we don't have to worry about its formatting there.
83342         Reword the documentation so that it's more succinct
83343         and can be run together into a single paragraph.
83344         * m4/same.m4 (gl_SAME): Check for pathconf.
83345
83346 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83347
83348         Merge from coreutils.
83349
83350         * lib/posixver.c: Include posixver.h.
83351
83352         * lib/same.c: Include <stdbool.h>, <limits.h>.
83353         (_POSIX_NAME_MAX): Define if not defined.
83354         (MIN): New macro.
83355         (same_name): If file names are silently truncated, report
83356         that the file names are the same if they are the same after
83357         the silent truncation.
83358
83359         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83360         conversion function.
83361         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83362         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83363         longer needed.
83364
83365 2004-01-15  Jim Meyering  <jim@meyering.net>
83366
83367         Merge from coreutils.
83368
83369         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83370         if no library is required.
83371         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83372         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83373         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83374         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83375         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83376         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83377         value, $ac_cv_search_crypt, if it's "none required".
83378         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83379         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83380         not gl_FUNC_GETLOADAVG.
83381         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83382         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83383
83384 2004-01-15  Jim Meyering  <jim@meyering.net>
83385
83386         Merge from coreutils.
83387
83388         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83389         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83390         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83391
83392         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83393         optional configure-time default.
83394
83395         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83396
83397         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83398
83399 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83400
83401         Merge from coreutils.
83402
83403         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83404         value, $ac_cv_search_nanosleep, if it's "none required".
83405
83406 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83407
83408         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83409         with like-named macro in fnmatch.c.
83410         (EXT): Use an internal constant instead.
83411
83412         Merge fnmatch patches from glibc.
83413         * lib/fnmatch.c (mbsinit): Remove define.
83414         Add libc_hidden_ver (__fnmatch, fnmatch).
83415         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83416         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83417
83418 2004-01-14  Karl Berry  <karl@gnu.org>
83419
83420         * config/install-sh: update from automake.
83421
83422 2004-01-13  Karl Berry  <karl@gnu.org>
83423
83424         * config/install-sh: update from automake.
83425
83426 2004-01-09  Karl Berry  <karl@gnu.org>
83427
83428         * config/install-sh: update from automake.
83429
83430 2004-01-05  Karl Berry  <karl@gnu.org>
83431
83432         * config/config.{sub,guess}: update from config.
83433
83434 2003-12-31  Karl Berry  <karl@gnu.org>
83435
83436         * config/depcomp: update from automake.
83437
83438 2003-12-14  Karl Berry  <karl@gnu.org>
83439
83440         * lib/config.charset: update from gettext-runtime.
83441
83442 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83443
83444         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83445         Bug reported by Alfred M. Szmidt.
83446
83447 2003-12-03  Bruno Haible  <bruno@clisp.org>
83448
83449         * m4/gettext.m4: Upgrade from gettext-0.13.
83450         * m4/po.m4: Upgrade from gettext-0.13.
83451         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83452         * m4/intmax.m4: New file, from gettext-0.13.
83453         * m4/printf-posix.m4: New file, from gettext-0.13.
83454
83455 2003-11-29  Karl Berry  <karl@gnu.org>
83456
83457         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83458
83459 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83460             Bruno Haible  <bruno@clisp.org>
83461
83462         * lib/printf-parse.h: Don't include sys/types.h.
83463         (ARG_NONE): New macro.
83464         (char_directive): Change type of *arg_index fields to size_t.
83465         * lib/printf-parse.c: Don't include sys/types.h.
83466         (SSIZE_MAX): Remove macro.
83467         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83468         Remove unnecessary overflow check.
83469         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83470         fields.
83471
83472 2003-11-25  Bruno Haible  <bruno@clisp.org>
83473
83474         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83475
83476 2003-11-25  Bruno Haible  <bruno@clisp.org>
83477
83478         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83479         gt_TYPE_SSIZE_T.
83480
83481 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83482
83483         * modules/alloca: Remove dependency on xalloc.
83484
83485 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83486
83487         * lib/alloca.c: Remove dependency on xalloc module.
83488         (xalloc_die): Remove.
83489         (memory_full) [!defined emacs]: New macro.
83490         [!defined emacs]: Don't include xalloc.h.
83491         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83492         address arithmetic overflows.  Change datatypes a bit to avoid
83493         unnecessary casts.
83494
83495 2003-11-22  Jim Meyering  <jim@meyering.net>
83496
83497         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83498         s/size/size_t/.
83499
83500 2003-11-21  Karl Berry  <karl@gnu.org>
83501
83502         * config/config.{sub,guess}: update from config.
83503
83504 2003-11-18  Karl Berry  <karl@gnu.org>
83505
83506         * config/config.{sub,guess}: update from config.
83507
83508         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83509
83510 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83511
83512         * README: Mention that S+T cannot overflow if S is the size of
83513         an existing object and T is sufficiently small.
83514
83515 2003-11-17  Jim Meyering  <jim@meyering.net>
83516
83517         On systems without utime and without a utimes function capable of
83518         dealing with a NULL struct utimbuf* argument, this utime replacement
83519         could -- in unusual circumstances -- leak a file descriptor.
83520         * lib/utime.c: Include <unistd.h> and <errno.h>.
83521         (utime_null): Be sure to close `fd' and to preserve errno.
83522         Reported by Geoff Collyer via Arnold Robbins.
83523
83524 2003-11-17  Bruno Haible  <bruno@clisp.org>
83525
83526         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83527         (Depends-on): Add xsize.
83528
83529 2003-11-17  Bruno Haible  <bruno@clisp.org>
83530
83531         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83532
83533 2003-11-17  Bruno Haible  <bruno@clisp.org>
83534
83535         * lib/vasnprintf.c (alloca): Remove fallback definition.
83536         (freea): Remove definition.
83537         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83538         Reported by Paul Eggert.
83539
83540 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83541             Bruno Haible  <bruno@clisp.org>
83542
83543         Protect against address arithmetic overflow.
83544         * lib/printf-args.h: Include stddef.h.
83545         (arguments): Change type of field 'count' to size_t.
83546         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83547         'unsigned int' where appropriate.
83548         * lib/printf-parse.h: Include sys/types.h.
83549         (char_directive): Change type of *arg_index fields to ssize_t.
83550         (char_directives): Change type of fields 'count', max_*_length to
83551         size_t.
83552         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83553         (SSIZE_MAX): Define fallback value.
83554         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83555         instead of 'int' where appropriate. Check a_allocated, d_allocated
83556         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83557         * lib/vasnprintf.c: Include xsize.h.
83558         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83559         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83560         overflow. Avoid wraparound when converting a width or precision from
83561         decimal to binary.
83562
83563 2003-11-16  Bruno Haible  <bruno@clisp.org>
83564
83565         Update from GNU gettext.
83566         * lib/printf-parse.c: Generalize to it can be compiled for wide
83567         strings.
83568         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83569         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83570         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83571         SNPRINTF): New macros.
83572         Don't include <alloca.h> if the file is used inside libintl.
83573         (local_wcslen): New function, for Solaris 2.5.1.
83574         (VASNPRINTF): Use it instead of wcslen.
83575
83576 2003-11-16  Bruno Haible  <bruno@clisp.org>
83577
83578         * lib/xsize.h (xmax): New function.
83579         (xsum, xsum3, xsum4): Declare as "pure" functions.
83580
83581 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83582
83583         * modules/xalloc (Files): Undo latest change, since xalloc.h
83584         no longer needs SIZE_MAX or PTRDIFF_MAX.
83585
83586 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83587
83588         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83589         gl_PTRDIFF_MAX.
83590
83591 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83592
83593         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83594         "return", to pacify some unknown compiler.  Problem reported
83595         by Joerg Schilling.
83596
83597 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83598
83599         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83600         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83601         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83602         heuristic is just as accurate as far as we know, and it removes a
83603         dependency on size_max.m4 and ptrdiff_max.m4.
83604
83605 2003-11-11  Bruno Haible  <bruno@clisp.org>
83606
83607         * modules/xsize (Files): Add m4/size_max.m4.
83608         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83609
83610 2003-11-11  Bruno Haible  <bruno@clisp.org>
83611
83612         * m4/size_max.m4: New file.
83613         * m4/ptrdiff_max.m4: New file.
83614         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83615         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83616         (gl_XALLOC): Invoke it.
83617
83618 2003-11-11  Bruno Haible  <bruno@clisp.org>
83619
83620         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83621         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83622         defined.
83623
83624 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83625
83626         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83627         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83628         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83629         From Bruno Haible.
83630         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83631         not (size_t) -1, since it's defined here.
83632
83633 2003-11-09  Karl Berry  <karl@gnu.org>
83634
83635         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83636
83637 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83638
83639         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83640         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83641         Reject sizes of exactly SIZE_MAX bytes.
83642         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83643         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83644
83645 2003-11-05  Bruno Haible  <bruno@clisp.org>
83646
83647         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83648         SIZE_MAX defined in <limits.h> on Solaris.
83649
83650 2003-11-04  Jim Meyering  <jim@meyering.net>
83651
83652         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83653         variable names, rather than @VAR@.
83654         * modules/poll: Likewise.
83655
83656 2003-11-04  Bruno Haible  <bruno@clisp.org>
83657
83658         * modules/xsize: New file.
83659         * modules/linebreak: Depend on xsize.
83660         * MODULES.html.sh (func_all_modules): Add xsize.
83661
83662 2003-11-04  Bruno Haible  <bruno@clisp.org>
83663
83664         * m4/xsize.m4: New file.
83665
83666 2003-11-04  Bruno Haible  <bruno@clisp.org>
83667
83668         * lib/xsize.h: New file.
83669         * lib/linebreak.c: Include xsize.h.
83670         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83671         argument for overflow.
83672         Suggested by Paul Eggert.
83673
83674 2003-11-03  Karl Berry  <karl@gnu.org>
83675
83676         * config/config.{guess,sub}: update from config.
83677
83678 2003-11-03  Jim Meyering  <jim@meyering.net>
83679
83680         * modules/userspec (lib_SOURCES): Add userspec.h.
83681         (Include): Add "userspec.h".
83682         Improve description.
83683
83684 2003-11-03  Jim Meyering  <jim@meyering.net>
83685
83686         * lib/userspec.c: Include "userspec.h".
83687         * lib/userspec.h: New file.
83688
83689 2003-11-03  Bruno Haible  <bruno@clisp.org>
83690
83691         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83692
83693 2003-11-03  Bruno Haible  <bruno@clisp.org>
83694
83695         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83696         available, to avoid (extremely rare) race condition.
83697         Suggested by Paul Eggert.
83698
83699 2003-11-02  Karl Berry  <karl@gnu.org>
83700
83701         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83702
83703 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83704
83705         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83706         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83707         (read_filesystem_list): Set and use me_type_malloced.
83708         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83709         whatever the type happens to be), for brevity and consistency.
83710         Check for size calculation overflow on Alphas running OSF/1.
83711
83712 2003-10-31  Jim Meyering  <jim@meyering.net>
83713
83714         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83715
83716         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83717
83718 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83719             Bruno Haible  <bruno@clisp.org>
83720
83721         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83722         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83723
83724 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83725
83726         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83727         netbsd*-gnu*.  Suggested by Robert Millan.
83728
83729 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83730
83731         * modules/group-member: Depend on stdbool.
83732
83733 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83734
83735         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83736
83737 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83738
83739         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83740         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83741         after the 'gnu' in these cases.  This fixes some bugs in the
83742         previous change, and is based on suggestions by Robert Millan.
83743
83744 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83745
83746         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83747         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83748         no longer needed.
83749         * lib/quotearg.c (quotearg_n_options): Use it.
83750         * lib/group-member.c: Include <stdbool.h>.
83751         (free_group_info): Arg is now const *; don't free arg.
83752         (get_group_info): Now returns bool and accepts struct group_info *,
83753         rather than returning a malloc'ed struct group_info *.
83754         All uses changed.  Check for overflow in internal size calculation.
83755
83756         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83757         rather than xmalloc/xrealloc.
83758         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83759         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83760         conformance bug: the old code used a pointer after freeing the
83761         storage that it addressed.
83762         * lib/hash.c (hash_initialize): Simplify the code by using
83763         xalloc_oversized rather than doing it by hand.
83764         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83765         the buffer preserved.  Use free and xmalloc instead.
83766         * lib/quotearg.c (quotearg_n_options): Likewise.
83767         Use a simpler test for size overflow.  Don't use xalloc_oversized
83768         because unsigned int might be wider than size_t (!); this suggests
83769         that we should switch from unsigned int to size_t for slot numbers.
83770
83771 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83772
83773         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83774         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83775         NetBSD kernels.  Requested by Richard Stallman.
83776
83777 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83778
83779         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83780         to allocate the returned structure.  Do not allocate a subarray,
83781         as x2nrealloc will do that.
83782         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83783         instead of xnrealloc.
83784         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83785
83786 2003-10-27  Bruno Haible  <bruno@clisp.org>
83787
83788         * lib/stdbool_.h: Better support for BeOS.
83789
83790 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83791
83792         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83793         now uses inline.
83794
83795 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83796
83797         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83798         callers that want to do their own size-overflow checking.  Include
83799         <stdbool.h>, since xalloc_oversized returns bool.
83800         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83801         to use xalloc_oversized.
83802
83803         Add two functions x2realloc, x2nrealloc, for programs that grow
83804         arrays dynamically by doubling their sizes.
83805         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83806         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83807         New functions.
83808
83809         Port to C99 semantics for 'inline' of external functions.
83810         Bug reported by Bruno Haible.
83811         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83812         with the old contents of xnmalloc.
83813         (xnmalloc, xmalloc): Use it.
83814         (xnrealloc_inline): New static inline function,
83815         with the old contents of xnrealloc.
83816         (xnrealloc, xrealloc): Use it.
83817
83818         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83819         that.
83820
83821 2003-10-26  Karl Berry  <karl@gnu.org>
83822
83823         * config/srclist.txt (COPYING.DOC): no longer available from
83824         /gd/gnuorg; don't know where the ultimate source is.
83825
83826 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83827
83828         Fix several address-calculation bugs in the hash modules,
83829         plus some minor code cleanup.
83830
83831         * lib/hash.h: Include <stdbool.h>, for bool.
83832         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83833         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83834         hash_get_n_entries, hash_get_max_bucket_length,
83835         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83836         hash_rehash): Use size_t rather than unsigned.
83837         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83838         hash_get_n_buckets_used, hash_get_n_entries,
83839         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83840         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83841         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83842         Likewise.
83843         (SIZE_MAX): Define if not defined.
83844         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83845         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83846         hash_print):
83847         Use const * when possible.
83848         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83849         (check_tuning): Fix bug: if tuning parameters were very close to
83850         0 or 1, rounding errors could have caused subscript violations.
83851         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83852         (hash_initialize): Add 'fail:' label
83853         to free table and return NULL, and use it to simplify code.
83854         Use calloc rather than clearing the storage ourself.
83855         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83856         buffer size calculations.
83857         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83858         Include <stddef.h>, for size_t.
83859         * lib/hash-pjw.c (hash_pjw): Likewise.
83860         Switch to method described by Bruno Haible.
83861         Include <limits.h>, for CHAR_BIT.
83862         (SIZE_BITS): New macro.
83863
83864 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83865
83866         * m4/getline.m4 (AM_FUNC_GETLINE):
83867         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83868         hosts.  Problem reported by Derek Robert Price in
83869         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83870         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83871         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83872
83873 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83874
83875         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83876         ceiling the allocation at NMAX bytes rather than silently
83877         discarding input bytes before NMAX is reached.  This makes
83878         a difference only if NMAX exceeds SIZE_MAX / 2.
83879
83880         * lib/obstack.c: Merge from glibc.
83881         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83882         Add libc_hidden_def (_obstack_newchunk).
83883         (_obstack_free) [! defined _LIBC]: Remove.
83884         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83885         a clone of the function body.
83886         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83887         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83888
83889         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83890         glibc.
83891         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83892         arg to memcpy.
83893
83894         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83895         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83896         Don't use lvalue casts, as GCC plans to remove support for them
83897         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83898         was also present in the non-GCC version, indicating that this
83899         code had always been buggy and had never been widely used.
83900         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83901         Use the fast variant of each macro, rather than copying the
83902         definiens of the fast variant; that way, we'll be more likely to
83903         catch future bugs in the fast variants.
83904
83905 2003-10-20  Bruno Haible  <bruno@clisp.org>
83906
83907         * modules/wait-process: New file.
83908         * MODULES.html.sh (func_all_modules): Add wait-process.
83909
83910 2003-10-20  Bruno Haible  <bruno@clisp.org>
83911
83912         * m4/wait-process.m4: New file.
83913
83914 2003-10-20  Bruno Haible  <bruno@clisp.org>
83915
83916         * lib/wait-process.h: New file, from GNU gettext.
83917         * lib/wait-process.c: New file, from GNU gettext.
83918
83919 2003-10-19  Jim Meyering  <jim@meyering.net>
83920
83921         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83922         HPUX 10.20.
83923
83924 2003-10-18  Karl Berry  <karl@gnu.org>
83925
83926         * config/config.guess: update from config.
83927
83928 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83929
83930         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83931         (getgroups): First arg is int, not size_t.
83932         Don't let 'free' mangle errno.
83933
83934 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83935
83936         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83937
83938 2003-10-16  Karl Berry  <karl@gnu.org>
83939
83940         * config/config.{guess,sub}: update from config.
83941
83942 2003-10-16  Jim Meyering  <jim@meyering.net>
83943
83944         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83945         memcpy.
83946
83947 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83948
83949         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83950         (SIZE_MAX): Remove.
83951         (new_exclude, add_exclude_file): Initial size no longer needs to
83952         be a power of 2.
83953         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83954         our own address arithmetic overflow checking.
83955
83956         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83957         (fnmatch): Do not alloca more than 2000 wide characters;
83958         instead, use malloc for large buffers.
83959         Check for address arithmetic overflow, and return -1
83960         with errno set to ENOMEM in that case.
83961         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83962         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83963         instead, return -1.  Check for address arithmetic overflow.
83964
83965 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83966
83967         Handle invalid suffixes and overflow independently, so that
83968         callers can treat them independently as needed.  Fix some bugs in
83969         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83970         suffix for a human-readable blocksize.  The major caller-visible
83971         change is the addition of a new
83972         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83973         that both overflow and suffix chars were found.
83974
83975         * lib/human.c (humblock): Don't check separately for invalid suffix
83976         char; that is xstrtoumax's job (now that its bug is fixed).
83977         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83978         INTMAX_MAX]: New macros.
83979         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83980         TYPE_MAXIMUM): New macros.
83981         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83982         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83983         if overflow occurs, as it's what __strtol does and it's more useful
83984         in practice.
83985         (__xstrtol): If __strtol reports some error other than ERANGE,
83986         reflect it to the caller as LONGINT_INVALID.  If it reports
83987         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83988         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83989         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83990         value.
83991         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83992         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83993         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83994         [defined UINTMAX_MAX]: New macros.
83995
83996 2003-10-14  Bruno Haible  <bruno@clisp.org>
83997
83998         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83999
84000 2003-10-14  Bruno Haible  <bruno@clisp.org>
84001
84002         * m4/sig_atomic_t: New file, from GNU gettext.
84003         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
84004
84005 2003-10-14  Bruno Haible  <bruno@clisp.org>
84006
84007         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
84008         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
84009         Also use volatile where needed.
84010
84011 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84012
84013         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
84014         Change maintainer from Bruno Haible to 'all'.
84015
84016 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84017
84018         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84019
84020 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84021
84022         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84023         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84024         and define in terms of the other primitives.
84025         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84026         (SIZE_MAX): Define if not already defined.
84027         (array_size_overflow): New function.
84028         (xalloc_die): Abort instead of exiting if 'error' returns.
84029         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84030         (xmalloc, xrealloc): Use them.
84031         (xcalloc): Check for address arithmetic overflow.
84032         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84033         a bit faster than strcpy.
84034
84035 2003-10-10  Simon Josefsson  <jas@extundo.com>
84036
84037         * modules/argp (Depends-on): Add restrict and strcase.
84038
84039 2003-10-10  Simon Josefsson  <jas@extundo.com>
84040
84041         * m4/argp.m4: Add AC_C_INLINE.
84042
84043 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84044
84045         Merge getpass from libc, plus a few fixes.
84046
84047         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84048         Include <stdbool.h>.
84049         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84050         __fsetlocking to empty.
84051         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84052         do include <bits/libc-lock.h>.
84053         Do not include <fcntl.h>; not needed.
84054         [_LIBC]: Include <wchar.h>.
84055         (NOTCANCEL_MODE): New macro.
84056         (flockfile, funlockfile) [_LIBC]: New macros.
84057         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84058         [!_LIBC]: New macros.
84059         (call_fclose): New function.
84060         (getpass): Use it.  Save tty stream separately; this simplifies the
84061         code and makes it more reliable if stdin happens to equal stdout.
84062         Invoke __fsetlocking on tty.
84063         Handle thread cancellation if needed.
84064         Namespace cleanup (use __tcgetattr, __getline).
84065         Use bool for Booleans.
84066         [USE_IN_LIBIO]: Handle wide streams.
84067         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84068         stream might go where.
84069
84070         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84071         doesn't have to include <stdio.h> before us.
84072         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84073         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84074         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84075         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84076         if not declared, so that we can use getpass.c code from libc without
84077         rewriting it.
84078         (flockfile, ftrylockfile, funlockfile): New macros.
84079
84080 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84081
84082         * modules/getpass: Depend on stdbool.
84083
84084 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84085
84086         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84087
84088 2003-10-07  Karl Berry  <karl@gnu.org>
84089
84090         * config/config.{guess,sub}: update from config.
84091
84092 2003-10-06  Jim Meyering  <jim@meyering.net>
84093             Bruno Haible  <bruno@clisp.org>
84094
84095         This lets translators provide better translations for the
84096         "Written by ..." part of --version output.
84097         * lib/version-etc.h: Include stdarg.h.
84098         (version_etc_copyright): Declare as readonly.
84099         (version_etc): Make this function variadic with a NULL-terminated list
84100         of author name strings.
84101         (version_etc_va): New declaration.
84102         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84103         (version_etc_copyright): Declare as readonly.
84104         (version_etc_va): New function. Provide a different translatable string
84105         for each possible number of authors < 10. Abbreviate when there are 10
84106         authors or more.
84107         (version_etc): Make this function variadic. Call version_etc_va.
84108         Suggestion from Gary V. Vaughan.
84109
84110         * lib/long-options.h (parse_long_options): Change prototype: the
84111         authors string is moved to the end and becomes variadic.
84112         * lib/long-options.c: Include stdarg.h.
84113         (parse_long_options): Make this function variadic, too.
84114         Call version_etc_va, not version_etc.
84115
84116 2003-10-06  Bruno Haible  <bruno@clisp.org>
84117
84118         * modules/version-etc-2: Remove file.
84119         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84120
84121 2003-10-06  Bruno Haible  <bruno@clisp.org>
84122
84123         * modules/fatal-signal: New file.
84124         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84125
84126 2003-10-06  Bruno Haible  <bruno@clisp.org>
84127
84128         * m4/fatal-signal.m4: New file.
84129         * m4/signalblocking.m4: New file, from GNU gettext.
84130
84131 2003-10-06  Bruno Haible  <bruno@clisp.org>
84132
84133         * lib/version-etc-2.h: Remove file.
84134         * lib/version-etc-2.c: Remove file.
84135
84136 2003-10-06  Bruno Haible  <bruno@clisp.org>
84137
84138         * lib/fatal-signal.h: New file, from GNU gettext.
84139         * lib/fatal-signal.c: New file, from GNU gettext.
84140
84141 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84142
84143         * README: Rework advice for preventing empty .o files.
84144         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84145         not <sys/types.h>.
84146
84147 2003-10-04  Karl Berry  <karl@gnu.org>
84148
84149         * lib/argp*: update from libc.
84150
84151 2003-10-04  Karl Berry  <karl@gnu.org>
84152
84153         * config/config.{guess,sub}: update from config.
84154
84155 2003-10-02  Bruno Haible  <bruno@clisp.org>
84156
84157         * modules/lchown (Include): Add lchown.h.
84158         * modules/time_r (Include): Use "..." syntax.
84159         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84160
84161 2003-10-01  Simon Josefsson  <jas@extundo.com>
84162
84163         * MODULES.html.sh (func_all_modules): Move gethostname from section
84164         'based on' to section 'lacking' POSIX:2001.
84165
84166 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84167
84168         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84169         to output mode on the same stream.
84170
84171 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84172
84173         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84174         Fix arg typo in previous patch.
84175
84176 2003-09-28  Jim Meyering  <jim@meyering.net>
84177
84178         * lib/error.c: Correct cpp indentation.
84179
84180 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84181
84182         * modules/free: New file.
84183
84184 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84185
84186         * m4/free.m4: New file.
84187
84188 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84189
84190         * lib/minmax.h (MIN, MAX)
84191         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84192         Omit the special code that used __typeof__, since we worry that
84193         it could be more trouble than it's worth.  See:
84194         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84195         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84196
84197         * lib/free.c: New file.
84198
84199 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84200
84201         Trivial fixes to Makefile.am parts of module listings.
84202         * modules/strstr: Append strstr.h to lib_SOURCES.
84203         * modules/strcase: Likewise, for strcase.h.
84204
84205 2003-09-27  Karl Berry  <karl@gnu.org>
84206
84207         * config/mkinstalldirs: update from automake.
84208
84209 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84210
84211         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84212         (error_tail): Do not loop, reallocating temporary buffer, since
84213         the output cannot contain more wide characters than the input
84214         contains bytes, the size must be big enough already.  This avoids
84215         one potential size overflow calculation.  Check for size overflow
84216         when calculating temporary buffer size.  Free temporary buffer
84217         when done, if it was allocated with malloc; this plugs a memory
84218         leak.  Remove casts from void * to pointers, that are no longer
84219         needed now that we're assuming C89 or better.
84220
84221         Merge error changes from glibc.
84222
84223         * lib/error.c, error.h: Update copyright notice header to match glibc.
84224         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84225         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84226         Disable cancellation while printing error.
84227         * lib/error.h: Prepend __ to parameter names.
84228
84229 2003-09-26  Jim Meyering  <jim@meyering.net>
84230
84231         * lib/error.c (error_tail): Move some declarations
84232         into inner scope where the local variables are used.
84233
84234 2003-09-26  Bruno Haible  <bruno@clisp.org>
84235
84236         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84237         stpncpy().
84238         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84239
84240 2003-09-26  Bruno Haible  <bruno@clisp.org>
84241
84242         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84243         (stpncpy): Define as alias for gnu_stpncpy.
84244         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84245
84246 2003-09-25  Simon Josefsson  <jas@extundo.com>
84247
84248         * lib/xgetdomainname.h: New file.
84249         * lib/xgetdomainname.c: New file.
84250
84251 2003-09-25  Simon Josefsson  <jas@extundo.com>
84252             Bruno Haible  <bruno@clisp.org>
84253
84254         * modules/getdomainname: New file.
84255         * modules/xgetdomainname: New file.
84256         * MODULES.html.sh (func_all_modules): Add getdomainname,
84257         xgetdomainname.
84258
84259 2003-09-25  Simon Josefsson  <jas@extundo.com>
84260             Bruno Haible  <bruno@clisp.org>
84261
84262         * m4/getdomainname.m4: New file.
84263
84264 2003-09-25  Simon Josefsson  <jas@extundo.com>
84265             Bruno Haible  <bruno@clisp.org>
84266
84267         * lib/getdomainname.h: New file.
84268         * lib/getdomainname.c: New file.
84269
84270 2003-09-25  Karl Berry  <karl@gnu.org>
84271
84272         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84273
84274 2003-09-25  Karl Berry  <karl@gnu.org>
84275
84276         * config/install-sh: update from automake.
84277
84278 2003-09-25  Bruno Haible  <bruno@clisp.org>
84279
84280         * modules/version-etc-2: New file, from modules/version-etc with
84281         modifications.
84282         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84283
84284 2003-09-25  Bruno Haible  <bruno@clisp.org>
84285
84286         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84287         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84288
84289 2003-09-24  Simon Josefsson  <jas@extundo.com>
84290
84291         * modules/xgethostname: Add xgethostname.h.
84292
84293 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84294
84295         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84296         the buffer associated with the argument.  Bug reported by
84297         Simon Josefsson.
84298
84299 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84300
84301         * README: Document assumptions that 'int' is at least 32 bits
84302         wide, that integer arithmetic is 2's complement without overflow,
84303         that there are no holes in integer values, that adding sizes of
84304         two nonoverlapping objects can't overflow, and that all-bits-zero
84305         yields scalar zero.  Fix spelling and capitalization typos.
84306
84307 2003-09-19  Karl Berry  <karl@gnu.org>
84308
84309         * lib/argp.h: update from libc.
84310
84311 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84312
84313         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84314         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84315         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84316
84317 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84318
84319         * gnulib-tool: Use "test -h", not "test -L", for portability
84320         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84321         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84322         (sed_extract_prog): Issue s commands one-by-one, rather than
84323         using \| in one s command.
84324
84325 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84326
84327         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84328         input error, instead of returning NULL the next time we are called
84329         (and therefore losing track of errno).
84330
84331 2003-09-16  Bruno Haible  <bruno@clisp.org>
84332
84333         * gnulib-tool (func_create_testdir): Warn about duplicated
84334         dependencies.
84335
84336 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84337
84338         * modules/argmatch, modules/fatal, modules/obstack,
84339         modules/xalloc, modules/xgethostname: Sort dependencies by
84340         importance, not alphabetically.
84341
84342 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84343
84344         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84345         fails, so that the caller gets the proper errno.
84346
84347         * lib/readutmp.c (read_utmp): Likewise.
84348         Check for fstat error.  Close stream and free storage
84349         when failing.
84350
84351 2003-09-14  Karl Berry  <karl@gnu.org>
84352
84353         * config/srclist.txt (strdup.c): disable for c89 changes.
84354
84355 2003-09-14  Jim Meyering  <jim@meyering.net>
84356
84357         * lib/getloadavg.c: Correct cpp indentation.
84358         * lib/strdup.c: Likewise.
84359         * lib/vasnprintf.c: Likewise.
84360
84361 2003-09-14  Bruno Haible  <bruno@clisp.org>
84362
84363         * modules/fwriteerror: New file.
84364         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84365
84366 2003-09-14  Bruno Haible  <bruno@clisp.org>
84367
84368         * lib/fwriteerror.h: New file.
84369         * lib/fwriteerror.c: New file.
84370
84371 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84372
84373         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84374         modules/xgethostname, modules/xalloc: Depend on exit.
84375
84376 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84377
84378         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84379
84380         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84381         and AC_MINIX, too, so that their extensions are available.
84382
84383         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84384         This macro has been superseded by gl_BACKUPFILE.
84385
84386         More patches to assume C89 or better.
84387
84388         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84389
84390         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84391         unconditionally.
84392         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84393         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84394         Include <string.h>, <stdlib.h> unconditionally.
84395         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84396         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84397         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84398         headers or for string.h.
84399         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84400         or strtoul.
84401
84402         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84403         headers.
84404         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84405         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84406         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84407         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84408         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84409         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84410         memcpy, memset.
84411         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84412         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84413         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84414         strtol.
84415         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84416         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84417         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84418         strtoul.
84419
84420 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84421
84422         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84423         * lib/obstack.c [!defined _LIBC]: Likewise.
84424         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84425         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84426         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84427
84428         More changes to assume C89 or better.
84429
84430         * lib/error.c (error_tail): Assume vprintf.
84431
84432         * lib/argmatch.c (getenv): Remove decl.
84433         * lib/progreloc.c (get_full_program_name): Define via prototype.
84434         * lib/setenv.c (clearenv): Likewise.
84435         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84436         needed.
84437         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84438         (malloc, memcpy): Remove decls.
84439         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84440         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84441         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84442         (memcpy): Remove macro.
84443         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84444         (__P): Remove.  All uses removed.
84445         (PTR): Remove.  All uses changed to void *.
84446         (CHAR_BIT, NULL): Remove.
84447         (spaces, zeros, memset_space, memset_zero)
84448         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84449         Remove.
84450         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84451         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84452         Define with prototype.
84453         Remove now-unnecessary prototype decl.
84454         (extra_args_spec): Assume ANSI C.  All uses changed.
84455         (extra_args_spec_iso): Remove.
84456         (my_strftime, emacs_strftimeu): Define via prototype.
84457         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84458         unconditionally.
84459         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84460         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84461         (strtoul, strtol): Remove decls.
84462         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84463         LONG_MAX): Remove.
84464         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84465         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84466         (LOCALE_PARAM_PROTO): New macro.
84467         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84468         (INTERNAL (strtol), strtol): Define with a prototype.
84469         (PARAMS): Remove.  All uses removed.
84470         * lib/tempname.c: Include <string.h> unconditionally.
84471         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84472         * lib/xgethostname.c (main): Define with a prototype.
84473         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84474         Include <stdlib.h> unconditionally.
84475         (calloc, malloc, realloc, free): Remove decls.
84476         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84477         Include <stdlib.h> unconditionally.  Sort include file names.
84478         (strtod): Remove.
84479         (xstrtod): Define with a prototype.
84480         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84481         (strtol, strtoul): Remove decls.
84482
84483 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84484
84485         More patches to assume C89 or better.
84486         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84487         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84488         string.h, memchr, STDC_HEADERS.
84489
84490 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84491
84492         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84493         Include <stdlib.h>, <string.h> unconditionally.
84494         Remove now-unnecessary cast to char *.
84495         * lib/strnlen.c: Include <string.h> unconditionally.
84496         * lib/yesno.c (yesno): Define with a prototype.
84497
84498 2003-09-11  Bruno Haible  <bruno@clisp.org>
84499
84500         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84501
84502 2003-09-10  Jim Meyering  <jim@meyering.net>
84503
84504         * lib/error.c: Correct indentation of cpp directives.
84505
84506 2003-09-10  Bruno Haible  <bruno@clisp.org>
84507
84508         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84509         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84510         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84511         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84512         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84513         <stdlib.h> and <string.h> checks.
84514         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84515         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84516
84517 2003-09-10  Bruno Haible  <bruno@clisp.org>
84518
84519         * lib/strcspn.c: Include <string.h> unconditionally.
84520         * lib/strpbrk.c: Include <string.h> unconditionally.
84521         * lib/strstr.c: Include <string.h> unconditionally.
84522         * lib/unicodeio.c: Include <string.h> unconditionally.
84523         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84524         * lib/unsetenv.c: Likewise.
84525         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84526         * lib/yesno.c: Include <stdlib.h> unconditionally.
84527         (rpmatch): Add prototype.
84528
84529 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84530
84531         More patches to assume C89 or better.
84532         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84533         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84534         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84535         or for string.h.
84536         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84537         stdlib.h.
84538         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84539         C headers.
84540         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84541         string.h.
84542         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84543         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84544         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84545         or for string.h.
84546         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84547         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84548         C headers.
84549         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84550         memcpy.
84551         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84552         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84553         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84554         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84555         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84556         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84557         string.h, free.
84558         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84559         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84560         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84561         C headers, or for string.h.
84562         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84563         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84564         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84565         headers, memory.h, stdlib.h, string.h, strings.h.
84566         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84567         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84568         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84569         strchr.
84570         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84571         headers, memory.h, string.h.
84572         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84573         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84574         free.
84575         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84576         headers.
84577         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84578         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84579         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84580         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84581         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84582
84583 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84584
84585         More K&R removal.
84586
84587         * lib/acosl.c (main): Use a prototype.
84588         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84589         tanl.c: Likewise.
84590
84591         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84592
84593         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84594         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84595         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84596         with a prototype.
84597         * lib/getopt.c (const): Remove macro.
84598         Include <string.h> unconditionally.
84599         (my_index): Remove; all uses changed to strchr.
84600         (strlen): Remove decl.
84601         (exchange): Remove forward decl; no longer needed.
84602         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84603         Define with prototype.
84604         * lib/getopt1.c (const): Remove macro.
84605         (getopt_long, getopt_long_only, main): Define with prototype.
84606
84607         * lib/getugroups.c: Include <string.h> unconditionally.
84608
84609         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84610         (getusershell, setusershell, endusershell, readname, main):
84611         Define with prototypes.
84612
84613         * lib/group-member.c: Include group-member.h first.
84614         Include <stdlib.h> unconditionally.
84615
84616         * lib/hard-locale.c: Include hard-locale.h first.
84617         Include <stdlib.h>, <string.h> unconditionally.
84618
84619         * lib/hash.c (free, malloc): Remove decls.
84620         Include <stdlib.h> unconditionally.
84621
84622         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84623         (getenv): Do not declare.
84624
84625         * lib/idcache.c: Include <string.h> unconditionally.
84626
84627         * lib/long-options.c: Include long-options.h first, to test interface.
84628         Include <stdlib.h> unconditionally.
84629
84630         * lib/makepath.c: Include makepath.h first, to test interface.
84631         Include <stdlib.h> and <string.h> unconditionally.
84632
84633         * lib/linebuffer.c: Include <stdlib.h>.
84634         (free): Remove decl.
84635
84636         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84637         stddef.h. rpl_malloc returns void *, not char *.
84638         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84639         prototype.
84640
84641         * lib/md5.h: Include <limits.h> unconditionally.
84642         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84643         (__P): Remove; all uses removed.
84644         * lib/md5.c: Include "md5.h" first.
84645         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84646         md5_buffer, md5_process_bytes, md5_process_block):
84647         Define with prototypes.
84648         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84649         * lib/sha.c: Include "sha.h" first.
84650         Include <stdlib.h>, <string.h> unconditionally.
84651
84652         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84653         * lib/memcmp.c (__ptr_t): Likewise.
84654         * lib/memrchr.c (__ptr_t): Likewise.
84655         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84656         Include <string.h> unconditionally.
84657         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84658         * lib/memchr.c: Include <stdlib.h> unconditionally.
84659         * lib/memchr.c (LONG_MAX): Remove.
84660         * lib/memrchr.c (LONG_MAX): Likewise.
84661         * lib/memchr.c (__memchr): Define via a prototype.
84662         * lib/memrchr.c (__memrchr): Likewise.
84663         * lib/memcmp.c (__P): Remove, and remove all uses.
84664         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84665         Remove forward decls; no longer needed.
84666         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84667         Use types required by C89 in prototype.
84668
84669         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84670         * lib/savedir.c: Likewise.
84671         * lib/mkdir.c (free): Remove decl.
84672         * lib/rmdir.c (rmdir): Define with a prototype.
84673         * lib/savedir.c: Include savedir.h first, to test interface.
84674
84675         * lib/mktime.c (STDC_HEADERS): Remove.
84676         Include <stdlib.h>, <string.h> unconditionally.
84677
84678         * lib/modechange.c: Include <stdlib.h> unconditionally.
84679         (malloc): Remove decl.
84680
84681         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84682         (free): Remove decl.
84683
84684         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84685         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84686         (This type really should be intptr_t, but that's a C99ism.)
84687         (_obstack_memcpy): Remove: all uses changed to memcpy.
84688         Include <string.h> unconditionally.
84689         (struct obstack): Assume __STDC__ for types of members
84690         chunkfun, freefun, extra_arg.
84691         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84692         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84693         obstack_begin, obstack_specify_allocation,
84694         obstack_specify_allocation_with_arg, obstack_chunkfun,
84695         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84696         Remove unprototyped decls and the macros that use them.
84697         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84698         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84699         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84700         (defined __STDC__ && __STDC__)]:
84701         Remove nonprototyped code.
84702         Include <stdlib.h> unconditionally.
84703         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84704         _obstack_allocated_p, _obstack_free, obstack_free,
84705         _obstack_memory_used, print_and_abort):
84706         Define using prototypes.
84707         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84708         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84709         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84710         obstack_next_free, obstack_object_size, obstack_room) [0]:
84711         Remove unused, unprototyped code.
84712
84713         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84714
84715         * lib/physmem.c (physmem_total, physmem_available, main): Define
84716         with prototypes.
84717
84718         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84719         (main): Define with a prototype.
84720
84721         * lib/posixver.c (getenv): Remove decl.
84722
84723         * lib/putenv.c (malloc): Returns void *, not char *.
84724         Include <string.h> unconditionally.
84725         (strchr, memcpy, NULL): Do not define.
84726
84727         * lib/readtokens.c: Include readtokens.h first, to test interface.
84728         Include <stdlib.h>, <string.h> unconditionally.
84729         (init_tokenbuffer): Define with a prototype.
84730
84731         * lib/regex.c (PARAMS): Remove.  All uses removed.
84732         All uses of _RE_ARGS removed, too.
84733         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84734         unconditionally.
84735         (bzero): Assume memset exists.
84736         (memcmp, memcpy, NULL): Remove.
84737         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84738         char, or assignments to local vars of type signed char.
84739         (init_syntax_once, PREFIX(extract_number_and_incr),
84740         PREFIX(print_partial_compiled_pattern),
84741         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84742         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84743         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84744         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84745         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84746         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84747         wcs_compile_range, byte_compile_range, truncate_wchar,
84748         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84749         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84750         count_mbs_length, wcs_re_match_2_internal,
84751         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84752         PREFIX(alt_match_null_string_p),
84753         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84754         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84755         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84756         now-unnecessary declaration, if any.
84757         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84758         regcomp, regexec):
84759         Remove now-unnecessary casts among pointer types.
84760         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84761
84762         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84763         (free): Remove decl.
84764
84765         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84766
84767         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84768         (free): Remove decl.
84769
84770         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84771         * lib/xgetcwd.c: Likewise.
84772
84773         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84774         (free): Remove decl.
84775
84776         * lib/strchrnul.c (strchrnul): Define with a prototype.
84777         Fix bug: c_in was not converted to char before searching.
84778
84779         The following changes are not K&R related:
84780
84781         * lib/group-member.h: Include <sys/types.h>, so that this file is
84782         self-contained.
84783         * lib/makepath.h: Likewise.
84784
84785         * lib/getusershell.c (readname, default_index, line_size, readname):
84786         Use size_t, not int, for sizes.
84787         (readname): If the size overflows, report an error instead of
84788         looping forever.
84789
84790 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84791
84792         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84793         libc.
84794
84795 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84796
84797         * README: New section: portability guidelines.
84798
84799 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84800
84801         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84802         C89 spec.
84803
84804 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84805
84806         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84807
84808 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84809
84810         Assume C89 or better; remove K&R cruft.
84811         A few of these changes were first proposed by Derek Robert Price
84812         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84813
84814         * lib/addext.c: Include <string.h> unconditionally.
84815         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84816         Don't declare getenv or malloc.
84817
84818         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84819         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84820         (NULL): Remove.
84821         (find_stack_direction, alloca): Use prototypes.
84822
84823         * lib/atexit.c (atexit): Define using a prototype.
84824
84825         * lib/basename.c, dirname.c, stripslash.c:
84826         Include <string.h> unconditionally.
84827
84828         * lib/bcopy.c: Include <stddef.h>.
84829         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84830
84831         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84832
84833         * lib/error.h (error, error_at_line, error_print_progname)
84834         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84835         * lib/error.c: Include error.h first, to check interface.
84836         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84837         (VA_START): Remove; all uses changeed to va_start.
84838         (exit, strerror): Remove decls.
84839         (error_print_progname): Prototype uncondionally.
84840         Don't include <errno.h>; no longer needed.
84841         (private_strerror): Remove.
84842         (error_tail): Always define.
84843         (error, error_at_line): Assume C89 or better; always use prototypes.
84844         * lib/fatal.c: Include "fatal.h" first, to test interface.
84845         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84846         (VA_START): Remove; all uses changed to va_start.
84847         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84848         this case.
84849         (exit): Remove decl.
84850         (fatal): Prototype unconditionally.  Assume va_start works.
84851         Abort at end, to pacify gcc.
84852
84853         * lib/euidaccess.c (main): Define with a prototype.
84854
84855         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84856
84857         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84858
84859         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84860         prototypes.
84861         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84862         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84863         (getenv): Remove decl.
84864         (fnmatch): Define using a prototype.
84865         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84866         (FCT): Define using a prototype.
84867
84868         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84869
84870         * lib/gethostname.c: Include <stddef.h>.
84871         (gethostname): Define with prototype.  Length is size_t, not int.
84872
84873 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84874
84875         Assume C89 or better; remove K&R cruft.
84876         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84877         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84878         string.h, getenv, malloc.
84879         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84880         headers.
84881         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84882         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84883         do not check for strerror.
84884         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84885         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84886         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84887         do not check for doprnt or vprintf.
84888         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84889         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84890
84891 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84892
84893         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84894         getversion.c should have been removed then, but was accidentally
84895         preserved.
84896
84897         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84898         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84899
84900 2003-09-08  Karl Berry  <karl@gnu.org>
84901
84902         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84903                 config, forget about prep.
84904
84905         * config/depcomp, missing: update from automake.
84906
84907 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84908
84909         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84910         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84911
84912 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84913
84914         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84915         copy_tm_result.  Bug reported by Simon Josefsson in
84916         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84917
84918 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84919
84920         * m4/time_r.m4: New file.
84921         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84922         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84923         is. Check for timegm declaration.
84924         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84925         Do not check for gmtime_r.
84926         Replace mktime if __mktime_internal does not exist and if mktime
84927         hasn't been replaced already.
84928
84929 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84930
84931         * lib/time_r.c, lib/time_r.h: New files.
84932
84933         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84934         __localtime_r.
84935         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84936         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84937
84938         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84939         __gmtime_r.
84940         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84941         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84942         Include <time_r.h>.
84943
84944         * lib/timegm.c: Switch to glibc implementation, with the following
84945         changes:
84946         [defined HAVE_CONFIG_H]: Include <config.h>.
84947         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84948         (__mktime_internal) [!defined _LIBC]: New decl.
84949         (__gmtime_r) [!defined _LIBC]: New macro and function.
84950         (timegm): Use a prototype, since gnulib assumes C89.
84951         Do not bother declaring tmp to be const, as it's not really usefu.
84952         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84953         (timegm): Declare only if HAVE_DECL_TIMEGM.
84954
84955 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84956
84957         * MODULES.html.sh (func_all_modules): Add time_r.
84958         * modules/time_r: New file.
84959         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84960         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84961
84962 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84963
84964         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84965         Bug reported by Lute Kamstra in
84966         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84967
84968         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84969         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84970         course with correspondingly smaller numbers for tomorrow and
84971         yesterday.  From Tadayoshi Funaba.  Originally installed into
84972         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84973         coreutils merge?).
84974
84975 2003-08-31  Simon Josefsson  <jas@extundo.com>
84976
84977         * modules/timegm: New file.
84978         * MODULES.html.sh (func_all_modules): Add timegm.
84979
84980 2003-08-31  Simon Josefsson  <jas@extundo.com>
84981
84982         * m4/timegm.m4: New file.
84983
84984 2003-08-31  Simon Josefsson  <jas@extundo.com>
84985
84986         * lib/timegm.h: New file.
84987         * lib/timegm.c: New file.  Based on
84988         wget-1.8.2/src/http.c:mktime_from_utc.
84989
84990 2003-08-31  Karl Berry  <karl@gnu.org>
84991
84992         * lib/argp.h: update from libc.
84993
84994 2003-08-28  Bruno Haible  <bruno@clisp.org>
84995
84996         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84997         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84998         followed by '#define fnmatch fnmatch_posix' gives an error.
84999
85000 2003-08-28  Bruno Haible  <bruno@clisp.org>
85001
85002         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
85003         warning on QNX, which defines O_BINARY to 000000.
85004
85005 2003-08-27  Jim Meyering  <jim@meyering.net>
85006
85007         * m4/mkstemp.m4: Require that the system mkstemp be able to create
85008         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
85009         would fail after 32.  Reported by Danny Levinson.  Details here:
85010         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
85011
85012 2003-08-24  Bruno Haible  <bruno@clisp.org>
85013
85014         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
85015         MSVC7 <stdio.h> is included later.
85016
85017 2003-08-22  Simon Josefsson  <jas@extundo.com>
85018
85019         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85020
85021 2003-08-20  Karl Berry  <karl@gnu.org>
85022
85023         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85024
85025 2003-08-20  Bruno Haible  <bruno@clisp.org>
85026
85027         * modules/progname: New file.
85028         * MODULES.html.sh (func_all_modules): Add progname.
85029
85030 2003-08-20  Bruno Haible  <bruno@clisp.org>
85031
85032         * lib/progname.h: New file, from GNU gettext.
85033         * lib/progname.c: New file, from GNU gettext.
85034         * lib/progreloc.c: New file, from GNU gettext.
85035
85036 2003-08-19  Jim Meyering  <jim@meyering.net>
85037
85038         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85039         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85040
85041 2003-08-19  Bruno Haible  <bruno@clisp.org>
85042
85043         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85044         more.
85045
85046 2003-08-19  Bruno Haible  <bruno@clisp.org>
85047
85048         * lib/xstrdup.c: Assume <string.h> exists.
85049
85050 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85051
85052         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85053         in makefile rules.
85054
85055 2003-08-18  Jim Meyering  <jim@meyering.net>
85056
85057         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85058         * m4/lib-ld.m4: Likewise.
85059
85060 2003-08-18  Jim Meyering  <jim@meyering.net>
85061
85062         * lib/setenv.h: Indent nested cpp directive.
85063         * lib/vasnprintf.c: Remove trailing blanks.
85064
85065 2003-08-17  Simon Josefsson  <jas@extundo.com>
85066
85067         * modules/xstrndup: New file.
85068         * MODULES.html.sh (func_all_modules): Add xstrndup.
85069
85070 2003-08-17  Simon Josefsson  <jas@extundo.com>
85071
85072         * modules/argp: Fix autoconf macro name. Add more dependencies.
85073
85074 2003-08-17  Simon Josefsson  <jas@extundo.com>
85075
85076         * m4/xstrndup.m4: New file.
85077
85078 2003-08-17  Simon Josefsson  <jas@extundo.com>
85079
85080         * m4/argp.m4: New file.
85081
85082 2003-08-17  Simon Josefsson  <jas@extundo.com>
85083             Bruno Haible  <bruno@clisp.org>
85084
85085         * lib/xstrndup.h: New file.
85086         * lib/xstrndup.c: New file.
85087
85088 2003-08-17  Bruno Haible  <bruno@clisp.org>
85089
85090         * modules/strndup (Files, Include): Add lib/strndup.h.
85091
85092 2003-08-17  Bruno Haible  <bruno@clisp.org>
85093
85094         * modules/euidaccess (Files): Add lib/euidaccess.h.
85095
85096 2003-08-17  Bruno Haible  <bruno@clisp.org>
85097
85098         * lib/strndup.h: New file.
85099
85100 2003-08-17  Bruno Haible  <bruno@clisp.org>
85101
85102         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85103         like AC_GNU_SOURCE.
85104         * modules/extensions (configure.ac): Comment out the invocation of
85105         gl_USE_SYSTEM_EXTENSIONS.
85106
85107 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85108
85109         Merges from coreutils, etc.
85110         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85111         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85112         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85113         fixing a typo.
85114         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85115         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85116
85117 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85118
85119         Document merge from coreutils.
85120         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85121         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85122         * modules/utime: Add m4/utimes-null.m4.
85123
85124 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85125
85126         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85127         space, undoing this 2003-08-12 change:
85128         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85129
85130 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85131
85132         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85133         strtoul.c from libc, undoing this 2003-08-12 change:
85134         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85135
85136 2003-08-16  Jim Meyering  <jim@meyering.net>
85137
85138         Merges from coreutils.
85139         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85140         prefix.  Adjust cache variables similarly.  Create 500 rather than
85141         just 300 files, to exercise bug on Darwin6.5, too.
85142         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85143         $missing_dir.
85144         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85145         AM_SYS_POSIX_TERMIOS.
85146         Reported by mkc@mathdogs.com.
85147         Also change use of $am_cv_sys_posix_termios
85148         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85149         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85150         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85151         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85152         in /proc/mounts until it finds one with matching device number.  This
85153         is unnecessary when the FILE argument *is* a mount point.  No stat call
85154         is necessary in that case.  So, disable the statvfs-testing code on
85155         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85156         as RedHat bug# 84846.
85157         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85158         to 1MB, so as not to render systems with no stack size limit (e.g.,
85159         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85160         Include <unistd.h>.  On some systems,
85161         it is required for the definition of _SC_PAGESIZE.
85162
85163 2003-08-16  Jim Meyering  <jim@meyering.net>
85164
85165         Merge from coreutils.
85166         * lib/xstrtoimax.c: #else #if -> #elif.
85167         * lib/xstrtoumax.c: Likewise.
85168
85169 2003-08-16  Jim Meyering  <jim@meyering.net>
85170
85171         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85172         * m4/utimes.m4: Removed.
85173         * m4/utimes-null.m4: Renamed from utimes.m4.
85174
85175         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85176         to 1MB, so as not to render systems with no stack size limit (e.g.,
85177         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85178         Include <unistd.h>.  On some systems,
85179         it is required for the definition of _SC_PAGESIZE.
85180
85181 2003-08-16  Jim Meyering  <jim@meyering.net>
85182         and Paul Eggert  <eggert@cs.ucla.edu>
85183
85184         Merges from coreutils, etc.
85185
85186         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85187         using the latest version from cvs.  This avoids problems with #line
85188         directives using a vendor (Sun) compiler.
85189         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85190         Don't set GETGROUPS_LIB here; now it's
85191         done via getgroups.m4's wrapper function.
85192         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85193         rather than just in sh-util/configure.in, so that the
85194         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85195         same.
85196         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85197         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85198         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85199         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85200         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85201         Remove code that is now done by the newly-required macros.
85202         Append $(EXEEXT) to DF_PROG.
85203         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85204         Do not invoke or require the following here,
85205         since prereq.m4 or some gnulib .m4 now does this for us:
85206         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85207         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85208         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85209         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85210         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85211         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85212         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85213         AC_FUNC_OBSTACK.
85214         Do not replace the following functions, as this is now the job
85215         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85216         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85217         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85218         atexit getpass, strdup, getpagesize.
85219         Replace 'raise'.
85220         Do not check for the following functions, as this is now the job
85221         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85222         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85223         setregid.
85224         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85225         Check for sys/sysctl.h.
85226         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85227         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85228         of checking for ssize_t ourselves.
85229
85230         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85231         Require every macro that gnulib/modules/* suggests for us.
85232         (jm_PREREQ_ADDEXT): New macro.
85233         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85234         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85235
85236         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85237         (gl_PHYSMEM): Use it.
85238         Also check for `table' function.
85239         Check for new headers and functions.
85240         Add check for sys/sysmp.h.
85241         With suggestions from Kaveh Ghazi.
85242         Ignore headers that are present but cannot be compiled.  This
85243         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85244         C 5.4.
85245
85246 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85247
85248         Document merge from coreutils.
85249         * modules/userspec: Depend on posixver.
85250         * modules/strftime: Depend on tzset.
85251
85252 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85253
85254         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85255         rather than tab, after '#' in shell-script copyright notices.
85256         Suggested by Bruno Haible.
85257
85258 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85259
85260         * config/srclist-update: Use three spaces, rather than tab, after '#'
85261         in shell-script copyright notices.  Suggested by Bruno Haible.
85262         Remove unnecessary parenthesization in regular expression.
85263
85264 2003-08-15  Jim Meyering  <jim@meyering.net>
85265
85266         Merge from coreutils.
85267         * lib/xgethostname.c: Include <stdlib.h>.
85268         (xghostname): Don't exit for anything other than memory-related
85269         failure; just return NULL.
85270         * lib/userspec.c: Include "posixver.h".
85271         (parse_user_spec): Accept `.' as a separator only
85272         in pre-POSIX-200112 mode.
85273         * lib/strtoimax.c: Use #elif rather than #else #if.
85274         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85275         Remove function, now that we can rely on a working tzset function.
85276         [!_LIBC]: Ensure that the required autoconf test has been run.
85277         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85278         Use underlying_strftime for %r.
85279         * lib/sha.c: Merge in some clean-up and optimization changes from
85280         glibc.
85281         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85282         Ensure that it is a multiple of 64.
85283         Rearrange loop exit tests so as to avoid performing an
85284         additional fread after encountering an error or EOF.
85285         * lib/realloc.c: Update copyright date.
85286
85287 2003-08-15  Jim Meyering  <jim@meyering.net>
85288         and Paul Eggert  <eggert@twinsun.com>
85289
85290         Merge from coreutils.
85291         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85292         member but strut utmpx does not.  Needed for AIX 4.3.3.
85293         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85294
85295 2003-08-15  Jim Meyering  <jim@meyering.net>
85296         and Paul Eggert  <eggert@cs.ucla.edu>
85297
85298         Merges from coreutils, etc.
85299         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85300         Require gl_FUNC_TZSET_CLOBBER.
85301         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85302         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85303         members.
85304
85305 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85306
85307         Help the merge from coreutils.
85308         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85309         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85310         * m4/tzset.m4: Use it too.
85311
85312 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85313
85314         * modules/tzset: New file.
85315
85316 2003-08-14  Jim Meyering  <jim@meyering.net>
85317
85318         Merges from coreutils.
85319         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85320         variable names, rather than @FNMATCH_H@.
85321         * modules/alloca: Likewise for $(ALLOCA_H).
85322
85323         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85324         the three copies of the literal target, `fnmatch.h'.
85325         * modules/alloca (alloca.h): Likewise.
85326
85327 2003-08-14  Jim Meyering  <jim@meyering.net>
85328
85329         Merge from coreutils.
85330         * m4/tzset.m4: New file.
85331         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85332         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85333         otherwise, AIX 5.1 systems would end up using the latter.
85334         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85335         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85336         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85337         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85338
85339 2003-08-14  Jim Meyering  <jim@meyering.net>
85340
85341         Merge from coreutils.
85342         * lib/obstack.h: Whitespace changes.
85343         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85344         and xcalloc return values.
85345         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85346         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85347         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85348         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85349         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85350         error from mntctl.
85351         Use mntctl's return value to drive the entry-processing loop, since
85352         we can't rely on the value of the vmt_length member in the last
85353         entry.  On some systems doing so could result in exhausting
85354         virtual memory.  Based in part on a patch from Mike Jetzer.
85355
85356 2003-08-14  Jim Meyering  <jim@meyering.net>
85357         and Paul Eggert  <eggert@twinsun.com>
85358
85359         Merges from coreutils, plus other fixes.
85360         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85361         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85362         for credits and details.  Thanks to Kaveh Ghazi for helping
85363         to keep these files in sync.
85364         (ARRAY_SIZE): Define it.
85365         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85366         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85367         (memcasecmp): Don't assume size_t fits in unsigned int.
85368         Remove casts and duplicate code.
85369         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85370         (memcpy): Remove definition.
85371         Merge in some clean-up and optimization changes from glibc.
85372         [BLOCKSIZE]: Move definition to top of file.
85373         Ensure that it is a multiple of 64.
85374         Rearrange loop exit tests so as to avoid performing an
85375         additional fread after encountering an error or EOF.
85376         * lib/md5.h (md5_uintptr): Define.
85377         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85378         return to the initial working directory.  Preserve errno
85379         for caller.
85380         * lib/idcache.c: Include "xalloc.h".
85381         (xmalloc, xrealloc): Remove decls.
85382         (getuser): Remove casts no longer required in C89.
85383         * lib/human.c: Include stdio.h, for sprintf.
85384         * lib/group-member.c: Include "xalloc.h".
85385         (xmalloc, xrealloc): Remove decls.
85386         (get_group_info): Remove casts no longer required in C89.
85387         * lib/getusershell.c (readname): Remove casts no longer required in
85388         C89.
85389         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85390         * lib/getline.c: Whitespace fix, from coreutils.
85391
85392 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85393
85394         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85395         Check for isascii.
85396
85397         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85398         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85399         Undo previous (whitespace-only) change.
85400
85401 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85402
85403         * lib/exclude.c: Include <ctype.h>
85404         (IN_CTYPE_DOMAIN): New macro.
85405         (is_space): New fn.
85406         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85407         and empty lines.
85408
85409         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85410         Undo previous (whitespace-only) change.
85411
85412 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85413
85414         * config/srclist-update: Change update back to the old behavior,
85415         leaving whitespace alone.  Use one 'sed' command rather than a
85416         pipeline.
85417         (fixlicense): Now a variable, not a function.
85418         (remove_trailing_blanks): Remove.
85419         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85420         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85421         Undo previous (whitespace-only) change.
85422
85423 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85424
85425         Merge from coreutils.
85426         * modules/euidaccess: Add lib_SOURCES, include for new
85427         file euidaccess.h
85428
85429 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85430
85431         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85432         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85433         Normalize leading white space and remove trailing white space.
85434
85435         Merge from coreutils
85436         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85437
85438         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85439         0.12.1.  These files are now being upgraded automatically by
85440         ../config/srclist-update.
85441
85442 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85443
85444         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85445         Normalize leading white space and remove trailing white space.
85446         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85447         notice, as per ../config/srclist-update.
85448
85449         Merge from coreutils.
85450         * lib/euidaccess.h: New file.
85451         * lib/euidaccess.c: Include it.
85452         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85453         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85454         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85455
85456 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85457
85458         * config/srclist-update: Add copyright notice.
85459         (remove_id_lines, remove_trailing_blanks): New constants.
85460         (fixfile): Use them to normalize spacing a bit in copied files.
85461         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85462         Normalize leading white space and remove trailing white space.
85463
85464         * config/texinfo.tex: Sync with texinfo.
85465
85466         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85467         strtoul.c from libc, to merge coreutils whitespace changes.
85468
85469         * config/srclist.txt: Get the following m4 files from gettext:
85470         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85471         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85472         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85473         wint_t.m4.
85474
85475 2003-08-12  Karl Berry  <karl@gnu.org>
85476
85477         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85478         been made.
85479
85480 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85481
85482         * modules/gnu-source, m4/gnu-source.m4:
85483         Remove; we're assuming Autoconf 2.54 or later now.
85484         Suggested by Bruno Haible.
85485         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85486
85487 2003-08-11  Bruno Haible  <bruno@clisp.org>
85488
85489         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85490
85491 2003-08-11  Bruno Haible  <bruno@clisp.org>
85492
85493         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85494         (vasnprintf): Use it instead of wcslen.
85495
85496 2003-08-11  Bruno Haible  <bruno@clisp.org>
85497
85498         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85499         value to ensure that _Bool promotes to int. Use #define for _Bool when
85500         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85501
85502 2003-08-10  Karl Berry  <karl@gnu.org>
85503
85504         * lib/regex.h: update from libc (whitespace fix).
85505
85506 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85507
85508         Merge some files from coreutils.  These changes were
85509         originally made by Jim Meyering.
85510         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85511         many older Unixes require this.
85512         * lib/alloca.c (alloca): Remove cast to argument of free;
85513         no longer needed in C89.
85514         * lib/alloca_.h, regex.h: Fix white space to match
85515         what GNU indent does.
85516
85517 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85518
85519         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85520         apparently Emacs's Unicode mode got confused before my 2003-08-05
85521         checkin.
85522
85523 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85524
85525         * m4/extensions.m4: New file.
85526         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85527         Require gl_USE_SYSTEM_EXTENSIONS.
85528         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85529         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85530
85531 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85532
85533         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85534         * modules/extensions, modules/gnu-source: New files.
85535         * modules/timespec, modules/unlocked-io: Depend on extensions.
85536
85537 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85538
85539         * modules/restrict: New file.
85540         * MODULES.html.sh (func_all_modules): Add restrict.
85541         * modules/regex: Depend on restrict.
85542
85543 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85544
85545         * m4/restrict.m4: New file.
85546         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85547
85548 2003-08-07  Bruno Haible  <bruno@clisp.org>
85549
85550         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85551         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85552
85553 2003-08-07  Bruno Haible  <bruno@clisp.org>
85554
85555         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85556         makes the module 'getndelim2' compatible with the module 'getline'.
85557
85558 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85559
85560         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85561         byte with "\201" to avoid glitches when editing that source file
85562         with multi-gnome-terminal.
85563
85564 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85565
85566         * lib/bumpalloc.h: Remove.
85567
85568 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85569
85570         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85571         * modules/bumpalloc: Remove.
85572
85573 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85574
85575         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85576         GNU coding style.
85577
85578         Merge from coreutils.
85579         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85580         1. From glibc.
85581         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85582         from Karl Berry, implemented by Jim Meyering.
85583         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85584         from Dmitry V. Levin.
85585         Remove anachronistic cast of xrealloc.
85586         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85587         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85588         type. Otherwise, it wouldn't compile with at least /bin/cc on
85589         ymp-cray-unicos9.0.2.X.
85590         Combine two mostly-identical uses of alloca into one.
85591         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85592
85593 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85594
85595         [From Emacs.]
85596
85597         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85598         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85599         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85600         obsolete NLIST_NAME_UNION.
85601         [__GNU__]: Undef BSD and FSCALE.
85602         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85603
85604 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85605
85606         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85607         an enum type, so that it's guaranteed to promote to int.  See:
85608         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85609
85610 2003-08-03  Karl Berry  <karl@gnu.org>
85611
85612         * config/depcomp: update from automake.
85613
85614 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85615
85616         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85617         (strerror): Don't assume that a printable int fits in 14 bytes.
85618
85619 2003-07-31  Bruno Haible  <bruno@clisp.org>
85620
85621         * modules/getpass-gnu: New file.
85622         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85623
85624 2003-07-31  Bruno Haible  <bruno@clisp.org>
85625
85626         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85627
85628 2003-07-24  Karl Berry  <karl@gnu.org>
85629
85630         * config/missing: update from automake.
85631
85632 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85633             Bruno Haible  <bruno@clisp.org>
85634
85635         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85636         * lib/getline.c (getline, getdelim): Likewise.
85637         Remove _GNU_SOURCE define; now it's defined in config.h through
85638         m4/getline.m4.
85639
85640 2003-07-23  Karl Berry  <karl@gnu.org>
85641
85642         * config/config.sub: update from prep.
85643
85644 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85645
85646         * modules/xalloc (Depends-on): Add exitfail.
85647         * modules/xmemcoll: Likewise.
85648
85649 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85650
85651         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85652         over-parenthesization in macros.
85653
85654         Sync with coreutils.
85655
85656         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85657         required by C99.
85658
85659         Use `exit_failure' for xalloc and xmemcoll instead of their own
85660         private exit-failure variables.
85661         * lib/xalloc.h (xalloc_exit_failure): Remove.
85662         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85663         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85664         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85665         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85666         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85667
85668 2003-07-20  Jim Meyering  <jim@meyering.net>
85669
85670         * modules/closeout (Depends-on): Add exitfail.
85671         Suggestion from Bruno Haible.
85672
85673 2003-07-19  Karl Berry  <karl@gnu.org>
85674
85675         * config/config.sub: update from prep.
85676
85677 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85678
85679         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85680         Remove.
85681         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85682         to test that it can stand by itself.  Include "exitfail.h".
85683         Clients should set exit_failure instead.
85684         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85685
85686 2003-07-18  Bruno Haible  <bruno@clisp.org>
85687
85688         * modules/getndelim2: New file.
85689         * modules/getline: Share files with module getndelim2.
85690         * modules/getnline: Depend on getndelim2 instead of sharing files with
85691         it. Add getnline.c to lib_SOURCES.
85692         * MODULES.html.sh (func_all_modules): Add getndelim2.
85693
85694 2003-07-18  Bruno Haible  <bruno@clisp.org>
85695
85696         * m4/getndelim2.m4: New file.
85697         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85698         invoke gl_PREREQ_GETNDELIM2.
85699         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85700         gl_PREREQ_GETNDELIM2.
85701         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85702         gl_GETNDELIM2.
85703
85704 2003-07-18  Bruno Haible  <bruno@clisp.org>
85705
85706         * lib/getndelim2.h: New file.
85707         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85708         getndelim2.h.
85709         (getndelim2): Make non-static. Change return type to ssize_t.
85710         * lib/getline.h: Change argument names.
85711         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85712         * lib/getnline.c: Include getndelim2.h.
85713
85714 2003-07-18  Andreas Schwab  <schwab@suse.de>
85715
85716         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85717
85718 2003-07-17  Karl Berry  <karl@gnu.org>
85719
85720         * config/config.sub: update from prep.
85721
85722 2003-07-17  Bruno Haible  <bruno@clisp.org>
85723
85724         * modules/getnline: New file.
85725         * modules/getline: Add lib/getndelim2.c to source file list.
85726         * MODULES.html.sh (func_all_modules): Add getnline.
85727
85728 2003-07-17  Bruno Haible  <bruno@clisp.org>
85729
85730         * m4/getnline.m4: New file.
85731
85732 2003-07-17  Bruno Haible  <bruno@clisp.org>
85733
85734         * m4/Makefile.am.in: Remove file.
85735         * m4/Makefile.am: Remove file.
85736         * m4/Makefile.in: Remove file.
85737
85738 2003-07-17  Bruno Haible  <bruno@clisp.org>
85739
85740         * lib/getnline.h: New file.
85741         * lib/getnline.c: New file.
85742         * lib/getndelim2.c: New file, extracted from getline.c.
85743         (getndelim2): Renamed from getdelim2, with added nmax argument.
85744         * lib/getline.c: Include getndelim2.c.
85745         (getdelim2): Moved out to getndelim2.c.
85746         (getline, getdelim): Update.
85747
85748 2003-07-17  Bruno Haible  <bruno@clisp.org>
85749
85750         * lib/Makefile.am: Remove file.
85751         * lib/Makefile.in: Remove file.
85752
85753 2003-07-17  Bruno Haible  <bruno@clisp.org>
85754
85755         * configure.in: Remove file.
85756         * Makefile.in: Remove file.
85757
85758 2003-07-17  Bruno Haible  <bruno@clisp.org>
85759
85760         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85761
85762 2003-07-16  Karl Berry  <karl@gnu.org>
85763
85764         * config/srclist-update: was running fixlicense twice, which caused
85765                 texinfo.tex to be nullified for some reason.  Simplify,
85766                 $gplsrc is no longer needed as far as I can see?
85767
85768 2003-07-16  Jim Meyering  <jim@meyering.net>
85769
85770         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85771
85772 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85773
85774         * config/srclist.txt: Get the following files from gettext-runtime/intl
85775         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85776         ref-del.sin.  From Bruno Haible.
85777         * config/srclist-update (fixfile): Change grep pattern again, since the
85778         previous fix didn't work (there was another trailing $).  Use
85779         '[$]' to escape the $s.
85780
85781 2003-07-15  Karl Berry  <karl@gnu.org>
85782
85783         * lib/vasnprintf.c: update from gettext.
85784
85785 2003-07-15  Karl Berry  <karl@gnu.org>
85786
85787         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85788         gets expanded when surrounded by '$'.
85789
85790 2003-07-15  Jim Meyering  <jim@meyering.net>
85791
85792         * modules/save-cwd: Don't depend on error.  From Derek Price.
85793
85794 2003-07-15  Jim Meyering  <jim@meyering.net>
85795
85796         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85797
85798 2003-07-14  Simon Josefsson  <jas@extundo.com>
85799
85800         * modules/mempcpy: New file.
85801         * MODULES.html.sh (func_all_modules): Add mempcpy.
85802
85803 2003-07-14  Simon Josefsson  <jas@extundo.com>
85804
85805         * m4/mempcpy.m4: New file.
85806
85807 2003-07-14  Simon Josefsson  <jas@extundo.com>
85808
85809         * lib/mempcpy.h: New file.
85810         * lib/mempcpy.c: New file.
85811
85812 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85813
85814         * modules/getdate, modules/posixtm: Depend on mktime.
85815
85816 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85817
85818         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85819         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85820         unicodeio.c, unicodeio.h, unlocked-io.h:
85821         Switch from LGPL to GPL.
85822
85823 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85824
85825         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85826         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85827         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85828         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85829         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85830         updated automatically by ../config/srclist-update.  This changes
85831         their license from LPGL to GPL.
85832
85833 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85834
85835         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85836         assumed to refer to the root of the most recent stable gettext version.
85837         * config/srclistvars.sh: Add defaults for eggert.
85838         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85839         Match "This program" as well as "The program".  This is needed
85840         for gettext.
85841
85842 2003-07-14  Jim Meyering  <jim@meyering.net>
85843
85844         Don't emit diagnostics.  Let callers do that.
85845         * lib/save-cwd.c: Don't include "error.h".
85846         (save_cwd): Don't call error.  Ensure that errno is valid
85847         when returning nonzero.
85848
85849         * lib/save-cwd.h (restore_cwd): Update prototype.
85850         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85851         Simplify.  Don't call error upon failure.  Let callers do that.
85852         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85853         when auditing is enabled.  But don't bother updating the #if.
85854
85855 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85856
85857         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85858         it breaks C++ compilation.
85859         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85860
85861 2003-07-10  Simon Josefsson  <jas@extundo.com>
85862
85863         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85864
85865 2003-07-10  Jim Meyering  <jim@meyering.net>
85866
85867         * m4/clock_time.m4: Remove trailing blank.
85868         * m4/intmax_t.m4: Likewise.
85869
85870 2003-07-10  Jim Meyering  <jim@meyering.net>
85871
85872         * lib/vasnprintf.c: Remove trailing blanks.
85873         Make cpp indentation consistent.
85874
85875 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85876
85877         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85878         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85879         Switch from LGPL to GPL.
85880
85881 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85882
85883         * config/srclist.txt: Sort sublists.  Add
85884         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85885         that differ from gnulib for one reason or another; we'd like this list
85886         to be smaller but for now let's document what we have.
85887
85888 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85889
85890         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85891         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85892         and sweeter "eval x=$x".
85893         * config/srclist.txt: Get lib/argp* from glibc.
85894
85895 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85896
85897         * lib/mktime.c: Fix some boundary cases and remove need for floating
85898         point.
85899
85900         Issue a compile-time diagnostic if time_t is floating point, or if
85901         two's complement arithmetic is not in effect, or if arithmetic
85902         right shift does not propagate the sign.  These assumptions were
85903         all in the original code but they weren't checked.
85904
85905         (TIME_T_MIDPOINT, verify): New macros.
85906         (__isleap): Remove; it has integer overflow problems.
85907         (leapyear): New function, without those problems.
85908         (ydhms_tm_diff): Remove; splitting into two parts.
85909         (ydhms_diff): New function, containing the arithmetic part of
85910         the old ydhms_tm_diff function.  Issue a compile-time
85911         diagnostic if we are not using C99 integer division.
85912         Avoid casts when possible.
85913         (guess_time_tm): New function, containing the checking part of
85914         the old ydhms_tm_diff function.  Return the new value, rather than
85915         the difference between it and the old.  Accept a new argument T
85916         so that *T specifies the old value.  Check for overflow in the result.
85917
85918         (__mktime_internal): Use a time_t offset, not a long int offset.
85919         This undoes the 2003-06-04 change, which is no longer needed now
85920         that we have better overflow checking.
85921         (localtime_offset): Likewise.
85922
85923         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85924         and long are 64-bit but int is only 32-bit.
85925         (ydhms_diff): Use long int to store year1 and yday1.
85926         Issue a compile-time diagnostic if long int is not wide enough.
85927
85928         (__mktime_internal): Use long int to store adjusted year and yday.
85929         Use plain C rather than preprocessor commands, if that doesn't
85930         affect efficiency.
85931         Check for overflow (and try to repair) after each probe
85932         rather than checking only at the very end.  This avoids some bugs
85933         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85934         does not equal GMT offset at maximum time).
85935         Use integer to check for overflow rather than floating point; this
85936         is more portable to non-IEEE hosts, and is a tad faster.
85937         When we detect that we are oscillating between two values,
85938         don't check whether tm_isdst has the requested value, since
85939         we already know the answer.  When tm_isdst has the wrong value,
85940         use a different heuristic to find the right one, based on the
85941         extreme values actually observed in practice in tz2003a,
85942         rather than the (overly optimistic) "previous 3 calendar quarters".
85943
85944         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85945         "T const" to accommodate glibc style.
85946         (check_result): Use less-confusing report format.  "long" -> "long int.
85947         (main): Likewise.
85948         Don't loop if the iteration overflows time_t.
85949         Allow a negative step in the iteration.
85950
85951 2003-07-06  Karl Berry  <karl@gnu.org>
85952
85953         * config/depcomp: update from automake.
85954         * config/config.sub: update from prep.
85955
85956 2003-07-03  Karl Berry  <karl@gnu.org>
85957
85958         * config/config.guess: update from prep.
85959
85960 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85961
85962         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85963         xreadlink.c now includes it unconditionally.
85964
85965 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85966
85967         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85968         having it depend on HAVE_SYS_TYPES_H.
85969
85970 2003-07-01  Bruno Haible  <bruno@clisp.org>
85971
85972         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85973         <sys/types.h> should be sufficient.
85974         Reported by Paul Eggert.
85975
85976 2003-06-26  Karl Berry  <karl@gnu.org>
85977
85978         * config/depcomp: update from automake.
85979
85980 2003-06-26  Bruno Haible  <bruno@clisp.org>
85981
85982         * modules/human: Depend on module stdbool.
85983
85984 2003-06-25  Bruno Haible  <bruno@clisp.org>
85985
85986         * modules/readlink: New file.
85987         * modules/xreadlink: Depend on it.
85988         * MODULES.html.sh (func_all_modules): Add readlink.
85989
85990 2003-06-25  Bruno Haible  <bruno@clisp.org>
85991
85992         * m4/readlink.m4: New file.
85993
85994 2003-06-25  Bruno Haible  <bruno@clisp.org>
85995
85996         * lib/readlink.c: New file.
85997
85998 2003-06-22  Karl Berry  <karl@gnu.org>
85999
86000         * config/srclist.txt: update mkinstalldirs from automake.
86001         * config/mkinstalldirs: update.
86002
86003 2003-06-22  Bruno Haible  <bruno@clisp.org>
86004
86005         Portability to mingw32.
86006         * m4/ssize_t.m4: New file, from GNU gettext.
86007         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
86008         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
86009
86010 2003-06-22  Bruno Haible  <bruno@clisp.org>
86011
86012         * modules/safe-read: Add m4/ssize_t.m4.
86013         * modules/xreadlink: Add m4/ssize_t.m4.
86014
86015 2003-06-20  Bruno Haible  <bruno@clisp.org>
86016
86017         Assume C89, so PARAMS isn't needed.
86018         * lib/unicodeio.h (PARAMS): Remove.
86019         * lib/unicodeio.c: Don't use PARAMS.
86020
86021 2003-06-18  Karl Berry  <karl@gnu.org>
86022
86023         * config/config.{guess,sub}: update from prep.
86024
86025 2003-06-18  Jim Meyering  <jim@meyering.net>
86026
86027         Merge changes from coreutils.
86028         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86029         Remove explicit declarations of xmalloc and realloc.
86030         Include xalloc.h.
86031         (read_utmp): Remove anachronistic cast of xmalloc.
86032
86033 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86034
86035         Assume C89, so PARAMS isn't needed.
86036         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86037         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86038         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86039         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86040         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86041         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86042         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86043         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86044         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86045         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86046         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86047         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86048         no longer needed. Anyway, config.h should always be included before any
86049         other file.
86050
86051 2003-06-11  Simon Josefsson  <jas@extundo.com>
86052
86053         * modules/sysexits: New file.
86054         * MODULES.html.sh (func_all_modules): Add sysexits.
86055
86056 2003-06-11  Simon Josefsson  <jas@extundo.com>
86057
86058         * lib/sysexit_.h: New file.
86059
86060 2003-06-11  Derek Price  <derek@ximbiot.com>
86061
86062         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86063         necessary.
86064
86065 2003-06-11  Bruno Haible  <bruno@clisp.org>
86066
86067         * m4/sysexits.m4: New file.
86068
86069 2003-06-10  Simon Josefsson  <jas@extundo.com>
86070
86071         * lib/argp.h: New file, from glibc.
86072         * lib/argp-ba.c: New file, from glibc.
86073         * lib/argp-eexst.c: New file, from glibc.
86074         * lib/argp-fmtstream.c: New file, from glibc.
86075         * lib/argp-fmtstream.h: New file, from glibc.
86076         * lib/argp-fs-xinl.c: New file, from glibc.
86077         * lib/argp-help.c: New file, from glibc.
86078         * lib/argp-namefrob.h: New file, from glibc.
86079         * lib/argp-parse.c: New file, from glibc.
86080         * lib/argp-pv.c: New file, from glibc.
86081         * lib/argp-pvh.c: New file, from glibc.
86082         * lib/argp-xinl.c: New file, from glibc.
86083
86084 2003-06-10  Simon Josefsson  <jas@extundo.com>
86085
86086         * modules/strchrnul: New file.
86087
86088 2003-06-10  Simon Josefsson  <jas@extundo.com>
86089
86090         * modules/argp: New file.
86091
86092 2003-06-10  Simon Josefsson  <jas@extundo.com>
86093
86094         * m4/strchrnul.m4: New file.
86095
86096 2003-06-10  Simon Josefsson  <jas@extundo.com>
86097
86098         * lib/strchrnul.h: New file.
86099         * lib/strchrnul.c: New file.
86100
86101 2003-06-10  Bruno Haible  <bruno@clisp.org>
86102
86103         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86104
86105 2003-06-07  Karl Berry  <karl@gnu.org>
86106
86107         * config/config.{guess,sub}: update from prep.
86108
86109 2003-06-07  Jim Meyering  <jim@meyering.net>
86110
86111         * modules/strtod: Use $(...) notation, not @...@ for
86112         AC_REPLACE'd variables.
86113         * modules/localcharset: Likewise.
86114
86115 2003-06-07  Jim Meyering  <jim@meyering.net>
86116
86117         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86118         in place of my name in the copyright comment.
86119         Remove definition and uses of __P.
86120
86121         From coreutils.
86122         * lib/stat.c: Don't declare xmalloc explicitly.
86123         Instead, include "xalloc.h".
86124         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86125         xrealloc, and xcalloc return values.
86126         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86127         Improve comment.
86128         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86129
86130 2003-06-07  Bruno Haible  <bruno@clisp.org>
86131
86132         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86133         avoid AC_CONFIG_LINKS.
86134         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86135         fnmatch.h, to avoid AC_CONFIG_LINKS.
86136         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86137
86138 2003-06-07  Bruno Haible  <bruno@clisp.org>
86139
86140         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86141         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86142         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86143         directory.
86144         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86145         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86146         directory.
86147
86148 2003-06-06  Jim Meyering  <jim@meyering.net>
86149
86150         Merge from coreutils.
86151         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86152         Consolidate declarations and initializations of *_base* locals.
86153
86154         Merge from coreutils.
86155         This avoids a core dump on systems without GNU putenv,
86156         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86157         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86158         (unsetenv): New static function, from GNU libc.
86159         (rpl_putenv): Use it.
86160
86161         * lib/modechange.c: Remove trailing blanks.
86162
86163         Merge from coreutils.
86164         * lib/fsusage.c: Remove declaration of statfs.
86165         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86166
86167         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86168
86169 2003-06-06  Jim Meyering  <jim@meyering.net>
86170
86171         * lib/stdbool_.h: Renamed from stdbool.h.in.
86172
86173 2003-06-06  Jim Meyering  <jim@meyering.net>
86174             Bruno Haible  <bruno@clisp.org>
86175
86176         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86177         Adjust Makefile.am snippet not to redirect directly to target.
86178         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86179
86180 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86181
86182         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86183         mismatch, look in future quarters as well as past.  This fixes a
86184         bug when processing fall-backwards gaps immediately after a long
86185         period of daylight-saving time.
86186
86187         * lib/mktime.c: Assume freestanding C89 or better.
86188         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86189         (__P): Remove; not used.
86190         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86191         (mktime, not_equal_tm, print_tm, check_result,
86192         main): Use prototypes.  Use const * where appropriate.
86193         (main): Fix typo in testing code that uncovered by above changes.
86194         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86195
86196 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86197
86198         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86199         locale.h, localeconv.  This merges changes from coreutils.
86200
86201         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86202         It can be removed after the next Autoconf is released.
86203         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86204         needed.
86205
86206 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86207
86208         * lib/mktime.c: Fix Debian bug 177940
86209         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86210         (localtime_offset): Now long int, not time_t, because we want it
86211         to be guaranteed to be signed.  All uses changed.
86212         (__mktime_internal): If overflow would occur when adding offset,
86213         don't add it.
86214
86215         Merge 'human' changes from coreutils.  Rewrite to support
86216         locale-specific notations like thousands separators.
86217         * lib/human.c: Simplify authorship notice.
86218         Include human.h immediately after config.h.
86219         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86220         <limits.h>: Do not include, since human.h does.
86221         (SIZE_MAX, UINTMAX_MAX): New macros.
86222         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86223         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86224         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86225         (power_letter): Renamed from suffixes.
86226         (generate_suffix_backwards): Remove.
86227         (adjust_value): Now takes int style (because of human.h changes)
86228         and long double value (for greater precision on some platforms).
86229         (group_number): New function.
86230         (human_readable): Use it.  Use integer options, not enum.
86231         Put the options before the sizes in the arg list.
86232         Support all the new options.
86233         The old human_readable function has been removed;
86234         use inttostr.h instead.
86235         (human_readable, default_block_size, humblock):
86236         Use uintmax_t, not int, for block sizes.
86237         (human_readable_inexact, block_size_types): Remove.
86238         (block_size_opts): New constant.
86239         (human_options): Renamed from human_block_size, with new signature
86240         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86241         * lib/human.h: Add copyright and authorship notice.
86242         Include <limits.h> and <stdbool.h> unconditionally.
86243         (PARAMS): Remove.  All uses removed.
86244         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86245         (enum human_inexact_style): Remove tag; now a nameless enum.
86246         (human_floor, human_ceiling, human_round_to_even): Now have
86247         values 2, 0, 1 rather than -1, 1, 0.
86248         (human_group_digits, human_suppress_point_zero, human_autoscale,
86249         human_base_1024, human_SI, human_B): New constants.
86250         (human_readable_inexact, human_block_size): Remove.
86251         (human_readable): Size args are now uintmax_t, not int.
86252         (human_options): New decl.
86253
86254         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86255         unnecessary now that we assume C89 or better.  This change
86256         imported from coreutils.
86257
86258         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86259         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86260         in the 2003-05-30 sync from glibc.
86261
86262         .h files should stand alone, but we shouldn't include <sys/types.h>
86263         if we can get away with just <stddef.h>.
86264
86265         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86266         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86267         rather than <sys/types.h>, as we merely need size_t.
86268         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86269         to get size_t.
86270         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86271         Include <stdio.h>, to get FILE.
86272         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86273         memcasecmp.h has included <stddef.h> and all we need is size_t.
86274         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86275         our interface, instead of including <sys/types.h>
86276
86277 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86278
86279         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86280         now, as glibc mktime is buggy on non-glibc systems.
86281
86282 2003-06-03  Karl Berry  <karl@gnu.org>
86283
86284         * config/config.sub: update from prep.
86285
86286 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86287
86288         [from coreutils]
86289         Fix some minor time-related bugs with POSIX time arguments.
86290         Some valid time stamps were being rejected (notably -1, and
86291         time stamps before 1900 on 64-bit hosts).  And some invalid
86292         time stamps were being accepted, e.g. September 31.
86293
86294         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86295         that we can return (time_t) -1 successfully.
86296         * lib/posixtm.c: Likewise.
86297         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86298         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86299         (t): Remove static var.
86300         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86301         of static var.  All uses changed.
86302         (year): Do not reject years before 1900; they can occur with
86303         64-bit time_t.
86304         (posix_time_parse): Do not check for out-of-range components;
86305         that is now the caller's responsibility, since our checks were
86306         only approximations.
86307         (posixtime): Use mktime to check for out-of-range components,
86308         since it knows them exactly.
86309         If mktime returns (time_t) -1, check whether an error actually occurred
86310         by invoking localtime on -1.
86311         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86312         posixtime failures better.
86313         Improve the test data (in comments only).
86314
86315 2003-06-02  Karl Berry  <karl@gnu.org>
86316
86317         * config/mkinstalldirs (version): new variable.
86318         (--version): new option.
86319         (usage): improve message.
86320
86321 2003-05-30  Karl Berry  <karl@gnu.org>
86322
86323         * lib/mktime.c: update from libc.
86324
86325 2003-05-30  Bruno Haible  <bruno@clisp.org>
86326
86327         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86328         * config/config.rpath: Upgrade to gettext-0.12.1.
86329
86330 2003-05-30  Bruno Haible  <bruno@clisp.org>
86331
86332         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86333         * m4/nls.m4: New file, from gettext-0.12.1.
86334         * m4/po.m4: New file, from gettext-0.12.1.
86335         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86336
86337 2003-05-30  Bruno Haible  <bruno@clisp.org>
86338
86339         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86340         * lib/localcharset.h: Likewise.
86341         * lib/localcharset.c: Likewise.
86342
86343 2003-05-29  Karl Berry  <karl@gnu.org>
86344
86345         * config/config.rpath: update from gettext.
86346
86347 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86348
86349         Assume the headers required for C89 freestanding compilers.
86350         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86351         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86352         * m4/human.m4 (gl_HUMAN): Likewise.
86353         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86354         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86355         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86356         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86357         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86358         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86359
86360 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86361
86362         Assume the headers required for C89 freestanding compilers.
86363         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86364         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86365         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86366         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86367         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86368         define, since <limits.h> is guaranteed to do that.
86369         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86370         * lib/exclude.c: Include <stdbool.h> unconditionally.
86371         * lib/tempname.c: Include <stddef.h> unconditionally.
86372         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86373         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86374         <stddef.h> does that.
86375         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86376         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86377         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86378         needed.
86379         * lib/xstrtol.c: Likewise.
86380         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86381         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86382
86383         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86384         warnings on some platforms.
86385
86386         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86387         arbitrarily.
86388
86389 2003-05-26  Jim Meyering  <jim@meyering.net>
86390
86391         Merge in a change from coreutils:
86392         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86393         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86394         that condition, rather than `-1' which is slightly misleading.
86395         Change the name of the cache variable to have the gl_ prefix.
86396         Prompted by a patch from Richard Dawe for DJGPP.
86397
86398 2003-05-24  Karl Berry  <karl@gnu.org>
86399
86400         * config/config.guess: update from prep.
86401
86402 2003-05-22  Karl Berry  <karl@gnu.org>
86403
86404         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86405
86406 2003-05-20  Karl Berry  <karl@gnu.org>
86407
86408         * config/config.guess: update from prep.
86409
86410 2003-05-18  Karl Berry  <karl@gnu.org>
86411
86412         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86413         might actually be set by the user.
86414
86415         * config/depcomp, install-sh, mdate-sh: update from automake.
86416
86417 2003-05-17  Bruno Haible  <bruno@clisp.org>
86418
86419         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86420         invalid expansion for AC_EGREP_CPP.
86421         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86422         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86423         Suggested by Akim Demaille <akim@epita.fr> in
86424         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86425
86426 2003-05-12  Jim Meyering  <jim@meyering.net>
86427
86428         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86429         the space-padded-by-default conversion specifiers, %e, %k, %l.
86430
86431 2003-05-12  Bruno Haible  <bruno@clisp.org>
86432
86433         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86434         the string is longer than 4 KB.
86435
86436 2003-05-11  Karl Berry  <karl@gnu.org>
86437
86438         * config/config.{guess,sub}: update from prep.
86439
86440 2003-05-09  Bruno Haible  <bruno@clisp.org>
86441
86442         * modules/error: Add m4/strerror_r.m4 to file list.
86443
86444 2003-05-03  Bruno Haible  <bruno@clisp.org>
86445
86446         Upgrade to Unicode-4.0.
86447         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86448         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86449         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86450         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86451         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86452         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86453         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86454         Change width of U+E0100..U+E01EF from 1 to 0.
86455
86456 2003-04-25  Jim Meyering  <jim@meyering.net>
86457
86458         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86459         of type size_t, not int.
86460
86461 2003-04-25  Bruno Haible  <bruno@clisp.org>
86462
86463         * lib/copy-file.c: Include <stddef.h>, for size_t.
86464
86465 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86466
86467         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86468         code which expansion is under static control.  Patch imported from
86469         Akim Demaille's patch to Bison; see
86470         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86471
86472 2003-04-14  Bruno Haible  <bruno@clisp.org>
86473
86474         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86475
86476 2003-04-11  Jim Meyering  <jim@meyering.net>
86477
86478         Merge changes from Coreutils.
86479
86480         2003-03-22  Jim Meyering  <jim@meyering.net>
86481
86482         * lib/strftime.c (widen): Cast alloca return value to proper type.
86483
86484         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86485
86486         From GNU libc.
86487         * lib/strftime.c (my_strftime): Handle very large width
86488         specifications for numeric values correctly.  Improve checks for
86489         overflow.
86490
86491         2003-01-19  Jim Meyering  <jim@meyering.net>
86492
86493         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86494         definitions.
86495         (nl_get_alt_digit) [! defined my_strftime]: Define.
86496         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86497         _nl_get_alt_digit and _nl_get_walt_digit.
86498
86499         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86500         libc. These changes have no effect outside of _LIBC.
86501
86502 2003-04-10  Bruno Haible  <bruno@clisp.org>
86503
86504         * modules/findprog: New file.
86505         * MODULES.html.sh (func_all_modules): Add it.
86506
86507 2003-04-10  Bruno Haible  <bruno@clisp.org>
86508
86509         * m4/findprog.m4: New file.
86510         * m4/eaccess.m4: New file.
86511
86512 2003-04-10  Bruno Haible  <bruno@clisp.org>
86513
86514         * lib/findprog.h: New file, from GNU gettext.
86515         * lib/findprog.c: New file, from GNU gettext.
86516
86517 2003-04-05  Jim Meyering  <jim@meyering.net>
86518
86519         Merge changes from Coreutils.
86520
86521         * lib/exclude.h (PARAMS): Remove definition and uses.
86522         * lib/exclude.c: Remove uses of `PARAMS'.
86523
86524         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86525         Add test-cases for DOS filenames. Declare program_name.
86526         (main): Set up program_name.  Patch by Rich Dawe.
86527
86528         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86529         error from mntctl.
86530         Use mntctl's return value to drive the entry-processing loop, since
86531         we can't rely on the value of the vmt_length member in the last
86532         entry.  On some systems doing so could result in exhausting
86533         virtual memory.  Based in part on a patch from Mike Jetzer.
86534
86535 2003-04-04  Bruno Haible  <bruno@clisp.org>
86536
86537         * modules/linebreak: New file.
86538         * MODULES.html.sh (func_all_modules): Add it.
86539
86540 2003-04-04  Bruno Haible  <bruno@clisp.org>
86541
86542         * m4/linebreak.m4: New file.
86543
86544 2003-04-04  Bruno Haible  <bruno@clisp.org>
86545
86546         * lib/linebreak.h: New file, from GNU gettext.
86547         * lib/linebreak.c: New file, from GNU gettext with slight
86548         modifications.
86549         * lib/lbrkprop.h: New file, from GNU gettext.
86550
86551 2003-04-03  Bruno Haible  <bruno@clisp.org>
86552
86553         * modules/utf8-ucs4: New file.
86554         * modules/utf16-ucs4: New file.
86555         * modules/ucs4-utf8: New file.
86556         * modules/ucs4-utf16: New file.
86557         * MODULES.html.sh (func_all_modules): Add them.
86558
86559 2003-04-03  Bruno Haible  <bruno@clisp.org>
86560
86561         * m4/utf-ucs4.m4: New file.
86562         * m4/ucs4-utf.m4: New file.
86563
86564 2003-04-03  Bruno Haible  <bruno@clisp.org>
86565
86566         * lib/utf8-ucs4.h: New file, from GNU gettext.
86567         * lib/utf16-ucs4.h: New file, from GNU gettext.
86568         * lib/ucs4-utf8.h: New file, from GNU gettext.
86569         * lib/ucs4-utf16.h: New file, from GNU gettext.
86570
86571 2003-04-02  Bruno Haible  <bruno@clisp.org>
86572
86573         * modules/binary-io: New file.
86574         * MODULES.html.sh (func_all_modules): Add it.
86575
86576 2003-04-02  Bruno Haible  <bruno@clisp.org>
86577
86578         * lib/binary-io.h: New file, from GNU gettext.
86579
86580 2003-04-01  Bruno Haible  <bruno@clisp.org>
86581
86582         * modules/pathname: New file.
86583         * MODULES.html.sh (func_all_modules): Add it.
86584
86585 2003-04-01  Bruno Haible  <bruno@clisp.org>
86586
86587         * lib/pathname.h: New file, from GNU gettext.
86588         * lib/concatpath.c: New file, from GNU gettext.
86589
86590 2003-03-30  Bruno Haible  <bruno@clisp.org>
86591
86592         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86593
86594 2003-03-30  Bruno Haible  <bruno@clisp.org>
86595
86596         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86597         function chown() doesn't exist.
86598
86599 2003-03-28  Bruno Haible  <bruno@clisp.org>
86600
86601         * modules/copy-file: New file.
86602         * MODULES.html.sh (func_all_modules): Add it.
86603
86604 2003-03-28  Bruno Haible  <bruno@clisp.org>
86605
86606         * m4/copy-file.m4: New file.
86607
86608 2003-03-28  Bruno Haible  <bruno@clisp.org>
86609
86610         * lib/copy-file.h: New file, from GNU gettext.
86611         * lib/copy-file.c: New file, from GNU gettext.
86612
86613 2003-03-18  Jim Meyering  <jim@meyering.net>
86614
86615         * lib/quote.c (quote_n): Fix typo in comment.
86616
86617 2003-03-18  Bruno Haible  <bruno@clisp.org>
86618
86619         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86620         checking.
86621         * m4/onceonly_2_57.m4: Likewise.
86622
86623 2003-03-17  Bruno Haible  <bruno@clisp.org>
86624
86625         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86626         (m4_quote): Remove macro.
86627         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86628
86629 2003-03-14  Jim Meyering  <jim@meyering.net>
86630
86631         Merge changes from Coreutils.
86632         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86633         to be const, in order to avoid warnings.
86634         (obstack_room): Likewise.
86635         (obstack_empty_p): Likewise.
86636
86637 2003-03-14  Bruno Haible  <bruno@clisp.org>
86638
86639         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86640         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86641
86642 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86643
86644         Merge changes from Bison.
86645         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86646         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86647         when compiling Bison 1.875's `bitset bset = obstack_alloc
86648         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86649         * lib/hash.c: Include <stdbool.h> unconditionally.
86650
86651 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86652
86653         * m4/onceonly.m4 (m4_quote): New macro.
86654         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86655         Quote AC_FOREACH variable-expansions properly.
86656
86657 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86658
86659         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86660
86661 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86662
86663         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86664         Reported by Bruce Becker; see:
86665         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86666
86667 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86668             Bruno Haible  <bruno@clisp.org>
86669
86670         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86671         Reported by John Hughes, see
86672         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86673
86674 2003-02-20  Bruno Haible  <bruno@clisp.org>
86675
86676         * MODULES.html.sh (func_all_modules): Add poll.
86677
86678 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86679
86680         * modules/poll: New file.
86681
86682 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86683
86684         * lib/poll_.h: New file.
86685         * lib/poll.c: New file.
86686
86687 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86688
86689         * m4/poll.m4: New file.
86690
86691 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86692
86693         * modules/mathl: New file.
86694
86695 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86696
86697         * lib/mathl.h: New file.
86698         * lib/acosl.c: New file.
86699         * lib/asinl.c: New file.
86700         * lib/atanl.c: New file.
86701         * lib/ceill.c: New file.
86702         * lib/cosl.c: New file.
86703         * lib/expl.c: New file.
86704         * lib/floorl.c: New file.
86705         * lib/frexpl.c: New file.
86706         * lib/ldexpl.c: New file.
86707         * lib/logl.c: New file.
86708         * lib/sincosl.c: New file.
86709         * lib/sinl.c: New file.
86710         * lib/sqrtl.c: New file.
86711         * lib/tanl.c: New file.
86712         * lib/trigl.c: New file.
86713         * lib/trigl.h: New file.
86714
86715 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86716
86717         * m4/mathl.m4: New file.
86718
86719 2003-02-18  Bruno Haible  <bruno@clisp.org>
86720
86721         * MODULES.html.sh (func_all_modules): Add mathl.
86722
86723 2003-02-17  Bruno Haible  <bruno@clisp.org>
86724
86725         * modules/mkdtemp: New module.
86726         * MODULES.html.sh (func_all_modules): Add it.
86727
86728 2003-02-17  Bruno Haible  <bruno@clisp.org>
86729
86730         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86731
86732 2003-02-17  Bruno Haible  <bruno@clisp.org>
86733
86734         * lib/mkdtemp.h: New file, from GNU gettext.
86735         * lib/mkdtemp.c: New file, from GNU gettext.
86736
86737 2003-02-02  Jim Meyering  <jim@meyering.net>
86738
86739         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86740         e.g. glibc-2.2.93.
86741
86742 2003-01-31  Bruno Haible  <bruno@clisp.org>
86743
86744         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86745         'rpl_rename'.
86746         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86747         'rpl_strnlen'.
86748         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86749         'rpl_strtod'.
86750         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86751         'rpl_utime'.
86752
86753 2003-01-31  Bruno Haible  <bruno@clisp.org>
86754
86755         * lib/rename.c: #undef rename before defining rpl_rename.
86756         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86757
86758 2003-01-30  Bruno Haible  <bruno@clisp.org>
86759
86760         * modules/vasnprintf, modules/vasprintf: New modules.
86761         * MODULES.html.sh (func_all_modules): Add them.
86762
86763 2003-01-30  Bruno Haible  <bruno@clisp.org>
86764
86765         * m4/signed.m4: New file, from GNU gettext.
86766         * m4/longdouble.m4: New file, from GNU gettext.
86767         * m4/wchar_t.m4: New file, from GNU gettext.
86768         * m4/wint_t.m4: New file, from GNU gettext.
86769         * m4/vasnprintf.m4: New file.
86770         * m4/vasprintf.m4: New file.
86771
86772 2003-01-30  Bruno Haible  <bruno@clisp.org>
86773
86774         * lib/printf-args.h: New file, from GNU gettext.
86775         * lib/printf-args.c: New file, from GNU gettext.
86776         * lib/printf-parse.h: New file, from GNU gettext.
86777         * lib/printf-parse.c: New file, from GNU gettext.
86778         * lib/vasnprintf.h: New file, from GNU gettext.
86779         * lib/vasnprintf.c: New file, from GNU gettext.
86780         * lib/asnprintf.c: New file, from GNU gettext.
86781         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86782         * lib/vasprintf.c: New file, from GNU gettext.
86783         * lib/asprintf.c: New file, from GNU gettext.
86784
86785 2003-01-29  Bruno Haible  <bruno@clisp.org>
86786
86787         * modules/stpncpy: New module.
86788         * MODULES.html.sh (func_all_modules): Add it.
86789
86790 2003-01-29  Bruno Haible  <bruno@clisp.org>
86791
86792         * m4/stpncpy.m4: New file.
86793
86794 2003-01-29  Bruno Haible  <bruno@clisp.org>
86795
86796         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86797         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86798
86799 2003-01-28  Bruno Haible  <bruno@clisp.org>
86800
86801         * modules/c-ctype: New module.
86802         * MODULES.html.sh (func_all_modules): Add it.
86803
86804 2003-01-28  Bruno Haible  <bruno@clisp.org>
86805
86806         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86807         Paul Eggert.
86808         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86809         Paul Eggert.
86810
86811 2003-01-27  Bruno Haible  <bruno@clisp.org>
86812
86813         * modules/xsetenv: New module.
86814         * MODULES.html.sh (func_all_modules): Add it.
86815
86816 2003-01-27  Bruno Haible  <bruno@clisp.org>
86817
86818         * lib/xsetenv.h: New file, from GNU gettext.
86819         * lib/xsetenv.c: New file, from GNU gettext.
86820
86821 2003-01-23  Jim Meyering  <jim@meyering.net>
86822
86823         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86824         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86825
86826 2003-01-23  Bruno Haible  <bruno@clisp.org>
86827
86828         * modules/minmax: New module.
86829         * MODULES.html.sh (func_all_modules): Add it.
86830
86831 2003-01-23  Bruno Haible  <bruno@clisp.org>
86832
86833         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86834         Eggert.
86835
86836 2003-01-22  Bruno Haible  <bruno@clisp.org>
86837
86838         * modules/exit: New module.
86839         * MODULES.html.sh (func_all_modules): Add it.
86840
86841 2003-01-22  Bruno Haible  <bruno@clisp.org>
86842
86843         * lib/exit.h: New file, from GNU gettext.
86844
86845 2003-01-19  Bruno Haible  <bruno@clisp.org>
86846
86847         * gnulib-tool: Recognize option --extract-maintainer.
86848         (func_get_maintainer): New function.
86849         * modules/*: Add Maintainer entry.
86850
86851 2003-01-16  Jim Meyering  <jim@meyering.net>
86852
86853         * m4/regex.m4: The `regex' struct is both input and output.
86854         Initialize it before each use.  Patch by Tim Waugh.
86855
86856 2003-01-16  Bruno Haible  <bruno@clisp.org>
86857
86858         * MODULES.html.sh: Add a table of contents. Add the module name as
86859         leftmost column. Add hyperlinks.
86860
86861 2003-01-15  Bruno Haible  <bruno@clisp.org>
86862
86863         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86864
86865 2003-01-15  Bruno Haible  <bruno@clisp.org>
86866
86867         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86868         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86869         suffix.
86870
86871 2003-01-15  Bruno Haible  <bruno@clisp.org>
86872
86873         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86874
86875 2003-01-15  Bruno Haible  <bruno@clisp.org>
86876
86877         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86878         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86879
86880 2003-01-14  Jim Meyering  <jim@meyering.net>
86881
86882         * lib/same.c (same_name): Tweak a comment.
86883
86884 2003-01-14  Bruno Haible  <bruno@clisp.org>
86885
86886         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86887         when a string comparison is sufficient.
86888
86889 2003-01-14  Bruno Haible  <bruno@clisp.org>
86890
86891         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86892         'unsigned int'.
86893
86894 2003-01-14  Bruno Haible  <bruno@clisp.org>
86895
86896         * lib/hash-pjw.c: Add comment about low quality of this function.
86897
86898 2003-01-13  Bruno Haible  <bruno@clisp.org>
86899
86900         * modules/stpcpy: Distribute lib/stpcpy.h.
86901         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86902
86903 2003-01-13  Bruno Haible  <bruno@clisp.org>
86904
86905         * modules/*: Add a description.
86906         * modules/strpbrk: Fix Makefile.am snippet.
86907         * modules/strtoimax: Fix dependencies.
86908         * modules/strtoumax: Likewise.
86909
86910 2003-01-13  Bruno Haible  <bruno@clisp.org>
86911
86912         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86913         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86914         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86915
86916 2003-01-13  Bruno Haible  <bruno@clisp.org>
86917
86918         * gnulib-tool (func_create_testdir): Store config/* files in the main
86919         directory.
86920         * config.rpath: Move to ...
86921         * config/config.rpath: ... here.
86922         * modules/gettext: Contains config/config.rpath, not config.rpath.
86923         * modules/iconv: Likewise.
86924
86925 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86926
86927         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86928         to avoid collisions with libcurses and libreadline.
86929
86930         * m4/getstr.m4: Remove.
86931         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86932
86933 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86934
86935         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86936         to avoid collisions with libcurses and libreadline.
86937
86938         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86939         * lib/getstr.h, getstr.c: Remove.
86940         * lib/getline.c: Include "getline.h", to check interface.
86941         Move body of old getstr.c here: this defines MIN_CHUNK and
86942         declares getdelim2, which is renamed from getstr.
86943         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86944
86945         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86946         All uses changed.
86947         * lib/linebuffer.h: Likewise.
86948         (readline): Remove backward-compatibility macro.
86949
86950 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86951
86952         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86953         to avoid collisions with libcurses and libreadline.
86954         * getstr: Remove.
86955         * MODULES.html.sh: Remove getstr.
86956         * modules/getline: Depend on unlocked-io, not getstr.
86957
86958 2003-01-12  Jim Meyering  <jim@meyering.net>
86959
86960         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86961
86962 2003-01-10  Bruno Haible  <bruno@clisp.org>
86963
86964         * modules/alloca: Change Makefile.am requirements. Simplify Include
86965         requirements. Add lib/alloca_.h to file list.
86966
86967 2003-01-10  Bruno Haible  <bruno@clisp.org>
86968
86969         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86970
86971 2003-01-10  Bruno Haible  <bruno@clisp.org>
86972
86973         * lib/alloca_.h: New file.
86974         * lib/getdate.y: Unconditionally include alloca.h.
86975         * lib/makepath.c: Likewise.
86976         * lib/setenv.c: Likewise.
86977         * lib/userspec.c: Likewise.
86978
86979 2003-01-09  Karl Berry  <karl@gnu.org>
86980
86981         * MODULES.html.sh: include `dirname $0` in PATH, to find
86982         gnulib-tool.
86983
86984 2003-01-09  Bruno Haible  <bruno@clisp.org>
86985
86986         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86987         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86988
86989 2003-01-09  Bruno Haible  <bruno@clisp.org>
86990
86991         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86992
86993 2003-01-09  Bruno Haible  <bruno@clisp.org>
86994
86995         * lib/stdbool.h.in: New file.
86996
86997 2003-01-09  Bruno Haible  <bruno@clisp.org>
86998
86999         * gnulib-tool (func_all_modules): Ignore files ending in ~.
87000         * MODULES.html.sh: Likewise.
87001
87002 2003-01-08  Jim Meyering  <jim@meyering.net>
87003
87004         * lib/full-write.c: Undefine and define-away `const' after inclusion
87005         of errno.h, not before.  Suggestion from Bruno Haible.
87006
87007 2003-01-08  Bruno Haible  <bruno@clisp.org>
87008
87009         * modules/full-read: Depend on full-write.
87010
87011 2003-01-08  Bruno Haible  <bruno@clisp.org>
87012
87013         * lib/safe-read.c: Include specification header first, to ensure its
87014         selfcontainedness.
87015         * lib/full-write.c: Likewise.
87016
87017 2003-01-07  Jim Meyering  <jim@meyering.net>
87018
87019         * lib/full-write.c: Rework so that it may serve to define full_read,
87020         too.
87021         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87022
87023 2003-01-07  Bruno Haible  <bruno@clisp.org>
87024
87025         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87026         <inttypes.h>.
87027         * lib/xstrtol.h: Likewise.
87028         * lib/xstrtoimax.c: Likewise.
87029         * lib/xstrtoumax.c: Likewise.
87030         * lib/human.h: Likewise.
87031
87032         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87033         on systems that have <inttypes.h> but not <stdint.h>.
87034
87035 2003-01-07  Bruno Haible  <bruno@clisp.org>
87036
87037         * MODULES.html.sh: Add copyright notice.
87038         (missed_files): Omit CVS directory entries.
87039         (func_module): Make it work with sed-3.02.
87040         * MODULES.txt: Remove file.
87041
87042 2003-01-06  Jim Meyering  <jim@meyering.net>
87043
87044         * lib/version-etc.c: Update year in translatable copyright string.
87045
87046 2003-01-03  Karl Berry  <karl@gnu.org>
87047
87048         * config/config.{guess,sub}: update from prep.
87049
87050 2003-01-02  Karl Berry  <karl@gnu.org>
87051
87052         * doc/COPYING.DOC: belatedly updated to 1.2.
87053
87054 2003-01-01  Karl Berry  <karl@gnu.org>
87055
87056         * gnulib-tool (func_verify_module): report module name $module in
87057         error message, not $1.
87058         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87059         be created, only if it doesn't exist.
87060         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87061
87062 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87063
87064         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87065
87066 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87067
87068         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87069         memcmp if strcoll doesn't work.
87070
87071 2002-12-31  Bruno Haible  <bruno@clisp.org>
87072
87073         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87074         nonempty.
87075
87076 2002-12-31  Bruno Haible  <bruno@clisp.org>
87077
87078         * lib/memcoll.c (STRCOLL): New macro.
87079         (memcoll): Use it.
87080
87081 2002-12-31  Bruno Haible  <bruno@clisp.org>
87082
87083         * lib/localcharset.h: New file.
87084         * lib/localcharset.c: Include it.
87085         * lib/unicodeio.c: Likewise.
87086
87087 2002-12-31  Bruno Haible  <bruno@clisp.org>
87088
87089         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87090         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87091
87092 2002-12-31  Bruno Haible  <bruno@clisp.org>
87093
87094         * lib/getline.h: Include <stddef.h>, for size_t.
87095
87096         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87097         * lib/unicodeio.c: Don't include <stddef.h>.
87098
87099 2002-12-31  Bruno Haible  <bruno@clisp.org>
87100
87101         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87102         HAVE_TM_ZONE.
87103
87104 2002-12-24  Karl Berry  <karl@gnu.org>
87105
87106         * config/config.guess: update from prep.
87107
87108 2002-12-24  Bruno Haible  <bruno@clisp.org>
87109
87110         General infrasructure.
87111         * m4/README: Rewritten.
87112         * m4/onceonly.m4: New file.
87113         * m4/onceonly_2_57.m4: New file.
87114
87115         Module atexit.
87116         * m4/atexit.m4: New file.
87117
87118         Module strtod.
87119         * m4/strtod.m4: New file.
87120
87121         Module strtol.
87122         * m4/strtol.m4: New file.
87123
87124         Module strtoul.
87125         * m4/strtoul.m4: New file.
87126
87127         Module memchr.
87128         * m4/memchr.m4: New file.
87129
87130         Module memcmp.
87131         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87132         (jm_FUNC_MEMCMP): Invoke it.
87133
87134         Module memcpy.
87135         * m4/memcpy.m4: New file.
87136
87137         Module memmove.
87138         * m4/memmove.m4: New file.
87139
87140         Module memset.
87141         * m4/memset.m4: New file.
87142
87143         Module strcspn.
87144         * m4/strcspn.m4: New file.
87145
87146         Module strpbrk.
87147         * m4/strpbrk.m4: New file.
87148
87149         Module strstr.
87150         * m4/strstr.m4: New file.
87151
87152         Module strerror.
87153         * m4/strerror.m4: New file.
87154
87155         Module mktime.
87156         * m4/mktime.m4: Renamed from jm-mktime.m4.
87157         (gl_PREREQ_MKTIME): New macro.
87158         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87159
87160         Module malloc.
87161         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87162         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87163         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87164
87165         Module realloc.
87166         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87167         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87168         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87169
87170         Module strftime.
87171         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87172         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87173         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87174         gl_TM_GMTOFF.
87175         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87176
87177         Module xalloc.
87178         * m4/xalloc.m4: New file.
87179
87180         Module alloca.
87181         * m4/alloca.m4: New file.
87182
87183         Module putenv.
87184         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87185         (jm_FUNC_PUTENV): Invoke it.
87186
87187         Module setenv.
87188         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87189         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87190         when invoked twice.
87191         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87192         gt_FUNC_SETENV.
87193
87194         Module memrchr.
87195         * m4/memrchr.m4: New file.
87196
87197         Module stpcpy.
87198         * m4/stpcpy.m4: New file.
87199
87200         Module strcase.
87201         * m4/strcase.m4: New file.
87202
87203         Module strdup.
87204         * m4/strdup.m4: New file.
87205
87206         Module strnlen.
87207         * m4/strnlen.m4: New file.
87208
87209         Module strndup.
87210         * m4/strndup.m4: New file.
87211
87212         Module xstrtod.
87213         * m4/xstrtod.m4: New file.
87214
87215         Module xstrtol.
87216         * m4/xstrtol.m4: New file.
87217
87218         Module getdate.
87219         * m4/getdate.m4: New file.
87220
87221         Module unlocked-io.
87222         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87223         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87224         * m4/jm-glibc-io.m4n: Remove file.
87225
87226         Module long-options.
87227         * m4/long-options.m4: New file.
87228
87229         Module md5.
87230         * m4/md5.m4: New file.
87231
87232         Module sha.
87233         * m4/sha.m4: New file.
87234
87235         Module getstr.
87236         * m4/getstr.m4: New file.
87237
87238         Module getline.
87239         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87240         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87241         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87242         simply getline. Infoke gl_PREREQ_GETLINE.
87243
87244         Module obstack.
87245         * m4/obstack.m4: New file.
87246
87247         Module hash.
87248         * m4/hash.m4: New file.
87249
87250         Module readtokens.
87251         * m4/readtokens.m4: New file.
87252
87253         Module strverscmp.
87254         * m4/strverscmp.m4: New file.
87255
87256         Module stdbool.
87257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87258         OSF/1.
87259
87260         Module strtoll.
87261         * m4/strtoll.m4: New file.
87262
87263         Module strtoull.
87264         * m4/strtoull.m4: New file.
87265
87266         Module strtoimax.
87267         * m4/strtoimax.m4: New file.
87268
87269         Module strtoumax.
87270         * m4/strtoumax.m4: New file.
87271
87272         Module xstrtoimax.
87273         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87274         jm_AC_PREREQ_XSTRTOIMAX.
87275         Moved the strtol prerequisites to strtol.m4.
87276         Moved the strtoll prerequisites to strtoll.m4.
87277         Moved the strtoimax prerequisites to strtoimax.m4.
87278
87279         Module xstrtoumax.
87280         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87281         jm_AC_PREREQ_XSTRTOUMAX.
87282         Moved the strtoul prerequisites to strtoul.m4.
87283         Moved the strtoull prerequisites to strtoull.m4.
87284         Moved the strtoumax prerequisites to strtoumax.m4.
87285
87286         Module chown.
87287         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87288         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87289
87290         Module dup2.
87291         * m4/dup2.m4: New file.
87292
87293         Module ftruncate.
87294         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87295         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87296
87297         Module getgroups.
87298         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87299         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87300
87301         Module gettimeofday.
87302         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87303         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87304         gl_PREREQ_GETTIMEOFDAY.
87305
87306         Module mkdir.
87307         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87308         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87309
87310         Module mkstemp.
87311         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87312         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87313         jm_AC_TYPE_UINTMAX_T.
87314         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87315
87316         Module stat.
87317         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87318         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87319
87320         Module lstat.
87321         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87322         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87323
87324         Module timespec.
87325         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87326         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87327         * m4/st_mtim.m4: Indentation.
87328
87329         Module nanosleep.
87330         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87331         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87332         gl_PREREQ_NANOSLEEP.
87333
87334         Module regex.
87335         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87336         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87337         (gl_REGEX): New macro.
87338
87339         Module rename.
87340         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87341         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87342
87343         Module rmdir.
87344         * m4/rmdir.m4: New file.
87345
87346         Module utime.
87347         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87348         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87349         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87350
87351         Module dirname.
87352         * m4/dirname.m4: New file.
87353
87354         Module getopt.
87355         * m4/getopt.m4: New file.
87356
87357         Module unistd-safer.
87358         * m4/unistd-safer.m4: New file.
87359
87360         Module fnmatch.
87361         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87362         declaration.
87363         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87364         (gl_FUNC_FNMATCH_POSIX): New macro.
87365         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87366         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87367         simply fnmatch.
87368
87369         Module exclude.
87370         * m4/exclude.m4: New file.
87371
87372         Module human.
87373         * m4/human.m4: New file.
87374
87375         Module acl.
87376         * m4/acl.m4: Nop.
87377
87378         Module backupfile.
87379         * m4/backupfile.m4: New file.
87380         * m4/d-ino.m4: Indentation.
87381
87382         Module fsusage.
87383         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87384         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87385         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87386
87387         Module dirfd.
87388         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87389         requirements.
87390
87391         Module euidaccess.
87392         * m4/euidaccess.m4: New file.
87393
87394         Module file-type.
87395         * m4/file-type.m4: New file.
87396
87397         Module fileblocks.
87398         * m4/fileblocks.m4: New file.
87399
87400         Module filemode.
87401         * m4/filemode.m4: New file.
87402
87403         Module isdir.
87404         * m4/isdir.m4: New file.
87405
87406         Module lchown.
87407         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87408         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87409
87410         Module makepath.
87411         * m4/makepath.m4: New file.
87412
87413         Module modechange.
87414         * m4/modechange.m4: New file.
87415
87416         Module mountlist.
87417         * m4/mountlist.m4: New file.
87418         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87419         Indentation.
87420
87421         Module path-concat.
87422         * m4/path-concat.m4: New file.
87423
87424         Module pathmax.
87425         * m4/pathmax.m4: New file.
87426
87427         Module same.
87428         * m4/same.m4: New file.
87429
87430         Module save-cwd.
87431         * m4/save-cwd.m4: New file.
87432
87433         Module savedir.
87434         * m4/savedir.m4: New file.
87435
87436         Module xgetcwd.
87437         * m4/xgetcwd.m4: New file.
87438         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87439
87440         Module xreadlink.
87441         * m4/xreadlink.m4: New file.
87442
87443         Module safe-read.
87444         * m4/safe-read.m4: New file.
87445
87446         Module safe-write.
87447         * m4/safe-write.m4: New file.
87448
87449         Module closeout.
87450         * m4/closeout.m4: New file.
87451
87452         Module stdio-safer.
87453         * m4/stdio-safer.m4: New file.
87454
87455         Module getpass.
87456         * m4/getpass.m4: New file.
87457
87458         Module getugroups.
87459         * m4/getugroups.m4: New file.
87460
87461         Module group-member.
87462         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87463         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87464
87465         Module idcache.
87466         * m4/idcache.m4: New file.
87467
87468         Module userspec.
87469         * m4/userspec.m4: New file.
87470
87471         Module gettime.
87472         * m4/clock_time.m4: New file.
87473         * m4/gettime.m4: New file.
87474
87475         Module settime.
87476         * m4/settime.m4: New file.
87477
87478         Module posixtm.
87479         * m4/posixtm.m4: New file.
87480
87481         Module gethostname.
87482         * m4/gethostname.m4: New file.
87483
87484         Module canon-host.
87485         * m4/canon-host.m4: New file.
87486
87487         Module gettext.
87488         * m4/codeset.m4: New file, from gettext-0.11.5.
87489         * m4/gettext.m4: New file, from gettext-0.11.5.
87490         * m4/glibc21.m4: New file, from gettext-0.11.5.
87491         * m4/iconv.m4: New file, from gettext-0.11.5.
87492         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87493         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87494         * m4/inttypes.m4: New file, from gettext-0.11.5.
87495         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87496         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87497         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87498         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87499         * m4/lib-link.m4: New file, from gettext-0.11.5.
87500         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87501         * m4/progtest.m4: New file, from gettext-0.11.5.
87502         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87503         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87504         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87505
87506         Module localcharset.
87507         * m4/localcharset.m4: New file.
87508
87509         Module hard-locale.
87510         * m4/hard-locale.m4: New file.
87511
87512         Module mbswidth.
87513         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87514         onceonly macros.
87515         * m4/mbrtowc.m4: Add comment.
87516
87517         Module memcasecmp.
87518         * m4/memcasecmp.m4: New file.
87519
87520         Module memcoll.
87521         * m4/memcoll.m4: New file.
87522
87523         Module unicodeio.
87524         * m4/unicodeio.m4: New file.
87525
87526         Module rpmatch.
87527         * m4/rpmatch.m4: New file.
87528
87529         Module yesno.
87530         * m4/yesno.m4: New file.
87531
87532         Module exitfail.
87533         * m4/exitfail.m4: New file.
87534
87535         Module c-stack.
87536         * m4/c-stack.m4 (gl_C_STACK): New macro.
87537         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87538
87539         Module error.
87540         * m4/error.m4 (gl_ERROR): New macro.
87541         (jm_PREREQ_ERROR): Use onceonly macros.
87542
87543         Module fatal.
87544         * m4/fatal.m4: New file.
87545
87546         Module getloadavg.
87547         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87548         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87549
87550         Module getpagesize.
87551         * m4/getpagesize.m4: New file.
87552
87553         Module getusershell.
87554         * m4/getusershell.m4: New file.
87555
87556         Module physmem.
87557         * m4/physmem.m4: New file.
87558
87559         Module posixver.
87560         * m4/posixver.m4: New file.
87561
87562         Module quotearg.
87563         * m4/quotearg.m4: New file.
87564
87565         Module quote.
87566         * m4/quote.m4: New file.
87567
87568         Module readutmp.
87569         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87570
87571         Module sig2str.
87572         * m4/sig2str.m4: New file.
87573
87574         Other.
87575         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87576         ulonglong.m4.
87577         * m4/intmax_t.m4: New file.
87578         * m4/d-type.m4: Indentation.
87579         * m4/jm-macros.m4: Update.
87580         * m4/prereq.m4 (jm_PREREQ): Update.
87581         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87582         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87583         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87584         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87585         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87586         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87587         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87588         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87589         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87590         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87591         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87592         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87593         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87594         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87595         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87596         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87597         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87598         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87599         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87600
87601 2002-12-24  Bruno Haible  <bruno@clisp.org>
87602
87603         * MODULES.txt: Update according to m4/ changes.
87604
87605         Module gettext.
87606         * config.rpath: New file, from gettext-0.11.5.
87607
87608         * modules/*: New module descriptions.
87609         * gnulib-tool: New file.
87610         * MODULES.html.sh: New file.
87611
87612 2002-12-21  Karl Berry  <karl@gnu.org>
87613
87614         * doc/fdl.texi: update to version 1.2.
87615
87616 2002-12-19  Karl Berry  <karl@gnu.org>
87617
87618         * config/config.guess: update from prep.
87619
87620 2002-12-18  Bruno Haible  <bruno@clisp.org>
87621
87622         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87623         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87624
87625 2002-12-17  Bruno Haible  <bruno@clisp.org>
87626
87627         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87628         stdlib.h, string.h.
87629
87630 2002-12-17  Bruno Haible  <bruno@clisp.org>
87631
87632         * lib/canon-host.c (strdup): Remove unused declaration.
87633
87634         * lib/fsusage.c: Include full_read.h.
87635         (get_fs_usage): Use full_read instead of safe_read.
87636
87637         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87638
87639 2002-12-12  Karl Berry  <karl@gnu.org>
87640
87641         * config/config.guess: update from prep.
87642
87643 2002-12-11  Bruno Haible  <bruno@clisp.org>
87644
87645         * m4/setenv.m4: New file, from gettext-0.11.5.
87646
87647 2002-12-11  Bruno Haible  <bruno@clisp.org>
87648
87649         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87650         not unsetenv().
87651         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87652         modifications:
87653
87654         2002-12-11  Bruno Haible  <bruno@clisp.org>
87655
87656                 * setenv.c (alloca): Fall back to malloc.
87657                 (freea): New macro.
87658                 (setenv): Use freea() to free memory allocated with alloca().
87659
87660         2002-11-13  Bruno Haible  <bruno@clisp.org>
87661
87662                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87663                 function declarations.
87664                 * unsetenv.c (unsetenv): Likewise.
87665
87666         2002-03-04  Bruno Haible  <bruno@clisp.org>
87667
87668                 Portability to AIX 4.3.3.
87669                 * unsetenv.c: New file, extracted from setenv.c.
87670                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87671
87672         2001-12-20  Bruno Haible  <bruno@clisp.org>
87673
87674                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87675                 use malloc instead. For SunOS 4.
87676
87677         2001-12-11  Bruno Haible  <bruno@clisp.org>
87678
87679                 * setenv.c: Declare alloca.
87680                 (compar_fn_t): New typedef.
87681                 (KNOWN_VALUE, STORE_VALUE): Use it.
87682
87683         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87684         setenv.h.
87685
87686 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87687
87688         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87689         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87690         Choose values that are less likely to collide with system fnmatch
87691         options.
87692         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87693         defined (e.g., a pure POSIX system).
87694         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87695         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87696
87697 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87698
87699         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87700         a pain in practice to deal with generated m4 files.  This change
87701         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87702
87703         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87704         and jm-glibc-io.m4, as they are no longer a special case.
87705         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87706         kludge and the auto-generation stuff.  Check only whether the
87707         functions are declared, not whether they exist, since older hosts
87708         that don't declare the functions can't use the optimization anyway.
87709
87710 2002-12-06  Jim Meyering  <jim@meyering.net>
87711
87712         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87713
87714         Merge in changes from libc's misc/error.c, in preparation
87715         for the merge of gnulib's changes back into libc.
87716
87717         * lib/error.c (_): Define only if not already defined.
87718         Move definition to follow all #include directives.
87719         Include unlocked-io.h only if !_LIBC.
87720         [_LIBC]: Include <libio/libioP.h>.
87721         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87722         (fflush): Tweak definition to use INTUSE.
87723         (putc): Define.
87724
87725 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87726
87727         * lib/alloca.c [defined emacs]: Include "lisp.h".
87728         (xalloc_die) [defined emacs]: New macro.
87729         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87730         [! defined emacs]: Include <xalloc.h>.
87731         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87732         (pointer): Typedef to POINTER_TYPE *.
87733         (malloc): Remove decl; we now always use xmalloc.
87734         (alloca): Use old-style definition, since Emacs needs this.
87735         Check for arithmetic overflow when computing combined size.
87736
87737 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87738
87739         Do not generate unlocked-io.h automatically, since it's easier to
87740         maintain it by hand.
87741
87742         * lib/unlocked-io.h: New file, from GNU diffutils,
87743         but with proper copyright notice and attribution.
87744         * lib/gen-uio: Remove.
87745         * lib/Makefile.am: Add copyright notice.
87746         (libfetish_a_SOURCES): Add unlocked-io.h.
87747         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87748         (DISTCLEANFILES, io_functions): Remove macros.
87749         (EXTRA_DIST): Remove gen_uio.
87750         (unlocked-io.h): Remove rule.
87751
87752 2002-12-04  Jim Meyering  <jim@meyering.net>
87753
87754         Reflect the fact that stat.c and lstat.c are no longer generated.
87755         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87756         (DISTCLEANFILES): Likewise.
87757         (EXTRA_DIST): Likewise.
87758         (all_local): Don't depend on stat.c or lstat.c.
87759         (stat.c, lstat.c): Remove rules.
87760         (EXTRA_DIST): Remove xstat.in.
87761
87762         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87763         * lib/stat.c: New file.  Contents mostly from xstat.in.
87764         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87765         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87766
87767         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87768         too.
87769         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87770
87771 2002-12-03  Jim Meyering  <jim@meyering.net>
87772
87773         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87774         but not semantics, to minimize the differences between these two files.
87775         (safe_read): Change comment to mention SAFE_READ_ERROR.
87776
87777         * lib/safe-read.c (IS_EINTR): Define.
87778         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87779
87780 2002-12-02  Jim Meyering  <jim@meyering.net>
87781
87782         * lib/safe-read.c (EINTR): Define.
87783         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87784         (INT_MAX): Provide fallback.
87785         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87786
87787         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87788
87789 2002-12-02  Bruno Haible  <bruno@clisp.org>
87790
87791         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87792         Define, taken from safe-read.c.
87793         (INT_MAX): Provide fallback.
87794         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87795         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87796
87797         * lib/safe-read.c (EINTR): Remove definition.
87798         (safe_read): Don't use EINTR if it is absent.
87799
87800 2002-12-01  Jim Meyering  <jim@meyering.net>
87801
87802         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87803         zero.
87804         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87805
87806 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87807
87808         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87809         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87810         with `if (! (value < limit)) abort ();', for readability.
87811
87812 2002-11-26  Karl Berry  <karl@gnu.org>
87813
87814         * lib/strdup.c: copy from libc again, with jim's ok.
87815         * lib/.cppi-disable: re-add strdup.c
87816
87817 2002-11-25  Karl Berry  <karl@gnu.org>
87818
87819         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87820         instead of "strtol.c".
87821
87822 2002-11-25  Karl Berry  <karl@gnu.org>
87823
87824         * config/install-sh: update from automake for variable quoting, $0 in
87825         error msgs, etc.
87826
87827         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87828         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87829         entry.
87830
87831 2002-11-25  Jim Meyering  <jim@meyering.net>
87832
87833         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87834
87835 2002-11-24  Karl Berry  <karl@gnu.org>
87836
87837         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87838         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87839
87840 2002-11-24  Jim Meyering  <jim@meyering.net>
87841
87842         Update from coreutils:
87843
87844         * lib/mktime.c: Merge in changes from libc.
87845
87846         Avoid a link-time failure on some Linux systems.
87847         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87848         (otherwise).
87849         (__mon_yday): Declare with the STATIC attribute.
87850         (__mktime_internal): Likewise.
87851         Based on a report from Greg Schafer.
87852
87853 2002-11-23  Jim Meyering  <jim@meyering.net>
87854
87855         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87856         Use `unsigned', not `int', as type of index.
87857
87858         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87859
87860         * lib/fsusage.c: Remove unneeded parentheses around operands of
87861         `defined'.
87862
87863 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87864
87865         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87866         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87867         so that we can be included first.
87868         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87869         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87870         No need to include stddef.h or sys/types.h any more.
87871         Surround local include files with "", not "<>".
87872         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87873         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87874         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87875         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87876         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87877         (ISPRINT): Remove; no longer needed now that we assume C89.
87878
87879         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87880         Preserve errno.
87881
87882         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87883         quotearg_char): Use SIZE_MAX rather than
87884         (size_t) -1 when we are talking about "infinity".
87885
87886         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87887
87888 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87889
87890         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87891         hint that one should use `if (! x) abort ();' rather than `assert
87892         (x);', and anyway it's one less thing to worry about configuring.
87893         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87894         hash_rehash, hash_insert): Use abort rather than assert.
87895
87896 2002-11-22  Bruno Haible  <bruno@clisp.org>
87897
87898         * lib/safe-read.h: Assume C89. Add comments.
87899         (safe_read): Change return type to size_t.
87900         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87901         byte counts > SSIZE_MAX correctly.
87902         * lib/safe-write.h: New file.
87903         * lib/safe-write.c: New file.
87904         * lib/full-read.h: New file.
87905         * lib/full-read.c: New file.
87906         * lib/full-write.h: Assume C89. Add comments.
87907         * lib/full-write.c: Include safe-write.h.
87908         (full_write): Rewritten to use safe_write.
87909         Suggested by Jim Meyering and Paul Eggert.
87910
87911 2002-11-21  Jim Meyering  <jim@meyering.net>
87912
87913         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87914
87915         Merge in changes from the coreutils.
87916
87917         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87918         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87919         <stdint.h>.
87920         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87921         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87922         int.  Work more efficiently if X is the same width as uintmax_t.
87923         Do not compare X to -1, to avoid bogus compiler warning.
87924         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87925         Don't assume that f_frsize and f_bsize are the same type.
87926
87927         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87928         warning on FreeBSD.
87929
87930         * lib/makepath.c (make_path): Restore umask *before* creating the final
87931         component.
87932         (make_path): Minor reformatting.
87933
87934         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87935         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87936         HAVE_MALLOC/HAVE_REALLOC.
87937
87938         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87939         dummy ones.  At least on GNU/Linux systems, `auto' means something
87940         else.
87941         From Michael Stone.
87942
87943 2002-11-21  Bruno Haible  <bruno@clisp.org>
87944
87945         Remove case insensitive option matching.
87946         * lib/argmatch.h (argcasematch): Remove declaration.
87947         (ARGCASEMATCH): Remove macro.
87948         (__xargmatch_internal): Remove case_sensitive argument.
87949         (XARGMATCH): Update.
87950         (XARGCASEMATCH): Remove macro.
87951         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87952         case_sensitive argument.
87953         (argcasematch): Remove function.
87954         (__xargmatch_internal): Remove case_sensitive argument.
87955         (main): Use XARGMATCH instead of XARGCASEMATCH.
87956
87957         * lib/xmalloc.c: Change compile-time error message. Add comment about
87958         required autoconf version.
87959
87960 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87961
87962         Merge argmatch cleanups from Bison.  Assume C89.
87963
87964         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87965         Include stdlib.h, for EXIT_FAILURE.
87966         Always include <string.h>, since we assume C89.
87967         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87968         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87969         Include <stddef.h> instead, since it's all we need for size_t.
87970         (PARAMS): Remove.  All uses removed.
87971         (ARRAY_CARDINALITY): Do not bother to #undef.
87972         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87973         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87974         Remove unnecessary parentheses.
87975         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87976         Insert necessary parentheses.
87977         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87978         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87979
87980 2002-11-19  Bruno Haible  <bruno@clisp.org>
87981
87982         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87983         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87984
87985         * lib/mbswidth.h (PARAMS): Remove macro.
87986         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87987         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87988
87989         * lib/gcd.h (PARAMS): Remove macro.
87990         (gcd): Use ANSI C function declarations.
87991         * lib/gcd.c (gcd): Likewise.
87992
87993 2002-11-15  Bruno Haible  <bruno@clisp.org>
87994
87995         * lib/strcspn.c: Include <stddef.h>.
87996         (strcspn): Use ANSI C function declaration. Change return type to
87997         size_t. Use NULL.
87998         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87999         (strpbrk): Use NULL.
88000         * lib/strpbrk.h (PARAMS): Remove macro.
88001         (strpbrk): Use ANSI C function declaration.
88002         * lib/strstr.c: Don't include <sys/types.h>.
88003         * lib/strstr.h (PARAMS): Remove macro.
88004         (strstr): Use ANSI C function declarations.
88005
88006 2002-11-14  Karl Berry  <karl@gnu.org>
88007
88008         * config/mkinstalldirs: `do' on separate line, instead of
88009         `for var; do'.
88010
88011 2002-11-06  Bruno Haible  <bruno@clisp.org>
88012
88013         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
88014         * lib/gcd.c (gcd): Likewise.
88015
88016 2002-11-05  Bruno Haible  <bruno@clisp.org>
88017
88018         * lib/gcd.h: New file, from gettext-0.11.5.
88019         * lib/gcd.c: New file, from gettext-0.11.5.
88020
88021 2002-11-05  Bruno Haible  <bruno@clisp.org>
88022
88023         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88024         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88025         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88026         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88027
88028         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88029         <libintl.h>.
88030         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88031         <libintl.h>.
88032
88033         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88034         * lib/human.c: Include gettext.h instead of <libintl.h>.
88035         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88036         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88037         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88038         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88039         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88040         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88041         (textdomain): Remove definition.
88042         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88043
88044         * lib/long-options.c: Remove include of <libintl.h> and definition of
88045         _.
88046         * lib/same.c: Remove include of <libintl.h> and definition of _.
88047
88048 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88049
88050         * lib/config.charset: A few additions for Solaris.
88051
88052 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88053
88054         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88055         * lib/localcharset.c (locale_charset): Declare as extern "C".
88056
88057 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88058
88059         * lib/config.charset: msdos in uk_UA uses CP1125.
88060
88061 2002-11-04  Bruno Haible  <bruno@clisp.org>
88062
88063         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88064         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88065         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88066         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88067         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88068
88069 2002-11-04  Bruno Haible  <bruno@clisp.org>
88070
88071         * lib/localcharset.c (locale_charset): Don't return an empty string.
88072
88073 2002-11-04  Bruno Haible  <bruno@clisp.org>
88074
88075         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88076         aliases.
88077
88078 2002-11-04  Bruno Haible  <bruno@clisp.org>
88079
88080         * lib/config.charset: Update for newest glibc. Add canonical names
88081         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88082
88083 2002-11-04  Bruno Haible  <bruno@clisp.org>
88084
88085         * lib/config.charset: Add support for NetBSD.
88086
88087 2002-11-04  Bruno Haible  <bruno@clisp.org>
88088
88089         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88090
88091 2002-11-01  Bruno Haible  <bruno@clisp.org>
88092
88093         * configure.in: Add AC_CONFIG_AUX_DIR call.
88094         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88095         test/Makefile.
88096         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88097
88098 2002-09-28  Karl Berry  <karl@gnu.org>
88099
88100         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88101         installed automake until the next release, since changes have been
88102         made.
88103
88104 2002-09-25  Karl Berry  <karl@gnu.org>
88105
88106         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88107         * lib/getopt*: copy from libc/posix.
88108         * lib/gettext.h: copy from gettext.
88109         * lib/.cppi-disable: add strdup.c, gettext.h.
88110
88111 2002-09-25  Karl Berry  <karl@gnu.org>
88112
88113         * config/srclist.txt: enable gettext.h check.
88114         * config/config.{guess,sub}: update from prep.
88115         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88116                 from automake 1.6.3.
88117         See srclist*.
88118
88119 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88120
88121         * regex.c (PATFETCH): Remove the translating fetch.
88122         (PATFETCH_RAW): Rename to PATFETCH.
88123         (set_image_of_range): New fun.
88124         (SET_RANGE_TABLE_WORK_AREA): Use it.
88125         (regex_compile): Don't translate the pattern chars so eagerly.
88126         Only do it when inserting an `exactn' bytecode or when handling
88127         a char-range.
88128         (mutually_exclusive_p): Avoid empty statement.
88129
88130 2002-07-06  Jim Meyering  <meyering@lucent.com>
88131
88132         * m4/README: Don't mention Makefile.am.in.
88133         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88134
88135 2002-07-01  Jim Meyering  <meyering@lucent.com>
88136
88137         * lib/c-stack.c: Include sys/time.h.
88138         From Volker Borchert.
88139
88140 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88141
88142         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88143
88144 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88145
88146         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88147         New macro.  Use it uniformly instead of
88148         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88149         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88150         reported by Vin Shelton.
88151
88152 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88153
88154         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88155         Do not assume SA_SIGINFO behavior.
88156         Bug reported by Jim Meyering on NetBSD 1.5.2.
88157
88158 2002-06-22  Jim Meyering  <meyering@lucent.com>
88159
88160         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88161         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88162
88163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88164         now that configure.ac uses AC_GNU_SOURCE.
88165         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88166         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88167
88168         Update to latest tools.  Suggestions from Paul Eggert.
88169         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88170         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88171         * m4/fnmatch.m4: Likewise.
88172         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88173         to AC_HEADER_STDBOOL
88174
88175 2002-06-22  Jim Meyering  <meyering@lucent.com>
88176
88177         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88178         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88179
88180 2002-06-22  Jim Meyering  <meyering@lucent.com>
88181
88182         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88183
88184         * lib/exitfail.c, exitfail.h: Likewise.
88185         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88186
88187         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88188         of fnmatch.h.
88189         (EXTRA_DIST): Add fnmatch_loop.c.
88190         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88191
88192         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88193         * lib/fnmatch.c: Update from diffutils-2.8.2.
88194         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88195         * lib/fnmatch.h: Remove file.
88196
88197 2002-06-21  Jim Meyering  <meyering@lucent.com>
88198
88199         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88200         * m4/mbrtowc.m4: Likewise.
88201
88202         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88203         * m4/mbswidth.m4: Reflect name change:
88204         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88205         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88206
88207         * m4/lib-link.m4: Update from gettext-0.11.2.
88208         * m4/gettext.m4: Likewise.
88209
88210         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88211         From Alfred M. Szmidt.
88212
88213 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88214
88215         * lib/file-type.h: Report an error if neither S_ISREG nor
88216         S_IFREG is defined, instead of using a test specific to glibc
88217         2.2.  This should be safe, since POSIX requires S_ISREG and
88218         Unix Version 7 had S_IFREG.  We don't need to check for
88219         <sys/types.h> since we don't use any symbols that it defines.
88220
88221 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88222
88223         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88224         $@-t, so that each temporary file name is unique and valid in the first
88225         8 characters, for operation under DOS.
88226
88227 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88228
88229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88230
88231 2002-06-15  Jim Meyering  <meyering@lucent.com>
88232
88233         Work even with DJGPP 2.03, which lacks support for symlinks.
88234         From Richard Dawe.
88235         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88236         is defined.
88237         * lib/lchown.c (S_ISLNK): Likewise.
88238
88239 2002-06-15  Jim Meyering  <meyering@lucent.com>
88240
88241         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88242         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88243         have been included before this file.
88244
88245 2002-06-14  Jim Meyering  <meyering@lucent.com>
88246
88247         * lib/file-type.h: Use the version from diffutils-2.8.2.
88248         * lib/file-type.c: Likewise.
88249
88250 2002-06-07  Jim Meyering  <meyering@lucent.com>
88251
88252         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88253         They're needed at least for NetBSD 1.5.2.
88254         ($statxfs_includes): Include those same headers.
88255         ($statxfs_includes): Include sys/vfs.h if available.
88256         ($statxfs_includes): Likewise for sys/statvfs.h.
88257         Check for the following members in both structs statfs and statvfs:
88258         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88259
88260 2002-06-01  Jim Meyering  <meyering@lucent.com>
88261
88262         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88263         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88264
88265 2002-05-28  Jim Meyering  <meyering@lucent.com>
88266
88267         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88268         Reported by Volker Borchert.
88269
88270 2002-05-27  Jim Meyering  <meyering@lucent.com>
88271
88272         Fix a problem seen only on nonconforming systems whereby ls.c's
88273         use of localtime, and then of gettimeofday would cause trouble:
88274         the localtime call used to initialize rpl_gettimeofday's save
88275         mechanism would clobber ls's current local time information so
88276         that in any long listing the first file would always be listed
88277         with date 1970-01-01.  Analysis by Volker Borchert.
88278
88279         * lib/gettimeofday.c (localtime): Undefine.
88280         (rpl_localtime): New function.
88281
88282 2002-05-27  Jim Meyering  <meyering@lucent.com>
88283
88284         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88285         localtime.
88286
88287         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88288         use the replacement function; it wouldn't resolve at link time.
88289         Reported by Volker Borchert.
88290
88291 2002-05-22  Jim Meyering  <meyering@lucent.com>
88292
88293         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88294         file-type.h.
88295         * lib/file-type.h: New file.
88296         * lib/file-type.c (file_type): New file/function.  Extracted from
88297         diffutils.
88298
88299 2002-04-30  Jim Meyering  <meyering@lucent.com>
88300
88301         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88302
88303 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88304
88305         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88306
88307 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88308
88309         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88310         Do not check for alloca.h (no longer used) or stdbool.h (was never
88311         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88312
88313 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88314
88315         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88316
88317 2002-04-29  Jim Meyering  <meyering@lucent.com>
88318
88319         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88320         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88321         Use AC_FUNC_STRNLEN here instead.
88322
88323         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88324         With autoconf-2.53a, it's part of AC_PROG_CC.
88325
88326 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88327
88328         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88329         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88330
88331 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88332
88333         * lib/sig2str.h, lib/sig2str.c: New files.
88334         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88335
88336 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88337
88338         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88339         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88340         of 127, since 64 is the largest conceivable number for ancient
88341         nonstandard hosts.
88342         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88343
88344 2002-04-28  Jim Meyering  <meyering@lucent.com>
88345
88346         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88347
88348 2002-04-24  Jim Meyering  <meyering@lucent.com>
88349
88350         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88351         (jm_PREREQ): Use it.
88352
88353         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88354         mach/mach.h fcntl.h.
88355         Check for this function: setlocale.
88356
88357 2002-04-24  Jim Meyering  <meyering@lucent.com>
88358
88359         * lib/gettext.h: New file, from Gettext.
88360         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88361         (libfetish_a_SOURCES): Add gettext.h.
88362
88363 2002-04-16  Jim Meyering  <meyering@lucent.com>
88364
88365         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88366         ut_pid, ut_id, ut_exit.
88367
88368 2002-04-16  Jim Meyering  <meyering@lucent.com>
88369
88370         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88371         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88372         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88373
88374 2002-04-12  Jim Meyering  <meyering@lucent.com>
88375
88376         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88377         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88378         existence of the getmntinfo function.  Needed for Darwin 5.3.
88379
88380         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88381         This is necessary at least on Darwin 5.3.
88382
88383         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88384         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88385         strnlen.o in the library, and that makes some versions of ranlib
88386         object.
88387
88388 2002-04-12  Jim Meyering  <meyering@lucent.com>
88389
88390         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88391
88392 2002-04-09  Jim Meyering  <meyering@lucent.com>
88393
88394         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88395         to be more precise.  Rather than saying we're checking whether the
88396         function `works', say what we're testing.
88397         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88398         Reported by Bruno Haible.
88399
88400 2002-03-10  Jim Meyering  <meyering@lucent.com>
88401
88402         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88403         Suggestion from Santiago Vila.
88404
88405 2002-03-08  Jim Meyering  <meyering@lucent.com>
88406
88407         * lib/rename.c: Mention that this wrapper is needed also on
88408         mips-dec-ultrix4.4 systems.
88409
88410 2002-03-02  Jim Meyering  <meyering@lucent.com>
88411
88412         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88413         not HAVE_CLOCK_SETTIME.
88414
88415 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88416
88417         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88418         Check for clock_settime.
88419
88420 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88421
88422         * lib/nanosleep.h: Rename to....
88423         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88424
88425         * lib/gettime.c: New file.
88426         * lib/settime.c: New file.
88427         * lib/stime.c: Remove.
88428
88429         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88430         timespec.h.  Remove nanosleep.h.
88431
88432 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88433
88434         * m4/acl.m4: New file.
88435         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88436         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88437
88438 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88439
88440         * lib/acl.c, lib/acl.h: New files.
88441         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88442
88443 2002-02-24  Jim Meyering  <meyering@lucent.com>
88444
88445         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88446         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88447         cause trouble.  Reported by Nelson Beebe.
88448
88449 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88450
88451         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88452         compilers that don't know that xalloc_die never returns.
88453
88454 2002-02-20  Jim Meyering  <meyering@lucent.com>
88455
88456         * lib/getdate.c: Regenerate using bison-1.33.
88457
88458 2002-02-17  Jim Meyering  <meyering@lucent.com>
88459
88460         * config/config.guess (main): Don't use `head -1'; it's no longer
88461         portable. Use `sed 1q' instead.
88462
88463 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88464
88465         * m4/codeset.m4: Upgrade to gettext-0.11.
88466         * m4/gettext.m4: Upgrade to gettext-0.11.
88467         * m4/glibc21.m4: Upgrade to gettext-0.11.
88468         * m4/iconv.m4: Upgrade to gettext-0.11.
88469         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88470         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88471         * m4/lib-ld.m4: New file, from gettext-0.11.
88472         * m4/lib-link.m4: New file, from gettext-0.11.
88473         * m4/lib-prefix.m4: New file, from gettext-0.11.
88474         * m4/progtest.m4: Upgrade to gettext-0.11.
88475
88476 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88477
88478         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88479         (jm_PREREQ): Use it.
88480
88481 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88482
88483         * lib/posixver.c, lib/posixver.h: New files.
88484         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88485
88486 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88487             Bruno Haible  <bruno@clisp.org>
88488
88489         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88490         (fwrite_success_callback): New declaration.
88491         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88492         print_unicode_char. Call failure callback instead of error.
88493         (fwrite_success_callback): New function.
88494         (exit_failure_callback): New function.
88495         (fallback_failure_callback): New function.
88496         (print_unicode_char): Call unicode_to_mb.
88497
88498 2002-01-26  Jim Meyering  <meyering@lucent.com>
88499
88500         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88501         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88502
88503 2002-01-26  Jim Meyering  <meyering@lucent.com>
88504
88505         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88506
88507 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88508
88509         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88510
88511 2002-01-22  Jim Meyering  <meyering@lucent.com>
88512
88513         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88514         Otherwise, some versions of automake would omit the rule that makes
88515         Makefile from Makefile.in.
88516
88517 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88518
88519         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88520         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88521         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88522         (memcoll): Set errno to zero if there is no error.
88523
88524         * lib/quotearg.c (quotearg_buffer_restyled):
88525         Fix bug with quoting buffers containing NUL when backslashing escapes.
88526         This bug was exposed by the other changes in this patch.
88527         (quotearg_n_options): New arg ARGSIZE.
88528         All callers changed.
88529         (quoting_options_from_style): New function.
88530         (quotearg_n_style): Use it.
88531         (quotearg_n_style_mem): New function.
88532
88533         * lib/quotearg.h (quotearg_n_style_mem): New function.
88534
88535 2002-01-19  Jim Meyering  <meyering@lucent.com>
88536
88537         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88538         Remove useless quotes: DF_PROG="df".
88539         * m4/strnlen.m4: New file.
88540
88541 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88542
88543         * lib/backupfile.c (ISDIGIT): Comment fix.
88544         * lib/getdate.y (ISDIGIT): Likewise.
88545         * lib/posixtm.c (ISDIGIT, year): Likewise.
88546         * lib/strverscmp.c (ISDIGIT): Likewise.
88547         * lib/userspec.c (ISDIGIT): Likewise.
88548
88549 2002-01-16  Jim Meyering  <meyering@lucent.com>
88550
88551         * lib/getdate.y: Add three semicolons, each just before a closing
88552         brace. Bison (as of version 1.31) no longer papers over that mistake.
88553
88554 2002-01-05  Jim Meyering  <meyering@lucent.com>
88555
88556         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88557
88558 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88559
88560         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88561         not silently exit merely because the output buffer happens to
88562         have nothing pending.
88563
88564 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88565
88566         See the big note in ../ChangeLog.
88567         * lib/human.c (suffixes): Prefer K to k for 1024.
88568         (generate_suffix_backwards): New function.
88569         (human_readable_inexact): Use it.
88570         * lib/xstrtol.c (__xstrtol): If there is no number but there
88571         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88572         Accept 'K' as well as 'k'.
88573
88574 2001-12-15  Jim Meyering  <meyering@lucent.com>
88575
88576         * lib/regex.h (__restrict_arr): Update from libc.
88577
88578         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88579         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88580         (STREQ): Define.
88581
88582 2001-12-14  Jim Meyering  <meyering@lucent.com>
88583
88584         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88585         Suggestion from Bruno Haible.
88586
88587 2001-12-10  Jim Meyering  <meyering@lucent.com>
88588
88589         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88590         xrealloc, Instead, include "xalloc.h".
88591         (initbuffer): Don't cast xmalloc return value to char*.
88592         (readline): Reword comment.
88593         Don't cast xrealloc return value to char*
88594         Return NULL, not 0.
88595
88596 2001-12-09  Jim Meyering  <meyering@lucent.com>
88597
88598         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88599         about `signed and unsigned type in conditional expression'.
88600         * lib/posixtm.c (posix_time_parse): Likewise.
88601
88602         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88603
88604         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88605         to avoid a pedantic warning.
88606
88607         * lib/getstr.c: Don't include assert.h.
88608         (getstr): Remove warning-evoking assertions.
88609         Return -1 if offset parameter is out of bounds.
88610         Change the type of a local from int to size_t.
88611
88612         * lib/strftime.c (my_strftime_localtime_r): Include this function
88613         definition in the `#if ! HAVE_TM_GMTOFF' block.
88614
88615         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88616         Include xalloc.h instead.
88617
88618 2001-12-02  Jim Meyering  <meyering@lucent.com>
88619
88620         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88621         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88622         included.
88623
88624         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88625         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88626
88627 2001-11-30  Akim Demaille  <akim@epita.fr>
88628
88629         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88630         before being defined.
88631
88632 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88633
88634         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88635         First arg is int, not unsigned.
88636         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88637         (SIZE_MAX, UINT_MAX): New macros.
88638         (quotearg_n_options): Abort if N is negative.
88639         Avoid overflow check on hosts where size_t is 64 bits and int
88640         is 32 bits, as overflow is impossible there.
88641         Fix off-by-one typo that caused unnecessary reallocation.
88642
88643 2001-11-27  Jim Meyering  <meyering@lucent.com>
88644
88645         * lib/tempname.c: Merge with version from libc.
88646         * lib/regex.c: Likewise.
88647
88648         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88649         systems for which STDC_HEADERS is 0, it was not included, resulting in
88650         a warning about an integer-to-pointer conversion problem with getenv.
88651         Reported by Volker Borchert.
88652
88653 2001-11-26  Jim Meyering  <meyering@lucent.com>
88654
88655         * lib/gtod.h: Remove file.
88656         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88657         * lib/gettimeofday.c: Don't include gtod.h.
88658         (GTOD_init): Remove function.
88659         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88660         Suggestion from Volker Borchert.
88661
88662 2001-11-23  Jim Meyering  <meyering@lucent.com>
88663
88664         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88665         it.
88666         * lib/hash.c (struct hash_table): Define it here instead.
88667
88668 2001-11-22  Jim Meyering  <meyering@lucent.com>
88669
88670         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88671
88672 2001-11-20  Jim Meyering  <meyering@lucent.com>
88673
88674         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88675         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88676
88677 2001-11-19  Jim Meyering  <meyering@lucent.com>
88678
88679         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88680         directory.  Use "conftestXXXXXX" as the template.
88681         Suggestion from Paul Eggert.
88682
88683         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88684         immediately, so the test doesn't mistakenly hit the max-open-files
88685         limit.
88686
88687 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88688
88689         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88690         (TEMPORARIES): New macro.
88691         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88692         removes an artificial limitation (e.g. HP-UX 10.20, where
88693         TMP_MAX is 17576).
88694
88695 2001-11-18  Jim Meyering  <meyering@lucent.com>
88696
88697         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88698
88699 2001-11-18  Jim Meyering  <meyering@lucent.com>
88700
88701         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88702         on SunOS 4.
88703
88704         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88705         files will be created before anything else.
88706
88707 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88708
88709         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88710         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88711
88712 2001-11-17  Jim Meyering  <meyering@lucent.com>
88713
88714         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88715         Prompted by a report from Bob Proulx.
88716
88717         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88718         Instead, require UTILS_FUNC_MKSTEMP.
88719
88720 2001-11-17  Jim Meyering  <meyering@lucent.com>
88721
88722         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88723         Now, that's done as part of AC_FUNC_STRTOD.
88724
88725 2001-11-17  Jim Meyering  <meyering@lucent.com>
88726
88727         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88728         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88729         rather than group writable.  Patch by Juan F. Codagnone.
88730
88731         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88732         xrealloc, Instead, include "xalloc.h".
88733
88734         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88735         Remove explicit declarations of xmalloc, xrealloc,
88736         and xstrdup.  Instead, include "xalloc.h".
88737
88738         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88739         unlocked-io.h.
88740         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88741         Likewise.
88742         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88743
88744         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88745         Reported by Padraig Brady.
88746
88747         * lib/mkstemp.c: #undef mkstemp.
88748         Include config.h.
88749         (rpl_mkstemp): Rename from mkstemp.
88750         Protoize.
88751
88752 2001-11-16  Jim Meyering  <meyering@lucent.com>
88753
88754         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88755         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88756         determine the amount of total physical memory, use pstat_getstatic.
88757         HPUX-11 doesn't define _SC_PHYS_PAGES.
88758         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88759         If sysconf couldn't be used to determine the amount of available
88760         physical memory, use both pstat_getstatic and pstat_getdynamic.
88761         Based on a patch from Bob Proulx.
88762
88763 2001-11-10  Jim Meyering  <meyering@lucent.com>
88764
88765         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88766         (jm_PREREQ): Use it.
88767
88768 2001-11-09  Jim Meyering  <meyering@lucent.com>
88769
88770         * m4/jm-macros.m4: Require autoconf-2.52f.
88771         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88772         Use these AC_-prefixed names, not the AM_-prefixed ones.
88773
88774         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88775
88776 2001-11-05  Jim Meyering  <meyering@lucent.com>
88777
88778         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88779
88780 2001-11-04  Jim Meyering  <meyering@lucent.com>
88781
88782         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88783         $DEFS.
88784
88785 2001-11-03  Jim Meyering  <meyering@lucent.com>
88786
88787         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88788         of AC_DEFUN.
88789
88790         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88791         know the name of the variable in the macro definition.
88792
88793 2001-11-03  Jim Meyering  <meyering@lucent.com>
88794
88795         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88796         in argmatch_to_argument call.
88797
88798         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88799         argument.
88800
88801         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88802         e.g., a fault due to an attempt to free a NULL pointer.
88803
88804 2001-11-01  Jim Meyering  <meyering@lucent.com>
88805
88806         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88807         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88808
88809 2001-11-01  Jim Meyering  <meyering@lucent.com>
88810
88811         * lib/dirfd.c, lib/dirfd.h: New files.
88812         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88813
88814         * lib/hash.c (hash_print) [TESTING]: Clean up.
88815
88816 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88817
88818         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88819         to avoid a warning if -Wall.
88820
88821 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88822
88823         * README: New file
88824         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88825         (per RMS's instructions, this is now the canonical source)
88826         * lgpl/, gpl/: New directories.
88827
88828 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88829
88830         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88831
88832 2001-10-21  Jim Meyering  <meyering@lucent.com>
88833
88834         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88835         this code would end up calling gettext even in packages built
88836         with --disable-nls.
88837         * lib/getopt.c (_): Likewise.
88838         * lib/regex.c (_): Likewise.
88839
88840 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88841
88842         * m4/error.m4 (jm_PREREQ_ERROR):
88843         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88844         AC_FUNC_STRERROR_R does that.
88845         Check for strerror declaration.
88846
88847         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88848         are supposed to have them these days.
88849         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88850         Merge changes from latest Autoconf CVS.
88851         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88852         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88853         POSIX decided to standardize on the int flavor of strerror_r.
88854
88855 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88856
88857         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88858         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88859         Use strerror_r that is only a macro, even if it is not a function.
88860         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88861         (private_strerror): Use prototypes, not old-style function definition.
88862         (print_errno_message): New function.
88863         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88864         char*-flavored one.
88865         (error_tail, error, error_at_line): Use it.
88866
88867 2001-10-11  Jim Meyering  <meyering@lucent.com>
88868
88869         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88870         and quote_n (1, ... to avoid clobbering a buffer.
88871
88872 2001-10-05  Jim Meyering  <meyering@lucent.com>
88873
88874         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88875         hash-pjw.h.
88876         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88877         * lib/hash-pjw.h: New file.
88878
88879 2001-09-30  Jim Meyering  <meyering@lucent.com>
88880
88881         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88882         `struct fsstat' has the `f_fstypename' member.
88883         Use that to define FS_TYPE, which is now used to make
88884         the getfsstat link test tighter.
88885
88886 2001-09-30  Jim Meyering  <meyering@lucent.com>
88887
88888         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88889         Include <sys/ucred.h>, for Apple Darwin.
88890         Include sys/mount.h and sys/fs_types.h only if available.
88891         (FS_TYPE): Define.
88892         (read_filesystem_list): Use FS_TYPE.
88893
88894 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88895
88896         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88897         a boolean context.
88898
88899 2001-09-29  Jim Meyering  <meyering@lucent.com>
88900
88901         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88902         [one-argument getmntent function]): Include stdio.h before mntent.h.
88903         SunOS 4.1.x needs it for the declaration of `FILE'.
88904         Patch by Volker Borchert.
88905
88906         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88907         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88908         sys/fs_types.h, and make the link-test for getfsstat guard #include
88909         directives with appropriate #if HAVE_*_H tests so that we can
88910         detect getfsstat on Apple Darwin1.3.7 systems.
88911         Reported by Nelson Beebe.
88912         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88913
88914 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88915
88916         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88917         #defines strtoimax.  Also treat the other strto* functions
88918         like strtoimax.
88919
88920         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88921         Check for strtoul and strtoumax,
88922         as those declarations are made even in the signed case.
88923         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88924         Likewise, for strtol and strtoimax.
88925
88926 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88927
88928         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88929         #defines strtoimax.  Also treat the other strto* functions
88930         like strtoimax.
88931
88932         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88933         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88934         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88935
88936 2001-09-26  Jim Meyering  <meyering@lucent.com>
88937
88938         Most macros in unlocked-io.h had the wrong number of arguments.
88939         * lib/gen-uio: New script.
88940         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88941         * lib/unlocked-io.hin: Remove file.
88942         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88943         rather than trying to embed it here.
88944         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88945         Reported by Padraig Brady.
88946
88947 2001-09-25  Volker Borchert  <bt@teknon.de>
88948
88949         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88950         `result'.
88951
88952 2001-09-24  Jim Meyering  <meyering@lucent.com>
88953
88954         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88955
88956 2001-09-23  Jim Meyering  <meyering@lucent.com>
88957
88958         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88959         instead of the mere test for existence of mntent.h.  The latter
88960         would get a false-positive on AIX 3.4 systems.
88961         In the outer getmntent if-block, don't die if neither of the getmntent
88962         tests succeeds.  Instead, just fall through and continue with the
88963         remaining tests.
88964
88965 2001-09-23  Jim Meyering  <meyering@lucent.com>
88966
88967         * lib/mountlist.c: Remove useless parentheses in #if directives.
88968         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88969         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88970
88971 2001-09-22  Jim Meyering  <meyering@lucent.com>
88972
88973         * m4/gettext.m4: New file.  From gettext.
88974         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88975         * m4/progtest.m4: Likewise
88976         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88977         * m4/glibc21.m4: Likewise.
88978
88979         * m4/libintl.m4: Remove.  No longer used.
88980
88981 2001-09-22  Jim Meyering  <meyering@lucent.com>
88982
88983         * lib/localcharset.c: Update from latest gettext.
88984         * lib/config.charset: Likewise.
88985
88986 2001-09-20  Jim Meyering  <meyering@lucent.com>
88987
88988         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88989         strtoimax.
88990         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88991         strtoumax.
88992
88993 2001-09-20  Jim Meyering  <meyering@lucent.com>
88994
88995         * lib/xstrtol.c (strtoimax): Guard declaration with
88996         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88997         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88998         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88999         (strtoumax): Likewise, for completeness (it wasn't necessary).
89000
89001 2001-09-17  Paul Eggert  <eggert@twinsun.com>
89002
89003         * lib/strtoimax.c (HAVE_LONG_LONG):
89004         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
89005         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
89006         to work around bug in IBM C compiler.
89007
89008 2001-09-17  Jim Meyering  <meyering@lucent.com>
89009
89010         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
89011         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
89012         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
89013         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
89014         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
89015         whenever the right hand side need not be expanded by the shell.
89016
89017 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89018
89019         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89020         library.  It's not correct, as some older glibcs are buggy.
89021         fnmatch wasn't fixed until glibc 2.2.
89022
89023         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89024         special shell magic here.
89025
89026 2001-09-16  Jim Meyering  <meyering@lucent.com>
89027
89028         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89029         * m4/jm-macros.m4: Require it.
89030
89031 2001-09-16  Jim Meyering  <meyering@lucent.com>
89032
89033         * lib/mkdir.c: New file.
89034
89035 2001-09-15  Jim Meyering  <meyering@lucent.com>
89036
89037         * m4/jm-macros.m4: Check for help2man.
89038
89039 2001-09-11  Jim Meyering  <meyering@lucent.com>
89040
89041         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89042         The body, by Paul Eggert, was moved here from configure.in.
89043         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89044
89045 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89046
89047         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89048         (jm_PREREQ): Use it.
89049
89050 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89051
89052         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89053         Use ssize_t, not int, to store result of readlink.
89054         Check for ssize_t overflow as well as size_t overflow,
89055         as POSIX says the result of readlink is implementation-defined
89056         when ssize_t overflows.
89057         Remove unnecessary cast to char*.
89058         Use free+malloc instead of realloc, as the storage doesn't need
89059         to be preserved and it's clearer and can be more efficient that way.
89060         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89061         * lib/xreadlink.h (xreadlink): Update prototype.
89062
89063 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89064
89065         * lib/xgetcwd.c: Revert some of the previous change; intead,
89066         fix the HAVE_GETCWD_NULL code to behave more like the
89067         !HAVE_GETCWD_NULL code used to.
89068
89069         Include "xalloc.h".
89070         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89071         invoke xalloc_die.
89072
89073 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89074
89075         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89076         sys/param.h, as pathmax.h includes them.
89077
89078 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89079
89080         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89081         (jm_PREREQ_XGETCWD): New macro.
89082
89083         * m4/getcwd.m4: New file.
89084
89085 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89086
89087         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89088         like the HAVE_GETCWD_NULL code.
89089         Include pathmax.h if not HAVE_GETCWD.
89090         Do not include xalloc.h.
89091         (INITIAL_BUFFER_SIZE): New symbol.
89092         Do not use xmalloc / xrealloc, since the caller is responsible for
89093         handling errors.  Preserve errno around `free' during failure.
89094         Do not overrun buffer when using getwd.
89095
89096 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89097
89098         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89099         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89100         getcwd (NULL, 0).
89101
89102 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89103
89104         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89105         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89106         spotted by Jim Meyering.
89107
89108 2001-09-03  Jim Meyering  <meyering@lucent.com>
89109
89110         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89111         failure.
89112
89113 2001-09-02  Jim Meyering  <meyering@lucent.com>
89114
89115         * lib/error.c: Update from GNU libc.
89116
89117 2001-09-01  Jim Meyering  <meyering@lucent.com>
89118
89119         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89120         Used by df.
89121
89122 2001-09-01  Jim Meyering  <meyering@lucent.com>
89123
89124         * lib/xreadlink.c: New file.
89125         * lib/xreadlink.h: New file.
89126         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89127         xreadlink.h.
89128
89129         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89130         doesn't conflict with sparc Solaris 7's definition in
89131         /usr/include/sys/int_types.h.
89132
89133         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89134         files.
89135         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89136         and strncasecmp as r-values.  Unixware didn't have declarations.
89137
89138 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89139
89140         * lib/xstrtol.h: Add copyright notice.
89141         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89142         LONGINT_INVALID_SUFFIX_CHAR.
89143
89144 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89145
89146         * lib/xstrtol.c (strtoimax): New decl.
89147
89148 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89149
89150         * lib/xgetcwd.c: Don't include pathmax.h.
89151         Include stdlib.h and unistd.h if available.
89152         Include xalloc.h.
89153         (xmalloc, xstrdup, free): Remove decls.
89154         (xgetcwd): Don't assume sizes fit in unsigned.
89155         Check for overflow when computing sizes.
89156         Simplify reallocation code.
89157
89158 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89159
89160         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89161         a directory's st_size can have an arbitrary value, so the old
89162         usage could waste an arbitrary amount of memory.  All uses
89163         changed.
89164         * lib/savedir.h: Update prototype.
89165
89166 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89167
89168         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89169
89170         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89171         old strtoimax.c.
89172
89173         Also, make the following further changes to make this file's
89174         configuration more similar to that of strtol.c:
89175         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89176         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89177         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89178         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89179         changed to signed values.
89180
89181         And make the following changes as well:
89182         Fix copyright notice, as 1999 was missing.
89183         (verify): New macro.
89184         (strtoimax): Check sizes at compile-time, not run-time.
89185         Prefer strtol to strtoll if both work.
89186         (main): Remove; it was not that useful and was a pain to maintain.
89187
89188         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89189
89190 2001-08-31  Jim Meyering  <meyering@lucent.com>
89191
89192         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89193         Use an initial, malloc'd, buffer of length 128 rather than
89194         a statically allocated one of length 1024.
89195
89196 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89197
89198         Simplify code, partly by assuming autoconf 2.52 semantics.
89199
89200         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89201
89202         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89203         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89204         All uses removed.
89205         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89206         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89207         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89208         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89209         jm_AC_HEADER_INTTYPES_H.
89210         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89211
89212         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89213
89214         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89215         Quote first arg of AC_DEFUN.
89216         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89217         since they are needed to parse the include file even if we need
89218         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89219         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89220         but with opposite signedness.
89221
89222 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89223
89224         Merge 'exclude' changes from tar 1.13.22.
89225         This fixes one or two unlikely storage allocation overflow bugs,
89226         but doesn't change user-visible behavior otherwise.
89227
89228 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89229
89230         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89231         (jm_PREREQ_EXCLUDE): New macro.
89232
89233 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89234
89235         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89236         tm to be declared.
89237
89238 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89239
89240         * lib/hash.c: Remove '2001' from copyright notice.
89241
89242 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89243
89244         * lib/full-write.h: New file.
89245         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89246         * lib/full-write.c: Correct credits, as cccp.c no longer
89247         exists and anyway it was so heavily changed from the old cccp
89248         code as to be unrecognizable.  Include full-write.h.
89249         (full_write): Return size_t, with short writes meaning failure.
89250         All callers changed.  This fixes a bug with large buffers
89251         on 64-bit hosts.
89252         * lib/utime.c: Include full-write.h.
89253
89254 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89255
89256         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89257         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89258         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89259         Include if available.
89260         (<xalloc.h>): Include
89261         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89262         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89263         collide with FNM macros.
89264         (struct patopts): New struct.
89265         (struct exclude): Use it, as exclude patterns now come with options.
89266         (new_exclude): Support above changes.
89267         (new_exclude, add_exclude_file):
89268         Initial size must now be a power of two to simplify overflow checking.
89269         (free_exclude, fnmatch_no_wildcards): New function.
89270         (excluded_filename): No longer requires options arg, as the options
89271         are determined by add_exclude.  Now returns bool, not int.
89272         (excluded_filename, add_exclude):
89273         Add support for the fancy new exclusion options.
89274         (add_exclude, add_exclude_file): Now takes int options arg.
89275         Check for arithmetic overflow when computing sizes.
89276         (add_exclude_file): xrealloc might modify errno, so don't
89277         realloc until after errno might be used.
89278
89279         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89280         New macros.
89281         (free_exclude): New decl.
89282         (add_exclude, add_exclude_file): Now takes int options arg.
89283         (excluded_filename): No longer requires options arg, as the options
89284         are determined by add_exclude.  Now returns bool, not int.
89285
89286 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89287
89288         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89289
89290 2001-08-27  Jim Meyering  <meyering@lucent.com>
89291
89292         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89293
89294         * lib/version-etc.c (N_): Remove definition.
89295         Revert most of last change.
89296         Instead, simply don't mark the `Copyright...' string for translation.
89297         Based on advice from Paul Eggert.
89298
89299         * lib/strtoxmax.c: Tweak comment.
89300
89301 2001-08-26  Jim Meyering  <meyering@lucent.com>
89302
89303         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89304
89305         * m4/xstrtoimax.m4: New file.
89306         * m4/xstrtoumax.m4: Add comments explaining why we
89307         AC_REPLACE_FUNCS(strtol).
89308
89309 2001-08-26  Jim Meyering  <meyering@lucent.com>
89310
89311         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89312         of copyright with `%s' so translators don't get an untranslated
89313         message in 2002.
89314         (COPYRIGHT_YEAR): Define.
89315         (version_etc): Use fprintf rather than fputs.
89316         Suggestion from Ulrich Drepper.
89317
89318         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89319
89320         * lib/strtoll.c: New file, from GNU libc.
89321         * lib/xstrtoimax.c: New file.
89322
89323         * lib/xstrtol.h: Add xstrtoimax.
89324         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89325         * lib/strtoimax.c: New file.  Likewise, but first define
89326         STRTOUXMAX_SIGNED.
89327
89328         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89329         ...
89330         * lib/strtoxmax.c: ... then renamed to this.
89331
89332 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89333
89334         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89335         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89336         (jm_AC_TYPE_INTMAX_T): New macro.
89337         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89338
89339         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89340
89341         * m4/longlong.m4: Renamed from ulonglong.m4.
89342         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89343         * m4/uintmax_t.m4: Removed.
89344
89345 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89346
89347         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89348         Port to Solaris 8, where 'sed' requires a space after the 'r'
89349         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89350         Redirect output to $tmp just once.
89351
89352 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89353
89354         * lib/addext.c (<errno.h>): Include.
89355         (errno): Declare if not defined.
89356         (addext): Work correctly when pathconf returns -1 and leaves
89357         errno alone because there is no limit.  Also, work even if
89358         pathconf returns a value greater than SIZE_MAX.
89359
89360 2001-08-12  Jim Meyering  <meyering@lucent.com>
89361
89362         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89363         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89364         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89365         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89366         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89367         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89368         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89369         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89370         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89371         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89372         utime.m4, utimes.m4, xstrtoumax.m4:
89373         Quote the first argument in each use of AC_DEFUN.
89374
89375 2001-08-12  Jim Meyering  <meyering@lucent.com>
89376
89377         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89378         Simply `return getcwd (NULL, 0);'.
89379         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89380         Use 1300 as initial value for length, not PATH_MAX.
89381
89382         * lib/pathmax.h: Clean up cpp syntax.
89383
89384 2001-08-12  Jim Meyering  <meyering@lucent.com>
89385
89386         * lib/gettimeofday.c: New file.
89387         * lib/gtod.h: New file.
89388         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89389
89390 2001-08-05  Jim Meyering  <meyering@lucent.com>
89391
89392         * m4/jm-macros.m4: Require autoconf-2.52.
89393
89394 2001-08-04  Jim Meyering  <meyering@lucent.com>
89395
89396         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89397         stmt, to get in sync with glibc.
89398
89399 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89400
89401         The following changes are from gettext 0.10.39 as maintained by
89402         Bruno Haible.
89403
89404         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89405         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89406         with inverted sense.  All uses changed.
89407
89408         * lib/mbswidth.c: Don't include <limits.h>.
89409         Include <stdlib.h> and <string.h> unconditionally.
89410         (iswcntrl, mbsinit, ISCNTRL): New macros.
89411         (mbsnwidth): Use K&R style function declarations.
89412         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89413         can optimize it when MB_CUR_MAX == 1.
89414         The width of control characters is zero, not 1.
89415
89416 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89417
89418         The following changes are from gettext 0.10.39 as maintained by
89419         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89420
89421         * m4/codeset.m4: Upgrade to serial AM1.
89422         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89423         all uses changed.  Quote first arg of AC_DEFUN.
89424         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89425
89426         * m4/iconv.m4: Upgrade to serial AM2.
89427         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89428         Add --with-libconv-prefix.
89429         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89430         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89431         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89432         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89433         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89434
89435         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89436         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89437         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89438         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89439         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89440         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89441         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89442         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89443         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89444
89445         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89446         string.h any more.
89447
89448         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89449         not the default value.
89450
89451         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89452         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89453         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89454         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89455         Also check for iswcntrl, used for wcwidth fallback.
89456         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89457         to Autoconf 2.13.
89458
89459 2001-08-03  Jim Meyering  <meyering@lucent.com>
89460
89461         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89462         as it was in the original.  Reported by Paul Eggert.
89463
89464 2001-07-16  Jim Meyering  <meyering@lucent.com>
89465
89466         * m4/gettimeofday.m4: New file.
89467         Prompted by a report from Bernhard Baehr.
89468
89469 2001-07-15  Jim Meyering  <meyering@lucent.com>
89470
89471         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89472         stuff. Now it's in ../Makefile.cfg.
89473
89474 2001-07-15  Jim Meyering  <meyering@lucent.com>
89475
89476         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89477         (BUILT_SOURCES): Add unlocked-io.h.
89478         (io_functions): Define.
89479         (unlocked-io.h): New rule.
89480         (DISTCLEANFILES): Add unlocked-io.h.
89481         (all-local): Depend on unlocked-io.h, to ensure it is created.
89482
89483         * lib/unlocked-io.hin: New file
89484
89485         * lib/regex.c: Update from glibc.
89486
89487 2001-07-05  Jim Meyering  <meyering@lucent.com>
89488
89489         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89490         recommendation.
89491         (libfetish_a_SOURCES): Put all .h files here instead.
89492         Remove a thus-exposed (better checks in automake) duplicate and
89493         two unnecessary .h files.
89494
89495 2001-07-04  Jim Meyering  <meyering@lucent.com>
89496
89497         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89498         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89499         distcheck failure.
89500
89501 2001-07-02  Jim Meyering  <meyering@lucent.com>
89502
89503         The following changes were prompted by suggestions from Bruno Haible.
89504
89505         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89506         is now generated.
89507         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89508         definition of EXTRA_DIST.
89509         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89510         ensure that the generated file is created/updated whenever the list
89511         of $(unlocked_functions) is changed.
89512         (jm-glibc-io.m4): New rule.
89513         (unlocked-io.h): New rule -- currently unused.
89514
89515 2001-06-24  Jim Meyering  <meyering@lucent.com>
89516
89517         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89518         unmatched right bracket, rather than kludging it with an extra,
89519         falsely-matching quote in a comment.  Patch by Akim Demaille.
89520
89521 2001-06-11  Jim Meyering  <meyering@lucent.com>
89522
89523         * lib/regex.c: Update from GNU libc.
89524
89525 2001-05-27  Jim Meyering  <meyering@lucent.com>
89526
89527         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89528         Check for ut_type in struct utmp.
89529
89530 2001-05-27  Jim Meyering  <meyering@lucent.com>
89531
89532         * lib/readutmp.h (UT_TYPE): Define.
89533
89534 2001-05-24  Jim Meyering  <meyering@lucent.com>
89535
89536         * lib/argmatch.c: Include "quote.h".
89537         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89538         quote function.  Reported by Göran Uddeborg.
89539
89540 2001-05-22  Jim Meyering  <meyering@lucent.com>
89541
89542         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89543         now that we use the package-supplied version unconditionally.
89544         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89545
89546 2001-05-21  Jim Meyering  <meyering@lucent.com>
89547
89548         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89549         shell syntax errors.
89550
89551 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89552
89553         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89554
89555 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89556
89557         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89558         Don't bother to check library strftime, since
89559         we'll be using our own my_strftime function anyway.
89560         Define my_strftime instead of strftime.
89561
89562 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89563
89564         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89565         which is not yet declared.
89566
89567 2001-05-15  Jim Meyering  <meyering@lucent.com>
89568
89569         * m4/regex.m4: Use proper quoting so brackets appear in the test
89570         program.
89571         Reported by, and with help from, Bruno Haible.
89572
89573 2001-05-13  Jim Meyering  <meyering@lucent.com>
89574
89575         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89576         undefined.
89577
89578 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89579
89580         dirname code cleanup.  base_name now behaves more compatibly
89581         with POSIX basename when given file names that have trailing
89582         slashes, and similarly for dir_name.  Add new primitives
89583         base_len and dir_len.  Put the directory-name-related decls
89584         into dirname.h.
89585
89586         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89587         * lib/backupfile.c (base_name): Likewise.
89588         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89589         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89590         * lib/makepath.c (strip_trailing_slashes): Likewise.
89591         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89592         ISSLASH): Likewise.
89593         * lib/rename.c (strip_trailing_slashes): Likewise.
89594         * lib/same.c (base_name): Likewise.
89595         * lib/stripslash.c (ISSLASH): Likewise.
89596
89597         * lib/addext.c: Include <dirname.h> after size_t is defined.
89598         * lib/backupfile.c: Likewise.
89599
89600         * lib/addext.c (addext): Use base_len to trim redundant
89601         trailing slashes instead of doing it ourselves.
89602         But do not trim the last slash if it is not redundant.
89603
89604         * lib/backupfile.c (find_backup_file_name,
89605         max_backup_version): Use base_len instead of rolling it ourselves.
89606         Handle the case of "" and (on DOS) "C:" correctly.
89607
89608         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89609         needed. Include <string.h>, <dirname.h>.
89610         (base_name): Allow file names ending in slashes, other than names
89611         that are all slashes.  In this case, return the basename followed
89612         by the slashes.  This is more general, and can be used in places
89613         where the original base_name purposely had an assertion failure.
89614         (base_len): New function.
89615
89616         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89617         Do not include <assert.h>; no longer needed.
89618         Include xalloc.h.
89619         (memrchr): Remove decl.
89620         (dir_name_r): Remove.
89621         (dir_len): Renamed from dirlen.  All callers changed.
89622         Rewrite in terms of base_name, for simplicity and consistency.
89623         (dir_name): Never return NULL.  All callers changed.
89624         Do not include <stdlib.h> in test program; no longer needed.
89625         return 0; is fine for test program.
89626
89627         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89628         New macros.
89629         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89630
89631         * lib/path-concat.c (path_concat): Use base_len to compute
89632         base length, not strlen; this means we cannot rely on memcpy
89633         to null-terminate.
89634
89635         * lib/same.c (STREQ): Remove.
89636         (same_name): Handle the case where the basename ends in trailing '/'.
89637
89638         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89639         a slash was stripped.  Do not strip the last slash after a
89640         file system prefix.
89641
89642 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89643
89644         * lib/Makefile.am (libfetish_a_SOURCES):
89645         Add strftime.c, since we now compile it on all hosts.
89646
89647         * lib/strftime.c (my_strftime):
89648         Define to nstrftime if emacs, but only if my_strftime is not defined.
89649         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89650         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89651         Add one more extra argument: a nanoseconds value.
89652         All uses changed.
89653         (ns): New macro.
89654         (my_strftime function): Add %N format.
89655         (emacs_strftimeu): Renamed from emacs_strftime,
89656         with extra ut argument.
89657
89658 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89659
89660         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89661
89662 2001-04-21  Jim Meyering  <meyering@lucent.com>
89663
89664         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89665         doesn't interfere.
89666
89667 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89668
89669         * m4/ftruncate.m4: Check for chsize.
89670         Link with ftruncate.o unconditionally if ftruncate is missing.
89671         This was required when cross-compiling to i586-mingw32msvc.
89672
89673 2001-04-08  Jim Meyering  <meyering@lucent.com>
89674
89675         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89676         recomputed; that's necessary when the offset spans a DST transition.
89677         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89678
89679 2001-04-02  Jim Meyering  <meyering@lucent.com>
89680
89681         * lib/regex.h, regex.c: Update from GNU libc.
89682
89683 2001-03-24  Jim Meyering  <meyering@lucent.com>
89684
89685         * m4/jm-macros.m4: Require autoconf-2.49d.
89686
89687 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89688
89689         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89690
89691 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89692
89693         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89694
89695 2001-03-17  Jim Meyering  <meyering@lucent.com>
89696
89697         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89698         now that the version in autoconf is equivalent.
89699         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89700
89701         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89702         Suggestion from Akim Demaille.
89703
89704         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89705         (jm_PREREQ_TEMPNAME): New function.
89706
89707 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89708
89709         * lib/tempname.c (uint64_t): Define to uintmax_t if
89710         not defined, and if UINT64_MAX is not defined.
89711         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89712         Reported by John David Anglin.
89713
89714 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89715
89716         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89717         resolve alias if codeset is empty.
89718         * lib/config.charset (BeOS): Use wildcard syntax.
89719
89720 2001-03-13  Jim Meyering  <meyering@lucent.com>
89721
89722         * lib/path-concat.c (path_concat)
89723         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89724         concatenating e.g., `C:' and `foo'.
89725         From Bruno Haible.
89726
89727 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89728
89729         * lib/localcharset.c (locale_charset): Don't use
89730         setlocale(LC_CTYPE,NULL). Don't return NULL.
89731         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89732
89733 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89734
89735         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89736         support for DOS/DJGPP.
89737
89738 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89739
89740         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89741         lacks mkstemp.  Compile our own tempname.c if we compile our own
89742         mkstemp.c, as mkstemp relies on tempname.
89743
89744 2001-03-01  Jim Meyering  <meyering@lucent.com>
89745
89746         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89747         AH_VERBATIM really does output its argument verbatim.
89748
89749 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89750
89751         * lib/Makefile.am (libfetish_a_SOURCES):
89752         Add dup-safer.c, fopen-safer.c.
89753         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89754
89755         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89756         * lib/unistd-safer.h: New files.
89757
89758 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89759
89760         The mkstemp replacement is taken from glibc 2.2.2, with some
89761         portability fixes for use outside glibc, as follows:
89762
89763         * lib/tempname.c (struct_stat64): New macro.
89764         (direxists, __gen_tempname): Use it.
89765         This avoids a portability problem with Solaris 8.
89766
89767         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89768         (<stddef.h>, <stdint.h>, <string.h>):
89769         Include only if STDC_HEADERS || _LIBC.
89770         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89771         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89772         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89773         (__set_errno): Define this macro if <errno.h> doesn't.
89774         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89775         Define these macros if <stdio.h> doesn't.
89776         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89777         Define these macros if <sys/stat.h>
89778         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89779         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89780         __xstat64): Define if not _LIBC.
89781         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89782         (__gen_tempname): Invoke gettimeofday only if
89783         HAVE_GETTIMEOFDAY || _LIBC;
89784         otherwise, fall back on plain "time".
89785         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89786
89787         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89788
89789         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89790
89791 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89792
89793         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89794
89795 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89796
89797         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89798         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89799         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89800         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89801
89802 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89803
89804         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89805         Remove workaround macros for hosts that have mbrtowc but not
89806         mbstate_t, as we now insist on proper declarations for both
89807         before using mbrtowc.
89808
89809 2001-02-17  Jim Meyering  <meyering@lucent.com>
89810
89811         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89812         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89813         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89814         UnixWare 7.1.1.
89815
89816         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89817         rather than AC_CACHE_VAL.
89818
89819 2001-02-17  Jim Meyering  <meyering@lucent.com>
89820
89821         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89822         around included file name.
89823
89824         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89825
89826         * lib/strftime.c: Update from GNU libc (the only changes were to
89827         comments).
89828
89829 2001-02-17  Jim Meyering  <meyering@lucent.com>
89830
89831         * lib/regex.c: Update from libc.
89832
89833 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89834
89835         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89836         clash.
89837
89838 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89839
89840         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89841         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89842         Reported by Mark Hounschell via Paul Eggert.
89843
89844 2001-02-07  Jim Meyering  <meyering@lucent.com>
89845
89846         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89847
89848 2001-02-05  Jim Meyering  <meyering@lucent.com>
89849
89850         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89851         it includes the patch required for `large file' support with at least
89852         HP-UX's 10.20 /bin/cc.
89853
89854 2001-02-03  Jim Meyering  <meyering@lucent.com>
89855
89856         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89857         AS_IF, now that it works once again (mysteriously).
89858         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89859
89860 2001-01-30  Jim Meyering  <meyering@lucent.com>
89861
89862         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89863         * m4/chown.m4: Rename conftestchown to conftest.chown.
89864         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89865         s/conftestdir2/conftest.d2/.
89866         * m4/utimes.m4: s/conftestdata/conftest.data/
89867         Inspired by Pavel Roskin's change in autoconf.
89868
89869 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89870
89871         * lib/config.charset: Update for FreeBSD 4.2.
89872
89873 2001-01-27  Jim Meyering  <meyering@lucent.com>
89874
89875         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89876         a use of AS_IF.
89877         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89878
89879 2001-01-26  Jim Meyering  <meyering@lucent.com>
89880
89881         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89882         quotearg.c includes it.
89883
89884 2001-01-26  Jim Meyering  <meyering@lucent.com>
89885
89886         * lib/quotearg.c: Include stddef.h.
89887         * lib/quote.c: Include stddef.h.
89888         Reported by Axel Kittenberger.
89889
89890         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89891         line in double quotes so that it evokes a better diagnostic.
89892         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89893         Reported by Axel Kittenberger.
89894
89895 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89896
89897         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89898         as if it was a `charset'.
89899
89900 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89901
89902         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89903         has const.
89904
89905 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89906
89907         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89908         to avoid a warning.  Add back 'const' to inptr.
89909
89910 2001-01-20  Jim Meyering  <meyering@lucent.com>
89911
89912         Be sure that headers are checked before used in code compiled
89913         for the type checks.
89914         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89915         In place of that, invoke jm_CHECK_ALL_TYPES.
89916         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89917         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89918         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89919         The check for ssize_t was mistakenly run before the test for unistd.h.
89920
89921         The configure-time check for stdbool.h was missing.
89922         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89923         (jm_PREREQ_HASH): New function.
89924
89925 2001-01-17  Jim Meyering  <meyering@lucent.com>
89926
89927         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89928         for autoconf-2.49c.
89929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89930
89931 2001-01-16  Jim Meyering  <meyering@lucent.com>
89932
89933         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89934         From Bruno Haible.
89935
89936 2001-01-14  Jim Meyering  <meyering@lucent.com>
89937
89938         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89939         foo and bar.  Create conftestdir/ in the script, not in the C code.
89940         Remove directories in the script, not in the C code.
89941         Remove conftestdir{,2} before trying to create the directory.
89942         Make the entire configure script fail if the mkdir fails.
89943
89944 2001-01-14  Jim Meyering  <meyering@lucent.com>
89945
89946         * lib/rename.c: New file.  From Volker Borchert.
89947         Include stdlib.h, string.h or strings.h, and xalloc.h.
89948         Use strip_trailing_slashes rather than open-coding it.
89949
89950 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89951
89952         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89953
89954 2001-01-03  Jim Meyering  <meyering@lucent.com>
89955
89956         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89957         of local `inptr' to avoid warning with some system declarations of
89958         iconv.
89959
89960 2001-01-02  Volker Borchert  <bt@teknon.de>
89961
89962         * m4/rename.m4: New file.
89963         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89964
89965 2001-01-01  Jim Meyering  <meyering@lucent.com>
89966
89967         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89968         even on systems with utmpx.h.  It's necessary for the declaration of
89969         utmp's ut_user member.  Reported by Andreas Jaeger.
89970
89971         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89972         available. They are required for the declarations of getgrgid and
89973         getpwuid resp.
89974         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89975         Reported by Andreas Jaeger.
89976
89977 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89978
89979         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89980         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89981         so `make install' also works in VPATH builds.
89982
89983 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89984
89985         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89986         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89987         can be used in subdirectories.
89988
89989 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89990
89991         * lib/modechange.c: Do not assume that mode_t uses the
89992         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89993         the other-execute bit of FOO even if S_IXOTH != 1.
89994
89995         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89996         WOTH, XOTH, ALLM): New macros.
89997         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89998          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89999         Use them.
90000         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
90001         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
90002         (mode_compile):
90003         No need to use uintmax_t; unsigned long is long enough.
90004         Don't bother to get suffix since we don't use it.
90005
90006 2000-12-26  Jim Meyering  <meyering@lucent.com>
90007
90008         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
90009         better with autoheader.
90010
90011 2000-12-24  Jim Meyering  <meyering@lucent.com>
90012
90013         * lib/hash.c (is_prime): Return explicit boolean values.
90014         (hash_get_first): Return NULL to appease Irix5.6's 89.
90015         Reported by Nelson Beebe.
90016
90017 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90018
90019         * lib/localcharset.c (locale_charset): Add support for Win32.
90020
90021 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90022
90023         * lib/physmem.h, lib/physmem.c: New files.
90024
90025         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90026         (noinst_HEADERS): Add physmem.h.
90027
90028         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90029         't' for compatibility with Solaris 8 sort.
90030
90031 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90032
90033         * lib/config.charset: Add support for BeOS.
90034
90035 2000-12-17  Jim Meyering  <meyering@lucent.com>
90036
90037         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90038         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90039
90040 2000-12-16  Jim Meyering  <meyering@lucent.com>
90041
90042         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90043         N and M) would have treated it like `chown N:N FILE'.
90044
90045         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90046
90047 2000-12-16  Jim Meyering  <meyering@lucent.com>
90048
90049         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90050         SHELLS_FILE to a file name that's useful on djgpp systems.
90051         Include stdlib.h.
90052         (ADDITIONAL_DEFAULT_SHELLS): Define.
90053         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90054         Based mostly on a patch from Prashant TR.
90055
90056 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90057
90058         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90059         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90060         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90061
90062 2000-12-08  Andreas Schwab  <schwab@suse.de>
90063
90064         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90065         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90066
90067 2000-12-07  Jim Meyering  <meyering@lucent.com>
90068
90069         * lib/stripslash.c (ISSLASH): Define.
90070         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90071         `/'.
90072         From Prashant TR.
90073
90074         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90075         (dir_name_r): Declare this function as static.
90076         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90077         manifest itself on a name containing a mix of slashes and
90078         backslashes.
90079         Make this function work with names starting with a DOS-style
90080         drive letter and colon prefix.
90081         (dir_name): Append `.' if necessary.
90082         Based mostly on patches from Prashant TR and Eli Zaretskii.
90083
90084         * lib/dirname.h (dir_name_r): Remove prototype.
90085
90086 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90087
90088         * m4/off_t-format.m4: Remove this file.
90089         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90090
90091 2000-12-06  Jim Meyering  <meyering@lucent.com>
90092
90093         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90094         replacement strtoull, we may well need the replacement strtoul, too.
90095         Check for declarations of strtoul and strtoull.
90096         Check for strtol.  Mainly as a cue to cause automake to include
90097         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90098         Check for limits.h -- strtol.c needs it.
90099
90100 2000-12-05  Jim Meyering  <meyering@lucent.com>
90101
90102         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90103
90104 2000-12-04  Jim Meyering  <meyering@lucent.com>
90105
90106         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90107         Also include memory.h, stdlib.h, unistd.h if appropriate.
90108         Reported by Andreas Jaeger (conflicting declaration of malloc).
90109
90110 2000-12-02  Jim Meyering  <meyering@lucent.com>
90111
90112         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90113         * m4/jm-macros.m4 (jm_MACROS): require it.
90114
90115 2000-12-02  Jim Meyering  <meyering@lucent.com>
90116
90117         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90118
90119 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90120
90121         * lib/memrchr.c: Include <config.h> before any system include file.
90122
90123 2000-11-30  Jim Meyering  <meyering@lucent.com>
90124
90125         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90126
90127 2000-11-30  Jim Meyering  <meyering@lucent.com>
90128
90129         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90130
90131 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90132
90133         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90134
90135 2000-11-26  Jim Meyering  <meyering@lucent.com>
90136
90137         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90138
90139 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90140
90141         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90142         size of (size_t) -1; it's not portable.
90143
90144 2000-11-17  Jim Meyering  <meyering@lucent.com>
90145
90146         * lib/strstr.c: Update from GNU libc.
90147
90148 2000-11-17  Akim Demaille  <akim@epita.fr>
90149
90150         * lib/obstack.h: Formatting changes.
90151         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90152         prevent type checking.
90153         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90154         cast the value to (void *): assigning a `foo *' to a `void *'
90155         variable is valid.
90156         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90157
90158 2000-11-16  Jim Meyering  <meyering@lucent.com>
90159
90160         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90161
90162 2000-11-11  Jim Meyering  <meyering@lucent.com>
90163
90164         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90165
90166 2000-11-10  Jim Meyering  <meyering@lucent.com>
90167
90168         * lib/obstack.h: Update from GNU libc.
90169         * lib/obstack.c: Likewise.
90170
90171 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90172
90173         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90174
90175 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90176
90177         * lib/getusershell.c (setusershell): Use rewind rather than
90178         fseek/fseeko, to avoid configuration hassles with fseeko.
90179         Don't bother opening SHELLS_FILE if shellstream is NULL;
90180         it's not necessary.
90181
90182 2000-11-05  Jim Meyering  <meyering@lucent.com>
90183
90184         * lib/makepath.h (make_dir): Declare.
90185         * lib/makepath.c (make_dir): Remove `static' attribute.
90186         Tweak a comment.
90187
90188 2000-11-04  Jim Meyering  <meyering@lucent.com>
90189
90190         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90191
90192 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90193
90194         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90195         last one in a bucket, advance to the next bucket.
90196
90197 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90198
90199         * lib/fnmatch.c: Do not comment out all the code if we are using
90200         the GNU C library, because in some cases we are replacing buggy
90201         code in the GNU C library itself.
90202
90203 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90204
90205         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90206         (regex_compile): Catch bogus \(\1\).
90207
90208 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90209
90210         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90211         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90212         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90213
90214 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90215
90216         * lib/error.h, getline.h, modechange.h:
90217         Remove "2000" from Copyright line, as the file hasn't been
90218         changed this year other than in the copyright notice.
90219
90220         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90221         was changed this year.
90222
90223 2000-10-29  Jim Meyering  <meyering@lucent.com>
90224
90225         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90226         renaming.
90227         * m4/ls-mntd-fs.m4: Likewise
90228
90229 2000-10-29  Jim Meyering  <meyering@lucent.com>
90230
90231         * lib/xstat.in: Fix grammar in comment.
90232
90233 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90234
90235         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90236         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90237         doesn't define __restrict_arr.
90238
90239 2000-10-28  Jim Meyering  <meyering@lucent.com>
90240
90241         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90242         (jm_PREREQ_MEMCHR): New function.
90243
90244 2000-10-28  Jim Meyering  <meyering@lucent.com>
90245
90246         * lib/memchr.c: Update from libc.
90247         Adjust for portability:
90248         [HAVE_STDLIB_H]: Include stdlib.h.
90249         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90250         Undef __memchr, too.
90251         [!weak_alias]: Define __memchr to memchr.
90252
90253         * lib/regex.c: Update from libc.
90254         * lib/regex.h: Likewise.
90255         * lib/getopt1.c: Likewise.
90256         * lib/memcmp.c: Likewise.
90257
90258         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90259         Avoid using fseek, when possible -- it's broken by design.
90260         Patch by Ulrich Drepper.
90261
90262 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90263
90264         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90265         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90266         Giving in to popular pressure to shut up the compiler with casts.
90267
90268 2000-10-26  Jim Meyering  <meyering@lucent.com>
90269
90270         * lib/strftime.c: Update from libc.
90271
90272 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90273
90274         * regex.c: More `unsigned char' -> `re_char' changes.
90275         Also change several `int' into `re_wchar_t'.
90276         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90277         (PUSH_FAILURE_POINTER): Don't cast any more.
90278         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90279         We want GCC to complain, since this piece of code makes
90280         re_match non-reentrant, which *should* be fixed.
90281         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90282         (EXTEND_BUFFER): Use RETALLOC.
90283         (SET_LIST_BIT): Don't cast.
90284         (re_wchar_t): New type.
90285         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90286         that those two functions will always properly return.
90287         (IMMEDIATE_QUIT_CHECK): Cast to void.
90288         (analyse_first): Use recursion rather than an explicit stack.
90289         (re_compile_fastmap): Can't fail anymore.
90290         (re_search_2): Don't check re_compile_fastmap for failure.
90291         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90292         Now also sets the new value (passed in a new argument).
90293         (re_match_2_internal): Use it.
90294         Also, use a new var `reg' of type size_t when looping through regs
90295         rather than reuse the inappropriate `mcnt'.
90296
90297 2000-10-25  Jim Meyering  <meyering@lucent.com>
90298
90299         * lib/obstack.c: Update from libc.
90300
90301 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90302
90303         * regex.c (regex_compile): Change the way of handling a range from
90304         a char less than 256 to a char not less than 256.
90305
90306 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90307
90308         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90309         NT-Emacs only.
90310         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90311         so that re_search functions only quit when callers expect them to.
90312
90313 2000-10-23  Jim Meyering  <meyering@lucent.com>
90314
90315         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90316         wrong.  That set_locale call must not have any side effects.
90317         From Paul Eggert.
90318
90319 2000-10-22  Jim Meyering  <meyering@lucent.com>
90320
90321         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90322         [CYCLIC]: Remove now-unused definition.
90323
90324         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90325         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90326         Suggestion from Ulrich Drepper.
90327
90328 2000-10-21  Jim Meyering  <meyering@lucent.com>
90329
90330         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90331         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90332         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90333
90334 2000-10-21  Jim Meyering  <meyering@lucent.com>
90335
90336         * lib/dirname.c (memrchr): Declare if necessary.
90337         (dir_name): Remove the restriction that there be no
90338         trailing slashes.  Now, this code skips past them, effectively
90339         ignoring them.
90340         [TEST_DIRNAME] (main): New unit tests.
90341
90342         * lib/memrchr.c: New file from GNU libc.
90343         Undef __memrchr, too.
90344         [!weak_alias]: Define __memrchr to memrchr.
90345         Guard weak_alias use with `#ifdef weak_alias'.
90346
90347 2000-10-21  Jim Meyering  <meyering@lucent.com>
90348
90349         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90350         (dir_name): Use dir_name_r.
90351         * lib/dirname.h (dir_name_r): Declare it.
90352
90353 2000-10-17  Jim Meyering  <meyering@lucent.com>
90354
90355         * lib/quote.h (PARAMS): Define and use.
90356         Reported by Akim Demaille.
90357
90358         * lib/getopt.c: Update from libc.
90359
90360 2000-10-16  Jim Meyering  <meyering@lucent.com>
90361
90362         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90363         setlocale.
90364         From Jan Fedak.
90365
90366 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90367
90368         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90369
90370 2000-09-25  Jim Meyering  <meyering@lucent.com>
90371
90372         * lib/md5.h (rol): Define (from GnuPG).
90373
90374         * lib/sha.c: Give credit (GnuPG) where due.
90375         (M): Use rol rather than open-coding it.
90376         Add a FIXME comment.
90377
90378 2000-09-21  Jim Meyering  <meyering@lucent.com>
90379
90380         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90381         Reported by Michael Stone.
90382
90383 2000-09-20  Jim Meyering  <meyering@lucent.com>
90384
90385         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90386         (noinst_HEADERS): Add sha.h.
90387         Based on code from Scott G. Miller and from GnuPG.
90388
90389 2000-09-18  Jim Meyering  <meyering@lucent.com>
90390
90391         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90392         LIBS. Otherwise, everyone ends up linking with -lelf for some
90393         configurations.
90394         Reported by Mike Stone.
90395
90396 2000-09-15  Jim Meyering  <meyering@lucent.com>
90397
90398         * lib/regex.c: Update from libc.
90399
90400 2000-09-10  Jim Meyering  <meyering@lucent.com>
90401
90402         * lib/getopt.c (_getopt_internal): Update from glibc.
90403
90404 2000-09-09  Jim Meyering  <meyering@lucent.com>
90405
90406         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90407         think it should be used as a general replacement for isascii.
90408         * lib/fnmatch.c: Likewise.
90409         * lib/mbswidth.c: Likewise
90410         * lib/regex.c: Likewise.
90411
90412         Don't use atoi.
90413         * lib/userspec.c: Include sys/param.h and limits.h.
90414         Include xstrtol.h.
90415         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90416         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90417         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90418         UID, GID.  Check range.
90419
90420 2000-09-06  Jim Meyering  <meyering@lucent.com>
90421
90422         * lib/getopt.c (_getopt_internal): Update from glibc.
90423
90424 2000-08-30  Jim Meyering  <meyering@lucent.com>
90425
90426         * lib/strftime.c: Merge in changes from GNU libc.
90427
90428 2000-08-26  Jim Meyering  <meyering@lucent.com>
90429
90430         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90431         * m4/fpending.m4: New file.
90432
90433 2000-08-26  Jim Meyering  <meyering@lucent.com>
90434
90435         * lib/closeout.c: Include "__fpending.h".
90436         (close_stdout_status): Return right away if there's nothing to flush.
90437
90438         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90439         * lib/__fpending.c: New file.
90440         * lib/__fpending.h: New file.
90441
90442 2000-08-20  Jim Meyering  <meyering@lucent.com>
90443
90444         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90445         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90446         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90447
90448 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90449
90450         Improve fileutils installation on systems where running
90451         programs (like install) can't be unlinked.
90452         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90453         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90454
90455 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90456
90457         Standardize on "memory exhausted" instead of "Memory exhausted"
90458         or "virtual memory exhausted".
90459         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90460         "virtual memory exhausted".
90461         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90462         our own message.
90463         * lib/userspec.c (parse_user_spec): Likewise.
90464         * lib/bumpalloc.h: comment fix
90465         * lib/same.c, userspec.c: Include xalloc.h.
90466
90467         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90468         not char *const and pointing to a constant array.
90469         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90470         (xrealloc): Comment fix.
90471
90472         * lib/userspec.c (parse_user_spec):
90473         Don't translate a message until just before returning,
90474         to avoid unnecessary translation.
90475
90476 2000-08-07  Jim Meyering  <meyering@lucent.com>
90477
90478         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90479         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90480         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90481         getgroups.c, gethostname.c, getopt.h, group-member.c,
90482         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90483         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90484         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90485         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90486         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90487         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90488         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90489         yesno.c: Back out Copyright date changes for each file with no change
90490         this year.  This eases coordination with other programs using the same
90491         source code modules.  From Paul Eggert.
90492
90493 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90494
90495         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90496         not char, for compatibility with glibc 2.1.3 strftime.c.
90497
90498 2000-08-03  Greg McGary  <greg@mcgary.org>
90499
90500         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90501         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90502         (EXTEND_BUFFER): Use them.
90503
90504 2000-08-01  Jim Meyering  <meyering@lucent.com>
90505
90506         * lib/dirname.c (ISSLASH): Define.
90507         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90508         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90509         both `\' and `/' may be use as path separators.
90510         Based on a patch from Prashant TR.
90511
90512 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90513
90514         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90515         slot vector a constant, since it might get modified.
90516
90517 2000-07-31  Jim Meyering  <meyering@lucent.com>
90518
90519         * lib/xmalloc.c: Use `virtual memory exhausted', not
90520         `Memory exhausted'.
90521         * lib/obstack.c (print_and_abort): Likewise.
90522
90523 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90524
90525         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90526         buffer, so that the caller can always quote one small
90527         component of a "memory exhausted" message in slot 0.
90528         From a suggestion by Jim Meyering.
90529
90530 2000-07-30  Jim Meyering  <meyering@lucent.com>
90531
90532         * lib/makepath.c (make_path): Quote the other instance, too.
90533
90534         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90535         (STATIC_BUF_SIZE): Define.
90536         (quotearg_n_options): Use only statically allocated storage when
90537         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90538         than STATIC_BUF_SIZE.
90539
90540 2000-07-29  Jim Meyering  <meyering@lucent.com>
90541
90542         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90543         * lib/dirname.c (dir_name): Likewise.
90544
90545         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90546         `/'.
90547
90548         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90549         (dir_name): Assert that there are no trailing slashes.
90550
90551 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90552
90553         * lib/mbswidth.h (mbswidth): Add a flags argument.
90554         (mbswidth): New declaration.
90555         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90556         * lib/mbswidth.c (mbswidth): Add a flags argument.
90557         (mbsnwidth): New function.
90558
90559 2000-07-24  Jim Meyering  <meyering@lucent.com>
90560
90561         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90562
90563 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90564
90565         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90566
90567 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90568
90569         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90570         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90571         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90572         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90573         invoke multibyte primitives.
90574
90575 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90576
90577         * lib/quotearg.c:
90578         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90579         so that mbstate_t is always defined.
90580
90581         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90582         be 1 in at least one GCC installation, and this configuration
90583         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90584         performance on hosts that have mbrtowc but have only unibyte
90585         locales, but I assume these hosts are rare.
90586
90587 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90588
90589         * lib/mbswidth.c (_XOPEN_SOURCE):
90590         Don't define; this causes problems on Solaris 7.
90591         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90592
90593 2000-07-23  Jim Meyering  <meyering@lucent.com>
90594
90595         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90596         too: getgrgid, getpwuid, getuid.
90597
90598 2000-07-23  Jim Meyering  <meyering@lucent.com>
90599
90600         * lib/basename.c (base_name): Add an assertion.
90601
90602 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90603
90604         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90605         shadow its mbsinit function.
90606
90607 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90608
90609         * lib/mbswidth.h: New file.
90610         * lib/mbswidth.c: New file.
90611         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90612         (noinst_HEADERS): Add mbswidth.h.
90613
90614 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90615
90616         * lib/config.charset: Add support for FreeBSD. Improve support for
90617         HP-UX and IRIX 6.
90618
90619 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90620
90621         * m4/mbswidth.m4: New file.
90622         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90623
90624 2000-07-15  Jim Meyering  <meyering@lucent.com>
90625
90626         * lib/makepath.c: Include quote.h.
90627         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90628         corresponding argument in a `quote (...)' call.
90629         Give better diagnostics.
90630
90631         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90632         (noinst_HEADERS): Add quote.h.
90633
90634         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90635         from tar's src/misc.c.
90636         * lib/quote.h: New file.  Prototypes for same.
90637
90638 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90639
90640         From a suggestion by Bruno Haible.
90641         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90642         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90643         to decide whether to define the BeOS workaround macro;
90644         this adjusts to the change to AC_MBSTATE_T.
90645
90646 2000-07-14  Jim Meyering  <meyering@lucent.com>
90647
90648         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90649         jm_AC_TYPE_UINTMAX_T.
90650
90651 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90652
90653         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90654
90655         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90656         quotearg_buffer_restyled): Add support for
90657         clocale_quoting_style.  Undo previous change to
90658         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90659         and "{RIGHT QUOTATION MARK}" msgids.
90660
90661 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90662
90663         From a suggestion by Bruno Haible.
90664         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90665         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90666         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90667         and mbstate_t, to a single-part test that simply defines mbstate_t.
90668         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90669         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90670
90671 2000-07-10  Jim Meyering  <meyering@lucent.com>
90672
90673         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90674
90675         * m4/gnu-source.m4: Output to confdefs.h directly.
90676         Suggestion from Akim Demaille.
90677
90678 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90679
90680         The old behavior of quoting `like this' doesn't look good with
90681         newer, ISO-style fonts.  See:
90682         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90683
90684         Instead, quote "like this" by default.  Let the translator
90685         tailor the locale-specific quoting behavior by providing
90686         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90687
90688         * lib/quotearg.c (N_): New macro.
90689         (gettext_default): New function.
90690         (quotearg_buffer_restyled): Use
90691         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90692         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90693
90694 2000-07-09  Jim Meyering  <meyering@lucent.com>
90695
90696         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90697         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90698
90699         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90700         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90701
90702 2000-07-09  Jim Meyering  <meyering@lucent.com>
90703
90704         * lib/Most files: Update copyright dates to include 2000.
90705
90706 2000-07-08  Jim Meyering  <meyering@lucent.com>
90707
90708         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90709         if not defined.
90710         (xgethostname): Remove now-unnecessary #ifdef.
90711         Move declaration of `err' into loop where it's used.
90712
90713 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90714         and Bruno Haible  <haible@clisp.cons.org>
90715
90716         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90717         only if the test for an object-type mbstate_t fails.  This
90718         prevents us from mistakenly reporting that mbstate_t is a
90719         system object type after we "#define mbstate_t int" to work
90720         around its lack.
90721
90722 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90723         and Bruno Haible  <haible@clisp.cons.org>
90724
90725         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90726
90727 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90728
90729         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90730         to strerror_r.
90731         Include <ctype.h> for use of isalpha.
90732
90733 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90734
90735         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90736         by allocating a larger buffer. Test the gethostname return value for
90737         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90738         returns an error and ENAMETOOLONG isn't defined.
90739
90740 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90741
90742         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90743         dimension.
90744
90745 2000-07-04  Jim Meyering  <meyering@lucent.com>
90746
90747         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90748         of the deprecated AC_CHECKING.
90749
90750 2000-07-04  Jim Meyering  <meyering@lucent.com>
90751
90752         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90753         Reported by Bruno Haible.
90754
90755 2000-07-04  Jim Meyering  <meyering@lucent.com>
90756
90757         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90758         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90759         lacks mbrtowc.
90760
90761 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90762
90763         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90764         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90765
90766 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90767         and Bruno Haible  <haible@clisp.cons.org>
90768
90769         * lib/quotearg.c (mbrtowc):
90770         Assign to *pwc, and return 1 only if result is nonzero.
90771         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90772
90773 2000-07-03  Jim Meyering  <meyering@lucent.com>
90774
90775         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90776
90777 2000-07-03  Jim Meyering  <meyering@lucent.com>
90778
90779         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90780         This is necessary to get a definition of e.g., UTMP_FILE on
90781         HP-UX 10.20.
90782         From Bob Proulx.
90783
90784 2000-07-02  Jim Meyering  <meyering@lucent.com>
90785
90786         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90787
90788         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90789         AC_LIBOBJ(function_name).
90790         * m4/chown.m4: Likewise.
90791         * m4/fnmatch.m4: Likewise.
90792         * m4/ftruncate.m4: Likewise.
90793         * m4/getgroups.m4: Likewise.
90794         * m4/getline.m4: Likewise.
90795         * m4/group-member.m4: Likewise.
90796         * m4/jm-macros.m4: Likewise.
90797         * m4/lstat.m4: Likewise.
90798         * m4/malloc.m4: Likewise.
90799         * m4/memcmp.m4: Likewise.
90800         * m4/nanosleep.m4: Likewise.
90801         * m4/putenv.m4: Likewise.
90802         * m4/realloc.m4: Likewise.
90803         * m4/regex.m4: Likewise.
90804         * m4/stat.m4: Likewise.
90805         * m4/strftime.m4: Likewise.
90806
90807 2000-07-02  Jim Meyering  <meyering@lucent.com>
90808
90809         * lib/quotearg.c (mbstate_t): Don't define here.
90810
90811 2000-07-02  Jim Meyering  <meyering@lucent.com>
90812
90813         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90814
90815 2000-07-01  Jim Meyering  <meyering@lucent.com>
90816
90817         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90818
90819 2000-07-01  Jim Meyering  <meyering@lucent.com>
90820
90821         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90822         problem.
90823
90824 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90825
90826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90827         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90828
90829 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90830
90831         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90832         per change in ../m4/ls-mntd-fs.m4.
90833         (read_filesystem_list): Ignore symbolic links.
90834
90835 2000-06-29  Jim Meyering  <meyering@lucent.com>
90836
90837         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90838         for declaration of strcmp.
90839
90840         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90841
90842         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90843         Avoid warning by casting result to `char *' to remove `const'.
90844
90845 2000-06-28  Jim Meyering  <meyering@lucent.com>
90846
90847         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90848         included by quotearg.c, for which we perform this test.  From
90849         Bruno Haible.
90850
90851 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90852
90853         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90854         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90855         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90856
90857 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90858
90859         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90860
90861 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90862
90863         savedir now sets errno on failure and invokes xmalloc to get memory.
90864         Fix a couple of other minor bugs while we're at it.
90865
90866         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90867         (NAMLEN): Remove macro.
90868         (malloc, realloc): Remove decls.
90869         (stpcpy): Likewise.
90870         ("xalloc.h"): Include.
90871         (NAME_SIZE_DEFAULT): New macro.
90872         (savedir): Use xmalloc / xrealloc to allocate memory.
90873         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90874         Skip "" directory entries.
90875         Use strlen to calculate directory entry length, since the old method
90876         is rarely used these days and isn't worth supporting.
90877         Don't use a pointer after freeing it.
90878         Check for integer overflow when calculating allocation size.
90879         Use memcpy to copy entries, instead of stpcpy.
90880         Set errno properly when returning NULL.
90881         Check for readdir error.
90882
90883 2000-06-26  Jim Meyering  <meyering@lucent.com>
90884
90885         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90886
90887 2000-06-25  Jim Meyering  <meyering@lucent.com>
90888
90889         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90890         Linux header bug when _XOPEN_SOURCE is defined to 500.
90891
90892 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90893
90894         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90895         deficiency.
90896
90897 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90898
90899         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90900         Include xalloc.h.
90901         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90902
90903 2000-06-24  Jim Meyering  <meyering@lucent.com>
90904
90905         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90906         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90907         for which strerror does return char*, but which lacks a conveniently
90908         accessible declaration of the function.  If the compile-test says
90909         strerror_r doesn't work, then resort to a `run'-test that works on
90910         BeOS and segfaults on DEC Unix.
90911
90912 2000-06-24  Jim Meyering  <meyering@lucent.com>
90913
90914         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90915
90916 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90917
90918         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90919         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90920
90921 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90922
90923         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90924         (mbrtowc, mbstate_t): Define substitutes if
90925         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90926         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90927         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90928
90929 2000-06-23  Jim Meyering  <meyering@lucent.com>
90930
90931         * m4/afs.m4: Add missing AC_MSG_RESULT.
90932         Reported by Bruno Haible.
90933
90934         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90935         Suggestion from Bruno Haible.
90936
90937 2000-06-23  Jim Meyering  <meyering@lucent.com>
90938
90939         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90940
90941 2000-06-21  Jim Meyering  <meyering@lucent.com>
90942
90943         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90944
90945 2000-06-21  Jim Meyering  <meyering@lucent.com>
90946
90947         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90948         (noinst_HEADERS): Add getstr.h.
90949
90950         * lib/getline.c (getstr): Move into a separate file.
90951         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90952         the following changes: new parameter, delim2; both delim[12]
90953         parameters have type `int', not `char'.  The latter would lose
90954         with 8-bit delimiters.
90955         * lib/getstr.h: New file.
90956
90957 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90958
90959         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90960         than 1024, return a memory chunk of least possible size, instead
90961         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90962         Use free/xmalloc instead of xrealloc to avoid copying for very long
90963         paths.
90964
90965 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90966
90967         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90968         the empty string.
90969
90970 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90971
90972         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90973         address, not strdup.  Include <stdlib.h> and don't declare free().
90974
90975 2000-06-19  Jim Meyering  <meyering@lucent.com>
90976
90977         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90978
90979 2000-06-18  Jim Meyering  <meyering@lucent.com>
90980
90981         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90982
90983         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90984         `checking whether...' message to be consistent with that of the
90985         lstat test.
90986
90987 2000-06-18  Jim Meyering  <meyering@lucent.com>
90988
90989         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90990         Besides, these days every porting target provides a mkdir function.
90991
90992         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90993         needed. (this snippet comes from src/system.h).
90994
90995 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90996
90997         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90998
90999 2000-06-15  Paul Eggert  <eggert@twinsun.com>
91000
91001         * lib/human.c (adjust_value): New function.
91002         (human_readable_inexact): Apply rounding style even when
91003         printing approximate values.
91004
91005 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91006
91007         * lib/human.c (human_readable_inexact): Allow an input block
91008         size that is not a multiple of the output block size, and vice versa.
91009         Reported by Piergiorgio Sartor.
91010
91011 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91012
91013         * lib/getdate.y (get_date): Apply relative times after time
91014         zone indicator, not before.  Reported by Todd A. Jacobs.
91015
91016 2000-06-13  Jim Meyering  <meyering@lucent.com>
91017
91018         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91019
91020         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91021
91022 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91023
91024         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91025
91026 2000-06-12  Jim Meyering  <meyering@lucent.com>
91027
91028         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91029         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91030         optional argument.
91031         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91032         the optional argument, `lib'.
91033
91034 2000-06-08  Jim Meyering  <meyering@lucent.com>
91035
91036         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91037
91038 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91039
91040         Rewrite largefile configuration so that we don't need to run
91041         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91042         AC_CANONICAL_HOST in configure.in -- jmm]
91043
91044         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91045         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91046         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91047         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91048         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91049         All uses changed.
91050         Instead of inspecting the output of getconf, try to compile the
91051         test program without and with the macro definition.
91052         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91053         for getconf.  Instead, check for the needed flags by compiling
91054         test programs.
91055
91056 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91057
91058         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91059
91060 2000-06-04  Jim Meyering  <meyering@lucent.com>
91061
91062         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91063         SunOS 4.1.4 for which gid_t is an unsigned type.
91064
91065 2000-06-03  Jim Meyering  <meyering@lucent.com>
91066
91067         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91068         now that autoconf requires that.
91069
91070         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91071         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91072         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91073
91074 2000-06-03  Jim Meyering  <meyering@lucent.com>
91075
91076         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91077
91078 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91079
91080         * m4/glibc21.m4: New file.
91081         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91082
91083 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91084
91085         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91086         newer, don't install charset.alias.
91087         * lib/config.charset: Change the Linux/glibc rules so they become empty
91088         on glibc-2.1 or newer.
91089
91090 2000-06-02  Jim Meyering  <meyering@lucent.com>
91091
91092         * lib/mountlist.c: Back out last change.  Instead, do this...
91093         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91094         me_dummy member using the same `ignore'-testing code.
91095         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91096         fs_type strings.
91097         From Mark D. Roth.
91098
91099 2000-05-29  Jim Meyering  <meyering@lucent.com>
91100
91101         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91102         mounts with the `ignore' attribute.  Based on a patch from
91103         Mark D. Roth.
91104
91105 2000-05-28  Jim Meyering  <meyering@lucent.com>
91106
91107         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91108         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91109         * m4/stat.m4: Likewise.
91110         * m4/lstat.m4: Likewise.
91111         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91112
91113         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91114         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91115
91116 2000-05-26  Jim Meyering  <meyering@lucent.com>
91117
91118         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91119
91120 2000-05-24  Jim Meyering  <meyering@lucent.com>
91121
91122         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91123         autoconf requires that.
91124         * m4/lib-check.m4: Likewise.
91125         * m4/jm-macros.m4: Likewise.
91126         * m4/strftime.m4: Likewise.
91127
91128         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91129         AC_CHECK_DECLS, now that autoconf requires that.
91130
91131 2000-05-22  Jim Meyering  <meyering@lucent.com>
91132
91133         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91134         * m4/lstat.m4: Likewise.
91135
91136 2000-05-22  Jim Meyering  <meyering@lucent.com>
91137
91138         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91139
91140 2000-05-20  Jim Meyering  <meyering@lucent.com>
91141
91142         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91143         (jm_PREREQ): Use it.
91144
91145 2000-05-18  Jim Meyering  <meyering@lucent.com>
91146
91147         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91148         back, too, since it may have been modified by allocate_entry.
91149         (hash_delete): Rewrite to use neither the assignment operator
91150         nor the comma operator in an if-expression.
91151
91152 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91153
91154         * lib/closeout.c:
91155         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91156         Remove; no longer needed.
91157         "quotearg.h": Add include.
91158         (file_name): Do not bother to explicitly initialize to NULL; it's less
91159         efficient on some hosts.
91160         (close_stdout_status): Remove test as to whether stdout was already
91161         closed; it breaks for the case "echo x | sort >&-".
91162         Quote file name colons.
91163         Do not assume that _("write error") lacks format strings.
91164
91165 2000-05-15  Jim Meyering  <meyering@lucent.com>
91166
91167         * lib/version-etc.c (version_etc_copyright): Update the copyright
91168         string used in all --version output.
91169
91170 2000-05-14  Jim Meyering  <meyering@lucent.com>
91171
91172         * lib/closeout.c (close_stdout_set_file_name): New function.
91173         (close_stdout_status): Use new file-scoped global.
91174         Return right away if fstat says the stdout file descriptor is invalid.
91175         * lib/closeout.h (close_stdout_set_file_name): Declare.
91176
91177 2000-05-10  Jim Meyering  <meyering@lucent.com>
91178
91179         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91180         (close_stdout_set_status): New function.
91181         * lib/closeout.h (close_stdout_set_status): Declare.
91182
91183 2000-05-09  Jim Meyering  <meyering@lucent.com>
91184
91185         * m4/gettext.m4: Rename this...
91186         * m4/libintl.m4: ...to this.
91187
91188 2000-05-08  Jim Meyering  <meyering@lucent.com>
91189
91190         * lib/long-options.c: Don't include closeout.h.
91191         (parse_long_options): Don't call close_stdout for --version.
91192
91193 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91194
91195         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91196         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91197         2.1.3 bug.  This avoids a clash when files like regex.c define
91198         _GNU_SOURCE.
91199
91200 2000-05-06  Jim Meyering  <meyering@lucent.com>
91201
91202         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91203         (AC_REPLACE_FUNCS): Add strnlen.
91204
91205         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91206         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91207
91208         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91209         AC_SEARCH_LIBS call for nanosleep.
91210         (LIB_NANOSLEEP): Set and AC_SUBST.
91211
91212 2000-05-06  Jim Meyering  <meyering@lucent.com>
91213
91214         * lib/strnlen.c: Undefine __strnlen and strnlen.
91215         [!weak_alias]: Define __strnlen to strnlen.
91216
91217         * lib/atexit.c: New file, from libiberty.
91218
91219 2000-05-06  Jim Meyering  <meyering@lucent.com>
91220
91221         * lib/closeout.c (close_stdout_status): Also check for errors on the
91222         stderr stream.
91223
91224 2000-05-05  Jim Meyering  <meyering@lucent.com>
91225
91226         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91227         AC_SEARCH_LIBS call for clock_gettime.
91228         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91229
91230         * m4/search-libs.m4: Update from autoconf.
91231
91232         su doesn't work on Solaris 2.6.
91233         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91234         <shadow.h>.  Reported by Dragos Harabor.
91235
91236 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91237
91238         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91239         memcpy instead of xmalloc, xrealloc, path_concat.
91240         (locale_charset): Treat empty environment variables as absent.
91241         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91242
91243 2000-05-04  Jim Meyering  <meyering@lucent.com>
91244
91245         * lib/getopt.c: Update from glibc.
91246         * lib/obstack.c: Likewise.
91247         * lib/obstack.h: Likewise.
91248         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91249         file
91250
91251         * lib/regex.h: Likewise.
91252         * lib/strndup.c: Likewise.
91253         * lib/strnlen.c: New file, from glibc.
91254
91255 2000-05-03  Jim Meyering  <meyering@lucent.com>
91256
91257         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91258
91259 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91260
91261         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91262         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91263         compile-time test, rather than inspecting host and OS, to
91264         decide whether to define _LARGEFILE_SOURCE.
91265
91266 2000-05-01  Jim Meyering  <meyering@lucent.com>
91267
91268         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91269
91270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91271         Based on a patch from Bruno Haible.
91272
91273 2000-05-01  Jim Meyering  <meyering@lucent.com>
91274
91275         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91276
91277 2000-04-29  Jim Meyering  <meyering@lucent.com>
91278
91279         * lib/path-concat.c: Declare strdup only if it's not defined.
91280         * lib/canon-host.c: Likewise.
91281
91282 2000-04-28  Jim Meyering  <meyering@lucent.com>
91283
91284         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91285         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91286         is included first, then limits.h is included by locale.h by libintl.h.
91287         From John David Anglin.
91288
91289 2000-04-25  Jim Meyering  <meyering@lucent.com>
91290
91291         * lib/makepath.c (S_IRWXUGO): Define.
91292         (make_path): Always perform explicit chmod if MODE specifies any
91293         of the `special' permission bits.  Prompted by a bug report against
91294         install from Mate Wierdl and Joost van Baal.
91295
91296 2000-04-18  Jim Meyering  <meyering@lucent.com>
91297
91298         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91299         (jm_PREREQ): Use it.
91300
91301 2000-04-18  Jim Meyering  <meyering@lucent.com>
91302
91303         * lib/README: New file.
91304
91305         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91306         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91307
91308 2000-04-17  Jim Meyering  <meyering@lucent.com>
91309
91310         Get it right :-)
91311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91312         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91313         Suggestion from Akim Demaille.
91314
91315 2000-04-17  Jim Meyering  <meyering@lucent.com>
91316
91317         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91318         the definition of it to rpl_strftime also defined-away the system's
91319         declaration.
91320
91321 2000-04-15  Jim Meyering  <meyering@lucent.com>
91322
91323         Use `C' to denote so-called `contiguous' files, the same way
91324         that tar does.
91325         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91326         (ftypelet): Use S_ISCTG.
91327         From Michael Deutschmann.
91328
91329 2000-04-14  Jim Meyering  <meyering@lucent.com>
91330
91331         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91332         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91333         clobbered.
91334
91335 2000-04-14  Jim Meyering  <meyering@lucent.com>
91336
91337         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91338
91339 2000-04-13  Jim Meyering  <meyering@lucent.com>
91340
91341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91342         AH_VERBATIM to insert required #ifndef into config.h.in.
91343         Suggestion from Akim Demaille.
91344
91345 2000-04-12  Jim Meyering  <meyering@lucent.com>
91346
91347         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91348         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91349         Christian Krackowizer.
91350
91351         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91352         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91353         (AC_SYS_LARGEFILE): Require.
91354         (AM_C_PROTOTYPES): Require.
91355
91356 2000-04-08  Jim Meyering  <meyering@lucent.com>
91357
91358         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91359         names don't conflict.  Reported by Eli Zaretskii.
91360
91361 2000-04-07  Jim Meyering  <meyering@lucent.com>
91362
91363         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91364         sys/types.h, to work around system header problems on AIX 3.2.5.
91365         From Bruno Haible.
91366
91367 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91368
91369         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91370         bug.  Deal with the different error behavior of Irix iconv.
91371
91372 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91373
91374         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91375         IRIX if the installer said otherwise.
91376
91377 2000-04-05  Jim Meyering  <meyering@lucent.com>
91378
91379         Portability tweaks required for ultrix4.3.
91380         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91381         (jm_CHECK_DECLS): Add getutent to the list of functions.
91382         (_jm_DECL_HEADERS): Add utmpx.h.
91383         From John David Anglin.
91384
91385         * m4/strftime.m4: Back out the 2000-04-02 change.
91386         Instead of that change, simply undefine putenv in the test program.
91387
91388 2000-04-05  Jim Meyering  <meyering@lucent.com>
91389
91390         Portability tweaks required for ultrix4.3.
91391         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91392         getutent.
91393         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91394         * lib/canon-host.c: Declare strdup.
91395         * lib/path-concat.c: Likewise.
91396         From John David Anglin.
91397
91398 2000-04-04  Jim Meyering  <meyering@lucent.com>
91399
91400         Be more DOS 8.3-friendly.
91401         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91402         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91403         * lib/Makefile.am: Reflect renaming.
91404         Reported by Eli Zaretskii.
91405
91406         Use a temporary file name that won't clash with `charset.alias'
91407         in the DOS 8.3 name space.
91408         * lib/Makefile.am (charset_tmp): Define.
91409         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91410         (uninstall-local): Likewise.
91411         Reported by Eli Zaretskii.
91412
91413 2000-04-03  Jim Meyering  <meyering@lucent.com>
91414
91415         * m4/gettext.m4: Fix typo in comment.
91416
91417         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91418         textutils/configure.in).  Suggestion from Paul Eggert.
91419         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91420
91421 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91422
91423         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91424         variable in the shell rather than using putenv, which isn't
91425         portable.  This avoids the configure-time inter-test dependency
91426         on the potentially-renamed putenv function.
91427
91428 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91429
91430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91431         before checking struct stat.st_blksize, so that
91432         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91433
91434 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91435
91436         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91437         since strftime.c uses HAVE_STRFTIME to decide whether to use
91438         the underlying strftime.
91439
91440 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91441
91442         * lib/time/strftime.c (my_strftime): Make sure we call the system
91443         strftime, not ourselves, when invoking the underlying strftime.
91444
91445 2000-03-24  Jim Meyering  <meyering@lucent.com>
91446
91447         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91448         (charset_alias): Define.
91449         (install-exec-local): Factor out common code.
91450         (uninstall-local): Split lines longer than 80.
91451         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91452         (SUFFIXES): Define.
91453         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91454         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91455
91456 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91457
91458         * lib/config.charset: Output a line containing "Packages using this
91459         file".
91460         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91461         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91462         ref-del.sed): New rules.
91463
91464 2000-03-17  Jim Meyering  <meyering@lucent.com>
91465
91466         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91467         Otherwise, include <strings.h>
91468
91469 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91470
91471         * lib/unicodeio.c (utf8_wctomb): New function.
91472         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91473         format instead of in UCS-4 with platform dependent endianness.
91474
91475 2000-03-10  Jim Meyering  <meyering@lucent.com>
91476
91477         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91478         From Marco Franzen.
91479
91480 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91481
91482         * lib/savedir.c (savedir): Work even if directory size is
91483         negative; this can happen with some screwy NFS configurations.
91484
91485 2000-03-06  Jim Meyering  <meyering@lucent.com>
91486
91487         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91488         if it's NULL (because we ran out of memory).  From Bruno Haible.
91489
91490 2000-03-05  Jim Meyering  <meyering@lucent.com>
91491
91492         * lib/localcharset.c ("path-concat.h"): Include.
91493         (get_charset_aliases): Use path_concat instead of ANSI string
91494         concatenation.
91495
91496         * lib/unicodeio.h (PARAMS): Define.
91497         Use it to guard prototype.
91498
91499 2000-03-04  Jim Meyering  <meyering@lucent.com>
91500
91501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91502         for lib/localcharset.c.
91503
91504 2000-03-04  Jim Meyering  <meyering@lucent.com>
91505
91506         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91507         installing into it.
91508         (uninstall-local): Uncomment this rule so `make distcheck' works
91509         once again.
91510
91511         * lib/unicodeio.c (<errno.h>): Include it.
91512         (errno): Declare if not defined.
91513
91514         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91515
91516         * lib/config.charset: New version, incorporating remarks from a linux
91517         i18n mailing list.  From Bruno Haible.
91518
91519 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91520
91521         * m4/codeset.m4: New file.
91522         * m4/iconv.m4: New file.
91523         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91524
91525 2000-03-03  Jim Meyering  <meyering@lucent.com>
91526
91527         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91528
91529 2000-03-02  Jim Meyering  <meyering@lucent.com>
91530
91531         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91532         the messages come out on separate lines.
91533
91534         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91535         rather than jm_CHECK_DECLARATIONS.
91536         * m4/decl.m4: Remove now-unused file.
91537
91538         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91539         geteuid.
91540
91541 2000-03-02  Jim Meyering  <meyering@lucent.com>
91542
91543         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91544
91545 2000-03-01  Jim Meyering  <meyering@lucent.com>
91546
91547         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91548         * lib/unicodeio.c: Likewise.
91549
91550 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91551
91552         * lib/config.charset: New file.
91553         * lib/localcharset.c: New file.
91554         * lib/unicodeio.h, lib/unicodeio.c: New files.
91555         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91556         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91557         (noinst_HEADERS): Add unicodeio.h.
91558         (all-local, install-exec-local, charset.alias): New targets.
91559
91560 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91561
91562         * lib/quotearg.c (ALERT_CHAR): New macro.
91563         (quotearg_buffer_restyled): Use it.
91564
91565 2000-02-27  Jim Meyering  <meyering@lucent.com>
91566
91567         * m4/check-decl.m4: Add getenv to the list.
91568
91569 2000-02-27  Jim Meyering  <meyering@lucent.com>
91570
91571         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91572         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91573
91574         * lib/backupfile.c: Guard inclusion of stdlib.h with
91575         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91576         Declare malloc if needed.
91577
91578         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91579         `#ifndef HAVE_DECL..'
91580         now that autoconf always defines the HAVE_DECL_ symbols.
91581         * lib/human.c: Likewise.
91582         * lib/same.c: Likewise.
91583         * lib/strtoumax.c: Likewise.
91584
91585         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91586         declaration check was not run.
91587         * lib/hash.c: Likewise.
91588         * lib/human.c: Likewise.
91589         * lib/same.c: Likewise.
91590         * lib/strtoumax.c: Likewise.
91591
91592         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91593         `.', then first look up the entire `.'-containing string as a login
91594         name.
91595
91596 2000-02-23  Jim Meyering  <meyering@lucent.com>
91597
91598         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91599         in place of my hack.
91600
91601 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91602
91603         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91604         (textint): New typedef.
91605         (parser_control): Member year changed from int to textint.
91606         All uses changed.
91607         (YYSTYPE): Removed; replaced by %union with int and textint members.
91608         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91609         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91610         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91611         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91612         (date, number, to_year): Use width of number in digits, not its value,
91613         to determine whether it's a 2-digit year, or a 2-digit time.
91614         (yylex): Store number of digits of numeric tokens.
91615         Reported by John Kendall.
91616
91617         (parser_control): Changed from struct parser_control to typedef (for
91618         consistency).  All uses changed.
91619
91620         (tID): Removed; not used.
91621         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91622
91623 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91624
91625         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91626         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91627
91628 2000-02-12  Jim Meyering  <meyering@lucent.com>
91629
91630         * lib/userspec.c (ISDIGIT): Define it.
91631         (isdigit): Remove definition.
91632         (is_number): Use ISDIGIT, not isdigit.
91633         <libintl.h>: Include.
91634         (_ and N_): Define.
91635         (parse_user_spec): Mark translatable strings.
91636
91637 2000-02-10  Jim Meyering  <meyering@lucent.com>
91638
91639         With these changes, nanosleep.[ch] are finally enough like the other
91640         lib/* replacement files to compile on a few more losing systems.
91641
91642         * lib/nanosleep.h: Don't include config.h.
91643         Remove prototype from declaration of nanosleep.
91644         (PARAMS): Remove now-unneeded definition.
91645         * lib/nanosleep.c: #undef nanosleep.
91646         (rpl_nanosleep): Rename from nanosleep.
91647
91648 2000-02-10  Jim Meyering  <meyering@lucent.com>
91649
91650         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91651         gnu_nanosleep to rpl_nanosleep.
91652
91653 2000-02-09  Jim Meyering  <meyering@lucent.com>
91654
91655         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91656         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91657
91658 2000-02-08  Akim Demaille  <akim@epita.fr>
91659
91660         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91661         `[' and `]' and remove uses of `changequote'.
91662         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91663         (AC_SYS_LARGEFILE): Likewise.
91664         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91665         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91666         of changequote.
91667         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91668         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91669         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91670         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91671
91672 2000-02-05  Jim Meyering  <meyering@lucent.com>
91673
91674         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91675         Remove explicit use of AC_HEADER_TIME.  It is required by
91676         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91677         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91678         in autoconf whereby the expansion of the latter ended up preceding
91679         the expansion of its prerequisite, AC_HEADER_TIME.
91680         Reported by Volker Borchert.
91681
91682 2000-02-03  Jim Meyering  <meyering@lucent.com>
91683
91684         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91685
91686 2000-02-03  Jim Meyering  <meyering@lucent.com>
91687
91688         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91689         rather than with `#if HAVE_UTMPNAME'.
91690
91691 2000-02-02  Jim Meyering  <meyering@lucent.com>
91692
91693         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91694         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91695         Reported by Eli Zaretskii.
91696
91697 2000-02-01  Jim Meyering  <meyering@lucent.com>
91698
91699         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91700
91701 2000-01-31  Jim Meyering  <meyering@lucent.com>
91702
91703         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91704         functions.  Add the time.h and sys/time.h headers along with the
91705         AC_REQUIRE'ment of AC_HEADER_TIME.
91706
91707 2000-01-31  Jim Meyering  <meyering@lucent.com>
91708
91709         * lib/nanosleep.h (nanosleep): Guard declaration with
91710         `#if ! HAVE_DECL_NANOSLEEP'.
91711         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91712         the declaration in that vendor's sys/timers.h.
91713         Reported by Christian Krackowizer.
91714
91715         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91716         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91717         (ISPRINT): Likewise.
91718         Reported by Tom Tromey.
91719
91720 2000-01-30  Jim Meyering  <meyering@lucent.com>
91721
91722         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91723
91724         * m4/prereq.m4 (utmp_includes): Define.
91725         Check for ut_user and ut_name members in both struct utmpx
91726         and struct utmp.
91727
91728 2000-01-30  Jim Meyering  <meyering@lucent.com>
91729
91730         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91731         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91732         header files where only utmpx.ut_user is declared.
91733
91734         * lib/readutmp.h (UT_USER): Define.
91735
91736 2000-01-29  Jim Meyering  <meyering@lucent.com>
91737
91738         * m4/lib-check.m4: New file containing library-related checks from
91739         fileutils and sh-utils (textutils had none).
91740
91741 2000-01-28  Jim Meyering  <meyering@lucent.com>
91742
91743         * m4/perl.m4: Change format of warning message to look more like that
91744         from the missing script.  Suggestion from François Pinard.
91745
91746 2000-01-25  Jim Meyering  <meyering@lucent.com>
91747
91748         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91749         well as time.h in the compile check.
91750         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91751         Fix typo in cross-compiling case: s/yes/no/.
91752
91753 2000-01-23  Jim Meyering  <meyering@lucent.com>
91754
91755         * m4/jm-macros.m4: Move df-related tests here from
91756         fileutils/configure.in
91757
91758         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91759         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91760
91761         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91762         s/space/ac_fsusage_space/.
91763         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91764
91765         * m4/ftruncate.m4: New file (derived from part of
91766         fileutils/configure.in).
91767         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91768         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91769
91770         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91771         AC_SUBST these here, rather than just in sh-util/configure.in, so
91772         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91773         all the same.
91774         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91775         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91776         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91777         (AC_SUBST(POW_LIBM)): Likewise.
91778         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91779
91780 2000-01-23  Jim Meyering  <meyering@lucent.com>
91781
91782         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91783         obstack.c.
91784
91785 2000-01-22  Jim Meyering  <meyering@lucent.com>
91786
91787         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91788
91789         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91790
91791         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91792         configure.in
91793         (AC_CHECK_HEADERS): Likewise for sh-utils.
91794         (AC_CHECK_HEADERS): Likewise for textutils.
91795         Merge the three lists of headers.
91796
91797         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91798         from fileutils' configure.in.
91799
91800         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91801         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91802         check-decl.m4.
91803
91804         * m4/check-decl.m4: Use #if rather than #ifdef.
91805         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91806         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91807         (_jm_DECL_HEADERS): Define new function.
91808         (jm_CHECK_DECLARATIONS): Require it.
91809
91810 2000-01-22  Jim Meyering  <meyering@lucent.com>
91811
91812         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91813         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91814         Required for some AIX systems.  Reported by Christian Krackowizer.
91815         [TESTING] (main): New function.
91816
91817         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91818         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91819         letters.
91820
91821         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91822         iswprint.
91823
91824         * lib/strverscmp.c (ISDIGIT): Define.
91825         (strverscmp): Use ISDIGIT, not isdigit.
91826
91827 2000-01-19  Jim Meyering  <meyering@lucent.com>
91828
91829         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91830         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91831         defines `struct timespec' in <sys/time.h>
91832
91833         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91834         Thanks to Akim for explaining.
91835
91836 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91837
91838         * lib/nanosleep.c (nanosleep):
91839         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91840         POSIX.1 doesn't require SA_INTERRUPT and some systems
91841         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91842         it's been part of POSIX.1 since day 1 (in 1988).
91843
91844 2000-01-17  Jim Meyering  <meyering@lucent.com>
91845
91846         * lib/interlock: Remove unused file.  Reported by François Pinard.
91847
91848 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91849
91850         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91851         alert, backslash, formfeed, and vertical tab unnecessarily in
91852         shell quoting style.
91853
91854 2000-01-16  Jim Meyering  <meyering@lucent.com>
91855
91856         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91857         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91858         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91859         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91860
91861 2000-01-16  Jim Meyering  <meyering@lucent.com>
91862
91863         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91864         because the latter didn't work.
91865
91866 2000-01-15  Jim Meyering  <meyering@lucent.com>
91867
91868         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91869         (AC_REPLACE_FUNCS): Add memcpy and memset.
91870         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91871         Add strpbrk.
91872         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91873
91874 2000-01-12  Jim Meyering  <meyering@lucent.com>
91875
91876         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91877         (jm_PREREQ): Use it.
91878         (jm_PREREQ_READUTMP): New macro.
91879         (jm_PREREQ): Use it.
91880
91881 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91882
91883         Quote multibyte characters correctly.
91884         * m4/c-bs-a.m4: New file.
91885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91886         (jm_PREREQ): Use it.
91887
91888 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91889
91890         * m4/uintmax_t.m4: Port to autoconf 2.13.
91891
91892 2000-01-08  Jim Meyering  <meyering@ascend.com>
91893
91894         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91895         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91896
91897 2000-01-04  Jim Meyering  <meyering@ascend.com>
91898
91899         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91900         jm_STRUCT_DIRENT_D_TYPE.
91901         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91902         jm_STRUCT_DIRENT_D_INO.
91903         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91904         jm_STRUCT_UTIMBUF.
91905         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91906         renamings.
91907         * m4/utime.m4: Likewise.
91908
91909         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91910         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91911
91912 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91913
91914         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91915         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91916
91917 2000-01-02  Jim Meyering  <meyering@ascend.com>
91918
91919         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91920         remember if this is necessary.
91921
91922 1999-12-26  Jim Meyering  <meyering@ascend.com>
91923
91924         * m4/jm-macros.m4: Use it here.
91925         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91926
91927 1999-12-23  Jim Meyering  <meyering@ascend.com>
91928
91929         * m4/jm-macros.m4: Check for clock_gettime (moved from
91930         fileutils/configure.in)
91931         Check for gettimeofday.
91932
91933 1999-12-20  Jim Meyering  <meyering@ascend.com>
91934
91935         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91936         autoconf-2.14a-1999-12-20.
91937
91938 1999-12-19  Jim Meyering  <meyering@ascend.com>
91939
91940         * m4/lstat-slash.m4: New file.
91941         * m4/jm-macros.m4: Use the new macro:
91942         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91943
91944 1999-12-07  Jim Meyering  <meyering@ascend.com>
91945
91946         * m4/perl.m4: Require that File::Compare be available, too.
91947         Too many systems seem to lack it.
91948
91949         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91950         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91951
91952 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91953
91954         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91955         problem with the QNX 4.25 shell, which doesn't propagate exit
91956         status of failed commands inside shell assignments.
91957
91958 1999-11-17  Jim Meyering  <meyering@ascend.com>
91959
91960         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91961
91962 1999-11-07  Jim Meyering  <meyering@ascend.com>
91963
91964         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91965
91966 1999-11-06  Jim Meyering  <meyering@ascend.com>
91967
91968         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91969         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91970
91971 1999-11-05  Jim Meyering  <meyering@ascend.com>
91972
91973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91974         configure.in of textutils, fileutils, and sh-utils into this one
91975         (shared between those packages) file.
91976         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91977         AC_STRUCT_ST_BLKSIZE.
91978
91979 1999-11-03  Jim Meyering  <meyering@ascend.com>
91980
91981         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91982         of AC_CHECK_TYPE checks includes unistd.h.
91983         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91984         Suggestion from Akim Demaille.
91985
91986 1999-10-30  Jim Meyering  <meyering@ascend.com>
91987
91988         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91989         m4-quoted string.
91990         * m4/ls-mntd-fs.m4: Likewise.
91991         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91992         * m4/jm-winsz1.m4: Likewise.
91993
91994         * m4/const.m4: Remove file, since the fix made it into the experimental
91995         version of autoconf.
91996         * m4/mktime.m4: Likewise.
91997
91998         * m4/check-type.m4: Remove file, now that the latest version of
91999         AC_CHECK_TYPE takes a third arg to specify additional #includes.
92000
92001         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
92002         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
92003         AC_CHECK_TYPE.
92004
92005 1999-10-04  Jim Meyering  <meyering@ascend.com>
92006
92007         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
92008
92009 1999-09-22  Paul Eggert  <eggert@twinsun.com>
92010
92011         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
92012         2.95.1 bug with HP-UX 10.20.
92013
92014 1999-09-17  Jim Meyering  <meyering@ascend.com>
92015
92016         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92017         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92018         due to missing strdup (against sh-utils-2.0).
92019
92020 1999-08-29  Jim Meyering  <meyering@ascend.com>
92021
92022         * m4/jm-macros.m4: Require jm_BISON.
92023         * m4/bison.m4: New file.
92024
92025 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92026
92027         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92028         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92029
92030 1999-08-05  Jim Meyering  <meyering@ascend.com>
92031
92032         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92033         to avoid conflicts with `conftest' on 8+3 filesystems.
92034         Suggestion from Eli Zaretskii.
92035
92036 1999-08-04  Jim Meyering  <meyering@ascend.com>
92037
92038         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92039         fileutils and sh-utils (textutils's getline test was inadequate).
92040         (AM_FUNC_GETLINE): Run this test.
92041         (AC_CHECK_FUNCS): Check for getdelim.
92042         Reported by Bob Proulx.
92043
92044 1999-08-02  Jim Meyering  <meyering@ascend.com>
92045
92046         * m4/jm-macros.m4: Add a comment.
92047
92048 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92049
92050         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92051         <inttypes.h> defines strtoumax as a macro (and not as a
92052         function).
92053
92054 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92055
92056         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92057         that we can shift, multiply and divide unsigned long long
92058         values; Ultrix cc can't do it.
92059
92060 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92061
92062         * m4/mktime.m4: New file, which is a preview of what should appear
92063         in the next public autoconf release.
92064
92065 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92066
92067         * m4/lfs.m4: Remove this file.
92068         * m4/largefile.m4: New file.  It contains the old contents of
92069         lfs.m4, except that all names with prefix AC_LFS have been
92070         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92071         compatible with future autoconf versions.  Also, some minor m4
92072         quoting problems have been fixed.
92073
92074 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92075
92076         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92077         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92078         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92079         and simplify the shell code.
92080
92081 1999-08-01  Jim Meyering  <meyering@ascend.com>
92082
92083         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92084         m4.
92085
92086 1999-07-20  Jim Meyering  <meyering@ascend.com>
92087
92088         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92089
92090 1999-07-15  Jim Meyering  <meyering@ascend.com>
92091
92092         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92093
92094 1999-05-22  Jim Meyering  <meyering@ascend.com>
92095
92096         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92097
92098 1999-05-20  Jim Meyering  <meyering@ascend.com>
92099
92100         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92101         Add a colon after each `then' in case $4 is empty.
92102
92103 1999-05-16  Jim Meyering  <meyering@ascend.com>
92104
92105         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92106
92107 1999-05-10  Jim Meyering  <meyering@ascend.com>
92108
92109         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92110
92111         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92112         AC_FUNC_MKTIME.
92113
92114 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92115
92116         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92117
92118 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92119
92120         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92121         not CPPFLAGS, so that linking works correctly in IRIX.
92122
92123 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92124
92125         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92126
92127 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92128
92129         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92130         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92131         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92132         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92133         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92134
92135         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92136
92137 1999-04-20  Jim Meyering  <meyering@ascend.com>
92138
92139         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92140         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92141         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92142
92143 1999-04-18  Jim Meyering  <meyering@ascend.com>
92144
92145         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92146         * m4/jm-macros.m4: Use it.
92147
92148 1999-04-06  Jim Meyering  <meyering@ascend.com>
92149
92150         * m4/strftime.m4: Remove test for %f.
92151
92152 1999-03-29  Jim Meyering  <meyering@ascend.com>
92153
92154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92155         superset of the AC_TYPE_* checks in the textutils, fileutils,
92156         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92157         AC_TYPE_PID_T.
92158
92159 1999-03-28  Jim Meyering  <meyering@ascend.com>
92160
92161         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92162         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92163         replaced e.g., in the *.sh files of the sh-utils.
92164
92165 1999-03-20  Jim Meyering  <meyering@ascend.com>
92166
92167         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92168         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92169         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92170
92171 1999-03-19  Jim Meyering  <meyering@ascend.com>
92172
92173         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92174
92175 1999-03-12  Jim Meyering  <meyering@ascend.com>
92176
92177         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92178
92179 1999-03-07  Jim Meyering  <meyering@ascend.com>
92180
92181         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92182         declared.
92183
92184 1999-02-17  Jim Meyering  <meyering@ascend.com>
92185
92186         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92187         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92188
92189 1999-02-07  Jim Meyering  <meyering@ascend.com>
92190
92191         * m4/group-member.m4: New file -- extracted from sh-utils'
92192         configure.in.
92193
92194         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92195         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92196
92197 1999-02-06  Jim Meyering  <meyering@ascend.com>
92198
92199         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92200         * m4/fnmatch.m4: Likewise.
92201         * m4/getgroups.m4: Likewise.
92202         * m4/lstat.m4: Likewise.
92203         * m4/malloc.m4: Likewise.
92204         * m4/putenv.m4: Likewise.
92205         * m4/realloc.m4: Likewise.
92206         * m4/regex.m4: Likewise.
92207         * m4/stat.m4: Likewise.
92208         * m4/strftime.m4: Likewise.
92209         Suggestion from Alain Magloire.
92210
92211         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92212         * m4/fnmatch.m4: Likewise.
92213         * m4/getgroups.m4: Likewise.
92214         * m4/getline.m4: Likewise.
92215         * m4/lstat.m4: Likewise.
92216         * m4/malloc.m4: Likewise.
92217         * m4/memcmp.m4: Likewise.
92218         * m4/putenv.m4: Likewise.
92219         * m4/realloc.m4: Likewise.
92220         * m4/regex.m4: Likewise.
92221         * m4/stat.m4: Likewise.
92222         * m4/strftime.m4: Likewise.
92223         Suggestion from Alain Magloire.
92224
92225         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92226         an argument.
92227
92228         * m4/regex.m4: Add a run-time Test for proper operation of
92229         re_compile_pattern.
92230
92231 1999-01-31  Jim Meyering  <meyering@ascend.com>
92232
92233         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92234
92235 1999-01-30  Jim Meyering  <meyering@ascend.com>
92236
92237         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92238
92239         * m4/jm-mktime.m4: Make this a wrapper around the official
92240         AM_FUNC_MKTIME rather than my private copy, now that the official one
92241         is up to date.
92242         * m4/mktime.m4: Remove file.
92243
92244         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92245         * m4/uptime.m4: Likewise.
92246         * m4/uintmax_t.m4: Likewise.
92247
92248 1999-01-28  Jim Meyering  <meyering@ascend.com>
92249
92250         * m4/jm-macros.m4: Use jm_AFS.
92251         * m4/afs.m4: New file (from fileutils' configure.in).
92252
92253         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92254         * m4/chown.m4: Likewise.
92255         * m4/d-ino.m4: Likewise.
92256         * m4/d-type.m4: Likewise.
92257         * m4/fnmatch.m4: Likewise.
92258         * m4/getgroups.m4: Likewise.
92259         * m4/gettext.m4: Likewise.
92260         * m4/jm-mktime.m4: Likewise.
92261         * m4/jm-winsz2.m4: Likewise.
92262         * m4/lcmessage.m4: Likewise.
92263         * m4/ls-mntd-fs.m4: Likewise.
92264         * m4/malloc.m4: Likewise.
92265         * m4/memcmp.m4: Likewise.
92266         * m4/putenv.m4: Likewise.
92267         * m4/realloc.m4: Likewise.
92268         * m4/st_mtim.m4: Likewise.
92269         * m4/strftime.m4: Likewise.
92270
92271 1999-01-16  Jim Meyering  <meyering@ascend.com>
92272
92273         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92274         (ARGMATCH_DIE_DECL): Define.
92275
92276 1999-01-12  Jim Meyering  <meyering@ascend.com>
92277
92278         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92279         Reported by Lars Hecking.
92280
92281 1999-01-10  Jim Meyering  <meyering@ascend.com>
92282
92283         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92284         gross kludge.
92285         * m4/inttypes_h.m4: Likewise.
92286         * m4/lstat.m4: Likewise.
92287         * m4/malloc.m4: Likewise.
92288         * m4/readdir.m4: Likewise.
92289         * m4/realloc.m4: Likewise.
92290         * m4/st_dm_mode.m4: Likewise.
92291         * m4/stat.m4: Likewise.
92292         * m4/utimbuf.m4: Likewise.
92293         * m4/utimes.m4: Likewise.
92294
92295         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92296         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92297         comments in config.h.in are meaningful.
92298
92299         * m4/jm-macros.m4: Require autoconf-2.13 here.
92300
92301         * m4/regex.m4: By default, don't use the included regex.c on systems
92302         with glibc 2.  Suggestion from Uli Drepper.
92303
92304 1999-01-02  Jim Meyering  <meyering@ascend.com>
92305
92306         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92307
92308 1998-12-18  Jim Meyering  <meyering@ascend.com>
92309
92310         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92311         Based on a suggestion from Lars Hecking.
92312
92313 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92314
92315         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92316
92317 1998-11-16  Jim Meyering  <meyering@ascend.com>
92318
92319         * m4/lfs.m4: Double-quote the `uname...` expression.
92320
92321 1998-11-14  Jim Meyering  <meyering@ascend.com>
92322
92323         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92324         * m4/stat.m4: Likewise.
92325
92326 1998-11-03  Jim Meyering  <meyering@ascend.com>
92327
92328         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92329         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92330
92331 1998-10-18  Jim Meyering  <meyering@ascend.com>
92332
92333         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92334
92335 1998-10-17  Jim Meyering  <meyering@ascend.com>
92336
92337         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92338         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92339         calls for those previously hard-coded headers.  Instead, take a new
92340         parameter.
92341         (jm_CHECK_DECLARATIONS): Reflect interface change.
92342         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92343         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92344
92345         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92346
92347 1998-10-14  Jim Meyering  <meyering@ascend.com>
92348
92349         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92350         instead of "TZ=America/Vancouver".  From Paul Eggert.
92351
92352 1998-10-11  Jim Meyering  <meyering@ascend.com>
92353
92354         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92355         This adds a test for a recently added compatibility fix for mktime.c.
92356         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92357
92358 1998-09-27  Jim Meyering  <meyering@ascend.com>
92359
92360         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92361
92362         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92363         ../configure.in, including a change from Gordon Matzigkeit to allow
92364         cross-compiling for the Hurd.
92365
92366         * m4/glibc.m4: New file/macro to test for the GNU C Library
92367         versions 1 and 2.  From Gordon Matzigkeit.
92368         Indent.
92369
92370 1998-09-21  Jim Meyering  <meyering@ascend.com>
92371
92372         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92373
92374 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92375
92376         Port nanosecond-resolution times to UnixWare 2.1.2 and
92377         pedantic Solaris 2.6.
92378
92379         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92380         AC_STRUCT_ST_MTIM.
92381         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92382         Generate name of ns member, instead of just 1 or undef.
92383         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92384
92385 1998-08-15  Jim Meyering  <meyering@ascend.com>
92386
92387         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92388         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92389         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92390         instead of jm_TYPE_SSIZE_T.
92391
92392 1998-08-12  Jim Meyering  <meyering@ascend.com>
92393
92394         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92395
92396 1998-08-02  Jim Meyering  <meyering@ascend.com>
92397
92398         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92399         in acconfig.h manually.
92400
92401 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92402
92403         * m4/st_mtim.m4: New file.
92404
92405 1998-07-28  Jim Meyering  <meyering@ascend.com>
92406
92407         * m4/utimes.m4: Undef stat.
92408
92409 1998-07-25  Jim Meyering  <meyering@ascend.com>
92410
92411         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92412         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92413
92414 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92415
92416         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92417         uid and gid actually remain unchanged.
92418
92419 1998-07-07  Jim Meyering  <meyering@ascend.com>
92420
92421         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92422
92423 1998-07-04  Jim Meyering  <meyering@ascend.com>
92424
92425         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92426         to prove that this macro can be used in packages without regex.c.
92427
92428 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92429
92430         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92431         is to be used.
92432
92433 1998-07-03  Jim Meyering  <meyering@ascend.com>
92434
92435         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92436
92437         * m4/gettext.m4: New file -- from gettext-0.10.35.
92438         * m4/lcmessage.m4: Likewise.
92439         * m4/progtest.m4: Likewise.
92440
92441         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92442         * m4/jm-macros.m4: Require the new macro.
92443
92444 1998-06-29  Jim Meyering  <meyering@ascend.com>
92445
92446         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92447         for the definition of NGROUPS (used in a system header included
92448         by sys/mount.h).
92449
92450 1998-06-28  Jim Meyering  <meyering@ascend.com>
92451
92452         * m4/ls-mntd-fs.m4: New file.
92453         * m4/fstypename.m4: New file.
92454
92455         * m4/jm-macros.m4: Require the new macro.
92456         * m4/jm-glibc-io.m4: New file.
92457
92458 1998-05-19  Jim Meyering  <meyering@ascend.com>
92459
92460         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92461         * m4/lchown.m4: New file.
92462
92463         * m4/Makefile.am.in: New file.
92464         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92465
92466 1998-05-14  Jim Meyering  <meyering@ascend.com>
92467
92468         * m4/Makefile.am (EXTRA_DIST): Add them.
92469         * m4/jm-macros.m4: New file.
92470         * m4/utimbuf.m4: New file.
92471
92472 1998-05-12  Jim Meyering  <meyering@ascend.com>
92473
92474         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92475
92476 1998-05-11  Jim Meyering  <meyering@ascend.com>
92477
92478         * m4/isc-posix.m4: New file.
92479
92480 1998-05-10  Jim Meyering  <meyering@ascend.com>
92481
92482         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92483
92484 1998-05-09  Jim Meyering  <meyering@ascend.com>
92485
92486         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92487         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92488         with automake.
92489
92490         * m4/ssize_t.m4: New file.
92491         * m4/mktime.m4: Remove file -- the new automake has this now.
92492
92493 1998-04-26  Jim Meyering  <meyering@ascend.com>
92494
92495         * m4/assert.m4: New file.
92496         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92497
92498 1998-04-05  Jim Meyering  <meyering@ascend.com>
92499
92500         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92501         (jm_PREREQ): Use it here.
92502
92503 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92504
92505         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92506         in acconfig.h.
92507
92508 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92509
92510         * m4/prereq.m4: New file.
92511         * m4/error.m4: New file.
92512         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92513
92514 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92515
92516         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92517         cache-check for the same variable -- that defeated the purpose of
92518         the test; the test program was never run.  This was a problem only
92519         on systems with losing getline functions -- HP-UX 10.20 is one.
92520         Reported by Bjorn Helgaas.
92521
92522 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92523
92524         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92525
92526 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92527
92528         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92529
92530         * m4/const.m4: New file.  Use an initializer in this declaration
92531         typedef int charset[2]; const charset x;
92532         Reported by Bob Glickstein.
92533
92534 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92535
92536         * m4/chown.m4: Fix reversed types on -1 args to chown.
92537         From Kaveh Ghazi.
92538
92539 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92540
92541         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92542         Add lseek and memchr.
92543
92544         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92545         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92546         have a 20-character limit on names.
92547
92548 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92549
92550         * m4/inttypes_h.m4: New file.
92551         * m4/uintmax_t.m4: New file.
92552         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92553
92554
92555         -----
92556
92557         Local Variables:
92558         coding: utf-8
92559         End:
92560
92561         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92562
92563         Copying and distribution of this file, with or without
92564         modification, are permitted provided the copyright notice
92565         and this notice are preserved.