New module 'fabs-ieee'.
[gnulib.git] / ChangeLog
1 2012-02-26  Bruno Haible  <bruno@clisp.org>
2
3         New module 'fabs-ieee'.
4         * modules/fabs-ieee: New file.
5
6         Tests for module 'fabsf-ieee'.
7         * modules/fabsf-ieee-tests: New file.
8         * tests/test-fabsf-ieee.c: New file.
9         * tests/test-fabs-ieee.h: New file.
10
11         New module 'fabsf-ieee'.
12         * modules/fabsf-ieee: New file.
13
14 2012-02-26  Bruno Haible  <bruno@clisp.org>
15
16         Tests for module 'fmal-ieee'.
17         * modules/fmal-ieee-tests: New file.
18         * tests/test-fmal-ieee.c: New file.
19
20         New module 'fmal-ieee'.
21         * modules/fmal-ieee: New file.
22
23         Tests for module 'fma-ieee'.
24         * modules/fma-ieee-tests: New file.
25         * tests/test-fma-ieee.c: New file.
26
27         New module 'fma-ieee'.
28         * modules/fma-ieee: New file.
29
30         Tests for module 'fmaf-ieee'.
31         * modules/fmaf-ieee-tests: New file.
32         * tests/test-fmaf-ieee.c: New file.
33         * tests/test-fma-ieee.h: New file.
34
35         New module 'fmaf-ieee'.
36         * modules/fmaf-ieee: New file.
37
38 2012-02-26  Bruno Haible  <bruno@clisp.org>
39
40         Tests for module 'ldexpl-ieee'.
41         * modules/ldexpl-ieee-tests: New file.
42         * tests/test-ldexpl-ieee.c: New file.
43
44         New module 'ldexpl-ieee'.
45         * modules/ldexpl-ieee: New file.
46
47         Tests for module 'ldexp-ieee'.
48         * modules/ldexp-ieee-tests: New file.
49         * tests/test-ldexp-ieee.c: New file.
50
51         New module 'ldexp-ieee'.
52         * modules/ldexp-ieee: New file.
53
54         Tests for module 'ldexpf-ieee'.
55         * modules/ldexpf-ieee-tests: New file.
56         * tests/test-ldexpf-ieee.c: New file.
57         * tests/test-ldexp-ieee.h: New file.
58
59         New module 'ldexpf-ieee'.
60         * modules/ldexpf-ieee: New file.
61
62 2012-02-26  Bruno Haible  <bruno@clisp.org>
63
64         Refactor frexp*-ieee tests.
65         * tests/test-frexp-ieee.h: New file.
66         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
67         (main): Just call test_function.
68         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
69         (main): Just call test_function.
70         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
71         (main): Just call test_function.
72         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
73         * modules/frexp-ieee-tests (Files): Likewise.
74         * modules/frexpl-ieee-tests (Files): Likewise.
75
76         Tests for module 'frexpl-ieee'.
77         * modules/frexpl-ieee-tests: New file.
78         * tests/test-frexpl-ieee.c: New file.
79
80         New module 'frexpl-ieee'.
81         * modules/frexpl-ieee: New file.
82
83         Tests for module 'frexp-ieee'.
84         * modules/frexp-ieee-tests: New file.
85         * tests/test-frexp-ieee.c: New file.
86
87         New module 'frexp-ieee'.
88         * modules/frexp-ieee: New file.
89
90         Tests for module 'frexpf-ieee'.
91         * modules/frexpf-ieee-tests: New file.
92         * tests/test-frexpf-ieee.c: New file.
93
94         New module 'frexpf-ieee'.
95         * modules/frexpf-ieee: New file.
96
97 2012-02-26  Bruno Haible  <bruno@clisp.org>
98
99         roundl-ieee tests: More tests.
100         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
101         (main): Add tests for [MX] shaded specification in POSIX.
102         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
103         (Depends-on): Add isnanl-nolibm.
104
105         round-ieee tests: More tests.
106         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
107         (main): Add tests for [MX] shaded specification in POSIX.
108         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
109         (Depends-on): Add isnand-nolibm.
110
111         roundf-ieee tests: More tests.
112         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
113         (main): Add tests for [MX] shaded specification in POSIX.
114         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
115         (Depends-on): Add isnanf-nolibm.
116
117         truncl-ieee tests: More tests.
118         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
119         (main): Add tests for [MX] shaded specification in POSIX.
120         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
121         (Depends-on): Add isnanl-nolibm.
122
123         trunc-ieee tests: More tests.
124         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
125         (main): Add tests for [MX] shaded specification in POSIX.
126         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
127         (Depends-on): Add isnand-nolibm.
128
129         truncf-ieee tests: More tests.
130         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
131         (main): Add tests for [MX] shaded specification in POSIX.
132         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
133         (Depends-on): Add isnanf-nolibm.
134
135         ceill-ieee tests: More tests.
136         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
137         (main): Add tests for [MX] shaded specification in POSIX.
138         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
139         (Depends-on): Add isnanl-nolibm.
140
141         ceil-ieee tests: More tests.
142         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
143         (main): Add tests for [MX] shaded specification in POSIX.
144         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
145         (Depends-on): Add isnand-nolibm.
146
147         ceilf-ieee tests: More tests.
148         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
149         (main): Add tests for [MX] shaded specification in POSIX.
150         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
151         (Depends-on): Add isnanf-nolibm.
152
153         floorl-ieee tests: More tests.
154         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
155         (main): Add tests for [MX] shaded specification in POSIX.
156         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
157         (Depends-on): Add isnanl-nolibm.
158
159         floor-ieee tests: More tests.
160         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
161         (main): Add tests for [MX] shaded specification in POSIX.
162         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
163         (Depends-on): Add isnand-nolibm.
164
165         floorf-ieee tests: More tests.
166         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
167         (main): Add tests for [MX] shaded specification in POSIX.
168         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
169         (Depends-on): Add isnanf-nolibm.
170
171 2012-02-26  Bruno Haible  <bruno@clisp.org>
172
173         fpieee: More comments.
174         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
175
176 2012-02-25  Bruno Haible  <bruno@clisp.org>
177
178         Tests for module 'log10l'.
179         * modules/log10l-tests: New file.
180         * tests/test-log10l.c: New file.
181         * tests/test-math-c++.cc: Check the declaration of log10l.
182
183         New module 'log10l'.
184         * lib/math.in.h (log10l): New declaration.
185         * lib/log10l.c: New file.
186         * m4/log10l.m4: New file.
187         * modules/log10l: New file.
188         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
190         HAVE_DECL_LOG10L.
191         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
192         HAVE_DECL_LOG10L.
193         * doc/posix-functions/log10l.texi: Mention the new module.
194
195 2012-02-25  Bruno Haible  <bruno@clisp.org>
196
197         fmodl, remainder*: Avoid wrong results due to rounding errors.
198         * lib/fmodl.c (fmodl): Correct the result if it is not within the
199         expected bounds.
200         * lib/remainderf.c (remainderf): Likewise.
201         * lib/remainder.c (remainder): Likewise.
202         * lib/remainderl.c (remainderl): Likewise.
203
204 2012-02-25  Bruno Haible  <bruno@clisp.org>
205
206         Tests for module 'remainderl'.
207         * modules/remainderl-tests: New file.
208         * tests/test-remainderl.c: New file.
209         * tests/test-math-c++.cc: Check the declaration of remainderl.
210
211         New module 'remainderl'.
212         * lib/math.in.h (remainderl): New declaration.
213         * lib/remainderl.c: New file.
214         * m4/remainderl.m4: New file.
215         * modules/remainderl: New file.
216         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
218         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
219         HAVE_REMAINDERL.
220         * doc/posix-functions/remainderl.texi: Mention the new module.
221
222 2012-02-25  Bruno Haible  <bruno@clisp.org>
223
224         Tests for module 'remainderf'.
225         * modules/remainderf-tests: New file.
226         * tests/test-remainderf.c: New file.
227         * tests/test-math-c++.cc: Check the declaration of remainderf.
228
229         New module 'remainderf'.
230         * lib/math.in.h (remainderf): New declaration.
231         * lib/remainderf.c: New file.
232         * m4/remainderf.m4: New file.
233         * modules/remainderf: New file.
234         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
236         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
237         HAVE_REMAINDERF.
238         * doc/posix-functions/remainderf.texi: Mention the new module.
239
240 2012-02-25  Bruno Haible  <bruno@clisp.org>
241
242         remainder: Support for MSVC.
243         * lib/math.in.h (remainder): New declaration.
244         * lib/remainder.c: New file.
245         * m4/remainder.m4: New file.
246         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
247         (Depends-on): Add math, round, fma.
248         (configure.ac): Use results of gl_FUNC_REMAINDER.
249         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
251         HAVE_DECL_REMAINDER.
252         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
253         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
254         * tests/test-math-c++.cc: Check the declaration of remainder.
255         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
256         problems are fixed.
257
258 2012-02-25  Bruno Haible  <bruno@clisp.org>
259
260         Tests for module 'fmodl'.
261         * modules/fmodl-tests: New file.
262         * tests/test-fmodl.c: New file.
263         * tests/test-math-c++.cc: Check the declaration of fmodl.
264
265         New module 'fmodl'.
266         * lib/math.in.h (fmodl): New declaration.
267         * lib/fmodl.c: New file.
268         * m4/fmodl.m4: New file.
269         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
271         REPLACE_FMODL.
272         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
273         REPLACE_FMODL.
274         * modules/fmodl: New file.
275         * doc/posix-functions/fmodl.texi: Mention the new module.
276
277 2012-02-25  Bruno Haible  <bruno@clisp.org>
278
279         Tests for module 'modfl'.
280         * modules/modfl-tests: New file.
281         * tests/test-modfl.c: New file.
282         * tests/test-math-c++.cc: Check the declaration of modfl.
283
284         New module 'modfl'.
285         * lib/math.in.h (modfl): New declaration.
286         * lib/modfl.c: New file.
287         * m4/modfl.m4: New file.
288         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
289         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
290         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
291         * modules/modfl: New file.
292         * doc/posix-functions/modfl.texi: Mention the new module.
293
294 2012-02-25  Bruno Haible  <bruno@clisp.org>
295
296         Tests for module 'fabsl'.
297         * modules/fabsl-tests: New file.
298         * tests/test-fabsl.c: New file.
299         * tests/test-math-c++.cc: Check the declaration of fabsl.
300
301         New module 'fabsl'.
302         * lib/math.in.h (fabsl): New declaration.
303         * lib/fabsl.c: New file.
304         * m4/fabsl.m4: New file.
305         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
306         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
307         REPLACE_FABSL.
308         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
309         REPLACE_FABSL.
310         * modules/fabsl: New file.
311         * doc/posix-functions/fabsl.texi: Mention the new module.
312
313 2012-02-25  Bruno Haible  <bruno@clisp.org>
314
315         fabs tests: More tests.
316         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
317         (zero): New variable.
318         (main): Add tests for signed zero.
319         * modules/fabs-tests (Files): Add tests/minus-zero.h.
320
321         fabsf tests: More tests.
322         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
323         (zero): New variable.
324         (main): Add tests for signed zero.
325         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
326
327 2012-02-24  Bruno Haible  <bruno@clisp.org>
328
329         atanl: Provide function definition on MSVC.
330         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
331         function pointer.
332         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
333
334 2012-02-24  Bruno Haible  <bruno@clisp.org>
335
336         acosl: Provide function definition on MSVC.
337         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
338         function pointer.
339         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
340
341 2012-02-24  Bruno Haible  <bruno@clisp.org>
342
343         asinl: Provide function definition on MSVC.
344         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
345         function pointer.
346         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
347
348 2012-02-24  Bruno Haible  <bruno@clisp.org>
349
350         tanl: Provide function definition on MSVC.
351         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
352         function pointer.
353         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
354
355 2012-02-24  Bruno Haible  <bruno@clisp.org>
356
357         cosl: Provide function definition on MSVC.
358         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
359         function pointer.
360         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
361
362 2012-02-24  Bruno Haible  <bruno@clisp.org>
363
364         sinl: Provide function definition on MSVC.
365         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
366         function pointer.
367         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
368
369 2012-02-24  Bruno Haible  <bruno@clisp.org>
370
371         logl: Provide function definition on MSVC.
372         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
373         function pointer.
374         * lib/math.in.h (logl): Undefine if it does not exist as a function.
375
376 2012-02-24  Bruno Haible  <bruno@clisp.org>
377
378         expl: Provide function definition on MSVC.
379         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
380         function pointer.
381         * lib/math.in.h (expl): Undefine if it does not exist as a function.
382
383 2012-02-24  Bruno Haible  <bruno@clisp.org>
384
385         sqrtl: Provide function definition on MSVC.
386         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
387         a function pointer.
388         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
389
390 2012-02-24  Bruno Haible  <bruno@clisp.org>
391
392         ceill: Provide function definition on MSVC.
393         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
394         used as a function pointer.
395         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
396
397 2012-02-24  Bruno Haible  <bruno@clisp.org>
398
399         floorl: Provide function definition on MSVC.
400         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
401         used as a function pointer.
402         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
403
404 2012-02-24  Bruno Haible  <bruno@clisp.org>
405
406         ceilf: Provide function definition on MSVC.
407         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
408         used as a function pointer.
409         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
410
411 2012-02-24  Bruno Haible  <bruno@clisp.org>
412
413         floorf: Provide function definition on MSVC.
414         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
415         used as a function pointer.
416         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
417
418 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
419
420         stdnoreturn: new module
421         This implements a replacement for C11's <stdnoreturn.h>.
422         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
423         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
424         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
425         * tests/test-stdnoreturn.c: New files.
426
427 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
428
429         regex: fix false multibyte matches in some regular expressions
430         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
431         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
432         * lib/regex_internal.c (re_string_skip_chars):
433         Fix miscomputation of remain_len that may cause incomplete
434         multi-byte character and false match.
435
436 2012-02-24  Jim Meyering  <meyering@redhat.com>
437
438         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
439         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
440         uses with "==" *before* the call, e.g., 0 == strcmp (...)
441         Remove now-unnecessary str''cmp obfuscation.
442         Suggested by Akim Demaille.
443
444 2012-02-24  Bruno Haible  <bruno@clisp.org>
445
446         streq: Rename macro.
447         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
448         * NEWS: Mention the change.
449         * lib/mbrtowc.c (mbrtowc): Update.
450         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
451         * lib/wcwidth.c (wcwidth): Update.
452         Suggested by Akim Demaille and Jim Meyering.
453
454 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
455
456         regex: fix typo in definition of MIN
457         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
458         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
459
460 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
461             Bruno Haible  <bruno@clisp.org>
462
463         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
464         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
465         entries into a stack-allocated buffer directly.
466         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
467
468 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
469             Bruno Haible  <bruno@clisp.org>
470
471         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
472
473          - There were several instances of this pattern:
474
475              for (;;) {
476                n = acl (f, GETACLCNT, 0, NULL);
477                [ allocate an array A of size N ]
478                if (acl (f, GETACL, n, a) == n)
479                  break;
480              }
481
482            This loop might never terminate if some other process is constantly
483            manipulating the file's ACL.  The loop should be rewritten to
484            terminate.
485
486          - The acl (... GETACLNT ...) call is merely an optimization; its value
487            is merely a hint as to how big to make the array.  A better
488            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
489            and just guess a reasonably-big size, growing the size and trying
490            again if it's not large enough.  This guarantees termination, and
491            saves a system call.
492
493         * lib/acl-internal.h: Include <limits.h>.
494         (MIN, SIZE_MAX): New macros.
495         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
496         a stack-allocated buffer, and use malloc if it does not fit. Don't
497         use GETACLCNT.
498         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
499
500 2012-02-19  Bruno Haible  <bruno@clisp.org>
501
502         acl: Fix endless loop on Solaris with vxfs.
503         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
504         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
505         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
506         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
507         * tests/test-sameacls.c (main)[Solaris]: Likewise.
508         Reported by Bill Jones in
509         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
510
511 2012-02-19  Bruno Haible  <bruno@clisp.org>
512
513         acl: Fix copy-acl test failure on Solaris 11 2011-11.
514         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
515         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
516         that this function returns 0 in some more cases.
517
518 2012-02-19  Bruno Haible  <bruno@clisp.org>
519
520         acl: Update doc references.
521         * doc/acl-resources.txt: Update links to Solaris documentation.
522
523 2012-02-19  Bruno Haible  <bruno@clisp.org>
524
525         Fix test failure in many locales on Solaris 11.
526         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
527         'tr' arguments.
528         * tests/test-pipe-filter-ii1.c (main): Likewise.
529         * build-aux/bootstrap (check_versions): Run 'tr' command with range
530         expressions in the C locale.
531         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
532         * m4/host-os.m4 (gl_HOST_OS): Likewise.
533
534 2012-02-19  Bruno Haible  <bruno@clisp.org>
535
536         gnulib-tool: Improve usage message.
537         * gnulib-tool (func_usage): Move doc of --help and --version to the
538         section "Operation modes".
539
540 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
541
542         README-release: make it easier to execute commands
543         * top/README-release: break commands out on to separate lines.
544
545 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
546
547         GNUmakefile: simplify detection of unconfigured trees
548         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
549         whether the tree make is being run from is already configured or
550         not.  Related simplifications.
551
552 2012-02-13  Simon Josefsson  <simon@josefsson.org>
553
554         * gnulib-tool (func_usage): Document --help and --version.
555
556 2012-02-11  Jim Meyering  <meyering@redhat.com>
557
558         bootstrap: don't exit 0 upon gnulib-tool failure
559         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
560         its exit status, not 0.
561
562 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
563
564         README-release: various improvements
565         * top/README-release: Give a command to push changes for the
566         release.  Add "distcheck" to list of other pre-release checks.
567         Fix instance of "make stable" which should be "make TYPE".
568
569 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
570
571         maint: replace FSF snail-mail addresses with URLs
572         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
573         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
574         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
575         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
576         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
577         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
578         * lib/check-version.c, lib/check-version.h, lib/config.charset:
579         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
580         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
581         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
582         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
583         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
584         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
585         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
586         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
587         * lib/glthread/thread.c, lib/glthread/thread.h:
588         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
589         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
590         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
591         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
592         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
593         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
594         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
595         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
596         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
597         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
598         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
599         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
600         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
601         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
602         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
603         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
604         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
605         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
606         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
607         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
608         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
609         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
610         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
611         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
612         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
613         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
614         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
615         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
616         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
617         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
618         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
619         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
620         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
621         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
622         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
623         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
624         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
625         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
626         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
627         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
628         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
629         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
630         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
631         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
632         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
633         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
634         * tests/test-poll.c, tests/test-quotearg-simple.c:
635         * tests/test-quotearg.c, tests/test-quotearg.h:
636         * tests/test-round-ieee.c, tests/test-round1.c:
637         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
638         * tests/test-roundl-ieee.c, tests/test-roundl.c:
639         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
640         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
641         * tests/test-strerror.c, tests/test-strerror_r.c:
642         * tests/test-strsignal.c, tests/test-strverscmp.c:
643         * tests/test-xmemdup0.c:
644         Replace FSF snail mail addresses with URLs, as per GNU coding
645         standards.  See glibc bug
646         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
647
648 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
649
650         README-release: capitalize a word and split a line
651         * top/README-release: Fix punctuation and spacing.
652
653 2012-02-08  Akim Demaille  <demaille@gostai.com>
654
655         fatal-signal: use C prototypes (with explicit void).
656         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
657         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
658
659 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
660
661         regex: spelling fix
662         * lib/regexec.c: spelling fix
663
664         regex: rely on stdint.h for SIZE_MAX
665         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
666
667 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
668
669         regex: merge glibc changes
670
671         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
672         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
673         (init_word_char): Work even if bitset words are not exactly 32 or
674         64 bits wide.  Don't assume there are no padding bits.
675         * lib/regex.c [_LIBC]: Do not include <config.h>.
676         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
677         and -Wtype-limits.
678         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
679         needless disagreement with glibc.  All uses changed.  Define it to
680         1 only if _GNU_SOURCE, to match glibc.
681         (_REG_RM_NAME): Remove; no longer needed, since the names in
682         question are now all protected by __USE_GNU.
683         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
684         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
685         * lib/regex_internal.h (MIN): New macro.
686
687         2012-01-03 Ulrich Drepper <drepper@gmail.com>
688         * lib/regcomp.c (init_word_char): Optimize regex a bit.
689
690         2011-12-30 Jakub Jelinek <jakub@redhat.com>
691         * lib/regex_internal.c (re_string_fetch_byte_case):
692         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
693         is miscompiled, and it turns out it is because of an incorrect
694         attribute on re_string_fetch_byte_case.  Unlike
695         re_string_peek_byte_case, this one is really not pure, it modifies
696         memory (increments pstr->cur_idx), and with the pure attribute GCC
697         assumed it doesn't and it cached the presumed value of
698         regexp->cur_idx in a variable across the
699          for (;; ++i)
700            {
701              if (i >= BRACKET_NAME_BUF_SIZE)
702                return REG_EBRACK;
703              if (token->type == OP_OPEN_CHAR_CLASS)
704                ch = re_string_fetch_byte_case (regexp);
705              else
706                ch = re_string_fetch_byte (regexp);
707              if (re_string_eoi(regexp))
708                return REG_EBRACK;
709              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
710                break;
711              elem->opr.name[i] = ch;
712            }
713
714         2011-11-29 Andreas Schwab <schwab@redhat.com>
715         * lib/regcomp.c (build_equiv_class):
716         Fix access after end of search string in regex matcher.
717
718         2011-11-12 Ulrich Drepper <drepper@redhat.com>
719         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
720
721         2011-10-12 Ulrich Drepper <drepper@redhat.com>
722         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
723
724         2011-10-11 Ulrich Drepper <drepper@redhat.com>
725         * lib/regcomp.c (parse_branch, parse_sub_exp):
726         More regex memory leak fixes and tests.
727         (parse_sub_exp, parse_bracket_exp):
728         Fix memory leak for some invalid regular expressions.
729
730         2011-05-28 Ulrich Drepper <drepper@gmail.com>
731         * lib/regex_internal.c, lib/regexec.c:
732         Fix unnecessary overallocation due to incomplete character.  When
733         incomplete characters are found at the end of a string the code
734         ran amok and allocated lots of memory.  Stricter limits are now in
735         place.
736
737         2011-05-20 Reuben Thomas <rrt@sc3d.org>
738         * lib/regex.h: Update documentation.
739
740         2011-05-16 Aharon Robbins <arnold@skeeve.com>
741         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
742
743         2010-05-05 Andreas Schwab <schwab@redhat.com>
744         * lib/regexec.c (find_collation_sequence_value):
745         Fix lookup of collation sequence value during regexp matching.
746
747         2010-01-22 Ulrich Drepper <drepper@redhat.com>
748         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
749
750         2008-01-16 Ulrich Drepper <drepper@redhat.com>
751         * lib/regex.h: Cleanup namespace.
752
753         2007-11-26 Ulrich Drepper <drepper@redhat.com>
754         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
755
756         2007-08-26 Ulrich Drepper <drepper@redhat.com>
757         * lib/regex_internal.h: Prevent some declarations and definitions
758         to be seen when used in tests.
759
760         2005-05-06 Ulrich Drepper <drepper@redhat.com>
761         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
762         __libc_lock_* macros if not _LIBC.
763         (struct re_dfa_t): Add lock.
764
765 2012-02-07  Eric Blake  <eblake@redhat.com>
766
767         maint.mk: also prohibit lower-case @var@
768         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
769         lower case, like @top_srcdir@.
770
771 2012-02-04  Eric Blake  <eblake@redhat.com>
772
773         canonicalize: avoid uninitialized memory use
774         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
775         random '/' left in dest.
776         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
777
778 2012-02-04  Bruno Haible  <bruno@clisp.org>
779
780         isatty: Fix test failure of ptsname_r on native Windows.
781         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
782         and don't set errno.
783         (isatty): Test first whether fd is valid. Set errno when returning 0.
784
785 2012-02-04  Bruno Haible  <bruno@clisp.org>
786
787         spawn-pipe tests: Fix a NULL program name in a diagnostic.
788         * tests/test-spawn-pipe-main.c: Include progname.h.
789         (main): Invoke set_program_name.
790         * modules/spawn-pipe-tests (Depends-on): Add progname.
791
792         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
793         * tests/test-nonblocking-socket-main.c: Include progname.h.
794         (main): Invoke set_program_name.
795         * modules/nonblocking-socket-tests (Depends-on): Add progname.
796
797         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
798         * tests/test-nonblocking-pipe-main.c: Include progname.h.
799         (main): Invoke set_program_name.
800         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
801
802 2012-02-04  Eric Blake  <eblake@redhat.com>
803
804         canonicalize-lgpl: fix // handling
805         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
806
807         canonicalize: fix // handling
808         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
809         /// to //, since only // is special.
810
811 2012-02-04  Bruno Haible  <bruno@clisp.org>
812
813         ioctl: Fix test failure on native Windows.
814         * lib/ioctl.c: Include msvc-nothrow.h.
815         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
816
817 2012-02-04  Bruno Haible  <bruno@clisp.org>
818
819         fsync: Avoid test failure on native Windows.
820         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
821         read-only.
822
823 2012-02-04  Bruno Haible  <bruno@clisp.org>
824
825         sys_select: Avoid syntax error on OpenBSD 5.0.
826         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
827         currently being included, just include the system's <sys/select.h>.
828
829 2012-02-04  Bruno Haible  <bruno@clisp.org>
830
831         sys_select: Avoid syntax error on OpenBSD 5.0.
832         * lib/sys_select.in.h: Include <signal.h> only after the include_next
833         <sys/select.h>, not before.
834         Reported by Jiri B <jirib@devio.us>.
835
836 2012-02-04  Bruno Haible  <bruno@clisp.org>
837
838         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
839         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
840         global variables.
841         * tests/test-get-rusage-data.c (main): Likewise.
842         Reported by Jim Meyering.
843
844 2012-02-04  Bruno Haible  <bruno@clisp.org>
845
846         stdioext: Fix last commit.
847         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
848
849 2012-02-03  Bruno Haible  <bruno@clisp.org>
850
851         stdioext: Add tentative support for Plan9.
852         * lib/stdio-impl.h: Include <errno.h>.
853         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
854         * lib/freadable.c (freadable): Likewise.
855         * lib/fwritable.c (fwritable): Likewise.
856         * lib/fbufmode.c (fbufmode): Likewise.
857         * lib/freading.c (freading): Likewise.
858         * lib/fwriting.c (fwriting): Likewise.
859         * lib/freadptr.c (freadptr): Likewise.
860         * lib/freadseek.c (freadptrinc): Likewise.
861         * lib/freadahead.c (freadahead): Likewise.
862         * lib/fpurge.c (fpurge): Likewise.
863         * lib/fseeko.c (rpl_fseeko): Likewise.
864         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
865         Reported by Jens Staal <staal1978@gmail.com>.
866
867 2012-02-02  Jim Meyering  <meyering@redhat.com>
868
869         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
870         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
871         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
872         not even to try to add the attribute.  Instead, add a pragma to suppress
873         the suggestion/warning.
874
875 2012-01-31  Karl Berry  <karl@gnu.org>
876
877         setstate doc: typo.
878         * doc/posix-functions/setstate.texi (setstate): { not (.
879
880 2012-01-31  Bruno Haible  <bruno@clisp.org>
881
882         popen: Make more robust on Windows.
883         * lib/popen.c: On native Windows, use the _popen based code even if
884         HAVE_POPEN is set.
885         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
886         environment variable on native Windows.
887
888 2012-01-30  Bruno Haible  <bruno@clisp.org>
889
890         pclose: Fix typo.
891         * lib/stdio.in.h (pclose): Fix typo in warning message.
892
893 2012-01-30  Bruno Haible  <bruno@clisp.org>
894
895         doc about getlogin_r, setstate.
896         * doc/posix-functions/getlogin_r.texi: List the incompatible
897         declaration problem under "not fixed by gnulib".
898         * doc/posix-functions/setstate.texi: Mention incompatible declaration
899         problem on Solaris 11 and other platforms.
900
901 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
902             Bruno Haible  <bruno@clisp.org>
903
904         poll tests: Make test more robust.
905         * tests/test-poll.c: Include macros.h.
906         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
907         return value of various I/O operations.
908         * modules/poll-tests (Files): Add tests/macros.h.
909
910 2012-01-30  Bruno Haible  <bruno@clisp.org>
911
912         sys_stat: Fix support for mingw64 and MSVC.
913         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
914         header files already do it.
915         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
916         stat itself.
917         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
918
919 2012-01-30  Bruno Haible  <bruno@clisp.org>
920
921         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
923         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
924
925 2012-01-29  Bruno Haible  <bruno@clisp.org>
926
927         quotearg: Fix test failure on MacOS X 10.5.
928         * tests/test-quotearg-simple.c: Include localcharset.h.
929         (main): If the locale encoding is not ASCII, bypass the tests of
930         locale_quoting_style and clocale_quoting_style.
931         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
932
933 2012-01-29  Jim Meyering  <meyering@redhat.com>
934
935         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
936         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
937         detect uses of canonicalize_file_name.
938
939 2012-01-28  Bruno Haible  <bruno@clisp.org>
940
941         test-framework-sh: Fix test failure with AIX 7.1 diff.
942         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
943         in column 1, like 'diff -c' does.
944         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
945         whether 'diff -u' is used. Instead, test whether the output contains
946         some '@' character.
947
948 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
949
950         strtoimax: eliminate need for stdint.h, inttypes.h checks
951         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
952         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
953         the prerequisites for a recently-introduced strtoimax test.
954         I guess this might cause strtoimax to be replaced when not
955         strictly necessary on older hosts, but this shouldn't introduce
956         any bugs and it should make Emacs 'configure' faster on typical
957         modern hosts.  Problem discovered when importing the latest gnulib
958         to an Emacs test version.
959         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
960
961 2012-01-28  Bruno Haible  <bruno@clisp.org>
962
963         sys_time: Override 'struct timeval' on some native Windows platforms.
964         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
965         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
966         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
967         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
968         needs to be overridden.
969         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
970         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
971         * tests/test-sys_select.c: Check that the tv_sec member has the same
972         size as a 'time_t'.
973         * tests/test-sys_time.c: Likewise.
974         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
975         is set, set also REPLACE_GETTIMEOFDAY.
976         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
977         convert the resulting 'struct timeval' before returning.
978         * lib/select.c: Include <sys/time.h>.
979         (select, timeval): Undefine at the right place.
980         * modules/select (Depends-on): Add sys_time.
981         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
982         some Windows platforms.
983         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
984
985 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
986
987         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
988         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
989         an integer.
990         * lib/fcntl.c (dupfd): Likewise.
991         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
992
993 2012-01-28  Bruno Haible  <bruno@clisp.org>
994
995         fcntl: Avoid compilation error on native Windows.
996         * modules/fcntl (Depends-on): Add 'close'.
997
998 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
999
1000         select, poll, isatty: Avoid warnings on x86_64 mingw64.
1001         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
1002         pointer to an integer.
1003         * lib/poll.c (IsConsoleHandle): Likewise.
1004         * lib/isatty.c (IsConsoleHandle): Likewise.
1005
1006 2012-01-28  Jim Meyering  <meyering@redhat.com>
1007
1008         doc: clarify README-release
1009         * top/README-release: Clarify: you should make a point to have
1010         the latest stable versions of build tools in your PATH, and the
1011         reference to buildreq is solely for its list of tool names, not
1012         for its minimal-functional version numbers.
1013         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
1014
1015         maint.mk: use more readable (yet functionally equivalent) quoting
1016         It is common to quote a single quote in a single quoted string like
1017         this:  '...'\''...'.  Unless you know the idiom, that looks like
1018         gibberish, so prefer to double-quote the string when possible.
1019         Then you can use a more readable, lone single quote: "...'..."
1020         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
1021         "don't" is more readable than the equivalent 'don'\''t'.
1022         (sc_cast_of_x_alloc_return_value): Likewise.
1023         (sc_cast_of_alloca_return_value): Likewise.
1024         (sc_makefile_path_separator_check): Similar: use ":" in '...',
1025         rather than '\'':'\''.
1026
1027 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1028
1029         stdalign: relax _Alignof and tighten _Alignas test
1030         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
1031         as it was too strict: alignof must divide offsetof, but it need
1032         not equal offsetof.  Inspired by Joseph S. Myers's comment
1033         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
1034         Conversely, tighten the _Alignas test a bit, as the resulting
1035         alignment must be exactly 8.
1036
1037 2012-01-27  Bruno Haible  <bruno@clisp.org>
1038
1039         stdalign: Document the last change.
1040         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
1041
1042 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
1043
1044         stdalign: check that alignof and offsetof are consistent
1045         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
1046         Problem reported for gnulib by Richard W.M. Jones in
1047         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
1048
1049 2012-01-27  Jim Meyering  <meyering@redhat.com>
1050
1051         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
1052         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
1053         convert a sequence with gaps to the minimal containing range.
1054         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
1055         * tests/test-update-copyright.sh: Test for this.
1056         The FSF confirmed it is ok to do this, assuming there is at
1057         least one significant change per year in the affected range:
1058         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
1059
1060 2012-01-26  Bruno Haible  <bruno@clisp.org>
1061
1062         pipe2: refine doc about thread-safety
1063         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
1064         multithread-safety problem.
1065         * doc/glibc-functions/accept4.texi: Likewise.
1066
1067 2012-01-26  Bruno Haible  <bruno@clisp.org>
1068
1069         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
1070         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
1071         In the test program, include <fcntl.h>, for O_RDONLY.
1072
1073 2012-01-26  Eric Blake  <eblake@redhat.com>
1074
1075         pipe2: document lack of thread-safety in replacement
1076         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
1077         issue in replacement.
1078         * doc/glibc-functions/accept4.texi (accept4): Likewise.
1079         Based on a report by Eric Wong.
1080
1081 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
1082             Bruno Haible  <bruno@clisp.org>
1083
1084         malloca: Avoid warnings on x86_64 mingw64.
1085         * lib/malloca.c: Include <stdint.h>.
1086         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
1087         * modules/malloca (Depends-on): Add stdint.
1088         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
1089
1090 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
1091
1092         obstack: remove __STDC__ conditionals
1093         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
1094         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
1095         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
1096         m4/include_next.m4 as the only gnulib-maintained places that still
1097         refer to __STDC__.
1098
1099 2012-01-24  Bruno Haible  <bruno@clisp.org>
1100
1101         havelib: Modern quoting.
1102         * build-aux/config.rpath: Quote 'like this', not `like this', as per
1103         the recent change to the GNU coding standards.
1104
1105 2012-01-24  Bruno Haible  <bruno@clisp.org>
1106
1107         stdint: Improve support for Android.
1108         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
1109         Reported by Simon Josefsson <simon@josefsson.org>.
1110
1111 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1112
1113         doc: omit trailing empty lines from INSTALL etc.
1114         * doc/Makefile (INSTALL): Omit trailing empty lines.
1115         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
1116         omit trailing empty lines.  This simplifies the build procedure.
1117
1118 2012-01-23  Jim Meyering  <meyering@redhat.com>
1119
1120         tests: avoid spurious warnings about gl_sockets_startup
1121         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
1122         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
1123         reporting a "statement with no effect".
1124         * tests/test-accept.c (main): Mark as "(void)".
1125         * tests/test-accept4.c (main): Likewise.
1126         * tests/test-bind.c (main): Likewise.
1127         * tests/test-connect.c (main): Likewise.
1128         * tests/test-getpeername.c (main): Likewise.
1129         * tests/test-getsockname.c (main): Likewise.
1130         * tests/test-getsockopt.c (main): Likewise.
1131         * tests/test-listen.c (main): Likewise.
1132         * tests/test-recv.c (main): Likewise.
1133         * tests/test-recvfrom.c (main): Likewise.
1134         * tests/test-send.c (main): Likewise.
1135         * tests/test-sendto.c (main): Likewise.
1136         * tests/test-setsockopt.c (main): Likewise.
1137         * tests/test-shutdown.c (main): Likewise.
1138
1139 2012-01-21  Bruno Haible  <bruno@clisp.org>
1140
1141         locale-fr.m4: Fix for Android.
1142         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
1143         failure of the test program on Bionic libc.
1144
1145 2012-01-21  Jim Meyering  <meyering@redhat.com>
1146
1147         bootstrap: fail when bootstrap_post_import_hook fails
1148         Otherwise, it's far too easy to miss diagnostics emitted
1149         between gnulib-tool's output and that of running configure.
1150         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
1151
1152 2012-01-17  Jim Meyering  <meyering@redhat.com>
1153
1154         maint: enable sc_trailing_blank
1155         * build-aux/pmccabe.css: Remove trailing blanks.
1156         * doc/acl-cygwin.txt: Likewise.
1157         * doc/gnu-oids.texi: Likewise
1158         * cfg.mk: Enable sc_trailing_blank.
1159         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
1160
1161 2012-01-17  Jim Meyering  <meyering@redhat.com>
1162
1163         maint: enable sc_prohibit_openat_without_use
1164         * cfg.mk: Enable sc_prohibit_openat_without_use.
1165         Exempt lib/selinux-at.c.
1166
1167 2012-01-17  Jim Meyering  <meyering@redhat.com>
1168
1169         maint: enable sc_prohibit_cloexec_without_use
1170         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1171         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1172
1173 2012-01-17  Jim Meyering  <meyering@redhat.com>
1174
1175         maint: enable sc_prohibit_intprops_without_use
1176         * cfg.mk: Enable sc_prohibit_intprops_without_use
1177         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1178
1179 2012-01-17  Jim Meyering  <meyering@redhat.com>
1180
1181         maint: enable sc_prohibit_hash_pjw_without_use
1182         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1183         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1184         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1185         following " (".
1186
1187 2012-01-17  Jim Meyering  <meyering@redhat.com>
1188
1189         maint: enable double-word-prohibiting rule
1190         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1191         Exempt three files.
1192
1193 2012-01-17  Jim Meyering  <meyering@redhat.com>
1194
1195         maint: remove empty lines at EOF, but excluding modules/*
1196         Apply syntax rules at home as well as abroad.  Most changes
1197         were induced by running this:
1198           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1199             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1200             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1201         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1202         Exempt modules/* and two binary files.
1203         Also exempt doc/INSTALL*, per request from Bruno Haible.
1204         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1205         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1206         * doc/Copyright/request-assign.future: Likewise.
1207         * doc/Copyright/request-disclaim.changes: Likewise.
1208         * doc/INSTALL: Likewise.
1209         * doc/INSTALL.ISO: Likewise.
1210         * doc/INSTALL.UTF-8: Likewise.
1211         * doc/acl-cygwin.txt: Likewise.
1212         * doc/acl-resources.txt: Likewise.
1213         * doc/fdl-1.2.texi: Likewise.
1214         * doc/fdl-1.3.texi: Likewise.
1215         * doc/fdl.texi: Likewise.
1216         * lib/argp-pin.c: Likewise.
1217         * lib/round.c: Likewise.
1218         * lib/unicase/u16-totitle.c: Likewise.
1219         * lib/unictype/block_test.c: Likewise.
1220         * lib/uninorm/canonical-decomposition.c: Likewise.
1221         * m4/README: Likewise.
1222         * m4/relocatable-lib.m4: Likewise.
1223         * tests/test-isnand-nolibm.c: Likewise.
1224         * tests/test-isnand.c: Likewise.
1225         * tests/uninorm/NormalizationTest.txt: Likewise.
1226
1227 2012-01-17  Jim Meyering  <meyering@redhat.com>
1228
1229         maint: add framework to run syntax-check rules against gnulib sources
1230         * cfg.mk: New file, to disable all currently-failing tests.
1231         We'll enable them one by one, as they are made to pass.
1232         * Makefile (sc_maint): New rule.
1233
1234 2012-01-21  Bruno Haible  <bruno@clisp.org>
1235
1236         stdint: Add support for Android.
1237         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1238         include the system's <stdint.h>.
1239         Reported by Simon Josefsson <simon@josefsson.org>.
1240
1241 2012-01-19  Jim Meyering  <meyering@redhat.com>
1242
1243         bootstrap: add bootstrap_post_import_hook
1244         Bison does still need something like the gnulib_mk_hook whose
1245         invocation I had to remove along with slurp in commit 767ccd40.
1246         Technically, we could get along without it, but doing so would
1247         have required living with a warning and a mandatory post-bootstrap
1248         automake rerun.
1249         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1250         (bootstrap_post_import_hook): New function.
1251         Invoke it after gnulib-tool --import and before autoreconf.
1252
1253 2012-01-18  Jim Meyering  <meyering@redhat.com>
1254
1255         gitlog-to-changelog: don't use "no_"-prefixed variable name
1256         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1257         to enable both --cluster and --no-cluster.  Change variable name,
1258         s/\$no_cluster/$cluster/, and reverse usage to match.
1259
1260         gitlog-to-changelog: use "||", not "or" in expressions
1261         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1262         expressions.
1263
1264 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1265
1266         gitlog-to-changelog: new option --no-cluster
1267         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1268         clustering of adjacent commit messages.
1269
1270 2012-01-17  Jim Meyering  <meyering@redhat.com>
1271
1272         maint: spell file systems with two words, not one
1273         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1274         two words, not one.
1275
1276 2012-01-16  Jim Meyering  <meyering@redhat.com>
1277
1278         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1279         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1280
1281 2012-01-16  Eric Blake  <eblake@redhat.com>
1282
1283         bootstrap: cater to autoconf 2.59
1284         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1285         is not available.
1286
1287         bootstrap: properly check for libtool
1288         * build-aux/bootstrap (libtoolize): Also run libtool when older
1289         usage is detected.
1290
1291 2012-01-15  Bruno Haible  <bruno@clisp.org>
1292
1293         Improve support for MSVC 9.
1294         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1295         clashes on MSVC.
1296         * lib/fcntl.in.h: Likewise.
1297         * lib/stdlib.in.h: Likewise.
1298         * lib/sys_stat.in.h: Likewise.
1299
1300 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1301
1302         gnupload: we hold the master copy of this script now
1303         For motivation and more information, see:
1304         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1305         * build-aux/gnupload: Make it clear in the heading comments that the
1306         master copy of this file is maintained by gnulib.  Since we are at
1307         it, bump its copyright year and ...
1308         ($scriptversion): ... the date in its version.
1309         ($usage): Patches and bug reports should be sent to the gnulib list,
1310         not the automake one.
1311         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1312         anymore.
1313
1314 2012-01-15  Bruno Haible  <bruno@clisp.org>
1315
1316         Fix module 'random'.
1317         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1318         initstate, setstate are declared.
1319
1320 2012-01-14  Bruno Haible  <bruno@clisp.org>
1321
1322         Tests for module 'random'.
1323         * modules/random-tests: New file.
1324         * tests/test-random.c: New file, based on tests/test-random_r.c.
1325
1326         New module 'random'.
1327         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1328         declarations.
1329         * lib/random.c: New file, based on glibc/stdlib/random.c.
1330         * m4/random.m4: New file.
1331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1332         HAVE_RANDOM.
1333         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1334         * modules/random: New file.
1335         * config/srclist.txt: Add an entry for random.c.
1336         * doc/posix-functions/random.texi: Mention the 'random' module.
1337         * doc/posix-functions/initstate.texi: Likewise.
1338         * doc/posix-functions/setstate.texi: Likewise.
1339         * doc/posix-functions/srandom.texi: Likewise.
1340
1341 2012-01-12  Bruno Haible  <bruno@clisp.org>
1342
1343         random_r: Use common idioms.
1344         * lib/random_r.c: Include <stdlib.h> first.
1345
1346         random_r: Override incompatible API on AIX, OSF/1.
1347         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1348         Override the system function if REPLACE_RANDOM_R is 1.
1349         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1350         and OSF/1, set REPLACE_RANDOM_R.
1351         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1352         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1353         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1354         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1355         * doc/glibc-functions/random_r.texi: Likewise.
1356         * doc/glibc-functions/setstate_r.texi: Likewise.
1357
1358         random_r: Support for MSVC 9.
1359         * lib/random_r.c: Include stdint.h, not inttypes.h.
1360
1361 2012-01-12  Eric Blake  <eblake@redhat.com>
1362
1363         inet_ntop: guard extra work by IF_LINT
1364         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1365         better code generation when not checking for warnings.
1366         Suggested by Paul Eggert and Jim Meyering.
1367
1368         strptime: fix regression on mingw
1369         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1370         Fix regression.  Reported by Bruno Haible.
1371
1372 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1373             Bruno Haible  <bruno@clisp.org>
1374
1375         copy-file: add error-code-returning variant.
1376         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1377         (qcopy_file_preserving): New declaration.
1378         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1379         copy_file_preserving. Change return type to 'int'. Don't emit an error
1380         message here.
1381         (copy_file_preserving): New function.
1382         * tests/test-copy-file.c: Include <stdlib.h>.
1383         (main): Test qcopy_file_preserving if the environment variable
1384         NO_STDERR_OUTPUT is set.
1385         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1386         with NO_STDERR_OUTPUT
1387         * tests/test-copy-file-2.sh: Likewise.
1388
1389 2012-01-10  Bruno Haible  <bruno@clisp.org>
1390
1391         copy-file: Use 'quote' module consistently.
1392         * lib/copy-file.c (copy_file_preserving): Use quote().
1393
1394         copy-file: Refactor.
1395         * lib/copy-file.c: Include quote.h.
1396         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1397         message here.
1398         * modules/copy-file (Depends-on): Add quote.
1399
1400         acl: Export qcopy_acl.
1401         * lib/acl.h (qcopy_acl): New declaration.
1402         * lib/copy-acl.c (qcopy_acl): Make non-static.
1403
1404         acl: Rename a local variable.
1405         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1406
1407         acl: Align return values of copy_acl and qcopy_acl.
1408         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1409         maybe < -1.
1410
1411 2012-01-11  Eric Blake  <eblake@redhat.com>
1412
1413         strptime: silence gcc warnings
1414         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1415         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1416         Reported by Daniel P. Berrange.
1417
1418         inet_ntop: silence gcc warning
1419         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1420         Reported by Daniel P. Berrange.
1421
1422 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1423
1424         getloadavg test: skip the test on GNU/Linux without /proc mounted
1425         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1426         file.  When /proc is not mounted, it always fails with ENOENT.
1427         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1428         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1429
1430 2012-01-10  Bruno Haible  <bruno@clisp.org>
1431
1432         regex: Avoid link error on MSVC 9.
1433         * modules/regex (Depends-on): Add wctype.
1434
1435 2012-01-10  Bruno Haible  <bruno@clisp.org>
1436
1437         doc: Mention --with-tests option.
1438         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1439         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1440         --with-tests.
1441         Reported by Reuben Thomas.
1442
1443 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1444
1445         users.txt: order package names lexicographically.
1446         * users.txt: Order package names lexicographically.
1447
1448 2012-01-10  Jim Meyering  <meyering@redhat.com>
1449
1450         maint.mk: fix description in comment
1451         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1452
1453         ignore-value: remove deprecated ignore_ptr function
1454         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1455         * NEWS: Note this.
1456
1457 2012-01-09  Jim Meyering  <meyering@redhat.com>
1458
1459         test-init.sh: avoid a subshell
1460         * tests/test-init.sh: Remove protective subshell.
1461         Suggested by Bernhard Voelker.  While a subshell is normally
1462         required to protect against older shells (Solaris, FreeBSD) that
1463         warn about a missing program before performing redirection, the
1464         shell-selection tests performed by init.sh probably exclude any
1465         offending shell.
1466
1467 2012-01-08  Bruno Haible  <bruno@clisp.org>
1468
1469         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1470         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1471         variable.
1472
1473 2012-01-08  Bruno Haible  <bruno@clisp.org>
1474
1475         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1476         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1477         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1478         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1479         macro.
1480         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1481         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1482         * lib/spawn_faction_addopen.c: Add workaround implementation if
1483         HAVE_WORKING_POSIX_SPAWN.
1484         * modules/spawn (Makefile): Substitute
1485         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1486         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1487         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1488         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1489         (Depends-on): Update conditions.
1490         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1491         the Solaris 11 bug.
1492
1493 2012-01-08  Bruno Haible  <bruno@clisp.org>
1494
1495         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1496         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1497         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1498         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1499         macro.
1500         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1501         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1502         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1503         HAVE_WORKING_POSIX_SPAWN.
1504         * modules/spawn (Makefile): Substitute
1505         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1506         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1507         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1508         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1509         (Depends-on): Update conditions.
1510         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1511         the Solaris 11 bug.
1512
1513 2012-01-08  Bruno Haible  <bruno@clisp.org>
1514
1515         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1516         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1517         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1518         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1519         HAVE_WORKING_POSIX_SPAWN.
1520         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1521         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1522         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1523         * lib/spawn_faction_addclose.c: Add workaround implementation if
1524         HAVE_WORKING_POSIX_SPAWN.
1525         * modules/spawn (Makefile): Substitute
1526         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1527         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1528         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1529         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1530         (Depends-on): Update conditions.
1531         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1532         the Solaris 11 bug.
1533
1534 2012-01-08  Bruno Haible  <bruno@clisp.org>
1535
1536         doc: Update for Solaris 11 2011-11.
1537         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1538         * m4/printf.m4: Update comments.
1539
1540 2012-01-08  Bruno Haible  <bruno@clisp.org>
1541
1542         mktime: Avoid compilation error on Solaris 11.
1543         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1544
1545 2012-01-08  Bruno Haible  <bruno@clisp.org>
1546
1547         doc: Small fix.
1548         * doc/posix-headers/nl_types.texi: Correct platforms list.
1549
1550 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1551
1552         Add lgpl-3.0 module.
1553         * MODULES.html.sh (Support for building documentation): Add
1554         lgpl-3.0.
1555         * modules/lgpl-3.0: New file.
1556
1557 2012-01-08  Jim Meyering  <meyering@redhat.com>
1558
1559         select.c: indent with spaces, not TABs
1560         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1561
1562 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1563
1564         quotearg: do not use grave accent for left quote
1565         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1566         locale_quoting_style.
1567         (quotearg_buffer_restyled): Fix example.
1568         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1569
1570 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1571
1572         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1573         Most programs do not have translation catalogs for English and much
1574         less separate catalogs for British and American English.  Drop the
1575         suggestion to translators about these two, and provide it
1576         automatically for Unicode locales.  Like most programs, even those
1577         using American English, we use single quotation marks.  This conflicts
1578         with the American typographic convention, but works better when you
1579         cite the entire error message within double quotes.  It also tries not
1580         to clash with established practice and with what non-gnulib programs
1581         will usually do.
1582         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1583         using an UTF-8 or GB-18030 locale.  The list of other locales with
1584         quotes was provided by Bruno Haible.
1585         (quotearg_buffer_restyled): Adjust instructions to translators.
1586         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1587         text, since this would be wrong when using Unicode.
1588         * modules/quotearg: Depend on c-strcaseeq.
1589
1590 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1591
1592         quotearg: fix Wikipedia link
1593         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1594
1595 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1596
1597         Fix for mingw with MSVC9.
1598         * m4/ld-version-script.m4: Check that compiler rejects version
1599         scripts with syntax errors.  Reported by Bruno Haible
1600         <bruno@clisp.org>.
1601
1602 2012-01-06  Bruno Haible  <bruno@clisp.org>
1603
1604         Talk about "native Windows API", not "Woe32".
1605         * lib/accept4.c: Update comments to mention native Windows.
1606         * lib/execute.c: Likewise.
1607         * lib/fatal-signal.c: Likewise.
1608         * lib/localcharset.c: Likewise.
1609         * lib/nanosleep.c: Likewise.
1610         * lib/nl_langinfo.c: Likewise.
1611         * lib/pclose.c: Likewise.
1612         * lib/pipe-filter-gi.c: Likewise.
1613         * lib/pipe-filter-ii.c: Likewise.
1614         * lib/pipe.c: Likewise.
1615         * lib/pipe2.c: Likewise.
1616         * lib/popen.c: Likewise.
1617         * lib/progreloc.c: Likewise.
1618         * lib/relocatable.c: Likewise.
1619         * lib/sigaction.c: Likewise.
1620         * lib/sigprocmask.c: Likewise.
1621         * lib/spawn-pipe.h: Likewise.
1622         * lib/spawn-pipe.c: Likewise.
1623         * lib/spawni.c: Likewise.
1624         * lib/stat-time.h: Likewise.
1625         * lib/w32spawn.h: Likewise.
1626         * tests/test-isatty.c: Likewise.
1627         * lib/config.charset: More comments.
1628         * doc/gnulib-intro.texi: Mention native Windows.
1629         * doc/posix-functions/_Exit_C99.texi: Likewise.
1630         * doc/posix-headers/fcntl.texi: Likewise.
1631
1632 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1633
1634         argp: Avoid crash if translator uses % characters in a translation.
1635         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1636         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1637
1638 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1639
1640         doc: C11 and C++11 are now official
1641         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1642         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1643         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1644         * modules/stdalign:
1645         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1646
1647 2012-01-06  Bruno Haible  <bruno@clisp.org>
1648
1649         uc-is-grapheme-break tests: Tweak.
1650         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1651         message.
1652
1653 2012-01-06  Bruno Haible  <bruno@clisp.org>
1654
1655         test-init.sh: correct the test for diff -u
1656         * tests/test-init.sh: Also redirect stdout to /dev/null.
1657
1658 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1659
1660         Use ', not `, for quoting output.
1661         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1662         (print_changelog_deltas, get_tool_versions, main program):
1663         * build-aux/git-version-gen:
1664         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1665         * build-aux/move-if-change (help):
1666         * build-aux/useless-if-before-free (usage, main program):
1667         * check-module (parse_module_file, usage)
1668         (find_included_lib_files, check_module):
1669         * lib/argmatch.c (main) [TEST]:
1670         * lib/argp-help.c (_help):
1671         * lib/getopt1.c (main) [TEST]:
1672         * lib/git-merge-changelog.c (usage):
1673         * lib/xstrtol-error.c (xstrtol_error):
1674         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1675         * m4/argz.m4 (gl_FUNC_ARGZ):
1676         * m4/bison.m4 (gl_BISON):
1677         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1678         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1679         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1680         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1681         * m4/gc-random.m4 (gl_GC_RANDOM):
1682         * m4/intl.m4 (gt_CHECK_DECL):
1683         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1684         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1685         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1686         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1687         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1688         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1689         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1690         * tests/test-dirname.c (main):
1691         * tests/test-getpass.c (main):
1692         * tests/test-iconvme.c (main):
1693         * tests/test-parse-datetime.c (LOG):
1694         * tests/test-xstrtoimax.sh:
1695         * tests/test-xstrtol.sh:
1696         * tests/test-xstrtoll.sh:
1697         * tests/test-xstrtoumax.sh:
1698         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1699         * top/GNUmakefile (abort-due-to-no-makefile):
1700         Quote 'like this', not `like this', as per the recent change to
1701         the GNU coding standards.
1702
1703 2012-01-05  Bruno Haible  <bruno@clisp.org>
1704
1705         strtoimax: Don't force a replacement on systems where intmax_t is int.
1706         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1707         'intmax_t' is not larger than 'int'.
1708         Reported by Pádraig Brady <P@draigBrady.com>.
1709
1710 2012-01-05  Bruno Haible  <bruno@clisp.org>
1711
1712         doc: Mention NetBSD bugs.
1713         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1714         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1715
1716 2012-01-05  Bruno Haible  <bruno@clisp.org>
1717
1718         strtoumax tests: Enhance tests.
1719         * tests/test-strtoumax.c (main): Add tests for large values.
1720
1721 2012-01-05  Bruno Haible  <bruno@clisp.org>
1722
1723         strtoimax: Work around AIX 5.1 bug.
1724         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1725         definition.
1726         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1727         Set HAVE_STRTOIMAX.
1728         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1729         REPLACE_STRTOIMAX.
1730         * modules/inttypes-incomplete (Makefile.am): Substitute
1731         REPLACE_STRTOIMAX.
1732         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1733         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1734         (Depends-on): Update conditions.
1735         * tests/test-strtoimax.c (main): Add tests for large values.
1736         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1737
1738 2012-01-05  Bruno Haible  <bruno@clisp.org>
1739
1740         inttypes: Modernize.
1741         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1742         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1743         (Makefile.am): Update inttypes.h rule.
1744
1745 2012-01-05  Jim Meyering  <meyering@redhat.com>
1746
1747         init.sh: don't waste a subshell just to redirect stderr
1748         * tests/init.sh: In testing for diff -u and diff -c, use a
1749         stderr-redirecting exec inside `...` rather than a subshell.
1750
1751         test-init.sh: avoid failure on HP-UX 11.00
1752         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1753         resolves to diff -c or cmp.  Reported by Bruno Haible.
1754
1755 2012-01-05  Bruno Haible  <bruno@clisp.org>
1756
1757         Tests for module 'strtoull'.
1758         * modules/strtoull-tests: New file.
1759         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1760
1761 2012-01-05  Bruno Haible  <bruno@clisp.org>
1762
1763         Tests for module 'strtoll'.
1764         * modules/strtoll-tests: New file.
1765         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1766
1767 2012-01-05  Bruno Haible  <bruno@clisp.org>
1768
1769         Tests for module 'strtoul'.
1770         * modules/strtoul-tests: New file.
1771         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1772
1773 2012-01-05  Bruno Haible  <bruno@clisp.org>
1774
1775         Tests for module 'strtol'.
1776         * modules/strtol-tests: New file.
1777         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1778
1779 2012-01-04  Jim Meyering  <meyering@redhat.com>
1780
1781         test-init.sh: accommodate Solaris 5.10's different diff -u output
1782         * tests/test-init.sh: Also exempt @@ lines from the comparison
1783         of diff output, since Solaris 5.10 and GNU diff formats differ.
1784         Reported by Stefano Lattarini.
1785
1786 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1787
1788         test-posixtm: don't assume signed integer wraparound
1789         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1790         after signed integer overflow.  Inspired by (though it may not
1791         fix) Bruno Haible's bug report in
1792         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1793
1794         Spell out "Windows 9x" and "Windows XP".
1795         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1796         "Windows 9x" and "WinXP" with "Windows XP".
1797
1798 2012-01-04  Jim Meyering  <meyering@redhat.com>
1799
1800         test-vc-list-files-cvs.sh: remove obsolete comment
1801         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1802         double exit.  Now that's all encapsulated via skip_ and Exit.
1803
1804 2012-01-04  Bruno Haible  <bruno@clisp.org>
1805
1806         Talk about "native Windows API", not "Win32".
1807         * lib/classpath.c: Update comments to mention native Windows.
1808         * lib/csharpexec.c: Likewise.
1809         * lib/dup2.c: Likewise.
1810         * lib/error.c: Likewise.
1811         * lib/fcntl.c: Likewise.
1812         * lib/filename.h: Likewise.
1813         * lib/findprog.c: Likewise.
1814         * lib/get-rusage-as.c: Likewise.
1815         * lib/get-rusage-data.c: Likewise.
1816         * lib/getpagesize.c: Likewise.
1817         * lib/javaexec.c: Likewise.
1818         * lib/msvc-inval.c: Likewise.
1819         * lib/msvc-nothrow.c: Likewise.
1820         * lib/nanosleep.c: Likewise.
1821         * lib/nonblocking.c: Likewise.
1822         * lib/printf-parse.c: Likewise.
1823         * lib/setlocale.c: Likewise.
1824         * lib/sigaction.c: Likewise.
1825         * lib/strerror_r.c: Likewise.
1826         * lib/tmpdir.c: Likewise.
1827         * lib/vasnprintf.c: Likewise.
1828         * lib/w32spawn.h: Likewise.
1829         * lib/waitpid.c: Likewise.
1830         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1831         * m4/locale-ar.m4: Likewise.
1832         * m4/locale-fr.m4: Likewise.
1833         * m4/locale-ja.m4: Likewise.
1834         * m4/locale-tr.m4: Likewise.
1835         * m4/locale-zh.m4: Likewise.
1836         * m4/printf.m4: Likewise.
1837         * tests/test-cloexec.c: Likewise.
1838         * tests/test-copy-acl.sh: Likewise.
1839         * tests/test-copy-file.sh: Likewise.
1840         * tests/test-file-has-acl.sh: Likewise.
1841         * tests/test-set-mode-acl.sh: Likewise.
1842         * tests/test-dup-safer.c: Likewise.
1843         * tests/test-dup2.c: Likewise.
1844         * tests/test-dup3.c: Likewise.
1845         * tests/test-fcntl.c: Likewise.
1846         * tests/test-nonblocking-pipe.h: Likewise.
1847         * tests/test-nonblocking-socket.h: Likewise.
1848         * tests/test-pipe.c: Likewise.
1849         * tests/test-pipe2.c: Likewise.
1850         * tests/test-spawn-pipe-child.c: Likewise.
1851         * doc/acl-resources.txt: Likewise.
1852         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1853         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1854         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1855         * lib/localcharset.c: Update comments to mention native Windows.
1856         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1857         * lib/localename.c: Likewise.
1858         * lib/progreloc.c: Likewise.
1859         * lib/relocatable.c: Likewise.
1860         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1861         (windows_compute_revents): Renamed from win32_compute_revents.
1862         (windows_compute_revents_socket): Renamed from
1863         win32_compute_revents_socket.
1864         * lib/select.c: Update comments to mention native Windows.
1865         (windows_poll_handle): Renamed from win32_poll_handle.
1866         * m4/threadlib.m4: Update comments to mention native Windows.
1867         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1868         --enable-threads=windows instead of --enable-threads=win32. Set
1869         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1870         * lib/glthread/lock.h: Update comments to mention native Windows.
1871         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1872         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1873         USE_WIN32_THREADS.
1874         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1875         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1876         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1877         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1878         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1879         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1880         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1881         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1882         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1883         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1884         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1885         * tests/test-tls.c: Likewise.
1886         Rationale:
1887         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1888         on both 32-bit and 64-bit Windows systems.
1889         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1890         line of distinction is between "native Windows" on one side and Unix/
1891         POSIX systems on the other side. More details in
1892         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1893         Suggested by Paul Eggert.
1894
1895 2012-01-03  Bruno Haible  <bruno@clisp.org>
1896
1897         isatty: Support for MSVC 9.
1898         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1899         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1900         (_isatty_nothrow): New function.
1901         (isatty): Use it instead of _isatty.
1902         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1903         * lib/poll.c (IsConsoleHandle): Likewise.
1904         * lib/select.c (IsConsoleHandle): Likewise.
1905         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1906         (gl_PREREQ_ISATTY): New macro.
1907         * modules/isatty (Depends-on): Add msvc-inval.
1908         (configure.ac): Invoke gl_PREREQ_ISATTY.
1909
1910 2012-01-03  Jim Meyering  <meyering@redhat.com>
1911
1912         maint.mk: remove temporary transition aid from over 1.5 years ago
1913         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1914         purpose was to aid in the transition (avoiding silent malfunction)
1915         from that old name to the new _sc_search_regexp.  This shim was
1916         added by commit 219c504b.
1917
1918         init.sh: do not try to accommodate compare arguments starting with "-"
1919         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1920         compare arguments that start with "-".  Besides, we do not worry
1921         about this when invoking diff or cmp; why start now with sed?
1922         Using "--" to separate options from argument would trigger sed
1923         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1924         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1925
1926 2012-01-02  Bruno Haible  <bruno@clisp.org>
1927
1928         Enhance tests for module 'isatty'.
1929         * modules/isatty-tests (Depends-on): Add pipe-posix.
1930         * tests/test-isatty.c: Include <fcntl.h>.
1931         (DEV_NULL): New macro.
1932         (main): Test the resut of isatty() also on regular files, pipes, and
1933         /dev/null.
1934
1935         New module 'isatty'.
1936         * lib/unistd.in.h (isatty): New declaration.
1937         * lib/isatty.c: New file, based on an idea of
1938         Bastien Roucariès <roucaries.bastien@gmail.com>.
1939         * m4/isatty.m4: New file.
1940         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1941         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1942         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1943         REPLACE_ISATTY.
1944         * modules/isatty: New file.
1945         * doc/posix-functions/isatty.texi: Mention the new module.
1946         Suggested by Paolo Bonzini.
1947
1948 2012-01-02  Bruno Haible  <bruno@clisp.org>
1949
1950         canonicalize: Tweak 2011-12-29 commit.
1951         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1952         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1953
1954 2012-01-02  Jim Meyering  <meyering@redhat.com>
1955
1956         gitlog-to-changelog: describe input syntax in --help output
1957         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1958
1959         gitlog-to-changelog: fix typo in --help: show backslash before email @
1960         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1961         in sources, but not in actual output.
1962
1963 2011-12-30  Jim Meyering  <meyering@redhat.com>
1964
1965         gitlog-to-changelog: don't malfunction when name contains %-directive
1966         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1967         in a name string cause trouble.  E.g., with a user name of "%s",
1968         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1969
1970 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1971
1972         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1973         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1974         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1975         the "  (tiny change)" notation that is appended to the standard
1976         ChangeLog "date  name  email" header line.
1977
1978 2012-01-01  Jim Meyering  <meyering@redhat.com>
1979
1980         test-framework-sh: init.sh: fix "make dist" failure
1981         When using gnulib-tool's --with-tests option and any module that
1982         depends on test-framework-sh, "make dist" would fail due to the
1983         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1984         in the gltests directory, and not in the gllib/ directory.
1985         One way to work around that is to move the EXTRA_DIST += init.sh
1986         from the primary module to the -tests one:
1987         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1988         * modules/test-framework-sh (Makefile.am): ...not here.
1989         Reported by Tom G. Christensen in
1990         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1991
1992         version-etc: update copyright year reported by --version
1993         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1994
1995 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1996
1997         canonicalize: only stat() if required
1998         * lib/canonicalize.c (canonicalize_filename_mode):
1999         Avoid calling l?stat() when both CAN_MISSING,
2000         and CAN_NOLINKS are set, as we neither need
2001         to resolve symlinks or test component existence.
2002
2003 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
2004
2005         doc: cover st_ino issues once; add OpenVMS etc.
2006         * doc/posix-functions/stat.texi (stat):
2007         * doc/posix-functions/lstat.texi (lstat):
2008         * doc/posix-functions/fstatat.texi (fstatat):
2009         * doc/posix-functions/fstat.texi (fstat):
2010         Move general 'struct stat' stuff to sys_stat.texi,
2011         leaving behind a pointer.
2012         * doc/posix-headers/sys_stat.texi (sys/stat.h):
2013         Merge duplicate info about 'struct stat' problems into here.
2014         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
2015         and suggest partial workarounds.
2016
2017         same-inode: port to OpenVMS
2018         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
2019         three st_ino values.
2020
2021 2011-12-30  Pádraig Brady  <P@draigBrady.com>
2022
2023         canonicalize: fix references to stat() and lstat()
2024         * lib/canonicalize.c (canonicalize_filename_mode):
2025         Ensure references always resolve to a replacement
2026         function if required (even via a macro).
2027
2028 2011-12-30  Jim Meyering  <meyering@redhat.com>
2029
2030         gitlog-to-changelog: remove a little duplication
2031         * build-aux/gitlog-to-changelog (main): Grep @lines once,
2032         rather than twice.
2033
2034 2011-12-29  Pádraig Brady  <P@draigBrady.com>
2035
2036         canonicalize: add support for not resolving symlinks
2037         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
2038         indicate we don't want to follow symlinks.  Also
2039         provide CAN_MODE_MASK to aid setting these existing
2040         mutually exclusive values.
2041         * lib/canonicalize.c (canonicalize_filename_mode):
2042         Extract the flags from can_mode parameter, which
2043         are currently just used to select between stat()
2044         and lstat().  Also ensure that mutually exclusive
2045         values are flagged immediately as invalid.
2046         * tests/test-canonicalize.c: Verify symlinks are
2047         not followed, and that invalid flag combinations
2048         are diagnosed.
2049
2050 2011-12-25  Jim Meyering  <meyering@redhat.com>
2051
2052         gitlog-to-changelog: do not clump multi-paragraph entries
2053         Identical header lines (date,name,email+coauthors) are suppressed,
2054         thus putting all entries with those same characteristics under
2055         a single header.  However, when a log entry consists of two or
2056         more paragraphs, it may not be clear where it starts and ends.
2057         This change makes it so that such an entry is always separated
2058         from others by a header line, even when that header would
2059         otherwise be suppressed.
2060         * build-aux/gitlog-to-changelog: Implement the above.
2061         Inspired by a related request from Stefano Lattarini in
2062         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
2063
2064 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2065
2066         announce-gen: fix `cmd' typo in diagnostic
2067         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
2068         diagnostic: a missing '$' meant that the command was not output.
2069
2070 2011-12-23  Jim Meyering  <meyering@redhat.com>
2071
2072         test-framework-sh: distribute init.sh
2073         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
2074         Otherwise, "make -C gnulib-tests check" (at least in grep) would
2075         fail due to the lack of init.sh.
2076
2077         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
2078         * modules/atexit-tests: Rather than listing tests/init.sh,
2079         now that there's a module for it, simply depend on that new module.
2080         * modules/closein-tests: Likewise.
2081         * modules/exclude-tests: Likewise.
2082         * modules/getcwd-tests: Likewise.
2083         * modules/perror-tests: Likewise.
2084         * modules/pread-tests: Likewise.
2085         * modules/pwrite-tests: Likewise.
2086         * modules/vc-list-files-tests: Likewise.
2087         * modules/verify-tests: Likewise.
2088         * modules/xalloc-die-tests: Likewise.
2089         * modules/xstrtoimax-tests: Likewise.
2090         * modules/xstrtol-tests: Likewise.
2091         * modules/xstrtoll-tests: Likewise.
2092         * modules/xstrtoumax-tests: Likewise.
2093         * modules/yesno-tests: Likewise.
2094
2095 2011-12-22  Jim Meyering  <meyering@redhat.com>
2096
2097         test-framework-sh: add minimal tests of init.sh's compare function
2098         * modules/test-framework-sh-tests: New file.
2099         * tests/test-init.sh: New file.
2100
2101         test-framework-sh: new module
2102         * modules/test-framework-sh: New file.
2103         * MODULES.html.sh (Support for maintaining and releasing projects):
2104         List it.
2105
2106         init.sh: do not emit simulated diff output to stderr
2107         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
2108
2109 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2110
2111         .gitignore: ignore gnulib.dvi and regex.info
2112         * doc/.gitignore:add gnulib.dvi and regex.info
2113
2114 2011-12-22  Jim Meyering  <meyering@redhat.com>
2115
2116         init.sh: correct previous change
2117         * tests/init.sh (compare): My previous change was wrong.
2118         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
2119
2120         init.sh: avoid unwarranted test failure when using "set -e"
2121         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
2122         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
2123         a use like "compare exp out" would get evoke an unconditional failure.
2124
2125 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
2126
2127         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
2128         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
2129         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
2130         autoreconf that did not.
2131         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
2132         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
2133
2134 2011-12-17  Jim Meyering  <meyering@redhat.com>
2135
2136         bootstrap: remove some now-unneeded code
2137         This script arose back when gnulib-tool was young.
2138         Since then, it has seen improvements that render much of this
2139         script unnecessary.  In particular, it can now make symlinks
2140         to the files it uses.  Also, I no longer see as much value in
2141         marking files as read-only via comments.
2142         If you relied on the symlink-creation feature of the preceding
2143         version of this script, you can get most of that functionality
2144         by adding the --symlink option to the definition of
2145         gnulib_tool_option_extras in your bootstrap.conf file.
2146         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
2147         Run autopoint and libtoolize *before* gnulib-tool.
2148         After it, run an abbreviated autoreconf, rather than a loop around
2149         all tools.
2150         (slirp, bt_mark_as_generated): Remove functions.
2151
2152 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2153
2154         ftoastr: fix typo
2155         * lib/ftoastr.h: Fix misspelling in comment.
2156
2157 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2158
2159         * top/README-release: fix punctuation.
2160
2161 2011-12-17  Jim Meyering  <meyering@redhat.com>
2162
2163         bootstrap: correct the recent buildreq change
2164         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2165         had no effect.
2166         * build-aux/bootstrap (buildreq): Bracket each search term with
2167         "*...*", so that the shell "case" statement works as intended.
2168         Add comments.
2169
2170 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2171
2172         build: let bootstrap resort to wget when downloading .po files
2173         * build-aux/bootstrap (download_po_files): Fallback to wget when
2174         downloading the .po files via rsync fails.  This is necessary to
2175         bootstrap from behind a strict firewall.
2176
2177 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2178
2179         stdint: don't assume C++11 when compiling with g++
2180         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2182         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2183         work also in C++ before C++11, as that improperly inhibits
2184         generating a substitute stdint.h for that case.
2185
2186 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2187
2188         alloca: protect comment from gnulib-tool
2189         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2190         that gnulib-tool doesn't think it's a license, and munge it to
2191         say "GCC version 3".
2192
2193 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2194
2195         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2196         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2197         $(abs_top_builddir) instead of $(top_builddir).
2198
2199 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2200
2201         strftime-tests: also test nanoseconds
2202         * tests/test-strftime.c (T): Add a test of %N.
2203
2204 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2205
2206         inttypes, stdint: add C++11 support
2207         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2208         when including inttypes.h and stdint.h.  Support this change to
2209         the standard.
2210         * doc/posix-headers/inttypes.texi (inttypes.h):
2211         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2212         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2213         Define if not defined already, for the benefit of pre-C++11 hosts.
2214         Define the standard format macros (e.g., PRId8) always.
2215         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2216         Likewise, if __cpluspus.  Define the standard constant and limit
2217         macros (e.g., INT8_C, INT8_MAX) always.
2218         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2219         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2220         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2221         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2222         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2223         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2224         Likewise.
2225
2226 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2227
2228         nonblocking tests: Fix test failure on Linux/PPC.
2229         Suggested by Prerna Saxena in
2230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2231         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2232         Set to 1100000.
2233
2234 2011-12-12  Jim Meyering  <meyering@redhat.com>
2235
2236         argmatch: don't hard-code `' when listing valid option arguments
2237         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2238         use the quote function to add quotes.  Use fputs rather than
2239         fprintf for the format string with no format directive.
2240
2241 2011-12-07  Eric Blake  <eblake@redhat.com>
2242
2243         bootstrap: detect tools required by gnulib-tool
2244         * build-aux/bootstrap (buildreq): Provide minimum implicit
2245         dependencies.
2246         * DEPENDENCIES: Mention patch as a prereq.
2247
2248 2011-12-04  Bruno Haible  <bruno@clisp.org>
2249
2250         sethostname: Port to Windows platforms.
2251         * lib/sethostname.c: Provide an alternate implementation for Windows
2252         platforms.
2253         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2254         (main): Skip the test if sethostname() fails with EPERM. On Windows
2255         platforms, don't check the result of gethostname().
2256
2257 2011-12-04  Bruno Haible  <bruno@clisp.org>
2258             Jim Meyering  <meyering@redhat.com>
2259
2260         tests: Avoid spurious error message on platforms without mktemp program.
2261         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2262
2263 2011-12-04  Bruno Haible  <bruno@clisp.org>
2264
2265         sethostname: Fix documentation.
2266         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2267         "not fixed" section.
2268
2269 2011-12-03  Bruno Haible  <bruno@clisp.org>
2270
2271         gnulib-tool: Verify that the License field is present and non-empty.
2272         * gnulib-tool (func_get_license_raw): New function, extracted from
2273         func_get_license.
2274         (func_get_license): Use it. Warn if the module is not a test module and
2275         has no license.
2276         Suggested by Jim Meyering.
2277
2278 2011-12-03  Bruno Haible  <bruno@clisp.org>
2279
2280         sethostname tests: Fix link error on mingw.
2281         * tests/test-sethostname1.c: New file, extracted from
2282         tests/test-sethostname.c.
2283         * tests/test-sethostname2.c: New file, extracted from
2284         tests/test-sethostname.c.
2285         * tests/test-sethostname.c: Remove file.
2286         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2287         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2288         (Depends-on): Add gethostname.
2289         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2290         Link the latter with $(GETHOSTNAME_LIB).
2291
2292         sethostname tests: Fix compilation error on mingw.
2293         * tests/test-sethostname.c: Don't include <sys/types.h>.
2294         (geteuid): Use a dummy value without uid_t.
2295         * modules/sethostname-tests (Depends-on): Remove sys_types.
2296
2297         sethostname tests: Avoid a gcc warning.
2298         * tests/test-sethostname.c (main): Remove an unused variable.
2299
2300         Tweak last commit.
2301         * modules/sethostname-tests (Files): Sort by decreasing importance.
2302         (configure.ac): Check for geteuid.
2303         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2304         the test when there's nothing to test. Drop an unnecessary cast.
2305         Improve an error message. Verify that the final sethostname() call
2306         succeeds.
2307
2308 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2309
2310         Add a test suite for the sethostname module.
2311         * modules/sethostname-tests: New file.  A test program
2312         for the sethostname module.
2313         * tests/test-sethostname.c: Likewise.
2314
2315 2011-12-03  Bruno Haible  <bruno@clisp.org>
2316
2317         Tweak last commit.
2318         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2319         Fix preprocessor directives indentation. Fix typos.
2320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2321         * modules/unistd (Makefile): Likewise.
2322
2323 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2324
2325         Integrate the sethostname module into unistd.
2326         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2327         into the unistd.h header.
2328         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2329         preprocessor directives.
2330         * modules/unistd: Setup the Makefile substitutions of the
2331         SETHOSTNAME preprocessor directives.
2332
2333 2011-12-03  Bruno Haible  <bruno@clisp.org>
2334
2335         Tweak last commit.
2336         * lib/sethostname.c: Don't include <string.h>.
2337         (sethostname): No need to copy the argument string to the stack. Don't
2338         call clearerr. Preserve errno when fprintf failed.
2339         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2340         Don't invoke AC_REPLACE_FUNCS.
2341         * modules/sethostname (Link): Remove empty section.
2342         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2343         failure problem.
2344
2345 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2346
2347         New module 'sethostname'.
2348         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2349         for systems that lack it.
2350         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2351         sethostname declaration and function.
2352         * modules/sethostname: New file.  Define the sethostname module.
2353
2354 2011-12-03  Bruno Haible  <bruno@clisp.org>
2355
2356         Tweak last commit.
2357         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2358
2359 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2360
2361         Split the HOST_NAME_MAX detection into a separate m4 macro.
2362         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2363         macro so it can be used by the pending sethostname module.
2364
2365 2011-12-03  Bruno Haible  <bruno@clisp.org>
2366
2367         Fix module descriptions syntax.
2368         * modules/argv-iter (License): Fix syntax.
2369         * modules/di-set (License): Likewise.
2370         * modules/ino-map (License): Likewise.
2371         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2372
2373 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2374
2375         stdalign: port to Clang 3.0
2376         Problem reported by Simon Josefsson in
2377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2378         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2379         which has <stdalign.h> but which does not define alignof.
2380         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2381
2382 2011-12-01  Eric Blake  <eblake@redhat.com>
2383
2384         mktempd: silence dd usage
2385         * build-aux/mktempd (rand_bytes): Silence dd.
2386
2387 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2388
2389         manywarnings: Don't mention gcc version in docstring.
2390         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2391         Jim Meyering <meyering@redhat.com>.
2392
2393 2011-11-30  Jim Meyering  <meyering@redhat.com>
2394
2395         hash: mark a few floating point constants with "f" suffix
2396         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2397         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2398         floating point constants with "f", since they're destined to be
2399         saved/used as "float"s.
2400
2401 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2402
2403         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2404         * tests/test-float.c (test_long_double): Correct and re-enable the
2405         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2406
2407 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2408
2409         Avoid subtracting two pointers that don't point into the same block.
2410         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2411         only pointers into the same memory block are subtracted. We cannot
2412         assume that sizeof (ptrdiff_t) == sizeof (void *).
2413
2414 2011-11-29  Eric Blake  <eblake@redhat.com>
2415
2416         maint.mk: add syntax check for use of compare from init.sh
2417         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2418         moved here from coreutils.
2419
2420         manywarnings: drop -Wunsuffixed-float-constants
2421         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2422         '1.0D', which is the only way to silence this warning for 'double'.
2423
2424 2011-11-29  Jim Meyering  <meyering@redhat.com>
2425
2426         hash: mark compute_bucket_size with the pure attribute
2427         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2428
2429         quotearg, propername: correct pragma guard expression
2430         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2431         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2432
2433 2011-11-28  Jim Meyering  <meyering@redhat.com>
2434
2435         propername: do not mark proper_name with the const attribute
2436         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2437         since it examines data pointed to by its parameter.
2438         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2439         the suggestion from -Wsuggest-attribute=const.
2440
2441         propername: mark one more function as const
2442         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2443
2444 2011-11-27  Jim Meyering  <meyering@redhat.com>
2445
2446         mark functions with const and pure attributes
2447
2448         Mark functions per suggestions from gcc-4.6 when using these options:
2449         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2450         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2451         Follow these guidelines: when possible, apply the attribute to
2452         an extern declaration, not to its definition.  Apply it to the
2453         definition only when the definition is static.
2454         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2455         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2456         * lib/base64.h (isbase64): Likewise.
2457         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2458         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2459         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2460         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2461         (c_tolower, c_toupper): Likewise.
2462         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2463         * lib/chdir-long.c (find_non_slash): Likewise.
2464         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2465         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2466         * lib/file-type.h (file_type): Likewise.
2467         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2468         * lib/filevercmp.c (verrevcmp): Likewise.
2469         * lib/freadahead.h (freadahead): Likewise.
2470         * lib/fts.c (fts_maxarglen): Likewise.
2471         * lib/hash-pjw.h (hash_pjw): Likewise.
2472         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2473         * lib/hash.c (is_prime, next_prime): Likewise.
2474         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2475         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2476         (hash_table_ok, hash_get_first, hash_string): Likewise.
2477         (compute_bucket_size): Likewise.
2478         * lib/i-ring.h (i_ring_empty): Likewise.
2479         * lib/isnan.c (isnanl): Likewise.
2480         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2481         * lib/memcasecmp.h (memcasecmp): Likewise.
2482         * lib/memchr2.h (memchr2): Likewise.
2483         * lib/memcmp2.h (memcmp2): Likewise.
2484         * lib/parse-datetime.y (lookup_zone): Likewise.
2485         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2486         [!WINDOWS_SOCKETS]: Likewise.
2487         * lib/strnlen1.h (strnlen1): Likewise.
2488         * lib/uniwidth.in.h (uc_width): Likewise.
2489         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2490         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2491         (quoting_options_from_style): Add a comment.
2492         * lib/propername.h (proper_name): Add a comment.
2493
2494 2011-11-27  Bruno Haible  <bruno@clisp.org>
2495
2496         Remove unused macros from !_LIBC code in glibc-borrowed files.
2497         * lib/fnmatch.c (STRCOLL): Remove macro.
2498         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2499         * lib/glob.c (__stat, __readdir64): Remove macros.
2500         * lib/tempname.c (__open64, __xstat64): Remove macros.
2501         Suggested by Paul Eggert.
2502
2503 2011-11-27  Bruno Haible  <bruno@clisp.org>
2504
2505         getcwd: Fix link error on MSVC 9.
2506         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2507
2508 2011-11-27  Bruno Haible  <bruno@clisp.org>
2509
2510         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2511         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2512         HAVE_OPENDIR is 0.
2513         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2514         HAVE_CLOSEDIR is 0.
2515         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2516         is 0.
2517         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2518
2519 2011-11-27  Bruno Haible  <bruno@clisp.org>
2520
2521         getcwd: Fix bug from 2011-08-17.
2522         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2523         platforms that need it.
2524         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2525         code of 4 to be a failure, not a success. This ensures that
2526         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2527
2528 2011-11-27  Bruno Haible  <bruno@clisp.org>
2529
2530         binary-io tests: Avoid test failure on mingw when libtool is used.
2531         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2532         Don't verify the size of t-bin-out1.tmp here.
2533         * tests/test-binary-io.sh: Verify it here.
2534         Reported by Simon Josefsson.
2535
2536 2011-11-26  Bruno Haible  <bruno@clisp.org>
2537
2538         Fix conflict between two instantiations of module 'unistd'.
2539         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2540         ${include_guard_prefix} also in the autoconf snippet.
2541         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2543         GNULIB_UNISTD_H_GETOPT.
2544         * modules/getopt-posix (configure.ac): Set the
2545         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2546         * modules/getopt-gnu (configure.ac): Likewise.
2547         * modules/unistd (Makefile.am): Change the substitution value of
2548         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2549         Reported by Simon Josefsson.
2550
2551 2011-11-25  Bruno Haible  <bruno@clisp.org>
2552
2553         pagealign_alloc: Doc and comments.
2554         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2555         module.
2556         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2557
2558 2011-11-25  Jim Meyering  <meyering@redhat.com>
2559
2560         test-update-copyright.sh: avoid false-positive failure
2561         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2562         around false positive failure on Cygwin/Windows.  The latter was
2563         matching erroneously-created files with names like
2564         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2565
2566 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2567
2568         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2569         * m4/valgrind-tests.m4: Check that the parameters that will be
2570         used works, not just a subset of them.  Reported by Bruno Haible
2571         <bruno@clisp.org>.
2572
2573 2011-11-24  Jim Meyering  <meyering@redhat.com>
2574
2575         test-stdalign.c: comment out long double tests
2576         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2577         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2578         error: '_Alignas' specifiers cannot reduce alignment of \
2579         'static_longdouble_alignas'.
2580
2581 2011-11-22  Jim Meyering  <meyering@redhat.com>
2582
2583         init.sh: make "compare /dev/null FILE" output more readable
2584         * tests/init.sh (compare_): Document the preferred order of arguments.
2585         (emit_diff_u_header_): New function.
2586         (compare_dev_null_): Emit a simulated diff, rather than just the
2587         contents of the unexpected file.  Suggestion from Bruno Haible.
2588
2589 2011-11-21  Jim Meyering  <meyering@redhat.com>
2590             Eric Blake  <eblake@redhat.com>
2591
2592         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2593         * tests/init.sh: Make our compare function slightly more portable.
2594         Reported by Bruno Haible in
2595         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2596
2597 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2598
2599         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2600         before using it, in code that ends up in config.h.
2601
2602 2011-11-20  Bruno Haible  <bruno@clisp.org>
2603
2604         getcwd: Work around getcwd bug on AIX 5..7.
2605         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2606         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2607         Use a different value for gl_cv_func_getcwd_path_max. Move the
2608         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2609         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2610         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2611         Define HAVE_MINIMALLY_WORKING_GETCWD.
2612         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2613         where it is not even minimally working, that is, on AIX.
2614         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2615         m4/getcwd-path-max.m4.
2616         (main): Update exit code computation.
2617         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2618         getcwd does not handle long file names.
2619
2620 2011-11-20  Bruno Haible  <bruno@clisp.org>
2621
2622         getcwd: Fix bug from 2009-09-10.
2623         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2624         like "no".
2625
2626 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2627
2628         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2629
2630 2011-11-20  Bruno Haible  <bruno@clisp.org>
2631
2632         fma tests: Avoid shadowing local variables.
2633         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2634         expected.
2635
2636 2011-11-20  Bruno Haible  <bruno@clisp.org>
2637
2638         copysignf tests: Fix.
2639         * tests/test-copysignf.c: Fix signature check.
2640
2641 2011-11-20  Bruno Haible  <bruno@clisp.org>
2642
2643         fma: Remove unused code.
2644         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2645         unused macros.
2646
2647 2011-11-20  Bruno Haible  <bruno@clisp.org>
2648
2649         sethostname: Fix doc about AIX.
2650         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2651         sethostname; it has it.
2652
2653         sethostname: Mention more portability problems.
2654         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2655         problem.
2656         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2657
2658 2011-11-19  Bruno Haible  <bruno@clisp.org>
2659
2660         Depend on module fcntl-h when AT_FDCWD is used.
2661         * modules/utimens (Depends-on): Add fcntl-h.
2662         * modules/areadlinkat (Depends-on): Likewise.
2663         * modules/areadlinkat-with-size (Depends-on): Likewise.
2664         * modules/faccessat (Depends-on): Likewise.
2665         * modules/fchmodat (Depends-on): Likewise.
2666         * modules/fchownat (Depends-on): Likewise.
2667         * modules/getcwd (Depends-on): Likewise.
2668         * modules/mkdirat (Depends-on): Likewise.
2669         * modules/mkfifoat (Depends-on): Likewise.
2670         * modules/readlinkat (Depends-on): Likewise.
2671         * modules/symlinkat (Depends-on): Likewise.
2672         * modules/dup2-tests (Depends-on): Likewise.
2673         * modules/fdutimensat-tests (Depends-on): Likewise.
2674         * modules/futimens-tests (Depends-on): Likewise.
2675
2676 2011-11-19  Bruno Haible  <bruno@clisp.org>
2677
2678         euidaccess: Update a comment.
2679         * lib/euidaccess.c: Update comment about platforms with faccessat.
2680
2681 2011-11-19  Bruno Haible  <bruno@clisp.org>
2682
2683         openat: Fix file list.
2684         * modules/openat (Files): Remove lib/at-func.c.
2685
2686 2011-11-19  Bruno Haible  <bruno@clisp.org>
2687
2688         fstatat: Simplify.
2689         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2690         gnulib should define rpl_fstatat, there is a
2691         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2692
2693 2011-11-19  Bruno Haible  <bruno@clisp.org>
2694
2695         Ensure 'inline' can be used in tests/test-utimens-common.h.
2696         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2697         * modules/futimens-tests (configure.ac): Likewise.
2698         * modules/utimens-tests (configure.ac): Likewise.
2699         * modules/utimensat-tests (configure.ac): Likewise.
2700
2701 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2702
2703         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2704         not hash_insert0.
2705         (hash_insert_if_absent): Doc fix.
2706
2707 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2708
2709         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2710
2711 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2712
2713         test-getcwd: disambiguate exit status
2714         * tests/test-getcwd.c (test_long_name): Return 0..7.
2715         (main): Exit with an unambiguous exit status.  The old
2716         code yielded a mysterious mixture of two failure codes.
2717
2718         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2719         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2720         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2721         rpl_fstatat or fstatat.  This should fix the other problem
2722         reported by Kai Habel in
2723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2724         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2726         and I reproduced it on a Solaris 8 host we still have in production.
2727
2728 2011-11-18  Jim Meyering  <meyering@redhat.com>
2729
2730         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2731         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2732         Add a sentence to the comment.
2733         (hash_insert0): New function that simply calls hash_insert_if_absent.
2734         * lib/hash.h (hash_insert_if_absent): Declare it.
2735         (hash_insert0): Add deprecation attribute.
2736         (_GL_ATTRIBUTE_DEPRECATED): Define.
2737         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2738         not hash_insert0.
2739         * NEWS: Mention it, even though it's not really an incompatible change.
2740
2741 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2742
2743         openat: avoid compilation failure due to lack of <errno.h> inclusion
2744         * lib/openat.c: Include <errno.h>.
2745
2746 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2747
2748         * modules/getcwd (Depends-on): Add fdopendir.
2749         This fixes one of the two problems reported by Kai Habel in
2750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2751
2752         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2753         stdalign problem reported by Ian Beckwith in
2754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2755         * modules/crypto/gc-arcfour (Depends-on):
2756         Depend conditionally on crypto/arcfour.
2757         * modules/crypto/gc-arctwo (Depends-on):
2758         Depend conditionally on crypto/arctwo.
2759         * modules/crypto/gc-des (Depends-on):
2760         Depend conditionally on crypto/des.
2761         * modules/crypto/gc-hmac-md5 (Depends-on):
2762         Depend conditionally on crypto/hmac-md5.
2763         * modules/crypto/gc-hmac-sha1 (Depends-on):
2764         Depend conditionally on crypto/hmac-sha1.
2765         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2766         * modules/crypto/gc-md4 (Depends-on):
2767         Depend conditionally on crypto/md4.
2768         * modules/crypto/gc-md5 (Depends-on):
2769         Depend conditionally on crypto/md5.
2770         * modules/crypto/gc-rijndael (Depends-on):
2771         Depend conditionally on crypto/rijndael.
2772         * modules/crypto/gc-sha1 (Depends-on):
2773         Depend conditionally on crypto/sha1.
2774         * modules/crypto/gc-arcfour:
2775         * modules/crypto/gc-arctwo:
2776         * modules/crypto/gc-des:
2777         * modules/crypto/gc-hmac-md5:
2778         * modules/crypto/gc-hmac-sha1:
2779         * modules/crypto/gc-md2:
2780         * modules/crypto/gc-md4:
2781         * modules/crypto/gc-md5:
2782         * modules/crypto/gc-rijndael:
2783         * modules/crypto/gc-sha1:
2784         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2785         now that the conditional dependencies do the work for us.
2786
2787 2011-11-17  Jim Meyering  <meyering@redhat.com>
2788
2789         tests: factor st_ctime-comparison out of two headers
2790         * tests/test-utimens-common.h (ctime_compare): Define.
2791         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2792         * tests/test-lutimens.h (test_lutimens): Likewise.
2793         * tests/test-utimens.h (test_utimens): Likewise.
2794
2795         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2796         Invoke the test program via an init.sh-using wrapper.
2797         * tests/test-getcwd.sh: New file.
2798         * modules/getcwd-tests (Files): Add it.
2799         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2800
2801 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2802
2803         gitlog-to-changelog: support multi-author commits.
2804         The FSF cares about keeping track of all authors of patches to its
2805         projects, but Git doesn't provide obvious support for multi-author
2806         changesets. Consensus seems to be forming around the use of extra
2807         Signed-off-by inspired lines in the log message formatted as
2808         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2809         multi-author commits between version control systems.
2810         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2811         log message and output in standard ChangeLog multi-author format.
2812         Reported by Peter Rosin <peda@lysator.liu.se>
2813
2814 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2815             Bruno Haible  <bruno@clisp.org>
2816
2817         Fix some modules' file list.
2818         * modules/fstatat (Files): Add m4/lstat.m4.
2819         * modules/openat (Files): Likewise.
2820         * modules/unlinkat (Files): Likewise.
2821
2822 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2823
2824         maint.mk: fix tight-scope.mk generation in VPATH builds.
2825         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2826         reference with $(srcdir) so that the file is found correctly even
2827         when running `make syntax-check' in a VPATH build.
2828
2829 2011-11-13  Bruno Haible  <bruno@clisp.org>
2830             Jim Meyering  <meyering@redhat.com>
2831
2832         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2833         * tests/init.sh (compare): Remove "No differences encountered" or
2834         synonymous output from the 'diff' program.
2835
2836 2011-11-13  Bruno Haible  <bruno@clisp.org>
2837
2838         Makefile: Tweak indentation.
2839         * Makefile: Use tab as first character in every line that contains rule
2840         commands.
2841
2842 2011-11-13  Bruno Haible  <bruno@clisp.org>
2843
2844         Syntax check for copyright statements.
2845         * check-copyright: New file.
2846         * Makefile (sc_check_copyright): New rule.
2847
2848 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2849
2850         * build-aux/git-version-gen: Add --prefix to configure the tag
2851         match string.
2852
2853 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2854
2855         * build-aux/git-version-gen: Add --help and --version.
2856
2857 2011-11-12  Jim Meyering  <meyering@redhat.com>
2858
2859         revamp the other test-exclude?.sh scripts to use init.sh, too
2860         * tests/test-exclude1.sh: Use init.sh.
2861         * tests/test-exclude2.sh: Likewise.
2862         * tests/test-exclude3.sh: Likewise.
2863         * tests/test-exclude4.sh: Likewise.
2864         * tests/test-exclude5.sh: Likewise.
2865         * tests/test-exclude6.sh: Likewise.
2866         * tests/test-exclude7.sh: Likewise.
2867         * tests/test-exclude8.sh: Likewise.
2868         * modules/exclude-tests (Files): List init.sh.
2869
2870         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2871         These shell scripts ignored failure of the binary test-exclude,
2872         so making the latter return 77 didn't cause them to be skipped.
2873         * tests/test-exclude5.sh: Exit with test-exclude's error status
2874         when that program fails.  Revamp to use init.sh.
2875         * tests/test-exclude2.sh: Likewise.
2876
2877         test-exclude: fix a typo
2878         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2879
2880 2011-11-11  Bruno Haible  <bruno@clisp.org>
2881
2882         obstack: Fix compilation error on MSVC 9.
2883         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2884
2885 2011-11-11  Jim Meyering  <meyering@redhat.com>
2886
2887         test-exclude: skip tests rather than failing on deficient systems
2888         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2889         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2890         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2891         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2892
2893 2011-11-10  Bruno Haible  <bruno@clisp.org>
2894
2895         ptsname_r test: Avoid gcc warning on glibc systems.
2896         * tests/test-ptsname_r.c (null_ptr): New function.
2897         (test_errors): Use it.
2898
2899 2011-11-10  Bruno Haible  <bruno@clisp.org>
2900
2901         ptsname_r: Avoid compilation error on OSF/1 5.1.
2902         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2904         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2905         function is not declared or incompatibly declared.
2906         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2907         * modules/ptsname_r (Depends-on, configure.ac): Update.
2908         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2909
2910 2011-11-10  Bruno Haible  <bruno@clisp.org>
2911
2912         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2913         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2914         When cross-compiling, guess yes on all platforms except AIX.
2915         Reported by Ludovic Courtès <ludo@gnu.org>.
2916
2917 2011-11-09  Bruno Haible  <bruno@clisp.org>
2918
2919         ptsname_r tests: Fix bugs.
2920         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2921         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2922
2923 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2924
2925         fstatat: work with cross-compilation
2926         Problem reported by Ludovic Courtès in
2927         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2928         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2929         "cross-compiling" and assume the bug is present.  Replace
2930         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2931         an inverted sense, to be more conservative about our assumptions.
2932         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2933
2934 2011-11-09  Bruno Haible  <bruno@clisp.org>
2935
2936         Improve MODULES.html output.
2937         * modules/mkfifoat (Description): Use the word "function".
2938         * modules/readlinkat (Description): Likewise.
2939         * modules/symlinkat (Description): Likewise.
2940
2941 2011-11-09  Eric Blake  <eblake@redhat.com>
2942
2943         ptsname_r-tests: new test module
2944         * modules/ptsname_r-tests: New module.
2945         * tests/test-ptsname_r.c: New file.
2946
2947         ptsname_r: new module
2948         * modules/ptsname_r: New module.
2949         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2950         * lib/ptsname.c (__ptsname_r): Split...
2951         * lib/ptsname_r.c: ...into new file.
2952         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2953         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2954         * modules/stdlib (Makefile.am): Substitute witnesses.
2955         * lib/stdlib.in.h (ptsname_r): Declare it.
2956         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2957         * MODULES.html.sh (Misc): Likewise.
2958         * modules/ptsname (Depends-on): Alter dependency.
2959         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2960
2961 2011-11-09  Jim Meyering  <meyering@redhat.com>
2962
2963         announce-gen: be more concise when there's only one URL+tarball
2964         * build-aux/announce-gen (get_tool_versions): When you distribute
2965         only one type of tarball, combine the first two "Here are..."
2966         sections and make the key-checking grammar independent of
2967         how many tarballs there are.
2968
2969 2011-11-09  Eric Blake  <eblake@redhat.com>
2970
2971         openpty: provide a stub on mingw
2972         * lib/pty.in.h (includes): Provide forward declarations.
2973         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2974
2975         raise: fix mingw handling of SIGPIPE
2976         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2977
2978 2011-11-08  Bruno Haible  <bruno@clisp.org>
2979
2980         More conditional dependencies.
2981         * modules/faccessat (Depends-on): Add conditions.
2982         * modules/fchmodat (Depends-on): Likewise.
2983         * modules/fchownat (Depends-on): Likewise.
2984         * modules/fstatat (Depends-on): Likewise.
2985         * modules/mkfifoat (Depends-on): Likewise.
2986         * modules/readlinkat (Depends-on): Likewise.
2987         * modules/symlinkat (Depends-on): Likewise.
2988         * modules/unlinkat (Depends-on): Likewise.
2989         * modules/utimensat (Depends-on): Likewise.
2990         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2991         * modules/linkat (Depends-on): Refine the conditions.
2992         * modules/renameat (Depends-on): Likewise.
2993
2994 2011-11-08  Bruno Haible  <bruno@clisp.org>
2995
2996         faccessat: Move AC_LIBOBJ invocation to module description.
2997         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2998         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2999         invocation from here...
3000         * modules/faccessat (configure.ac): ... to here. Invoke
3001         gl_PREREQ_FACCESSAT.
3002
3003 2011-11-08  Bruno Haible  <bruno@clisp.org>
3004
3005         faccessat: Simplify autoconf macro.
3006         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
3007         gl_FUNC_EUIDACCESS.
3008
3009 2011-11-08  Bruno Haible  <bruno@clisp.org>
3010
3011         renameat: Fix dependencies.
3012         * modules/renameat (Depends-on): Add stdbool.
3013
3014 2011-11-08  Bruno Haible  <bruno@clisp.org>
3015
3016         mkfifoat: Fix module description.
3017         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
3018         not gl_UNISTD_MODULE_INDICATOR.
3019
3020 2011-11-08  Bruno Haible  <bruno@clisp.org>
3021
3022         fstatat: Remove unused dependency.
3023         * modules/fstatat (Depends-on): Remove fstat.
3024
3025 2011-11-08  Simon Josefsson  <simon@josefsson.org>
3026
3027         GNUmakefile: behave when Makefile is missing.
3028         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
3029
3030 2011-11-08  Bruno Haible  <bruno@clisp.org>
3031
3032         openat: Conditionalize dependencies.
3033         * lib/openat.c: Reduce the scope of some #includes.
3034         * modules/openat (Depends-on): Add conditions.
3035
3036 2011-11-07  Jim Meyering  <meyering@redhat.com>
3037
3038         maint.mk: extract GPG key ID without using a temporary file
3039         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
3040         without using a temporary file.  Based on a suggestion from Werner Koch
3041         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
3042
3043 2011-11-07  Eric Blake  <eblake@redhat.com>
3044
3045         grantpt: fix typo
3046         * lib/stdlib.in.h (grantpt): Check correct function.
3047
3048         maint.mk: silence new syntax check
3049         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
3050
3051 2011-11-06  Bruno Haible  <bruno@clisp.org>
3052
3053         Doc about floating-point and math API.
3054         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
3055         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
3056
3057 2011-11-06  Bruno Haible  <bruno@clisp.org>
3058
3059         stdalign tests: Skip the test when compiled by Sun C.
3060         * tests/test-stdalign.c (main): Skip the test on Sun C.
3061
3062 2011-11-06  Bruno Haible  <bruno@clisp.org>
3063
3064         ansi-c++-opt: Complete the 2011-06-05 change.
3065         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
3066         does not support namespaces, set the variable to "no", not to ":".
3067
3068 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
3069
3070         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
3071
3072 2011-11-06  Bruno Haible  <bruno@clisp.org>
3073
3074         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
3075         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
3076         (minus_zerol) [HP-UX]: New macro.
3077         (unary_minus) [HP-UX]: New function.
3078         (copysignl) [HP-UX]: Use unary_minus function.
3079
3080 2011-11-06  Bruno Haible  <bruno@clisp.org>
3081
3082         ldexp, ldexpf, ldexpl: Enhance tests.
3083         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
3084         and tests/test-ldexpl.c.
3085         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
3086         LDEXP, MIN_EXP, MAX_EXP): New macros.
3087         Include test-ldexp.h.
3088         (main): Just call test_function.
3089         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
3090         infinity.h, nan.h.
3091         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3092         MAX_EXP): New macros.
3093         Include test-ldexp.h.
3094         (x, y): Remove variables.
3095         (main): Just call test_function.
3096         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
3097         infinity.h, nan.h.
3098         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
3099         MAX_EXP): New macros.
3100         Include test-ldexp.h.
3101         (x, y): Remove variables.
3102         (main): Just call test_function.
3103         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
3104         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
3105         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3106         (Depends-on): Add isnand-nolibm, signbit, float.
3107         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
3108         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
3109         (Depends-on): Add isnanf-nolibm, signbit, float.
3110
3111 2011-11-06  Bruno Haible  <bruno@clisp.org>
3112
3113         math tests: Cosmetics.
3114         * tests/test-math-c++.cc: Reorder declarations.
3115
3116 2011-11-05  Bruno Haible  <bruno@clisp.org>
3117
3118         fma*: Simplify test.
3119         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
3120         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
3121
3122         Tests for module 'fmal'.
3123         * modules/fmal-tests: New file.
3124         * tests/test-fmal1.c: New file.
3125         * tests/test-fmal2.c: New file.
3126
3127         New module 'fmal'.
3128         * lib/math.in.h (fmal): New declaration.
3129         * lib/fmal.c: New file.
3130         * m4/fmal.m4: New file.
3131         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
3132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
3133         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
3134         REPLACE_FMAL.
3135         * modules/fmal: New file.
3136         * doc/posix-functions/fmal.texi: Mention the new module and the various
3137         bugs.
3138
3139         Tests for module 'fmaf'.
3140         * modules/fmaf-tests: New file.
3141         * tests/test-fmaf1.c: New file.
3142         * tests/test-fmaf2.c: New file.
3143
3144         New module 'fmaf'.
3145         * lib/math.in.h (fmaf): New declaration.
3146         * lib/fmaf.c: New file.
3147         * m4/fmaf.m4: New file.
3148         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
3149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
3150         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
3151         REPLACE_FMAF.
3152         * modules/fmaf: New file.
3153         * doc/posix-functions/fmaf.texi: Mention the new module and the various
3154         bugs.
3155
3156         Tests for module 'fma'.
3157         * modules/fma-tests: New file.
3158         * tests/test-fma1.c: New file.
3159         * tests/test-fma1.h: New file.
3160         * tests/test-fma2.c: New file.
3161         * tests/test-fma2.h: New file.
3162
3163         New module 'fma'.
3164         * lib/math.in.h (fma): New declaration.
3165         * lib/fma.c: New file.
3166         * m4/fma.m4: New file.
3167         * m4/fegetround.m4: New file.
3168         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3170         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3171         REPLACE_FMA.
3172         * modules/fma: New file.
3173         * doc/posix-functions/fma.texi: Mention the new module and the various
3174         bugs.
3175
3176         Extend gl_MATHFUNC.
3177         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3178         Support 'void' as argument type.
3179         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3180
3181 2011-11-05  Jim Meyering  <meyering@redhat.com>
3182
3183         maint.mk: also prohibit inclusion of dirent.h without use
3184         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3185
3186 2011-11-05  Bruno Haible  <bruno@clisp.org>
3187
3188         ldexpl tests: Avoid test failure on MSVC 9.
3189         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3190         value. Needed in order to enforce the conversion from a value greater
3191         than LDBL_MAX to Infinity.
3192
3193 2011-11-05  Bruno Haible  <bruno@clisp.org>
3194
3195         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3196         * modules/at-internal: New file, extracted from modules/openat.
3197         * modules/openat-h: New file.
3198         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3199         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3200         * modules/openat (Description): Add reference to POSIX function.
3201         (Files): Remove lib/openat.h, lib/openat-proc.c.
3202         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3203         intprops, unistd.
3204         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3205         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3206         gl_FCNTL_MODULE_INDICATOR.
3207         (Include): Remove unistd.h, openat.h.
3208         * modules/areadlinkat (Files): Add lib/at-func.c.
3209         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3210         openat-die, openat-h, save-cwd.
3211         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3212         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3213         openat-die, openat-h, save-cwd, unistd.
3214         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3215         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3216         openat-h, save-cwd. Remove fcntl-h, openat.
3217         * modules/fchmodat (Files): Remove lib/openat.h.
3218         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3219         openat, stdbool, unistd.
3220         * modules/fchownat (Files): Remove lib/openat.h.
3221         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3222         openat, stdbool, sys_stat.
3223         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3224         lib/openat-proc.c.
3225         (Depends-on): Add at-internal.
3226         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3227         * modules/fstatat (Files): Remove lib/openat.h.
3228         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3229         stdbool, unistd.
3230         * modules/fts (Depends-on): Add openat-h.
3231         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3232         openat.
3233         * modules/mkdirat (Files): Remove lib/openat.h.
3234         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3235         openat, stdbool, sys_stat.
3236         * modules/mkfifoat (Files): Add lib/at-func.c.
3237         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3238         openat-h, save-cwd. Remove fcntl-h, openat.
3239         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3240         * modules/readlinkat (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/renameat (Depends-on): Add at-internal, openat-h. Remove
3244         openat.
3245         * modules/selinux-at (Files): Add lib/at-func.c.
3246         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3247         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3248         * modules/symlinkat (Files): Add lib/at-func.c.
3249         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3250         openat-h, save-cwd. Remove fcntl-h, openat.
3251         * modules/unlinkat (Files): Remove lib/openat.h.
3252         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3253         stdbool.
3254         * modules/utimensat (Files): Add lib/at-func.c.
3255         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3256         openat-die, openat-h, save-cwd.
3257         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3258         * modules/fdutimensat-tests (Depends-on): Add openat.
3259         * modules/fstatat-tests (Depends-on): Add openat-h.
3260         * modules/readlinkat-tests (Depends-on): Add openat.
3261         * modules/symlinkat-tests (Depends-on): Add openat.
3262
3263 2011-11-05  Bruno Haible  <bruno@clisp.org>
3264
3265         openat: Include <stdbool.h>.
3266         * lib/openat.c: Include <stdbool.h>.
3267
3268 2011-11-04  Bruno Haible  <bruno@clisp.org>
3269
3270         fchownat, renameat, unlinkat: Fix dependencies.
3271         * modules/fchownat (Depends-on): Add fstatat.
3272         * modules/renameat (Depends-on): Likewise.
3273         * modules/unlinkat (Depends-on): Likewise.
3274
3275 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3276
3277         openat: remove direct dependency on dirent
3278         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3279         and hasn't been needed ever since fdopendir was split into its own
3280         module on 2009-08-31.
3281         * modules/openat (Depends-on): Remove dirent.
3282
3283 2011-11-04  Bruno Haible  <bruno@clisp.org>
3284
3285         renameat: Optimize code size.
3286         * modules/renameat (configure.ac): Don't compile at-func2.c if
3287         REPLACE_RENAMEAT is 1.
3288
3289 2011-11-04  Bruno Haible  <bruno@clisp.org>
3290
3291         openat tests: Fix file list.
3292         * modules/openat-tests (Files): Add tests/test-open.h.
3293
3294 2011-11-04  Bruno Haible  <bruno@clisp.org>
3295
3296         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3297         * modules/fchmodat (Depends-on): Add openat-die.
3298         * modules/fchownat (Depends-on): Likewise.
3299         * modules/linkat (Depends-on): Likewise.
3300         * modules/renameat (Depends-on): Likewise.
3301         * modules/openat (Depends-on): Add dirent.
3302
3303 2011-11-04  Jim Meyering  <meyering@redhat.com>
3304
3305         at-func*.c: fix comments
3306         * lib/at-func2.c: Correct/improve first-line comment.
3307         * lib/at-func.c: Correct grammar in first-line comment.
3308
3309 2011-11-04  Bruno Haible  <bruno@clisp.org>
3310
3311         New module 'mkdirat', split off from module 'openat'.
3312         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3313         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3314         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3315         * modules/mkdirat: New file, extracted from modules/openat.
3316         * modules/openat (Files): Remove lib/mkdirat.c.
3317         (Depends-on): Remove mkdir.
3318         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3319         (Include): Remove <sys/stat.h>.
3320         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3321         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3322         tests/test-mkdir.h.
3323         (Depends-on): Remove ignore-value.
3324         (Makefile.am): Remove rules for test-mkdirat.
3325         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3326         of module 'openat'.
3327         * NEWS: Mention the change.
3328
3329 2011-11-04  Bruno Haible  <bruno@clisp.org>
3330
3331         closedir: Avoid warning on mingw.
3332         * lib/closedir.c: Include <unistd.h>.
3333
3334 2011-11-04  Bruno Haible  <bruno@clisp.org>
3335
3336         New module 'fstatat', split off from module 'openat'.
3337         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3338         defined.
3339         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3340         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3341         gl_FUNC_FSTATAT.
3342         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3343         * modules/fstatat: New file, extracted from modules/openat.
3344         * modules/openat (Files): Remove lib/fstatat.c.
3345         (Depends-on): Remove lstat.
3346         (configure.ac): Remove AC_LIBOBJ of fstatat.
3347         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3348         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3349         tests/test-lstat.h, tests/test-stat.h.
3350         (Depends-on): Remove getcwd-lgpl.
3351         (Makefile.am): Remove rules for test-fstatat.
3352         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3353         of module 'openat'.
3354         * NEWS: Mention the change.
3355         * modules/getcwd (Depends-on): Add fstatat.
3356         * modules/linkat (Depends-on): Likewise.
3357         * modules/mkfifoat-tests (Depends-on): Likewise.
3358         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3359
3360 2011-11-03  Bruno Haible  <bruno@clisp.org>
3361
3362         New module 'unlinkat', split off from module 'openat'.
3363         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3364         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3365         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3366         * modules/unlinkat: New file, extracted from modules/openat. Correct
3367         the dependency conditions.
3368         * modules/openat (Files): Remove lib/unlinkat.c.
3369         (Depends-on): Remove rmdir, unlink.
3370         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3371         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3372         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3373         tests/test-rmdir.h, tests/test-unlink.h.
3374         (Depends-on): Remove unlinkdir.
3375         (Makefile.am): Remove rules for test-unlinkat.
3376         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3377         of module 'openat'.
3378         * NEWS: Mention the change.
3379         * modules/linkat-tests (Depends-on): Add unlinkat.
3380         * modules/mkfifoat-tests (Depends-on): Likewise.
3381         * modules/readlinkat-tests (Depends-on): Likewise.
3382
3383 2011-11-02  Bruno Haible  <bruno@clisp.org>
3384
3385         New module 'fchmodat', split off from module 'openat'.
3386         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3387         defined.
3388         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3389         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3390         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3391         * modules/fchmodat: New file, extracted from modules/openat.
3392         * modules/openat (Files): Remove lib/fchmodat.c.
3393         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3394         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3395         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3396         (Makefile.am): Remove rules for test-fchmodat.
3397         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3398         of module 'openat'.
3399         * NEWS: Mention the change.
3400
3401 2011-11-02  Jim Meyering  <meyering@redhat.com>
3402
3403         putenv: indent #definition of "environ" to placate cppi
3404         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3405
3406         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3407         Git logs are often treated as immutable, because editing them
3408         changes the SHA1 checksums of all descendants.  Thus, errors in
3409         git logs tend to stay there forever.  However, when we generate
3410         a ChangeLog file -- typically for distribution -- from that git log,
3411         we can actually make corrections in the generated file.  The key
3412         lies in recording in machine-readable/applicable form the desired
3413         corrections.  See --help for description and an example.
3414         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3415         (usage): Describe it; alphabetize option descriptions.
3416         (main): Honor the new option, carefully.
3417
3418 2011-11-01  Jim Meyering  <meyering@redhat.com>
3419
3420         gitlog-to-changelog: avoid an infloop
3421         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3422         that ends up being empty.
3423
3424 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3425
3426         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3427         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3428         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3429         contains (possibly-quoted) backslashes.  This should avoid
3430         all-too-common shell bugs if COMPLICATED contains backslashes in
3431         the "wrong" places.  Reported by David Evans in
3432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3433         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3434         because we want ASCII ranges.  Is there some reason we don't use
3435         the C locale everywhere in this script?
3436         (func_module, top level): Avoid unwanted pathname expansion when
3437         $repo_url_prefix or $repo_url_suffix_repl contain shell
3438         metacharacters like '?' and '*'.
3439
3440 2011-11-01  Bruno Haible  <bruno@clisp.org>
3441
3442         fchownat: Improve description.
3443         * modules/fchownat (Description): Add link to function.
3444
3445 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3446
3447         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3448         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3450         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3451
3452 2011-11-01  Bruno Haible  <bruno@clisp.org>
3453
3454         alignof: Avoid collision with stdalign module.
3455         * lib/alignof.h (alignof): Remove macro.
3456         * NEWS: Mention the change.
3457         Reported by Paul Eggert.
3458
3459 2011-11-01  Bruno Haible  <bruno@clisp.org>
3460
3461         New module 'fchownat', split off from module 'openat'.
3462         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3463         defined.
3464         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3465         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3466         invoke gl_FUNC_FCHOWNAT.
3467         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3468         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3469         * modules/fchownat: New file, extracted from modules/openat.
3470         * modules/openat (Files): Remove lib/fchownat.c.
3471         (Depends-on): Remove lchown.
3472         (configure.ac): Remove AC_LIBOBJ of fchownat.
3473         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3474         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3475         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3476         (Depends-on): Remove mgetgroups, usleep, stat-time.
3477         (configure.ac): Remove test for getegid.
3478         (Makefile.am): Remove rules for test-fchownat.
3479         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3480         of module 'openat'.
3481         * NEWS: Mention the change.
3482
3483 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3484
3485         stdalign: port better to MSVC and to Sun C 5.11
3486         This fixes some of the problems reported by Bruno Haible in
3487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3488         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3489         shortcomings of MSVC and of Sun C 5.11.
3490         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3491         around __declspec arg.
3492         * modules/stdalign-tests (Files): Add tests/macros.h.
3493         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3494         Include macros.h, for ASSERT.
3495         (DECLARE_ALIGNED): Remove.
3496         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3497         to catch bug), and to 1 if not (simplifies the rest of the code).
3498         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3499         (CHECK_AUTO): Remove.
3500         (CHECK_ALIGNED): Check only the alignment of the static vars,
3501         since auto var alignment isn't supported by Sun C 5.11.
3502         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3503         ASSERT failures are easier to diagnose.
3504
3505 2011-10-31  Bruno Haible  <bruno@clisp.org>
3506
3507         doc about some IRIX 5.3 problems.
3508         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3509         on IRIX 5.3.
3510         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3511         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3512         5.3.
3513         * doc/posix-functions/grantpt.texi: Likewise.
3514         * doc/posix-functions/unlockpt.texi: Likewise.
3515         * doc/posix-functions/lgamma.texi: Likewise.
3516         * doc/posix-functions/nextafter.texi: Likewise.
3517         * doc/posix-functions/remainder.texi: Likewise.
3518         * doc/posix-functions/select.texi: Mention misplaced declaration on
3519         IRIX 5.3.
3520         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3521
3522 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3523
3524         gitlog-to-changelog: fix git-log invocation.
3525         git-log mishandles date strings before 1970-01-01 UTC, and there is
3526         no use to specify --since=1970-01-01 by default anyway.
3527         * build-aux/gitlog-to-changelog: By default, when no --since option
3528         was given, do not specify explicit --since option to git-log.
3529
3530 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3531
3532         gitlog-to-changelog: new option --append-dot.
3533         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3534         first non-blank line of each commit message terminated with a dot.
3535
3536 2011-10-30  Bruno Haible  <bruno@clisp.org>
3537
3538         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3539         * lib/ffsl.h: Include <config.h>.
3540         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3541
3542 2011-10-30  Jim Meyering  <meyering@redhat.com>
3543
3544         GNUmakefile: reenable "make syntax-check" for most projects
3545         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3546         build-aux variable", "syntax-check" would do nothing but succeed with
3547         the "No version control files detected..." diagnostic (unless you
3548         happened to override _build-aux via cfg.mk).
3549         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3550         to precede inclusion of maint.mk.  Otherwise, these variables would
3551         be used undefined in any project that does not override the default.
3552
3553 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3554
3555         gitlog-to-changelog: treat a message with only blank lines as empty.
3556         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3557         trailing blank lines before the code that issues a warning about an
3558         empty commit message.
3559
3560 2011-10-30  Jim Meyering  <meyering@redhat.com>
3561
3562         test-parse-datetime.c: avoid new DST-related false positive test failure
3563         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3564         based on the time/date we'll convert, not the current time.
3565         Otherwise, the moment we cross a DST boundary like today's in
3566         Europe, (CEST to CET), that offset ends up being one hour off.
3567
3568 2011-10-27  Bruno Haible  <bruno@clisp.org>
3569
3570         fstat: Tweak documentation.
3571         * modules/fstat (Description): More precise description.
3572
3573 2011-10-27  Bruno Haible  <bruno@clisp.org>
3574
3575         Update documentation regarding 'largefile' module.
3576         * doc/posix-functions/fstat.texi: Tweak wording.
3577         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3578         problems with huge directories and/or small ino_t types.
3579         * doc/posix-functions/readdir.texi: Likewise.
3580         * doc/posix-functions/rewinddir.texi: Likewise.
3581
3582 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3583
3584         maint.mk: don't maintain a second build-aux variable.
3585         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3586         depends on GNUmakefile, which already maintains a cfg.mk
3587         overridable $(_build-aux) for projects with a non-standard
3588         build-aux directory location, although without the $(srcdir)
3589         prefix.  Use that variable consistently instead of introducing a
3590         second one.  Adjust all call sites.
3591
3592 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3593
3594         Add stdalign module and use it in other modules.
3595         This is based on a previous proposal by Bruno Haible
3596         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3597
3598         stdalign: new module
3599         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3600         * modules/stdalign: New files.
3601         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3602         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3603
3604         stdalign-tests: new module
3605         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3606
3607         argp: use stdalign
3608         * lib/argp-parse.c: Include <stdalign.h>.
3609         (alignof): Remove.
3610         * modules/argp (Depends-on): Add stdalign.
3611
3612         crypto libraries: use stdalign
3613         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3614         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3615         Do not include <stdlib.h> twice, in md4.c.
3616         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3617         because we are accessing a pointer's bit-pattern, not a size.
3618         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3619         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3620         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3621         * modules/crypto/sha512: Likewise.
3622
3623         sys_socket: use stdalign, not alignof
3624         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3625         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3626
3627 2011-10-27  Bruno Haible  <bruno@clisp.org>
3628
3629         raise test: Avoid a test failure on Linux/MIPS.
3630         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3631         because 99 is a valid signal on Linux/MIPS.
3632
3633 2011-10-27  Bruno Haible  <bruno@clisp.org>
3634
3635         nonblocking tests: Fix test failure on Linux/MIPS.
3636         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3637         Set to 270000.
3638
3639 2011-10-27  Bruno Haible  <bruno@clisp.org>
3640
3641         utimensat: Work around problem on Linux/hppa.
3642         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3643         values.
3644         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3645
3646 2011-10-25  Jim Meyering  <meyering@redhat.com>
3647
3648         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3649         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3650         after symbols like NULL, size_t, etc.
3651         Reported by Alfred M. Szmidt.
3652
3653         maint.mk: exempt ENODATA from a syntax-check rule
3654         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3655         from the sc_prohibit_always-defined_macros syntax-check rule.
3656         Add a comment.  See this for more details:
3657         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3658
3659 2011-10-23  Jim Meyering  <meyering@redhat.com>
3660
3661         fts: close parent dir FD before returning from post-traversal fts_read
3662         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3663         unlink A, even though an FD open on A remained.  This is suboptimal
3664         (holding a file descriptor open longer than needed), but otherwise not
3665         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3666         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3667         that represents a real problem: it causes the removal of A to fail
3668         with e.g., "rm: cannot remove `A': Device or resource busy"
3669
3670         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3671         directory file descriptors.  After completing the final, FTS_DP,
3672         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3673         cache, but then proceeded to add a new FD to it via the subsequent
3674         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3675         final file descriptor would be closed only via fts_close's call to
3676         fd_ring_clear.  Now, it is usually closed earlier, via the final
3677         FTS_DP-returning fts_read call.
3678         * lib/fts.c (restore_initial_cwd): New function, converted from
3679         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3680         Update callers.
3681         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3682         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3683
3684 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3685             Bruno Haible  <bruno@clisp.org>
3686             Jim Meyering  <jim@meyering.net>
3687
3688         readme-release: improve safety of release prep instructions.
3689         * README-release: Don't git pull all branches when only master
3690         is needed for the release process.
3691         Run make maintainer-clean before changing trees and merging.
3692         Don't try to run ./configure right after git pull in case files
3693         that influence the bootstrap process have changed, move the
3694         ./configure step to after running ./bootstrap.
3695         Don't bootstrap "one last time"... it's the first time!
3696
3697 2011-10-22  Bruno Haible  <bruno@clisp.org>
3698
3699         errno, strerror-override: Support for MSVC 10.
3700         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3701         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3702         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3703         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3704         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3705         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3706         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3707         Assign values compatible with MSVC 10.
3708         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3709         New macros.
3710         (GNULIB_defined_EWINSOCK): New macro.
3711         * lib/strerror-override.c (strerror_override): Update accordingly.
3712         * lib/strerror-override.h: Likewise.
3713         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3714         longer equal to the corresponding errno value.
3715         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3716
3717 2011-10-22  Bruno Haible  <bruno@clisp.org>
3718
3719         perror: Recognize when test program crashes.
3720         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3721         strerror, set gl_cv_func_perror_works to no.
3722         Reported by Daniel Richard G. <skunk@iskunk.org>.
3723
3724         perror: Fix indentation.
3725         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3726
3727 2011-10-22  Bruno Haible  <bruno@clisp.org>
3728
3729         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3730         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3731         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3732         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3733         functions, not as a macro.
3734         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3735         macros.
3736         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3737         absence of macro.
3738         Suggested by Eric Blake.
3739         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3740
3741 2011-10-21  Bruno Haible  <bruno@clisp.org>
3742
3743         relocatable-prog-wrapper: Don't leave object files behind.
3744         * build-aux/install-reloc: Re-synchronize list of .o files to be
3745         removed with list of compilation units.
3746
3747 2011-10-20  Bruno Haible  <bruno@clisp.org>
3748
3749         openpty, posix_openpt: Remove code duplication.
3750         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3751         * lib/openpty.c: Include <stdlib.h>.
3752         (openpty): Use posix_openpt on all platforms except IRIX.
3753         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3754
3755 2011-10-20  Bruno Haible  <bruno@clisp.org>
3756
3757         unlockpt: Detect invalid argument.
3758         * lib/unlockpt.c: Include <fcntl.h>.
3759         (unlockpt): Check whether fd is valid, using fcntl().
3760         * modules/unlockpt (Depends-on): Add fcntl-h.
3761
3762 2011-10-20  Bruno Haible  <bruno@clisp.org>
3763
3764         openpty: Avoid compilation error on AIX 6.1.
3765         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3766
3767 2011-10-20  Bruno Haible  <bruno@clisp.org>
3768
3769         posix_openpt: Support for OpenBSD.
3770         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3771         (posix_openpt) [OpenBSD]: New code.
3772         * lib/grantpt.c: Include <fcntl.h>.
3773         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3774         * modules/grantpt (Depends-on): Add fcntl-h.
3775
3776 2011-10-20  Bruno Haible  <bruno@clisp.org>
3777
3778         posix_openpt test: Coding style.
3779         * tests/test-posix_openpt.c: Use GNU coding style.
3780
3781 2011-10-20  Bruno Haible  <bruno@clisp.org>
3782
3783         grantpt: Support --avoid=pt_chown.
3784         * modules/grantpt (Files): Add lib/pty-private.h.
3785
3786 2011-10-20  Bruno Haible  <bruno@clisp.org>
3787
3788         posix_openpt: Fix autoconf macro.
3789         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3790         unneeded check for _getpty.
3791
3792 2011-10-20  Bruno Haible  <bruno@clisp.org>
3793
3794         openpty: Update comments.
3795         * lib/openpty.c: Add comments about Minix.
3796
3797 2011-10-19  Eric Blake  <eblake@redhat.com>
3798
3799         openpty: relax license
3800         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3801
3802         pt_chown: use configmake to simplify build
3803         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3804
3805         ptsname and others: relax license
3806         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3807         * modules/unlockpt (License): Likewise.
3808         * modules/pt_chown (License): Likewise.
3809         * modules/ptsname (License): Likewise.
3810         * modules/ttyname_r (License): Likewise.
3811
3812 2011-10-19  Jim Meyering  <meyering@redhat.com>
3813
3814         posix_openpt: remove spurious #endif
3815         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3816
3817 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3818
3819         maint.mk: Respect $(build_aux) in web-manual rule.
3820         * top/maint.mk (web-manual): Find gen-announce script in user's
3821         $(build_aux) directory instead of hard-coding 'build-aux'.
3822
3823 2011-10-19  Bruno Haible  <bruno@clisp.org>
3824
3825         posix_openpt: Fix compilation error.
3826         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3827         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3828         Mention the openpty module as an alternative.
3829
3830 2011-10-19  Bruno Haible  <bruno@clisp.org>
3831
3832         Support for old NeXTstep 3.3 frexp().
3833         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3834         execution time of the test to 5 seconds.
3835         Reported by Daniel Richard G. <skunk@iskunk.org>.
3836
3837 2011-10-19  Bruno Haible  <bruno@clisp.org>
3838
3839         Support for old NeXTstep 3.3 sed.
3840         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3841         part, use /.../, not \|...|. Escape periods in the header file name.
3842         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3843         Reported by Daniel Richard G. <skunk@iskunk.org>.
3844
3845 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3846
3847         Support for old NeXTstep 3.3 gcc.
3848         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3849         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3850         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3851         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3852         * lib/regex.h (_Restrict_arr_): Likewise.
3853         * lib/regex_internal.h (re_token_t): Likewise.
3854         * lib/regexec.c (check_node_accept_bytes): Likewise.
3855         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3856
3857 2011-10-18  Eric Blake  <eblake@redhat.com>
3858
3859         posix_openpt: new module
3860         * modules/posix_openpt: New module.
3861         * m4/posix_openpt.m4: New file.
3862         * lib/posix_openpt.c: Likewise.
3863         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3864         (gl_STDLIB_H_DEFAULTS): Set defaults.
3865         * modules/stdlib (Makefile.am): Substitute macros.
3866         * lib/stdlib.in.h (posix_openpt): Declare.
3867         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3868         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3869         * modules/posix_openpt-tests: New test module.
3870         * tests/test-posix_openpt.c: New test.
3871
3872 2011-10-15  Bruno Haible  <bruno@clisp.org>
3873
3874         xstrtoll: Fix compilation failure.
3875         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3876         from lib/strtol.c.
3877         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3878         some platforms.
3879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3880
3881 2011-10-15  Bruno Haible  <bruno@clisp.org>
3882
3883         vasnprintf: Optimize bit search operation.
3884         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3885         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3886         gl_DOUBLE_EXPONENT_LOCATION.
3887         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3888         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3889         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3890         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3891         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3892         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3893         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3894         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3895         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3896
3897 2011-10-15  Bruno Haible  <bruno@clisp.org>
3898
3899         vasnprintf: Fix comments.
3900         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3901
3902 2011-10-14  Bruno Haible  <bruno@clisp.org>
3903
3904         Tests for module 'integer_length_ll'.
3905         * modules/integer_length_ll-tests: New file.
3906         * tests/test-integer_length_ll.c: New file.
3907
3908         New module 'integer_length_ll'.
3909         * lib/integer_length_ll.c: New file.
3910         * modules/integer_length_ll: New file.
3911
3912 2011-10-14  Bruno Haible  <bruno@clisp.org>
3913
3914         Tests for module 'integer_length_l'.
3915         * modules/integer_length_l-tests: New file.
3916         * tests/test-integer_length_l.c: New file.
3917
3918         New module 'integer_length_l'.
3919         * lib/integer_length_l.c: New file.
3920         * modules/integer_length_l: New file.
3921
3922 2011-10-14  Bruno Haible  <bruno@clisp.org>
3923
3924         Tests for module 'integer_length'.
3925         * modules/integer_length-tests: New file.
3926         * tests/test-integer_length.c: New file.
3927
3928         New module 'integer_length'.
3929         * lib/integer_length.h: New file.
3930         * lib/integer_length.c: New file.
3931         * modules/integer_length: New file.
3932
3933 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3934
3935         popen: Fix dependency conditions.
3936         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3937
3938 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3939
3940         perror: Fix autoconf test.
3941         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3942         <stdlib.h> and <string.h>.
3943
3944 2011-10-14  Bruno Haible  <bruno@clisp.org>
3945
3946         ffsl: Optimize on 64-bit platforms.
3947         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3948         unrolling.
3949
3950 2011-10-13  Bruno Haible  <bruno@clisp.org>
3951
3952         ffsl: Optimize on 32-bit platforms.
3953         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3954         use ffs() without a loop.
3955
3956         ffsl, ffsll: Optimize for GCC.
3957         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3958         * lib/ffsl.c (GCC_BUILTIN): New macro.
3959         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3960
3961 2011-10-13  Bruno Haible  <bruno@clisp.org>
3962
3963         ffs, bcopy, memset: Support symbol renaming via config.h.
3964         * lib/ffs.c: Include <config.h>.
3965         * lib/bcopy.c: Likewise.
3966         * lib/memset.c: Likewise.
3967
3968 2011-10-10  Bruno Haible  <bruno@clisp.org>
3969
3970         atanl: Simplify for platforms where 'long double' == 'double'.
3971         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3972         alternative implementation.
3973         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3974         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3975         * modules/atanl (Depends-on): Add atan. Update conditions.
3976
3977 2011-10-10  Bruno Haible  <bruno@clisp.org>
3978
3979         acosl: Simplify for platforms where 'long double' == 'double'.
3980         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3981         alternative implementation.
3982         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3983         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3984         * modules/acosl (Depends-on): Add acos. Update conditions.
3985
3986 2011-10-10  Bruno Haible  <bruno@clisp.org>
3987
3988         asinl: Simplify for platforms where 'long double' == 'double'.
3989         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3990         alternative implementation.
3991         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3992         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3993         * modules/asinl (Depends-on): Add asin. Update conditions.
3994
3995 2011-10-10  Bruno Haible  <bruno@clisp.org>
3996
3997         tanl: Simplify for platforms where 'long double' == 'double'.
3998         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3999         implementation.
4000         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4001         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4002         * modules/tanl (Depends-on): Add tan. Update conditions.
4003         (configure.ac): Don't compile trigl.c if
4004         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4005
4006 2011-10-10  Bruno Haible  <bruno@clisp.org>
4007
4008         cosl: Simplify for platforms where 'long double' == 'double'.
4009         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4010         implementation.
4011         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4012         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4013         * modules/cosl (Depends-on): Add cos. Update conditions.
4014         (configure.ac): Don't compile sincosl.c and trigl.c if
4015         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4016
4017 2011-10-10  Bruno Haible  <bruno@clisp.org>
4018
4019         sinl: Simplify for platforms where 'long double' == 'double'.
4020         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4021         implementation.
4022         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4023         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4024         * modules/sinl (Depends-on): Add sin. Update conditions.
4025         (configure.ac): Don't compile sincosl.c and trigl.c if
4026         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4027
4028 2011-10-10  Bruno Haible  <bruno@clisp.org>
4029
4030         logl: Simplify for platforms where 'long double' == 'double'.
4031         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4032         implementation.
4033         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4034         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4035         * modules/logl (Depends-on): Add log. Update conditions.
4036
4037 2011-10-10  Bruno Haible  <bruno@clisp.org>
4038
4039         expl: Simplify for platforms where 'long double' == 'double'.
4040         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
4041         implementation.
4042         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4043         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4044         * modules/expl (Depends-on): Add exp. Update conditions.
4045
4046 2011-10-10  Bruno Haible  <bruno@clisp.org>
4047
4048         sqrtl: Simplify for platforms where 'long double' == 'double'.
4049         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4050         alternative implementation.
4051         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4052         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4053         * modules/sqrtl (Depends-on): Update conditions.
4054
4055 2011-10-10  Bruno Haible  <bruno@clisp.org>
4056
4057         ldexpl: Simplify for platforms where 'long double' == 'double'.
4058         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4059         alternative implementation.
4060         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4061         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4062         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
4063
4064 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
4065
4066         ffsll: set correct witness
4067         * modules/ffsll (configure.ac): Fix typo.
4068
4069 2011-10-10  Bruno Haible  <bruno@clisp.org>
4070
4071         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
4072         * lib/printf-frexpl.c: Include <config.h>.
4073         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4074         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
4075         second time.
4076         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
4077         gl_LONG_DOUBLE_VS_DOUBLE.
4078         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
4079         conditions.
4080
4081 2011-10-10  Bruno Haible  <bruno@clisp.org>
4082
4083         frexpl: Simplify for platforms where 'long double' == 'double'.
4084         * lib/frexpl.c: Include <config.h>.
4085         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4086         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4087         time.
4088         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4089         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4090         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
4091         * modules/frexpl (Depends-on): Add frexp. Update conditions.
4092         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
4093         conditions.
4094
4095 2011-10-10  Jim Meyering  <meyering@redhat.com>
4096
4097         test-renameat: don't leave behind a temporary file
4098         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
4099           ERROR: files left in build directory after distclean:
4100           ./gltests/test-renameat.too
4101           make[1]: *** [distcleancheck] Error 1
4102         Reported by Tom G. Christensen.
4103
4104 2011-10-09  Bruno Haible  <bruno@clisp.org>
4105
4106         rint: Determine RINT_LIBM correctly on AIX 7.
4107         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
4108         directly, not only through a function pointer. Also accept an optional
4109         4th argument with extra code.
4110         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
4111         rintf() call by gcc when optimizing.
4112
4113         mathfunc.m4: Refactor.
4114         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
4115         m4 variable.
4116
4117 2011-10-09  Bruno Haible  <bruno@clisp.org>
4118
4119         rintl: Simplify for platforms where 'long double' == 'double'.
4120         * lib/rintl.c: Include <config.h>.
4121         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4122         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4123         time.
4124         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4125         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4126         * modules/rintl (Depends-on): Add rint. Update conditions.
4127
4128 2011-10-09  Bruno Haible  <bruno@clisp.org>
4129
4130         roundl: Simplify for platforms where 'long double' == 'double'.
4131         * lib/roundl.c: Include <config.h>.
4132         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4133         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4134         time.
4135         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4136         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4137         * modules/roundl (Depends-on): Add round. Update conditions.
4138
4139 2011-10-09  Bruno Haible  <bruno@clisp.org>
4140
4141         truncl: Simplify for platforms where 'long double' == 'double'.
4142         * lib/truncl.c: Include <config.h>.
4143         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4144         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4145         time.
4146         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4147         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4148         * modules/truncl (Depends-on): Add trunc. Update conditions.
4149
4150 2011-10-09  Bruno Haible  <bruno@clisp.org>
4151
4152         ceill: Simplify for platforms where 'long double' == 'double'.
4153         * lib/ceill.c: Include <config.h>.
4154         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4155         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4156         time.
4157         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4158         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4159         * modules/ceill (Depends-on): Add ceil. Update conditions.
4160
4161 2011-10-09  Bruno Haible  <bruno@clisp.org>
4162
4163         floorl: Simplify for platforms where 'long double' == 'double'.
4164         * lib/floorl.c: Include <config.h>.
4165         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4166         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4167         time.
4168         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4169         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4170         * modules/floorl (Depends-on): Add floor. Update conditions.
4171
4172 2011-10-09  Bruno Haible  <bruno@clisp.org>
4173
4174         rint: Fix ordering constraints.
4175         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4176         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4177         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4178
4179 2011-10-09  Bruno Haible  <bruno@clisp.org>
4180
4181         copysignl: Simplify for platforms where 'long double' == 'double'.
4182         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4183         alternative.
4184         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4185         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4186         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4187
4188 2011-10-09  Bruno Haible  <bruno@clisp.org>
4189
4190         Tests for module 'rintl'.
4191         * modules/rintl-tests: New file.
4192         * tests/test-rintl.c: New file.
4193
4194         New module 'rintl'.
4195         * lib/math.in.h (rintl): New declaration.
4196         * lib/rintl.c: New file.
4197         * m4/rintl.m4: New file.
4198         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4200         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4201         * modules/rintl: New file.
4202         * tests/test-math-c++.cc: Check the declaration of rintl.
4203         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4204         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4205         * doc/posix-functions/rintl.texi: Mention the new module.
4206
4207 2011-10-09  Bruno Haible  <bruno@clisp.org>
4208
4209         Tests for module 'rintf'.
4210         * modules/rintf-tests: New file.
4211         * tests/test-rintf.c: New file.
4212
4213         New module 'rintf'.
4214         * lib/math.in.h (rintf): New declaration.
4215         * lib/rintf.c: New file.
4216         * m4/rintf.m4: New file.
4217         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4219         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4220         * modules/rintf: New file.
4221         * tests/test-math-c++.cc: Check the declaration of rintf.
4222         * doc/posix-functions/rintf.texi: Mention the new module.
4223
4224 2011-10-09  Bruno Haible  <bruno@clisp.org>
4225
4226         rint: Support for MSVC.
4227         * lib/math.in.h (rint): New declaration.
4228         * lib/rint.c: New file.
4229         * m4/rint.m4: New file.
4230         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4232         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4233         * modules/rint (Description): Fix.
4234         (Files): Add lib/rint.c, m4/rint.m4.
4235         (Depends-on): Add math.
4236         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4237         gl_MATH_MODULE_INDICATOR.
4238         * tests/test-math-c++.cc: Check the declaration of rint.
4239         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4240         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4241         * doc/posix-functions/rint.texi: Mention the replacement provided by
4242         the module.
4243
4244         rint tests: More tests.
4245         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4246         minus-zero.h, infinity.h, nan.h.
4247         (main): Skip the test if the current rounding mode is not standard. Add
4248         tests for negative numbers, minus zero, infinity, NaN.
4249         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4250         tests/nan.h.
4251         (Depends-on): Add isnand-nolibm.
4252
4253 2011-10-09  Bruno Haible  <bruno@clisp.org>
4254
4255         Tests for module 'copysignl'.
4256         * modules/copysignl-tests: New file.
4257         * tests/test-copysignl.c: New file.
4258
4259         New module 'copysignl'.
4260         * lib/math.in.h (copysignl): New declaration.
4261         * lib/copysignl.c: New file.
4262         * m4/copysignl.m4: New file.
4263         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4265         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4266         HAVE_COPYSIGNL.
4267         * modules/copysignl: New file.
4268         * tests/test-math-c++.cc: Check the declaration of copysignl.
4269         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4270         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4271         * doc/posix-functions/copysignl.texi: Mention the new module.
4272
4273 2011-10-09  Bruno Haible  <bruno@clisp.org>
4274
4275         Tests for module 'copysignf'.
4276         * modules/copysignf-tests: New file.
4277         * tests/test-copysignf.c: New file.
4278
4279         New module 'copysignf'.
4280         * lib/math.in.h (copysignf): New declaration.
4281         * lib/copysignf.c: New file.
4282         * m4/copysignf.m4: New file.
4283         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4284         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4285         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4286         HAVE_COPYSIGNF.
4287         * modules/copysignf: New file.
4288         * tests/test-math-c++.cc: Check the declaration of copysignf.
4289         * doc/posix-functions/copysignf.texi: Mention the new module.
4290
4291 2011-10-09  Bruno Haible  <bruno@clisp.org>
4292
4293         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4294         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4295         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4296         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4297         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4298         gl_SIGNAL_H_DEFAULTS.
4299
4300 2011-10-09  Bruno Haible  <bruno@clisp.org>
4301
4302         poll: Make macro safer.
4303         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4304         ac_cv_header_poll_h is not set.
4305
4306 2011-10-09  Bruno Haible  <bruno@clisp.org>
4307
4308         copysign: Provide replacement.
4309         * lib/math.in.h (copysign): New declaration.
4310         * lib/copysign.c: New file.
4311         * m4/copysign.m4: New file.
4312         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4314         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4315         HAVE_COPYSIGN.
4316         * modules/copysign (Description): Clarify.
4317         (Files): Add lib/copysign.c, m4/copysign.m4.
4318         (Depends-on): Add math, signbit.
4319         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4320         gl_MATH_MODULE_INDICATOR.
4321         * tests/test-math-c++.cc: Check the declaration of copysign.
4322         * doc/posix-functions/copysign.texi: Mention the effects of the module
4323         on Minix and MSVC.
4324
4325 2011-10-09  Bruno Haible  <bruno@clisp.org>
4326
4327         isinf: Ensure macro on AIX 5.1.
4328         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4329         macro.
4330         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4331
4332 2011-10-09  Bruno Haible  <bruno@clisp.org>
4333
4334         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4335         * modules/snprintf-posix-tests (configure.ac): Require
4336         gl_LONG_DOUBLE_VS_DOUBLE.
4337         * modules/sprintf-posix-tests (configure.ac): Likewise.
4338         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4339         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4340         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4341         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4342         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4343         tests on platforms where 'long double' is the same as 'double'.
4344         * tests/test-sprintf-posix.h (test_function): Likewise.
4345         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4346         * tests/test-vasprintf-posix.c (test_function): Likewise.
4347
4348         *printf: Fix for platforms where 'long double' == 'double'.
4349         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4350         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4351         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4352         * modules/fprintf-posix (Files): Likewise.
4353         * modules/obstack-printf-posix (Files): Likewise.
4354         * modules/snprintf-posix (Files): Likewise.
4355         * modules/sprintf-posix (Files): Likewise.
4356         * modules/vasnprintf (Files): Likewise.
4357         * modules/vasnprintf-posix (Files): Likewise.
4358         * modules/vasprintf-posix (Files): Likewise.
4359         * modules/vdprintf-posix (Files): Likewise.
4360         * modules/vfprintf-posix (Files): Likewise.
4361         * modules/vsnprintf-posix (Files): Likewise.
4362         * modules/vsprintf-posix (Files): Likewise.
4363         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4364         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4365         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4366         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4367         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4368         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4369         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4370
4371         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4372         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4373         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4374         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4375         'long double'.
4376         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4377
4378         isinf: Fix for platforms where 'long double' == 'double'.
4379         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4380         Don't blindly assume 80-bit 'long double'.
4381
4382         isfinite: Fix for platforms where 'long double' == 'double'.
4383         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4384         Don't blindly assume 80-bit 'long double'.
4385
4386         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4387         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4388         * modules/isfinite-tests (configure.ac): Require
4389         gl_LONG_DOUBLE_VS_DOUBLE.
4390         * modules/isinf-tests (configure.ac): Likewise.
4391         * modules/isnan-tests (configure.ac): Likewise.
4392         * modules/isnanl-tests (configure.ac): Likewise.
4393         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4394         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4395         tests on platforms where 'long double' is the same as 'double'.
4396         * tests/test-isinf.c (test_isinfl): Likewise.
4397         * tests/test-isnan.c (test_long_double): Likewise.
4398         * tests/test-isnanl.h (main): Likewise.
4399
4400 2011-10-08  Bruno Haible  <bruno@clisp.org>
4401
4402         Tests for module 'tanhf'.
4403         * modules/tanhf-tests: New file.
4404         * tests/test-tanhf.c: New file.
4405
4406         New module 'tanhf'.
4407         * lib/math.in.h (tanhf): New declaration.
4408         * lib/tanhf.c: New file.
4409         * m4/tanhf.m4: New file.
4410         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4412         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4413         * modules/tanhf: New file.
4414         * tests/test-math-c++.cc: Check the declaration of tanhf.
4415         * doc/posix-functions/tanhf.texi: Mention the new module.
4416
4417         tanh: Use a .m4 file.
4418         * m4/tanh.m4: New file.
4419         * modules/tanh (Files): Add it.
4420         (configure.ac): Just invoke gl_FUNC_TANH.
4421
4422 2011-10-08  Bruno Haible  <bruno@clisp.org>
4423
4424         Tests for module 'coshf'.
4425         * modules/coshf-tests: New file.
4426         * tests/test-coshf.c: New file.
4427
4428         New module 'coshf'.
4429         * lib/math.in.h (coshf): New declaration.
4430         * lib/coshf.c: New file.
4431         * m4/coshf.m4: New file.
4432         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4434         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4435         * modules/coshf: New file.
4436         * tests/test-math-c++.cc: Check the declaration of coshf.
4437         * doc/posix-functions/coshf.texi: Mention the new module.
4438
4439         cosh: Use a .m4 file.
4440         * m4/cosh.m4: New file.
4441         * modules/cosh (Files): Add it.
4442         (configure.ac): Just invoke gl_FUNC_COSH.
4443
4444 2011-10-08  Bruno Haible  <bruno@clisp.org>
4445
4446         Tests for module 'sinhf'.
4447         * modules/sinhf-tests: New file.
4448         * tests/test-sinhf.c: New file.
4449
4450         New module 'sinhf'.
4451         * lib/math.in.h (sinhf): New declaration.
4452         * lib/sinhf.c: New file.
4453         * m4/sinhf.m4: New file.
4454         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4456         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4457         * modules/sinhf: New file.
4458         * tests/test-math-c++.cc: Check the declaration of sinhf.
4459         * doc/posix-functions/sinhf.texi: Mention the new module.
4460
4461         sinh: Use a .m4 file.
4462         * m4/sinh.m4: New file.
4463         * modules/sinh (Files): Add it.
4464         (configure.ac): Just invoke gl_FUNC_SINH.
4465
4466 2011-10-08  Bruno Haible  <bruno@clisp.org>
4467
4468         Tests for module 'atan2f'.
4469         * modules/atan2f-tests: New file.
4470         * tests/test-atan2f.c: New file.
4471
4472         New module 'atan2f'.
4473         * lib/math.in.h (atan2f): New declaration.
4474         * lib/atan2f.c: New file.
4475         * m4/atan2f.m4: New file.
4476         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4478         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4479         * modules/atan2f: New file.
4480         * tests/test-math-c++.cc: Check the declaration of atan2f.
4481         * doc/posix-functions/atan2f.texi: Mention the new module.
4482
4483         atan2: Use a .m4 file.
4484         * m4/atan2.m4: New file.
4485         * modules/atan2 (Files): Add it.
4486         (configure.ac): Just invoke gl_FUNC_ATAN2.
4487
4488 2011-10-08  Bruno Haible  <bruno@clisp.org>
4489
4490         Tests for module 'atanf'.
4491         * modules/atanf-tests: New file.
4492         * tests/test-atanf.c: New file.
4493
4494         New module 'atanf'.
4495         * lib/math.in.h (atanf): New declaration.
4496         * lib/atanf.c: New file.
4497         * m4/atanf.m4: New file.
4498         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4500         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4501         * modules/atanf: New file.
4502         * tests/test-math-c++.cc: Check the declaration of atanf.
4503         * doc/posix-functions/atanf.texi: Mention the new module.
4504
4505         atan: Use a .m4 file.
4506         * m4/atan.m4: New file.
4507         * modules/atan (Files): Add it.
4508         (configure.ac): Just invoke gl_FUNC_ATAN.
4509
4510 2011-10-08  Bruno Haible  <bruno@clisp.org>
4511
4512         Tests for module 'acosf'.
4513         * modules/acosf-tests: New file.
4514         * tests/test-acosf.c: New file.
4515
4516         New module 'acosf'.
4517         * lib/math.in.h (acosf): New declaration.
4518         * lib/acosf.c: New file.
4519         * m4/acosf.m4: New file.
4520         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4522         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4523         * modules/acosf: New file.
4524         * tests/test-math-c++.cc: Check the declaration of acosf.
4525         * doc/posix-functions/acosf.texi: Mention the new module.
4526
4527         acos: Use a .m4 file.
4528         * m4/acos.m4: New file.
4529         * modules/acos (Files): Add it.
4530         (configure.ac): Just invoke gl_FUNC_ACOS.
4531
4532 2011-10-08  Bruno Haible  <bruno@clisp.org>
4533
4534         Tests for module 'asinf'.
4535         * modules/asinf-tests: New file.
4536         * tests/test-asinf.c: New file.
4537
4538         New module 'asinf'.
4539         * lib/math.in.h (asinf): New declaration.
4540         * lib/asinf.c: New file.
4541         * m4/asinf.m4: New file.
4542         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4543         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4544         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4545         * modules/asinf: New file.
4546         * tests/test-math-c++.cc: Check the declaration of asinf.
4547         * doc/posix-functions/asinf.texi: Mention the new module.
4548
4549         asin: Use a .m4 file.
4550         * m4/asin.m4: New file.
4551         * modules/asin (Files): Add it.
4552         (configure.ac): Just invoke gl_FUNC_ASIN.
4553
4554 2011-10-08  Bruno Haible  <bruno@clisp.org>
4555
4556         Tests for module 'tanf'.
4557         * modules/tanf-tests: New file.
4558         * tests/test-tanf.c: New file.
4559
4560         New module 'tanf'.
4561         * lib/math.in.h (tanf): New declaration.
4562         * lib/tanf.c: New file.
4563         * m4/tanf.m4: New file.
4564         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4566         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4567         * modules/tanf: New file.
4568         * tests/test-math-c++.cc: Check the declaration of tanf.
4569         * doc/posix-functions/tanf.texi: Mention the new module.
4570
4571         tan: Use a .m4 file.
4572         * m4/tan.m4: New file.
4573         * modules/tan (Files): Add it.
4574         (configure.ac): Just invoke gl_FUNC_TAN.
4575
4576 2011-10-08  Bruno Haible  <bruno@clisp.org>
4577
4578         Tests for module 'cosf'.
4579         * modules/cosf-tests: New file.
4580         * tests/test-cosf.c: New file.
4581
4582         New module 'cosf'.
4583         * lib/math.in.h (cosf): New declaration.
4584         * lib/cosf.c: New file.
4585         * m4/cosf.m4: New file.
4586         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4587         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4588         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4589         * modules/cosf: New file.
4590         * tests/test-math-c++.cc: Check the declaration of cosf.
4591         * doc/posix-functions/cosf.texi: Mention the new module.
4592
4593         cos: Use a .m4 file.
4594         * m4/cos.m4: New file.
4595         * modules/cos (Files): Add it.
4596         (configure.ac): Just invoke gl_FUNC_COS.
4597
4598 2011-10-08  Bruno Haible  <bruno@clisp.org>
4599
4600         Tests for module 'sinf'.
4601         * modules/sinf-tests: New file.
4602         * tests/test-sinf.c: New file.
4603
4604         New module 'sinf'.
4605         * lib/math.in.h (sinf): New declaration.
4606         * lib/sinf.c: New file.
4607         * m4/sinf.m4: New file.
4608         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4609         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4610         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4611         * modules/sinf: New file.
4612         * tests/test-math-c++.cc: Check the declaration of sinf.
4613         * doc/posix-functions/sinf.texi: Mention the new module.
4614
4615         sin: Use a .m4 file.
4616         * m4/sin.m4: New file.
4617         * modules/sin (Files): Add it.
4618         (configure.ac): Just invoke gl_FUNC_SIN.
4619
4620 2011-10-08  Bruno Haible  <bruno@clisp.org>
4621
4622         Tests for module 'powf'.
4623         * modules/powf-tests: New file.
4624         * tests/test-powf.c: New file.
4625
4626         New module 'powf'.
4627         * lib/math.in.h (powf): New declaration.
4628         * lib/powf.c: New file.
4629         * m4/powf.m4: New file.
4630         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4631         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4632         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4633         * modules/powf: New file.
4634         * tests/test-math-c++.cc: Check the declaration of powf.
4635         * doc/posix-functions/powf.texi: Mention the new module.
4636
4637         pow: Use a .m4 file.
4638         * m4/pow.m4: New file.
4639         * modules/pow (Files): Add it.
4640         (configure.ac): Just invoke gl_FUNC_POW.
4641
4642 2011-10-08  Bruno Haible  <bruno@clisp.org>
4643
4644         Tests for module 'log10f'.
4645         * modules/log10f-tests: New file.
4646         * tests/test-log10f.c: New file.
4647
4648         New module 'log10f'.
4649         * lib/math.in.h (log10f): New declaration.
4650         * lib/log10f.c: New file.
4651         * m4/log10f.m4: New file.
4652         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4654         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4655         * modules/log10f: New file.
4656         * tests/test-math-c++.cc: Check the declaration of log10f.
4657         * doc/posix-functions/log10f.texi: Mention the new module.
4658
4659         log10: Use a .m4 file.
4660         * m4/log10.m4: New file.
4661         * modules/log10 (Files): Add it.
4662         (configure.ac): Just invoke gl_FUNC_LOG10.
4663
4664 2011-10-08  Bruno Haible  <bruno@clisp.org>
4665
4666         Tests for module 'logf'.
4667         * modules/logf-tests: New file.
4668         * tests/test-logf.c: New file.
4669
4670         New module 'logf'.
4671         * lib/math.in.h (logf): New declaration.
4672         * lib/logf.c: New file.
4673         * m4/logf.m4: New file.
4674         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4675         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4676         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4677         * modules/logf: New file.
4678         * tests/test-math-c++.cc: Check the declaration of logf.
4679         * doc/posix-functions/logf.texi: Mention the new module.
4680
4681         log: Use a .m4 file.
4682         * m4/log.m4: New file.
4683         * modules/log (Files): Add it.
4684         (configure.ac): Just invoke gl_FUNC_LOG.
4685
4686 2011-10-08  Bruno Haible  <bruno@clisp.org>
4687
4688         Tests for module 'expf'.
4689         * modules/expf-tests: New file.
4690         * tests/test-expf.c: New file.
4691
4692         New module 'expf'.
4693         * lib/math.in.h (expf): New declaration.
4694         * lib/expf.c: New file.
4695         * m4/expf.m4: New file.
4696         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4697         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4698         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4699         * modules/expf: New file.
4700         * tests/test-math-c++.cc: Check the declaration of expf.
4701         * doc/posix-functions/expf.texi: Mention the new module.
4702
4703         exp: Use a .m4 file.
4704         * m4/exp.m4: New file.
4705         * modules/exp (Files): Add it.
4706         (configure.ac): Just invoke gl_FUNC_EXP.
4707
4708 2011-10-08  Bruno Haible  <bruno@clisp.org>
4709
4710         Tests for module 'sqrtf'.
4711         * modules/sqrtf-tests: New file.
4712         * tests/test-sqrtf.c: New file.
4713
4714         New module 'sqrtf'.
4715         * lib/math.in.h (sqrtf): New declaration.
4716         * lib/sqrtf.c: New file.
4717         * m4/sqrtf.m4: New file.
4718         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4720         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4721         * modules/sqrtf: New file.
4722         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4723         * doc/posix-functions/sqrtf.texi: Mention the new module.
4724
4725 2011-10-08  Bruno Haible  <bruno@clisp.org>
4726
4727         Tests: Avoid link failures w.r.t. libintl.
4728         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4729         $(LIBINTL).
4730         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4731         $(LIBINTL).
4732         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4733         against $(LIBINTL).
4734         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4735         $(LIBINTL).
4736         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4737         $(LIBINTL).
4738         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4739
4740 2011-10-08  Bruno Haible  <bruno@clisp.org>
4741
4742         pow tests: Defeat compiler optimizations.
4743         * tests/test-pow.c (main): Assign arguments to x and y before use.
4744
4745 2011-10-08  Bruno Haible  <bruno@clisp.org>
4746
4747         gnulib-tool: Improve last commit.
4748         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4749         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4750         ignore dependencies that are not among the modules list.
4751
4752 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4753
4754         gnulib-tool: don't follow dependencies to avoided modules
4755         This fixes a bug that is related to the previous one.
4756         * gnulib-tool (func_modules_transitive_closure)
4757         (func_emit_autoconf_snippets):
4758         Check whether a dependency is acceptable before using it.
4759         (--extract-dependencies): Report an error if --avoid is also used,
4760         since this combination of options is not yet supported.
4761
4762         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4763         Problem reported by Peter Dyballa in
4764         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4765         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4766         when echoing "$condition".
4767
4768 2011-10-07  Bruno Haible  <bruno@clisp.org>
4769
4770         Fix documentation about math functions on MacOS X.
4771         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4772         MacOS X 10.5.
4773         * doc/posix-functions/fdim.texi: Likewise.
4774         * doc/posix-functions/feclearexcept.texi: Likewise.
4775         * doc/posix-functions/fegetenv.texi: Likewise.
4776         * doc/posix-functions/fegetround.texi: Likewise.
4777         * doc/posix-functions/feholdexcept.texi: Likewise.
4778         * doc/posix-functions/feraiseexcept.texi: Likewise.
4779         * doc/posix-functions/fesetenv.texi: Likewise.
4780         * doc/posix-functions/fesetround.texi: Likewise.
4781         * doc/posix-functions/fetestexcept.texi: Likewise.
4782         * doc/posix-functions/feupdateenv.texi: Likewise.
4783         * doc/posix-functions/fmax.texi: Likewise.
4784         * doc/posix-functions/fmin.texi: Likewise.
4785         * doc/posix-functions/log2.texi: Likewise.
4786         * doc/posix-functions/modff.texi: Likewise.
4787         * doc/posix-functions/nan.texi: Likewise.
4788         * doc/posix-functions/nanf.texi: Likewise.
4789         * doc/posix-functions/nextafterf.texi: Likewise.
4790         * doc/posix-functions/remquo.texi: Likewise.
4791
4792 2011-10-07  Bruno Haible  <bruno@clisp.org>
4793
4794         modff: Drop assumption about library that defines modff.
4795         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4796         AC_CHECK_FUNCS.
4797         * modules/modff (Files): Add m4/mathfunc.m4.
4798
4799 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4800
4801         raise tests: Avoid a GCC warning.
4802         * tests/test-raise.c (handler): Use _Noreturn.
4803
4804 2011-10-07  Bruno Haible  <bruno@clisp.org>
4805
4806         Tests for module 'ldexpf'.
4807         * modules/ldexpf-tests: New file.
4808         * tests/test-ldexpf.c: New file.
4809
4810         New module 'ldexpf'.
4811         * lib/math.in.h (ldexpf): New declaration.
4812         * lib/ldexpf.c: New file.
4813         * m4/ldexpf.m4: New file.
4814         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4816         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4817         * modules/ldexpf: New file.
4818         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4819         * doc/posix-functions/ldexpf.texi: Mention the new module.
4820
4821 2011-10-06  Bruno Haible  <bruno@clisp.org>
4822
4823         frexpf: Work around problems on IRIX and mingw.
4824         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4826         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4827         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4828         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4829         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4830         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4831
4832 2011-10-06  Bruno Haible  <bruno@clisp.org>
4833
4834         fabsf: Drop assumption about library that defines fabsf.
4835         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4836         AC_CHECK_FUNCS.
4837         * modules/fabsf (Files): Add m4/mathfunc.m4.
4838
4839 2011-10-06  Bruno Haible  <bruno@clisp.org>
4840
4841         frexpf: Drop assumption about library that defines frexpf.
4842         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4843         'int *', 'float *', 'long double *', 'float', 'long double'.
4844         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4845         AC_CHECK_FUNCS.
4846         * modules/frexpf (Files): Add m4/mathfunc.m4.
4847
4848         Tests for module 'frexpf'.
4849         * modules/frexpf-tests: New file.
4850         * tests/test-frexpf.c: New file.
4851
4852         New module 'frexpf'.
4853         * lib/math.in.h (frexpf): New declaration.
4854         * lib/frexpf.c: New file.
4855         * m4/frexpf.m4: New file.
4856         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4858         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4859         * modules/frexpf: New file.
4860         * tests/test-math-c++.cc: Check the declaration of frexpf.
4861         * doc/posix-functions/frexpf.texi: Mention the new module.
4862
4863 2011-10-06  Bruno Haible  <bruno@clisp.org>
4864
4865         math: Sort function declarations of math.in.h.
4866         * lib/math.in.h (frexp, logb): Move declarations.
4867
4868 2011-10-05  Bruno Haible  <bruno@clisp.org>
4869
4870         Tests for module 'modff'.
4871         * modules/modff-tests: New file.
4872         * tests/test-modff.c: New file.
4873
4874         New module 'modff'.
4875         * lib/math.in.h (modff): New declaration.
4876         * lib/modff.c: New file.
4877         * m4/modff.m4: New file.
4878         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4880         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4881         * modules/modff: New file.
4882         * tests/test-math-c++.cc: Check the declaration of modff.
4883         * doc/posix-functions/modff.texi: Mention the new module.
4884
4885         modf tests: Make test sharper.
4886         * tests/test-modf.c (main): Strengthen upper bound.
4887
4888         modf: Use a .m4 file.
4889         * m4/modf.m4: New file.
4890         * modules/modf (Files): Add it.
4891         (configure.ac): Just invoke gl_FUNC_MODF.
4892
4893 2011-10-05  Bruno Haible  <bruno@clisp.org>
4894
4895         Tests for module 'fmodf'.
4896         * modules/fmodf-tests: New file.
4897         * tests/test-fmodf.c: New file.
4898
4899         New module 'fmodf'.
4900         * lib/math.in.h (fmodf): New declaration.
4901         * lib/fmodf.c: New file.
4902         * m4/fmodf.m4: New file.
4903         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4904         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4905         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4906         * modules/fmodf: New file.
4907         * tests/test-math-c++.cc: Check the declaration of fmodf.
4908         * doc/posix-functions/fmodf.texi: Mention the new module.
4909
4910         fmod: Use a .m4 file.
4911         * m4/fmod.m4: New file.
4912         * modules/fmod (Files): Add it.
4913         (configure.ac): Just invoke gl_FUNC_FMOD.
4914
4915 2011-10-05  Bruno Haible  <bruno@clisp.org>
4916
4917         Tests for module 'fabsf'.
4918         * modules/fabsf-tests: New file.
4919         * tests/test-fabsf.c: New file.
4920
4921         New module 'fabsf'.
4922         * lib/math.in.h (fabsf): New declaration.
4923         * lib/fabsf.c: New file.
4924         * m4/fabsf.m4: New file.
4925         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4926         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4927         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4928         * modules/fabsf: New file.
4929         * tests/test-math-c++.cc: Check the declaration of fabsf.
4930         * doc/posix-functions/fabsf.texi: Mention the new module.
4931
4932         fabs: Use a .m4 file.
4933         * m4/fabs.m4: New file.
4934         * modules/fabs (Files): Add it.
4935         (configure.ac): Just invoke gl_FUNC_FABS.
4936
4937 2011-10-05  Jim Meyering  <meyering@redhat.com>
4938
4939         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4940         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4941         ls -lL regression introduced in coreutils-8.12, it does so at the
4942         cost of an additional stat call in the common case.  Besides, now
4943         that the kernel change that prompted commit 95f7c57f has been reverted
4944         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4945         we have no use for commit 95f7c57f, "file-has-acl: use
4946         acl_extended_file_nofollow if available".
4947
4948 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4949
4950         file-has-acl: revert unintended change in behavior of ls -L
4951         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4952         derived from...
4953         (file_has_acl): ...code here.  Call it.
4954         This problem was introduced with 2011-07-22 commit 95f7c57f,
4955         "file-has-acl: use acl_extended_file_nofollow if available".
4956         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4957
4958 2011-10-03  Bruno Haible  <bruno@clisp.org>
4959
4960         poll: Avoid link errors on MSVC.
4961         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4962         * modules/poll (Depends-on): Add sockets.
4963         (Link): New section.
4964         * NEWS: Mention the change.
4965         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4966         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4967         $(LIB_POLL) instead of $(LIBSOCKET).
4968
4969 2011-10-03  Bruno Haible  <bruno@clisp.org>
4970
4971         sys_select tests: Fix link error on MSVC 9.
4972         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4973         with $(LIB_SELECT) instead of $(LIBSOCKET).
4974
4975 2011-10-03  Bruno Haible  <bruno@clisp.org>
4976
4977         sys_select: Fix compilation error on mingw.
4978         * lib/sys_select.in.h: On native Windows, include <io.h>.
4979
4980 2011-10-03  Bruno Haible  <bruno@clisp.org>
4981
4982         wmemset: Support for MSVC.
4983         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4984         whether wmemset() exists.
4985
4986 2011-10-03  Bruno Haible  <bruno@clisp.org>
4987
4988         wmemmove: Support for MSVC.
4989         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4990         whether wmemmove() exists.
4991
4992 2011-10-03  Bruno Haible  <bruno@clisp.org>
4993
4994         wmemcpy: Support for MSVC.
4995         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4996         whether wmemcpy() exists.
4997
4998 2011-10-03  Bruno Haible  <bruno@clisp.org>
4999
5000         wmemcmp: Support for MSVC.
5001         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
5002         whether wmemcmp() exists.
5003
5004 2011-10-03  Bruno Haible  <bruno@clisp.org>
5005
5006         wmemchr: Support for MSVC.
5007         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
5008         whether wmemchr() exists.
5009
5010 2011-10-03  Bruno Haible  <bruno@clisp.org>
5011
5012         glthread/*, strsignal: Support for MSVC.
5013         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
5014         including <winsock.h> on MSVC 9.
5015         * lib/glthread/lock.h: Likewise.
5016         * lib/glthread/thread.h: Likewise.
5017         * lib/glthread/tls.h: Likewise.
5018         * lib/glthread/yield.h: Likewise.
5019         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
5020         if HAVE_UNISTD_H is false.
5021         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
5022
5023 2011-10-03  Bruno Haible  <bruno@clisp.org>
5024
5025         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
5026         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
5027         Set to 100000.
5028
5029 2011-10-03  Bruno Haible  <bruno@clisp.org>
5030
5031         acl: Fix specification.
5032         * lib/file-has-acl.c (file_has_acl): Fix specification.
5033
5034 2011-10-03  Bruno Haible  <bruno@clisp.org>
5035
5036         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
5037         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
5038         (compute_curr_prefix, shared_library_fullname,
5039         find_shared_library_fullname, get_shared_library_fullname, relocate):
5040         Use it together with PIC && INSTALLDIR.
5041         Reported by <jojelino@gmail.com>
5042         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
5043
5044 2011-10-01  Jim Meyering  <meyering@redhat.com>
5045
5046         maint.mk: adjust a release-related rule not to require use of gzip
5047         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
5048         Instead, check each file in $(DIST_ARCHIVES).  This is better for
5049         projects that build only .tar.xz files.  Also fix an erroneous test.
5050
5051         test-linkat: don't leave behind a temporary file
5052         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
5053         Otherwise, coreutils' "make distcheck" would fail with this:
5054           Only in /c/cu/tests/torture/coreutils/test/\
5055             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
5056           make[2]: *** [my-distcheck] Error 1
5057
5058         float, math: add omitted file
5059         * lib/itold.c: Add file, required for yesterday's float change.
5060
5061 2011-10-01  Bruno Haible  <bruno@clisp.org>
5062
5063         isinf: Fix for OpenBSD/x86.
5064         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
5065         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
5066         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
5067
5068 2011-10-01  Bruno Haible  <bruno@clisp.org>
5069
5070         isfinite: Fix syntax error in configure test.
5071         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
5072
5073         isfinite: Fix typo.
5074         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
5075         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
5076
5077 2011-10-01  Bruno Haible  <bruno@clisp.org>
5078
5079         nonblocking tests: Fix test failure on Linux/IA-64.
5080         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
5081         Set to 270000.
5082
5083 2011-10-01  Bruno Haible  <bruno@clisp.org>
5084
5085         mkfifoat tests: Fix a test failure on mingw.
5086         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
5087         with error ENOSYS.
5088
5089 2011-09-30  Bruno Haible  <bruno@clisp.org>
5090
5091         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
5092         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
5093         'long double'. Set REPLACE_ITOLD.
5094         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
5095         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
5096         * lib/itold.c: New file.
5097         * modules/float (Files): Add lib/itold.c.
5098         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
5099         (Makefile.am): Substitute REPLACE_ITOLD.
5100         * modules/math (Depends-on): Add float.
5101         (Makefile.am): Substitute REPLACE_ITOLD.
5102         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
5103         * doc/posix-headers/math.texi: Likewise.
5104         * doc/posix-functions/logl.texi: Likewise.
5105
5106 2011-09-30  Bruno Haible  <bruno@clisp.org>
5107
5108         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
5109         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
5110         Set to 140000.
5111
5112 2011-09-30  Bruno Haible  <bruno@clisp.org>
5113
5114         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
5115         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
5116         invocation, say "right after AC_PROG_CC_STDC", not "right after
5117         AC_PROG_CC".
5118         Reported by Gary V. Vaughan <gary@gnu.org>.
5119
5120 2011-09-30  Bruno Haible  <bruno@clisp.org>
5121
5122         Centralize C99 requirement.
5123         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
5124         * modules/stdarg (configure.ac-early): Invoke it instead of
5125         AC_PROG_CC_STDC.
5126         Reported by Gary V. Vaughan and Paul Eggert.
5127
5128 2011-09-29  Bruno Haible  <bruno@clisp.org>
5129
5130         float: Fix LDBL_MAX value on Linux/PowerPC.
5131         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
5132         on Linux/PowerPC.
5133         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
5134         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
5135         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
5136         platform.
5137         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
5138
5139 2011-09-29  Bruno Haible  <bruno@clisp.org>
5140
5141         doc: Improve doc about gl_EARLY.
5142         * doc/gnulib-tool.texi (Initial import): Mention where to place an
5143         AC_PROG_CC_STDC invocation.
5144         Reported by Gary V. Vaughan <gary@gnu.org>.
5145
5146 2011-09-28  Bruno Haible  <bruno@clisp.org>
5147
5148         fgetc, fputc, fread, fwrite tests: Fix link error.
5149         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
5150         on non-MSVC platforms.
5151         * tests/test-fputc.c (main): Likewise.
5152         * tests/test-fread.c (main): Likewise.
5153         * tests/test-fwrite.c (main): Likewise.
5154         Reported by Jim Meyering.
5155
5156 2011-09-27  Bruno Haible  <bruno@clisp.org>
5157
5158         fputc, fwrite tests: Avoid test failure on MSVC.
5159         * tests/test-fgetc.c: Include msvc-inval.h.
5160         (main): Invoke gl_msvc_inval_ensure_handler.
5161         * tests/test-fputc.c: Include msvc-inval.h.
5162         (main): Invoke gl_msvc_inval_ensure_handler.
5163         * tests/test-fread.c: Include msvc-inval.h.
5164         (main): Invoke gl_msvc_inval_ensure_handler.
5165         * tests/test-fwrite.c: Include msvc-inval.h.
5166         (main): Invoke gl_msvc_inval_ensure_handler.
5167         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5168         * modules/fputc-tests (Depends-on): Likewise.
5169         * modules/fread-tests (Depends-on): Likewise.
5170         * modules/fwrite-tests (Depends-on): Likewise.
5171
5172 2011-09-27  Bruno Haible  <bruno@clisp.org>
5173
5174         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5175         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5176         (raise): Remove older, duplicated declaration.
5177         (_gl_raise_SIGPIPE): New declaration.
5178         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5179         (rpl_raise): Remove function.
5180         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5181         a gnulib-defined SIGPIPE here.
5182         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5183         'sigprocmask' has detected missing signal-blocking and the module
5184         'sigpipe' is enabled.
5185         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5186
5187 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5188
5189         base64-tests: avoid memory leak
5190         * tests/test-base64.c (main): Plug memory leak.
5191
5192         base32: new module
5193         * modules/base32: New module.
5194         * lib/base32.c: New file.
5195         * lib/base32.h: Likewise.
5196         * m4/base32.m4: Likewise.
5197         * modules/base32-tests: New test.
5198         * tests/test-base32.c: Likewise.
5199         * MODULES.html.sh (Misc): Mention it.
5200
5201 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5202
5203         gnulib: use more-standard license notice wording
5204         * gnulib-tool (func_emit_copyright_notice): When emitting a
5205         license notice into a file, use the standard wording as suggested
5206         by the current information for GNU maintainers, except say "file"
5207         rather than "program".  The new wording gives a license version
5208         number, which addresses an issue raised by Glenn Morris in
5209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5210         * m4/onceonly.m4: Use that same wording here, too.
5211
5212         dup2: minor simplification
5213         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5214         as lib/dup2.c no longer uses 'inline'.
5215
5216 2011-09-25  Bruno Haible  <bruno@clisp.org>
5217
5218         strings: Fix compilation error on MSVC.
5219         * lib/strings.in.h: Include <stddef.h> for size_t.
5220
5221 2011-09-25  Bruno Haible  <bruno@clisp.org>
5222
5223         fflush et al.: Document limitation on MSVC.
5224         * doc/posix-functions/fflush.texi: Document possible crash in handling
5225         mode other than DEFAULT_HANDLING.
5226         * doc/posix-functions/fgetc.texi: Likewise.
5227         * doc/posix-functions/fputc.texi: Likewise.
5228         * doc/posix-functions/fread.texi: Likewise.
5229         * doc/posix-functions/fwrite.texi: Likewise.
5230
5231 2011-09-25  Bruno Haible  <bruno@clisp.org>
5232
5233         msvc-inval: Allow three invalid parameter handling modes.
5234         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5235         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5236         macros.
5237         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5238         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5239         SANE_LIBRARY_HANDLING as a no-op.
5240         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5241         <stdlib.h>.
5242         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5243
5244 2011-09-25  Bruno Haible  <bruno@clisp.org>
5245
5246         msvc-inval: Make handler multithread-safe.
5247         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5248         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5249         declarations.
5250         (gl_msvc_inval_current): New declaration.
5251         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5252         Operate on the structure returned by gl_msvc_inval_current().
5253         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5254         Remove varaiables.
5255         (tls_index, tls_initialized): New variables.
5256         (not_per_thread): New variable.
5257         (gl_msvc_inval_current): New function.
5258         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5259         returned by gl_msvc_inval_current().
5260
5261 2011-09-25  Bruno Haible  <bruno@clisp.org>
5262
5263         msvc-inval: Install handler globally.
5264         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5265         !_MSC_VER.
5266         (gl_msvc_invalid_parameter_handler): Remove declaration.
5267         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5268         declarations.
5269         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5270         Install the handler globally, don't uninstall it.
5271         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5272         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5273         currently valid, call RaiseException instead.
5274         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5275         for !_MSC_VER.
5276
5277 2011-09-25  Bruno Haible  <bruno@clisp.org>
5278
5279         strerror_r-posix: Fix for MSVC 9.
5280         * lib/strerror_r.c (local_snprintf): New function.
5281         (snprintf): Define to local_snprintf, not to _snprintf.
5282
5283 2011-09-25  Bruno Haible  <bruno@clisp.org>
5284
5285         ftruncate: Support for MSVC 9.
5286         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5287         (chsize_nothrow): New function.
5288         (chsize): Redefine as a macro.
5289         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5290         * modules/ftruncate (Depends-on): Add msvc-inval.
5291
5292 2011-09-25  Bruno Haible  <bruno@clisp.org>
5293
5294         New module 'fstat'.
5295         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5296         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5297         * lib/fchdir.c (rpl_fstat): Remove function.
5298         * m4/fstat.m4: New file.
5299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5300         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5301         declared.
5302         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5303         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5304         * modules/fstat: New file.
5305         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5306         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5307         is set.
5308         * doc/posix-functions/fstat.texi: Mention the new module and the
5309         problem on MSVC.
5310         * NEWS: Mention the change.
5311         * modules/acl (Depends-on): Add fstat.
5312         * modules/chdir-safer (Depends-on): Likewise.
5313         * modules/chown (Depends-on): Likewise.
5314         * modules/copy-file (Depends-on): Likewise.
5315         * modules/fchdir (Depends-on): Likewise.
5316         * modules/fdopendir (Depends-on): Likewise.
5317         * modules/fopen (Depends-on): Likewise.
5318         * modules/fts (Depends-on): Likewise.
5319         * modules/getcwd (Depends-on): Likewise.
5320         * modules/isapipe (Depends-on): Likewise.
5321         * modules/linkat (Depends-on): Likewise.
5322         * modules/lseek (Depends-on): Likewise.
5323         * modules/mkdir-p (Depends-on): Likewise.
5324         * modules/open (Depends-on): Likewise.
5325         * modules/openat (Depends-on): Likewise.
5326         * modules/read-file (Depends-on): Likewise.
5327         * modules/renameat (Depends-on): Likewise.
5328         * modules/utimens (Depends-on): Likewise.
5329
5330 2011-09-25  Bruno Haible  <bruno@clisp.org>
5331
5332         linkat: Fix compilation on MSVC 9.
5333         * lib/linkat.c: Don't include <stdint.h>.
5334
5335 2011-09-25  Bruno Haible  <bruno@clisp.org>
5336
5337         fclose: Support for MSVC 9.
5338         * lib/fclose.c: Include msvc-inval.h.
5339         (fclose_nothrow): New function.
5340         (rpl_fclose): Use it.
5341         * modules/fclose (Depends-on): Add msvc-inval.
5342         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5343
5344 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5345
5346         dup2: minor simplifications
5347         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5348         that it's a performance win.
5349         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5350         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5351
5352 2011-09-24  Jim Meyering  <meyering@redhat.com>
5353
5354         test-futimens: avoid a warning from gcc -Wshadow
5355         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5356         to avoid a shadowing warning.
5357
5358 2011-09-24  Bruno Haible  <bruno@clisp.org>
5359
5360         fdopen: Support for MSVC 9.
5361         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5362         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5363         * lib/fdopen.c: Include msvc-inval.h.
5364         (fdopen_nothrow): New function.
5365         (rpl_fdopen): Use it.
5366         * modules/fdopen (Depends-on): Add msvc-inval.
5367         * modules/fclose-tests (Depends-on): Add fdopen.
5368         * modules/fflush-tests (Depends-on): Likewise.
5369         * modules/fgetc-tests (Depends-on): Likewise.
5370         * modules/fputc-tests (Depends-on): Likewise.
5371         * modules/fread-tests (Depends-on): Likewise.
5372         * modules/freopen-tests (Depends-on): Likewise.
5373         * modules/fseeko-tests (Depends-on): Likewise.
5374         * modules/ftello-tests (Depends-on): Likewise.
5375         * modules/fwrite-tests  (Depends-on): Likewise.
5376         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5377
5378 2011-09-24  Bruno Haible  <bruno@clisp.org>
5379
5380         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5381         * modules/fgetc-tests (Depends-on): Add unistd.
5382         * modules/fputc-tests (Depends-on): Likewise.
5383         * modules/fread-tests (Depends-on): Likewise.
5384         * modules/fwrite-tests (Depends-on): Likewise.
5385
5386 2011-09-24  Bruno Haible  <bruno@clisp.org>
5387
5388         dup: Simplify autoconf test.
5389         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5390         on gl_MSVC_INVAL's result.
5391
5392 2011-09-24  Bruno Haible  <bruno@clisp.org>
5393
5394         Tests for function fwrite().
5395         * modules/fwrite-tests: New file.
5396         * tests/test-fwrite.c: New file.
5397         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5398
5399         Tests for function fread().
5400         * modules/fread-tests: New file.
5401         * tests/test-fread.c: New file.
5402         * modules/stdio-tests (Depends-on): Add fread-tests.
5403
5404         Activate fputc tests.
5405         * modules/stdio-tests (Depends-on): Add fputc-tests.
5406
5407         Enhance fgetc, fputc tests.
5408         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5409         * tests/test-fputc.c (main): Likewise.
5410
5411 2011-09-24  Bruno Haible  <bruno@clisp.org>
5412
5413         write: Support for MSVC 9.
5414         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5415         is not 1.
5416         * lib/write.c (write_nothrow): New function.
5417         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5418         not 1. Use write_nothrow.
5419         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5420         invalid parameter handler.
5421         (gl_PREREQ_WRITE): New macro.
5422         * modules/write (Depends-on): Add msvc-inval.
5423         (configure.ac): Invoke gl_PREREQ_WRITE.
5424         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5425
5426 2011-09-24  Bruno Haible  <bruno@clisp.org>
5427
5428         read: Fix last commit.
5429         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5430
5431 2011-09-24  Bruno Haible  <bruno@clisp.org>
5432
5433         dup2: Fix last commit.
5434         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5435         (rpl_dup2): Disable fcntl workaround on native Windows.
5436
5437         sigprocmask: Make code safer.
5438         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5439         section that changes macro definitions for this compilation unit.
5440
5441 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5442
5443         dup2: clarify by coalescing Windows-specific material
5444         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5445         "msvc-nothrow.h"' to the Windows-specific section, so that the
5446         Emacs source need not contain these include files.
5447         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5448         Windows-specific fixes into this function rather than just the
5449         nothrow fix, as this shortens and clarifies the code.  Always
5450         define as a function, as that's a bit cleaner than having it be
5451         sometimes a function and sometimes a macro.
5452         (rpl_dup2): Move the Windows-specific stuff out of here and into
5453         ms_windows_dup2.  Don't protect the Haiku-related fix with
5454         "#if !defined __linux__", as the same code also works around
5455         a Linux kernel bug, and it doesn't add any system calls on any
5456         platform.  Add comment about FreeBSD 6.1.
5457
5458         sigprocmask: move #include directive
5459         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5460         Windows-specific section, so that the Emacs source need not
5461         contain msvc-inval.h.
5462
5463 2011-09-23  Bruno Haible  <bruno@clisp.org>
5464
5465         read: Support for MSVC 9.
5466         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5467         is not 1.
5468         * lib/read.c (read_nothrow): New function.
5469         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5470         read_nothrow.
5471         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5472         invalid parameter handler.
5473         (gl_PREREQ_READ): New macro.
5474         * modules/read (Depends-on): Add msvc-inval.
5475         (configure.ac): Invoke gl_PREREQ_READ.
5476         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5477
5478 2011-09-23  Bruno Haible  <bruno@clisp.org>
5479
5480         close: Support for MSVC 9.
5481         * lib/close.c: Include <errno.h>, msvc-inval.h.
5482         (close_nothrow): New function.
5483         (rpl_close): Use it.
5484         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5485         invalid parameter handler.
5486         * modules/close (Depends-on): Add msvc-inval.
5487         * modules/dup2-tests (Depends-on): Add close.
5488         * modules/dup3-tests (Depends-on): Likewise.
5489         * modules/fcntl-tests (Depends-on): Likewise.
5490         * modules/spawn-pipe-tests (Depends-on): Likewise.
5491         * modules/unistd-safer-tests (Depends-on): Likewise.
5492         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5493
5494 2011-09-23  Bruno Haible  <bruno@clisp.org>
5495
5496         New module 'dup'.
5497         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5498         Allow replacement.
5499         * lib/dup.c: New file.
5500         * lib/fchdir.c (rpl_dup): Remove function.
5501         * m4/dup.m4: New file.
5502         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5503         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5504         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5505         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5506         * modules/dup: New file.
5507         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5508         'dup' module is in use.
5509         * modules/fdopendir (Depends-on): Add dup.
5510         * modules/fdutimensat-tests (Depends-on): Likewise.
5511         * modules/fts (Depends-on): Likewise.
5512         * modules/futimens-tests (Depends-on): Likewise.
5513         * modules/posix_spawnp-tests (Depends-on): Likewise.
5514         * modules/unistd-safer-tests (Depends-on): Likewise.
5515         * modules/utimens-tests (Depends-on): Likewise.
5516         * doc/posix-functions/dup.texi: Mention the new module and the problem
5517         on MSVC.
5518
5519 2011-09-23  Bruno Haible  <bruno@clisp.org>
5520
5521         getdtablesize: Support for MSVC 9.
5522         * lib/getdtablesize.c: Include msvc-inval.h.
5523         (_setmaxstdio_nothrow): New function.
5524         (_setmaxstdio): Redefine it.
5525         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5526         * modules/getdtablesize (Depends-on): Add msvc-inval.
5527         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5528
5529 2011-09-23  Bruno Haible  <bruno@clisp.org>
5530
5531         signal-h: Rename from signal.
5532         * modules/signal-h: Renamed from modules/signal.
5533         * modules/pthread_sigmask (Depends-on): Update.
5534         * modules/raise (Depends-on): Likewise.
5535         * modules/sigaction (Depends-on): Likewise.
5536         * modules/sigpipe (Depends-on): Likewise.
5537         * modules/sigprocmask (Depends-on): Likewise.
5538         * modules/sys_select (Depends-on): Likewise.
5539         * modules/signal-h-tests: Renamed from modules/signal-tests.
5540         (Files, Depends-on, Makefile.am): Update.
5541         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5542         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5543         (Files, Makefile.am): Update.
5544         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5545         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5546         * modules/signal: New placeholder file.
5547         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5548         * doc/posix-headers/signal.texi: Update.
5549         * NEWS: Mention the change.
5550
5551 2011-09-23  Bruno Haible  <bruno@clisp.org>
5552
5553         sigprocmask: Avoid crashes through signal() on MSVC 9.
5554         * lib/sigprocmask.c: Include msvc-inval.h.
5555         (signal_nothrow): New function.
5556         (signal): Redefine it.
5557         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5558         * modules/sigprocmask (Depends-on): Add msvc-inval.
5559         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5560
5561 2011-09-23  Bruno Haible  <bruno@clisp.org>
5562
5563         Tests for module 'raise'.
5564         * modules/raise-tests: New file.
5565         * tests/test-raise.c: New file.
5566
5567         raise: Support for MSVC.
5568         * lib/signal.in.h (raise): New declaration.
5569         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5570         for native Windows platforms.
5571         * m4/raise.m4: New file.
5572         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5573         HAVE_RAISE, REPLACE_RAISE.
5574         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5575         REPLACE_RAISE.
5576         * modules/raise (Status, Notice): Remove fields.
5577         (Files): Add m4/raise.m4.
5578         (Depends-on): Add signal, msvc-inval.
5579         (configure.ac): Use the common idioms.
5580         (Maintainer): Add me.
5581         * tests/test-signal-c++.cc: Check the signature of raise.
5582         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5583
5584 2011-09-23  Bruno Haible  <bruno@clisp.org>
5585
5586         pipe2: Fix compilation on pre-C99 compilers.
5587         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5588
5589 2011-09-23  Bruno Haible  <bruno@clisp.org>
5590
5591         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5592         * lib/msvc-nothrow.h: New file.
5593         * lib/msvc-nothrow.c: New file.
5594         * m4/msvc-nothrow.m4: New file.
5595         * modules/msvc-nothrow: New file.
5596         * lib/dup2.c: Include msvc-nothrow.h.
5597         (rpl_dup2): No need to protect _get_osfhandle call here.
5598         * lib/accept4.c: Include msvc-nothrow.h.
5599         * lib/error.c: Likewise.
5600         * lib/fcntl.c: Likewise.
5601         * lib/lseek.c: Likewise.
5602         * lib/nonblocking.c: Likewise.
5603         * lib/poll.c: Likewise.
5604         * lib/read.c: Likewise.
5605         * lib/select.c: Likewise.
5606         * lib/sockets.h: Likewise.
5607         * lib/sockets.c: Likewise.
5608         * lib/stdio-read.c: Likewise.
5609         * lib/stdio-write.c: Likewise.
5610         * lib/write.c: Likewise.
5611         * lib/w32sock.h: Likewise.
5612         * lib/w32spawn.h: Likewise.
5613         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5614         * lib/fsync.c: Likewise.
5615         * lib/isapipe.c: Likewise.
5616         * modules/dup2 (Depends-on): Add msvc-nothrow.
5617         * modules/accept4 (Depends-on): Likewise.
5618         * modules/error (Depends-on): Likewise.
5619         * modules/fcntl (Depends-on): Likewise.
5620         * modules/lseek (Depends-on): Likewise.
5621         * modules/nonblocking (Depends-on): Likewise.
5622         * modules/poll (Depends-on): Likewise.
5623         * modules/read (Depends-on): Likewise.
5624         * modules/select (Depends-on): Likewise.
5625         * modules/sockets (Depends-on): Likewise.
5626         * modules/sigpipe (Depends-on): Likewise.
5627         * modules/write (Depends-on): Likewise.
5628         * modules/accept (Depends-on): Likewise.
5629         * modules/bind (Depends-on): Likewise.
5630         * modules/connect (Depends-on): Likewise.
5631         * modules/gethostname (Depends-on): Likewise.
5632         * modules/getpeername (Depends-on): Likewise.
5633         * modules/getsockname (Depends-on): Likewise.
5634         * modules/getsockopt (Depends-on): Likewise.
5635         * modules/ioctl (Depends-on): Likewise.
5636         * modules/listen (Depends-on): Likewise.
5637         * modules/recv (Depends-on): Likewise.
5638         * modules/recvfrom (Depends-on): Likewise.
5639         * modules/send (Depends-on): Likewise.
5640         * modules/sendto (Depends-on): Likewise.
5641         * modules/setsockopt (Depends-on): Likewise.
5642         * modules/shutdown (Depends-on): Likewise.
5643         * modules/socket (Depends-on): Likewise.
5644         * modules/execute (Depends-on): Likewise.
5645         * modules/spawn-pipe (Depends-on): Likewise.
5646         * modules/flock (Depends-on): Likewise.
5647         * modules/fsync (Depends-on): Likewise.
5648         * modules/isapipe (Depends-on): Likewise.
5649         * tests/test-cloexec.c: Include msvc-nothrow.h.
5650         * tests/test-dup-safer.c: Likewise.
5651         * tests/test-dup2.c: Likewise.
5652         * tests/test-dup3.c: Likewise.
5653         * tests/test-fcntl.c: Likewise.
5654         * tests/test-pipe.c: Likewise.
5655         * tests/test-pipe2.c: Likewise.
5656         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5657         * modules/unistd-safer-tests (Depends-on): Likewise.
5658         * modules/dup2-tests (Depends-on): Likewise.
5659         * modules/dup3-tests (Depends-on): Likewise.
5660         * modules/fcntl-tests (Depends-on): Likewise.
5661         * modules/pipe-posix-tests (Depends-on): Likewise.
5662         * modules/pipe2-tests (Depends-on): Likewise.
5663
5664 2011-09-23  Bruno Haible  <bruno@clisp.org>
5665
5666         dup2: Make code more maintainable.
5667         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5668         (rpl_dup2): Use it.
5669         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5670         * modules/dup2 (configure.ac): Invoke it.
5671         Reported by Paul Eggert.
5672
5673 2011-09-23  Bruno Haible  <bruno@clisp.org>
5674
5675         msvc-inval: Fix compilation error.
5676         * lib/msvc-inval.h: Include <excpt.h>.
5677
5678 2011-09-23  Bruno Haible  <bruno@clisp.org>
5679
5680         mkdir: Tweak for MSVC 9.
5681         * lib/sys_stat.in.h: Update comments.
5682         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5683
5684         Tests for module 'chdir'.
5685         * modules/chdir-tests: New file.
5686         * tests/test-chdir.c: New file.
5687
5688         New module 'chdir'.
5689         * modules/chdir: New file.
5690         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5691         (chdir): New declaration.
5692         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5693         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5694         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5695         * tests/test-unistd-c++.cc: Check signature of chdir.
5696         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5697         * modules/chdir-long (Depends-on): Add chdir.
5698         * modules/fchdir (Depends-on): Likewise.
5699         * modules/rename (Depends-on): Likewise.
5700         * modules/savewd (Depends-on): Likewise.
5701
5702         rmdir: Support for mingw, MSVC 9.
5703         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5704         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5705
5706         getcwd: Tweak for MSVC 9.
5707         * lib/unistd.in.h: Update comments.
5708         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5709
5710 2011-09-22  Bruno Haible  <bruno@clisp.org>
5711
5712         strerror_r-posix: Avoid a link error on MSVC.
5713         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5714         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5715
5716 2011-09-22  Bruno Haible  <bruno@clisp.org>
5717
5718         select: Avoid link errors on MSVC.
5719         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5720         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5721         * modules/pselect (Link): Likewise.
5722         * NEWS: Mention the change.
5723         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5724         test-select-stdin against $(LIB_SELECT).
5725         * modules/pselect-tests (Makefile.am): Link test-pselect against
5726         $(LIB_SELECT).
5727
5728 2011-09-22  Bruno Haible  <bruno@clisp.org>
5729
5730         select: Avoid compilation error on MSVC.
5731         * lib/select.c: Don't include <stdbool.h>.
5732
5733 2011-09-21  Bruno Haible  <bruno@clisp.org>
5734
5735         Consolidate all uses of PATH_MAX in *.m4 files.
5736         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5737         macros.
5738         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5739         and gl_PATHMAX_SNIPPET.
5740         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5742         * modules/chdir-long (Files): Add m4/pathmax.m4.
5743         * modules/getcwd (Files): Likewise.
5744
5745 2011-09-21  Bruno Haible  <bruno@clisp.org>
5746
5747         ftruncate: Un-deprecate, concentrate on Win32 support.
5748         * modules/ftruncate (Status, Notice): Remove sections.
5749         (Depends-on): Add largefile.
5750         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5751         non-mingw platforms.
5752         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5753         include <io.h>.
5754         * modules/perror-tests (Depends-on): Add ftruncate.
5755         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5756         'ftruncate' module.
5757
5758 2011-09-21  Bruno Haible  <bruno@clisp.org>
5759
5760         Add dependencies to new dirent related modules.
5761         * modules/opendir (Depends-on): Add closedir.
5762         * modules/getcwd (Depends-on): Add opendir, closedir.
5763         * modules/dirent-safer-tests (Depends-on): Likewise.
5764         * modules/fdopendir-tests (Depends-on): Likewise.
5765         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5766         * modules/renameat-tests (Depends-on): Likewise.
5767
5768 2011-09-21  Bruno Haible  <bruno@clisp.org>
5769
5770         opendir: Avoid compilation error on mingw.
5771         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5772         * modules/opendir (Depends-on): Add unistd.
5773
5774 2011-09-21  Bruno Haible  <bruno@clisp.org>
5775
5776         ftruncate tests: Avoid a test failure on mingw.
5777         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5778
5779 2011-09-21  Bruno Haible  <bruno@clisp.org>
5780
5781         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5782         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5783         native Windows.
5784
5785 2011-09-21  Bruno Haible  <bruno@clisp.org>
5786
5787         New module 'fdopen'.
5788         * lib/stdio.in.h (fdopen): New declaration.
5789         * lib/fdopen.c: New file.
5790         * m4/fdopen.m4: New file.
5791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5792         REPLACE_FDOPEN.
5793         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5794         REPLACE_FDOPEN.
5795         * modules/fdopen: New file.
5796         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5797         * tests/test-stdio-c++.cc: Check signature of fdopen.
5798         * doc/posix-functions/fdopen.texi: Mention the new module.
5799
5800 2011-09-21  Bruno Haible  <bruno@clisp.org>
5801
5802         unlockpt tests: Avoid test failure on NetBSD 5.1.
5803         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5804         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5805
5806 2011-09-21  Bruno Haible  <bruno@clisp.org>
5807
5808         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5809         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5810         * tests/test-getlogin_r.c (main): Likewise.
5811
5812 2011-09-20  Bruno Haible  <bruno@clisp.org>
5813
5814         time tests: Don't require pid_t.
5815         * doc/posix-headers/time.texi: Revert last change.
5816         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5817         * tests/test-time.c: Comment out the check for pid_t.
5818
5819 2011-09-20  Bruno Haible  <bruno@clisp.org>
5820
5821         fsync tests: Avoid a test failure on mingw.
5822         * tests/test-fsync.c (main): Allow a failure with EIO.
5823
5824 2011-09-20  Bruno Haible  <bruno@clisp.org>
5825
5826         euidaccess: Update comments.
5827         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5828
5829 2011-09-20  Bruno Haible  <bruno@clisp.org>
5830
5831         Ensure EBADF returns for socket functions on mingw.
5832         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5833         descriptor is invalid.
5834         * lib/bind.c (rpl_bind): Likewise.
5835         * lib/connect.c (rpl_connect): Likewise.
5836         * lib/getpeername.c (rpl_getpeername): Likewise.
5837         * lib/getsockname.c (rpl_getsockname): Likewise.
5838         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5839         * lib/listen.c (rpl_listen): Likewise.
5840         * lib/recv.c (rpl_recv): Likewise.
5841         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5842         * lib/send.c (rpl_send): Likewise.
5843         * lib/sendto.c (rpl_sendto): Likewise.
5844         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5845         * lib/shutdown.c (rpl_shutdown): Likewise.
5846
5847 2011-09-20  Bruno Haible  <bruno@clisp.org>
5848
5849         select tests: EBADF tests.
5850         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5851         test_bad_fd): New functions.
5852         (test_function): Invoke also test_bad_fd.
5853
5854 2011-09-20  Bruno Haible  <bruno@clisp.org>
5855
5856         Tests for module 'posix_spawn_file_actions_addopen.
5857         * modules/posix_spawn_file_actions_addopen-tests: New file.
5858         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5859
5860         Tests for module 'posix_spawn_file_actions_adddup2'.
5861         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5862         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5863
5864         Tests for module 'posix_spawn_file_actions_addclose'.
5865         * modules/posix_spawn_file_actions_addclose-tests: New file.
5866         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5867
5868 2011-09-20  Bruno Haible  <bruno@clisp.org>
5869
5870         Tests for module 'unlockpt'.
5871         * modules/unlockpt-tests: New file.
5872         * tests/test-unlockpt.c: New file.
5873         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5874
5875         Tests for module 'grantpt'.
5876         * modules/grantpt-tests: New file.
5877         * tests/test-grantpt.c: New file.
5878         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5879
5880 2011-09-20  Bruno Haible  <bruno@clisp.org>
5881
5882         freopen tests: EBADF tests.
5883         * tests/test-freopen.c: Include errno.h, unistd.h.
5884         (main): Add tests for EBADF, commented out for the moment.
5885
5886         fclose tests: EBADF tests.
5887         * tests/test-fclose.c (main): Add tests for EBADF.
5888
5889         fflush tests: EBADF tests.
5890         * tests/test-fflush.c: Include errno.h, macros.h.
5891         (main): Add tests for EBADF.
5892
5893         ftello tests: EBADF tests.
5894         * tests/test-ftello4.sh: New file.
5895         * tests/test-ftello4.c: New file.
5896         * modules/ftello-tests (Files): Add them.
5897         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5898
5899         fseeko tests: EBADF tests.
5900         * tests/test-fseeko4.sh: New file.
5901         * tests/test-fseeko4.c: New file.
5902         * modules/fseeko-tests (Files): Add them.
5903         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5904
5905         Tests for function fputc().
5906         * modules/fputc-tests: New file.
5907         * tests/test-fputc.c: New file.
5908         * modules/stdio-tests (Depends-on): Add fputc-tests.
5909
5910         Tests for function fgetc().
5911         * modules/fgetc-tests: New file.
5912         * tests/test-fgetc.c: New file.
5913         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5914
5915         Tests for function fdopen().
5916         * modules/fdopen-tests: New file.
5917         * tests/test-fdopen.c: New file.
5918         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5919
5920         Tests for module 'vdprintf'.
5921         * modules/vdprintf-tests: New file.
5922         * tests/test-vdprintf.c: New file.
5923
5924         Tests for module 'dprintf'.
5925         * modules/dprintf-tests: New file.
5926         * tests/test-dprintf.c: New file.
5927
5928 2011-09-20  Bruno Haible  <bruno@clisp.org>
5929
5930         Tests for module 'ioctl'.
5931         * modules/ioctl-tests: New file.
5932         * tests/test-ioctl.c: New file.
5933
5934 2011-09-20  Bruno Haible  <bruno@clisp.org>
5935
5936         fcntl tests: EBADF tests.
5937         * tests/test-fcntl.c (main): Add more tests for EBADF.
5938
5939 2011-09-20  Bruno Haible  <bruno@clisp.org>
5940
5941         utimensat tests: EBADF tests.
5942         * tests/test-utimensat.c (main): Add tests for EBADF.
5943
5944         renameat tests: EBADF tests.
5945         * tests/test-renameat.c (main): Add tests for EBADF.
5946
5947         mkfifoat tests: EBADF tests.
5948         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5949
5950         readlinkat tests: EBADF tests.
5951         * tests/test-readlinkat.c (main): Add tests for EBADF.
5952
5953         symlinkat tests: EBADF tests.
5954         * tests/test-symlinkat.c (main): Add tests for EBADF.
5955
5956         linkat tests: EBADF tests.
5957         * tests/test-linkat.c (main): Add tests for EBADF.
5958
5959         Tests for module 'faccessat'.
5960         * modules/faccessat-tests: New file.
5961         * tests/test-faccessat.c: New file.
5962
5963         fdopendir tests: EBADF tests.
5964         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5965
5966         openat tests: EBADF tests.
5967         * tests/test-fchownat.c (main): Add tests for EBADF.
5968         * tests/test-fstatat.c (main): Likewise.
5969         * tests/test-mkdirat.c (main): Likewise.
5970         * tests/test-openat.c (main): Likewise.
5971         * tests/test-unlinkat.c (main): Likewise.
5972         * tests/test-fchmodat.c: New file.
5973         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5974         (Makefile.am): Also run 'test-fchmodat'.
5975
5976 2011-09-20  Bruno Haible  <bruno@clisp.org>
5977
5978         utimens, futimens, fdutimensat tests: EBADF tests.
5979         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5980
5981         Tests for function fstat().
5982         * modules/fstat-tests: New file.
5983         * tests/test-fstat.c: New file.
5984         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5985
5986 2011-09-20  Bruno Haible  <bruno@clisp.org>
5987
5988         test-ttyname_r tests: EBADF tests.
5989         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5990
5991         Tests for module 'isatty'.
5992         * modules/isatty-tests: New file.
5993         * tests/test-isatty.c: New file.
5994
5995         Tests for module 'write'.
5996         * modules/write-tests: New file.
5997         * tests/test-write.c: New file.
5998
5999         Tests for module 'read'.
6000         * modules/read-tests: New file.
6001         * tests/test-read.c: New file.
6002
6003         pwrite tests: EBADF tests.
6004         * tests/test-pwrite.c (main): Add tests for EBADF.
6005
6006         pread tests: EBADF tests.
6007         * tests/test-pread.c (main): Add tests for EBADF.
6008
6009         lseek tests: EBADF tests.
6010         * tests/test-lseek.c (main): Add more tests for EBADF.
6011
6012         Tests for module 'ftruncate'.
6013         * modules/ftruncate-tests: New file.
6014         * tests/test-ftruncate.sh: New file.
6015         * tests/test-ftruncate.c: New file.
6016
6017         fsync tests: EBADF tests.
6018         * tests/test-fsync.c (main): Add more tests for EBADF.
6019
6020         fdatasync tests: EBADF tests.
6021         * tests/test-fdatasync.c (main): Add more tests for EBADF.
6022
6023         Tests for module 'fchown'.
6024         * modules/fchown-tests: New file.
6025         * tests/test-fchown.c: New file.
6026
6027         Tests for module 'fchmod'.
6028         * modules/fchmod-tests: New file.
6029         * tests/test-fchmod.c: New file.
6030
6031         fchdir tests: EBADF tests.
6032         * tests/test-fchdir.c (main): Add more tests for EBADF.
6033
6034         dup2 tests: EBADF tests.
6035         * tests/test-dup2.c (main): Add more tests for EBADF.
6036
6037         Tests for module 'dup'.
6038         * modules/dup-tests: New file.
6039         * tests/test-dup.c: New file.
6040
6041         Tests for module 'close'.
6042         * modules/close-tests: New file.
6043         * tests/test-close.c: New file.
6044
6045 2011-09-20  Bruno Haible  <bruno@clisp.org>
6046
6047         Tests for module 'shutdown'.
6048         * modules/shutdown-tests: New file.
6049         * tests/test-shutdown.c: New file.
6050
6051         Tests for module 'setsockopt'.
6052         * modules/setsockopt-tests: New file.
6053         * tests/test-setsockopt.c: New file.
6054
6055         Tests for module 'sendto'.
6056         * modules/sendto-tests: New file.
6057         * tests/test-sendto.c: New file.
6058
6059         Tests for module 'send'.
6060         * modules/send-tests: New file.
6061         * tests/test-send.c: New file.
6062
6063         Tests for module 'recvfrom'.
6064         * modules/recvfrom-tests: New file.
6065         * tests/test-recvfrom.c: New file.
6066
6067         Tests for module 'recv'.
6068         * modules/recv-tests: New file.
6069         * tests/test-recv.c: New file.
6070
6071         Tests for module 'listen'.
6072         * modules/listen-tests: New file.
6073         * tests/test-listen.c: New file.
6074
6075         Tests for module 'getsockopt'.
6076         * modules/getsockopt-tests: New file.
6077         * tests/test-getsockopt.c: New file.
6078
6079         Tests for module 'getsockname'.
6080         * modules/getsockname-tests: New file.
6081         * tests/test-getsockname.c: New file.
6082
6083         Tests for module 'getpeername'.
6084         * modules/getpeername-tests: New file.
6085         * tests/test-getpeername.c: New file.
6086
6087         Tests for module 'connect'.
6088         * modules/connect-tests: New file.
6089         * tests/test-connect.c: New file.
6090
6091         Tests for module 'bind'.
6092         * modules/bind-tests: New file.
6093         * tests/test-bind.c: New file.
6094
6095         accept4 tests: Fix for native Windows.
6096         * tests/test-accept4.c: Include sockets.h.
6097         (main): Invoke gl_sockets_startup.
6098         * modules/accept4-tests (Depends-on): Add sockets.
6099
6100         accept tests: Fix for native Windows.
6101         * tests/test-accept.c: Include sockets.h.
6102         (main): Invoke gl_sockets_startup.
6103         * modules/accept-tests (Depends-on): Add sockets.
6104
6105 2011-09-19  Bruno Haible  <bruno@clisp.org>
6106
6107         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
6108         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
6109         do...while(0).
6110         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
6111         Suggested by Paul Eggert.
6112
6113 2011-09-19  Bruno Haible  <bruno@clisp.org>
6114
6115         sched: Ensure pid_t is defined.
6116         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
6117         not define pid_t.
6118         * lib/sched.in.h: Include <sys/types.h>.
6119         * doc/posix-headers/sched.texi: Mention the pid_t problem.
6120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6121
6122 2011-09-19  Bruno Haible  <bruno@clisp.org>
6123
6124         msvc-inval: Ensure the entire expansion is a single statement.
6125         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
6126         of braces.
6127
6128 2011-09-19  Jim Meyering  <meyering@redhat.com>
6129
6130         tests: use printf, not echo in init.sh's warn_ function
6131         * tests/init.sh (warn_): Use printf, not echo.  The latter would
6132         misbehave when given strings containing a backslash or starting
6133         with e.g., -n.  James Youngman suggested setting IFS.
6134
6135 2011-09-19  Eric Blake  <eblake@redhat.com>
6136
6137         futimens: enhance test
6138         * tests/test-futimens.h (test_futimens): Also check for EBADF on
6139         closed non-negative fd.
6140
6141         date: accept 'hence' as opposite of 'ago'
6142         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
6143         * tests/test-parse-datetime.c (main): Enhance test.
6144         Suggested by Jesse Wilson.
6145
6146 2011-09-19  Jim Meyering  <meyering@redhat.com>
6147
6148         getcwd: don't fail in a deep directory on a system without openat
6149         Before this change, getcwd would fail when called from a directory
6150         of depth PATH_MAX / 3 or greater.  That was due to the fact that
6151         the non-openat implementation used "..", "../..", "../../..", etc.
6152         to access ancestor directories.  With too many, that string would
6153         be longer than PATH_MAX.
6154         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
6155         using gnulib's openat replacement.
6156         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
6157         we're using the replacement function.
6158
6159 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
6160
6161         maint.mk: avoid warnings from perl about missing files
6162         * top/maint.mk (def_sym_regex): Ignore files listed in
6163         $(gl_other_headers_) that do not exist, say because a project
6164         does not use a corresponding module.
6165
6166 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6167
6168         stat: use pathmax.h only if needed
6169         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6170         This is better for Emacs, which does not have a mingw port and
6171         therefore can avoid the pathmax module.
6172
6173         utimens: remove dependency on dup2
6174         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6175         to work around the Linux kernel bug.
6176         * modules/utimens (Depends-on): Remove dup2.
6177
6178 2011-09-18  Bruno Haible  <bruno@clisp.org>
6179
6180         inet_ntop, inet_pton: Look for it also in libresolv.
6181         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6182         libnsl, search for it in libresolv.
6183         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6184         Needed on Solaris 7.
6185
6186 2011-09-18  Bruno Haible  <bruno@clisp.org>
6187
6188         accept, accept4 tests: Avoid link error on Solaris.
6189         * modules/accept-tests (Makefile.am): Link test-accept against
6190         $(LIBSOCKET).
6191         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6192         $(LIBSOCKET).
6193
6194         accept4: Avoid link error on Solaris.
6195         * modules/accept4 (Link): New section.
6196
6197         socket functions: Avoid link errors on Solaris.
6198         * modules/accept (Depends-on): Add socketlib.
6199         (Link): New section.
6200         * modules/bind (Depends-on): Add socketlib.
6201         (Link): New section.
6202         * modules/connect (Depends-on): Add socketlib.
6203         (Link): New section.
6204         * modules/getpeername (Depends-on): Add socketlib.
6205         (Link): New section.
6206         * modules/getsockname (Depends-on): Add socketlib.
6207         (Link): New section.
6208         * modules/getsockopt (Depends-on): Add socketlib.
6209         (Link): New section.
6210         * modules/listen (Depends-on): Add socketlib.
6211         (Link): New section.
6212         * modules/recv (Depends-on): Add socketlib.
6213         (Link): New section.
6214         * modules/recvfrom (Depends-on): Add socketlib.
6215         (Link): New section.
6216         * modules/send (Depends-on): Add socketlib.
6217         (Link): New section.
6218         * modules/sendto (Depends-on): Add socketlib.
6219         (Link): New section.
6220         * modules/setsockopt (Depends-on): Add socketlib.
6221         (Link): New section.
6222         * modules/shutdown (Depends-on): Add socketlib.
6223         (Link): New section.
6224         * modules/socket (Depends-on): Add socketlib.
6225         (Link): New section.
6226
6227 2011-09-18  Bruno Haible  <bruno@clisp.org>
6228
6229         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6230         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6231         than 5 seconds.
6232         * modules/ptsname-tests (configure.ac): Test for alarm.
6233
6234 2011-09-18  Bruno Haible  <bruno@clisp.org>
6235
6236         posix_spawn_file_actions_add*: Fix module dependencies.
6237         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6238         posix_spawn_file_actions_init.
6239         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6240         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6241
6242 2011-09-18  Bruno Haible  <bruno@clisp.org>
6243
6244         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6245         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6246         * tests/test-renameat.c (main): Likewise.
6247
6248 2011-09-18  Bruno Haible  <bruno@clisp.org>
6249
6250         Tests for module 'accept4'.
6251         * modules/accept4-tests: New file.
6252         * tests/test-accept4.c: New file.
6253
6254 2011-09-18  Bruno Haible  <bruno@clisp.org>
6255
6256         Tests for module 'accept'.
6257         * modules/accept-tests: New file.
6258         * tests/test-accept.c: New file.
6259
6260 2011-09-18  Bruno Haible  <bruno@clisp.org>
6261
6262         dup2: Support for MSVC.
6263         * lib/dup2.c: Include msvc-inval.h.
6264         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6265         _get_osfhandle calls.
6266         * modules/dup2 (Depends-on): Add msvc-inval.
6267         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6268
6269         New module 'msvc-inval'.
6270         * lib/msvc-inval.h: New file.
6271         * lib/msvc-inval.c: New file.
6272         * m4/msvc-inval.m4: New file.
6273         * modules/msvc-inval: New file.
6274
6275 2011-09-17  Bruno Haible  <bruno@clisp.org>
6276
6277         Tests for module 'pclose'.
6278         * modules/pclose-tests: New file.
6279
6280         New module 'pclose'.
6281         * lib/stdio.in.h (pclose): New declaration.
6282         * lib/pclose.c: New file.
6283         * m4/pclose.m4: New file.
6284         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6285         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6286         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6287         * modules/pclose: New file.
6288         * modules/popen-tests (Depends-on): Add pclose.
6289         * modules/popen-safer-tests (Depends-on): Likewise.
6290         * doc/posix-functions/pclose.texi: Mention the new module.
6291
6292 2011-09-17  Bruno Haible  <bruno@clisp.org>
6293
6294         popen: Support for MSVC.
6295         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6296         * lib/popen.c (popen): Provide alternate definition for native Windows.
6297         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6299         * modules/popen (Depends-on, configure.ac): Update condition.
6300         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6301         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6302         fixed.
6303
6304 2011-09-17  Bruno Haible  <bruno@clisp.org>
6305
6306         isnanl, isnand, isnanf: Work around MSVC bug.
6307         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6308
6309 2011-09-17  Bruno Haible  <bruno@clisp.org>
6310
6311         sys_socket tests: Fix recent mistake.
6312         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6313
6314 2011-09-17  Bruno Haible  <bruno@clisp.org>
6315
6316         putenv: Support for MSVC.
6317         * modules/putenv (Depends-on): Add environ.
6318         * lib/putenv.c (environ): Disable declaration.
6319         * lib/unistd.in.h: Update comment.
6320
6321 2011-09-17  Bruno Haible  <bruno@clisp.org>
6322
6323         math: Avoid macro redefinition warnings on MSVC.
6324         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6325         Undefine before redefining.
6326
6327 2011-09-17  Bruno Haible  <bruno@clisp.org>
6328
6329         doc: Mention functions which are declared as macros.
6330         * doc/posix-functions/*[fl].texi: Mention that some functions are
6331         defined as macros with arguments only.
6332
6333 2011-09-17  Bruno Haible  <bruno@clisp.org>
6334
6335         Add dependencies to new dirent related modules.
6336         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6337         * modules/fts (Depends-on): Likewise.
6338         * modules/glob (Depends-on): Likewise.
6339         * modules/savedir (Depends-on): Likewise.
6340         * modules/scandir (Depends-on): Likewise.
6341         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6342         * modules/fdopendir (Depends-on): Add opendir.
6343
6344 2011-09-17  Bruno Haible  <bruno@clisp.org>
6345
6346         inet_pton: Support for MSVC on Windows Vista or newer.
6347         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6348         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6349         HAVE_DECL_INET_PTON is defined.
6350         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6351         On platforms with <winsock2.h>, test whether inet_pton is declared in
6352         <ws2tcpip.h>. If so, arrange to replace it.
6353         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6354         REPLACE_INET_PTON.
6355         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6356         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6357         (Depends-on, configure.ac): Update condition.
6358         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6359
6360 2011-09-17  Bruno Haible  <bruno@clisp.org>
6361
6362         inet_ntop: Support for MSVC on Windows Vista or newer.
6363         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6364         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6365         HAVE_DECL_INET_NTOP is defined.
6366         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6367         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6368         <ws2tcpip.h>. If so, arrange to replace it.
6369         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6370         REPLACE_INET_NTOP.
6371         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6372         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6373         (Depends-on, configure.ac): Update condition.
6374         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6375
6376 2011-09-16  Eric Blake  <eblake@redhat.com>
6377
6378         test-fsync: yet another enhancement
6379         * tests/test-fsync.c (main): Also test behavior on read-only text
6380         file.
6381
6382 2011-09-16  Bruno Haible  <bruno@clisp.org>
6383
6384         Enhance fsync, fdatasync tests.
6385         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6386         * tests/test-fdatasync.c (main): Likewise.
6387
6388 2011-09-16  Bruno Haible  <bruno@clisp.org>
6389
6390         Support for MSVC compiler: Ensure mode_t gets defined.
6391         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6392         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6393         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6394         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6395         * tests/test-fcntl-h.c: Check that mode_t is defined.
6396         * tests/test-sys_stat.c: Likewise.
6397         * tests/test-sys_types.c: Likewise.
6398         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6399         * doc/posix-headers/sys_stat.texi: Likewise.
6400         * doc/posix-headers/sys_types.texi: Likewise.
6401
6402 2011-09-16  Bruno Haible  <bruno@clisp.org>
6403
6404         sys_stat: Support for MSVC.
6405         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6406         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6407         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6408         MSVC.
6409
6410 2011-09-16  Bruno Haible  <bruno@clisp.org>
6411
6412         Support for MSVC compiler: Ensure off_t gets defined.
6413         * lib/unistd.in.h: Include <sys/types.h>.
6414         * tests/test-fcntl-h.c: Check that off_t is defined.
6415         * tests/test-sys_stat.c: Likewise.
6416         * tests/test-sys_types.c: Likewise.
6417
6418 2011-09-16  Eric Blake  <eblake@redhat.com>
6419
6420         fdatasync: port to Solaris
6421         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6422         * modules/fdatasync (Link): Document it.
6423         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6424
6425         fdatasync: port to MacOS X 10.7
6426         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6427         declared.
6428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6429         * modules/unistd (Makefile.am): Substitute it.
6430         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6431         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6432
6433         fdatasync: minor improvements
6434         * modules/fdatasync (Depends-on): Add condition for fsync.
6435         * lib/fdatasync.c (fdatasync): Add comment.
6436         * tests/test-unistd-c++.cc: Test fdatasync.
6437
6438         unistd: update refs to newer POSIX
6439         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6440         Suggested by Bruno Haible.
6441
6442         fdatasync: new module
6443         * modules/fsync (Description): Document difference to fdatasync.
6444         * modules/fdatasync: New module.
6445         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6446         * lib/fdatasync.c (fdatasync): Likewise.
6447         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6448         defaults.
6449         * modules/unistd (Makefile.am): Set witnesses.
6450         * lib/unistd.in.h (fdatasync): Declare.
6451         * MODULES.html.sh: Document it.
6452         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6453         * modules/fdatasync-tests: New test.
6454         * tests/test-fdatasync.c: Likewise.
6455
6456 2011-09-16  Eric Blake  <eblake@redhat.com>
6457
6458         test-fsync: enhance tests
6459         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6460         * tests/test-fsync.c (main): Enhance test.
6461
6462 2011-09-15  Bruno Haible  <bruno@clisp.org>
6463
6464         Support for MSVC compiler: Ensure ssize_t gets defined.
6465         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6466         * doc/posix-headers/stdio.texi: Likewise.
6467         * modules/stdio (Depends-on): Add ssize_t.
6468         * modules/sys_socket (Depends-on): Likewise.
6469         * modules/sys_types (Depends-on): Likewise.
6470         * modules/sys_uio (Depends-on): Likewise.
6471         * modules/unistd (Depends-on): Likewise.
6472         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6473         * tests/test-sys_types.c: Check that ssize_t is defined.
6474
6475 2011-09-14  Bruno Haible  <bruno@clisp.org>
6476
6477         Avoid using #, the m4 comment starter character, near brackets.
6478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6479         delimiter character in sed expressions.
6480         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6481         Suggested by Eric Blake.
6482
6483         Properly quote AC_CHECK_DECLS' 4th argument.
6484         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6485         argument.
6486         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6487         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6488         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6489         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6490         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6491         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6492         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6493         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6494         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6495         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6496         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6497         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6498         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6499         * m4/isinf.m4 (gl_ISINF): Likewise.
6500         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6501         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6502         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6503         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6504         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6505         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6506         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6507         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6508         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6509         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6510         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6511         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6512         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6513         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6514         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6515         Reported by Eric Blake.
6516
6517         Properly quote AC_CHECK_DECL's 4th argument.
6518         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6519         argument.
6520         * m4/argp.m4 (gl_ARGP): Likewise.
6521         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6522         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6523         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6524         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6525         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6526         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6527         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6528         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6529         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6530         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6531         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6532         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6533         Reported by Eric Blake.
6534
6535 2011-09-14  Eric Blake  <eblake@redhat.com>
6536
6537         opendir: avoid compile warning
6538         * lib/opendir.c (includes): Always include errno.h.
6539         Reported by Tatsuro MATSUOKA.
6540
6541 2011-09-14  Jim Meyering  <meyering@redhat.com>
6542
6543         maint.mk: sc_tight_scope: propagate failure from sub-make
6544         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6545         Reported by Martin von Gagern.
6546
6547 2011-09-13  Bruno Haible  <bruno@clisp.org>
6548
6549         tempname: Support for MSVC.
6550         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6551         MSVC.
6552         * modules/tempname (Depends-on): Add fcntl-h.
6553
6554 2011-09-13  Bruno Haible  <bruno@clisp.org>
6555
6556         sys_time: Support for MSVC.
6557         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6558         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6559         include <winsock2.h>.
6560         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6561         function declarations that collide with POSIX.
6562         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6563         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6564
6565 2011-09-13  Bruno Haible  <bruno@clisp.org>
6566
6567         stat: Support for MSVC.
6568         * lib/stat.c: Include pathmax.h.
6569         * modules/stat (Depends-on): Add pathmax.
6570
6571         pathmax: Support for native Windows.
6572         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6573
6574 2011-09-12  Bruno Haible  <bruno@clisp.org>
6575
6576         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6577         * lib/dirent.in.h (struct dirent): New type.
6578         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6579         DT_WHT): New macros.
6580         (DIR): New type.
6581         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6582         (readdir, rewinddir): New declarations.
6583         * lib/dirent-private.h: New file.
6584         * lib/opendir.c: New file.
6585         * lib/readdir.c: New file.
6586         * lib/rewinddir.c: New file.
6587         * lib/closedir.c: New file.
6588         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6589         * m4/opendir.m4: New file.
6590         * m4/readdir.m4: New file.
6591         * m4/rewinddir.m4: New file.
6592         * m4/closedir.m4: New file.
6593         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6594         REPLACE_CLOSEDIR here.
6595         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6596         readdir, rewinddir are declared.
6597         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6598         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6599         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6600         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6601         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6602         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6603         * modules/opendir: New file.
6604         * modules/readdir: New file.
6605         * modules/rewinddir: New file.
6606         * modules/closedir: New file.
6607         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6608         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6609         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6610         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6611         * NEWS: Mention the 'fchdir' change.
6612
6613 2011-09-11  Bruno Haible  <bruno@clisp.org>
6614
6615         asm-underscore.m4: Support for MSVC.
6616         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6617         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6618
6619 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6620
6621         Doc about crypt functions.
6622         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6623         needing for _GNU_SOURCE to get crypt.
6624         * doc/posix-functions/encrypt.texi: Likewise.
6625         * doc/posix-functions/setkey.texi: Likewise.
6626
6627 2011-09-11  Bruno Haible  <bruno@clisp.org>
6628
6629         doc: Update regarding MSVC 9.
6630         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6631         tested".
6632         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6633         * doc/posix-headers/*.texi: Likewise.
6634         * doc/pastposix-functions/*.texi: Likewise.
6635         * doc/glibc-functions/*.texi: Likewise.
6636         * doc/glibc-headers/*.texi: Likewise.
6637
6638 2011-09-11  Bruno Haible  <bruno@clisp.org>
6639
6640         unistd et al.: Don't assume <unistd.h> exists.
6641         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6642         does not exist.
6643         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6644         exist. But include <stdlib.h>.
6645         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6646         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6647         symlink() does not exist.
6648         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6649         include <io.h> instead.
6650         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6651         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6652         include <direct.h> instead.
6653         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6654         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6655         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6656         <io.h> instead.
6657         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6658         correctly if the system does not have hard links.
6659         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6660         <direct.h> instead.
6661         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6662         it when looking for function declarations.
6663         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6664         <direct.h> and <io.h> instead.
6665         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6666
6667 2011-09-11  Bruno Haible  <bruno@clisp.org>
6668
6669         strcase: Support for MSVC.
6670         * modules/strcase (Status, Notice): Remove obsoletion mark.
6671         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6672         * doc/posix-functions/strncasecmp.texi: Likewise.
6673
6674         strings: Don't assume <strings.h> exists.
6675         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6676         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6677         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6678         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6679
6680 2011-09-11  Bruno Haible  <bruno@clisp.org>
6681
6682         dirent: Don't assume <dirent.h> exists.
6683         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6684         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6685         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6686         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6687
6688 2011-09-11  Bruno Haible  <bruno@clisp.org>
6689
6690         Fix wint_t on MSVC.
6691         * lib/wchar.in.h (wint_t): On MSVC, override it.
6692         * lib/wctype.in.h (wint_t): Likewise.
6693         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6694         MSVC.
6695         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6696         * doc/posix-headers/wctype.texi: Likewise.
6697
6698 2011-09-11  Bruno Haible  <bruno@clisp.org>
6699
6700         sys_types: Fix typo.
6701         * lib/sys_types.in.h: Fix typo in comment.
6702         Reported by Paul Eggert.
6703
6704         Support for MSVC compiler: Ensure size_t gets defined.
6705         * modules/strings (Depends-on): Add 'sys_types'.
6706         * modules/sys_uio (Depends-on): Likewise.
6707         * lib/sys_uio.in.h: Update comment.
6708
6709         C++ tests for module 'sys_types'.
6710         * modules/sys_types-c++-tests: New file.
6711         * tests/test-sys_types-c++.cc: New file.
6712
6713         Tests for module 'sys_types'.
6714         * modules/sys_types-tests: New file.
6715         * tests/test-sys_types.c: New file.
6716
6717         New module 'sys_types'.
6718         * lib/sys_types.in.h: New file.
6719         * m4/sys_types_h.m4: New file.
6720         * modules/sys_types: New file.
6721         * doc/posix-headers/sys_types.texi: Mention the new module and the
6722         size_t problem on MSVC 9.
6723
6724 2011-09-11  Bruno Haible  <bruno@clisp.org>
6725
6726         Support for MSVC compiler: Avoid division by a literal 0.
6727         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6728         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6729         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6730         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6731         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6732         * tests/infinity.h: New file.
6733         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6734         on MSVC.
6735         * tests/test-ceilf1.c: Include infinity.h.
6736         (main): Use Infinityf.
6737         * tests/test-ceil1.c: Include infinity.h.
6738         (main): Use Infinityd.
6739         * tests/test-ceill.c: Include infinity.h.
6740         (main): Use Infinityl.
6741         * tests/test-dprintf-posix.c: Include infinity.h.
6742         (test_function): Use Infinityd.
6743         * tests/test-floorf1.c: Include infinity.h.
6744         (main): Use Infinityf.
6745         * tests/test-floor1.c: Include infinity.h.
6746         (main): Use Infinityd.
6747         * tests/test-floorl.c: Include infinity.h.
6748         (main): Use Infinityl.
6749         * tests/test-fprintf-posix.c: Include infinity.h.
6750         (test_function): Use Infinityd.
6751         * tests/test-frexp.c: Include infinity.h.
6752         (main): Use Infinityd.
6753         * tests/test-frexpl.c: Include infinity.h.
6754         (main): Use Infinityl.
6755         * tests/test-isfinite.c: Include infinity.h.
6756         (test_isfinitef): Use Infinityf.
6757         (test_isfinited): Use Infinityd.
6758         (test_isfinitel): Use Infinityl.
6759         * tests/test-isinf.c: Include infinity.h.
6760         (test_isinff): Use Infinityf.
6761         (test_isinfd): Use Infinityd.
6762         (test_isinfl): Use Infinityl.
6763         * tests/test-isnan.c: Include infinity.h.
6764         (test_float): Use Infinityf.
6765         (test_double): Use Infinityd.
6766         (test_long_double): Use Infinityl.
6767         * tests/test-isnanf.h: Include infinity.h.
6768         (main): Use Infinityf.
6769         * tests/test-isnand.h: Include infinity.h.
6770         (main): Use Infinityd.
6771         * tests/test-isnanl.h: Include infinity.h.
6772         (main): Use Infinityl.
6773         * tests/test-ldexpl.c: Include infinity.h.
6774         (main): Use Infinityl.
6775         * tests/test-printf-posix.h: Include infinity.h.
6776         (test_function): Use Infinityd.
6777         * tests/test-roundf1.c: Include infinity.h.
6778         (main): Use Infinityf.
6779         * tests/test-round1.c: Include infinity.h.
6780         (main): Use Infinityd.
6781         * tests/test-roundl.c: Include infinity.h.
6782         (main): Use Infinityl.
6783         * tests/test-signbit.c: Include infinity.h.
6784         (test_signbitf): Use Infinityf.
6785         (test_signbitd): Use Infinityd.
6786         (test_signbitl): Use Infinityl.
6787         * tests/test-snprintf-posix.h: Include infinity.h.
6788         (test_function): Use Infinityd, Infinityl.
6789         * tests/test-sprintf-posix.h: Include infinity.h.
6790         (test_function): Use Infinityd, Infinityl.
6791         * tests/test-truncf1.c: Include infinity.h.
6792         (main): Use Infinityf.
6793         * tests/test-trunc1.c: Include infinity.h.
6794         (main): Use Infinityd.
6795         * tests/test-truncl.c: Include infinity.h.
6796         (main): Use Infinityl.
6797         * tests/test-vasnprintf-posix.c: Include infinity.h.
6798         (test_function): Use Infinityd, Infinityl.
6799         * tests/test-vasprintf-posix.c: Include infinity.h.
6800         (test_function): Use Infinityd, Infinityl.
6801         * modules/ceilf-tests (Files): Add tests/infinity.h.
6802         * modules/ceil-tests (Files): Likewise.
6803         * modules/ceill-tests (Files): Likewise.
6804         * modules/dprintf-posix-tests (Files): Likewise.
6805         * modules/floorf-tests (Files): Likewise.
6806         * modules/floor-tests (Files): Likewise.
6807         * modules/floorl-tests (Files): Likewise.
6808         * modules/fprintf-posix-tests (Files): Likewise.
6809         * modules/frexp-tests (Files): Likewise.
6810         * modules/frexp-nolibm-tests (Files): Likewise.
6811         * modules/frexpl-tests (Files): Likewise.
6812         * modules/frexpl-nolibm-tests (Files): Likewise.
6813         * modules/isfinite-tests (Files): Likewise.
6814         * modules/isinf-tests (Files): Likewise.
6815         * modules/isnan-tests (Files): Likewise.
6816         * modules/isnanf-tests (Files): Likewise.
6817         * modules/isnanf-nolibm-tests (Files): Likewise.
6818         * modules/isnand-tests (Files): Likewise.
6819         * modules/isnand-nolibm-tests (Files): Likewise.
6820         * modules/isnanl-tests (Files): Likewise.
6821         * modules/isnanl-nolibm-tests (Files): Likewise.
6822         * modules/ldexpl-tests (Files): Likewise.
6823         * modules/printf-posix-tests (Files): Likewise.
6824         * modules/roundf-tests (Files): Likewise.
6825         * modules/round-tests (Files): Likewise.
6826         * modules/roundl-tests (Files): Likewise.
6827         * modules/signbit-tests (Files): Likewise.
6828         * modules/snprintf-posix-tests (Files): Likewise.
6829         * modules/sprintf-posix-tests (Files): Likewise.
6830         * modules/truncf-tests (Files): Likewise.
6831         * modules/trunc-tests (Files): Likewise.
6832         * modules/truncl-tests (Files): Likewise.
6833         * modules/vasnprintf-posix-tests (Files): Likewise.
6834         * modules/vasprintf-posix-tests (Files): Likewise.
6835         * modules/vdprintf-posix-tests (Files): Likewise.
6836         * modules/vfprintf-posix-tests (Files): Likewise.
6837         * modules/vprintf-posix-tests (Files): Likewise.
6838         * modules/vsnprintf-posix-tests (Files): Likewise.
6839         * modules/vsprintf-posix-tests (Files): Likewise.
6840         * modules/xprintf-posix-tests (Files): Likewise.
6841
6842 2011-09-11  Bruno Haible  <bruno@clisp.org>
6843
6844         Ensure pid_t gets defined.
6845         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6846         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6847         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6848         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6849         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6850         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6851         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6852         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6853         * tests/test-fcntl-h.c: Check that pid_t is defined.
6854         * tests/test-sched.c: Likewise.
6855         * tests/test-termios.c: Likewise.
6856         * tests/test-time.c: Likewise.
6857         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6858         * doc/posix-headers/signal.texi: Likewise.
6859         * doc/posix-headers/sys_types.texi: Likewise.
6860         * doc/posix-headers/time.texi: Likewise.
6861
6862 2011-09-11  Bruno Haible  <bruno@clisp.org>
6863
6864         acl: Fix compilation on Solaris 10 (older version).
6865         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6866         of ACE_EVERYONE.
6867         * lib/set-mode-acl.c (qset_acl): Likewise.
6868         Reported by Christian Jullien <eligis@orange.fr>.
6869
6870 2011-09-10  Bruno Haible  <bruno@clisp.org>
6871
6872         iconv, unsetenv: Add support for MSVC compiler.
6873         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6874         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6875
6876 2011-09-10  Bruno Haible  <bruno@clisp.org>
6877
6878         *printf: Add support for MSVC compiler.
6879         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6880         handles the exception caused by the %n directive. When cross-compiling,
6881         guess no on native Windows.
6882         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6883         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6884         emulate it through vsnprintf.
6885         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6886         * doc/posix-functions/dprintf.texi: Update documentation regarding
6887         MSVC 9.
6888         * doc/posix-functions/fprintf.texi: Likewise.
6889         * doc/posix-functions/printf.texi: Likewise.
6890         * doc/posix-functions/snprintf.texi: Likewise.
6891         * doc/posix-functions/sprintf.texi: Likewise.
6892         * doc/posix-functions/swprintf.texi: Likewise.
6893         * doc/posix-functions/vdprintf.texi: Likewise.
6894         * doc/posix-functions/vfprintf.texi: Likewise.
6895         * doc/posix-functions/vprintf.texi: Likewise.
6896         * doc/posix-functions/vsnprintf.texi: Likewise.
6897         * doc/posix-functions/vsprintf.texi: Likewise.
6898         * doc/glibc-functions/asprintf.texi: Likewise.
6899         * doc/glibc-functions/obstack_printf.texi: Likewise.
6900         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6901         * doc/glibc-functions/vasprintf.texi: Likewise.
6902
6903 2011-09-10  Bruno Haible  <bruno@clisp.org>
6904
6905         nocrash: Add support for native Windows.
6906         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6907
6908 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6909             Bruno Haible  <bruno@clisp.org>
6910
6911         absolute-header, include-next: Add support for MSVC compiler.
6912         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6913         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6914         directory separator in #line directives.
6915         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6916         recognize also backslash as directory separator in #line directives.
6917
6918 2011-09-08  Jim Meyering  <meyering@redhat.com>
6919
6920         maint.mk: mark the post-release commit log with "maint: " prefix
6921         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6922         one-line commit-log summary.
6923
6924 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6925             Bruno Haible  <bruno@clisp.org>
6926
6927         Doc about crypt functions.
6928         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6929         systems.
6930         * doc/posix-functions/encrypt.texi: Likewise.
6931         * doc/posix-functions/setkey.texi: Likewise.
6932
6933 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6934
6935         * lib/gc.h: Fix copyright header.
6936
6937 2011-09-07  Bruno Haible  <bruno@clisp.org>
6938
6939         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6940         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6941         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6942
6943 2011-09-07  Bruno Haible  <bruno@clisp.org>
6944
6945         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6946         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6947         * lib/freopen.c: Likewise.
6948         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6949         * lib/lstat.c: Likewise.
6950         * lib/stat.c: Likewise.
6951         * lib/open.c: Use different syntax for include of <fcntl.h>.
6952         * lib/openat.c: Include fcntl.h again, explicitly.
6953
6954 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6955
6956         parse-datetime: document the newly accepted format
6957         * doc/parse-datetime.texi (Combined date and time of day items):
6958         New section.
6959
6960 2011-09-06  Bruno Haible  <bruno@clisp.org>
6961
6962         acl: Fix a test failure on newer Solaris 10 with ZFS.
6963         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6964         ENOSYS as no ACL.
6965         Reported by Jim Meyering.
6966
6967 2011-09-06  Bruno Haible  <bruno@clisp.org>
6968
6969         acl: Update for AIX >= 5.3 with NFS.
6970         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6971         ENOSYS as no ACL.
6972
6973         acl: Fix a test failure on AIX >= 5.3 with NFS.
6974         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6975         as no ACL.
6976
6977 2011-09-06  Bruno Haible  <bruno@clisp.org>
6978
6979         acl: Fix a test failure on IRIX 6.5 with NFS.
6980         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6981         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6982         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6983         * lib/copy-acl.c (qcopy_acl): Likewise.
6984
6985 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6986
6987         openat: port to AIX 7.1 with large files
6988         AIX 7.1 does a "#define openat open64at" if large files are in use,
6989         so we can't simply #undef openat.  Use the orig_openat trick (similar
6990         to orig_open in lib/open.c) to work around the problem.  Problem
6991         reported by Kevin Brott for GNU tar, in the thread containing
6992         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6993         * lib/openat.c (__need_system_fcntl_h): Define first.
6994         Include <fcntl.h> and <sys/types.h> before undefining.
6995         (orig_openat) [HAVE_OPENAT]: New inline function.
6996         (openat) [HAVE_OPENAT]: Do not undef.
6997         (rpl_openat): Use orig_openat, not openat.
6998
6999 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
7000             Bruno Haible  <bruno@clisp.org>
7001
7002         acl: Avoid errors on NonStop Kernel.
7003         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
7004         ENOTSUP errors.
7005
7006 2011-09-05  Bruno Haible  <bruno@clisp.org>
7007
7008         acl: Clean up Solaris code.
7009         * lib/acl-internal.h: Remove no-op #if.
7010         * lib/file-has-acl.c: Likewise.
7011         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
7012         * lib/copy-acl.c (qcopy_acl): Likewise.
7013
7014 2011-09-05  Bruno Haible  <bruno@clisp.org>
7015
7016         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
7017         binaries built on the original Solaris 10.
7018         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
7019         trivial.
7020
7021 2011-09-05  Bruno Haible  <bruno@clisp.org>
7022
7023         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7024         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
7025         10.
7026         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
7027         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
7028         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
7029         instead of acl_get, facl_get, acl_set, facl_set.
7030
7031 2011-09-05  Bruno Haible  <bruno@clisp.org>
7032
7033         copy-file: Try unit tests on more file systems.
7034         * tests/test-copy-file-1.sh: New file.
7035         * tests/test-copy-file-2.sh: New file.
7036         * modules/copy-file-tests (Files): Add them.
7037         (Makefile.am): Add them to TESTS.
7038
7039         acl: Try unit tests on more file systems.
7040         * tests/test-file-has-acl-1.sh: New file.
7041         * tests/test-file-has-acl-2.sh: New file.
7042         * tests/test-set-mode-acl-1.sh: New file.
7043         * tests/test-set-mode-acl-2.sh: New file.
7044         * tests/test-copy-acl-1.sh: New file.
7045         * tests/test-copy-acl-2.sh: New file.
7046         * modules/acl-tests (Files): Add them.
7047         (Makefile.am): Add them to TESTS.
7048
7049 2011-09-04  Bruno Haible  <bruno@clisp.org>
7050
7051         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
7052         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
7053         10.
7054         (OLD_ALLOW, OLD_DENY): New macros.
7055         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
7056         ACE_ACCESS_ALLOWED_ACE_TYPE.
7057         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
7058         ACE_ACCESS_DENIED_ACE_TYPE.
7059         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
7060         (NEW_ACE_EXECUTE): Fix value.
7061         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
7062         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
7063         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
7064         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
7065         NEW_ACE_SYNCHRONIZE): New macros.
7066         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
7067         instead of acl_fromtext, acl_set, facl_set.
7068         Fixes a coreutils/tests/cp/perm failure.
7069
7070 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
7071
7072         openat: test for fstatat (..., 0) bug
7073         Further testing with tar suggests that fstatat (..., 0)
7074         does not work in general, on AIX 7.1; see
7075         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
7076         So, give up entirely on AIX 7.1's fstatat, and fall back on our
7077         replacement fstatat (which is what older AIX releases were using
7078         anyway).
7079         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
7080         use is now changed to orig_fstatat.  This was probably the right
7081         thing to do anyway.
7082         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
7083         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
7084         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
7085         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
7086         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
7087         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
7088         if the bug is found.
7089
7090         openat: test for fstatat (AT_FDCWD, ..., 0) bug
7091         This tests for another fstatat bug on AIX 7.1:
7092         fstatat (AT_FDCWD, ..., 0) does not work.  See
7093         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
7094         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
7095         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
7096         (rpl_fstatat): Adjust so that it works around either (or both)
7097         bugs if present.
7098         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
7099
7100 2011-09-03  Karl Berry  <karl@gnu.org>
7101
7102         * doc/regex.texi (Character Class Operators): Avoid literal ":"
7103         in index entries.
7104
7105 2011-09-02  Bruno Haible  <bruno@clisp.org>
7106
7107         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
7108         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
7109         values of AR, ARFLAGS, RANLIB.
7110         Reported by John W. Eaton <jwe@gnu.org> for Octave.
7111
7112 2011-09-02  Bruno Haible  <bruno@clisp.org>
7113
7114         Find 'ar' program that fits with --host argument.
7115         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
7116
7117 2011-09-02  Bruno Haible  <bruno@clisp.org>
7118
7119         tests: init.sh: Support any non-GNU diff.
7120         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
7121         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
7122         Solaris 8.
7123
7124 2011-09-02  Bruno Haible  <bruno@clisp.org>
7125
7126         tests: init.sh: work also with any non-GNU diff that supports -u
7127         * tests/init.sh: Relax check for diff -u support.
7128         Rather than checking for GNU diff via --version, simply check
7129         for support for -u itself.  Useful at least on OpenBSD 4.9,
7130         AIX 7.1, IRIX 6.5, and Solaris 10.
7131
7132 2011-09-01  Bruno Haible  <bruno@clisp.org>
7133
7134         strtoimax, strtoumax: Document problem on HP-UX 11.
7135         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
7136         * doc/posix-functions/strtoumax.texi: Likewise.
7137
7138 2011-09-01  Bruno Haible  <bruno@clisp.org>
7139
7140         strtoumax: Avoid link error on OSF/1 with DTK cc.
7141         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
7142         defined as a function.
7143         * modules/strtoumax (Depends-on, configure.ac): Test only whether
7144         strtoumax is defined, not whether it is declared.
7145
7146 2011-09-01  Bruno Haible  <bruno@clisp.org>
7147
7148         strtoimax: Avoid link error on OSF/1 with DTK cc.
7149         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
7150         defined as a function.
7151         * modules/strtoimax (Depends-on, configure.ac): Test only whether
7152         strtoimax is defined, not whether it is declared.
7153
7154 2011-09-01  Bruno Haible  <bruno@clisp.org>
7155
7156         imaxdiv: Avoid link error on OSF/1 with DTK cc.
7157         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
7158         as a function.
7159         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
7160         whether it is declared.
7161
7162 2011-09-01  Bruno Haible  <bruno@clisp.org>
7163
7164         imaxabs: Avoid link error on OSF/1 with DTK cc.
7165         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7166         as a function.
7167         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7168         whether it is declared.
7169
7170 2011-09-01  Bruno Haible  <bruno@clisp.org>
7171
7172         Tests for module 'strtoumax'.
7173         * modules/strtoumax-tests: New file.
7174         * tests/test-strtoumax.c: New file.
7175
7176         Tests for module 'strtoimax'.
7177         * modules/strtoimax-tests: New file.
7178         * tests/test-strtoimax.c: New file.
7179
7180         Tests for module 'imaxdiv'.
7181         * modules/imaxdiv-tests: New file.
7182         * tests/test-imaxdiv.c: New file.
7183
7184         Tests for module 'imaxabs'.
7185         * modules/imaxabs-tests: New file.
7186         * tests/test-imaxabs.c: New file.
7187
7188 2011-09-01  Bruno Haible  <bruno@clisp.org>
7189
7190         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7191         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7192         pthread_create.
7193
7194 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7195
7196         openat: work around AIX 7.1 fstatat issue
7197         This should fix the problem that was not properly fixed
7198         in the previous change, dated 2011-08-30.
7199         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7200         __need_system_stat_h defined.
7201         (orig_fstatat) [HAVE_FSTATAT]: New function.
7202         (rpl_fstatat): Go back to the old way of doing things,
7203         except call orig_fstatat instead of fstatat.
7204         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7205         Remove unnecessary check whether fstatat fills in st_size etc.
7206
7207 2011-09-01  Bruno Haible  <bruno@clisp.org>
7208
7209         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7210         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7211         just include the system's header.
7212
7213 2011-08-31  Jim Meyering  <meyering@redhat.com>
7214
7215         tests: avoid spurious assertion failure in test-float.c on ppc64
7216         * tests/test-float.c (test_long_double): Comment out an assertion,
7217         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7218         with gcc-4.4.4.
7219
7220         maint: indent with spaces, not TABs
7221         I need to get in the habit of running gnulib's "make check".
7222         Both of these would have been caught.
7223         * m4/largefile.m4: Indent with spaces, not TABs.
7224         * lib/parse-datetime.y (iso_8601_time): Likewise.
7225         Spotted by Pádraig Brady.
7226
7227         test-parse-datetime.c: accommodate a relatively strict gcc warning
7228         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7229         to avoid a warning from gcc's -Werror=missing-declarations.
7230         Insert a few spaces-before-funcall-parenthesis.
7231
7232 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7233
7234         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7235         The parser now accepts ISO 8601 date-time strings with "T" as the
7236         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7237         with a space between the date and time strings.  Now it also parses
7238         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7239         variants like "2004-02-29T16:21:42.333-07:00"
7240         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7241         of day representation using the 'T' separator character.
7242         * doc/parse-datetime.texi (General date syntax): replace use of
7243         deprecated --iso-8601 option with --rfc-3339 in example of date
7244         command output formats that can be parsed.
7245         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7246         lib/parse-datetime.y.
7247         (gmt_offset): New function.
7248         (main): Add additional test cases to validate ISO8601 extended
7249         date and time of day parsing.
7250
7251 2011-08-31  Bruno Haible  <bruno@clisp.org>
7252
7253         freopen: Documentation.
7254         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7255         name.
7256         Reported by Claudio Bley <claudio.bley@gmail.com>.
7257
7258 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7259
7260         freopen: Don't crash if the filename argument is NULL.
7261         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7262         NULL.
7263
7264 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7265
7266         openat: work around AIX 7.1 fstatat bug
7267         Problem reported by Kevin Brott for GNU tar, in the thread containing
7268         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7269         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7270         FSTATAT_ST_SIZE_ETC_BROKEN.
7271         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7272         rpl_fstatat.
7273         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7274         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7275         AC_CHECK_FUNCS_ONCE for fstatat.
7276         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7277         fchmodat, mkdirat, openat and unlinkat.
7278
7279 2011-08-30  Bruno Haible  <bruno@clisp.org>
7280
7281         Avoid endless recursions if config.h includes some header files.
7282         * lib/fopen.c (__need_FILE): Define already before including config.h.
7283         * lib/freopen.c (__need_FILE): Likewise.
7284         * lib/open.c (__need_system_fcntl_h): Likewise.
7285         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7286         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7287         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7288
7289 2011-08-25  Karl Berry  <karl@gnu.org>
7290
7291         * config/srclist.txt (ylwrap): new try.
7292         * build-aux/ylwrap: new file.
7293
7294 2011-08-23  Bruno Haible  <bruno@clisp.org>
7295
7296         tmpdir: Use a good default directory on native Windows.
7297         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7298         (P_tmpdir): Default to _P_tmpdir on native Windows.
7299         (path_search): On native Windows, try the value returned by GetTempPath
7300         before trying P_tmpdir.
7301         * modules/tmpdir (Depends-on): Add pathmax.
7302         Suggested by John Darrington <john@darrington.wattle.id.au>.
7303
7304 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7305
7306         doc: fix typo in README-release
7307         * top/README-release: Capitalize first word of a sentence.
7308
7309 2011-08-19  Jim Meyering  <meyering@redhat.com>
7310
7311         fts: do not exhaust memory when processing million-entry directories
7312         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7313         directory would require about 256*N bytes of memory.  Thus, it was
7314         easy to construct a directory too large to be processed by any of
7315         those tools.  With this change, fts' maximum memory utilization is
7316         now limited to around 30MB.
7317         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7318         (fts_read): When we've processed the final entry (i.e., when
7319         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7320         using the parent entry to read any remaining entries.  Dispatch
7321         depending on what fts_build returns:
7322         - NULL+stop, aka failure: stop
7323         - NULL otherwise: move up in the dir hierarchy
7324         - non-NULL: handle this new entry
7325         (fts_build): Declare and use new local, continue_readdir.
7326         Prepare to be called from fts_read, when the entries
7327         from a partially-read directory have just been exhausted.
7328         In that case, we'll skip the opendir and instead use the parent's
7329         fts_dirp and derive dir_fd from that.
7330         Finally, in the readdir loop, if we read max_entries entries,
7331         exit the loop ensuring *not* to call closedir.  This is required
7332         so that fts_dirp can be reused on a subsequent call.
7333         Prompted by Ben England's report of memory exhaustion in find
7334         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7335
7336         maint: fts: move decl of `dp' down into while loop; split a long line
7337         * lib/fts.c (fts_build): No semantic change.
7338
7339         fts: add/use new struct member, fts_dirp
7340         We are about to use this to manage any directory with
7341         too many entries to read all of them into memory at once.
7342         To do that, we'll need to save the DIR* pointer in each
7343         affected FTSENT struct.
7344         * lib/fts_.h: Include <dirent.h>.
7345         (struct FTSENT) [fts_dirp]: New member.
7346         * lib/fts.c (closedir_and_clear): Define.
7347         Use it in place of closedir so that we are sure to
7348         clear the new fts_dirp member when done with it.
7349         (fts_alloc): Initialize the new member.
7350         (fts_lfree): Free, if needed.
7351
7352         maint: fts: give __opendir2 a new parameter and rename
7353         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7354         than surreptitiously using sole caller's "dir_fd".
7355         (fts_opendir): Rename from __opendir2.
7356
7357         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7358         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7359
7360         maint: fts.c: correct off-by-one indentation
7361         * lib/fts.c (fts_build): Correct indentation, change style
7362         of a couple of block comments, and bracing style.
7363
7364         maint: fts.c: move __opendir2 #define "up" out of function body
7365         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7366
7367         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7368         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7369         out for a long time and besides was useful only on BSD systems.
7370
7371 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7372
7373         regex: port to Stratus OpenVOS
7374         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7375         define to empty, rather than attempting nonportable optimizations.
7376         Problem reported by Paul Green in:
7377         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7378         and fix suggested by Eric Blake in:
7379         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7380
7381 2011-08-17  Eric Blake  <eblake@redhat.com>
7382
7383         getcwd: fix test failures on mingw
7384         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7385         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7386         test if long directory cannot be created, and allow mingw errno.
7387
7388         getcwd-lgpl: fix m4 to match relaxed test for BSD
7389         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7390         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7391         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7392         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7393         signature problem.
7394
7395         getcwd: fix compilation on mingw64
7396         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7397         getcwd.
7398         Reported by Marc-André Lureau.
7399
7400         pipe2: silence compiler warning
7401         * lib/pipe2.c (pipe2): Hide label if it is not used.
7402
7403 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7404
7405         relocatable-prog: fix link error
7406         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7407         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7408         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7409         into modules/relocatable-lib without noticing that
7410         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7411         also needs to build relocatable.c.
7412
7413 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7414
7415         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7416         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7417         shell code: it contained a 'break' that was not in a loop.
7418         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7419         via a shell-language loop; this may have been true in old Autoconf
7420         versions, but it's not true in Autoconf 2.68.  I found this bug
7421         when testing coreutils git on Solaris 8, whose shell complains
7422         about the syntax error.
7423
7424 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7425
7426         * lib/base64.c: Fix comment to reference RFC 4648.
7427         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7428         <gvtulder@gmail.com>.
7429
7430 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7431
7432         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7433
7434         po/Makefile.in.in: fix make -q problem
7435         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7436         rule, since there's no file named 'check-macro-version' and its
7437         use as a file breaks make -q.
7438         (all): Don't depend on check-macro-version.
7439         (CHECK_MACRO_VERSION): New macro.
7440         (stamp-po): Use it.
7441
7442         configmake: fix make -q problem
7443         * modules/configmake (configmake.h): Update configmake.h's time stamp
7444         even if the file does not change.  Otherwise, 'make -q' fails.
7445         Problem reported by Simon Josefsson in
7446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7447
7448 2011-08-11  Jim Meyering  <meyering@redhat.com>
7449
7450         git-version-gen: correct the advice in a comment
7451         * build-aux/git-version-gen: Correct comment.
7452         Don't recommend to list .tarball-version in .gitignore.
7453
7454 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7455
7456         base64: fix off-by-one buffer size bug
7457         Problem and (trivial) fix reported by Gijs van Tulder in
7458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7459         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7460         * tests/test-base64.c (main): Catch the bug.
7461
7462 2011-08-10  Eric Blake  <eblake@redhat.com>
7463
7464         closein: correct comments
7465         * lib/closein.c (close_stdin): Improve comments.
7466
7467 2011-08-09  Bruno Haible  <bruno@clisp.org>
7468
7469         More tests for 'fseeko'.
7470         * tests/test-fseeko3.c: New file, from Eric Blake.
7471         * tests/test-fseeko3.sh: New file.
7472         * modules/fseeko-tests (Files): Add them.
7473         (TESTS): Add test-fseeko3.sh.
7474         (check_PROGRAMS): Add test-fseeko3.
7475
7476 2011-08-09  Eric Blake  <eblake@redhat.com>
7477
7478         fseeko: remove unneeded hack
7479         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7480
7481         fseeko: fix bug on glibc
7482         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7483         Reported by John W. Eaton.
7484
7485 2011-08-08  Bruno Haible  <bruno@clisp.org>
7486
7487         unictype/base: Fix interoperability with preinstalled libunistring.
7488         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7489         Reported by Simon Josefsson.
7490
7491 2011-08-08  Bruno Haible  <bruno@clisp.org>
7492
7493         iswblank: Detect declaration correctly.
7494         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7495         AC_CHECK_DECLS invocation.
7496
7497 2011-08-08  Bruno Haible  <bruno@clisp.org>
7498
7499         tcgetsid: Detect declaration correctly.
7500         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7501         AC_CHECK_DECLS invocation.
7502         Reported by Simon Josefsson.
7503
7504 2011-08-08  Eric Blake  <eblake@redhat.com>
7505
7506         largefile: fix typo that regressed large file support
7507         * modules/largefile (configure.ac-early): Fix section name.
7508
7509 2011-08-06  Karl Berry  <karl@gnu.org>
7510
7511         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7512         a separate module.
7513
7514 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7515
7516         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7517         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7518         get prototype for free.
7519
7520 2011-08-04  Bruno Haible  <bruno@clisp.org>
7521
7522         Tests for module 'pathmax'.
7523         * modules/pathmax-tests: New file.
7524         * tests/test-pathmax.c: New file.
7525
7526         canonicalize-lgpl: Support larger filenames on the Hurd.
7527         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7528         Reported by Paul Eggert.
7529
7530         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7531         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7532         * lib/chdir-long.h: Include pathmax.h.
7533         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7534         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7535         (PATH_MAX): Remove code that is done by pathmax.h.
7536         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7537         * lib/tmpfile.c: Add a comment.
7538         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7539         * modules/chdir-long (Depends-on): Add pathmax.
7540         * modules/getcwd (Depends-on): Add pathmax.
7541         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7542         is not defined.
7543         * doc/posix-headers/limits.texi: Mention the pathmax module.
7544         * NEWS: Mention the change.
7545
7546 2011-08-02  Bruno Haible  <bruno@clisp.org>
7547
7548         pthread_sigmask: Actually use results of gl_THREADLIB.
7549         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7550         gl_THREADLIB, not gl_[]THREADLIB.
7551         Reported by Eric Blake.
7552
7553 2011-08-02  Jim Meyering  <meyering@redhat.com>
7554
7555         maint.mk: relax the default _gl_TS_function_match regexp
7556         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7557         space between function name and "(" in an "extern" declaration.
7558         That would fail to match a decl with no space there: extern void foo();
7559
7560 2011-07-31  Iain Nicol  <iain@thenicols.net>
7561
7562         git-version-gen: document that EXTRA_DIST must include .version
7563         * build-aux/git-version-gen: In the how-to-use comment, document
7564         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7565         will fail when run from an unpacked distribution tarball.
7566
7567 2011-08-01  Bruno Haible  <bruno@clisp.org>
7568
7569         wctype-h: Fix last change.
7570         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7571         REPLACE_TOWLOWER to 0.
7572         Reported by Sam Steingold <sds@gnu.org>.
7573
7574 2011-07-31  Bruno Haible  <bruno@clisp.org>
7575
7576         frexpl: Update autoconf test.
7577         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7578         according to changes of 2011-06-20.
7579
7580 2011-07-31  Bruno Haible  <bruno@clisp.org>
7581
7582         sys_utsname: Add support for Minix.
7583         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7584         <sys/utsname.h>.
7585         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7586         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7587
7588 2011-07-31  Bruno Haible  <bruno@clisp.org>
7589
7590         strings: Add support for Minix.
7591         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7592         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7593         * doc/posix-headers/strings.texi: Document the Minix problem.
7594
7595 2011-07-31  Bruno Haible  <bruno@clisp.org>
7596
7597         wctype-h: Add support for Minix.
7598         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7599         REPLACE_TOWLOWER.
7600         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7601         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7602         REPLACE_ISWCNTRL.
7603
7604 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7605
7606         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7607         This is a performance improvement for 64-bit hosts: it causes the
7608         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7609
7610 2011-07-31  Bruno Haible  <bruno@clisp.org>
7611
7612         stdioext: Add support for Minix.
7613         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7614         * lib/fpurge.c (fpurge): Likewise.
7615         * lib/freadahead.c (freadahead): Likewise.
7616         * lib/freadable.c (freadable): Likewise.
7617         * lib/freading.c (freading): Likewise.
7618         * lib/freadptr.c (freadptr): Likewise.
7619         * lib/freadseek.c (freadptrinc): Likewise.
7620         * lib/fseeko.c (rpl_fseeko): Likewise.
7621         * lib/fseterr.c (fseterr): Likewise.
7622         * lib/fwritable.c (fwritable): Likewise.
7623         * lib/fwriting.c (fwriting): Likewise.
7624         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7625         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7626
7627 2011-07-31  Bruno Haible  <bruno@clisp.org>
7628
7629         errno: Port to Minix.
7630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7631         ECONNABORTED are defined.
7632         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7633         GNULIB_defined_ECONNABORTED): New macros.
7634         * lib/strerror-override.h (strerror_override): Test also
7635         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7636         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7637         ECONNABORTED.
7638         * doc/posix-headers/errno.texi: Mention the Minix problem.
7639
7640 2011-07-31  Bruno Haible  <bruno@clisp.org>
7641
7642         Work around declaration collisions on Minix.
7643         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7644         defined, set REPLACE_MBSINIT.
7645         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7646         defined, set REPLACE_MBRTOWC.
7647         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7648         set REPLACE_MBRLEN.
7649         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7650         defined, set REPLACE_MBSRTOWCS.
7651         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7652         defined, set REPLACE_WCRTOMB.
7653         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7654         defined, set REPLACE_WCSRTOMBS.
7655
7656 2011-07-31  Bruno Haible  <bruno@clisp.org>
7657
7658         Add support for Minix with ACK compiler.
7659         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7660         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7661         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7662
7663 2011-07-31  Bruno Haible  <bruno@clisp.org>
7664
7665         Documentation about Minix.
7666         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7667         * doc/glibc-headers/*.texi: Likewise.
7668         * doc/posix-functions/*.texi: Likewise.
7669         * doc/glibc-functions/*.texi: Likewise.
7670
7671 2011-07-31  Bruno Haible  <bruno@clisp.org>
7672
7673         snippet/warn-on-use: Fix indentation.
7674         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7675
7676 2011-07-25  Jim Meyering  <meyering@redhat.com>
7677
7678         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7679         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7680         commands.
7681
7682 2011-07-27  Jim Meyering  <meyering@redhat.com>
7683
7684         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7685         * top/maint.mk (gl_extract_significant_defines_): Now that
7686         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7687         gnulib/lib/signal.in.h, and now that we recommend to
7688         define-if-undefined those two symbols in application code,
7689         we must filter them out of the "significant" list.
7690         This avoids a "make syntax-check" failure in coreutils.
7691
7692 2011-07-26  Eric Blake  <eblake@redhat.com>
7693
7694         warnings: add comments about previous patch
7695         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7696         * m4/include_next.m4: Likewise.
7697         * m4/warn-on-use.m4: Likewise.
7698         * m4/warnings.m4: Likewise, and simplify use.
7699         Suggested by Stefano Lattarini.
7700
7701         include-next, warnings: support older autoconf
7702         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7703         AS_VAR_PUSHDEF in a way that works with older autoconf.
7704         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7705         Reported by Daniel P. Berrange.
7706
7707 2011-07-25  Bruno Haible  <bruno@clisp.org>
7708
7709         fseek, ftell: Fix doc.
7710         * doc/posix-functions/fseek.texi: Reword statement about
7711         AC_SYS_LARGEFILE.
7712         * doc/posix-functions/ftell.texi: Likewise.
7713
7714 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7715             Bruno Haible  <bruno@clisp.org>
7716
7717         Add dependencies to the 'largefile' module.
7718         * modules/fopen (Depends-on): Add 'largefile'.
7719         * modules/freopen (Depends-on): Likewise.
7720         * modules/fseeko (Depends-on): Likewise.
7721         * modules/ftello (Depends-on): Likewise.
7722         * modules/glob (Depends-on): Likewise.
7723         * modules/lseek (Depends-on): Likewise.
7724         * modules/lstat (Depends-on): Likewise.
7725         * modules/mkostemp (Depends-on): Likewise.
7726         * modules/mkostemps (Depends-on): Likewise.
7727         * modules/mkstemp (Depends-on): Likewise.
7728         * modules/mkstemps (Depends-on): Likewise.
7729         * modules/open (Depends-on): Likewise.
7730         * modules/openat (Depends-on): Likewise.
7731         * modules/pread (Depends-on): Likewise.
7732         * modules/pwrite (Depends-on): Likewise.
7733         * modules/scandir (Depends-on): Likewise.
7734         * modules/stat (Depends-on): Likewise.
7735         * modules/tmpfile (Depends-on): Likewise.
7736         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7737         since the containing module now depends on the largefile module.
7738         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7739         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7740         off_t is fixed by gnulib.
7741         * doc/posix-functions/freopen.texi: Likewise.
7742         * doc/posix-functions/fseeko.texi: Likewise.
7743         * doc/posix-functions/fstatat.texi: Likewise.
7744         * doc/posix-functions/ftello.texi: Likewise.
7745         * doc/posix-functions/glob.texi: Likewise.
7746         * doc/posix-functions/lseek.texi: Likewise.
7747         * doc/posix-functions/lstat.texi: Likewise.
7748         * doc/posix-functions/mkstemp.texi: Likewise.
7749         * doc/posix-functions/open.texi: Likewise.
7750         * doc/posix-functions/openat.texi: Likewise.
7751         * doc/posix-functions/pread.texi: Likewise.
7752         * doc/posix-functions/pwrite.texi: Likewise.
7753         * doc/posix-functions/scandir.texi: Likewise.
7754         * doc/posix-functions/stat.texi: Likewise.
7755         * doc/posix-functions/tmpfile.texi: Likewise.
7756         * doc/glibc-functions/mkostemp.texi: Likewise.
7757         * doc/glibc-functions/mkostemps.texi: Likewise.
7758         * doc/glibc-functions/mkstemps.texi: Likewise.
7759
7760 2011-07-25  Bruno Haible  <bruno@clisp.org>
7761
7762         fcntl: Move AC_LIBOBJ invocation to module description.
7763         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7764         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7765
7766         fcntl: Remove call-in from fchdir.m4.
7767         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7768         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7769
7770         dup3: Remove potential call-in from fchdir.m4.
7771         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7772         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7773
7774         dup2: Move AC_LIBOBJ invocation to module description.
7775         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7776         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7777         Don't invoke AC_LIBOBJ.
7778         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7779
7780         dup2: Remove call-in from fchdir.m4.
7781         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7782         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7783
7784         fclose: Move AC_LIBOBJ invocation to module description.
7785         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7786         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7787         to 1.
7788         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7789
7790         fclose: Remove call-in from close.m4.
7791         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7792         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7793
7794         close: Move AC_LIBOBJ invocation to module description.
7795         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7796         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7797         1.
7798         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7799
7800         close: Remove call-in from fchdir.m4.
7801         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7802         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7803
7804         open: Move AC_LIBOBJ invocation to module description.
7805         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7806         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7807         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7808
7809         open: Remove call-in from fchdir.m4.
7810         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7812
7813         fchdir: Start to remove gl_REPLACE_* idiom.
7814         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7815         (gl_FUNC_FCHDIR): Invoke it.
7816
7817 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7818
7819         * lib/ftell.c (ftell): Comment out cast.
7820
7821         close: use gl_REPLACE_FCLOSE only if defined
7822         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7823         is defined.  The close module doesn't depend on the fclose module
7824         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7826         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7827
7828 2011-07-24  Jim Meyering  <meyering@redhat.com>
7829
7830         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7831         * tests/test-select.h (test_function): Declare as "static".
7832
7833 2011-07-24  Bruno Haible  <bruno@clisp.org>
7834
7835         doc: Mention the effects of AC_SYS_LARGEFILE.
7836         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7837         on this function.
7838         * doc/posix-functions/aio_error.texi: Likewise.
7839         * doc/posix-functions/aio_fsync.texi: Likewise.
7840         * doc/posix-functions/aio_read.texi: Likewise.
7841         * doc/posix-functions/aio_return.texi: Likewise.
7842         * doc/posix-functions/aio_suspend.texi: Likewise.
7843         * doc/posix-functions/aio_write.texi: Likewise.
7844         * doc/posix-functions/fgetpos.texi: Likewise.
7845         * doc/posix-functions/fopen.texi: Likewise.
7846         * doc/posix-functions/freopen.texi: Likewise.
7847         * doc/posix-functions/fsetpos.texi: Likewise.
7848         * doc/posix-functions/fstatvfs.texi: Likewise.
7849         * doc/posix-functions/ftruncate.texi: Likewise.
7850         * doc/posix-functions/ftw.texi: Likewise.
7851         * doc/posix-functions/getrlimit.texi: Likewise.
7852         * doc/posix-functions/glob.texi: Likewise.
7853         * doc/posix-functions/lio_listio.texi: Likewise.
7854         * doc/posix-functions/lockf.texi: Likewise.
7855         * doc/posix-functions/mkstemp.texi: Likewise.
7856         * doc/posix-functions/mmap.texi: Likewise.
7857         * doc/posix-functions/nftw.texi: Likewise.
7858         * doc/posix-functions/openat.texi: Likewise.
7859         * doc/posix-functions/opendir.texi: Likewise.
7860         * doc/posix-functions/posix_fadvise.texi: Likewise.
7861         * doc/posix-functions/posix_fallocate.texi: Likewise.
7862         * doc/posix-functions/pread.texi: Likewise.
7863         * doc/posix-functions/pwrite.texi: Likewise.
7864         * doc/posix-functions/readdir.texi: Likewise.
7865         * doc/posix-functions/readdir_r.texi: Likewise.
7866         * doc/posix-functions/rewinddir.texi: Likewise.
7867         * doc/posix-functions/scandir.texi: Likewise.
7868         * doc/posix-functions/seekdir.texi: Likewise.
7869         * doc/posix-functions/setrlimit.texi: Likewise.
7870         * doc/posix-functions/statvfs.texi: Likewise.
7871         * doc/posix-functions/telldir.texi: Likewise.
7872         * doc/posix-functions/tmpfile.texi: Likewise.
7873         * doc/posix-functions/truncate.texi: Likewise.
7874         * doc/glibc-functions/fallocate.texi: Likewise.
7875         * doc/glibc-functions/fstatfs.texi: Likewise.
7876         * doc/glibc-functions/fts_children.texi: Likewise.
7877         * doc/glibc-functions/fts_read.texi: Likewise.
7878         * doc/glibc-functions/getdirentries.texi: Likewise.
7879         * doc/glibc-functions/mkostemp.texi: Likewise.
7880         * doc/glibc-functions/mkostemps.texi: Likewise.
7881         * doc/glibc-functions/mkstemps.texi: Likewise.
7882         * doc/glibc-functions/preadv.texi: Likewise.
7883         * doc/glibc-functions/pwritev.texi: Likewise.
7884         * doc/glibc-functions/sendfile.texi: Likewise.
7885         * doc/glibc-functions/statfs.texi: Likewise.
7886
7887 2011-07-24  Bruno Haible  <bruno@clisp.org>
7888
7889         doc: Fix typo.
7890         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7891
7892 2011-07-24  Bruno Haible  <bruno@clisp.org>
7893
7894         doc: Mention fsusage.
7895         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7896
7897 2011-07-24  Bruno Haible  <bruno@clisp.org>
7898
7899         doc: Mention new glibc headers and functions.
7900         * doc/glibc-headers/gshadow.texi: New file.
7901         * doc/glibc-functions/endsgent.texi: New file.
7902         * doc/glibc-functions/fgetsgent.texi: New file.
7903         * doc/glibc-functions/fgetsgent_r.texi: New file.
7904         * doc/glibc-functions/getsgent.texi: New file.
7905         * doc/glibc-functions/getsgent_r.texi: New file.
7906         * doc/glibc-functions/getsgnam.texi: New file.
7907         * doc/glibc-functions/getsgnam_r.texi: New file.
7908         * doc/glibc-functions/putsgent.texi: New file.
7909         * doc/glibc-functions/setsgent.texi: New file.
7910         * doc/glibc-functions/sgetsgent.texi: New file.
7911         * doc/glibc-functions/sgetsgent_r.texi: New file.
7912         * doc/glibc-functions/malloc_info.texi: New file.
7913         * doc/glibc-functions/preadv.texi: New file.
7914         * doc/glibc-functions/pwritev.texi: New file.
7915         * doc/glibc-functions/register_printf_modifier.texi: New file.
7916         * doc/glibc-functions/register_printf_specifier.texi: New file.
7917         * doc/glibc-functions/register_printf_type.texi: New file.
7918         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7919         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7920         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7921         * doc/glibc-functions/pthread_getname_np.texi: New file.
7922         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7923         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7924         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7925         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7926         * doc/glibc-functions/pthread_setname_np.texi: New file.
7927         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7928         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7929         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7930         * doc/glibc-functions/qsort_r.texi: New file.
7931         * doc/glibc-functions/quick_exit.texi: New file.
7932         * doc/glibc-functions/syncfs.texi: New file.
7933         * doc/gnulib.texi: Include them.
7934         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7935         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7936         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7937         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7938         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7939         * doc/glibc-functions/execvpe.texi: Likewise.
7940
7941 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7942
7943         ftell: don't include <unistd.h>
7944         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7945         guaranteed to define off_t, and the ftell module depends on the
7946         stdio module.
7947
7948         ftell: do not assume wraparound signed arithmetic
7949         * lib/ftell.c: Include <limits.h>.
7950         (ftell): Don't assume wraparound signed arithmetic.
7951
7952 2011-07-24  Bruno Haible  <bruno@clisp.org>
7953
7954         close: No longer depend on module 'fclose'.
7955         * modules/close (Depends-on): Remove fclose.
7956         * NEWS: Mention the change.
7957         Suggested by Sam Steingold <sds@gnu.org>.
7958
7959 2011-07-24  Bruno Haible  <bruno@clisp.org>
7960
7961         fsusage: Enable large volume support on AIX >= 5.2.
7962         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7963         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7964         instead of STAT_STATVFS.
7965         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7966
7967         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7968         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7969         f_blocks field only on MacOS X.
7970
7971         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7972         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7973         * modules/fsusage (Depends-on): Add largefile.
7974
7975 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7976
7977         * README: Modernize discussion of signed integers.
7978         Assuming overflow wraparound is no longer safe.
7979         Mention ones' complement and signed magnitude.
7980
7981 2011-07-22  Bruno Haible  <bruno@clisp.org>
7982
7983         select tests, pselect tests: Refactor.
7984         * tests/test-select.h: New file, extracted from tests/test-select.c.
7985         (select_fn): New type.
7986         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7987         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7988         test_pipe): Add my_select argument.
7989         (test_function): Renamed from main. Add my_select argument.
7990         * tests/test-select.c: Move most code to tests/test-select.h. Include
7991         test-select.h.
7992         * modules/select-tests (Files): Add tests/test-select.h.
7993         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7994         (my_select, main): New functions.
7995         * modules/pselect-tests (Files): Add tests/test-select.h,
7996         tests/macros.h, tests/signature.h.
7997         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7998         (configure.ac): Check for <sys/wait.h>.
7999
8000 2011-07-22  Bruno Haible  <bruno@clisp.org>
8001
8002         sys_select tests: Check the signature of FD_*.
8003         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
8004         signature tests from here...
8005         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
8006         here.
8007         * modules/sys_select-tests (Files): Add tests/signature.h.
8008
8009 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
8010
8011         largefile: new module, replacing large-inode
8012         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
8013         * MODULES.html.sh: Add largefile, remove large-inode.
8014         * modules/largefile, m4/largefile.m4: New files.
8015         * modules/large-inode, m4/large-inode.m4: Remove.
8016
8017         fsusage: port to MacOS X 10.7 with 4 TiB file systems
8018         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
8019         implementations that use only 32 bits to count blocks.
8020         On typical hosts with 1024-byte blocks, this fails with file
8021         systems as small as 4 TiB.  Problem reported by Herb Wartens
8022         <http://debbugs.gnu.org/9140> and this should also fix a similar
8023         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
8024
8025         large-inode: New module
8026         * MODULES.html.sh: Add it.
8027         * modules/large-inode, m4/large-inode.m4: New files.
8028
8029         extensions: Enable extensions on MacOS X 10.5 and later.
8030         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
8031
8032 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
8033
8034         file-has-acl: use acl_extended_file_nofollow if available
8035         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
8036         (acl_extended_file): New macro.
8037         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
8038         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
8039
8040 2011-07-21  Bruno Haible  <bruno@clisp.org>
8041
8042         Declare system functions in a way that works with C++.
8043         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
8044         declare fdopendir as extern "C".
8045         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
8046         declare frexpl as extern "C".
8047         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
8048         declare gai_strerror as extern "C".
8049         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
8050         programs, declare gai_strerror as extern "C".
8051         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
8052         declare getlogin_r as extern "C".
8053         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
8054         as extern "C".
8055         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
8056         declare ldexpl as extern "C".
8057         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
8058         as extern "C".
8059         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
8060         program, declare getmntinfo as extern "C".
8061         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
8062         stpncpy as extern "C".
8063         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
8064         program, declare __xpg_strerror_r as extern "C".
8065         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
8066         strndup as extern "C".
8067         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
8068         declare memset and bzero as extern "C".
8069         Reported by Sam Steingold <sds@gnu.org>.
8070
8071 2011-07-12  Jim Meyering  <meyering@redhat.com>
8072
8073         maint.mk: prohibit inclusion of "verify.h" without use
8074         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
8075
8076 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8077
8078         timer-time: A new module to check for timer_settime()
8079         * m4/timer_time.m4: Check for the posix function.
8080         * modules/timer-time: Add the new module.
8081         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
8082         Mention it.
8083
8084 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
8085             Bruno Haible  <bruno@clisp.org>
8086
8087         pthread_sigmask: assume POSIX threads if --avoid=threadlib
8088         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
8089         not defined, assume POSIX threads and look for pthread_sigmask in
8090         $LIBS, without changing $CPPFLAGS.
8091
8092 2011-07-19  Bruno Haible  <bruno@clisp.org>
8093
8094         strstr: Update cross-compilation guess.
8095         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
8096         CPUs, guess no, in view of glibc
8097         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
8098         Suggested by Eric Blake. Reported by Reuben Thomas.
8099
8100 2011-07-19  Pádraig Brady  <P@draigBrady.com>
8101
8102         getopt-gnu: suppress core dumps from detection code
8103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
8104         to suppress core dumps that may well occur on glibc systems.
8105         * modules/getopt-gnu: Depend on nocrash.
8106
8107 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
8108
8109         pthread_sigmask: ensure usleep is declared
8110         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
8111         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
8112
8113 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
8114
8115         doc: Document NonStop portability issues.
8116         * doc/posix-functions/sigaction.texi (sigaction):
8117         * doc/posix-headers/signal.texi (signal.h):
8118         Document NonStop.  See Joachim Schmitz in
8119         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
8120
8121 2011-07-15  Bruno Haible  <bruno@clisp.org>
8122
8123         ffsl, ffsll: Avoid unportable behaviour.
8124         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
8125
8126 2011-07-15  Bruno Haible  <bruno@clisp.org>
8127
8128         ffs: More tests.
8129         * tests/test-ffs.c (NBITS): New macro.
8130         (main): Add more tests.
8131         * tests/test-ffsl.c (NBITS): New macro.
8132         (main): Add more tests.
8133         * tests/test-ffsll.c (NBITS): New macro.
8134         (main): Add more tests.
8135
8136 2011-07-15  Eric Blake  <eblake@redhat.com>
8137
8138         ffsl, ffsll: new modules
8139         * modules/ffsl: New file.
8140         * modules/ffsll: Likewise.
8141         * m4/ffsl.m4: Likewise.
8142         * m4/ffsll.m4: Likewise.
8143         * lib/ffsl.c: Likewise.
8144         * lib/ffsl.h: Likewise.
8145         * lib/ffsll.c: Likewise.
8146         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
8147         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
8148         * modules/string (Makefile.am): Substitute witnesses.
8149         * lib/strings.in.h (ffsl, ffsll): Declare.
8150         * modules/ffsl-tests: New test file.
8151         * modules/ffsll-tests: Likewise.
8152         * tests/test-ffsl.c: Likewise.
8153         * tests/test-ffsll.c: Likewise.
8154         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8155         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
8156         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
8157
8158         ffs: fix m4 prerequisite
8159         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
8160
8161         ffs: avoid undefined behavior
8162         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8163         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8164         Reported by Bruno Haible.
8165
8166 2011-07-12  Bruno Haible  <bruno@clisp.org>
8167
8168         pthread_sigmask: Rely on module 'threadlib'.
8169         * modules/pthread_sigmask (Depends-on): Add threadlib.
8170         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8171         is defined.
8172
8173 2011-07-12  Bruno Haible  <bruno@clisp.org>
8174
8175         regex: Depend on module 'strcase'.
8176         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8177
8178 2011-07-12  Jim Meyering  <meyering@redhat.com>
8179
8180         warn-on-use: fix typo in file name
8181         * modules/snippet/warn-on-use (Files): Correct file name:
8182         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8183
8184 2011-07-12  Bruno Haible  <bruno@clisp.org>
8185
8186         strings: Document module.
8187         * doc/posix-headers/strings.texi: Mention module 'strings'.
8188
8189 2011-07-12  Bruno Haible  <bruno@clisp.org>
8190
8191         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8192         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8193         (Files, Makefile.am): Update.
8194         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8195         * modules/stdlib (Depends-on): Update.
8196
8197 2011-07-12  Bruno Haible  <bruno@clisp.org>
8198
8199         * NEWS: Mention the changes.
8200
8201         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8202         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8203         (Files, Makefile.am): Update.
8204         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8205         * modules/arpa_inet (Depends-on): Update.
8206         * modules/ctype (Depends-on): Update.
8207         * modules/dirent (Depends-on): Update.
8208         * modules/fcntl-h (Depends-on): Update.
8209         * modules/glob (Depends-on): Update.
8210         * modules/iconv-h (Depends-on): Update.
8211         * modules/inttypes-incomplete (Depends-on): Update.
8212         * modules/langinfo (Depends-on): Update.
8213         * modules/locale (Depends-on): Update.
8214         * modules/math (Depends-on): Update.
8215         * modules/netdb (Depends-on): Update.
8216         * modules/poll-h (Depends-on): Update.
8217         * modules/pty (Depends-on): Update.
8218         * modules/search (Depends-on): Update.
8219         * modules/signal (Depends-on): Update.
8220         * modules/spawn (Depends-on): Update.
8221         * modules/stdio (Depends-on): Update.
8222         * modules/stdlib (Depends-on): Update.
8223         * modules/string (Depends-on): Update.
8224         * modules/strings (Depends-on): Update.
8225         * modules/sys_file (Depends-on): Update.
8226         * modules/sys_ioctl (Depends-on): Update.
8227         * modules/sys_select (Depends-on): Update.
8228         * modules/sys_socket (Depends-on): Update.
8229         * modules/sys_stat (Depends-on): Update.
8230         * modules/sys_time (Depends-on): Update.
8231         * modules/sys_times (Depends-on): Update.
8232         * modules/sys_utsname (Depends-on): Update.
8233         * modules/sys_wait (Depends-on): Update.
8234         * modules/termios (Depends-on): Update.
8235         * modules/time (Depends-on): Update.
8236         * modules/unistd (Depends-on): Update.
8237         * modules/wchar (Depends-on): Update.
8238         * modules/wctype-h (Depends-on): Update.
8239         * MODULES.html.sh (Support for building libraries and executables):
8240         Update.
8241
8242         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8243         * modules/snippet/unused-parameter: Renamed from
8244         modules/unused-parameter.
8245         (Files, Makefile.am): Update.
8246         * build-aux/snippet/unused-parameter.h: Renamed from
8247         build-aux/unused-parameter.h.
8248         * modules/selinux-h (Depends-on): Update.
8249         * modules/unistr/base (Depends-on): Update.
8250         * MODULES.html.sh (Core language properties): Update.
8251
8252         Rename module 'link-warning' to 'snippet/link-warning'.
8253         * modules/snippet/link-warning: Renamed from modules/link-warning.
8254         (Files, Makefile.am): Update.
8255         * build-aux/snippet/link-warning.h: Renamed from
8256         build-aux/link-warning.h.
8257         * MODULES.html.sh (Support for building libraries and executables):
8258         Update.
8259
8260         Rename module 'c++defs' to 'snippet/c++defs'.
8261         * modules/snippet/c++defs: Renamed from modules/c++defs.
8262         (Files, Makefile.am): Update.
8263         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8264         * modules/arpa_inet (Depends-on): Update.
8265         * modules/ctype (Depends-on): Update.
8266         * modules/dirent (Depends-on): Update.
8267         * modules/fcntl-h (Depends-on): Update.
8268         * modules/glob (Depends-on): Update.
8269         * modules/iconv-h (Depends-on): Update.
8270         * modules/langinfo (Depends-on): Update.
8271         * modules/locale (Depends-on): Update.
8272         * modules/math (Depends-on): Update.
8273         * modules/netdb (Depends-on): Update.
8274         * modules/poll-h (Depends-on): Update.
8275         * modules/pty (Depends-on): Update.
8276         * modules/search (Depends-on): Update.
8277         * modules/signal (Depends-on): Update.
8278         * modules/spawn (Depends-on): Update.
8279         * modules/stdio (Depends-on): Update.
8280         * modules/stdlib (Depends-on): Update.
8281         * modules/string (Depends-on): Update.
8282         * modules/strings (Depends-on): Update.
8283         * modules/sys_ioctl (Depends-on): Update.
8284         * modules/sys_select (Depends-on): Update.
8285         * modules/sys_socket (Depends-on): Update.
8286         * modules/sys_stat (Depends-on): Update.
8287         * modules/sys_time (Depends-on): Update.
8288         * modules/sys_wait (Depends-on): Update.
8289         * modules/termios (Depends-on): Update.
8290         * modules/time (Depends-on): Update.
8291         * modules/unistd (Depends-on): Update.
8292         * modules/wchar (Depends-on): Update.
8293         * modules/wctype-h (Depends-on): Update.
8294
8295         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8296         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8297         (Files, Makefile.am): Update.
8298         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8299         * modules/argv-iter (Depends-on): Update.
8300         * modules/arpa_inet (Depends-on): Update.
8301         * modules/dirent (Depends-on): Update.
8302         * modules/fcntl-h (Depends-on): Update.
8303         * modules/fnmatch (Depends-on): Update.
8304         * modules/getopt-posix (Depends-on): Update.
8305         * modules/glob (Depends-on): Update.
8306         * modules/iconv-h (Depends-on): Update.
8307         * modules/inttypes-incomplete (Depends-on): Update.
8308         * modules/locale (Depends-on): Update.
8309         * modules/math (Depends-on): Update.
8310         * modules/netdb (Depends-on): Update.
8311         * modules/search (Depends-on): Update.
8312         * modules/signal (Depends-on): Update.
8313         * modules/spawn (Depends-on): Update.
8314         * modules/stdio (Depends-on): Update.
8315         * modules/stdlib (Depends-on): Update.
8316         * modules/string (Depends-on): Update.
8317         * modules/strings (Depends-on): Update.
8318         * modules/sys_socket (Depends-on): Update.
8319         * modules/sys_stat (Depends-on): Update.
8320         * modules/sys_time (Depends-on): Update.
8321         * modules/sys_times (Depends-on): Update.
8322         * modules/sys_utsname (Depends-on): Update.
8323         * modules/time (Depends-on): Update.
8324         * modules/unistd (Depends-on): Update.
8325         * modules/wchar (Depends-on): Update.
8326         * MODULES.html.sh (Support for building libraries and executables):
8327         Update.
8328
8329 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8330
8331         Improvements on _Noreturn and related modules.
8332
8333         modules/_Exit-tests: test _Noreturn too
8334         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8335         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8336         (main): Use them.
8337
8338         stdnoreturn, stdnoreturn-tests: remove modules
8339         They're not needed here and a bit premature for use elsewhere.  See
8340         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8341         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8342         * tests/test-stdnoreturn.c: Remove files.
8343         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8344         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8345         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8346         and using noreturn.
8347         * modules/openat, modules/sigpipe-die, modules/xalloc:
8348         * modules/xmemdup0, modules/xstrtol:
8349         Remove dependency on stdnoreturn.
8350
8351         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8352         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8353         Reparenthesize to avoid GCC warning.
8354         Support Microsoft's syntax.
8355         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8356
8357         _Noreturn-tests: remove module
8358         * modules/_Noreturn-tests: Remove.
8359         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8360         * tests/test-_Noreturn.c: Remove.
8361         * tests/test-stdnoreturn.c: Merge from the old
8362         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8363
8364 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8365
8366         _Noreturn, stdnoreturn, and related modules.
8367
8368         * top/maint.mk: Adjust to new noreturn support.
8369         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8370         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8371
8372         xalloc: use stdnoreturn.h
8373         * lib/xalloc.h: Include <stdnoreturn.h>.
8374         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8375         * modules/xalloc (Depends-on): Add stdnoreturn.
8376
8377         xstrtol: use stdnoreturn.h
8378         * lib/xstrtol.h: Include <stdnoreturn.h>.
8379         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8380         * modules/xstrtol (Depends-on): Add stdnoreturn.
8381
8382         xmemdup0: use stdnoreturn.h
8383         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8384         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8385         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8386
8387         sigpipe-die: use stdnoreturn.h
8388         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8389         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8390         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8391
8392         openat: use stdnoreturn.h
8393         * lib/openat.h: Include <stdnoreturn.h>.
8394         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8395         * modules/openat (Depends-on): Add stdnoreturn.
8396
8397         * lib/openat-die.c (openat_save_fail): Modernize comment.
8398
8399         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8400
8401         * lib/glthread/thread.h: Modernize comment.
8402
8403         obstack: use _Noreturn
8404         * lib/obstack.c (__attribute__): Remove macro.
8405         (print_and_abort): Use _Noreturn.
8406
8407         c-stack: use _Noreturn
8408         * lib/c-stack.c (die, overflow_handler, segv_handler):
8409         Use _Noreturn rather than __attribute__((noreturn)).
8410
8411         argmatch-tests, exclude_tests: use _Noreturn
8412         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8413         Remove.
8414         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8415
8416         stdlib: use _Noreturn
8417         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8418         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8419         * modules/stdlib (Depends-on): Add _Noreturn.
8420         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8421
8422         stdnoreturn-tests: new module
8423         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8424
8425         stdnoreturn: new module
8426         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8427         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8428
8429         _Noreturn-tests: new module
8430         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8431
8432         _Noreturn: new module
8433         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8434         New section, mentioning it.
8435         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8436
8437         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8438
8439 2011-07-11  Eric Blake  <eblake@redhat.com>
8440
8441         ffs: new module
8442         * modules/ffs: New file.
8443         * m4/ffs.m4: Likewise.
8444         * lib/ffs.c: Likewise.
8445         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8446         * modules/strings (Makefile.am): Substitute witness.
8447         (Depends-on): Add c++defs.
8448         * lib/strings.in.h (ffs): Declare.
8449         * modules/ffs-tests: New test file.
8450         * tests/test-ffs.c: Test new module.
8451         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8452         * doc/posix-functions/ffs.texi (ffs): Likewise.
8453
8454         regex: avoid compiler warning
8455         * lib/regex.c (includes): Include <strings.h>, for use of
8456         strcasecmp in regcomp.c.
8457         Reported by Joachim Schmitz.
8458
8459 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8460
8461         stdint: respect system's intmax_t if INTMAX_MAX
8462         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8463         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8464         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8465         long but int64_t is long long, and where we will clash with the
8466         system intmax_t if we override it.  See
8467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8468         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8469         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8470         similarly for UINTMAX_C.
8471
8472 2011-07-08  Bruno Haible  <bruno@clisp.org>
8473
8474         pthread_sigmask tests: Avoid a compiler warning.
8475         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8476         non-zero.
8477
8478         sigprocmask tests: A better way to avoid a compiler warning.
8479         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8480         (main): Complain if system() returns non-zero.
8481         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8482
8483 2011-07-08  Bruno Haible  <bruno@clisp.org>
8484
8485         pthread_sigmask: Work around IRIX bug.
8486         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8487         bug.
8488         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8489         there may be unblocked pending signals.
8490         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8491
8492 2011-07-08  Bruno Haible  <bruno@clisp.org>
8493
8494         pthread_sigmask: Work around Cygwin bug.
8495         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8496         bug.
8497         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8498         the system's pthread_sigmask function.
8499         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8500
8501 2011-07-08  Bruno Haible  <bruno@clisp.org>
8502
8503         pthread_sigmask: Work around bug in single-threaded implementation.
8504         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8505         FreeBSD, HP-UX, Solaris bug.
8506         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8507         * lib/pthread_sigmask.c: Include <stddef.h>.
8508         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8509         the system's pthread_sigmask function.
8510         * modules/pthread_sigmask (configure.ac): Invoke
8511         gl_PREREQ_PTHREAD_SIGMASK.
8512         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8513         HP-UX, Solaris.
8514
8515 2011-07-08  Eric Blake  <eblake@redhat.com>
8516
8517         test-sigprocmask: avoid compiler warning
8518         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8519         * tests/test-sigprocmask.c (main): Use it to silence warning.
8520         Reported by Jim Meyering.
8521
8522         test-snprintf: avoid compiler warning
8523         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8524         * tests/test-vsnprintf.c (main): Likewise.
8525         Reported by Jim Meyering.
8526
8527 2011-07-08  Bruno Haible  <bruno@clisp.org>
8528
8529         Tests for module 'pthread_sigmask'.
8530         * modules/pthread_sigmask-tests: New file.
8531         * tests/test-pthread_sigmask1.c: New file, based on
8532         tests/test-sigprocmask.c.
8533         * tests/test-pthread_sigmask2.c: New file.
8534
8535 2011-07-08  Jim Meyering  <meyering@redhat.com>
8536
8537         test-getopt.h: avoid warning about an unused variable
8538         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8539
8540 2011-07-07  Jim Meyering  <meyering@redhat.com>
8541
8542         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8543         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8544         now that it no longer contains leading TABs.
8545         Remove unused "url=FIXME" statement.
8546
8547 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8548
8549         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8550         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8551         When gl_THREADLIB is not in use, assume that the POSIX sematics
8552         are desired.  This is better for Emacs, which uses POSIX semantics
8553         on GNUish and/or POSIXish platforms, and does not use threads at
8554         all otherwise.
8555
8556         pthread_sigmask: fix typo when testing for libraries
8557         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8558         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8559
8560 2011-07-08  Eric Blake  <eblake@redhat.com>
8561
8562         fts: introduce FTS_NOATIME
8563         * lib/fts_.h (FTS_NOATIME): New bit flag.
8564         (FTS_OPTIONMASK): Adjust.
8565         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8566         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8567
8568 2011-07-08  Bruno Haible  <bruno@clisp.org>
8569
8570         Tests for module 'thread'.
8571         * modules/thread-tests: New file.
8572         * tests/test-thread_self.c: New file.
8573         * tests/test-thread_create.cc: New file.
8574
8575 2011-07-08  Bruno Haible  <bruno@clisp.org>
8576
8577         thread: Avoid gcc warnings when using gl_thread_self().
8578         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8579         'void *'.
8580         (gl_thread_self_pointer): Update.
8581
8582 2011-07-07  Bruno Haible  <bruno@clisp.org>
8583
8584         signal-c++-tests: Check declaration of pthread_sigmask.
8585         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8586         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8587         $(LIB_PTHREAD_SIGMASK).
8588
8589 2011-07-07  Bruno Haible  <bruno@clisp.org>
8590
8591         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8592         * lib/signal.in.h (pthread_sigmask): Override if
8593         REPLACE_PTHREAD_SIGMASK is 1.
8594         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8595         REPLACE_PTHREAD_SIGMASK.
8596         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8597         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8598         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8599         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8600         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8601
8602 2011-07-07  Bruno Haible  <bruno@clisp.org>
8603
8604         pthread_sigmask: Ensure declaration in <signal.h>.
8605         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8606         include <pthread.h>.
8607         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8608         problem.
8609
8610 2011-07-07  Bruno Haible  <bruno@clisp.org>
8611
8612         pthread_sigmask: Document the module.
8613         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8614
8615 2011-07-07  Bruno Haible  <bruno@clisp.org>
8616
8617         pthread_sigmask: Follow gnulib conventions.
8618         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8619         gl_PTHREAD_SIGMASK.
8620         * modules/pthread_sigmask (configure.ac): Update.
8621
8622 2011-07-07  Bruno Haible  <bruno@clisp.org>
8623
8624         pthread_sigmask: Make declaration C++ safe.
8625         * lib/signal.in.h: In two special conditions, just do an #include_next.
8626         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8627         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8628         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8629         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8630         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8631         not REPLACE_PTHREAD_MASK.
8632         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8633         not REPLACE_PTHREAD_MASK.
8634         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8635
8636 2011-07-07  Bruno Haible  <bruno@clisp.org>
8637
8638         pthread_sigmask: Fix return value.
8639         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8640         * lib/pthread_sigmask.c: New file.
8641         * modules/pthread_sigmask (Files): Add it.
8642         (configure.ac): Invoke AC_LIBOBJ.
8643
8644 2011-07-07  Eric Blake  <eblake@redhat.com>
8645
8646         getopt: more portable argv creation
8647         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8648         const, use char arrays rather than strings.
8649         Suggested by Paul Eggert.
8650
8651 2011-07-07  Bruno Haible  <bruno@clisp.org>
8652
8653         Tests for module 'sigprocmask'.
8654         * modules/sigprocmask-tests: New file.
8655         * tests/test-sigprocmask.c: New file.
8656
8657 2011-07-07  Bruno Haible  <bruno@clisp.org>
8658
8659         float tests: Tweak.
8660         * tests/test-float.c (main): Tweak skip message.
8661
8662 2011-07-07  Eric Blake  <eblake@redhat.com>
8663
8664         getopt: avoid compiler warning during configure
8665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8666         assigning string literals to non-const pointer.
8667
8668         getopt-gnu: avoid crash in glibc getopt
8669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8670         * tests/test-getopt.h (test_getopt): Enhance test.
8671         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8672         * doc/posix-functions/getopt.texi (getopt): Document it.
8673         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8674         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8675         Likewise.
8676
8677 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8678
8679         getopt: handle W; without long options in getopt [BZ #12922]
8680         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8681         but no long options are defined, just return 'W'.
8682
8683 2011-07-07  Bruno Haible  <bruno@clisp.org>
8684
8685         Avoid literal tabs.
8686         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8687         variable containing a tab instead of a literal tab.
8688         Reported by Jim Meyering.
8689
8690 2011-07-07  Bruno Haible  <bruno@clisp.org>
8691
8692         Comments.
8693         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8694
8695 2011-07-06  Bruno Haible  <bruno@clisp.org>
8696
8697         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8698         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8699         <winsock2.h>.
8700         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8701         lib/sys_socket.in.h.
8702         (close, gethostname): Hide declarations from <winsock2.h>.
8703         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8704         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8705         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8706         (select): Don't override if gnulib's <sys/select.h> was already
8707         included.
8708         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8709         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8710         setsockopt, shutdown, select): Tweak indentation.
8711
8712 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8713
8714         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8715         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8716         in an application that does not use the sys_select module.
8717
8718 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8719
8720         poll: do not return 0 on timeout=-1
8721         * lib/poll.c: Loop with yield if no events occured
8722
8723 2011-07-06  Eric Blake  <eblake@redhat.com>
8724
8725         pthread_sigmask: always replace when not using pthread
8726         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8727         replacement when using some threading other than pthread.  Fix
8728         logic bug.
8729
8730 2011-07-06  Bruno Haible  <bruno@clisp.org>
8731
8732         Comments.
8733         * m4/printf.m4: Update comments about mingw.
8734
8735 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8736
8737         sys_select: define sigset_t more portably
8738         * lib/sys_select.in.h: Always include <sys/types.h>, since
8739         we now need sigset_t and mingw defines it there.
8740         Include <signal.h> before split inclusion guard, to avoid
8741         mishaps on Solaris, whose <signal.h> eventually includes us.
8742         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8743         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8744         which come from ...
8745         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8746         gl_CHECK_TYPE_SIGSET_T.
8747         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8748         does the real work.
8749         * modules/sys_select (Depends-on): Add 'signal'.
8750
8751         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8752         Suggested by Bruno Haible.
8753
8754         pselect: Use pthread_sigmask, not sigprocmask.
8755         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8756         multithreaded apps better than sigprocmask does.
8757         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8758         sigprocmask directly.
8759
8760 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8761
8762         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8763         Don't #undef,  since we don't need any underlying pselect.
8764         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8765         (Depends-on): Add select.
8766         (Link): Add $(LIBSOCKET).
8767         These changes suggested by Bruno Haible.
8768
8769         pselect: document better
8770         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8771         * doc/posix-functions/pselect.texi (pselect): Document new module.
8772
8773         pthread_sigmask: new module
8774         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8775         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8776         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8777         This is done only as a macro; I don't know how well that'll
8778         work for C++.  Move <sys/types.h> include before the include_next,
8779         to avoid mishap on Solaris.
8780         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8781         * modules/signal (Makefile.am): Substitute the check's results.
8782         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8783
8784         test-pselect: new module
8785         * modules/pselect-tests, tests/test-pselect.c: New files.
8786         * tests/test-select.c, tests/test-sys_select-c++.cc:
8787         If TEST_PSELECT is defined, test pselect instead of testing select.
8788
8789         * tests/test-sys_select.c (sigset_t): Test for it, too.
8790         Suggested by Bruno Haible.
8791
8792 2011-07-05  Eric Blake  <eblake@redhat.com>
8793
8794         snprintf: guarantee %1$d, for libintl
8795         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8796         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8797         * doc/posix-functions/snprintf.texi (snprintf): Update.
8798         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8799         * tests/test-snprintf.c (main): Enhance test.
8800         * tests/test-vsnprintf.c (main): Likewise.
8801
8802 2011-07-05  Jim Meyering  <meyering@redhat.com>
8803
8804         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8805         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8806         per Bruno's request, to accommodate this idiom (no space after "#")
8807         even when the function is inside an #if block:
8808         char *
8809         gets (char *s)
8810         #undef gets
8811         {
8812           ...
8813         }
8814
8815 2011-07-04  Jim Meyering  <meyering@redhat.com>
8816
8817         maint: indent with spaces, not TABs, and add a rule to check this
8818         * tests/test-userspec.c: Indent with spaces, not TABs.
8819         * tests/test-argp.c: Likewise.
8820         * tests/test-c-stack2.sh: Likewise.
8821         * tests/test-parse-duration.sh: Likewise
8822         * m4/strtod.m4: Likewise.
8823         * m4/alloca.m4: Likewise.
8824         * m4/pselect.m4: Likewise.
8825         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8826
8827 2011-07-03  Jim Meyering  <meyering@redhat.com>
8828
8829         maint.mk: correct omissions in prohibit_argmatch_without_use check
8830         This rule would mistakenly report that argmatch.h is included without
8831         use even when both the argmatch and invalid_arg macro were used.
8832         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8833         of argmatch and invalid_arg.
8834
8835 2011-07-03  Bruno Haible  <bruno@clisp.org>
8836
8837         Comments about EINTR.
8838         * lib/safe-read.h: Explain the purpose of this module.
8839         * lib/safe-write.h: Likewise.
8840         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8841         module.
8842         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8843         module.
8844         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8845
8846 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8847
8848         xnanosleep: Rewrite to use new dtotimespec module.
8849         It has the conversion code that used to be in xnanosleep.
8850         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8851         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8852         (TIME_T_MAX): Remove.
8853         (xnanosleep): Rewrite in terms of dtotimespec.
8854         * modules/xnanosleep (Depends-on): Add dtotimespec.
8855         Remove intprops, stdbool.
8856
8857         timespec-add, timespec-sub: new modules
8858         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8859         * lib/timespec-add.c, lib/timespec-sub.c:
8860         * modules/timespec-add, modules/timespec-sub: New files.
8861
8862         dtotimespec: new module
8863         * lib/timespec.h (dtotimespec): New decl.
8864         * lib/dtotimespec.c, modules/dtotimespec: New files.
8865
8866         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8867
8868         pselect: new module
8869         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8870         (pselect): New decls.
8871         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8872         since the standard pselect decl uses 'restrict'.
8873         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8874         HAVE_PSELECT, REPLACE_PSELECT.
8875         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8876         HAVE_PSELECT, REPLACE_PSELECT.
8877         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8878
8879         sys_select: don't depend on sys_socket
8880         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8882         This fix works on GNU and GNU-like platforms, but has not been tested
8883         on native Windows.
8884         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8885         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8886         gl_HEADER_SYS_SOCKET.
8887         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8888         gl_PREREQ_SYS_H_WINSOCK2.
8889
8890 2011-06-29  Eric Blake  <eblake@redhat.com>
8891
8892         pipe2: fix C89 compile problem
8893         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8894         Reported by Bruno Haible.
8895
8896         pipe, pipe2: don't corrupt fd on error
8897         * lib/pipe.c (pipe): Leave fd unchanged on error.
8898         * lib/pipe2.c (pipe2): Likewise.
8899         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8900         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8901
8902 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8903
8904         mmap-anon: do not use regular expressions inadvertently
8905         * m4/mmap-anon.m4: Remove trailing period from strings sought
8906         in the output.
8907
8908 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8909
8910         nanosleep: fix integer overflow problem
8911         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8912         arithmetic wraps around on overflow.
8913
8914         nanosleep: simplify carrying
8915         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8916         first call to the underyling nanosleep, not for the last one.
8917         This doesn't fix any bugs, but it simplifies the computation of
8918         the remaining delay.  Found while auditing integer overflow issues.
8919
8920         dup2: remove test for existence of fcntl
8921         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8922         "#if HAVE_FCNTL", in the configure-time test program.
8923         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8924         and therefore speeds up "configure" a bit.  Found while
8925         adding the dup2 module to Emacs.
8926
8927 2011-06-24  Eric Blake  <eblake@redhat.com>
8928
8929         maint.mk: enhance useless header checks
8930         * top/maint.mk (_sc_header_without_use): Check both include
8931         styles.
8932         (sc_prohibit_assert_without_use)
8933         (sc_prohibit_close_stream_without_use)
8934         (sc_prohibit_getopt_without_use)
8935         (sc_prohibit_quotearg_without_use)
8936         (sc_prohibit_quote_without_use)
8937         (sc_prohibit_long_options_without_use)
8938         (sc_prohibit_inttostr_without_use)
8939         (sc_prohibit_ignore_value_without_use)
8940         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8941         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8942         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8943         (sc_prohibit_hash_pjw_without_use)
8944         (sc_prohibit_safe_read_without_use)
8945         (sc_prohibit_argmatch_without_use)
8946         (sc_prohibit_canonicalize_without_use)
8947         (sc_prohibit_root_dev_ino_without_use)
8948         (sc_prohibit_openat_without_use)
8949         (sc_prohibit_c_ctype_without_use)
8950         (sc_prohibit_signal_without_use)
8951         (sc_prohibit_stdio--_without_use)
8952         (sc_prohibit_stdio-safer_without_use)
8953         (sc_prohibit_strings_without_use)
8954         (sc_prohibit_intprops_without_use)
8955         (sc_prohibit_stddef_without_use)
8956         (sc_prohibit_xfreopen_without_use): Update clients.
8957
8958 2011-06-24  Jim Meyering  <meyering@redhat.com>
8959
8960         syntax-check: keep one maint.mk rule in sync with its header
8961         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8962         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8963         I prefer to avoid temporary files here, so use <(...), but that
8964         is not supported by /bin/sh, so...
8965         (SHELL): Define to /bin/bash.
8966
8967 2011-06-24  Eric Blake  <eblake@redhat.com>
8968
8969         maint.mk: update sc_prohibit_intprops_without_use
8970         * top/maint.mk (_intprops_names): Match recent changes.
8971
8972 2011-06-24  Bruno Haible  <bruno@clisp.org>
8973
8974         strerror-override: No-op tweak.
8975         * lib/strerror-override.h (strerror_override): Reorder conditions,
8976         for consistency with lib/strerror-override.c.
8977
8978 2011-06-23  Eric Blake  <eblake@redhat.com>
8979
8980         maint.mk: test further PATH_MAX issues
8981         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8982         (sc_prohibit_path_max_allocation): ...and also test alloca.
8983         Suggested by Jim Meyering.
8984
8985 2011-06-22  Eric Blake  <eblake@redhat.com>
8986
8987         maint.mk: add syntax-check to avoid char[PATH_MAX]
8988         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8989
8990         stat: be robust to PATH_MAX definition
8991         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8992         * modules/stat (Depends-on): Add verify.
8993
8994         link: work around IRIX bug
8995         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8996         * lib/link.c (rpl_link): Work around it.
8997         * tests/test-link.h (test_link): Enhance test.
8998         * doc/posix-functions/link.texi (link): Document the bug.
8999
9000         getopt: silence clang warning
9001         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
9002         dereference.
9003         Reported by Gustavo Martin Domato.
9004
9005 2011-06-22  Jim Meyering  <meyering@redhat.com>
9006
9007         bootstrap: do not insert a blank line into each .gitignore file
9008         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
9009
9010 2011-06-21  Eric Blake  <eblake@redhat.com>
9011
9012         perror: test for output mismatch
9013         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
9014         perror on IRIX.
9015
9016         strerror_r: fix OpenBSD behavior on out-of-range
9017         * lib/strerror_r.c (strerror_r): Always use maximal string.
9018         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
9019
9020         strerror_r: fix OpenBSD behavior on 0
9021         * lib/strerror-override.c (strerror_override): Also override 0
9022         when needed.
9023         * lib/strerror-override.h (strerror_override): Likewise.
9024         * lib/strerror.c (strerror): Simplify, now that 0 override is done
9025         earlier.
9026         * lib/strerror_r.c (strerror_r): Likewise.
9027         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
9028         behavior...
9029         (gl_FUNC_STRERROR_0): ...into new macro.
9030         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
9031         is overridden.
9032         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
9033         * modules/strerror-override (Files): Add strerror.m4.
9034         (configure.ac): Also provide override for 0 when needed.
9035         * doc/posix-functions/strerror.texi (strerror): Document this.
9036         * doc/posix-functions/perror.texi (perror): Likewise.
9037
9038         perror: adjust array size
9039         * modules/perror (Depends-on): Add strerror-override.
9040         * lib/perror.c (perror): Use it to avoid magic number.
9041
9042         strerror-override: reduce size
9043         * lib/strerror-override.c (strerror_override): Use fewer lines.
9044
9045 2011-06-20  Bruno Haible  <bruno@clisp.org>
9046
9047         pathmax: Ensure correct value for PATH_MAX on HP-UX.
9048         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
9049
9050 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9051
9052         alloca: port to compilers that can optimize like GCC 4.6.0
9053         * lib/alloca.c (find_stack_direction): New signature, taken from
9054         Autoconf git.  This works with GCC 4.6.0.  This code should never
9055         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
9056         be used with other compilers that optimize as well as GCC 4.6.0 does.
9057         (alloca): Adjust to new signature.
9058         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
9059         New macro, which patches Autoconf in a similar way.
9060
9061         c-stack: stop worrying about stack direction
9062         * lib/c-stack.c (find_stack_direction): Remove.
9063         (segv_handler): Don't worry about stack direction growth, as it's
9064         too much of a pain to configure this correctly, given how compilers
9065         are optimizing-away our stack-growth detection code.  Instead, assume
9066         that any access to just before or just after the stack is OK.
9067         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
9068         Don't require AC_FUNC_ALLOCA; no longer needed.
9069
9070 2011-06-20  Eric Blake  <eblake@redhat.com>
9071
9072         test-stat: don't allocate PATH_MAX bytes
9073         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
9074         PATH_MAX-sized buffer.
9075         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
9076         * modules/stat-tests (Depends-on): Likewise.
9077         * tests/test-fstatat.c (includes): Drop pathmax.h.
9078         * tests/test-stat.c (includes): Likewise.
9079         Reported by Bruno Haible.
9080
9081 2011-06-20  Bruno Haible  <bruno@clisp.org>
9082
9083         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
9084         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
9085         * lib/float.c: New file.
9086         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
9087         REPLACE_FLOAT_LDBL.
9088         * modules/float (Files): Add lib/float.c.
9089         (configure.ac): Invoke AC_LIBOBJ.
9090         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
9091
9092 2011-06-20  Bruno Haible  <bruno@clisp.org>
9093
9094         Tests for module 'float'.
9095         * modules/float-tests: New file.
9096         * tests/test-float.c: New file.
9097
9098 2011-06-19  Bruno Haible  <bruno@clisp.org>
9099
9100         isinf: Coding style.
9101         * lib/isinf.c: Use GNU coding style.
9102
9103 2011-06-19  Bruno Haible  <bruno@clisp.org>
9104
9105         linkat test: Avoid test failure on AIX 7.1.
9106         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
9107         * tests/test-link.h (test_link): Likewise.
9108
9109 2011-06-19  Bruno Haible  <bruno@clisp.org>
9110
9111         pread test: Avoid test failure on OpenBSD 4.9.
9112         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
9113
9114 2011-06-19  Bruno Haible  <bruno@clisp.org>
9115
9116         sprintf-posix: Fix test failure on AIX 7.1.
9117         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
9118         * doc/posix-functions/dprintf.texi: Mention limited precision problem
9119         on AIX.
9120         * doc/posix-functions/fprintf.texi: Likewise.
9121         * doc/posix-functions/printf.texi: Likewise.
9122         * doc/posix-functions/snprintf.texi: Likewise.
9123         * doc/posix-functions/sprintf.texi: Likewise.
9124         * doc/posix-functions/vdprintf.texi: Likewise.
9125         * doc/posix-functions/vfprintf.texi: Likewise.
9126         * doc/posix-functions/vprintf.texi: Likewise.
9127         * doc/posix-functions/vsnprintf.texi: Likewise.
9128         * doc/posix-functions/vsprintf.texi: Likewise.
9129
9130 2011-06-19  Bruno Haible  <bruno@clisp.org>
9131
9132         roundl-ieee: Fix test failure on AIX 7.1.
9133         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
9134         * doc/posix-functions/roundl.texi: Mention problem with negative
9135         arguments.
9136
9137 2011-06-19  Bruno Haible  <bruno@clisp.org>
9138
9139         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9140         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
9141         * doc/posix-functions/round.texi: Mention problem with negative
9142         arguments.
9143         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
9144
9145 2011-06-19  Bruno Haible  <bruno@clisp.org>
9146
9147         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
9148         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
9149         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
9150         * doc/posix-functions/roundf.texi: Mention problem with negative
9151         arguments.
9152         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
9153
9154 2011-06-19  Bruno Haible  <bruno@clisp.org>
9155
9156         ceilf-ieee: Work around bug on MacOS X 10.5.
9157         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
9158
9159         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
9160         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
9161         IEEE compliant, avoid compiler optimizations.
9162         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9163         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9164         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9165         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9166         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9167         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9168         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9169         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9170         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9171         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9172
9173 2011-06-19  Bruno Haible  <bruno@clisp.org>
9174
9175         ceilf-ieee: Work around bug on AIX 7.1.
9176         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9177         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9178
9179 2011-06-19  Bruno Haible  <bruno@clisp.org>
9180
9181         ceil-ieee: Work around bug on AIX 7.1.
9182         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9183         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9184
9185 2011-06-18  Bruno Haible  <bruno@clisp.org>
9186
9187         fsync test: Avoid test failure on MacOS X and AIX.
9188         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9189         EINVAL.
9190
9191 2011-06-18  Bruno Haible  <bruno@clisp.org>
9192
9193         openat, fdopendir tests: Fix link errors.
9194         * modules/openat-tests (Depends-on): Add progname.
9195         * modules/fdopendir-tests (Depends-on): Likewise.
9196         * tests/test-fchownat.c: Include progname.h.
9197         (main): Call set_program_name.
9198         * tests/test-fstatat.c: Include progname.h.
9199         (main): Call set_program_name.
9200         * tests/test-mkdirat.c: Include progname.h.
9201         (main): Call set_program_name.
9202         * tests/test-openat.c: Include progname.h.
9203         (main): Call set_program_name.
9204         * tests/test-unlinkat.c: Include progname.h.
9205         (main): Call set_program_name.
9206         * tests/test-fdopendir.c: Include progname.h.
9207         (main): Call set_program_name.
9208
9209 2011-06-18  Bruno Haible  <bruno@clisp.org>
9210
9211         Doc update.
9212         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9213         HP-UX.
9214         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9215
9216 2011-06-18  Bruno Haible  <bruno@clisp.org>
9217
9218         getcwd tests: Avoid compilation error on HP-UX 11.31.
9219         * modules/getcwd-tests (Depends-on): Add pathmax.
9220         * tests/test-getcwd.c: Include pathmax.h.
9221
9222 2011-06-18  Bruno Haible  <bruno@clisp.org>
9223
9224         isfinite, isinf: Fix link error on AIX 6 and 7.
9225         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9226         needed, also test the macro with a 'float' argument.
9227         * m4/isinf.m4 (gl_ISINF): Likewise.
9228
9229 2011-06-18  Bruno Haible  <bruno@clisp.org>
9230
9231         getloadavg: Don't clobber LIBS. Regression from previous commit.
9232         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9233         AC_CHECK_LIB from here...
9234         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9235         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9236         gl_func_getloadavg_done.
9237         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9238
9239 2011-06-18  Bruno Haible  <bruno@clisp.org>
9240
9241         clean-temp: Improve documentation.
9242         * lib/clean-temp.h: Explain better how to use this module.
9243         Reported by John Darrington <john@darrington.wattle.id.au>.
9244
9245 2011-06-17  Bruno Haible  <bruno@clisp.org>
9246
9247         pread, pwrite: Avoid cc warning on AIX.
9248         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9249         (pwrite): Likewise.
9250
9251 2011-06-17  Bruno Haible  <bruno@clisp.org>
9252
9253         spawn-pipe tests: Fix link error.
9254         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9256
9257 2011-06-17  Bruno Haible  <bruno@clisp.org>
9258
9259         Tests: Remove unnecessary dependency.
9260         * modules/canonicalize-tests (Depends-on): Remove progname.
9261         * modules/chown-tests (Depends-on): Likewise.
9262         * modules/dirname-tests (Depends-on): Likewise.
9263         * modules/fdopendir-tests (Depends-on): Likewise.
9264         * modules/fdutimensat-tests (Depends-on): Likewise.
9265         * modules/hash-tests (Depends-on): Likewise.
9266         * modules/lchown-tests (Depends-on): Likewise.
9267         * modules/linkat-tests (Depends-on): Likewise.
9268         * modules/renameat-tests (Depends-on): Likewise.
9269         * modules/spawn-pipe-tests (Depends-on): Likewise.
9270         * modules/utimensat-tests (Depends-on): Likewise.
9271
9272 2011-06-17  Bruno Haible  <bruno@clisp.org>
9273
9274         spawn-pipe tests: Fix link error.
9275         * tests/test-spawn-pipe-child.c: Undefine fflush.
9276
9277 2011-06-17  Bruno Haible  <bruno@clisp.org>
9278
9279         Fix tests link errors.
9280         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9281         * modules/chown-tests (Makefile.am): Don't link test-chown with
9282         LIBINTL.
9283         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9284         LIBINTL.
9285         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9286         LIBINTL.
9287         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9288         LIBINTL.
9289
9290 2011-06-16  Bruno Haible  <bruno@clisp.org>
9291
9292         crypto/gc-sha1: Fix recent regression.
9293         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9294         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9295
9296         crypto/gc-md5: Fix recent regression.
9297         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9298
9299         crypto/gc-md4: Fix recent regression.
9300         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9301         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9302
9303         crypto/gc-arctwo: Fix recent regression.
9304         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9305         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9306
9307         crypto/gc-rijndael: Fix recent regression.
9308         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9309         (configure.ac): Invoke AC_LIBOBJ here.
9310         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9311         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9312
9313         crypto/gc-hmac-sha1: Fix recent regression.
9314         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9315         (configure.ac): Invoke AC_LIBOBJ here.
9316         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9317         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9318
9319         crypto/gc-hmac-md5: Fix recent regression.
9320         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9321         (configure.ac): Invoke AC_LIBOBJ here.
9322         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9324
9325         crypto/gc-des: Fix recent regression.
9326         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9327         (configure.ac): Invoke AC_LIBOBJ here.
9328         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9330
9331         crypto/gc-arcfour: Fix recent regression.
9332         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9333         (configure.ac): Invoke AC_LIBOBJ here.
9334         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9336
9337 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9338
9339         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9340         After the 2011-05-21 change, this macro requires
9341         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9342         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9343
9344 2011-06-16  Bruno Haible  <bruno@clisp.org>
9345
9346         fprintftime: Move AC_LIBOBJ invocations to module description.
9347         * m4/fprintftime.m4: Remove file.
9348         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9349         (configure.ac): Remove gl_FPRINTFTIME call.
9350         (Makefile.am): Augment lib_SOURCES.
9351         Reported by Jim Meyering.
9352
9353 2011-06-16  Bruno Haible  <bruno@clisp.org>
9354
9355         tmpfile-safer: Finish 2011-05-23 commit.
9356         * m4/stdio-safer.m4: Really remove file.
9357         Reported by Jim Meyering.
9358
9359 2011-06-16  Bruno Haible  <bruno@clisp.org>
9360
9361         syntax-check: Fix typo.
9362         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9363         printf-posix.m4.
9364         Reported by Jim Meyering.
9365
9366 2011-06-13  Jim Meyering  <meyering@redhat.com>
9367
9368         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9369         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9370
9371 2011-05-23  Bruno Haible  <bruno@clisp.org>
9372
9373         yesno: Move AC_LIBOBJ invocations to module description.
9374         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9375         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9376
9377 2011-05-23  Bruno Haible  <bruno@clisp.org>
9378
9379         xstrtol: Move AC_LIBOBJ invocations to module description.
9380         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9381         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9382
9383 2011-05-23  Bruno Haible  <bruno@clisp.org>
9384
9385         xstrtold: Move AC_LIBOBJ invocations to module description.
9386         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9387         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9388
9389 2011-05-23  Bruno Haible  <bruno@clisp.org>
9390
9391         xstrtod: Move AC_LIBOBJ invocations to module description.
9392         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9393         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9394
9395 2011-05-23  Bruno Haible  <bruno@clisp.org>
9396
9397         xnanosleep: Move AC_LIBOBJ invocations to module description.
9398         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9399         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9400
9401 2011-05-23  Bruno Haible  <bruno@clisp.org>
9402
9403         xgetcwd: Move AC_LIBOBJ invocations to module description.
9404         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9405         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9406
9407 2011-05-23  Bruno Haible  <bruno@clisp.org>
9408
9409         xalloc: Move AC_LIBOBJ invocations to module description.
9410         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9411         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9412
9413 2011-05-23  Bruno Haible  <bruno@clisp.org>
9414
9415         write-any-file: Move AC_LIBOBJ invocations to module description.
9416         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9417         invocation.
9418         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9419
9420 2011-05-23  Bruno Haible  <bruno@clisp.org>
9421
9422         utimens: Move AC_LIBOBJ invocations to module description.
9423         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9424         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9425
9426 2011-05-23  Bruno Haible  <bruno@clisp.org>
9427
9428         utimecmp: Move AC_LIBOBJ invocations to module description.
9429         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9430         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9431
9432 2011-05-23  Bruno Haible  <bruno@clisp.org>
9433
9434         userspec: Move AC_LIBOBJ invocations to module description.
9435         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9436         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9437
9438 2011-05-23  Bruno Haible  <bruno@clisp.org>
9439
9440         unlinkdir: Move AC_LIBOBJ invocations to module description.
9441         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9442         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9443
9444 2011-05-23  Bruno Haible  <bruno@clisp.org>
9445
9446         unistd-safer: Move AC_LIBOBJ invocations to module description.
9447         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9448         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9449
9450 2011-05-23  Bruno Haible  <bruno@clisp.org>
9451
9452         tempname: Move AC_LIBOBJ invocations to module description.
9453         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9454         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9455
9456 2011-05-23  Bruno Haible  <bruno@clisp.org>
9457
9458         strftime: Move AC_LIBOBJ invocations to module description.
9459         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9460         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9461
9462 2011-05-23  Bruno Haible  <bruno@clisp.org>
9463
9464         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9465         * m4/stdlib-safer.m4: Remove file.
9466         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9467         (configure.ac): Remove gl_STDLIB_SAFER call.
9468         (Makefile.am): Augment lib_SOURCES.
9469
9470 2011-05-23  Bruno Haible  <bruno@clisp.org>
9471
9472         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9473         * m4/stdio-safer.m4: Remove file.
9474         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9475         (configure.ac): Remove gl_TMPFILE_SAFER call.
9476         (Makefile.am): Augment lib_SOURCES.
9477
9478 2011-05-23  Bruno Haible  <bruno@clisp.org>
9479
9480         popen-safer: Move AC_LIBOBJ invocations to module description.
9481         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9482         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9483         (configure.ac): Remove gl_POPEN_SAFER call.
9484         (Makefile.am): Augment lib_SOURCES.
9485
9486 2011-05-23  Bruno Haible  <bruno@clisp.org>
9487
9488         freopen-safer: Move AC_LIBOBJ invocations to module description.
9489         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9490         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9491         (configure.ac): Remove gl_FREOPEN_SAFER call.
9492         (Makefile.am): Augment lib_SOURCES.
9493
9494 2011-05-23  Bruno Haible  <bruno@clisp.org>
9495
9496         fopen-safer: Move AC_LIBOBJ invocations to module description.
9497         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9498         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9499         (configure.ac): Remove gl_FOPEN_SAFER call.
9500         (Makefile.am): Augment lib_SOURCES.
9501
9502 2011-05-23  Bruno Haible  <bruno@clisp.org>
9503
9504         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9505         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9506         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9507
9508 2011-05-23  Bruno Haible  <bruno@clisp.org>
9509
9510         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9511         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9512         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9513
9514 2011-05-23  Bruno Haible  <bruno@clisp.org>
9515
9516         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9517         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9518         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9519
9520 2011-05-23  Bruno Haible  <bruno@clisp.org>
9521
9522         settime: Move AC_LIBOBJ invocations to module description.
9523         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9524         * modules/settime (Makefile.am): Augment lib_SOURCES.
9525
9526 2011-05-23  Bruno Haible  <bruno@clisp.org>
9527
9528         savedir: Move AC_LIBOBJ invocations to module description.
9529         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9530         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9531
9532 2011-05-23  Bruno Haible  <bruno@clisp.org>
9533
9534         save-cwd: Move AC_LIBOBJ invocations to module description.
9535         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9536         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9537
9538 2011-05-23  Bruno Haible  <bruno@clisp.org>
9539
9540         same: Move AC_LIBOBJ invocations to module description.
9541         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9542         * modules/same (Makefile.am): Augment lib_SOURCES.
9543
9544 2011-05-23  Bruno Haible  <bruno@clisp.org>
9545
9546         safe-write: Move AC_LIBOBJ invocations to module description.
9547         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9548         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9549         instead of gl_SAFE_WRITE.
9550         (Makefile.am): Augment lib_SOURCES.
9551
9552 2011-05-23  Bruno Haible  <bruno@clisp.org>
9553
9554         safe-read: Move AC_LIBOBJ invocations to module description.
9555         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9556         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9557         of gl_SAFE_READ.
9558         (Makefile.am): Augment lib_SOURCES.
9559
9560 2011-05-23  Bruno Haible  <bruno@clisp.org>
9561
9562         safe-alloc: Move AC_LIBOBJ invocations to module description.
9563         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9564         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9565
9566 2011-05-23  Bruno Haible  <bruno@clisp.org>
9567
9568         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9569         * m4/rijndael.m4: Remove file.
9570         * modules/crypto/rijndael (Files): Remove it.
9571         (configure.ac): Remove gl_RIJNDAEL call.
9572         (Makefile.am): Augment lib_SOURCES.
9573
9574 2011-05-23  Bruno Haible  <bruno@clisp.org>
9575
9576         readtokens: Move AC_LIBOBJ invocations to module description.
9577         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9578         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9579
9580 2011-05-23  Bruno Haible  <bruno@clisp.org>
9581
9582         read-file: Move AC_LIBOBJ invocations to module description.
9583         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9584         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9585         of gl_FUNC_READ_FILE.
9586         (Makefile.am): Augment lib_SOURCES.
9587
9588 2011-05-23  Bruno Haible  <bruno@clisp.org>
9589
9590         quotearg: Move AC_LIBOBJ invocations to module description.
9591         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9592         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9593
9594 2011-05-23  Bruno Haible  <bruno@clisp.org>
9595
9596         quote: Move AC_LIBOBJ invocations to module description.
9597         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9598         * modules/quote (Makefile.am): Augment lib_SOURCES.
9599
9600 2011-05-23  Bruno Haible  <bruno@clisp.org>
9601
9602         posixver: Move AC_LIBOBJ invocations to module description.
9603         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9604         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9605
9606 2011-05-23  Bruno Haible  <bruno@clisp.org>
9607
9608         posixtm: Move AC_LIBOBJ invocations to module description.
9609         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9610         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9611
9612 2011-05-23  Bruno Haible  <bruno@clisp.org>
9613
9614         physmem: Move AC_LIBOBJ invocations to module description.
9615         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9616         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9617
9618 2011-05-23  Bruno Haible  <bruno@clisp.org>
9619
9620         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9621         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9622         invocation.
9623         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9624
9625 2011-05-23  Bruno Haible  <bruno@clisp.org>
9626
9627         mpsort: Move AC_LIBOBJ invocations to module description.
9628         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9629         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9630
9631 2011-05-23  Bruno Haible  <bruno@clisp.org>
9632
9633         modechange: Move AC_LIBOBJ invocations to module description.
9634         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9635         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9636
9637 2011-05-23  Bruno Haible  <bruno@clisp.org>
9638
9639         mkdir-p: Move AC_LIBOBJ invocations to module description.
9640         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9641         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9642
9643 2011-05-23  Bruno Haible  <bruno@clisp.org>
9644
9645         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9646         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9647         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9648
9649 2011-05-23  Bruno Haible  <bruno@clisp.org>
9650
9651         mgetgroups: Move AC_LIBOBJ invocations to module description.
9652         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9653         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9654
9655 2011-05-23  Bruno Haible  <bruno@clisp.org>
9656
9657         memxor: Move AC_LIBOBJ invocations to module description.
9658         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9659         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9660
9661 2011-05-23  Bruno Haible  <bruno@clisp.org>
9662
9663         memcoll: Move AC_LIBOBJ invocations to module description.
9664         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9665         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9666
9667 2011-05-23  Bruno Haible  <bruno@clisp.org>
9668
9669         memcasecmp: Move AC_LIBOBJ invocations to module description.
9670         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9671         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9672
9673 2011-05-23  Bruno Haible  <bruno@clisp.org>
9674
9675         crypto/md5: Move AC_LIBOBJ invocations to module description.
9676         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9677         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9678
9679 2011-05-23  Bruno Haible  <bruno@clisp.org>
9680
9681         crypto/md4: Move AC_LIBOBJ invocations to module description.
9682         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9683         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9684
9685 2011-05-23  Bruno Haible  <bruno@clisp.org>
9686
9687         crypto/md2: Move AC_LIBOBJ invocations to module description.
9688         * m4/md2.m4: Remove file.
9689         * modules/crypto/md2 (Files): Remove it.
9690         (configure.ac): Remove gl_MD2 call.
9691         (Makefile.am): Augment lib_SOURCES.
9692
9693 2011-05-23  Bruno Haible  <bruno@clisp.org>
9694
9695         long-options: Move AC_LIBOBJ invocations to module description.
9696         * m4/long-options.m4: Remove file.
9697         * modules/long-options (Files): Remove it.
9698         (configure.ac): Remove gl_LONG_OPTIONS call.
9699         (Makefile.am): Augment lib_SOURCES.
9700
9701 2011-05-23  Bruno Haible  <bruno@clisp.org>
9702
9703         i-ring: Move AC_LIBOBJ invocations to module description.
9704         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9705         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9706
9707 2011-05-23  Bruno Haible  <bruno@clisp.org>
9708
9709         idcache: Move AC_LIBOBJ invocations to module description.
9710         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9711         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9712
9713 2011-05-23  Bruno Haible  <bruno@clisp.org>
9714
9715         human: Move AC_LIBOBJ invocations to module description.
9716         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9717         * modules/human (Makefile.am): Augment lib_SOURCES.
9718
9719 2011-05-23  Bruno Haible  <bruno@clisp.org>
9720
9721         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9722         * m4/hmac-sha1.m4: Remove file.
9723         * modules/crypto/hmac-sha1 (Files): Remove it.
9724         (configure.ac): Remove gl_HMAC_SHA1 call.
9725         (Makefile.am): Augment lib_SOURCES.
9726
9727 2011-05-23  Bruno Haible  <bruno@clisp.org>
9728
9729         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9730         * m4/hmac-md5.m4: Remove file.
9731         * modules/crypto/hmac-md5 (Files): Remove it.
9732         (configure.ac): Remove gl_HMAC_MD5 call.
9733         (Makefile.am): Augment lib_SOURCES.
9734
9735 2011-05-23  Bruno Haible  <bruno@clisp.org>
9736
9737         hash: Move AC_LIBOBJ invocations to module description.
9738         * m4/hash.m4: Remove file.
9739         * modules/hash (Files): Remove it.
9740         (configure.ac): Remove gl_HASH call.
9741         (Makefile.am): Augment lib_SOURCES.
9742
9743 2011-05-23  Bruno Haible  <bruno@clisp.org>
9744
9745         hard-locale: Move AC_LIBOBJ invocations to module description.
9746         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9747         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9748
9749 2011-05-23  Bruno Haible  <bruno@clisp.org>
9750
9751         getugroups: Move AC_LIBOBJ invocations to module description.
9752         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9753         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9754
9755 2011-05-23  Bruno Haible  <bruno@clisp.org>
9756
9757         gettime: Move AC_LIBOBJ invocations to module description.
9758         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9759         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9760
9761 2011-05-23  Bruno Haible  <bruno@clisp.org>
9762
9763         getndelim2: Move AC_LIBOBJ invocations to module description.
9764         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9765         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9766
9767 2011-05-23  Bruno Haible  <bruno@clisp.org>
9768
9769         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9770         * m4/gc-pbkdf2-sha1.m4: Remove file.
9771         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9772         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9773         (Makefile.am): Augment lib_SOURCES.
9774
9775 2011-05-23  Bruno Haible  <bruno@clisp.org>
9776
9777         fts: Move AC_LIBOBJ invocations to module description.
9778         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9779         * modules/fts (configure.ac): ... to here.
9780
9781 2011-05-23  Bruno Haible  <bruno@clisp.org>
9782
9783         file-type: Move AC_LIBOBJ invocations to module description.
9784         * m4/file-type.m4: Remove file.
9785         * modules/file-type (Files): Remove it.
9786         (configure.ac): Remove gl_FILE_TYPE call.
9787         (Makefile.am): Augment lib_SOURCES.
9788
9789 2011-05-23  Bruno Haible  <bruno@clisp.org>
9790
9791         filenamecat*: Respect rules for use of AC_LIBOBJ.
9792         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9793         Remove AC_LIBOBJ invocation.
9794         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9795         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9796
9797 2011-05-23  Bruno Haible  <bruno@clisp.org>
9798
9799         filemode: Move AC_LIBOBJ invocations to module description.
9800         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9801         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9802
9803 2011-05-23  Bruno Haible  <bruno@clisp.org>
9804
9805         openat-safer: Move AC_LIBOBJ invocations to module description.
9806         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9807         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9808
9809 2011-05-23  Bruno Haible  <bruno@clisp.org>
9810
9811         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9812         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9813         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9814
9815 2011-05-23  Bruno Haible  <bruno@clisp.org>
9816
9817         exclude: Move AC_LIBOBJ invocations to module description.
9818         * m4/exclude.m4: Remove file.
9819         * modules/exclude (Files): Remove it.
9820         (configure.ac): Remove gl_EXCLUDE call.
9821         (Makefile.am): Augment lib_SOURCES.
9822
9823 2011-05-23  Bruno Haible  <bruno@clisp.org>
9824
9825         dirname*: Respect rules for use of AC_LIBOBJ.
9826         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9827         invocations.
9828         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9829         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9830
9831 2011-05-23  Bruno Haible  <bruno@clisp.org>
9832
9833         dirent-safer: Move AC_LIBOBJ invocations to module description.
9834         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9835         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9836
9837 2011-05-23  Bruno Haible  <bruno@clisp.org>
9838
9839         crypto/des: Move AC_LIBOBJ invocations to module description.
9840         * m4/des.m4: Remove file.
9841         * modules/crypto/des (Files): Remove it.
9842         (configure.ac): Remove gl_DES call.
9843         (Makefile.am): Augment lib_SOURCES.
9844
9845 2011-05-23  Bruno Haible  <bruno@clisp.org>
9846
9847         cycle-check: Move AC_LIBOBJ invocations to module description.
9848         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9849         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9850
9851 2011-05-23  Bruno Haible  <bruno@clisp.org>
9852
9853         c-strtold: Move AC_LIBOBJ invocations to module description.
9854         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9855         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9856
9857 2011-05-23  Bruno Haible  <bruno@clisp.org>
9858
9859         c-strtod: Move AC_LIBOBJ invocations to module description.
9860         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9861         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9862
9863 2011-05-23  Bruno Haible  <bruno@clisp.org>
9864
9865         crc: Move AC_LIBOBJ invocations to module description.
9866         * m4/crc.m4: Remove file.
9867         * modules/crc (Files): Remove it.
9868         (configure.ac): Remove gl_CRC call.
9869         (Makefile.am): Augment lib_SOURCES.
9870
9871 2011-05-23  Bruno Haible  <bruno@clisp.org>
9872
9873         close-stream: Move AC_LIBOBJ invocations to module description.
9874         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9875         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9876
9877 2011-05-23  Bruno Haible  <bruno@clisp.org>
9878
9879         closeout: Move AC_LIBOBJ invocations to module description.
9880         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9881         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9882
9883 2011-05-23  Bruno Haible  <bruno@clisp.org>
9884
9885         closein: Move AC_LIBOBJ invocations to module description.
9886         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9887         * modules/closein (Makefile.am): Augment lib_SOURCES.
9888
9889 2011-05-23  Bruno Haible  <bruno@clisp.org>
9890
9891         cloexec: Move AC_LIBOBJ invocations to module description.
9892         * m4/cloexec.m4: Remove file.
9893         * modules/cloexec (Files): Remove it.
9894         (configure.ac): Remove gl_CLOEXEC call.
9895         (Makefile.am): Augment lib_SOURCES.
9896
9897 2011-05-23  Bruno Haible  <bruno@clisp.org>
9898
9899         check-version: Move AC_LIBOBJ invocations to module description.
9900         * m4/check-version.m4: Remove file.
9901         * modules/check-version (Files): Remove it.
9902         (configure.ac): Remove gl_CHECK_VERSION call.
9903         (Makefile.am): Augment lib_SOURCES.
9904
9905 2011-05-23  Bruno Haible  <bruno@clisp.org>
9906
9907         chdir-safer: Move AC_LIBOBJ invocations to module description.
9908         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9909         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9910
9911 2011-05-23  Bruno Haible  <bruno@clisp.org>
9912
9913         canonicalize: Move AC_LIBOBJ invocations to module description.
9914         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9915         AC_LIBOBJ invocation.
9916         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9917
9918 2011-05-23  Bruno Haible  <bruno@clisp.org>
9919
9920         canon-host: Move AC_LIBOBJ invocations to module description.
9921         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9922         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9923         instead of gl_CANON_HOST.
9924         (Makefile.am): Augment lib_SOURCES.
9925
9926 2011-05-23  Bruno Haible  <bruno@clisp.org>
9927
9928         backupfile: Move AC_LIBOBJ invocations to module description.
9929         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9930         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9931
9932 2011-05-23  Bruno Haible  <bruno@clisp.org>
9933
9934         argmatch: Move AC_LIBOBJ invocations to module description.
9935         * m4/argmatch.m4: Remove file.
9936         * modules/argmatch (Files): Remove it.
9937         (configure.ac): Remove gl_ARGMATCH call.
9938         (Makefile.am): Augment lib_SOURCES.
9939
9940 2011-05-23  Bruno Haible  <bruno@clisp.org>
9941
9942         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9943         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9944         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9945
9946 2011-05-23  Bruno Haible  <bruno@clisp.org>
9947
9948         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9949         * m4/arcfour.m4: Remove file.
9950         * modules/crypto/arcfour (Files): Remove it.
9951         (configure.ac): Remove gl_ARCFOUR call.
9952         (Makefile.am): Augment lib_SOURCES.
9953
9954 2011-05-22  Bruno Haible  <bruno@clisp.org>
9955
9956         write: Move AC_LIBOBJ invocations to module description.
9957         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9958         * modules/write (configure.ac): ... to here.
9959
9960 2011-05-22  Bruno Haible  <bruno@clisp.org>
9961
9962         wmemset: Move AC_LIBOBJ invocations to module description.
9963         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9964         here...
9965         * modules/wmemset (configure.ac): ... to here.
9966
9967 2011-05-22  Bruno Haible  <bruno@clisp.org>
9968
9969         wmemmove: Move AC_LIBOBJ invocations to module description.
9970         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9971         here...
9972         * modules/wmemmove (configure.ac): ... to here.
9973
9974 2011-05-22  Bruno Haible  <bruno@clisp.org>
9975
9976         wmemcpy: Move AC_LIBOBJ invocations to module description.
9977         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9978         here...
9979         * modules/wmemcpy (configure.ac): ... to here.
9980
9981 2011-05-22  Bruno Haible  <bruno@clisp.org>
9982
9983         wmemcmp: Move AC_LIBOBJ invocations to module description.
9984         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9985         here...
9986         * modules/wmemcmp (configure.ac): ... to here.
9987
9988 2011-05-22  Bruno Haible  <bruno@clisp.org>
9989
9990         wmemchr: Move AC_LIBOBJ invocations to module description.
9991         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9992         here...
9993         * modules/wmemchr (configure.ac): ... to here.
9994
9995 2011-05-22  Bruno Haible  <bruno@clisp.org>
9996
9997         wcswidth: Move AC_LIBOBJ invocations to module description.
9998         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9999         here...
10000         * modules/wcswidth (configure.ac): ... to here.
10001
10002 2011-05-22  Bruno Haible  <bruno@clisp.org>
10003
10004         wcwidth: Respect rules for use of AC_LIBOBJ.
10005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
10006         invocation from here...
10007         * modules/wcwidth (configure.ac): ... to here.
10008         (Depends-on): Update conditions.
10009
10010 2011-05-22  Bruno Haible  <bruno@clisp.org>
10011
10012         wctype: Move AC_LIBOBJ invocations to module description.
10013         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
10014         invocation from here...
10015         * modules/wctype (configure.ac): ... to here.
10016         (Depends-on): Update conditions.
10017
10018 2011-05-22  Bruno Haible  <bruno@clisp.org>
10019
10020         wctrans: Move AC_LIBOBJ invocations to module description.
10021         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
10022         invocation from here...
10023         * modules/wctrans (configure.ac): ... to here.
10024
10025 2011-05-22  Bruno Haible  <bruno@clisp.org>
10026
10027         wctomb: Move AC_LIBOBJ invocations to module description.
10028         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
10029         invocations from here...
10030         * modules/wctomb (configure.ac): ... to here.
10031
10032 2011-05-22  Bruno Haible  <bruno@clisp.org>
10033
10034         wctob: Move AC_LIBOBJ invocations to module description.
10035         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
10036         gl_PREREQ_WCTOB invocations from here...
10037         * modules/wctob (configure.ac): ... to here.
10038         (Depends-on): Update conditions.
10039
10040 2011-05-22  Bruno Haible  <bruno@clisp.org>
10041
10042         wcsxfrm: Move AC_LIBOBJ invocations to module description.
10043         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
10044         here...
10045         * modules/wcsxfrm (configure.ac): ... to here.
10046
10047 2011-05-22  Bruno Haible  <bruno@clisp.org>
10048
10049         wcstok: Move AC_LIBOBJ invocations to module description.
10050         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
10051         * modules/wcstok (configure.ac): ... to here.
10052
10053 2011-05-22  Bruno Haible  <bruno@clisp.org>
10054
10055         wcsstr: Move AC_LIBOBJ invocations to module description.
10056         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
10057         * modules/wcsstr (configure.ac): ... to here.
10058
10059 2011-05-22  Bruno Haible  <bruno@clisp.org>
10060
10061         wcsspn: Move AC_LIBOBJ invocations to module description.
10062         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
10063         * modules/wcsspn (configure.ac): ... to here.
10064
10065 2011-05-22  Bruno Haible  <bruno@clisp.org>
10066
10067         wcsrtombs: Move AC_LIBOBJ invocations to module description.
10068         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
10069         gl_PREREQ_WCSRTOMBS invocations from here...
10070         * modules/wcsrtombs (configure.ac): ... to here.
10071
10072 2011-05-22  Bruno Haible  <bruno@clisp.org>
10073
10074         wcsrchr: Move AC_LIBOBJ invocations to module description.
10075         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
10076         here...
10077         * modules/wcsrchr (configure.ac): ... to here.
10078
10079 2011-05-22  Bruno Haible  <bruno@clisp.org>
10080
10081         wcspbrk: Move AC_LIBOBJ invocations to module description.
10082         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
10083         here...
10084         * modules/wcspbrk (configure.ac): ... to here.
10085
10086 2011-05-22  Bruno Haible  <bruno@clisp.org>
10087
10088         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
10089         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
10090         gl_PREREQ_WCSNRTOMBS invocations from here...
10091         * modules/wcsnrtombs (configure.ac): ... to here.
10092
10093 2011-05-22  Bruno Haible  <bruno@clisp.org>
10094
10095         wcsnlen: Move AC_LIBOBJ invocations to module description.
10096         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
10097         here...
10098         * modules/wcsnlen (configure.ac): ... to here.
10099
10100 2011-05-22  Bruno Haible  <bruno@clisp.org>
10101
10102         wcsncpy: Move AC_LIBOBJ invocations to module description.
10103         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
10104         here...
10105         * modules/wcsncpy (configure.ac): ... to here.
10106
10107 2011-05-22  Bruno Haible  <bruno@clisp.org>
10108
10109         wcsncmp: Move AC_LIBOBJ invocations to module description.
10110         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
10111         here...
10112         * modules/wcsncmp (configure.ac): ... to here.
10113
10114 2011-05-22  Bruno Haible  <bruno@clisp.org>
10115
10116         wcsncat: Move AC_LIBOBJ invocations to module description.
10117         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
10118         here...
10119         * modules/wcsncat (configure.ac): ... to here.
10120
10121 2011-05-22  Bruno Haible  <bruno@clisp.org>
10122
10123         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
10124         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
10125         from here...
10126         * modules/wcsncasecmp (configure.ac): ... to here.
10127
10128 2011-05-22  Bruno Haible  <bruno@clisp.org>
10129
10130         wcslen: Move AC_LIBOBJ invocations to module description.
10131         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
10132         * modules/wcslen (configure.ac): ... to here.
10133
10134 2011-05-22  Bruno Haible  <bruno@clisp.org>
10135
10136         wcsdup: Move AC_LIBOBJ invocations to module description.
10137         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
10138         * modules/wcsdup (configure.ac): ... to here.
10139
10140 2011-05-22  Bruno Haible  <bruno@clisp.org>
10141
10142         wcscspn: Move AC_LIBOBJ invocations to module description.
10143         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
10144         here...
10145         * modules/wcscspn (configure.ac): ... to here.
10146
10147 2011-05-22  Bruno Haible  <bruno@clisp.org>
10148
10149         wcscpy: Move AC_LIBOBJ invocations to module description.
10150         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
10151         * modules/wcscpy (configure.ac): ... to here.
10152
10153 2011-05-22  Bruno Haible  <bruno@clisp.org>
10154
10155         wcscoll: Move AC_LIBOBJ invocations to module description.
10156         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
10157         here...
10158         * modules/wcscoll (configure.ac): ... to here.
10159
10160 2011-05-22  Bruno Haible  <bruno@clisp.org>
10161
10162         wcscmp: Move AC_LIBOBJ invocations to module description.
10163         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10164         * modules/wcscmp (configure.ac): ... to here.
10165
10166 2011-05-22  Bruno Haible  <bruno@clisp.org>
10167
10168         wcschr: Move AC_LIBOBJ invocations to module description.
10169         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10170         * modules/wcschr (configure.ac): ... to here.
10171
10172 2011-05-22  Bruno Haible  <bruno@clisp.org>
10173
10174         wcscat: Move AC_LIBOBJ invocations to module description.
10175         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10176         * modules/wcscat (configure.ac): ... to here.
10177
10178 2011-05-22  Bruno Haible  <bruno@clisp.org>
10179
10180         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10181         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10182         here...
10183         * modules/wcscasecmp (configure.ac): ... to here.
10184
10185 2011-05-22  Bruno Haible  <bruno@clisp.org>
10186
10187         wcrtomb: Move AC_LIBOBJ invocations to module description.
10188         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10189         invocations from here...
10190         * modules/wcrtomb (configure.ac): ... to here.
10191
10192 2011-05-22  Bruno Haible  <bruno@clisp.org>
10193
10194         wcpncpy: Move AC_LIBOBJ invocations to module description.
10195         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10196         here...
10197         * modules/wcpncpy (configure.ac): ... to here.
10198
10199 2011-05-22  Bruno Haible  <bruno@clisp.org>
10200
10201         wcpcpy: Move AC_LIBOBJ invocations to module description.
10202         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10203         * modules/wcpcpy (configure.ac): ... to here.
10204
10205 2011-05-22  Bruno Haible  <bruno@clisp.org>
10206
10207         waitpid: Move AC_LIBOBJ invocations to module description.
10208         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10209         invocation from here...
10210         * modules/waitpid (configure.ac): ... to here.
10211
10212 2011-05-22  Bruno Haible  <bruno@clisp.org>
10213
10214         utimensat: Move AC_LIBOBJ invocations to module description.
10215         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10216         here...
10217         * modules/utimensat (configure.ac): ... to here.
10218
10219 2011-05-22  Bruno Haible  <bruno@clisp.org>
10220
10221         usleep: Move AC_LIBOBJ invocations to module description.
10222         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10223         here...
10224         * modules/usleep (configure.ac): ... to here.
10225
10226 2011-05-22  Bruno Haible  <bruno@clisp.org>
10227
10228         unlockpt: Move AC_LIBOBJ invocations to module description.
10229         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10230         gl_PREREQ_UNLOCKPT invocations from here...
10231         * modules/unlockpt (configure.ac): ... to here.
10232
10233 2011-05-22  Bruno Haible  <bruno@clisp.org>
10234
10235         unlink: Respect rules for use of AC_LIBOBJ.
10236         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10237         * modules/unlink (configure.ac): ... to here.
10238
10239 2011-05-22  Bruno Haible  <bruno@clisp.org>
10240
10241         uname: Move AC_LIBOBJ invocations to module description.
10242         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10244         here...
10245         * modules/uname (configure.ac): ... to here.
10246
10247 2011-05-22  Bruno Haible  <bruno@clisp.org>
10248
10249         ttyname_r: Move AC_LIBOBJ invocations to module description.
10250         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10251         gl_PREREQ_TTYNAME_R invocations from here...
10252         * modules/ttyname_r (configure.ac): ... to here.
10253
10254 2011-05-22  Bruno Haible  <bruno@clisp.org>
10255
10256         tsearch: Move AC_LIBOBJ invocations to module description.
10257         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10258         invocations from here...
10259         * modules/tsearch (configure.ac): ... to here.
10260
10261 2011-05-22  Bruno Haible  <bruno@clisp.org>
10262
10263         towctrans: Move AC_LIBOBJ invocations to module description.
10264         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10265         AC_LIBOBJ invocation from here...
10266         * modules/towctrans (configure.ac): ... to here.
10267
10268 2011-05-22  Bruno Haible  <bruno@clisp.org>
10269
10270         tmpfile: Move AC_LIBOBJ invocations to module description.
10271         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10272         invocations from here...
10273         * modules/tmpfile (configure.ac): ... to here.
10274
10275 2011-05-22  Bruno Haible  <bruno@clisp.org>
10276
10277         times: Move AC_LIBOBJ invocations to module description.
10278         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10279         * modules/times (configure.ac): ... to here.
10280
10281 2011-05-22  Bruno Haible  <bruno@clisp.org>
10282
10283         time_r: Move AC_LIBOBJ invocations to module description.
10284         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10285         invocations from here...
10286         * modules/time_r (configure.ac): ... to here.
10287
10288 2011-05-22  Bruno Haible  <bruno@clisp.org>
10289
10290         timegm: Move AC_LIBOBJ invocations to module description.
10291         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10292         invocations from here...
10293         * modules/timegm (configure.ac): ... to here.
10294
10295 2011-05-22  Bruno Haible  <bruno@clisp.org>
10296
10297         tcgetsid: Move AC_LIBOBJ invocations to module description.
10298         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10299         and gl_PREREQ_TCGETSID invocations from here...
10300         * modules/tcgetsid (configure.ac): ... to here.
10301         (Depends-on): Update conditions.
10302
10303 2011-05-22  Bruno Haible  <bruno@clisp.org>
10304
10305         symlinkat: Move AC_LIBOBJ invocations to module description.
10306         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10307         here...
10308         * modules/symlinkat (configure.ac): ... to here.
10309
10310 2011-05-22  Bruno Haible  <bruno@clisp.org>
10311
10312         symlink: Move AC_LIBOBJ invocations to module description.
10313         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10314         here...
10315         * modules/symlink (configure.ac): ... to here.
10316
10317 2011-05-22  Bruno Haible  <bruno@clisp.org>
10318
10319         strverscmp: Move AC_LIBOBJ invocations to module description.
10320         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10321         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10322         from here...
10323         * modules/strverscmp (configure.ac): ... to here.
10324
10325 2011-05-22  Bruno Haible  <bruno@clisp.org>
10326
10327         strtok_r: Move AC_LIBOBJ invocations to module description.
10328         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10329         and gl_PREREQ_STRTOK_R invocations from here...
10330         * modules/strtok_r (configure.ac): ... to here.
10331         (Depends-on): Update conditions.
10332
10333 2011-05-22  Bruno Haible  <bruno@clisp.org>
10334
10335         strtoumax: Move AC_LIBOBJ invocations to module description.
10336         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10337         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10338         from here...
10339         * modules/strtoumax (configure.ac): ... to here.
10340
10341 2011-05-22  Bruno Haible  <bruno@clisp.org>
10342
10343         strtoimax: Move AC_LIBOBJ invocations to module description.
10344         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10346         from here...
10347         * modules/strtoimax (configure.ac): ... to here.
10348
10349 2011-05-22  Bruno Haible  <bruno@clisp.org>
10350
10351         strtoull: Move AC_LIBOBJ invocations to module description.
10352         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10354         from here...
10355         * modules/strtoull (configure.ac): ... to here.
10356
10357 2011-05-22  Bruno Haible  <bruno@clisp.org>
10358
10359         strtoll: Move AC_LIBOBJ invocations to module description.
10360         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10361         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10362         here...
10363         * modules/strtoll (configure.ac): ... to here.
10364
10365 2011-05-22  Bruno Haible  <bruno@clisp.org>
10366
10367         strtoul: Move AC_LIBOBJ invocations to module description.
10368         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10369         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10370         * modules/strtoul (configure.ac): ... to here.
10371
10372 2011-05-22  Bruno Haible  <bruno@clisp.org>
10373
10374         strtol: Move AC_LIBOBJ invocations to module description.
10375         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10376         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10377         * modules/strtol (configure.ac): ... to here.
10378
10379 2011-05-22  Bruno Haible  <bruno@clisp.org>
10380
10381         strtod: Move AC_LIBOBJ invocations to module description.
10382         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10383         invocations from here...
10384         * modules/strtod (configure.ac): ... to here.
10385
10386 2011-05-22  Bruno Haible  <bruno@clisp.org>
10387
10388         strstr*: Move AC_LIBOBJ invocations to module description.
10389         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10390         invocations from here...
10391         * modules/strstr-simple (configure.ac): ... to here.
10392         * modules/strstr (configure.ac): ... and here.
10393
10394 2011-05-22  Bruno Haible  <bruno@clisp.org>
10395
10396         strsignal: Move AC_LIBOBJ invocations to module description.
10397         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10398         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10399         * modules/strsignal (configure.ac): ... to here.
10400         (Depends-on): Update conditions.
10401
10402 2011-05-22  Bruno Haible  <bruno@clisp.org>
10403
10404         strsep: Move AC_LIBOBJ invocations to module description.
10405         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10406         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10407         here...
10408         * modules/strsep (configure.ac): ... to here.
10409
10410 2011-05-22  Bruno Haible  <bruno@clisp.org>
10411
10412         strptime: Move AC_LIBOBJ invocations to module description.
10413         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10414         gl_PREREQ_STRPTIME invocations from here...
10415         * modules/strptime (configure.ac): ... to here.
10416
10417 2011-05-22  Bruno Haible  <bruno@clisp.org>
10418
10419         strpbrk: Move AC_LIBOBJ invocations to module description.
10420         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10421         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10422         here...
10423         * modules/strpbrk (configure.ac): ... to here.
10424
10425 2011-05-22  Bruno Haible  <bruno@clisp.org>
10426
10427         strnlen: Move AC_LIBOBJ invocations to module description.
10428         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10429         invocations from here...
10430         * modules/strnlen (configure.ac): ... to here.
10431
10432 2011-05-22  Bruno Haible  <bruno@clisp.org>
10433
10434         strndup: Move AC_LIBOBJ invocations to module description.
10435         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10436         invocations from here...
10437         * modules/strndup (configure.ac): ... to here.
10438         (Depends-on): Update conditions.
10439
10440 2011-05-22  Bruno Haible  <bruno@clisp.org>
10441
10442         strncat: Move AC_LIBOBJ invocations to module description.
10443         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10444         invocations from here...
10445         * modules/strncat (configure.ac): ... to here.
10446
10447 2011-05-22  Bruno Haible  <bruno@clisp.org>
10448
10449         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10450         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10451         invocations from here...
10452         * modules/strdup (configure.ac): ... to here.
10453         * modules/strdup-posix (configure.ac): ... and here.
10454
10455 2011-05-22  Bruno Haible  <bruno@clisp.org>
10456
10457         strcspn: Move AC_LIBOBJ invocations to module description.
10458         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10459         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10460         here...
10461         * modules/strcspn (configure.ac): ... to here.
10462
10463 2011-05-22  Bruno Haible  <bruno@clisp.org>
10464
10465         strchrnul: Move AC_LIBOBJ invocations to module description.
10466         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10467         gl_PREREQ_STRCHRNUL invocations from here...
10468         * modules/strchrnul (configure.ac): ... to here.
10469
10470 2011-05-22  Bruno Haible  <bruno@clisp.org>
10471
10472         strcasestr*: Move AC_LIBOBJ invocations to module description.
10473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10474         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10475         * modules/strcasestr-simple (configure.ac): ... to here.
10476         * modules/strcasestr (configure.ac): ... and here.
10477
10478 2011-05-22  Bruno Haible  <bruno@clisp.org>
10479
10480         strcase: Move AC_LIBOBJ invocations to module description.
10481         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10482         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10483         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10484         gl_PREREQ_STRNCASECMP invocations from here...
10485         * modules/strcase (configure.ac): ... to here.
10486
10487 2011-05-22  Bruno Haible  <bruno@clisp.org>
10488
10489         stpncpy: Move AC_LIBOBJ invocations to module description.
10490         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10491         here...
10492         * modules/stpncpy (configure.ac): ... to here.
10493
10494 2011-05-22  Bruno Haible  <bruno@clisp.org>
10495
10496         stpcpy: Move AC_LIBOBJ invocations to module description.
10497         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10498         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10499         here...
10500         * modules/stpcpy (configure.ac): ... to here.
10501
10502 2011-05-21  Bruno Haible  <bruno@clisp.org>
10503
10504         stat: Move AC_LIBOBJ invocations to module description.
10505         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10506         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10507         here...
10508         * modules/stat (configure.ac): ... to here.
10509
10510 2011-05-21  Bruno Haible  <bruno@clisp.org>
10511
10512         sleep: Move AC_LIBOBJ invocations to module description.
10513         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10514         * modules/sleep (configure.ac): ... to here.
10515
10516 2011-05-21  Bruno Haible  <bruno@clisp.org>
10517
10518         signbit: Move AC_LIBOBJ invocations to module description.
10519         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10520         * modules/signbit (configure.ac): ... to here.
10521
10522 2011-05-21  Bruno Haible  <bruno@clisp.org>
10523
10524         sigprocmask: Move AC_LIBOBJ invocations to module description.
10525         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10526         gl_PREREQ_SIGPROMASK invocations from here...
10527         * modules/sigprocmask (configure.ac): ... to here.
10528
10529 2011-05-21  Bruno Haible  <bruno@clisp.org>
10530
10531         sigaction: Move AC_LIBOBJ invocations to module description.
10532         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10533         gl_PREREQ_SIGACTION invocations from here...
10534         * modules/sigaction (configure.ac): ... to here.
10535
10536 2011-05-21  Bruno Haible  <bruno@clisp.org>
10537
10538         sig2str: Move AC_LIBOBJ invocations to module description.
10539         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10540         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10541         here...
10542         * modules/sig2str (configure.ac): ... to here.
10543
10544 2011-05-21  Bruno Haible  <bruno@clisp.org>
10545
10546         setlocale: Move AC_LIBOBJ invocations to module description.
10547         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10548         gl_PREREQ_SETLOCALE invocations from here...
10549         * modules/setlocale (configure.ac): ... to here.
10550
10551 2011-05-21  Bruno Haible  <bruno@clisp.org>
10552
10553         unsetenv: Move AC_LIBOBJ invocations to module description.
10554         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10555         and gl_PREREQ_UNSETENV invocations from here...
10556         * modules/unsetenv (configure.ac): ... to here.
10557         (Depends-on): Update.
10558
10559 2011-05-21  Bruno Haible  <bruno@clisp.org>
10560
10561         setenv: Move AC_LIBOBJ invocations to module description.
10562         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10563         here...
10564         * modules/setenv (configure.ac): ... to here.
10565
10566 2011-05-21  Bruno Haible  <bruno@clisp.org>
10567
10568         selinux-h: Move AC_LIBOBJ invocations to module description.
10569         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10570         AC_LIBOBJ invocation from here...
10571         * modules/selinux-h (configure.ac): ... to here.
10572
10573 2011-05-21  Bruno Haible  <bruno@clisp.org>
10574
10575         select: Respect rules for use of AC_LIBOBJ.
10576         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10577         here...
10578         * modules/select (configure.ac): ... to here.
10579
10580 2011-05-21  Bruno Haible  <bruno@clisp.org>
10581
10582         scandir: Move AC_LIBOBJ invocations to module description.
10583         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10584         invocations from here...
10585         * modules/scandir (configure.ac): ... to here.
10586
10587 2011-05-21  Bruno Haible  <bruno@clisp.org>
10588
10589         rpmatch: Move AC_LIBOBJ invocations to module description.
10590         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10591         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10592         here...
10593         * modules/rpmatch (configure.ac): ... to here.
10594
10595 2011-05-21  Bruno Haible  <bruno@clisp.org>
10596
10597         rmdir: Respect rules for use of AC_LIBOBJ.
10598         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10599         * modules/rmdir (configure.ac): ... to here.
10600
10601 2011-05-21  Bruno Haible  <bruno@clisp.org>
10602
10603         renameat: Move AC_LIBOBJ invocations to module description.
10604         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10605         here...
10606         * modules/renameat (configure.ac): ... to here.
10607
10608 2011-05-21  Bruno Haible  <bruno@clisp.org>
10609
10610         rename: Respect rules for use of AC_LIBOBJ.
10611         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10612         here...
10613         * modules/rename (configure.ac): ... to here.
10614
10615 2011-05-21  Bruno Haible  <bruno@clisp.org>
10616
10617         remove: Move AC_LIBOBJ invocations to module description.
10618         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10619         here...
10620         * modules/remove (configure.ac): ... to here.
10621
10622 2011-05-21  Bruno Haible  <bruno@clisp.org>
10623
10624         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10625         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10626         macro.
10627         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10628         * modules/relocatable-lib (configure.ac): ... to here.
10629         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10630         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10631
10632 2011-05-21  Bruno Haible  <bruno@clisp.org>
10633
10634         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10635         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10636         here...
10637         * modules/relocatable-prog (configure.ac): ... to here.
10638
10639 2011-05-21  Bruno Haible  <bruno@clisp.org>
10640
10641         regex: Move AC_LIBOBJ invocations to module description.
10642         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10643         invocations from here...
10644         * modules/regex (configure.ac): ... to here.
10645
10646 2011-05-21  Bruno Haible  <bruno@clisp.org>
10647
10648         realloc-*: Move AC_LIBOBJ invocations to module description.
10649         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10650         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10651         AC_LIBOBJ invocations from here...
10652         * modules/realloc-gnu (configure.ac): ... to here.
10653         * modules/realloc-posix (configure.ac): ... and here.
10654
10655 2011-05-21  Bruno Haible  <bruno@clisp.org>
10656
10657         readutmp: Move AC_LIBOBJ invocations to module description.
10658         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10659         * modules/readutmp (configure.ac): ... to here.
10660
10661 2011-05-21  Bruno Haible  <bruno@clisp.org>
10662
10663         readlinkat: Move AC_LIBOBJ invocations to module description.
10664         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10665         here...
10666         * modules/readlinkat (configure.ac): ... to here.
10667
10668 2011-05-21  Bruno Haible  <bruno@clisp.org>
10669
10670         readlink: Move AC_LIBOBJ invocations to module description.
10671         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10672         gl_PREREQ_READLINK invocations from here...
10673         * modules/readlink (configure.ac): ... to here.
10674
10675 2011-05-21  Bruno Haible  <bruno@clisp.org>
10676
10677         readline: Move AC_LIBOBJ invocations to module description.
10678         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10679         gl_PREREQ_READLINE invocations from here...
10680         * modules/readline (configure.ac): ... to here.
10681
10682 2011-05-21  Bruno Haible  <bruno@clisp.org>
10683
10684         read: Move AC_LIBOBJ invocations to module description.
10685         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10686         * modules/read (configure.ac): ... to here.
10687
10688 2011-05-21  Bruno Haible  <bruno@clisp.org>
10689
10690         rawmemchr: Move AC_LIBOBJ invocations to module description.
10691         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10693         from here...
10694         * modules/rawmemchr (configure.ac): ... to here.
10695
10696 2011-05-21  Bruno Haible  <bruno@clisp.org>
10697
10698         random_r: Move AC_LIBOBJ invocations to module description.
10699         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10700         gl_PREREQ_RANDOM_R invocations from here...
10701         * modules/random_r (configure.ac): ... to here.
10702
10703 2011-05-21  Bruno Haible  <bruno@clisp.org>
10704
10705         pwrite: Move AC_LIBOBJ invocations to module description.
10706         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10707         * modules/pwrite (configure.ac): ... to here.
10708
10709 2011-05-21  Bruno Haible  <bruno@clisp.org>
10710
10711         putenv: Move AC_LIBOBJ invocations to module description.
10712         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10713         * modules/putenv (configure.ac): ... to here.
10714
10715 2011-05-21  Bruno Haible  <bruno@clisp.org>
10716
10717         login_tty: Move AC_LIBOBJ invocations to module description.
10718         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10719         * modules/login_tty (configure.ac): ... to here.
10720
10721 2011-05-21  Bruno Haible  <bruno@clisp.org>
10722
10723         openpty: Move AC_LIBOBJ invocations to module description.
10724         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10725         * modules/openpty (configure.ac): ... to here.
10726
10727 2011-05-21  Bruno Haible  <bruno@clisp.org>
10728
10729         forkpty: Move AC_LIBOBJ invocations to module description.
10730         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10731         * modules/forkpty (configure.ac): ... to here.
10732
10733 2011-05-21  Bruno Haible  <bruno@clisp.org>
10734
10735         ptsname: Move AC_LIBOBJ invocations to module description.
10736         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10737         invocations from here...
10738         * modules/ptsname (configure.ac): ... to here.
10739
10740 2011-05-21  Bruno Haible  <bruno@clisp.org>
10741
10742         pread: Move AC_LIBOBJ invocations to module description.
10743         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10744         * modules/pread (configure.ac): ... to here.
10745
10746 2011-05-21  Bruno Haible  <bruno@clisp.org>
10747
10748         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10749         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10750         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10751         * modules/posix_spawn (configure.ac): ... to here.
10752         * modules/posix_spawnp (configure.ac): ... and here.
10753
10754 2011-05-21  Bruno Haible  <bruno@clisp.org>
10755
10756         popen: Move AC_LIBOBJ invocations to module description.
10757         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10758         invocations from here...
10759         * modules/popen (configure.ac): ... to here.
10760
10761 2011-05-21  Bruno Haible  <bruno@clisp.org>
10762
10763         poll: Move AC_LIBOBJ invocations to module description.
10764         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10765         invocations from here...
10766         * modules/poll (configure.ac): ... to here.
10767
10768 2011-05-21  Bruno Haible  <bruno@clisp.org>
10769
10770         pipe-posix: Move AC_LIBOBJ invocations to module description.
10771         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10772         * modules/pipe-posix (configure.ac): ... to here.
10773
10774 2011-05-21  Bruno Haible  <bruno@clisp.org>
10775
10776         openat: Respect rules for use of AC_LIBOBJ.
10777         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10778         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10779         * modules/openat (configure.ac): ... to here.
10780
10781 2011-05-21  Bruno Haible  <bruno@clisp.org>
10782
10783         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10784         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10785         invocation from here...
10786         * modules/obstack-printf (configure.ac): ... to here.
10787         * modules/obstack-printf-posix (configure.ac): ... and here.
10788
10789 2011-05-21  Bruno Haible  <bruno@clisp.org>
10790
10791         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10792         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10793         from here...
10794         * modules/nl_langinfo (configure.ac): ... to here.
10795
10796 2011-05-21  Bruno Haible  <bruno@clisp.org>
10797
10798         nanosleep: Move AC_LIBOBJ invocations to module description.
10799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10800         gl_PREREQ_NANOSLEEP invocations from here...
10801         * modules/nanosleep (configure.ac): ... to here.
10802
10803 2011-05-21  Bruno Haible  <bruno@clisp.org>
10804
10805         mountlist: Move AC_LIBOBJ invocations to module description.
10806         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10807         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10808         * modules/mountlist (configure.ac): ... to here.
10809
10810 2011-05-21  Bruno Haible  <bruno@clisp.org>
10811
10812         mktime: Respect rules for use of AC_LIBOBJ.
10813         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10814         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10815         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10816         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10817         * modules/mktime (configure.ac): ... to here.
10818         * modules/mktime-internal (configure.ac): ... and here.
10819         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10820
10821 2011-05-21  Bruno Haible  <bruno@clisp.org>
10822
10823         mkstemps: Move AC_LIBOBJ invocations to module description.
10824         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10825         here...
10826         * modules/mkstemps (configure.ac): ... to here.
10827
10828 2011-05-21  Bruno Haible  <bruno@clisp.org>
10829
10830         mkstemp: Move AC_LIBOBJ invocations to module description.
10831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10832         gl_PREREQ_MKSTEMP invocations from here...
10833         * modules/mkstemp (configure.ac): ... to here.
10834
10835 2011-05-21  Bruno Haible  <bruno@clisp.org>
10836
10837         mkostemps: Move AC_LIBOBJ invocations to module description.
10838         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10839         here...
10840         * modules/mkostemps (configure.ac): ... to here.
10841
10842 2011-05-21  Bruno Haible  <bruno@clisp.org>
10843
10844         mkostemp: Move AC_LIBOBJ invocations to module description.
10845         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10846         gl_PREREQ_MKOSTEMP invocations from here...
10847         * modules/mkostemp (configure.ac): ... to here.
10848
10849 2011-05-21  Bruno Haible  <bruno@clisp.org>
10850
10851         mknod: Move AC_LIBOBJ invocations to module description.
10852         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10853         * modules/mknod (configure.ac): ... to here.
10854
10855 2011-05-21  Bruno Haible  <bruno@clisp.org>
10856
10857         mkfifoat: Move AC_LIBOBJ invocations to module description.
10858         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10859         here...
10860         * modules/mkfifoat (configure.ac): ... to here.
10861
10862 2011-05-21  Bruno Haible  <bruno@clisp.org>
10863
10864         mkfifo: Respect rules for use of AC_LIBOBJ.
10865         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10866         here...
10867         * modules/mkfifo (configure.ac): ... to here.
10868
10869 2011-05-21  Bruno Haible  <bruno@clisp.org>
10870
10871         mkdtemp: Move AC_LIBOBJ invocations to module description.
10872         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10873         invocations from here...
10874         * modules/mkdtemp (configure.ac): ... to here.
10875
10876 2011-05-21  Bruno Haible  <bruno@clisp.org>
10877
10878         mkdir: Move AC_LIBOBJ invocations to module description.
10879         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10880         * modules/mkdir (configure.ac): ... to here.
10881
10882 2011-05-21  Bruno Haible  <bruno@clisp.org>
10883
10884         memset: Move AC_LIBOBJ invocations to module description.
10885         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10886         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10887         here...
10888         * modules/memset (configure.ac): ... to here.
10889
10890 2011-05-21  Bruno Haible  <bruno@clisp.org>
10891
10892         memrchr: Move AC_LIBOBJ invocations to module description.
10893         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10894         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10895         here...
10896         * modules/memrchr (configure.ac): ... to here.
10897
10898 2011-05-21  Bruno Haible  <bruno@clisp.org>
10899
10900         mempcpy: Move AC_LIBOBJ invocations to module description.
10901         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10902         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10903         here...
10904         * modules/mempcpy (configure.ac): ... to here.
10905
10906 2011-05-21  Bruno Haible  <bruno@clisp.org>
10907
10908         memmove: Move AC_LIBOBJ invocations to module description.
10909         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10910         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10911         here...
10912         * modules/memmove (configure.ac): ... to here.
10913
10914 2011-05-21  Bruno Haible  <bruno@clisp.org>
10915
10916         memmem*: Move AC_LIBOBJ invocations to module description.
10917         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10918         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10919         here...
10920         (gl_FUNC_MEMMEM): ... and here...
10921         * modules/memmem-simple (configure.ac): ... to here.
10922         * modules/memmem (configure.ac): ... and here.
10923
10924 2011-05-21  Bruno Haible  <bruno@clisp.org>
10925
10926         memcpy: Move AC_LIBOBJ invocations to module description.
10927         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10928         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10929         here...
10930         * modules/memcpy (configure.ac): ... to here.
10931
10932 2011-05-21  Bruno Haible  <bruno@clisp.org>
10933
10934         memcmp: Simplify autoconf macro.
10935         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10936         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10937         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10938
10939 2011-05-21  Bruno Haible  <bruno@clisp.org>
10940
10941         memcmp: Move AC_LIBOBJ invocations to module description.
10942         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10943         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10944         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10945         * modules/memcmp (configure.ac): ... to here.
10946         (Depends-on): Update conditions.
10947
10948 2011-05-21  Bruno Haible  <bruno@clisp.org>
10949
10950         memchr: Respect rules for use of AC_LIBOBJ.
10951         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10952         invocations from here...
10953         * modules/memchr (configure.ac): ... to here.
10954
10955 2011-05-21  Bruno Haible  <bruno@clisp.org>
10956
10957         mbtowc: Move AC_LIBOBJ invocations to module description.
10958         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10959         invocations from here...
10960         * modules/mbtowc (configure.ac): ... to here.
10961
10962 2011-05-21  Bruno Haible  <bruno@clisp.org>
10963
10964         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10965         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10966         gl_PREREQ_MBSRTOWCS invocations from here...
10967         * modules/mbsrtowcs (configure.ac): ... to here.
10968
10969 2011-05-21  Bruno Haible  <bruno@clisp.org>
10970
10971         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10972         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10973         gl_PREREQ_MBSNRTOWCS invocations from here...
10974         * modules/mbsnrtowcs (configure.ac): ... to here.
10975
10976 2011-05-21  Bruno Haible  <bruno@clisp.org>
10977
10978         mbsinit: Move AC_LIBOBJ invocations to module description.
10979         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10980         invocations from here...
10981         * modules/mbsinit (configure.ac): ... to here.
10982
10983 2011-05-21  Bruno Haible  <bruno@clisp.org>
10984
10985         mbrlen: Move AC_LIBOBJ invocations to module description.
10986         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10987         invocations from here...
10988         * modules/mbrlen (configure.ac): ... to here.
10989
10990 2011-05-21  Bruno Haible  <bruno@clisp.org>
10991
10992         mbrtowc: Respect rules for use of AC_LIBOBJ.
10993         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10994         invocations from here...
10995         * modules/mbrtowc (configure.ac): ... to here.
10996
10997 2011-05-21  Bruno Haible  <bruno@clisp.org>
10998
10999         malloc-*: Move AC_LIBOBJ invocations to module description.
11000         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
11001         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
11002         AC_LIBOBJ invocations from here...
11003         * modules/malloc-gnu (configure.ac): ... to here.
11004         * modules/malloc-posix (configure.ac): ... and here.
11005
11006 2011-05-21  Bruno Haible  <bruno@clisp.org>
11007
11008         lstat, openat: Respect rules for use of AC_LIBOBJ.
11009         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
11010         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
11011         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
11012         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
11013         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
11014         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
11015         here.
11016         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
11017
11018 2011-05-21  Bruno Haible  <bruno@clisp.org>
11019
11020         lseek: Move AC_LIBOBJ invocations to module description.
11021         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
11022         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11023         * modules/lseek (configure.ac): ... to here.
11024
11025 2011-05-21  Bruno Haible  <bruno@clisp.org>
11026
11027         linkat: Move AC_LIBOBJ invocations to module description.
11028         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
11029         here...
11030         * modules/linkat (configure.ac): ... to here.
11031
11032 2011-05-21  Bruno Haible  <bruno@clisp.org>
11033
11034         link: Respect rules for use of AC_LIBOBJ.
11035         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
11036         * modules/link (configure.ac): ... to here.
11037
11038 2011-05-21  Bruno Haible  <bruno@clisp.org>
11039
11040         lchown: Move AC_LIBOBJ invocations to module description.
11041         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11042         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
11043         * modules/lchown (configure.ac): ... to here.
11044
11045 2011-05-21  Bruno Haible  <bruno@clisp.org>
11046
11047         iswctype: Move AC_LIBOBJ invocations to module description.
11048         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
11049         here...
11050         * modules/iswctype (configure.ac): ... to here.
11051
11052 2011-05-21  Bruno Haible  <bruno@clisp.org>
11053
11054         iswblank: Move AC_LIBOBJ invocations to module description.
11055         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
11056         here...
11057         * modules/iswblank (configure.ac): ... to here.
11058
11059 2011-05-21  Bruno Haible  <bruno@clisp.org>
11060
11061         atanl: Move AC_LIBOBJ invocations to module description.
11062         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
11063         * modules/atanl (configure.ac): ... to here.
11064
11065 2011-05-21  Bruno Haible  <bruno@clisp.org>
11066
11067         acosl: Move AC_LIBOBJ invocations to module description.
11068         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
11069         * modules/acosl (configure.ac): ... to here.
11070
11071 2011-05-21  Bruno Haible  <bruno@clisp.org>
11072
11073         asinl: Respect rules for use of AC_LIBOBJ.
11074         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
11075         * modules/asinl (configure.ac): ... to here.
11076
11077 2011-05-21  Bruno Haible  <bruno@clisp.org>
11078
11079         tanl: Move AC_LIBOBJ invocations to module description.
11080         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
11081         * modules/tanl (configure.ac): ... to here.
11082
11083 2011-05-21  Bruno Haible  <bruno@clisp.org>
11084
11085         cosl: Move AC_LIBOBJ invocations to module description.
11086         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
11087         * modules/cosl (configure.ac): ... to here.
11088
11089 2011-05-21  Bruno Haible  <bruno@clisp.org>
11090
11091         sinl: Move AC_LIBOBJ invocations to module description.
11092         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
11093         * modules/sinl (configure.ac): ... to here.
11094
11095 2011-05-21  Bruno Haible  <bruno@clisp.org>
11096
11097         logl: Move AC_LIBOBJ invocations to module description.
11098         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
11099         * modules/logl (configure.ac): ... to here.
11100
11101 2011-05-21  Bruno Haible  <bruno@clisp.org>
11102
11103         expl: Move AC_LIBOBJ invocations to module description.
11104         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
11105         * modules/expl (configure.ac): ... to here.
11106
11107 2011-05-21  Bruno Haible  <bruno@clisp.org>
11108
11109         roundl: Move AC_LIBOBJ invocations to module description.
11110         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
11111         * modules/roundl (configure.ac): ... to here.
11112
11113 2011-05-21  Bruno Haible  <bruno@clisp.org>
11114
11115         round: Move AC_LIBOBJ invocations to module description.
11116         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
11117         * modules/round (configure.ac): ... to here.
11118
11119 2011-05-21  Bruno Haible  <bruno@clisp.org>
11120
11121         roundf: Move AC_LIBOBJ invocations to module description.
11122         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
11123         * modules/roundf (configure.ac): ... to here.
11124
11125 2011-05-21  Bruno Haible  <bruno@clisp.org>
11126
11127         truncl: Move AC_LIBOBJ invocations to module description.
11128         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
11129         * modules/truncl (configure.ac): ... to here.
11130
11131 2011-05-21  Bruno Haible  <bruno@clisp.org>
11132
11133         trunc: Move AC_LIBOBJ invocations to module description.
11134         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
11135         * modules/trunc (configure.ac): ... to here.
11136
11137 2011-05-21  Bruno Haible  <bruno@clisp.org>
11138
11139         truncf: Move AC_LIBOBJ invocations to module description.
11140         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
11141         * modules/truncf (configure.ac): ... to here.
11142
11143 2011-05-21  Bruno Haible  <bruno@clisp.org>
11144
11145         ceill: Move AC_LIBOBJ invocations to module description.
11146         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
11147         * modules/ceill (configure.ac): ... to here.
11148
11149 2011-05-21  Bruno Haible  <bruno@clisp.org>
11150
11151         ceil: Move AC_LIBOBJ invocations to module description.
11152         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
11153         * modules/ceil (configure.ac): ... to here.
11154
11155 2011-05-21  Bruno Haible  <bruno@clisp.org>
11156
11157         ceilf: Move AC_LIBOBJ invocations to module description.
11158         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
11159         * modules/ceilf (configure.ac): ... to here.
11160
11161 2011-05-21  Bruno Haible  <bruno@clisp.org>
11162
11163         floorl: Respect rules for use of AC_LIBOBJ.
11164         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11165         * modules/floorl (configure.ac): ... to here.
11166
11167 2011-05-21  Bruno Haible  <bruno@clisp.org>
11168
11169         floor: Respect rules for use of AC_LIBOBJ.
11170         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11171         * modules/floor (configure.ac): ... to here.
11172
11173 2011-05-21  Bruno Haible  <bruno@clisp.org>
11174
11175         floorf: Move AC_LIBOBJ invocations to module description.
11176         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11177         * modules/floorf (configure.ac): ... to here.
11178
11179 2011-05-20  Bruno Haible  <bruno@clisp.org>
11180
11181         sqrtl: Respect rules for use of AC_LIBOBJ.
11182         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11183         * modules/sqrtl (configure.ac): ... to here.
11184
11185 2011-05-20  Bruno Haible  <bruno@clisp.org>
11186
11187         ldexpl: Respect rules for use of AC_LIBOBJ.
11188         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11189         * modules/ldexpl (configure.ac): ... to here.
11190
11191 2011-05-20  Bruno Haible  <bruno@clisp.org>
11192
11193         frexpl*: Respect rules for use of AC_LIBOBJ.
11194         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11195         invocation from here...
11196         * modules/frexpl (configure.ac): ... to here.
11197         * modules/frexpl-nolibm (configure.ac): ... and here.
11198
11199 2011-05-20  Bruno Haible  <bruno@clisp.org>
11200
11201         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11202         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11203         invocation from here...
11204         * modules/frexp (configure.ac): ... to here.
11205         * modules/frexp-nolibm (configure.ac): ... and here.
11206
11207 2011-05-20  Bruno Haible  <bruno@clisp.org>
11208
11209         isnan: Respect rules for use of AC_LIBOBJ.
11210         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11211         invocations here.
11212         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11213         REPLACE_ISNAN.
11214         * modules/isnand (configure.ac): Likewise.
11215         * modules/isnanl (configure.ac): Likewise.
11216
11217 2011-05-20  Bruno Haible  <bruno@clisp.org>
11218
11219         isnanl*: Respect rules for use of AC_LIBOBJ.
11220         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11221         invocation from here...
11222         * modules/isnanl (configure.ac): ... to here.
11223         * modules/isnanl-nolibm (configure.ac): ... and here.
11224
11225 2011-05-20  Bruno Haible  <bruno@clisp.org>
11226
11227         isnand*: Move AC_LIBOBJ invocations to module description.
11228         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11229         invocation from here...
11230         * modules/isnand (configure.ac): ... to here.
11231         * modules/isnand-nolibm (configure.ac): ... and here.
11232
11233 2011-05-20  Bruno Haible  <bruno@clisp.org>
11234
11235         isnanf*: Move AC_LIBOBJ invocations to module description.
11236         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11237         invocation from here...
11238         * modules/isnanf (configure.ac): ... to here.
11239         * modules/isnanf-nolibm (configure.ac): ... and here.
11240
11241 2011-05-20  Bruno Haible  <bruno@clisp.org>
11242
11243         isnan*: Separate the AC_LIBOBJ invocations.
11244         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11245         AC_LIBOBJ invocation.
11246         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11247         here.
11248         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11249         AC_LIBOBJ invocation.
11250         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11251         here.
11252         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11253         AC_LIBOBJ invocation.
11254         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11255         here.
11256         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11257
11258 2011-05-08  Bruno Haible  <bruno@clisp.org>
11259
11260         isinf: Move AC_LIBOBJ invocations to module description.
11261         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11262         * modules/isinf (configure.ac): ... to here.
11263
11264 2011-05-08  Bruno Haible  <bruno@clisp.org>
11265
11266         isfinite: Move AC_LIBOBJ invocations to module description.
11267         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11268         * modules/isfinite (configure.ac): ... to here.
11269
11270 2011-05-08  Bruno Haible  <bruno@clisp.org>
11271
11272         isblank: Move AC_LIBOBJ invocations to module description.
11273         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11274         here...
11275         * modules/isblank (configure.ac): ... to here.
11276
11277 2011-05-08  Bruno Haible  <bruno@clisp.org>
11278
11279         isapipe: Move AC_LIBOBJ invocations to module description.
11280         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11281         gl_PREREQ_ISAPIPE invocations from here...
11282         * modules/isapipe (configure.ac): ... to here.
11283         (Depends-on): Update condition.
11284
11285 2011-05-08  Bruno Haible  <bruno@clisp.org>
11286
11287         ioctl: Move AC_LIBOBJ invocations to module description.
11288         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11289         invocations from here...
11290         * modules/ioctl (configure.ac): ... to here.
11291         (Depends-on): Update condition.
11292
11293 2011-05-08  Bruno Haible  <bruno@clisp.org>
11294
11295         imaxdiv: Move AC_LIBOBJ invocations to module description.
11296         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11297         invocations from here...
11298         * modules/imaxdiv (configure.ac): ... to here.
11299
11300 2011-05-08  Bruno Haible  <bruno@clisp.org>
11301
11302         imaxabs: Move AC_LIBOBJ invocations to module description.
11303         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11304         invocations from here...
11305         * modules/imaxabs (configure.ac): ... to here.
11306
11307 2011-05-08  Bruno Haible  <bruno@clisp.org>
11308
11309         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11310         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11311         AC_LIBOBJ invocations from here...
11312         * modules/getaddrinfo (configure.ac): ... to here.
11313         (Depends-on): Add conditions.
11314
11315 2011-05-08  Bruno Haible  <bruno@clisp.org>
11316
11317         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11318         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11319         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11320         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11321         (gl_PREREQ_INET_PTON): ... from here.
11322         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11323         gl_PREREQ_INET_PTON here.
11324         (Depends-on): Update condition.
11325
11326 2011-05-08  Bruno Haible  <bruno@clisp.org>
11327
11328         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11329         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11330         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11331         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11332         (gl_PREREQ_INET_NTOP): ... from here.
11333         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11334         gl_PREREQ_INET_NTOP here.
11335         (Depends-on): Update condition.
11336
11337 2011-05-08  Bruno Haible  <bruno@clisp.org>
11338
11339         iconv_open: Move AC_LIBOBJ invocations to module description.
11340         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11341         AC_LIBOBJ invocations from here...
11342         * modules/iconv_open (configure.ac): ... to here.
11343
11344 2011-05-08  Bruno Haible  <bruno@clisp.org>
11345
11346         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11347         If module 'iconv_open' is among the main modules and module
11348         'iconv_open-utf' is among the tests dependencies, then
11349         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11350         return the special iconv_t values. Therefore iconv() and iconv_close()
11351         must support these special iconv_t values, already in lib, not only in
11352         tests.
11353         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11354         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11355         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11356         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11357         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11358         (Depends-on): Add the dependencies of iconv_open-utf.
11359         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11360         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11361         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11362
11363 2011-05-08  Bruno Haible  <bruno@clisp.org>
11364
11365         group-member: Move AC_LIBOBJ invocations to module description.
11366         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11367         gl_PREREQ_GROUP_MEMBER invocations from here...
11368         * modules/group-member (configure.ac): ... to here.
11369
11370 2011-05-08  Bruno Haible  <bruno@clisp.org>
11371
11372         grantpt: Move AC_LIBOBJ invocations to module description.
11373         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11374         invocations from here...
11375         * modules/grantpt (configure.ac): ... to here.
11376
11377 2011-05-08  Bruno Haible  <bruno@clisp.org>
11378
11379         glob: Move AC_LIBOBJ invocations to module description.
11380         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11381         from here...
11382         * modules/glob (configure.ac): ... to here.
11383
11384 2011-05-08  Bruno Haible  <bruno@clisp.org>
11385
11386         getusershell: Move AC_LIBOBJ invocations to module description.
11387         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11388         Move AC_LIBOBJ invocation from here...
11389         * modules/getusershell (configure.ac): ... to here.
11390         (Depends-on): Update condition.
11391
11392 2011-05-08  Bruno Haible  <bruno@clisp.org>
11393
11394         gettimeofday: Move AC_LIBOBJ invocations to module description.
11395         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11396         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11397         gl_PREREQ_GETTIMEOFDAY invocations from here...
11398         * modules/gettimeofday (configure.ac): ... to here.
11399
11400 2011-05-08  Bruno Haible  <bruno@clisp.org>
11401
11402         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11403         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11404         just gl_FUNC_TZSET.
11405         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11406         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11408         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11409
11410 2011-05-08  Bruno Haible  <bruno@clisp.org>
11411
11412         getsubopt: Move AC_LIBOBJ invocations to module description.
11413         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11414         gl_PREREQ_GETSUBOPT invocations from here...
11415         * modules/getsubopt (configure.ac): ... to here.
11416
11417 2011-05-08  Bruno Haible  <bruno@clisp.org>
11418
11419         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11420         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11421         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11422         * modules/getpass-gnu (configure.ac): ... to here.
11423
11424 2011-05-08  Bruno Haible  <bruno@clisp.org>
11425
11426         getpass: Move AC_LIBOBJ invocations to module description.
11427         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11428         gl_PREREQ_GETPASS invocations from here...
11429         * modules/getpass (configure.ac): ... to here.
11430
11431 2011-05-08  Bruno Haible  <bruno@clisp.org>
11432
11433         getpagesize: Move AC_LIBOBJ invocations to module description.
11434         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11435         from here...
11436         * modules/getpagesize (configure.ac): ... to here.
11437
11438 2011-05-08  Bruno Haible  <bruno@clisp.org>
11439
11440         getopt: Move AC_LIBOBJ invocations to module description.
11441         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11442         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11443         invocations from here...
11444         * modules/getopt-gnu (configure.ac): ... to here.
11445         * modules/getopt-posix (configure.ac): ... and here.
11446         (Depends-on): Update condition.
11447
11448 2011-05-08  Bruno Haible  <bruno@clisp.org>
11449
11450         getopt, argp: Respect rules for use of AC_LIBOBJ.
11451         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11452         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11453         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11454         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11455
11456 2011-05-08  Bruno Haible  <bruno@clisp.org>
11457
11458         getlogin_r: Move AC_LIBOBJ invocations to module description.
11459         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11460         gl_PREREQ_GETLOGIN_R invocations from here...
11461         * modules/getlogin_r (configure.ac): ... to here.
11462
11463 2011-05-08  Bruno Haible  <bruno@clisp.org>
11464
11465         getlogin: Move AC_LIBOBJ invocations to module description.
11466         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11467         here...
11468         * modules/getlogin (configure.ac): ... to here.
11469
11470 2011-05-08  Bruno Haible  <bruno@clisp.org>
11471
11472         getloadavg: Move AC_LIBOBJ invocations to module description.
11473         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11474         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11475         * modules/getloadavg (configure.ac): ... to here.
11476
11477 2011-05-08  Bruno Haible  <bruno@clisp.org>
11478
11479         gethrxtime: Move AC_LIBOBJ invocations to module description.
11480         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11481         LIB_GETHRXTIME from here...
11482         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11483         invocations from here...
11484         * modules/gethrxtime (configure.ac): ... to here.
11485
11486 2011-05-08  Bruno Haible  <bruno@clisp.org>
11487
11488         gethostname: Move AC_LIBOBJ invocations to module description.
11489         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11490         gl_PREREQ_GETHOSTNAME invocations from here...
11491         * modules/gethostname (configure.ac): ... to here.
11492
11493 2011-05-08  Bruno Haible  <bruno@clisp.org>
11494
11495         getgroups: Move AC_LIBOBJ invocations to module description.
11496         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11497         here...
11498         * modules/getgroups (configure.ac): ... to here.
11499
11500 2011-05-08  Bruno Haible  <bruno@clisp.org>
11501
11502         getdtablesize: Move AC_LIBOBJ invocations to module description.
11503         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11504         invocation from here...
11505         * modules/getdtablesize (configure.ac): ... to here.
11506
11507 2011-05-08  Bruno Haible  <bruno@clisp.org>
11508
11509         getdomainname: Move AC_LIBOBJ invocations to module description.
11510         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11511         gl_PREREQ_GETDOMAINNAME invocations from here...
11512         * modules/getdomainname (configure.ac): ... to here.
11513
11514 2011-05-08  Bruno Haible  <bruno@clisp.org>
11515
11516         getline: Move AC_LIBOBJ invocations to module description.
11517         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11518         invocations from here...
11519         * modules/getline (configure.ac): ... to here.
11520
11521 2011-05-08  Bruno Haible  <bruno@clisp.org>
11522
11523         getline: Simplify.
11524         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11525         It's already handled through the module dependency.
11526
11527 2011-05-08  Bruno Haible  <bruno@clisp.org>
11528
11529         getdelim: Move AC_LIBOBJ invocations to module description.
11530         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11531         and gl_PREREQ_GETDELIM invocations from here...
11532         * modules/getdelim (configure.ac): ... to here.
11533         (Depends-on): Fix condition.
11534
11535 2011-05-08  Bruno Haible  <bruno@clisp.org>
11536
11537         getcwd: Move AC_LIBOBJ invocations to module description.
11538         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11539         invocations from here...
11540         * modules/getcwd (configure.ac): ... to here.
11541
11542 2011-05-08  Bruno Haible  <bruno@clisp.org>
11543
11544         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11545         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11546         here...
11547         * modules/getcwd-lgpl (configure.ac): ... to here.
11548
11549 2011-05-07  Bruno Haible  <bruno@clisp.org>
11550
11551         crypto/gc: Move AC_LIBOBJ invocations to module description.
11552         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11553         * modules/crypto/gc (configure.ac): ... to here.
11554
11555 2011-05-07  Bruno Haible  <bruno@clisp.org>
11556
11557         fwriting: Move AC_LIBOBJ invocations to module description.
11558         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11559         here...
11560         * modules/fwriting (configure.ac): ... to here.
11561
11562 2011-05-07  Bruno Haible  <bruno@clisp.org>
11563
11564         fwritable: Move AC_LIBOBJ invocations to module description.
11565         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11566         here...
11567         * modules/fwritable (configure.ac): ... to here.
11568
11569 2011-05-07  Bruno Haible  <bruno@clisp.org>
11570
11571         futimens: Move AC_LIBOBJ invocations to module description.
11572         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11573         here...
11574         * modules/futimens (configure.ac): ... to here.
11575
11576 2011-05-07  Bruno Haible  <bruno@clisp.org>
11577
11578         ftruncate: Move AC_LIBOBJ invocations to module description.
11579         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11580         gl_PREREQ_FTRUNCATE invocations from here...
11581         * modules/ftruncate (configure.ac): ... to here.
11582
11583 2011-05-07  Bruno Haible  <bruno@clisp.org>
11584
11585         fsync: Move AC_LIBOBJ invocations to module description.
11586         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11587         invocations from here...
11588         * modules/fsync (configure.ac): ... to here.
11589
11590 2011-05-07  Bruno Haible  <bruno@clisp.org>
11591
11592         fsusage: Move AC_LIBOBJ invocations to module description.
11593         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11594         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11595         * modules/fsusage (configure.ac): ... to here.
11596
11597 2011-05-07  Bruno Haible  <bruno@clisp.org>
11598
11599         freopen: Move AC_LIBOBJ invocations to module description.
11600         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11601         invocations from here...
11602         * modules/freopen (configure.ac): ... to here.
11603
11604 2011-05-07  Bruno Haible  <bruno@clisp.org>
11605
11606         free: Move AC_LIBOBJ invocations to module description.
11607         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11608         invocations from here...
11609         * modules/free (configure.ac): ... to here.
11610
11611 2011-05-07  Bruno Haible  <bruno@clisp.org>
11612
11613         freadable: Move AC_LIBOBJ invocations to module description.
11614         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11615         here...
11616         * modules/freadable (configure.ac): ... to here.
11617
11618 2011-05-07  Bruno Haible  <bruno@clisp.org>
11619
11620         fpurge: Move AC_LIBOBJ invocations to module description.
11621         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11622         invocations from here...
11623         * modules/fpurge (configure.ac): ... to here.
11624
11625 2011-05-07  Bruno Haible  <bruno@clisp.org>
11626
11627         fpending: Move AC_LIBOBJ invocations to module description.
11628         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11629         gl_FUNC_FPENDING.
11630         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11631         invocations from here...
11632         * modules/fpending (configure.ac): ... to here.
11633
11634 2011-05-07  Bruno Haible  <bruno@clisp.org>
11635
11636         fopen: Move AC_LIBOBJ invocations to module description.
11637         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11638         invocations from here...
11639         * modules/fopen (configure.ac): ... to here.
11640
11641 2011-05-07  Bruno Haible  <bruno@clisp.org>
11642
11643         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11644         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11645         gl_FUNC_FNMATCH_POSIX.
11646         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11647         invocations from here...
11648         * modules/fnmatch (configure.ac): ... to here.
11649         * modules/fnmatch-gnu (configure.ac): ... and here.
11650
11651 2011-05-07  Bruno Haible  <bruno@clisp.org>
11652
11653         flock: Move AC_LIBOBJ invocations to module description.
11654         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11655         invocations from here...
11656         * modules/flock (configure.ac): ... to here.
11657
11658 2011-05-07  Bruno Haible  <bruno@clisp.org>
11659
11660         fileblocks: Move AC_LIBOBJ invocations to module description.
11661         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11662         gl_PREREQ_FILEBLOCKS invocations from here...
11663         * modules/fileblocks (configure.ac): ... to here.
11664
11665 2011-05-06  Bruno Haible  <bruno@clisp.org>
11666
11667         fflush: Move AC_LIBOBJ invocations to module description.
11668         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11669         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11670         invocations from here...
11671         * modules/fflush (configure.ac): ... to here.
11672
11673 2011-05-06  Bruno Haible  <bruno@clisp.org>
11674
11675         fdopendir: Move AC_LIBOBJ invocations to module description.
11676         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11677         here...
11678         * modules/fdopendir (configure.ac): ... to here.
11679         (Depends-on): Improve conditions.
11680
11681 2011-05-06  Bruno Haible  <bruno@clisp.org>
11682
11683         _Exit: Move AC_LIBOBJ invocations to module description.
11684         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11685         invocations from here...
11686         * modules/_Exit (configure.ac): ... to here.
11687
11688 2011-05-21  Bruno Haible  <bruno@clisp.org>
11689
11690         euidaccess: Respect rules for use of AC_LIBOBJ.
11691         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11692         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11693         from here...
11694         * modules/euidaccess (configure.ac): ... to here.
11695
11696 2011-05-06  Bruno Haible  <bruno@clisp.org>
11697
11698         error: Move AC_LIBOBJ invocations to module description.
11699         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11700         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11701         invocations from here...
11702         * modules/error (configure.ac): ... to here.
11703
11704 2011-05-06  Bruno Haible  <bruno@clisp.org>
11705
11706         duplocale: Move AC_LIBOBJ invocations to module description.
11707         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11708         gl_PREREQ_DUPLOCALE invocations from here...
11709         * modules/duplocale (configure.ac): ... to here.
11710
11711 2011-05-05  Bruno Haible  <bruno@clisp.org>
11712
11713         dirfd: Move AC_LIBOBJ invocations to module description.
11714         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11715         gl_FUNC_DIRFD.
11716         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11717         here...
11718         * modules/dirfd (configure.ac): ... to here.
11719         (Depends-on): Fix condition.
11720
11721 2011-05-05  Bruno Haible  <bruno@clisp.org>
11722
11723         chown: Respect rules for use of AC_LIBOBJ.
11724         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11725         * modules/chown (configure.ac): ... to here.
11726
11727 2011-05-05  Bruno Haible  <bruno@clisp.org>
11728
11729         chdir-long: Move AC_LIBOBJ invocations to module description.
11730         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11731         gl_PREREQ_CHDIR_LONG invocations from here...
11732         * modules/chdir-long (configure.ac): ... to here.
11733
11734 2011-05-05  Bruno Haible  <bruno@clisp.org>
11735
11736         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11737         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11738         from here...
11739         * modules/canonicalize-lgpl (configure.ac): ... to here.
11740
11741 2011-05-05  Bruno Haible  <bruno@clisp.org>
11742
11743         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11744         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11745         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11746         REPLACE_CALLOC.
11747         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11748         * modules/calloc-gnu (configure.ac): Likewise.
11749
11750 2011-05-05  Bruno Haible  <bruno@clisp.org>
11751
11752         btowc: Move AC_LIBOBJ invocations to module description.
11753         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11754         invocations from here...
11755         * modules/btowc (configure.ac): ... to here.
11756
11757 2011-05-21  Bruno Haible  <bruno@clisp.org>
11758
11759         atexit: Move AC_LIBOBJ invocations to module description.
11760         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11761         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11762         here...
11763         * modules/atexit (configure.ac): ... to here.
11764
11765 2011-05-05  Bruno Haible  <bruno@clisp.org>
11766
11767         atoll: Move AC_LIBOBJ invocations to module description.
11768         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11769         invocations from here...
11770         * modules/atoll (configure.ac): ... to here.
11771
11772 2011-05-05  Bruno Haible  <bruno@clisp.org>
11773
11774         argz: Move AC_LIBOBJ invocations to module description.
11775         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11776         * modules/argz (configure.ac): ... to here.
11777
11778 2011-05-05  Bruno Haible  <bruno@clisp.org>
11779
11780         alphasort: Move AC_LIBOBJ invocations to module description.
11781         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11782         gl_PREREQ_ALPHASORT invocations from here...
11783         * modules/alphasort (configure.ac): ... to here.
11784
11785 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11786
11787         verify: new macro verify_expr; verify_true deprecated
11788         * NEWS: Mention this.
11789         * doc/verify.texi (Compile-time Assertions): Document this.
11790         * lib/verify.h (verify_true): Deprecate.
11791         (verify_expr): New macro.
11792         * tests/test-verify.c (function): Test verify_expr.
11793
11794 2011-06-14  Jim Meyering  <meyering@redhat.com>
11795
11796         init.sh: give more portable redirection-related advice in a comment
11797         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11798         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11799         for lots of discussion.  Stefano Lattarini suggested the solution
11800         of putting "9>&2" after the command.  Reported by Bruno Haible.
11801
11802 2011-06-13  Bruno Haible  <bruno@clisp.org>
11803
11804         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11805         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11806         'none'.
11807
11808 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11809
11810         ftoastr: use strtof only if HAVE_STRTOF
11811         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11813         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11814         * modules/ftoastr (configure.ac): Check for strtof.
11815
11816 2011-06-13  Bruno Haible  <bruno@clisp.org>
11817
11818         gnulib-tool: Addendum to 2011-06-08 commit.
11819         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11820         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11821
11822 2011-06-13  Bruno Haible  <bruno@clisp.org>
11823
11824         fseeko: Provide a non-inline replacement of fseek().
11825         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11826         * modules/fseeko (Depends-on): Add fseek.
11827         * modules/fseek (License): Change to LGPLv2+.
11828
11829 2011-06-13  Bruno Haible  <bruno@clisp.org>
11830
11831         ftello: Provide a non-inline replacement of ftell().
11832         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11833         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11834         not have ftello() (such as on mingw).
11835         * modules/ftello (Depends-on): Add ftell.
11836         * modules/ftell (License): Change to LGPLv2+.
11837
11838 2011-05-07  Bruno Haible  <bruno@clisp.org>
11839
11840         ftell: Move AC_LIBOBJ invocations to module description.
11841         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11842         * modules/ftell (configure.ac): ... to here.
11843
11844 2011-05-07  Bruno Haible  <bruno@clisp.org>
11845
11846         ftello: Respect rules for use of AC_LIBOBJ.
11847         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11848         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11849         here...
11850         * modules/ftello (configure.ac): ... to here.
11851
11852 2011-05-07  Bruno Haible  <bruno@clisp.org>
11853
11854         fseeko: Simplify.
11855         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11856         (gl_FUNC_FSEEKO): Inline it here.
11857
11858 2011-05-07  Bruno Haible  <bruno@clisp.org>
11859
11860         fseek: Move AC_LIBOBJ invocations to module description.
11861         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11862         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11863         * modules/fseek (configure.ac): ... to here.
11864
11865 2011-05-07  Bruno Haible  <bruno@clisp.org>
11866
11867         fseek: Respect rules for use of AC_LIBOBJ.
11868         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11869         here...
11870         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11871
11872 2011-05-07  Bruno Haible  <bruno@clisp.org>
11873
11874         fseeko: Respect rules for use of AC_LIBOBJ.
11875         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11876         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11877         here...
11878         * modules/fseeko (configure.ac): ... to here.
11879
11880 2011-06-13  Bruno Haible  <bruno@clisp.org>
11881
11882         gnulib-tool: Allow comments in the 'Depends-on' section.
11883         * doc/gnulib.texi (Module description): Mention comment syntax in the
11884         Depends-on section.
11885         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11886
11887 2011-06-13  Bruno Haible  <bruno@clisp.org>
11888
11889         file-set.h: guard __attibute__ use, now that it's not always defined
11890         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11891         versions that support it.  This fixes a coreutils build failure with
11892         the vendor cc on HP-UX 11.31.
11893
11894 2011-06-12  Bruno Haible  <bruno@clisp.org>
11895
11896         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11897         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11898         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11899         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11900         (acl, aclsort): New declarations.
11901         (aclv_nontrivial): New declaration.
11902         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11903         (file_has_acl): Read also the second kind of HP-UX ACLs.
11904         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11905         kind of HP-UX ACLs if the first kind fails.
11906         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11907         second kind of HP-UX ACLs.
11908         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11909         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11910         agree.
11911         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11912         hpuxjfs.
11913         Handle hpuxjfs.
11914         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11915         hpuxjfs.
11916         Handle hpuxjfs.
11917         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11918         (func_test_same_acls): Use both lsacl and getacl.
11919         Handle hpuxjfs.
11920         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11921         (func_test_same_acls): Use both lsacl and getacl.
11922         Handle hpuxjfs.
11923
11924 2011-06-12  Bruno Haible  <bruno@clisp.org>
11925
11926         acl: Complete the 2010-08-10 fix.
11927         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11928         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11929         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11930         explicitly.
11931         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11932         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11933
11934 2011-06-12  Bruno Haible  <bruno@clisp.org>
11935
11936         spawn-pipe tests: Comments.
11937         * tests/test-spawn-pipe-child.c (main): Update comment.
11938         Reported by James Youngman <jay@gnu.org>.
11939
11940 2011-06-11  James Youngman  <jay@gnu.org>
11941
11942         New module 'stat-size'.
11943         * modules/stat-size: New module.  Provides macros for accessing
11944         file size information in instances of struct stat.  Depends on the
11945         fileblocks module because it calls st_blocks.
11946         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11947         * doc/gnulib.texi: Include stat-size.texi.
11948         * doc/stat-size.texi: Documentation for this module.
11949         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11950         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11951         AC_STRUCT_ST_BLOCKS.
11952
11953 2011-06-09  Bruno Haible  <bruno@clisp.org>
11954
11955         thread: Support pthreads-win32.
11956         * lib/glthread/thread.h (gl_thread_self): Define differently on
11957         pthreads-win32.
11958         (gl_null_thread): New declaration.
11959         (gl_thread_self_pointer): New macro.
11960         * lib/glthread/thread.c (gl_null_thread): New constant.
11961         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11962         gl_thread_self.
11963         * tests/test-tls.c: Likewise.
11964         Suggested by Paul Eggert. Reported by Eric Blake.
11965
11966 2011-06-09  Bruno Haible  <bruno@clisp.org>
11967
11968         thread: Fix confusion between NULL and 0.
11969         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11970         Reported by Paul Eggert.
11971
11972 2011-06-09  Bruno Haible  <bruno@clisp.org>
11973
11974         spawn-pipe tests: Avoid test failure on HP-UX 11.
11975         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11976         is closed.
11977
11978 2011-06-09  Bruno Haible  <bruno@clisp.org>
11979
11980         acl tests: Fix compilation error on HP-UX 11.
11981         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11982
11983 2011-06-09  Bruno Haible  <bruno@clisp.org>
11984
11985         rmdir: Avoid test failure on HP-UX 10.20.
11986         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11987         EEXIST.
11988
11989 2011-06-08  Eric Blake  <eblake@redhat.com>
11990
11991         perror: fix test on mingw
11992         * modules/perror-tests (Depends-on): Add dup2.
11993
11994         strerror_r-posix: fix on MacOS
11995         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11996         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11997         logic bug.
11998         * lib/strerror_r.c (strerror_r): Fix the bug.
11999         * lib/strerror.c (strerror): Likewise.
12000         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
12001         problem.
12002         * doc/posix-functions/strerror.texi (strerror): Likewise.
12003         * doc/posix-functions/perror.texi (perror): Likewise.
12004         * tests/test-strerror.c (main): Enhance test.
12005         * tests/test-strerror_r.c (main): Likewise.
12006
12007 2011-06-08  Bruno Haible  <bruno@clisp.org>
12008
12009         gnulib-tool: Better isolation between different gnulib-tool invocations.
12010         * gnulib-tool: New option --witness-c-macro.
12011         (witness_c_macro): New variable.
12012         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
12013         AM_CPPFLAGS define it as a C macro.
12014         (func_emit_tests_Makefile_am): Likewise.
12015         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
12016         read it from there.
12017         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
12018         m4_define, not AC_DEFUN.
12019         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
12020         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
12021         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
12022         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
12023         s|...|...|, to substitute the values of the GNULIB_* module indicator
12024         variables.
12025         * modules/dirent (Makefile.am): Likewise.
12026         * modules/fcntl-h (Makefile.am): Likewise.
12027         * modules/iconv-h (Makefile.am): Likewise.
12028         * modules/langinfo (Makefile.am): Likewise.
12029         * modules/locale (Makefile.am): Likewise.
12030         * modules/math (Makefile.am): Likewise.
12031         * modules/netdb (Makefile.am): Likewise.
12032         * modules/poll-h (Makefile.am): Likewise.
12033         * modules/pty (Makefile.am): Likewise.
12034         * modules/search (Makefile.am): Likewise.
12035         * modules/signal (Makefile.am): Likewise.
12036         * modules/spawn (Makefile.am): Likewise.
12037         * modules/stdio (Makefile.am): Likewise.
12038         * modules/stdlib (Makefile.am): Likewise.
12039         * modules/string (Makefile.am): Likewise.
12040         * modules/sys_ioctl (Makefile.am): Likewise.
12041         * modules/sys_select (Makefile.am): Likewise.
12042         * modules/sys_socket (Makefile.am): Likewise.
12043         * modules/sys_stat (Makefile.am): Likewise.
12044         * modules/sys_times (Makefile.am): Likewise.
12045         * modules/sys_utsname (Makefile.am): Likewise.
12046         * modules/sys_wait (Makefile.am): Likewise.
12047         * modules/termios (Makefile.am): Likewise.
12048         * modules/time (Makefile.am): Likewise.
12049         * modules/unistd (Makefile.am): Likewise.
12050         * modules/wchar (Makefile.am): Likewise.
12051
12052 2011-06-08  Eric Blake  <eblake@redhat.com>
12053
12054         strerror: simplify replacement
12055         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
12056         * modules/strerror (configure.ac): No prereqs needed here...
12057         * modules/strerror-override (configure.ac): ...but this needs it.
12058         (Files): Add file for needed prereq macro.
12059
12060 2011-06-08  Bruno Haible  <bruno@clisp.org>
12061
12062         strerror_r-posix: Tweaks.
12063         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
12064         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
12065         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
12066         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
12067         (gl_FUNC_STRERROR_R): ... to here.
12068         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
12069
12070 2011-06-07  Eric Blake  <eblake@redhat.com>
12071
12072         perror: document fixed bugs
12073         * doc/posix-functions/perror.texi (perror): Document recent
12074         patches.
12075
12076 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12077
12078         stat-time: get_stat_birthtime failure is better-defined
12079         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
12080         return a timestamp whose tv_sec and tv_nsec values are both -1.
12081         Previously, the spec said only that the tv_nsec value was negative.
12082         This upward-compatible change simplifies GNU tar a bit.
12083
12084 2011-06-07  Eric Blake  <eblake@redhat.com>
12085
12086         strerror_r-posix: work around cygwin 1.7.9
12087         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
12088         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
12089         bug without replacing strerror_r.
12090         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
12091         strerror_r is buggy, but without requiring strerror_r compilation.
12092         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
12093
12094         test-perror: relax test to ignore cygwin bug
12095         * tests/test-perror2.c (main): Relax test on requiring detection
12096         of stream errors, and use unbuffered stream.
12097         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
12098         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
12099         * doc/posix-functions/fputc.texi (fputc): Likewise.
12100         * doc/posix-functions/fputs.texi (fputs): Likewise.
12101         * doc/posix-functions/fputws.texi (fputws): Likewise.
12102         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
12103         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
12104         * doc/posix-functions/getopt.texi (getopt): Likewise.
12105         * doc/posix-functions/perror.texi (perror): Likewise.
12106         * doc/posix-functions/printf.texi (printf): Likewise.
12107         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
12108         * doc/posix-functions/psignal.texi (psignal): Likewise.
12109         * doc/posix-functions/putc.texi (putc): Likewise.
12110         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
12111         Likewise.
12112         * doc/posix-functions/putchar.texi (putchar): Likewise.
12113         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
12114         Likewise.
12115         * doc/posix-functions/puts.texi (puts): Likewise.
12116         * doc/posix-functions/putwc.texi (putwc): Likewise.
12117         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12118         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12119         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12120         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
12121         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12122         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12123         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
12124         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
12125
12126 2011-05-22  Bruno Haible  <bruno@clisp.org>
12127
12128         strerror: Move AC_LIBOBJ invocations to module description.
12129         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
12130         gl_PREREQ_STRERROR invocations from here...
12131         * modules/strerror (configure.ac): ... to here.
12132
12133 2011-05-21  Bruno Haible  <bruno@clisp.org>
12134
12135         perror: Use common idiom.
12136         * modules/perror (configure.ac): Reorder statements.
12137
12138 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12139
12140         tests: fix usage message in 'mktempd_'
12141         * tests/init.sh (mktempd_): In the usage message, use literal
12142         'mktempd_', not '$ME' (which is even undefined), as the name of
12143         the subroutine.
12144
12145 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
12146
12147         tests init: new function 'fatal_', for hard errors
12148         Before this patch, the only way offered by tests/init.sh to
12149         properly signal a hard error was the `framework_failure_'
12150         function.  But the error message issued by that function,
12151         as its name would suggest, refers to a set-up failure in the
12152         testsuite, while hard errors can obviously also be due to
12153         other reasons.  The best way to fix this inconsistency is to
12154         introduce a new function with a more general error message.
12155         * tests/init.sh (fatal_): New function.
12156
12157 2011-06-06  Eric Blake  <eblake@redhat.com>
12158
12159         canonicalize-lgpl: use common idiom
12160         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
12161         over newer POSIX -Rf.
12162         Reported by Bruno Haible.
12163
12164         canonicalize-lgpl: work around AIX realpath bug
12165         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12166         * doc/posix-functions/realpath.texi (realpath): Document it.
12167         Reported by Bruno Haible.
12168
12169         strerror: work around FreeBSD bug
12170         * lib/strerror.c (strerror): Special case 0.
12171         Reported by Bruno Haible.
12172
12173         strerror-override: avoid bloating errno module
12174         * modules/errno (Files, configure.ac): Move replacement strings...
12175         * modules/strerror-override: ...to new module.
12176         * modules/strerror (Depends-on): Add strerror-override.
12177         * modules/strerror_r-posix (Depends-on): Likewise.
12178         * MODULES.html.sh: Document new module.
12179         Reported by Bruno Haible.
12180
12181 2011-06-06  Bruno Haible  <bruno@clisp.org>
12182
12183         spawn-pipe tests: Rename program.
12184         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12185         * tests/test-spawn-pipe-child.c: Update comment.
12186         * tests/test-spawn-pipe.sh: Update.
12187         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12188
12189         spawn-pipe tests: Link the child program only against libc.
12190         * tests/test-spawn-pipe-child.c: New file, extracted from
12191         tests/test-spawn-pipe.c.
12192         (main): Expect only one argument.
12193         (is_open): New function, copied from tests/test-pipe.c.
12194         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12195         (child_main): Remove function.
12196         (test_pipe): Pass only one argument to the child program.
12197         (main): Remove child process code. Expect the child program's name as
12198         first argument.
12199         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12200         argument.
12201         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12202         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12203         test-spawn-pipe-child against no libraries.
12204
12205 2011-06-06  Bruno Haible  <bruno@clisp.org>
12206
12207         careadlinkat: Avoid mismatch between ssize_t and int.
12208         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12209         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12210
12211 2011-06-06  Jim Meyering  <meyering@redhat.com>
12212
12213         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12214         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12215         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12216
12217 2011-06-05  Bruno Haible  <bruno@clisp.org>
12218
12219         ansi-c++-opt: Interoperability with libtool.
12220         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12221         set the variable to "no", not to ":".
12222         * NEWS: Mention the change.
12223
12224 2011-06-05  Bruno Haible  <bruno@clisp.org>
12225
12226         acl: Fix test failure on AIX 7.
12227         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12228         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12229
12230 2011-06-05  Bruno Haible  <bruno@clisp.org>
12231
12232         pipe-filter-ii: Fix test failure on AIX and IRIX.
12233         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12234         with EAGAIN, retry with a smaller buffer size.
12235
12236 2011-06-05  Bruno Haible  <bruno@clisp.org>
12237
12238         localename: Fix link dependencies.
12239         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12240         * modules/localename-tests (Makefile.am): Link test-localename with
12241         $(LIBTHREAD).
12242
12243 2011-06-05  Bruno Haible  <bruno@clisp.org>
12244
12245         error: Avoid gcc warning.
12246         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12247
12248 2011-06-05  Bruno Haible  <bruno@clisp.org>
12249
12250         unsetenv: Avoid gcc warning.
12251         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12252
12253 2011-06-05  Bruno Haible  <bruno@clisp.org>
12254
12255         setenv: Avoid gcc warning.
12256         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12257
12258 2011-06-05  Bruno Haible  <bruno@clisp.org>
12259
12260         sys_select: Ensure memset is declared also on AIX 7.
12261         * lib/sys_select.in.h: Include <string.h> also on AIX.
12262         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12263         self-contained also on AIX 7.1.
12264
12265 2011-06-04  Jim Meyering  <meyering@redhat.com>
12266
12267         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12268         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12269         function name, "error".
12270         (_gl_translatable_diag_func_re): New configurable variable.
12271
12272 2011-06-04  Bruno Haible  <bruno@clisp.org>
12273
12274         getopt: Avoid gcc warning.
12275         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12276
12277 2011-06-04  Bruno Haible  <bruno@clisp.org>
12278
12279         strerror_r: Fix comments.
12280         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12281         commit.
12282
12283 2011-06-04  Bruno Haible  <bruno@clisp.org>
12284
12285         perror: Fix compilation error.
12286         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12287         Undefine fprintf, not sprintf.
12288         * modules/perror (Depends-on): Remove intprops, verify.
12289
12290 2011-06-04  Bruno Haible  <bruno@clisp.org>
12291
12292         setlocale: Enable replacement on Cygwin 1.5.
12293         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12294         Cygwin 1.5.x.
12295         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12296         LC_CTYPE category also exists on Cygwin 1.5.x.
12297
12298 2011-06-04  Bruno Haible  <bruno@clisp.org>
12299
12300         strerror-override: Don't disable symbol renamings.
12301         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12302         * lib/strerror-override.c: Include config.h.
12303         (strerror_override): Don't undefine.
12304
12305 2011-06-03  Bruno Haible  <bruno@clisp.org>
12306
12307         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12308         * lib/localename.h: Update copyright header.
12309         * lib/localename.c: Likewise.
12310         * lib/relocatable.h: Likewise.
12311         * lib/relocatable.c: Likewise.
12312
12313 2011-06-02  Bruno Haible  <bruno@clisp.org>
12314
12315         doc: Fix a module name.
12316         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12317
12318 2011-06-02  Bruno Haible  <bruno@clisp.org>
12319
12320         pipe2: Remove dependency on 'nonblocking' module.
12321         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12322         O_NONBLOCK is defined by gnulib.
12323         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12324         is zero.
12325         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12326         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12327         defined by gnulib.
12328         (get_nonblocking_flag): New function.
12329         (main): Test O_NONBLOCK flag only if it is nonzero.
12330         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12331
12332 2011-06-03  Jim Meyering  <meyering@redhat.com>
12333
12334         maint: three new prohibit-header-without-use rules
12335         Prohibit use of cloexec.h, posixver.h, same.h without use.
12336         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12337         (sc_prohibit_posixver_without_use): Likewise.
12338         (sc_prohibit_same_without_use): Likewise.
12339
12340 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12341
12342         allocator: 'die' routine is now given requested size
12343         * lib/allocator.h (struct allocator.die): New size arg.
12344         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12345         If the actual problem is an ssize_t limitation, not a size_t or
12346         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12347
12348 2011-06-01  Eric Blake  <eblake@redhat.com>
12349
12350         strerror: drop strerror_r dependency
12351         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12352         * lib/strerror-override.c (strerror_override): ...to new file.
12353         * lib/strerror-override.h: Add prototype.
12354         * lib/strerror-impl.h: Delete.
12355         * lib/strerror.c (strerror): New implementation.
12356         * modules/errno (Files): Add new files.
12357         (configure.ac): Compile new file as appropriate.
12358         * modules/strerror (Files): Drop unused file.
12359         (Depends-on): Drop strerror_r-posix.
12360         * MODULES.html.sh: Document strerror_r-posix.
12361         Requested by Sam Steingold.
12362
12363         perror: call strerror_r directly
12364         * modules/perror (Files): Drop strerror-impl.h.
12365         * lib/perror.c (perror): Use our own stack buffer, rather than
12366         calling a wrapper that uses static storage.
12367         * doc/posix-functions/perror.texi (perror): Document a limitation
12368         of our replacement.
12369
12370         strerror_r: fix includes for FreeBSD
12371         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12372         since we use abort on some platforms.
12373         Reported by Matthias Bolte.
12374
12375 2011-05-31  Bruno Haible  <bruno@clisp.org>
12376
12377         Fix link errors in tests: openat-die uses gettext-h.
12378         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12379         against $(LIBINTL).
12380         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12381         against $(LIBINTL).
12382         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12383         $(LIBINTL).
12384         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12385         against $(LIBINTL).
12386         * modules/linkat-tests (Makefile.am): Link test-linkat against
12387         $(LIBINTL).
12388         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12389         $(LIBINTL).
12390         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12391         against $(LIBINTL).
12392         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12393         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12394         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12395         $(LIBINTL).
12396         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12397         $(LIBINTL).
12398         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12399         $(LIBINTL).
12400         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12401
12402 2011-05-31  Bruno Haible  <bruno@clisp.org>
12403
12404         Fix link errors in tests: wait-process uses gettext-h.
12405         * modules/nonblocking-pipe-tests (Makefile.am): Set
12406         test_nonblocking_pipe_main_LDADD.
12407         * modules/nonblocking-socket-tests (Makefile.am): Link
12408         test-nonblocking-socket-main against $(LIBINTL).
12409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12410
12411 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12412
12413         assert-h: work around 'verify' incompatibility
12414         * lib/verify.h: Use @...@ directives, not ifdef.
12415         * modules/assert-h (assert.h): Implement the directives.
12416         (assert.h): Substitute the symbol-prefix more consistently.
12417
12418 2011-05-29  Jim Meyering  <meyering@redhat.com>
12419
12420         trim: remove three superfluous assignments
12421         * lib/trim.c (trim2): Remove three superfluous assignments
12422         and correct brace positioning.
12423
12424 2011-05-29  Bruno Haible  <bruno@clisp.org>
12425
12426         wctype-h: Avoid namespace pollution on Solaris 2.6.
12427         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12428         identifiers.
12429         * doc/posix-headers/wctype.texi: Mention the problem.
12430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12431
12432 2011-05-28  Jim Meyering  <meyering@redhat.com>
12433
12434         parse-datetime.y: accommodate -Wstrict-overflow
12435         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12436         placate -Wstrict-overflow.
12437
12438         trim: avoid a warning from -O2 -Wstrict-overflow
12439         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12440
12441 2011-05-29  Bruno Haible  <bruno@clisp.org>
12442
12443         gnulib-tool: Fix bug in yesterday's commit.
12444         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12445         twice.
12446
12447 2011-05-29  Bruno Haible  <bruno@clisp.org>
12448
12449         Allow multiple gnulib generated include files to be combined.
12450         * gnulib-tool (func_compute_include_guard_prefix): New function.
12451         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12452         ${gl_include_guard_prefix} references.
12453         (func_import, func_create_testdir): Invoke
12454         func_compute_include_guard_prefix.
12455         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12456         * lib/ctype.in.h: Likewise.
12457         * lib/dirent.in.h: Likewise.
12458         * lib/errno.in.h: Likewise.
12459         * lib/fcntl.in.h: Likewise.
12460         * lib/float.in.h: Likewise.
12461         * lib/getopt.in.h: Likewise.
12462         * lib/iconv.in.h: Likewise.
12463         * lib/langinfo.in.h: Likewise.
12464         * lib/locale.in.h: Likewise.
12465         * lib/math.in.h: Likewise.
12466         * lib/netdb.in.h: Likewise.
12467         * lib/netinet_in.in.h: Likewise.
12468         * lib/poll.in.h: Likewise.
12469         * lib/pthread.in.h: Likewise.
12470         * lib/pty.in.h: Likewise.
12471         * lib/sched.in.h: Likewise.
12472         * lib/se-selinux.in.h: Likewise.
12473         * lib/search.in.h: Likewise.
12474         * lib/signal.in.h: Likewise.
12475         * lib/spawn.in.h: Likewise.
12476         * lib/stdarg.in.h: Likewise.
12477         * lib/stddef.in.h: Likewise.
12478         * lib/stdint.in.h: Likewise.
12479         * lib/stdio.in.h: Likewise.
12480         * lib/stdlib.in.h: Likewise.
12481         * lib/string.in.h: Likewise.
12482         * lib/strings.in.h: Likewise.
12483         * lib/sys_file.in.h: Likewise.
12484         * lib/sys_ioctl.in.h: Likewise.
12485         * lib/sys_select.in.h: Likewise.
12486         * lib/sys_socket.in.h: Likewise.
12487         * lib/sys_stat.in.h: Likewise.
12488         * lib/sys_time.in.h: Likewise.
12489         * lib/sys_times.in.h: Likewise.
12490         * lib/sys_uio.in.h: Likewise.
12491         * lib/sys_utsname.in.h: Likewise.
12492         * lib/sys_wait.in.h: Likewise.
12493         * lib/sysexits.in.h: Likewise.
12494         * lib/termios.in.h: Likewise.
12495         * lib/time.in.h: Likewise.
12496         * lib/unistd.in.h: Likewise.
12497         * lib/wchar.in.h: Likewise.
12498         * lib/wctype.in.h: Likewise.
12499         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12500         * modules/ctype (Makefile.am): Likewise.
12501         * modules/dirent (Makefile.am): Likewise.
12502         * modules/errno (Makefile.am): Likewise.
12503         * modules/fcntl-h (Makefile.am): Likewise.
12504         * modules/float (Makefile.am): Likewise.
12505         * modules/getopt-posix (Makefile.am): Likewise.
12506         * modules/iconv-h (Makefile.am): Likewise.
12507         * modules/langinfo (Makefile.am): Likewise.
12508         * modules/locale (Makefile.am): Likewise.
12509         * modules/math (Makefile.am): Likewise.
12510         * modules/netdb (Makefile.am): Likewise.
12511         * modules/netinet_in (Makefile.am): Likewise.
12512         * modules/poll-h (Makefile.am): Likewise.
12513         * modules/pthread (Makefile.am): Likewise.
12514         * modules/pty (Makefile.am): Likewise.
12515         * modules/sched (Makefile.am): Likewise.
12516         * modules/search (Makefile.am): Likewise.
12517         * modules/selinux-h (Makefile.am): Likewise.
12518         * modules/signal (Makefile.am): Likewise.
12519         * modules/spawn (Makefile.am): Likewise.
12520         * modules/stdarg (Makefile.am): Likewise.
12521         * modules/stddef (Makefile.am): Likewise.
12522         * modules/stdint (Makefile.am): Likewise.
12523         * modules/stdio (Makefile.am): Likewise.
12524         * modules/stdlib (Makefile.am): Likewise.
12525         * modules/string (Makefile.am): Likewise.
12526         * modules/strings (Makefile.am): Likewise.
12527         * modules/sys_file (Makefile.am): Likewise.
12528         * modules/sys_ioctl (Makefile.am): Likewise.
12529         * modules/sys_select (Makefile.am): Likewise.
12530         * modules/sys_socket (Makefile.am): Likewise.
12531         * modules/sys_stat (Makefile.am): Likewise.
12532         * modules/sys_time (Makefile.am): Likewise.
12533         * modules/sys_times (Makefile.am): Likewise.
12534         * modules/sys_uio (Makefile.am): Likewise.
12535         * modules/sys_utsname (Makefile.am): Likewise.
12536         * modules/sys_wait (Makefile.am): Likewise.
12537         * modules/sysexits (Makefile.am): Likewise.
12538         * modules/termios (Makefile.am): Likewise.
12539         * modules/time (Makefile.am): Likewise.
12540         * modules/unistd (Makefile.am): Likewise.
12541         * modules/wchar (Makefile.am): Likewise.
12542         * modules/wctype-h (Makefile.am): Likewise.
12543         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12544
12545 2011-05-29  Bruno Haible  <bruno@clisp.org>
12546
12547         assert-h: Allow multiple gnulib generated replacements to coexist.
12548         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12549
12550 2011-05-29  Bruno Haible  <bruno@clisp.org>
12551
12552         argp: Allow coexistence with strerror_r-posix module.
12553         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12554         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12555         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12556         not the glibc signature.
12557
12558 2011-05-28  Bruno Haible  <bruno@clisp.org>
12559
12560         gnulib-tool: Alternative structure of testdirs, similar to --import.
12561         * gnulib-tool: New option --single-configure.
12562         (func_usage): Document it.
12563         (single_configure): New variable.
12564         (func_modules_transitive_closure_separately,
12565         func_modules_transitive_closure_separately,
12566         func_determine_use_libtests, func_modules_add_dummy_separately,
12567         func_modules_to_filelist_separately): New functions, extracted from
12568         func_import.
12569         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12570         (func_import): Use the new functions.
12571         (func_create_testdir): Set final_modules. Handle $single_configure =
12572         true case.
12573
12574 2011-05-28  Bruno Haible  <bruno@clisp.org>
12575
12576         getloadavg: Remove an unreliable safety check.
12577         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12578         getloadavg.c is in place.
12579         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12580         Reported by Sam Steingold <sds@gnu.org>.
12581
12582 2011-05-28  Bruno Haible  <bruno@clisp.org>
12583
12584         doc: Cleanup yet another file produced by texinfo.tex.
12585         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12586
12587 2011-05-28  Bruno Haible  <bruno@clisp.org>
12588
12589         Finish the conditional dependencies mechanism.
12590         * gnulib-tool: New option --no-conditional-dependencies.
12591         (func_usage): Document it. Don't mark --conditional-dependencies as
12592         experimental.
12593         (cond_dependencies): The possible values can now be true, false, empty.
12594         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12595         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12596         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12597
12598 2011-05-28  Bruno Haible  <bruno@clisp.org>
12599
12600         doc: Use a recent texinfo.tex.
12601         * doc/Makefile (tex_opts): New variable.
12602         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12603
12604 2011-05-28  Jim Meyering  <meyering@redhat.com>
12605
12606         intprops.h: adjust comment to match code change
12607         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12608         only once, it *may* have side effects.  Also fix an unrelated typo.
12609         (_GL_INT_SIGNED): Likewise.
12610
12611 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12612
12613         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12614
12615 2011-05-26  Bruno Haible  <bruno@clisp.org>
12616
12617         mbsrchr: Avoid collision with system function on Interix.
12618         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12619         Reported by Markus Duft <mduft@gentoo.org>.
12620
12621 2011-05-15  James Youngman  <jay@gnu.org>
12622
12623         getopt: for ambiguous options, enumerate the possibilities.
12624         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12625         the ambiguous options when an ambiguous prefix is given. This was
12626         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12627         glibc change was
12628         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12629
12630 2011-05-25  Eric Blake  <eblake@redhat.com>
12631
12632         getcwd: work around mingw bug
12633         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12634         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12635         Reported by Matthias Bolte.
12636
12637 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12638
12639         test-intprops: disable -Wtype-limits diagnostics
12640         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12641         diagnostics.  Otherwise, the integer overflow macros generate many
12642         diagnostics.  Reported by Jim Meyering in
12643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12644
12645         intprops: shorten, to pacify gcc -Woverlength-strings
12646         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12647         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12648         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12649         likely to run afoul of C compiler limits for string constant lengths.
12650         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12651
12652 2011-05-24  Eric Blake  <eblake@redhat.com>
12653
12654         docs: document recently fixed glibc printf bug
12655         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12656         * doc/posix-functions/printf.texi (printf): Likewise.
12657         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12658         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12659
12660         closein-tests: convert to init.sh
12661         * modules/closein-tests (Files): Add init.sh
12662         * tests/test-closein.sh Use it.
12663
12664         yesno-tests: convert to init.sh
12665         * modules/yesno-tests (Files): Add init.sh.
12666         * tests/test-yesno.sh: Use it.
12667
12668         atexit-tests: ensure reliable exit status
12669         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12670         Reported by Bruno Haible.
12671
12672 2011-05-24  Bruno Haible  <bruno@clisp.org>
12673
12674         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12675         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12676         gl_PREREQ_STRERROR_R invocations from here...
12677         * modules/strerror_r-posix (configure.ac): ... to here.
12678
12679 2011-05-24  Eric Blake  <eblake@redhat.com>
12680
12681         strerror_r: fix missing header
12682         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12683
12684         strerror_r: fix AIX test failures
12685         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12686         ERANGE failure.
12687
12688         strerror_r: fix Solaris test failures
12689         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12690         failures.
12691         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12692
12693         strerror_r: enforce POSIX recommendations
12694         * lib/strerror_r.c (safe_copy): New helper method.
12695         (strerror_r): Guarantee a non-empty string.
12696         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12697         recent POSIX rulings and to match our strerror guarantees.
12698         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12699
12700 2011-05-24  Jim Meyering  <meyering@redhat.com>
12701
12702         test-perror2.c: avoid warning about unused variable
12703         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12704
12705 2011-05-24  Eric Blake  <eblake@redhat.com>
12706
12707         perror: avoid spurious test failure on HP-UX
12708         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12709
12710         tests: fix logic bug in init.sh
12711         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12712         shell.
12713
12714 2011-05-24  Jim Meyering  <meyering@redhat.com>
12715
12716         utimensat: do not reference an out-of-scope buffer
12717         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12718         declared in an inner scope, yet "times" would be dereferenced outside
12719         the scope in which "ts" was valid.
12720         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12721         of ts[2] "out/up", so that the use of aliased "times" (via
12722         "times = ts;") does not end up referencing an out-of-scope "ts"
12723
12724         opendir-safer.c: don't clobber errno; don't close negative FD
12725         * lib/opendir-safer.c (opendir_safer):
12726         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12727         file descriptor, and more importantly, don't clobber the
12728         offending errno value with EINVAL.  Before, upon failure
12729         of dup_safer, we would pass the negative file descriptor to
12730         fdopendir, which would clobber errno.
12731
12732 2011-05-23  Bruno Haible  <bruno@clisp.org>
12733
12734         idcache: Fix module description.
12735         * modules/idcache (Include): Set to "idcache.h".
12736
12737 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12738
12739         gnulib-tool: fix portability problem with MacOS sed
12740         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12741         before the "}".  Problem reported by Leo in
12742         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12743         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12744         sed_extract_condition1, sed_extract_condition2.
12745
12746 2011-05-23  Bruno Haible  <bruno@clisp.org>
12747
12748         hash: Simplify autoconf macro.
12749         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12750
12751 2011-05-23  Bruno Haible  <bruno@clisp.org>
12752
12753         getugroups: Fix module description.
12754         * modules/getugroups (Include): Set to "getugroups.h".
12755
12756 2011-05-23  Bruno Haible  <bruno@clisp.org>
12757
12758         linkat: Simplify autoconf macro.
12759         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12760
12761 2011-05-23  Bruno Haible  <bruno@clisp.org>
12762             Eric Blake  <eblake@redhat.com>
12763
12764         linkat, renameat: Update dependencies.
12765         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12766         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12767         symlinkat.
12768
12769 2011-05-23  Jim Meyering  <meyering@redhat.com>
12770
12771         maint.mk: more tight_scope improvements
12772         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12773         (_gl_TS_headers): Define only in if-0'd block.
12774         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12775         sometimes we must *not* use it.  Adjust uses accordingly.
12776         (sc_tight_scope): Use much simpler grep-based test to determine
12777         whether we skip this rule.
12778
12779         maint.mk: generalize/improve the tight-scope rule
12780         * top/maint.mk: Emit a warning when the test is skipped.
12781         (_gl_TS_dir): Add $(srcdir)/ prefix.
12782         (_gl_TS_function_match): Simplify, rather than trying
12783         to enumerate common types.  Otherwise, it would fail to match an
12784         "extern unsigned char const *" declaration in idutils.
12785         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12786         a way to support use of that type of macro.
12787         (_gl_TS_var_match): Simplify regexp.
12788         (_gl_TS_obj_files): New configurable variable.
12789         (_gl_TS_headers): Likewise.
12790
12791 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12792
12793         verify: fix bug when gnulib <assert.h> is also included
12794         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12795         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12796         Perhaps there's a better way, but this fixes the immediate problem.
12797         Problem reported by Bruno Haible in
12798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12799
12800 2011-05-22  Bruno Haible  <bruno@clisp.org>
12801
12802         xgetcwd: Simplify autoconf macro.
12803         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12804
12805 2011-05-22  Bruno Haible  <bruno@clisp.org>
12806
12807         New module 'mktime-internal'.
12808         * modules/mktime-internal: New file.
12809         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12810         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12811         mktime_internal as a C macro if libc has __mktime_internal.
12812         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12813         conditions.
12814         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12815
12816 2011-05-22  Bruno Haible  <bruno@clisp.org>
12817
12818         timegm: Correct mktime replacement statements.
12819         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12820         defining mktime as a C macro. This completes a 2009-07-28 commit.
12821
12822 2011-05-22  Bruno Haible  <bruno@clisp.org>
12823
12824         timegm: Simplify autoconf macro.
12825         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12826
12827 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12828
12829         clock-time: change to LGPLv2+.
12830         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12831         BSD-like but we have no mark for that; this is good enough for now.
12832
12833 2011-05-21  Bruno Haible  <bruno@clisp.org>
12834
12835         strerror_r: Fix comments.
12836         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12837
12838 2011-05-21  Bruno Haible  <bruno@clisp.org>
12839
12840         relocatable-prog-wrapper: Fix possible link error.
12841         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12842         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12843         (gl_FUNC_SETENV): ... to here.
12844         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12845         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12846
12847 2011-05-21  Bruno Haible  <bruno@clisp.org>
12848
12849         relocatable-prog-wrapper: Assume strerror() exists.
12850         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12851         m4/strerror.m4.
12852         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12853         * lib/relocwrapper.c: Remove mention of strerror module.
12854         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12855         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12856         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12857         C macro.
12858
12859 2011-05-21  Bruno Haible  <bruno@clisp.org>
12860
12861         select: Simplify replacement idiom.
12862         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12863         Win32 platforms.
12864         * lib/sys_select.in.h (select): Simplify accordingly.
12865         * modules/select (Depends-on): Likewise.
12866
12867 2011-05-21  Bruno Haible  <bruno@clisp.org>
12868
12869         mkdir-p: Simplify autoconf macro.
12870         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12871         gl_FUNC_LCHOWN.
12872
12873 2011-05-21  Eric Blake  <eblake@redhat.com>
12874
12875         strerror_r: avoid clobbering strerror on cygwin
12876         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12877         fall back instead to sys_errlist.
12878         * modules/strerror (configure.ac): Add witness.
12879         * tests/test-strerror_r.c (main): Enhance test.
12880         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12881         * tests/test-perror2.c (main): Free memory before exit.
12882
12883 2011-05-21  Bruno Haible  <bruno@clisp.org>
12884
12885         mkdtemp: Use gnulib naming conventions.
12886         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12887         * modules/mkdtemp (configure.ac): Update.
12888
12889 2011-05-20  Eric Blake  <eblake@redhat.com>
12890
12891         strerror_r: avoid corrupting errno on Solaris
12892         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12893         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12894
12895         strerror_r: avoid compiler warning
12896         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12897
12898         strerror_r: simplify AIX code
12899         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12900
12901         test-perror: avoid spurious failure on FreeBSD
12902         * modules/perror-tests (Depends-on): Add strerror, now that
12903         strerror_r no longer pulls it in.
12904
12905 2011-05-20  Bruno Haible  <bruno@clisp.org>
12906
12907         strerror_r-posix: Remove unused dependencies.
12908         * modules/strerror_r-posix (Depends-on): Remove strerror.
12909         Reported by Eric Blake.
12910
12911 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12912
12913         intprops: remove assumption about A|B representation
12914         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12915         is a valid integer if both A and B are.  Although this is true for
12916         all known practical hosts, the C standard doesn't guarantee it,
12917         and the code need not assume it.  Also, this change may work around
12918         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12919         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12920
12921 2011-05-20  Eric Blake  <eblake@redhat.com>
12922
12923         perror: work around FreeBSD bug
12924         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12925         is broken.  Move AC_LIBOBJ...
12926         * modules/perror (configure.ac): Here.
12927         * doc/posix-functions/perror.texi (perror): Document this.
12928         * tests/test-perror2.c (main): Enhance test.
12929
12930         test-perror: check for strerror interactions
12931         * tests/macros.h (STREQ): Add macro.
12932         * modules/perror-tests (Files): Add second test.
12933         * tests/test-perror2.c (main): New file.
12934         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12935
12936         test-perror: rewrite to use init script
12937         * modules/perror-tests (Files): Add init.sh.
12938         * tests/test-perror.sh: Use temporary directory.
12939
12940 2011-05-20  Jim Meyering  <meyering@redhat.com>
12941
12942         maint: replace misused "a" with "an"
12943         * doc/intprops.texi: "a integer"
12944         * doc/regex.texi: "a explanation"
12945         * lib/alignof.h: "a object"
12946         * lib/argmatch.h: "a explanation"
12947         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12948         * lib/stdint.in.h: "a integer"
12949         * lib/userspec.c: "a owner"
12950         * doc/gnulib.texi: Fix "a idea", and reword.
12951
12952 2011-05-19  Jim Meyering  <meyering@redhat.com>
12953
12954         maint: correct misuse of "a" and "an"
12955         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12956         * lib/argp-help.c: "an docum...": s/an/a/
12957         * lib/argp-parse.c: "An vector": s/An/A/
12958         * lib/execute.c: "an native": s/an/a/
12959         * lib/spawn-pipe.c: Likewise.
12960         * lib/gc.h: "an Gc_rc": s/an/a/
12961         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12962         * lib/fts.c: "an stat.st_dev": s/an/a/
12963
12964 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12965
12966         intprops-tests: work around HP-UX 11.23 cc bug with constants
12967         * tests/test-intprops.c (VERIFY): New macro.
12968         (main): Use it, instead of verify, to work around the compiler bug; see
12969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12970
12971         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12972         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12973         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12974         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12975         (_GL_REMAINDER_OVERFLOW): Use it.
12976
12977         intprops-tests: revert unsigned part of previous change
12978         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12979         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12980         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12982
12983 2011-05-19  Bruno Haible  <bruno@clisp.org>
12984
12985         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12986         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12987         strerror_r() returned without filling the buffer.
12988         Reported by Eric Blake.
12989
12990 2011-05-19  Eric Blake  <eblake@redhat.com>
12991
12992         strerror_r: guarantee unchanged errno
12993         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12994         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12995         failure.
12996         * tests/test-strerror_r.c (main): Enhance test.
12997
12998 2011-05-19  Bruno Haible  <bruno@clisp.org>
12999
13000         strerror_r: Reorder #if blocks.
13001         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
13002         for consistency with the previous commit.
13003
13004 2011-05-19  Bruno Haible  <bruno@clisp.org>
13005
13006         perror: Avoid clobbering the strerror buffer when possible.
13007         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
13008         * lib/strerror.c: Include it.
13009         * modules/strerror (Files): Add lib/strerror-impl.h.
13010         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
13011         (my_strerror): New function, defined through lib/strerror-impl.h.
13012         (perror): Use it instead of strerror.
13013         * modules/perror (Files): Add lib/strerror-impl.h.
13014         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
13015
13016 2011-05-19  Eric Blake  <eblake@redhat.com>
13017
13018         strerror_r: fix on newer cygwin
13019         * lib/strerror_r.c (strerror_r): Cygwin now has
13020         __xpg_strerror_r, use it.
13021
13022 2011-05-19  Bruno Haible  <bruno@clisp.org>
13023
13024         strerror_r: Avoid clobbering the strerror buffer when possible.
13025         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
13026         (sys_nerr, sys_errlist): New declarations.
13027         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
13028         HP-UX, native Win32, IRIX, and 32-bit Solaris.
13029         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
13030
13031 2011-05-19  Bruno Haible  <bruno@clisp.org>
13032
13033         strerror_r: Fix test failure on mingw.
13034         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
13035         EXTEND_STRERROR_R.
13036         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
13037         macros from errno.in.h instead.
13038
13039 2011-05-19  Eric Blake  <eblake@redhat.com>
13040
13041         strerror: relax test for Solaris
13042         * tests/test-strerror.c (main): Permit Solaris behavior.
13043         * tests/test-strerror_r.c (main): Likewise.
13044
13045         strerror: enforce POSIX ruling on strerror(0)
13046         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
13047         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13048         * lib/strerror_r.c (rpl_strerror_r): Work around it.
13049         * doc/posix-functions/strerror.texi (strerror): Document it.
13050         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
13051         * tests/test-strerror.c (main): Strengthen test.
13052         * tests/test-strerror_r.c (main): Likewise.
13053
13054 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13055
13056         intprop-tests: port to older and more-pedantic compilers
13057         * modules/intprops-tests (Files): Add tests/macros.h.
13058         * tests/test-intprops.c: Include macros.h.
13059         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
13060         it's no longer documented to expand to an integer constant expression.
13061         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
13062         argument is floating point, as it's no longer documented to expand
13063         to an integer constant expression in that case.
13064         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
13065         compiler bugs reported by Bruno Haible.  See
13066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13067         (U0, U1): New constants, to work around the same bugs.  Also,
13068         in tests, use e.g., "(unsigned int) 39" rather than "39u".
13069
13070         intprops: work around C compiler bugs
13071         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
13072         bug in Sun C 5.11 2010/08/13 and other compilers; see
13073         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
13074
13075         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
13076         * doc/intprops.texi (Integer Type Determination): Fix
13077         documentation for TYPE_IS_INTEGER: it returns an constant
13078         expression, not an integer constant expression.  Fix doc for
13079         TYPE_SIGNED: it returns an integer constant expression only if its
13080         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
13081         hardly worth documented that way....)
13082
13083 2011-05-18  Bruno Haible  <bruno@clisp.org>
13084
13085         strerror_r: Avoid clobbering the strerror buffer when possible.
13086         * lib/strerror_r.c (strerror_r): Merge the three implementations.
13087         Handle gnulib defined errno values here. When strerror() returns NULL
13088         or an empty string, return EINVAL.
13089         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
13090         gnulib defined errno values here.
13091         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
13092
13093 2011-05-18  Eric Blake  <eblake@redhat.com>
13094
13095         fnmatch: avoid compiler warning
13096         * lib/fnmatch_loop.c (FCT): Use correct type.
13097         Reported by Matthias Bolte.
13098
13099 2011-05-13  Jim Meyering  <meyering@redhat.com>
13100
13101         maint.mk: three new prohibit_<HDR>_without_use rules
13102         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
13103         (sc_prohibit_stdio-safer_without_use): Likewise.
13104         (sc_prohibit_xfreopen_without_use): Likewise.
13105
13106 2011-05-17  Jim Meyering  <meyering@redhat.com>
13107
13108         announce-gen: fail if the NEWS delta is empty
13109         If there's nothing noteworthy in NEWS, then either you forgot
13110         or you shouldn't be releasing.
13111         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
13112
13113 2011-05-17  Pádraig Brady <P@draigBrady.com>
13114
13115         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
13116         reserved symbols starting with double underscore from the check.
13117
13118 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
13119
13120         intprops: add doc
13121         * doc/intprops.texi: New file, documenting intprops.
13122         * doc/gnulib.texi (Particular Modules): Include it.
13123
13124         verify: add doc to gnulib manual and fix example
13125         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
13126         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
13127         (Compile-time Assertions): Fix example so it can't overflow.
13128
13129 2011-05-17  Jim Meyering  <meyering@redhat.com>
13130
13131         warnings.m4: don't usurp save_CPPFLAGS variable name
13132         * m4/warnings.m4: Prefix local temporary variable name with gl_.
13133
13134         doc: fix typo
13135         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
13136
13137 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13138             Bruno Haible  <bruno@clisp.org>
13139
13140         doc: Tweak recent change.
13141         * README (Portability guidelines): Tweak new text.
13142         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
13143         Interix 6.1.
13144
13145 2011-05-16  Eric Blake  <eblake@redhat.com>
13146
13147         inttypes: avoid autoconf warning
13148         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
13149         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13150
13151 2011-05-16  Sam Steingold <sds@gnu.org>
13152         and Eric Blake  <eblake@redhat.com>
13153
13154         vc-list-files: accept multiple directory operands
13155         * build-aux/vc-list-files: Iterate over all remaining operands.
13156
13157 2011-05-16  Bruno Haible  <bruno@clisp.org>
13158
13159         Fix confusion regarding deprecated modules.
13160         * modules/calloc (Status, Notice): Mark module as deprecated, not
13161         obsolete.
13162         * modules/fnmatch-posix (Status, Notice): Likewise.
13163         * modules/getdate (Status, Notice): Likewise.
13164         * modules/getopt (Status, Notice): Likewise.
13165         * modules/malloc (Status, Notice): Likewise.
13166         * modules/pipe (Status, Notice): Likewise.
13167         * modules/realloc (Status, Notice): Likewise.
13168         * modules/rename-dest-slash (Status, Notice): Likewise.
13169         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13170         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13171         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13172         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13173         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13174
13175 2011-05-16  Bruno Haible  <bruno@clisp.org>
13176
13177         doc: List the target platforms.
13178         * doc/gnulib-intro.texi (Target Platforms): New section.
13179         * doc/gnulib.texi (Introduction): Update menu.
13180         * README (Portability guidelines): Refer to the new section. Update
13181         statement about oldest supported environment. Remove rationale why
13182         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13183         unportable C89 function.
13184         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13185         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13186
13187 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13188
13189         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13190
13191 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13192
13193         intprops-tests: new module
13194         * modules/intprops-tests, tests/test-intprops.c: New files.
13195
13196         intprops: add safe, portable integer overflow checking
13197         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13198         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13199         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13200         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13201         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13202         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13203         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13204         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13205         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13206         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13207         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13208
13209 2011-05-12  James Youngman  <jay@gnu.org>
13210
13211         Add a test for glibc's Bugzilla bug #12378.
13212         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13213         doesn't allow the literal matching of a lone "[" (which is
13214         required by POSIX).
13215         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13216
13217 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13218
13219         Sync glibc change fixing Bugzilla bug #12378.
13220         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13221         beginning and fall back to matching as normal character if the
13222         string ends before the matching ']' is found.  This is what POSIX
13223         requires.
13224
13225 2011-05-13  Eric Blake  <eblake@redhat.com>
13226
13227         getcwd-lgpl: relax test for FreeBSD
13228         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13229         issue.
13230         * tests/test-getcwd-lgpl.c (main): Relax test.
13231         Reported by Matthias Bolte.
13232
13233 2011-05-11  Eric Blake  <eblake@redhat.com>
13234
13235         test-fflush: silence compiler warning
13236         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13237
13238 2011-05-11  Bruno Haible  <bruno@clisp.org>
13239
13240         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13241         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13242         * modules/canonicalize (Depends-on): Add 'nocrash'.
13243         * modules/canonicalize-lgpl (Depends-on): Likewise.
13244         * doc/posix-functions/realpath.texi: Update platforms list.
13245         Reported by Ryan Schmidt <ryandesign@macports.org>.
13246
13247 2011-05-11  Bruno Haible  <bruno@clisp.org>
13248
13249         group-member: Declare function in <unistd.h>.
13250         * lib/unistd.in.h (group_member): New declaration.
13251         * lib/group-member.h: Remove file.
13252         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13253         * tests/test-unistd-c++.cc: Check signature of group_member.
13254         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13255         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13256         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13257         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13258         HAVE_GROUP_MEMBER.
13259         * modules/group-member (Files): Remove lib/group-member.h.
13260         (Depends-on): Add unistd. Specify conditions.
13261         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13262         (Include): Change to <unistd.h>.
13263         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13264         HAVE_GROUP_MEMBER.
13265         * NEWS: Mention the change.
13266         * lib/euidaccess.c: Don't include group-member.h.
13267
13268 2011-05-11  Bruno Haible  <bruno@clisp.org>
13269
13270         group-member: Document module.
13271         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13272         module.
13273
13274 2011-05-11  Bruno Haible  <bruno@clisp.org>
13275
13276         fclose: Fix mistake earlier today.
13277         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13278
13279 2011-05-11  Eric Blake  <eblake@redhat.com>
13280
13281         fclose: preserve fflush errors
13282         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13283         Reported by Jim Meyering.
13284
13285         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13286         * build-aux/bootstrap (check_versions): When no specific version
13287         is required, merely check that the app produces an exit status
13288         that indicates its existence.
13289
13290         maint.mk: drop redundant check
13291         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13292         the same but better.
13293
13294 2011-05-11  Bruno Haible  <bruno@clisp.org>
13295
13296         fclose: Fix possible link error.
13297         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13298         unregister_shadow_fd. Improve comments.
13299         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13300         Eric Blake.
13301
13302 2011-05-11  Jim Meyering  <meyering@redhat.com>
13303
13304         maint.mk: improve "can not" detection and generalize rule name
13305         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13306         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13307         Use the same technique as in sc_prohibit_doubled_word, so that
13308         we recognize "can not" also when the words are separated by a newline.
13309         Suggested by Eric Blake.
13310         (perl_filename_lineno_text_): Define.  Factored out of...
13311         (prohibit_doubled_word_): ...here.  Use the new definition.
13312         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13313         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13314         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13315
13316 2011-05-10  Eric Blake  <eblake@redhat.com>
13317
13318         fclose: avoid double close race when possible
13319         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13320         all but WINDOWS_SOCKETS.
13321
13322 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13323
13324         openat: correct new comment
13325         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13326
13327 2011-05-10  Jim Meyering  <meyering@redhat.com>
13328
13329         openat: add comments
13330         * lib/openat-proc.c (openat_proc_name): Add comments,
13331         mostly from Eric Blake.
13332
13333 2011-05-09  Eric Blake  <eblake@redhat.com>
13334
13335         openat: reduce syscalls in first probe of /proc
13336         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13337         be a directory.  Simplify the probe for .. bugs.
13338         * modules/openat (Depends-on): Drop same-inode.
13339         Reported by Bastien ROUCARIES.
13340
13341 2011-05-09  Jim Meyering  <meyering@redhat.com>
13342
13343         maint.mk: change semantics/name of tight_scope variables
13344         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13345         Rename variables to align with semantics that make them more useful.
13346
13347         maint.mk: tweak new rule's name not to impinge
13348         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13349         (sc_tight_scope): Use new rule name rather than $@-0.
13350
13351         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13352         * top/maint.mk (sc_tight_scope): New rule.
13353         (sc_tight_scope-0): New rule, ifdef'd out.
13354         (_gl_TS_dir): Default.
13355         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13356         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13357
13358 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13359
13360         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13361         Haible <bruno@clisp.org>.
13362
13363 2011-05-08  Bruno Haible  <bruno@clisp.org>
13364
13365         Comments.
13366         * m4/isnanf.m4: Add comment.
13367         * m4/isnanl.m4: Likewise.
13368
13369 2011-05-08  Bruno Haible  <bruno@clisp.org>
13370
13371         glob: Remove obsolete macro.
13372         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13373
13374 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13375
13376         intprops: Sun C 5.11 supports __typeof__
13377         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13378         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13379         which is new.
13380         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13381
13382         intprops: switch to usual gnulib indenting and naming
13383         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13384         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13385
13386         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13387
13388 2011-05-08  Jim Meyering  <meyering@redhat.com>
13389
13390         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13391         * top/maint.mk (release-prep): Use make's --no-print-directory
13392         option when generating the announcement.  This eliminates the
13393         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13394         generated announcement template.
13395
13396 2011-05-08  Bruno Haible  <bruno@clisp.org>
13397
13398         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13399         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13400         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13401
13402 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13403
13404         ignore-value, verify: Omit include files from lib_SOURCES.
13405         * modules/ignore-value, modules/verify (Makefile.am):
13406         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13407         that leads Automake to duplicate use of am__objects_... variables
13408         in Makefile.in.  See
13409         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13410
13411 2011-05-07  Bruno Haible  <bruno@clisp.org>
13412
13413         fclose: Simplify autoconf macro.
13414         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13415         defined.
13416
13417 2011-05-07  Bruno Haible  <bruno@clisp.org>
13418
13419         canonicalize-lgpl: Fix autoconf macro ordering bug.
13420         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13421         gl_STDLIB_H_DEFAULTS.
13422
13423 2011-05-06  Eric Blake  <eblake@redhat.com>
13424
13425         maintainer-makefile: make sc_po_check easier to tune
13426         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13427         to probe for strings, such as an alternate location for gnulib.
13428
13429         fclose: guarantee behavior on seekable stdin
13430         * modules/fclose (Depends-on): Add fflush.
13431         * doc/posix-functions/fclose.texi (fclose): Document this.
13432         * tests/test-fclose.c (main): Make test for this unconditional.
13433
13434 2011-05-06  Bruno Haible  <bruno@clisp.org>
13435
13436         fflush, fpurge: Relicense under LGPLv2+.
13437         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13438         * modules/fpurge (License): Likewise.
13439         With permission from Eric Blake and Jim Meyering.
13440         Suggested by Eric Blake.
13441
13442 2011-05-06  Karl Berry  <karl@gnu.org>
13443
13444         * MODULES.html.sh (func_all_modules): remove exit.
13445
13446 2011-05-06  Jim Meyering  <meyering@redhat.com>
13447
13448         maint.mk: use info-gnu@ as the default only for a stable release
13449         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13450         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13451         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13452         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13453
13454 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13455
13456         assert-h: new module, which supports C1X-style static_assert
13457         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13458         * lib/verify.h: Revamp so that this can be copied into assert.h,
13459         while retaining the ability to use it standalone as before.
13460         Rename private identifiers so as not to encroach on the
13461         standard C namespace, since this is now used by assert.h.
13462         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13463         the old verify_true.
13464         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13465         the old verify_true.  Use _GL_VERIFY_TYPE.
13466         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13467         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13468         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13469         defined when this file is copied into the replacement assert.h.
13470         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13471         and _Static_assert is not built in.
13472         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13473         defined, and use the new macros mentioned above.
13474         * doc/posix-headers/assert.texi: Document this.
13475
13476 2011-05-05  Bruno Haible  <bruno@clisp.org>
13477
13478         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13479         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13480         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13481         gl_REPLACE_FCLOSE here.
13482         * modules/fflush (Depends-on): Remove fclose.
13483         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13484         combination with module 'fclose'.
13485
13486 2011-05-05  Bruno Haible  <bruno@clisp.org>
13487
13488         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13489         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13490         gl_FUNC_FFLUSH.
13491         (gl_FUNC_FFLUSH): Use it.
13492         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13493         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13494         gl_REPLACE_FSEEKO here.
13495
13496 2011-05-05  Bruno Haible  <bruno@clisp.org>
13497
13498         tzset: Relicense under LGPL.
13499         * modules/tzset (License): Change to LGPL.
13500         No agreement needed; it's a no-op.
13501
13502         strtoimax, strtoumax: Relicense under LGPL.
13503         * modules/strtoimax (License): Change to LGPL.
13504         * modules/strtoumax (License): Likewise.
13505         With permission from Jim Meyering, Paul Eggert:
13506         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13508
13509         getgroups: Relicense under LGPL.
13510         * modules/getgroups (License): Change to LGPL.
13511         With permission from Jim Meyering, Paul Eggert, Eric Blake:
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
13516         nanosleep: Relicense under LGPL.
13517         * modules/nanosleep (License): Change to LGPL.
13518         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13519         Haible:
13520         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13521         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13523         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13524
13525         futimens: Relicense under LGPL.
13526         * modules/futimens (License): Change to LGPL.
13527         With permission from Eric Blake:
13528         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13529
13530         fflush: Relicense under LGPL.
13531         * modules/fflush (License): Change to LGPL.
13532         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13536
13537         tmpfile: Relicense under LGPL.
13538         * modules/tmpfile (License): Change to LGPL.
13539         With permission from Ben Pfaff:
13540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13541
13542         isfinite: Relicense under LGPL.
13543         * modules/isfinite (License): Change to LGPL.
13544         With permission from Ben Pfaff, Bruno Haible:
13545         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13547
13548         acosl..tanl: Relicense under LGPL.
13549         * modules/acosl (License): Change to LGPL.
13550         * modules/asinl (License): Likewise.
13551         * modules/atanl (License): Likewise.
13552         * modules/cosl (License): Likewise.
13553         * modules/expl (License): Likewise.
13554         * modules/logl (License): Likewise.
13555         * modules/sinl (License): Likewise.
13556         * modules/sqrtl (License): Likewise.
13557         * modules/tanl (License): Likewise.
13558         Source code originally from glibc and Paolo Bonzini. Agreements:
13559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13561
13562 2011-05-05  Bruno Haible  <bruno@clisp.org>
13563
13564         signal: Define sighandler_t.
13565         * lib/signal.in.h (sighandler_t): New type.
13566         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13567         whether sighandler_t is defined.
13568         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13569         * modules/signal (Depends-on): Add extensions.
13570         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13571         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13572         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13573
13574 2011-05-05  Eric Blake  <eblake@redhat.com>
13575
13576         maint: remove useless REPLACE_*_H macros
13577         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13578         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13579         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13580         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13581         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13582         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13583         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13584         * m4/btowc.m4: Update callers.
13585         * m4/dirfd.m4: Likewise.
13586         * m4/duplocale.m4: Likewise.
13587         * m4/fchdir.m4: Likewise.
13588         * m4/fdopendir.m4: Likewise.
13589         * m4/inet_ntop.m4: Likewise.
13590         * m4/inet_pton.m4: Likewise.
13591         * m4/ioctl.m4: Likewise.
13592         * m4/mbrlen.m4: Likewise.
13593         * m4/mbrtowc.m4: Likewise.
13594         * m4/mbsinit.m4: Likewise.
13595         * m4/mbsnrtowcs.m4: Likewise.
13596         * m4/mbsrtowcs.m4: Likewise.
13597         * m4/poll.m4: Likewise.
13598         * m4/setlocale.m4: Likewise.
13599         * m4/wcrtomb.m4: Likewise.
13600         * m4/wcsnrtombs.m4: Likewise.
13601         * m4/wcsrtombs.m4: Likewise.
13602         * m4/wctob.m4: Likewise.
13603         * m4/wcwidth.m4: Likewise.
13604         * modules/posix_spawn: Likewise.
13605         * modules/posix_spawn_file_actions_addclose: Likewise.
13606         * modules/posix_spawn_file_actions_adddup2: Likewise.
13607         * modules/posix_spawn_file_actions_addopen: Likewise.
13608         * modules/posix_spawn_file_actions_destroy: Likewise.
13609         * modules/posix_spawn_file_actions_init: Likewise.
13610         * modules/posix_spawnattr_destroy: Likewise.
13611         * modules/posix_spawnattr_getflags: Likewise.
13612         * modules/posix_spawnattr_getpgroup: Likewise.
13613         * modules/posix_spawnattr_getschedparam: Likewise.
13614         * modules/posix_spawnattr_getschedpolicy: Likewise.
13615         * modules/posix_spawnattr_getsigdefault: Likewise.
13616         * modules/posix_spawnattr_getsigmask: Likewise.
13617         * modules/posix_spawnattr_init: Likewise.
13618         * modules/posix_spawnattr_setflags: Likewise.
13619         * modules/posix_spawnattr_setpgroup: Likewise.
13620         * modules/posix_spawnattr_setschedparam: Likewise.
13621         * modules/posix_spawnattr_setschedpolicy: Likewise.
13622         * modules/posix_spawnattr_setsigdefault: Likewise.
13623         * modules/posix_spawnattr_setsigmask: Likewise.
13624         * modules/posix_spawnp: Likewise.
13625
13626 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13627
13628         Add option to do-release-commit-and-tag to specify branch.
13629         * build-aux/do-release-commit-and-tag: Add --branch.
13630
13631 2011-05-03  Bruno Haible  <bruno@clisp.org>
13632
13633         Avoid unnecessary compilation units, through conditional dependencies.
13634         * modules/accept (Depends-on): Add conditions to the dependencies.
13635         * modules/acosl (Depends-on): Likewise.
13636         * modules/argz (Depends-on): Likewise.
13637         * modules/asinl (Depends-on): Likewise.
13638         * modules/atanl (Depends-on): Likewise.
13639         * modules/atoll (Depends-on): Likewise.
13640         * modules/bind (Depends-on): Likewise.
13641         * modules/btowc (Depends-on): Likewise.
13642         * modules/canonicalize-lgpl (Depends-on): Likewise.
13643         * modules/ceil (Depends-on): Likewise.
13644         * modules/ceilf (Depends-on): Likewise.
13645         * modules/ceill (Depends-on): Likewise.
13646         * modules/chdir-long (Depends-on): Likewise.
13647         * modules/chown (Depends-on): Likewise.
13648         * modules/close (Depends-on): Likewise.
13649         * modules/connect (Depends-on): Likewise.
13650         * modules/cosl (Depends-on): Likewise.
13651         * modules/dirfd (Depends-on): Likewise.
13652         * modules/dprintf (Depends-on): Likewise.
13653         * modules/dprintf-posix (Depends-on): Likewise.
13654         * modules/error (Depends-on): Likewise.
13655         * modules/euidaccess (Depends-on): Likewise.
13656         * modules/expl (Depends-on): Likewise.
13657         * modules/faccessat (Depends-on): Likewise.
13658         * modules/fchdir (Depends-on): Likewise.
13659         * modules/fclose (Depends-on): Likewise.
13660         * modules/fcntl (Depends-on): Likewise.
13661         * modules/fdopendir (Depends-on): Likewise.
13662         * modules/fflush (Depends-on): Likewise.
13663         * modules/floor (Depends-on): Likewise.
13664         * modules/floorf (Depends-on): Likewise.
13665         * modules/floorl (Depends-on): Likewise.
13666         * modules/fnmatch (Depends-on): Likewise.
13667         * modules/fopen (Depends-on): Likewise.
13668         * modules/fprintf-posix (Depends-on): Likewise.
13669         * modules/frexp (Depends-on): Likewise.
13670         * modules/frexp-nolibm (Depends-on): Likewise.
13671         * modules/frexpl (Depends-on): Likewise.
13672         * modules/frexpl-nolibm (Depends-on): Likewise.
13673         * modules/fseek (Depends-on): Likewise.
13674         * modules/fsusage (Depends-on): Likewise.
13675         * modules/ftell (Depends-on): Likewise.
13676         * modules/ftello (Depends-on): Likewise.
13677         * modules/futimens (Depends-on): Likewise.
13678         * modules/getcwd (Depends-on): Likewise.
13679         * modules/getcwd-lgpl (Depends-on): Likewise.
13680         * modules/getdelim (Depends-on): Likewise.
13681         * modules/getdomainname (Depends-on): Likewise.
13682         * modules/getgroups (Depends-on): Likewise.
13683         * modules/gethostname (Depends-on): Likewise.
13684         * modules/getline (Depends-on): Likewise.
13685         * modules/getlogin_r (Depends-on): Likewise.
13686         * modules/getopt-posix (Depends-on): Likewise.
13687         * modules/getpeername (Depends-on): Likewise.
13688         * modules/getsockname (Depends-on): Likewise.
13689         * modules/getsockopt (Depends-on): Likewise.
13690         * modules/getsubopt (Depends-on): Likewise.
13691         * modules/getusershell (Depends-on): Likewise.
13692         * modules/glob (Depends-on): Likewise.
13693         * modules/grantpt (Depends-on): Likewise.
13694         * modules/iconv_open (Depends-on): Likewise.
13695         * modules/iconv_open-utf (Depends-on): Likewise.
13696         * modules/inet_ntop (Depends-on): Likewise.
13697         * modules/inet_pton (Depends-on): Likewise.
13698         * modules/ioctl (Depends-on): Likewise.
13699         * modules/isapipe (Depends-on): Likewise.
13700         * modules/isfinite (Depends-on): Likewise.
13701         * modules/isinf (Depends-on): Likewise.
13702         * modules/lchown (Depends-on): Likewise.
13703         * modules/ldexpl (Depends-on): Likewise.
13704         * modules/link (Depends-on): Likewise.
13705         * modules/linkat (Depends-on): Likewise.
13706         * modules/listen (Depends-on): Likewise.
13707         * modules/logl (Depends-on): Likewise.
13708         * modules/lstat (Depends-on): Likewise.
13709         * modules/mbrlen (Depends-on): Likewise.
13710         * modules/mbrtowc (Depends-on): Likewise.
13711         * modules/mbsinit (Depends-on): Likewise.
13712         * modules/mbsnrtowcs (Depends-on): Likewise.
13713         * modules/mbsrtowcs (Depends-on): Likewise.
13714         * modules/mbtowc (Depends-on): Likewise.
13715         * modules/memcmp (Depends-on): Likewise.
13716         * modules/mkdir (Depends-on): Likewise.
13717         * modules/mkdtemp (Depends-on): Likewise.
13718         * modules/mkfifo (Depends-on): Likewise.
13719         * modules/mkfifoat (Depends-on): Likewise.
13720         * modules/mknod (Depends-on): Likewise.
13721         * modules/mkostemp (Depends-on): Likewise.
13722         * modules/mkostemps (Depends-on): Likewise.
13723         * modules/mkstemp (Depends-on): Likewise.
13724         * modules/mkstemps (Depends-on): Likewise.
13725         * modules/mktime (Depends-on): Likewise.
13726         * modules/nanosleep (Depends-on): Likewise.
13727         * modules/open (Depends-on): Likewise.
13728         * modules/openat (Depends-on): Likewise.
13729         * modules/perror (Depends-on): Likewise.
13730         * modules/poll (Depends-on): Likewise.
13731         * modules/popen (Depends-on): Likewise.
13732         * modules/posix_spawn (Depends-on): Likewise.
13733         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13734         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13735         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13736         * modules/posix_spawnp (Depends-on): Likewise.
13737         * modules/pread (Depends-on): Likewise.
13738         * modules/printf-posix (Depends-on): Likewise.
13739         * modules/ptsname (Depends-on): Likewise.
13740         * modules/putenv (Depends-on): Likewise.
13741         * modules/pwrite (Depends-on): Likewise.
13742         * modules/readline (Depends-on): Likewise.
13743         * modules/readlink (Depends-on): Likewise.
13744         * modules/readlinkat (Depends-on): Likewise.
13745         * modules/recv (Depends-on): Likewise.
13746         * modules/recvfrom (Depends-on): Likewise.
13747         * modules/regex (Depends-on): Likewise.
13748         * modules/remove (Depends-on): Likewise.
13749         * modules/rename (Depends-on): Likewise.
13750         * modules/renameat (Depends-on): Likewise.
13751         * modules/rmdir (Depends-on): Likewise.
13752         * modules/round (Depends-on): Likewise.
13753         * modules/roundf (Depends-on): Likewise.
13754         * modules/roundl (Depends-on): Likewise.
13755         * modules/rpmatch (Depends-on): Likewise.
13756         * modules/select (Depends-on): Likewise.
13757         * modules/send (Depends-on): Likewise.
13758         * modules/sendto (Depends-on): Likewise.
13759         * modules/setenv (Depends-on): Likewise.
13760         * modules/setlocale (Depends-on): Likewise.
13761         * modules/setsockopt (Depends-on): Likewise.
13762         * modules/shutdown (Depends-on): Likewise.
13763         * modules/sigaction (Depends-on): Likewise.
13764         * modules/signbit (Depends-on): Likewise.
13765         * modules/sigprocmask (Depends-on): Likewise.
13766         * modules/sinl (Depends-on): Likewise.
13767         * modules/sleep (Depends-on): Likewise.
13768         * modules/snprintf (Depends-on): Likewise.
13769         * modules/snprintf-posix (Depends-on): Likewise.
13770         * modules/socket (Depends-on): Likewise.
13771         * modules/sprintf-posix (Depends-on): Likewise.
13772         * modules/sqrtl (Depends-on): Likewise.
13773         * modules/stat (Depends-on): Likewise.
13774         * modules/strchrnul (Depends-on): Likewise.
13775         * modules/strdup-posix (Depends-on): Likewise.
13776         * modules/strerror (Depends-on): Likewise.
13777         * modules/strerror_r-posix (Depends-on): Likewise.
13778         * modules/strndup (Depends-on): Likewise.
13779         * modules/strnlen (Depends-on): Likewise.
13780         * modules/strptime (Depends-on): Likewise.
13781         * modules/strsep (Depends-on): Likewise.
13782         * modules/strsignal (Depends-on): Likewise.
13783         * modules/strstr-simple (Depends-on): Likewise.
13784         * modules/strtod (Depends-on): Likewise.
13785         * modules/strtoimax (Depends-on): Likewise.
13786         * modules/strtok_r (Depends-on): Likewise.
13787         * modules/strtoumax (Depends-on): Likewise.
13788         * modules/symlink (Depends-on): Likewise.
13789         * modules/symlinkat (Depends-on): Likewise.
13790         * modules/tanl (Depends-on): Likewise.
13791         * modules/tcgetsid (Depends-on): Likewise.
13792         * modules/tmpfile (Depends-on): Likewise.
13793         * modules/trunc (Depends-on): Likewise.
13794         * modules/truncf (Depends-on): Likewise.
13795         * modules/truncl (Depends-on): Likewise.
13796         * modules/uname (Depends-on): Likewise.
13797         * modules/unlink (Depends-on): Likewise.
13798         * modules/unlockpt (Depends-on): Likewise.
13799         * modules/unsetenv (Depends-on): Likewise.
13800         * modules/usleep (Depends-on): Likewise.
13801         * modules/utimensat (Depends-on): Likewise.
13802         * modules/vasprintf (Depends-on): Likewise.
13803         * modules/vdprintf (Depends-on): Likewise.
13804         * modules/vdprintf-posix (Depends-on): Likewise.
13805         * modules/vfprintf-posix (Depends-on): Likewise.
13806         * modules/vprintf-posix (Depends-on): Likewise.
13807         * modules/vsnprintf (Depends-on): Likewise.
13808         * modules/vsnprintf-posix (Depends-on): Likewise.
13809         * modules/vsprintf-posix (Depends-on): Likewise.
13810         * modules/wcrtomb (Depends-on): Likewise.
13811         * modules/wcscasecmp (Depends-on): Likewise.
13812         * modules/wcscspn (Depends-on): Likewise.
13813         * modules/wcsdup (Depends-on): Likewise.
13814         * modules/wcsncasecmp (Depends-on): Likewise.
13815         * modules/wcsnrtombs (Depends-on): Likewise.
13816         * modules/wcspbrk (Depends-on): Likewise.
13817         * modules/wcsrtombs (Depends-on): Likewise.
13818         * modules/wcsspn (Depends-on): Likewise.
13819         * modules/wcsstr (Depends-on): Likewise.
13820         * modules/wcstok (Depends-on): Likewise.
13821         * modules/wcswidth (Depends-on): Likewise.
13822         * modules/wctob (Depends-on): Likewise.
13823         * modules/wctomb (Depends-on): Likewise.
13824         * modules/wctype (Depends-on): Likewise.
13825         * modules/wcwidth (Depends-on): Likewise.
13826         * modules/write (Depends-on): Likewise.
13827
13828 2011-05-03  Bruno Haible  <bruno@clisp.org>
13829
13830         Support for conditional dependencies.
13831         * doc/gnulib.texi (Module description): Document the syntax of
13832         conditional dependencies.
13833         * gnulib-tool: New option --conditional-dependencies.
13834         (func_usage): Document it.
13835         (cond_dependencies): New variable.
13836         (func_get_automake_snippet_conditional,
13837         func_get_automake_snippet_unconditional): New functions, extracted from
13838         func_get_automake_snippet.
13839         (func_get_automake_snippet): Use them.
13840         (sed_first_32_chars): New variable.
13841         (func_module_shellfunc_name): New function.
13842         (func_module_shellvar_name): New function.
13843         (func_module_conditional_name): New function.
13844         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13845         func_cond_module_condition): New functions.
13846         (func_modules_transitive_closure): Add support for conditional
13847         dependencies.
13848         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13849         conditional automake snippet in an automake conditional.
13850         (func_emit_autoconf_snippets): Emit shell functions that contain the
13851         code for conditional modules.
13852         (func_import, func_create_testdir): Update specification.
13853
13854 2011-05-03  Eric Blake  <eblake@redhat.com>
13855
13856         test-getaddrinfo: report error information
13857         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13858
13859 2011-05-03  Jim Meyering  <meyering@redhat.com>
13860
13861         bootstrap: avoid build failure when $GZIP is set
13862         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13863         program name.  If defined at all, it is supposed to list gzip options.
13864         Reported by Alan Curry in http://debbugs.gnu.org/8609
13865
13866 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13867
13868         readme-release: new module with release instructions
13869         * modules/readme-release: New module.
13870         * top/README-release: New file, from coreutils, grep, diffutils.
13871         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13872
13873 2011-05-02  Eric Blake  <eblake@redhat.com>
13874
13875         fflush: also replace fclose when fixing fflush
13876         * modules/fflush (Depends-on): Add fclose.
13877         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13878         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13879         memstreams with no backing fd.
13880         * doc/posix-functions/fclose.texi (fclose): Document the use of
13881         fflush module to fix the bug.
13882         * tests/test-fclose.c (main): Relax test when fclose is used in
13883         isolation.
13884
13885         fclose: add some tests
13886         * modules/fclose-tests: New test module.
13887         * tests/test-fclose.c: New file.
13888         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13889
13890         fclose: reduced dependencies
13891         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13892         simpler lseek.
13893         * lib/fclose.c (rpl_fclose): Likewise.
13894         Reported by Simon Josefsson.
13895
13896         exit: drop remaining clients
13897         * modules/argmatch (Depends-on): Replace exit with stdlib.
13898         * modules/copy-file (Depends-on): Likewise.
13899         * modules/execute (Depends-on): Likewise.
13900         * modules/exitfail (Depends-on): Likewise.
13901         * modules/obstack (Depends-on): Likewise.
13902         * modules/pagealign_alloc (Depends-on): Likewise.
13903         * modules/pipe-filter-gi (Depends-on): Likewise.
13904         * modules/pipe-filter-ii (Depends-on): Likewise.
13905         * modules/savewd (Depends-on): Likewise.
13906         * modules/spawn-pipe (Depends-on): Likewise.
13907         * modules/wait-process (Depends-on): Likewise.
13908         * modules/xsetenv (Depends-on): Likewise.
13909         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13910         * modules/git-merge-changelog (Depends-on): Likewise.
13911         * modules/long-options (Depends-on): Likewise.
13912         * modules/pt_chown (Depends-on): Likewise.
13913         * modules/sysexits (Depends-on): Likewise.
13914
13915         freading: relax license from LGPLv3+ to LGPLv2+
13916         * modules/freading (License): Relax LGPL version.
13917
13918 2011-05-02  Bruno Haible  <bruno@clisp.org>
13919
13920         fchdir: Remove unused dependencies.
13921         * modules/fchdir (Depends-on): Remove include_next.
13922
13923 2011-05-02  Bruno Haible  <bruno@clisp.org>
13924
13925         gnulib-tool: Refactor.
13926         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13927         from func_emit_autoconf_snippets.
13928         (func_emit_autoconf_snippets): Use it.
13929
13930 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13931
13932         * NEWS: Document removal of 'exit'.
13933         * modules/exit: Remove file.
13934
13935 2011-05-01  Bruno Haible  <bruno@clisp.org>
13936
13937         Update DEPENDENCIES.
13938         * DEPENDENCIES (gettext): Recommend the newest release.
13939         Reported by Simon Josefsson.
13940
13941 2011-05-01  Bruno Haible  <bruno@clisp.org>
13942
13943         gnulib-tool: Reduce code duplication.
13944         * gnulib-tool (func_emit_autoconf_snippets): New function.
13945         (func_import, func_create_testdir): Use it.
13946
13947 2011-04-30  Eric Blake  <eblake@redhat.com>
13948
13949         fclose: don't fail on non-seekable input stream
13950         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13951         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13952         since fflush is allowed to fail in that case.
13953
13954 2011-04-30  Bruno Haible  <bruno@clisp.org>
13955
13956         dup3: cleanup
13957         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13958
13959 2011-04-30  Bruno Haible  <bruno@clisp.org>
13960
13961         netdb: Make it work in C++ mode.
13962         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13963         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13964         module.
13965         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13966         gl_MODULE_INDICATOR_FOR_TESTS.
13967         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13968         * modules/netdb-c++-tests: New file.
13969         * tests/test-netdb-c++.cc: New file.
13970
13971 2011-04-30  Bruno Haible  <bruno@clisp.org>
13972
13973         New modules 'vfscanf', 'vscanf'.
13974         * modules/vfscanf: New file.
13975         * modules/vscanf: New file.
13976         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13977         here.
13978         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13979         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13980
13981 2011-04-30  Bruno Haible  <bruno@clisp.org>
13982
13983         passfd: Add comments.
13984         * lib/passfd.c: Add comments about platforms.
13985
13986 2011-04-30  Bruno Haible  <bruno@clisp.org>
13987
13988         sys_uio: Make <sys/uio.h> self-contained.
13989         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13990         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13991
13992 2011-04-30  Bruno Haible  <bruno@clisp.org>
13993
13994         sys_socket: Ensure 'struct iovec' definition.
13995         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13996         <sys/socket.h>.
13997         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13998
13999 2011-04-30  Bruno Haible  <bruno@clisp.org>
14000
14001         sys_uio: Protect definition of 'struct iovec'.
14002         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
14003         it as a C struct.
14004
14005 2011-04-30  Bruno Haible  <bruno@clisp.org>
14006
14007         manywarnings: fix indentation
14008         * m4/manywarnings.m4: Indent by 2 spaces consistently.
14009
14010 2011-04-30  Pádraig Brady <P@draigBrady.com>
14011
14012         manywarnings: add -Wno-missing-field-initializers if needed.
14013         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
14014         option if it's needed to allow initialization with { 0, }
14015
14016 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
14017
14018         announce-gen: cosmetic improvement
14019         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
14020
14021 2011-04-29  Jim Meyering  <meyering@redhat.com>
14022
14023         vc-list-files: indent with spaces, not TABs
14024         * build-aux/vc-list-files: Convert leading TABs to spaces,
14025         to match the style of most other files in gnulib.
14026
14027         announce-gen: indent with spaces, not TABs
14028         * build-aux/announce-gen: Convert all TABs to spaces, to match
14029         the style of most other files in gnulib.
14030
14031 2011-04-29  Eric Blake  <eblake@redhat.com>
14032
14033         quotearg: avoid uninitialized variable use
14034         * lib/quotearg.c (quoting_options_from_style): Initialize
14035         remaining fields, and ensure that custom styles are only used via
14036         quoting_options rather than quoting_style.
14037
14038 2011-04-29  Jim Meyering  <meyering@redhat.com>
14039
14040         maint.mk: remove unused VC-tag variable
14041         * top/maint.mk (VC-tag): Remove unused variable.
14042
14043 2011-04-29  Bruno Haible  <bruno@clisp.org>
14044
14045         netdb: fix gai_strerror replacements
14046         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
14047         * modules/netdb: Substitute it.
14048
14049 2011-04-29  Jim Meyering  <meyering@redhat.com>
14050
14051         test-getcwd.c: avoid new set-but-not-used warning
14052         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
14053         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
14054         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
14055         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
14056
14057         test-hash.c: avoid a new shadowing warning
14058         * tests/test-hash.c (main): Don't shadow "dup".
14059
14060 2011-04-28  Eric Blake  <eblake@redhat.com>
14061
14062         getaddrinfo: fix gai_strerror signature
14063         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
14064         and work around mingw with UNICODE defined.
14065         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
14066         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
14067         * modules/netdb (Makefile.am): Substitute it.
14068         * lib/netdb.in.h (gai_strerror): Declare replacement.
14069         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
14070         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
14071         the fix.
14072
14073         getsockopt: avoid compiler warning
14074         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
14075         Reported by Matthias Bolte.
14076
14077         tests: drop unused link dependency
14078         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
14079         * modules/dirent-safer-tests (Makefile.am): Likewise.
14080         * modules/fdopendir-tests (Makefile.am): Likewise.
14081         * modules/mkfifoat-tests (Makefile.am): Likewise.
14082         * modules/openat-safer-tests (Makefile.am): Likewise.
14083         * modules/openat-tests (Makefile.am): Likewise.
14084         * modules/readlinkat-tests (Makefile.am): Likewise.
14085         * modules/symlinkat-tests (Makefile.am): Likewise.
14086         * modules/linkat-tests (Makefile.am): Likewise.
14087         (Depends-on): Switch to filenamecat-lgpl.
14088         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
14089         LIBINTL.
14090         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
14091         * tests/test-linkat.c (main): Don't require xalloc.
14092
14093         hash, mgetgroups: drop xalloc dependency
14094         * lib/hash.c (includes): Adjust includes.
14095         * lib/mgetgroups.c (includes): Likewise.
14096         (xgetgroups): Move...
14097         * lib/xgetgroups.c: ...to new file.
14098         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
14099         * modules/xgetgroups: New file, split from...
14100         * modules/mgetgroups: ...here.
14101         (Depends-on): Add xalloc-oversized.
14102         * modules/hash (Depends-on): Likewise.
14103         * modules/hash-tests (Depends-on): Drop xalloc.
14104         (test_hash_LDADD): Drop unused library.
14105         * tests/test-hash.c (main): Break xalloc dependency.
14106         (includes): Drop unused include.
14107
14108         xalloc-oversized: new module
14109         * modules/xalloc-oversized: New module.
14110         * modules/xalloc (Depends-on): Add it.
14111         * lib/xalloc.h (xalloc_oversized): Move...
14112         * lib/xalloc-oversized.h: ...into new file.
14113
14114         utimecmp: drop dependency on xmalloc
14115         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
14116         due to memory pressure.
14117         * modules/utimecmp (Depends-on): Drop xalloc.
14118
14119 2011-04-27  Eric Blake  <eblake@redhat.com>
14120
14121         getcwd: fix mingw bugs
14122         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
14123         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
14124         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
14125
14126 2011-04-27  Bruno Haible  <bruno@clisp.org>
14127
14128         mkstemps: Ensure declaration on MacOS X 10.5.
14129         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
14130         * doc/glibc-functions/mkstemps.texi: Document header file problem on
14131         MacOS X.
14132
14133 2011-04-27  Bruno Haible  <bruno@clisp.org>
14134
14135         mkstemp: More documentation.
14136         * doc/posix-functions/mkstemp.texi: Document header file problem on
14137         MacOS X.
14138
14139 2011-04-27  Bruno Haible  <bruno@clisp.org>
14140
14141         mkstemp: Tweak configure message when cross-compiling.
14142         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
14143         result as a guess.
14144
14145 2011-04-27  Bruno Haible  <bruno@clisp.org>
14146
14147         clean-temp: Clarify what it does.
14148         * lib/clean-temp.h: Add more comments.
14149         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
14150         module.
14151         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
14152         * doc/glibc-functions/mkstemps.texi: Likewise.
14153         * doc/glibc-functions/mkostemps.texi: Likewise.
14154
14155 2011-04-27  Eric Blake  <eblake@redhat.com>
14156
14157         fchdir: avoid extra chdir and fix test
14158         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
14159         getcwd-lgpl.
14160         * lib/fchdir.c (get_name): Any absolute name will do; it does not
14161         have to be canonical.
14162         (canonicalize_file_name): Drop unused macro.
14163         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14164
14165         filenamecat-lgpl: fix licence
14166         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14167         when it was first created.
14168
14169         linkat, renameat: add missing dependency
14170         * modules/linkat (Depends-on): Require getcwd-lgpl.
14171         * modules/renameat (Depends-on): Likewise.
14172
14173         tests: reduce dependencies
14174         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14175         * tests/test-renameat.c (main): Likewise.
14176         * modules/linkat-tests (Depends-on): Relax dependency.
14177         * modules/renameat-tests (Depends-on): Likewise.
14178         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14179         dependency explicit.
14180
14181         save-cwd: reduce default dependency
14182         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14183         * lib/save-cwd.c: Update comments.
14184         * NEWS: Document the semantic change.
14185
14186         getcwd: enhance tests
14187         * tests/test-getcwd-lgpl.c: New file, taken from...
14188         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14189         repeat long path stress tests from m4 probe.
14190         * modules/getcwd-lgpl-tests: New module.
14191         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14192         * m4/getcwd-abort-bug.m4: Update comment.
14193         * m4/getcwd-path-max.m4: Likewise.
14194
14195         getcwd-lgpl: new module
14196         * modules/getcwd-lgpl: New module.
14197         * lib/getcwd-lgpl.c: New file.
14198         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14199         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14200         * modules/getcwd (configure.ac): Set C witness.
14201         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14202
14203         getcwd: tweak comments
14204         * m4/getcwd-abort-bug.m4: Fix comments.
14205         * m4/getcwd-path-max.m4: Likewise.
14206         * m4/getcwd.m4: Likewise.
14207
14208 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14209         and Eric Blake  <eblake@redhat.com>
14210
14211         mkstemp: replace if system version uses wrong permissions
14212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14213         read/write mode bits set in file created by mkstemp.
14214         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14215
14216 2011-04-27  Eric Blake  <eblake@redhat.com>
14217
14218         passfd: avoid compiler warning
14219         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14220         Reported by Laine Stump.
14221
14222 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14223
14224         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14225         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14226
14227 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14228         and Eric Blake  <eblake@redhat.com>
14229
14230         mkstemp: mention clean-temp module
14231         * lib/mkstemp.c: Add comment.
14232         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14233
14234 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14235
14236         inttypes: also provide default values for 32-bit tests
14237         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14238         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14239
14240 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14241
14242         strtoumax: remove dependency on strtoimax
14243         This is like the strtoull change of yesterday.
14244         * modules/strtoumax (Files): Add lib/strtoimax.c.
14245         (Depends-on): Remove strtoimax and add verify.
14246
14247         inttypes-incomplete: new module
14248         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14249         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14250         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14251         of gl_INTTYPES_H.
14252         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14253         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14254         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14255         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14256         * modules/strtoumax, modules/xstrtol (Depends-on):
14257         Depend on inttypes-incomplete, not inttypes.
14258         * modules/inttypes-incomplete: New module, containing the contents
14259         of the old modules/inttypes module, except that the Files: section
14260         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14261         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14262         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14263         (Depends-on): Depend only on inttypes-incomplete.
14264         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14265
14266         inttypes: omit now-redundant strtoimax and strtoumax work
14267         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14268         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14269
14270         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14271         This supports apps that need pointers to strtoimax and strtoumax,
14272         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14273         nonexistent functions.  See
14274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14275         et seq.
14276         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14277         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14278         a macro.
14279         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14280
14281 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14282
14283         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14284
14285 2011-04-25  Bruno Haible  <bruno@clisp.org>
14286
14287         strtol, strtoul: Mark modules as obsolete.
14288         * modules/strtol (Status, Notice): New sections.
14289         * modules/strtoul (Status, Notice): New sections.
14290
14291 2011-04-25  Bruno Haible  <bruno@clisp.org>
14292
14293         strtod: Remove check for strtod, unless supporting old platforms.
14294         * modules/strtod-obsolete: New file.
14295         * m4/strtod-obsolete.m4: New file.
14296         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14297         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14298         * modules/strtod (Depends-on): Add strtod-obsolete.
14299         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14300
14301 2011-04-25  Bruno Haible  <bruno@clisp.org>
14302
14303         strcase: Make module obsolete.
14304         * modules/strcase (Status, Notice): New sections.
14305
14306 2011-04-25  Bruno Haible  <bruno@clisp.org>
14307
14308         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14309         * modules/dup2-obsolete: New file.
14310         * m4/dup2-obsolete.m4: New file.
14311         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14312         gl_FUNC_DUP2_OBSOLETE is not also defined.
14313         * modules/dup2 (Depends-on): Add dup2-obsolete.
14314         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14315
14316 2011-04-25  Bruno Haible  <bruno@clisp.org>
14317
14318         strnlen: Avoid memchr related link error on old obsolete platforms.
14319         * modules/memchr-obsolete: New file.
14320         * m4/memchr-obsolete.m4: New file.
14321         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14322         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14323         * modules/memchr (Depends-on): Add memchr-obsolete.
14324         * modules/strnlen (Depends-on): Likewise.
14325         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14326
14327 2011-04-25  Jim Meyering  <meyering@redhat.com>
14328
14329         maint.mk: makefile_at_at_check extend and clean up
14330         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14331         in addition to */Makefile.am.
14332         Exempt legitimate uses of @VAR@ notation, e.g.,
14333         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14334         Remove obsolete coreutils-specific comment.
14335         Prompted by discussion here:
14336         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14337
14338 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14339
14340         strtoul: remove dependency on strtol
14341         This is so that 'configure' need not check for strtol merely because
14342         the application needs strtoul.
14343         * modules/strtoul (Files): Add lib/strtol.c.
14344         (Depends-on): Remove strtol.
14345
14346         strtoull: remove dependency on strtoul
14347         This is like the strtoll change.
14348         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14349         (Depends-on): Remove strtoul.
14350
14351         strtoll: remove dependency on strtol
14352         This is so that 'configure' need not check for strtol merely because
14353         the application needs strtoll.
14354         * modules/strtoll (Files): Add lib/strtol.c.
14355         (Depends-on): Remove strtol.
14356
14357 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14358
14359         inttypes: Move some configure check to module 'imaxdiv'.
14360         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14361         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14362         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14363
14364 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14365
14366         inttypes: Move some configure check to module 'imaxabs'.
14367         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14368         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14369         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14370
14371 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14372
14373         inttypes: Remove configure tests that are not needed since 2009-12-31.
14374         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14375         gl_cv_header_working_inttypes_h.
14376
14377 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14378
14379         * modules/strnlen (Depends-on): Remove memchr.
14380         The strnlen implementation doesn't need the memchr module's fixes; see
14381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14382
14383         strtol: remove dependency on wchar
14384         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14385         * modules/strtol (Depends-on): Remove wchar.
14386
14387 2011-04-21  Eric Blake  <eblake@redhat.com>
14388
14389         passfd: fix test regression on Linux
14390         * modules/passfd-tests (configure.ac): Correct socketpair check.
14391
14392         passfd: speed up configure and drop unused code
14393         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14394         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14395         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14396         Instead of probing at configure for unix_scm_rights_bsd44_way,
14397         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14398         check to a struct member probe.
14399         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14400         (sendfd, recvfd): Update preprocessor checks.
14401         * modules/passfd (Files): Reflect rename, and drop unused file.
14402         (Depends-on): Drop unused dependency.
14403
14404         passfd: allow compilation on mingw
14405         * modules/sys_socket (Depends-on): Add sys_uio.
14406         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14407         iovec and a minimal struct msghdr.
14408         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14409         * tests/test-sys_socket.c (main): Enhance test.
14410         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14411         guaranteed to provide what we need.
14412         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14413         * modules/passfd-tests (Depends-on): Add sys_wait.
14414         * tests/test-passfd.c (main): Skip test on mingw, for now.
14415         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14416         partial 'struct msghdr' implementation.
14417
14418         sys_uio: new module
14419         * modules/sys_uio: New module.
14420         * modules/sys_uio-tests: Likewise.
14421         * lib/sys_uio.in.h: New file.
14422         * m4/sys_uio_h.m4: Likewise.
14423         * tests/test-sys_uio.c: Likewise.
14424         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14425         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14426
14427 2011-04-20  Jim Meyering  <meyering@redhat.com>
14428
14429         useless-if-before-free: avoid false-positive
14430         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14431         disjunct so that it too requires a terminating ";".  Without that,
14432         this script would identify as useless one statement from gcc that
14433         was not:
14434           if (aligned_ptr)
14435             free (((void **) aligned_ptr) [-1]);
14436
14437 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14438
14439         doc: update users.txt.
14440         * users.txt: Add barcode.
14441
14442 2011-04-19  Bruno Haible  <bruno@clisp.org>
14443
14444         ioctl: Remove link dependency on native Windows.
14445         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14446         (gl_close_fn, gl_ioctl_fn): New types.
14447         (struct fd_hook): Renamed from struct close_hook. Change type of
14448         private_close_fn field. Add private_ioctl_fn field.
14449         (close_hook_fn): Add parameter for primary close method.
14450         (execute_close_hooks, execute_all_close_hooks): Likewise.
14451         (ioctl_hook_fn): New type.
14452         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14453         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14454         argument.
14455         (unregister_fd_hook): Renamed from unregister_close_hook.
14456         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14457         Don't include <unistd.h>.
14458         (close): Remove undef.
14459         (anchor): Update.
14460         (execute_close_hooks): Add argument for primary close method.
14461         (execute_all_close_hooks): Likewise.
14462         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14463         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14464         argument. Allow each argument to be NULL.
14465         (unregister_fd_hook): Renamed from unregister_close_hook.
14466         * lib/close.c (rpl_close): Pass 'close' function pointer to
14467         execute_all_close_hooks.
14468         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14469         (primary_ioctl): New function.
14470         (ioctl): Don't call ioctlsocket here. Instead, call
14471         execute_all_ioctl_hooks.
14472         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14473         close method.
14474         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14475         (fd_sockets_hook): Renamed from close_sockets_hook.
14476         (gl_sockets_startup, gl_sockets_cleanup): Update.
14477         * modules/fd-hook: Renamed from modules/close-hook. Update.
14478         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14479         * modules/sockets (Depends-on): Likewise.
14480         * modules/ioctl (Depends-on): Add fd-hook.
14481         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14482         GNULIB_SOCKET.
14483
14484 2011-04-19  Bruno Haible  <bruno@clisp.org>
14485
14486         Move the support of O_NONBLOCK in open() to the 'open' module.
14487         * modules/nonblocking (Depends-on): Remove 'open'.
14488         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14489         gl_cv_have_open_O_NONBLOCK.
14490         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14491         O_NONBLOCK support.
14492         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14493
14494 2011-04-17  Bruno Haible  <bruno@clisp.org>
14495
14496         pipe2: Simplify code.
14497         * lib/pipe2.c (pipe2): Reduce code duplication.
14498
14499 2011-04-17  Bruno Haible  <bruno@clisp.org>
14500
14501         nonblocking: Add comment.
14502         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14503
14504 2011-04-17  Bruno Haible  <bruno@clisp.org>
14505
14506         nonblocking: Add tests for sockets.
14507         * tests/test-nonblocking-socket.sh: New file.
14508         * tests/test-nonblocking-socket-main.c: New file.
14509         * tests/test-nonblocking-socket-child.c: New file.
14510         * tests/test-nonblocking-socket.h: New file.
14511         * tests/socket-server.h: New file.
14512         * tests/socket-client.h: New file.
14513         * modules/nonblocking-socket-tests: New file.
14514         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14515
14516 2011-04-17  Bruno Haible  <bruno@clisp.org>
14517
14518         nonblocking: Add tests for pipes.
14519         * tests/test-nonblocking-pipe.sh: New file.
14520         * tests/test-nonblocking-pipe-main.c: New file.
14521         * tests/test-nonblocking-pipe-child.c: New file.
14522         * tests/test-nonblocking-pipe.h: New file.
14523         * tests/test-nonblocking-writer.h: New file.
14524         * tests/test-nonblocking-reader.h: New file.
14525         * tests/test-nonblocking-misc.h: New file.
14526         * modules/nonblocking-pipe-tests: New file.
14527         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14528
14529 2011-04-16  Bruno Haible  <bruno@clisp.org>
14530
14531         gettext: Clarify the needed programmer actions.
14532         * modules/gettext (Notice): New field.
14533         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14534
14535 2011-04-16  Bruno Haible  <bruno@clisp.org>
14536
14537         strchrnul: Tweak last commit.
14538         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14539         bug.
14540         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14541         as in _GL_FUNCDECL_SYS.
14542         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14543         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14544
14545 2011-04-15  Eric Blake  <eblake@redhat.com>
14546
14547         strchrnul: work around cygwin bug
14548         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14549         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14551         * modules/string (Makefile.am): Substitute it.
14552         * lib/string.in.h (strchrnul): Use it.
14553
14554 2011-04-15  Bruno Haible  <bruno@clisp.org>
14555
14556         Don't require lib/stdio-write.c when only module 'stdio' is used.
14557         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14558         invocation.
14559         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14560
14561 2011-04-14  Bruno Haible  <bruno@clisp.org>
14562
14563         Support non-blocking pipe I/O in read() on native Windows.
14564         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14565         (read): New declaration.
14566         * lib/read.c: New file.
14567         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14568         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14569         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14570         vscanf): New declarations.
14571         * lib/stdio-read.c: New file.
14572         * m4/read.m4: New file.
14573         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14574         REPLACE_READ.
14575         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14576         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14577         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14578         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14579         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14580         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14581         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14582         * modules/read: New file.
14583         * modules/nonblocking (Files): Add lib/stdio-read.c.
14584         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14585         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14586         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14587         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14588         * modules/pread (Depends-on): Add read.
14589         * modules/safe-read (Depends-on): Likewise.
14590         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14591         gets, scanf, vfscanf, vscanf): Verify signatures.
14592         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14593         problem with non-blocking pipes.
14594         * doc/posix-functions/fgetc.texi: Likewise.
14595         * doc/posix-functions/fgets.texi: Likewise.
14596         * doc/posix-functions/fread.texi: Likewise.
14597         * doc/posix-functions/fscanf.texi: Likewise.
14598         * doc/posix-functions/getc.texi: Likewise.
14599         * doc/posix-functions/getchar.texi: Likewise.
14600         * doc/posix-functions/gets.texi: Likewise.
14601         * doc/posix-functions/scanf.texi: Likewise.
14602         * doc/posix-functions/vfscanf.texi: Likewise.
14603         * doc/posix-functions/vscanf.texi: Likewise.
14604
14605 2011-04-14  Bruno Haible  <bruno@clisp.org>
14606
14607         Support non-blocking pipe I/O in write() on native Windows.
14608         * lib/write.c (rpl_write): Split a write request that failed merely
14609         because the byte count was larger than the pipe buffer's size.
14610         * doc/posix-functions/write.texi: Mention the problem with large byte
14611         counts.
14612
14613 2011-04-14  Bruno Haible  <bruno@clisp.org>
14614
14615         wchar: Ensure that wchar_t gets defined on uClibc.
14616         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14617         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14618
14619 2011-04-13  Bruno Haible  <bruno@clisp.org>
14620
14621         safe-write, full-read: Avoid unnecessary compilation units.
14622         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14623         (Depends-on): Remove safe-read. Add ssize_t.
14624         * modules/full-read (Files): Add lib/full-write.c.
14625         (Depends-on): Add full-write.
14626
14627 2011-04-13  Bruno Haible  <bruno@clisp.org>
14628
14629         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14630         * modules/pwrite (Depends-on): Add 'write'.
14631
14632 2011-04-13  Bruno Haible  <bruno@clisp.org>
14633
14634         Support non-blocking pipe I/O in write() on native Windows.
14635         * lib/unistd.in.h (write): Enable replacement also if
14636         GNULIB_UNISTD_H_NONBLOCKING is 1.
14637         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14638         (rpl_write): When failing to write on a non-blocking pipe, change
14639         errno from ENOSPC to EAGAIN.
14640         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14641         putchar, puts, vfprintf, vprintf): Enable replacement also if
14642         GNULIB_STDIO_H_NONBLOCKING is 1.
14643         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14644         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14645         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14646         CALL_WITH_SIGPIPE_EMULATION.
14647         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14648         * m4/nonblocking.m4: New file.
14649         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14650         for non-blocking I/O support.
14651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14652         GNULIB_UNISTD_H_NONBLOCKING.
14653         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14654         required for non-blocking I/O support.
14655         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14656         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14657         lib/stdio-write.c, m4/asm-underscore.m4.
14658         (Depends-on): Add stdio, unistd.
14659         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14660         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14661         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14662         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14663         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14664         problem with non-blocking pipes.
14665         * doc/posix-functions/fputc.texi: Likewise.
14666         * doc/posix-functions/fputs.texi: Likewise.
14667         * doc/posix-functions/fwrite.texi: Likewise.
14668         * doc/posix-functions/printf.texi: Likewise.
14669         * doc/posix-functions/putc.texi: Likewise.
14670         * doc/posix-functions/putchar.texi: Likewise.
14671         * doc/posix-functions/puts.texi: Likewise.
14672         * doc/posix-functions/vfprintf.texi: Likewise.
14673         * doc/posix-functions/vprintf.texi: Likewise.
14674         * doc/posix-functions/write.texi: Likewise.
14675
14676 2011-04-10  Jim Meyering  <meyering@redhat.com>
14677
14678         maint.mk: prohibit doubled words
14679         Detect them also when they're separated by a newline.
14680         There are 3 ways to customize it:
14681           - disable the test on a per file basis, as usual with rules using
14682             $(VC_LIST_EXCEPT)
14683           - replace the default doubled-word-selecting regexp (affects all files)
14684           - ignore a particular file-vs-doubled-word match
14685         I nearly used that last one to ignore the "is is" match in
14686         coreutils' NEWS file, since the text was "ls -is is ..."
14687         To do that, I would have added this line to cfg.mk:
14688           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14689         but it would have ignored any "is is" match in NEWS.
14690         Low probability, but still...
14691         Instead, I changed the text, slightly:
14692           -  ls -is is now consistent with ls -lis in ignoring values returned
14693           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14694         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14695         (prohibit_doubled_word_): Define.
14696         (sc_prohibit_doubled_word): New rule.
14697         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14698
14699 2011-04-10  Jim Meyering  <meyering@redhat.com>
14700
14701         maint: fix doubled-word typo in comment
14702         * m4/gethostname.m4: s/is is/it is/
14703         * m4/getdomainname.m4: Likewise.
14704
14705 2011-04-10  Jim Meyering  <meyering@redhat.com>
14706
14707         maint: remove doubled word: s/it it/it/
14708         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14709
14710 2011-04-10  Jim Meyering  <meyering@redhat.com>
14711
14712         maint.mk: remove useless semicolon and backslash
14713         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14714         semicolon and backslash.
14715
14716 2011-04-10  Bruno Haible  <bruno@clisp.org>
14717
14718         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14719         * modules/stdint-tests (Depends-on): Add wchar.
14720
14721 2011-04-10  Jim Meyering  <meyering@redhat.com>
14722
14723         maint: remove doubled words in comments, e.g., s/a a/a/
14724         * lib/strptime.c (day_of_the_week): s/the the/the/
14725         * tests/test-chown.h (test_chown): s/a a/a/
14726
14727         test-chown.h: correct a cast
14728         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14729         when the destination is a stat.st_gid.
14730
14731 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14732
14733         getaddrinfo: Fix test for sa_len member.
14734         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14735         include <sys/types.h> before <sys/socket.h>.
14736
14737 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14738
14739         maint: change "can not" to "cannot"
14740         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14741         boundaries.
14742
14743 2011-04-09  Jim Meyering  <meyering@redhat.com>
14744
14745         maint: change "a a" to "a"
14746         * tests/test-lchown.h (test_lchown): s/a a/a/
14747
14748         maint.mk: prohibit \<the the\>
14749         * top/maint.mk (sc_prohibit_the_the): New rule.
14750
14751         maint: fix "the the" in comment
14752         * lib/count-one-bits.h: s/the the/the/
14753
14754         maint: change "can not" to "cannot"
14755         But do not change the occurrences in maintain.texi or in
14756         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14757         * doc/gnulib-tool.texi: s/can not/cannot/
14758         * doc/posix-functions/accept.texi (accept): Likewise.
14759         * doc/posix-functions/socket.texi (socket): Likewise.
14760         * lib/mbrtowc.c: Likewise.
14761
14762         maint.mk: prohibit use of "can not"
14763         * top/maint.mk (sc_prohibit_can_not): New rule.
14764         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14765
14766 2011-04-09  Bruno Haible  <bruno@clisp.org>
14767
14768         careadlinkat: Guard against misuse of careadlinkatcwd.
14769         * lib/careadlinkat.c: Include <stdlib.h>.
14770         (careadlinkatcwd): Check that the fd argument is as expected.
14771
14772 2011-04-09  Bruno Haible  <bruno@clisp.org>
14773
14774         careadlinkat: Use common coding style.
14775         * lib/careadlinkat.c: Move gnulib includes after system includes.
14776
14777 2011-04-09  Bruno Haible  <bruno@clisp.org>
14778
14779         careadlinkat: Clarify specification.
14780         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14781         (careadlinkatcwd): Add comment.
14782         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14783
14784 2011-04-09  Bruno Haible  <bruno@clisp.org>
14785
14786         areadlinkat: Avoid link error on many platforms.
14787         * modules/areadlinkat (Depends-on): Add areadlink.
14788
14789 2011-04-09  Bruno Haible  <bruno@clisp.org>
14790
14791         allocator, careadlinkat: Fix double-inclusion guard.
14792         * lib/allocator.h: Fix double-inclusion guard.
14793         * lib/careadlinkat.h: Likewise.
14794
14795 2011-04-09  Bruno Haible  <bruno@clisp.org>
14796
14797         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14798         * lib/relocwrapper.c: Update dependencies hierarchy.
14799         * build-aux/install-reloc: Update list of files to be compiled.
14800         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14801         lib/allocator.[hc].
14802
14803 2011-04-08  Eric Blake  <eblake@redhat.com>
14804
14805         strftime: silence gnulib-tool warning
14806         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14807
14808 2011-04-08  Bruno Haible  <bruno@clisp.org>
14809
14810         verify: Fix syntax error with GCC 4.6 in C++ mode.
14811         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14812         (HAVE_STATIC_ASSERT): New macro.
14813         (verify_true, verify): Use 'static_assert' if it is supported and
14814         '_Static_assert' is not supported.
14815
14816 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14817
14818         allocator: New module.
14819         * modules/allocator, lib/allocator.c: New files.
14820         * lib/allocator.h (stdlib_allocator): New decl.
14821         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14822         Remove.  Do not include <stdlib.h>.
14823         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14824         * modules/careadlinkat (Files): Remove lib/allocator.h.
14825         (Depends-on): Add allocator.
14826
14827         stdlib: let modules use system malloc, realloc
14828         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14829         if !_GL_USE_STDLIB_ALLOC.
14830         (malloc, realloc): Limit this change to a smaller scope.
14831
14832         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14833         (malloc, realloc): Don't #undef; no longer needed.
14834         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14835         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14836         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14837         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14838         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14839         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14840         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14841         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14842
14843         careadlinkat: rename members to avoid problem
14844         * lib/allocator.h (struct allocator): Rename members from
14845         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14846         and realloc are #define'd.  Reported by Eric Blake in
14847         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14848         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14849
14850 2011-04-08  Eric Blake  <eblake@redhat.com>
14851
14852         nonblocking: reduce dependency
14853         * tests/test-nonblocking.c: Only test sockets when in use.
14854         * modules/nonblocking-tests (Depends-on): Drop socket.
14855         (Makefile.am): Link even if sockets are not present.
14856         * modules/pipe2-tests (Makefile.am): Likewise.
14857         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14858
14859         pipe2: fix O_NONBLOCK support on mingw
14860         * modules/pipe2 (Depends-on): Add nonblocking.
14861         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14862         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14863         * tests/test-nonblocking.c (main): Likewise.
14864         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14865
14866         fcntl-h: fix O_ACCMODE on cygwin
14867         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14868         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14869
14870         pipe-filter: drop O_NONBLOCK workarounds
14871         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14872         * modules/pipe-filter-ii (Depends-on): Likewise.
14873         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14874
14875         nonblocking: provide O_NONBLOCK for mingw
14876         * modules/nonblocking (Depends-on): Add open.
14877         (configure.ac): Set new witness macro.
14878         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14879         * modules/fcntl-h (Makefile.am): Substitute it.
14880         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14881         nonblocking module is in use.
14882         * lib/nonblocking.c: Adjust portability test.
14883         * lib/open.c (open): Don't let native open see gnulib flag.
14884         * tests/test-fcntl-h.c (main): Enhance test.
14885         * tests/test-open.h (test_open): Likewise.
14886         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14887
14888         careadlinkat: fix compilation error on mingw
14889         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14890         within struct allocator.
14891
14892 2011-04-06  Eric Blake  <eblake@redhat.com>
14893
14894         binary-io: relicense under LGPLv2+
14895         * modules/binary-io (License): Relax to LGPLv2+.
14896         Requested for libvirt, and required by pipe2.
14897
14898 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14899
14900         verify: use _Static_assert if available
14901         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14902         (verify_true, verify): Use it if available.  This generates better
14903         diagnostics with GCC 4.6.0 and later.
14904
14905 2011-04-05  Bruno Haible  <bruno@clisp.org>
14906
14907         Remove leftover generated .h files after config.status changed.
14908
14909         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14910         GL_GENERATE_ALLOCA_H.
14911         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14912         GL_GENERATE_ALLOCA_H evaluates to false.
14913
14914         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14915         GL_GENERATE_ARGZ_H.
14916         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14917         evaluates to false.
14918
14919         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14920         GL_GENERATE_BYTESWAP_H.
14921         * modules/byteswap (Makefile.am): Remove byteswap.h if
14922         GL_GENERATE_BYTESWAP_H evaluates to false.
14923
14924         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14925         GL_GENERATE_ERRNO_H.
14926         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14927         evaluates to false.
14928
14929         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14930         GL_GENERATE_FLOAT_H.
14931         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14932         evaluates to false.
14933
14934         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14935         GL_GENERATE_FNMATCH_H.
14936         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14937         GL_GENERATE_FNMATCH_H evaluates to false.
14938
14939         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14940         GL_GENERATE_GLOB_H.
14941         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14942         evaluates to false.
14943
14944         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14945         automake conditional GL_GENERATE_ICONV_H.
14946         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14947         evaluates to false.
14948
14949         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14950         GL_GENERATE_NETINET_IN_H.
14951         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14952         GL_GENERATE_NETINET_IN_H evaluates to false.
14953
14954         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14955         conditional GL_GENERATE_PTHREAD_H.
14956         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14957         * modules/pthread (Makefile.am): Remove pthread.h if
14958         GL_GENERATE_PTHREAD_H evaluates to false.
14959
14960         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14961         GL_GENERATE_SCHED_H.
14962         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14963         evaluates to false.
14964
14965         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14966         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14967         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14968         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14969
14970         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14971         GL_GENERATE_STDARG_H.
14972         * modules/stdarg (Makefile.am): Remove stdarg.h if
14973         GL_GENERATE_STDARG_H evaluates to false.
14974
14975         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14976         GL_GENERATE_STDBOOL_H.
14977         * modules/stdbool (Makefile.am): Remove stdbool.h if
14978         GL_GENERATE_STDBOOL_H evaluates to false.
14979
14980         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14981         conditional GL_GENERATE_STDDEF_H.
14982         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14983         * modules/stddef (Makefile.am): Remove stddef.h if
14984         GL_GENERATE_STDDEF_H evaluates to false.
14985
14986         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14987         GL_GENERATE_STDINT_H.
14988         * modules/stdint (Makefile.am): Remove stdint.h if
14989         GL_GENERATE_STDINT_H evaluates to false.
14990
14991         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14992         GL_GENERATE_SYSEXITS_H.
14993         * modules/sysexits (Makefile.am): Remove sysexits.h if
14994         GL_GENERATE_SYSEXITS_H evaluates to false.
14995
14996         Reported by Karl Berry and Ralf Wildenhues.
14997
14998 2011-04-05  Bruno Haible  <bruno@clisp.org>
14999
15000         Ensure to rebuild generated .h files when config.status has changed.
15001         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
15002         config.status.
15003         * modules/ctype (Makefile.am): Likewise.
15004         * modules/dirent (Makefile.am): Likewise.
15005         * modules/errno (Makefile.am): Likewise.
15006         * modules/fcntl-h (Makefile.am): Likewise.
15007         * modules/float (Makefile.am): Likewise.
15008         * modules/getopt-posix (Makefile.am): Likewise.
15009         * modules/glob (Makefile.am): Likewise.
15010         * modules/iconv-h (Makefile.am): Likewise.
15011         * modules/inttypes (Makefile.am): Likewise.
15012         * modules/langinfo (Makefile.am): Likewise.
15013         * modules/locale (Makefile.am): Likewise.
15014         * modules/math (Makefile.am): Likewise.
15015         * modules/netdb (Makefile.am): Likewise.
15016         * modules/netinet_in (Makefile.am): Likewise.
15017         * modules/poll-h (Makefile.am): Likewise.
15018         * modules/pthread (Makefile.am): Likewise.
15019         * modules/pty (Makefile.am): Likewise.
15020         * modules/sched (Makefile.am): Likewise.
15021         * modules/search (Makefile.am): Likewise.
15022         * modules/selinux-h (Makefile.am): Likewise.
15023         * modules/signal (Makefile.am): Likewise.
15024         * modules/spawn (Makefile.am): Likewise.
15025         * modules/stdarg (Makefile.am): Likewise.
15026         * modules/stdbool (Makefile.am): Likewise.
15027         * modules/stddef (Makefile.am): Likewise.
15028         * modules/stdint (Makefile.am): Likewise.
15029         * modules/stdio (Makefile.am): Likewise.
15030         * modules/stdlib (Makefile.am): Likewise.
15031         * modules/string (Makefile.am): Likewise.
15032         * modules/strings (Makefile.am): Likewise.
15033         * modules/sys_file (Makefile.am): Likewise.
15034         * modules/sys_ioctl (Makefile.am): Likewise.
15035         * modules/sys_select (Makefile.am): Likewise.
15036         * modules/sys_socket (Makefile.am): Likewise.
15037         * modules/sys_stat (Makefile.am): Likewise.
15038         * modules/sys_time (Makefile.am): Likewise.
15039         * modules/sys_times (Makefile.am): Likewise.
15040         * modules/sys_utsname (Makefile.am): Likewise.
15041         * modules/sys_wait (Makefile.am): Likewise.
15042         * modules/sysexits (Makefile.am): Likewise.
15043         * modules/termios (Makefile.am): Likewise.
15044         * modules/time (Makefile.am): Likewise.
15045         * modules/unistd (Makefile.am): Likewise.
15046         * modules/wchar (Makefile.am): Likewise.
15047         * modules/wctype-h (Makefile.am): Likewise.
15048         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
15049
15050 2011-04-05  Bruno Haible  <bruno@clisp.org>
15051
15052         pipe2: Relicense under LGPLv2+.
15053         * modules/pipe2 (License): Change to LGPLv2+.
15054         Requested by Eric Blake, for libvirt.
15055
15056 2011-04-05  Bruce Korb  <bkorb@gnu.org>
15057
15058         bootstrap: compute gnulib_extra_files after updating build_aux
15059         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
15060         change build_aux or also supply gnulib_extra_files.  Handle correctly.
15061
15062 2011-04-05  Eric Blake  <eblake@redhat.com>
15063
15064         bootstrap: preserve git whitelist item sorting
15065         * build-aux/bootstrap (sort_patterns): New function.
15066         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
15067
15068 2011-04-05  Simon Josefsson  <simon@josefsson.org>
15069
15070         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
15071         sc_space_tab check.
15072
15073 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
15074
15075         areadlink, areadlinkat: rewrite in terms of careadlinkat
15076         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
15077         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
15078         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
15079         (malloc, realloc): Remove #undefs.
15080         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
15081         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
15082         readlink, ssize_t, stdint, unistd.
15083         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
15084         areadlink, stdint.
15085
15086         careadlinkat: new module
15087         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
15088         * modules/careadlinkat: New files, written by me with
15089         a review and feedback from Ben Pfaff in
15090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
15091
15092 2011-04-01  Bruno Haible  <bruno@clisp.org>
15093
15094         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
15095         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
15096         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
15097         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
15098         Reported by Bruce Korb <bruce.korb@gmail.com>.
15099
15100 2011-04-01  Bruno Haible  <bruno@clisp.org>
15101
15102         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
15103         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
15104         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
15105         * modules/wcpcpy (Depends-on): Add extensions.
15106         * modules/wcpncpy (Depends-on): Likewise.
15107         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
15108         systems.
15109         * doc/posix-functions/wcpncpy.texi: Likewise.
15110         * doc/posix-functions/wcwidth.texi: Likewise.
15111
15112 2011-03-31  Eric Blake  <eblake@redhat.com>
15113
15114         nonblocking: fix mingw test failures
15115         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
15116         non-blocking flag on regular file.
15117         (get_nonblocking_flag): Set errno on invalid fd.
15118         * tests/test-nonblocking.c (main): Avoid test failure on
15119         directories if fchdir is not active.
15120         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
15121
15122 2011-03-31  Bruno Haible  <bruno@clisp.org>
15123
15124         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
15125         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
15126         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
15127         Reported by Simon Josefsson <simon@josefsson.org>.
15128
15129 2011-03-31  Bruno Haible  <bruno@clisp.org>
15130         and Eric Blake  <eblake@redhat.com>
15131
15132         nonblocking: new module
15133         * modules/nonblocking: New module.
15134         * modules/nonblocking-tests: Likewise.
15135         * lib/nonblocking.h: New file.
15136         * lib/nonblocking.c: Likewise.
15137         * tests/test-nonblocking.c: New test.
15138         * lib/ioctl.c (ioctl) [mingw]: Update comment.
15139
15140 2011-03-30  Bruno Haible  <bruno@clisp.org>
15141
15142         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
15143         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
15144         instead of 'printf' format for GCC >= 4.4.
15145         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
15146         (fprintf, printf, vfprintf, vprintf): Declare with
15147         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
15148         the system's vfprintf() function.
15149         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
15150
15151 2011-03-30  Eric Blake  <eblake@redhat.com>
15152
15153         passfd: fix scoping bug
15154         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
15155         before sendmsg/recvmsg.
15156
15157         passfd: standardize coding conventions
15158         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
15159         can be learned at compile time.
15160         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
15161         ifdefs.
15162         (sendfd, recvfd): Follow gnulib code conventions.
15163
15164         passfd: fix incorrect sendmsg arguments
15165         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15166         incorrect msg_controllen value.
15167         * modules/passfd-tests (Depends-on): Check for alarm.
15168         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15169         Reported by Bastien ROUCARIES.
15170
15171 2011-03-30  Bruno Haible  <bruno@clisp.org>
15172
15173         c-strcasestr: Relicense under LGPLv2+.
15174         * modules/c-strcasestr (License): Change to LGPLv2+.
15175         Requested by Eric Blake, for libvirt.
15176
15177 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15178
15179         * users.txt: Add libidn2.  Fix libtasn1 link.
15180
15181 2011-03-30  Jim Meyering  <meyering@redhat.com>
15182
15183         tests: readlink* ("",... fails with EINVAL on newer kernels
15184         readlink and readlinkat have typically failed with ENOENT for
15185         the invalid, empty file name,  "".  However, with the advent
15186         of linux-2.6.39, they fail with EINVAL.
15187         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15188         when operating on the empty file name.
15189         * tests/test-readlink.h (test_readlink): Likewise.
15190
15191 2011-03-29  Bruno Haible  <bruno@clisp.org>
15192
15193         Relicense some modules under LGPLv2+, for libidn2.
15194         * modules/array-mergesort (License): Change to LGPLv2+.
15195         * modules/c-strcaseeq (License): Likewise.
15196         * modules/striconveh (License): Likewise.
15197         * modules/striconveha (License): Likewise.
15198         * modules/uniconv/base (License): Likewise.
15199         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15200         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15201         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15202         * modules/unictype/base (License): Likewise.
15203         * modules/unictype/bidiclass-of (License): Likewise.
15204         * modules/unictype/category-M (License): Likewise.
15205         * modules/unictype/category-none (License): Likewise.
15206         * modules/unictype/category-of (License): Likewise.
15207         * modules/unictype/category-test (License): Likewise.
15208         * modules/unictype/category-test-withtable (License): Likewise.
15209         * modules/unictype/combining-class (License): Likewise.
15210         * modules/unictype/joiningtype-of (License): Likewise.
15211         * modules/unictype/scripts (License): Likewise.
15212         * modules/uninorm/base (License): Likewise.
15213         * modules/uninorm/canonical-decomposition (License): Likewise.
15214         * modules/uninorm/composition (License): Likewise.
15215         * modules/uninorm/decompose-internal (License): Likewise.
15216         * modules/uninorm/decomposition-table (License): Likewise.
15217         * modules/uninorm/nfc (License): Likewise.
15218         * modules/uninorm/nfd (License): Likewise.
15219         * modules/uninorm/u32-normalize (License): Likewise.
15220         * modules/unistr/base (License): Likewise.
15221         * modules/unistr/u32-cpy (License): Likewise.
15222         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15223         * modules/unistr/u32-to-u8 (License): Likewise.
15224         * modules/unistr/u32-uctomb (License): Likewise.
15225         * modules/unistr/u8-check (License): Likewise.
15226         * modules/unistr/u8-mblen (License): Likewise.
15227         * modules/unistr/u8-mbtouc (License): Likewise.
15228         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15229         * modules/unistr/u8-mbtoucr (License): Likewise.
15230         * modules/unistr/u8-prev (License): Likewise.
15231         * modules/unistr/u8-strlen (License): Likewise.
15232         * modules/unistr/u8-to-u32 (License): Likewise.
15233         * modules/unistr/u8-uctomb (License): Likewise.
15234         * modules/unitypes (License): Likewise.
15235         Requested by Simon Josefsson.
15236
15237 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15238
15239         lib-symbol-visibility: Add a notice.
15240         * modules/lib-symbol-visibility (Notice): New field.
15241
15242 2011-03-29  Bruno Haible  <bruno@clisp.org>
15243
15244         getaddrinfo: Doc fix.
15245         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15246         section "fixed in Gnulib".
15247
15248 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15249
15250         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15251         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15252
15253 2011-03-26  Bruno Haible  <bruno@clisp.org>
15254
15255         unictype/property-byname: Reduce the number of load-time relocations.
15256         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15257         (UC_PROPERTY_INDEX_*): New enumeration values.
15258         (uc_property_byname): Convert an index from the lookup table to an
15259         uc_property_t.
15260         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15261         values.
15262
15263 2011-03-26  Bruno Haible  <bruno@clisp.org>
15264
15265         unictype/property-byname: Allow omitted word separators and aliases.
15266         * lib/unictype/pr_byname.gperf: Add property names without word
15267         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15268         for 'space'.
15269
15270 2011-03-26  Bruno Haible  <bruno@clisp.org>
15271
15272         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15273         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15274         also hyphens to space.
15275         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15276         without spaces.
15277         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15278
15279 2011-03-26  Bruno Haible  <bruno@clisp.org>
15280
15281         unictype/joiningtype-byname: Recognize long names as well.
15282         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15283         a long name.
15284         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15285         unictype/joiningtype_byname.h.
15286         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15287         * lib/unictype/joiningtype_byname.gperf: New file.
15288         * modules/unictype/joiningtype-byname (Files): Add
15289         lib/unictype/joiningtype_byname.gperf.
15290         (Depends-on): Add gperf.
15291         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15292         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15293         long names.
15294
15295         Tests for module 'unictype/joiningtype-longname'.
15296         * modules/unictype/joiningtype-longname-tests: New file.
15297         * tests/unictype/test-joiningtype_longname.c: New file.
15298
15299         New module 'unictype/joiningtype-longname'.
15300         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15301         * lib/unictype/joiningtype_longname.c: New file.
15302         * modules/unictype/joiningtype-longname: New file.
15303         * modules/unictype/joiningtype-all (Depends-on): Add
15304         unictype/joiningtype-longname.
15305
15306 2011-03-26  Bruno Haible  <bruno@clisp.org>
15307
15308         unictype/bidiclass-byname: Recognize long names as well.
15309         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15310         name.
15311         * lib/unictype/bidi_byname.c: Include <string.h>,
15312         unictype/bidi_byname.h.
15313         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15314         * lib/unictype/bidi_byname.gperf: New file.
15315         * modules/unictype/bidiclass-byname (Files): Add
15316         lib/unictype/bidi_byname.gperf.
15317         (Depends-on): Add gperf.
15318         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15319         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15320         long names.
15321
15322         Tests for module 'unictype/bidiclass-longname'.
15323         * modules/unictype/bidiclass-longname-tests: New file.
15324         * tests/unictype/test-bidi_longname.c: New file.
15325
15326         New module 'unictype/bidiclass-longname'.
15327         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15328         * lib/unictype/bidi_longname.c: New file.
15329         * modules/unictype/bidiclass-longname: New file.
15330         * modules/unictype/bidiclass-all (Depends-on): Add
15331         unictype/bidiclass-longname.
15332
15333 2011-03-26  Bruno Haible  <bruno@clisp.org>
15334
15335         unictype/bidi*: Rename modules.
15336         * modules/unictype/bidiclass-all: Renamed from
15337         modules/unictype/bidicategory-all.
15338         * modules/unictype/bidiclass-name: Renamed from
15339         modules/unictype/bidiclass-name.
15340         (Description): Update.
15341         * modules/unictype/bidiclass-name-tests: Renamed from
15342         modules/unictype/bidicategory-name-tests.
15343         * modules/unictype/bidiclass-byname: Renamed from
15344         modules/unictype/bidicategory-byname.
15345         (Description): Update.
15346         * modules/unictype/bidiclass-byname-tests: Renamed from
15347         modules/unictype/bidicategory-byname-tests.
15348         * modules/unictype/bidiclass-of: Renamed from
15349         modules/unictype/bidicategory-of.
15350         (Description): Update.
15351         * modules/unictype/bidiclass-of-tests: Renamed from
15352         modules/unictype/bidicategory-of-tests.
15353         * modules/unictype/bidiclass-test: Renamed from
15354         modules/unictype/bidicategory-test.
15355         (Description): Update.
15356         * modules/unictype/bidiclass-test-tests: Renamed from
15357         modules/unictype/bidicategory-test-tests.
15358         * modules/unictype/bidicategory-all: New file, a simple redirection.
15359         * modules/unictype/bidicategory-name: Likewise.
15360         * modules/unictype/bidicategory-byname: Likewise.
15361         * modules/unictype/bidicategory-of: Likewise.
15362         * modules/unictype/bidicategory-test: Likewise.
15363         * modules/unictype/property-bidi-* (Dependencies): Update.
15364         * lib/unictype/bidi_*.c: Update comment.
15365
15366 2011-03-26  Bruno Haible  <bruno@clisp.org>
15367
15368         unictype/bidi*: Rename functions, part 2.
15369         * modules/unictype/bidicategory-name (configure.ac): Update required
15370         libunistring version.
15371         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15372
15373 2011-03-25  Bruno Haible  <bruno@clisp.org>
15374
15375         New module 'unictype/combining-class-all'.
15376         * modules/unictype/combining-class-all: New file.
15377
15378         Tests for module 'unictype/combining-class-byname'.
15379         * modules/unictype/combining-class-byname-tests: New file.
15380         * tests/unictype/test-combiningclass_byname.c: New file.
15381
15382         New module 'unictype/combining-class-byname'.
15383         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15384         * lib/unictype/combiningclass_byname.c: New file.
15385         * lib/unictype/combiningclass_byname.gperf: New file.
15386         * modules/unictype/combining-class-byname: New file.
15387
15388         Tests for module 'unictype/combining-class-longname'.
15389         * modules/unictype/combining-class-longname-tests: New file.
15390         * tests/unictype/test-combiningclass_longname.c: New file.
15391
15392         New module 'unictype/combining-class-longname'.
15393         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15394         * lib/unictype/combiningclass_longname.c: New file.
15395         * modules/unictype/combining-class-longname: New file.
15396
15397         Tests for module 'unictype/combining-class-name'.
15398         * modules/unictype/combining-class-name-tests: New file.
15399         * tests/unictype/test-combiningclass_name.c: New file.
15400
15401         New module 'unictype/combining-class-name'.
15402         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15403         * lib/unictype/combiningclass_name.c: New file.
15404         * modules/unictype/combining-class-name: New file.
15405
15406 2011-03-25  Bruno Haible  <bruno@clisp.org>
15407
15408         unictype/combining-class: Rename source files.
15409         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15410         of unictype/combining.h.
15411         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15412         Update.
15413         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15414         * modules/unictype/combining-class (Description): Fix.
15415         (Files, Makefile.am): Update.
15416         * tests/unictype/test-combiningclass.c: Renamed from
15417         tests/unictype/test-combining.c.
15418         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15419
15420 2011-03-25  Bruno Haible  <bruno@clisp.org>
15421
15422         unictype: Update list of canonical combining classes.
15423         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15424
15425 2011-03-25  Bruno Haible  <bruno@clisp.org>
15426
15427         unictype/category-byname: Recognize long names as well.
15428         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15429         a long name.
15430         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15431         unictype/categ_byname.h.
15432         (UC_CATEGORY_INDEX_*): New enumeration values.
15433         (uc_general_category_byname): Use uc_general_category_lookup and
15434         convert from index to value.
15435         * lib/unictype/categ_byname.gperf: New file.
15436         * modules/unictype/category-byname (Files): Add
15437         lib/unictype/categ_byname.gperf.
15438         (Depends-on): Add gperf.
15439         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15440         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15441         long names.
15442
15443         Tests for module 'unictype/category-longname'.
15444         * modules/unictype/category-longname-tests: New file.
15445         * tests/unictype/test-categ_longname.c: New file.
15446
15447         New module 'unictype/category-longname'.
15448         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15449         * lib/unictype/categ_longname.c: New file.
15450         * modules/unictype/category-longname: New file.
15451         * modules/unictype/category-all (Depends-on): Add it.
15452
15453 2011-03-25  Bruno Haible  <bruno@clisp.org>
15454
15455         Tests for module 'unictype/category-LC'.
15456         * modules/unictype/category-LC-tests: New file.
15457         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15458
15459         New module 'unictype/category-LC'.
15460         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15461         (UC_CATEGORY_LC): New declaration.
15462         (UC_CASED_LETTER): New macro.
15463         * lib/gen-uni-tables.c (is_category_LC): New function.
15464         (output_categories): Also handle category LC.
15465         (UC_CATEGORY_MASK_LC): New enumeration value.
15466         (general_category_byname): Also handle category LC.
15467         * lib/unictype/categ_LC.c: New file.
15468         * lib/unictype/categ_LC.h: New file, automatically generated.
15469         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15470         category LC.
15471         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15472         * modules/unictype/category-LC: New file.
15473         * modules/unictype/category-byname (Depends-on): Add
15474         unictype/category-LC.
15475         * modules/unictype/category-all (Depends-on): Likewise.
15476
15477 2011-03-25  Eric Blake  <eblake@redhat.com>
15478
15479         xmalloc: revert yesterday's regression
15480         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15481         realloc's underlying behavior (allowing allocation of zero-size
15482         objects, especially if malloc-gnu is also in use).
15483
15484 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15485
15486         maint.mk: add missing version to VC-tag
15487         * top/maint.mk: git tag was missing actual tag name; add it.
15488
15489         valgrind: do leak checking, and exit with code 1 on error (not 0)
15490         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15491         to VALGRIND.
15492
15493 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15494
15495         posix-modules: say what it does.
15496         * posix-modules: Add a line to the --help output saying what it does.
15497
15498 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15499
15500         xmalloc: Do not leak if underlying realloc is C99 compatible.
15501         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15502         This avoids a leak on C99-based systems.  See
15503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15504
15505 2011-03-24  Eric Blake  <eblake@redhat.com>
15506
15507         realloc: document portability problem
15508         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15509         passing 0 size to realloc.
15510
15511 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15512
15513         doc: update users.txt
15514         * users.txt: Add cvsps, tmpwatch
15515
15516 2011-03-23  Matt Rice  <ratmice@gmail.com>
15517
15518         doc: update users.txt
15519         * users.txt: Add gdb.
15520
15521 2011-03-23  Jim Meyering  <meyering@redhat.com>
15522
15523         doc: update users.txt
15524         Looking through matches up to the following URL (there are still
15525         several more pages), I found several projects that use gnulib:
15526         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15527         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15528         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15529
15530 2011-03-22  Bruno Haible  <bruno@clisp.org>
15531
15532         unictype/bidi*: Rename functions.
15533         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15534         uc_bidi_class, uc_is_bidi_class): New declarations.
15535         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15536         uc_bidi_category_byname.
15537         (uc_bidi_category_byname): New function.
15538         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15539         u_bidi_category_name.
15540         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15541         (uc_bidi_category_name): New function.
15542         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15543         uc_bidi_category.
15544         (uc_bidi_category): New function.
15545         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15546         uc_is_bidi_category. Invoke uc_bidi_class.
15547         (uc_is_bidi_category): New function.
15548         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15549         instead of uc_bidi_category_byname.
15550         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15551         instead of uc_bidi_category_name.
15552         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15553         uc_bidi_category.
15554         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15555         instead of uc_is_bidi_category.
15556
15557 2011-03-21  Bruno Haible  <bruno@clisp.org>
15558
15559         New module 'unictype/joininggroup-all'.
15560         * modules/unictype/joininggroup-all: New file.
15561
15562         Tests for module 'unictype/joininggroup-of'.
15563         * modules/unictype/joininggroup-of-tests: New file.
15564         * tests/unictype/test-joininggroup_of.c: New file.
15565         * tests/unictype/test-joininggroup_of.h: New file, automatically
15566         generated by gen-uni-tables.
15567
15568         New module 'unictype/joininggroup-of'.
15569         * modules/unictype/joininggroup-of: New file.
15570         * lib/unictype/joininggroup_of.c: New file.
15571         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15572         gen-uni-tables.
15573
15574         Tests for module 'unictype/joininggroup-byname'.
15575         * modules/unictype/joininggroup-byname-tests: New file.
15576         * tests/unictype/test-joininggroup_byname.c: New file.
15577
15578         New module 'unictype/joininggroup-byname'.
15579         * modules/unictype/joininggroup-byname: New file.
15580         * lib/unictype/joininggroup_byname.c: New file.
15581         * lib/unictype/joininggroup_byname.gperf: New file.
15582
15583         Tests for module 'unictype/joininggroup-name'.
15584         * modules/unictype/joininggroup-name-tests: New file.
15585         * tests/unictype/test-joininggroup_name.c: New file.
15586
15587         New module 'unictype/joininggroup-name'.
15588         * modules/unictype/joininggroup-name: New file.
15589         * lib/unictype/joininggroup_name.c: New file.
15590         * lib/unictype/joininggroup_name.h: New file.
15591
15592         New module 'unictype/joiningtype-all'.
15593         * modules/unictype/joiningtype-all: New file.
15594
15595         Tests for module 'unictype/joiningtype-of'.
15596         * modules/unictype/joiningtype-of-tests: New file.
15597         * tests/unictype/test-joiningtype_of.c: New file.
15598         * tests/unictype/test-joiningtype_of.h: New file, automatically
15599         generated by gen-uni-tables.
15600
15601         New module 'unictype/joiningtype-of'.
15602         * modules/unictype/joiningtype-of: New file.
15603         * lib/unictype/joiningtype_of.c: New file.
15604         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15605         gen-uni-tables.
15606
15607         Tests for module 'unictype/joiningtype-byname'.
15608         * modules/unictype/joiningtype-byname-tests: New file.
15609         * tests/unictype/test-joiningtype_byname.c: New file.
15610
15611         New module 'unictype/joiningtype-byname'.
15612         * modules/unictype/joiningtype-byname: New file.
15613         * lib/unictype/joiningtype_byname.c: New file.
15614
15615         Tests for module 'unictype/joiningtype-name'.
15616         * modules/unictype/joiningtype-name-tests: New file.
15617         * tests/unictype/test-joiningtype_name.c: New file.
15618
15619         New module 'unictype/joiningtype-name'.
15620         * modules/unictype/joiningtype-name: New file.
15621         * lib/unictype/joiningtype_name.c: New file.
15622
15623         unictype: Add support for Arabic shaping properties.
15624         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15625         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15626         declarations.
15627         (UC_JOINING_GROUP_*): New enumeration values.
15628         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15629         declarations.
15630         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15631         (unicode_joining_type): New variable.
15632         (UC_JOINING_GROUP_*): New enumeration values.
15633         (unicode_joining_group): New variable.
15634         (fill_arabicshaping, joining_type_as_c_identifier,
15635         output_joining_type_test, output_joining_type,
15636         joining_group_as_c_identifier, output_joining_group_test,
15637         output_joining_group): New functions.
15638         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15639         fill_arabicshaping and output_joining_type_test, output_joining_type,
15640         output_joining_group_test, output_joining_group.
15641         Reported by Simon Josefsson.
15642
15643 2011-03-21  Jim Meyering  <meyering@redhat.com>
15644
15645         strftime: fix a bug in yesterday's change
15646         * lib/strftime.c (add): Accommodate width's initial value of -1.
15647         Otherwise, nstrftime would copy uninitialized data into
15648         the result buffer.
15649
15650 2011-03-21  Jim Meyering  <meyering@redhat.com>
15651
15652         tests: add strftime-tests module
15653         * tests/test-strftime.c: New file.
15654         * modules/strftime-tests: New module.
15655
15656 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15657
15658         strftime: don't assume a byte count fits in 'int'
15659         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15660         found this problem by static analysis, using gcc -Wstrict-overflow
15661         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15662         on an integer overflow having undefined behavior, but it turns out
15663         that the argument is a size, which might not fit in 'int' anyway,
15664
15665 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15666
15667         stdio: don't require ignore_value around fwrite
15668
15669         This patch works around libc bug 11959
15670         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15671         Without this patch, applications must often write
15672         ignore_value (fwrite (...)) even though the ignore_value is
15673         not helpful here.  It's common to write many objects, using
15674         fwrite/printf/etc., and then use ferror to detect output error.
15675
15676         I considered making this patch optional, but decided against it,
15677         because libc is obviously being inconsistent here: there is no
15678         reason libc should insist that user code must inspect fwrite
15679         return's value without also insisting that it inspect printf's,
15680         putchar's, etc.  If user code wants to have a strict style where
15681         all these functions' values are checked (so that ferror need not
15682         be checked), we could add support for that style in a new gnulib
15683         module, but in the meantime it's better to be consistent and to
15684         support common usage.
15685
15686         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15687         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15688         that we are compiling in checking mode, and if not C++, and
15689         if not already wrapping fwrite for some other reason.
15690         (fwrite): #define to rpl_fwrite if the latter is defined.
15691
15692 2011-03-20  Bruno Haible  <bruno@clisp.org>
15693
15694         verror: Fix compilation error introduced on 2011-02-13.
15695         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15696         instead of __attribute__.
15697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15698
15699 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15700             Bruno Haible  <bruno@clisp.org>
15701
15702         socklen: do not depend on sys_socket
15703         While trying to modify Emacs to use gnulib's socklen module,
15704         I discovered a circular dependency: socklen depends on sys_socket
15705         and vice versa.  Emacs can use socklen, but it does not need
15706         sys_socket because it has its own substitute for sys/socket.h.
15707         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15708         gl_TYPE_SOCKLEN_T.
15709         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15710         gl_PREREQ_SYS_H_SOCKET.
15711         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15712         gl_PREREQ_SYS_H_SOCKET.
15713         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15714         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15715         * modules/socklen (Depends-on): Do not depend on sys_socket.
15716         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15717
15718 2011-03-20  Jim Meyering  <meyering@redhat.com>
15719
15720         maint.mk: sort file names *after* new transformation
15721         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15722         prefix would have led to an unwarranted failure in GNU parted.
15723         Sort after that transformation.
15724
15725 2011-03-19  Jim Meyering  <meyering@redhat.com>
15726
15727         maint.mk: fix po-file syntax-check rule
15728         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15729         Patch by Bruno Haible.
15730
15731 2011-03-19  Bruno Haible  <bruno@clisp.org>
15732
15733         socklen: Update comment.
15734         * m4/socklen.m4: Update comment about platforms.
15735
15736 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15737             Bruno Haible  <bruno@clisp.org>
15738
15739         inet_ntop, inet_pton: Simplify.
15740         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15741         documented to provide socklen_t and we already depend on sys_socket.
15742         * modules/inet_pton (Depends-on): Likewise.
15743         * lib/arpa_inet.in.h: Adjust comment.
15744
15745 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15746             Bruno Haible  <bruno@clisp.org>
15747
15748         netdb: Simplify.
15749         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15750         documented to provide socklen_t and we already depend on sys_socket.
15751         * lib/netdb.in.h: Adjust comment.
15752
15753 2011-03-19  Bruno Haible  <bruno@clisp.org>
15754
15755         sys_socket, netdb: Document problem with socklen_t.
15756         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15757         platforms.
15758         * doc/posix-headers/netdb.texi: Likewise.
15759
15760 2011-03-18  Eric Blake  <eblake@redhat.com>
15761
15762         maint.mk: let po check work in VPATH build
15763         * top/maint.mk (po_file): Allow cfg.mk override.
15764         (sc_po_check): Allow VPATH use.
15765         Reported by Jiri Denemark.
15766
15767 2011-03-16  Jim Meyering  <meyering@redhat.com>
15768
15769         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15770         Before, you would have had to create one .x-sc_ file per rule in order
15771         to exempt offending files.  Now, you may instead use a Make variable --
15772         usually defined in cfg.mk -- whose name identifies the affected rule.
15773         * top/maint.mk (_sc_excl): Define.
15774         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15775         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15776
15777 2011-03-13  Bruno Haible  <bruno@clisp.org>
15778
15779         ignore-value tests: Avoid warnings.
15780         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15781         empty for gcc < 3.4.
15782
15783 2011-03-13  Bruno Haible  <bruno@clisp.org>
15784
15785         passfd: Fix link error on Solaris.
15786         * modules/passfd (Description): Correct.
15787         (Depends-on): Add socketlib.
15788         (Link): New section.
15789         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15790
15791 2011-03-13  Bruno Haible  <bruno@clisp.org>
15792
15793         passfd: Fix link error on AIX 5.2.
15794         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15795
15796 2011-03-13  Bruno Haible  <bruno@clisp.org>
15797
15798         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15799         * lib/sys_socket.in.h: Include <stddef.h>.
15800         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15801         CMSG_FIRSTHDR. Remove unused variable.
15802
15803 2011-03-13  Bruno Haible  <bruno@clisp.org>
15804
15805         passfd: Fix compilation error on OpenBSD.
15806         * lib/passfd.c: Include <sys/uio.h>.
15807
15808 2011-03-13  Bruno Haible  <bruno@clisp.org>
15809
15810         passfd test: Fix warnings.
15811         * tests/test-passfd.c: Include <sys/wait.h>.
15812         (main): Fix typo.
15813
15814 2011-03-13  Bruno Haible  <bruno@clisp.org>
15815
15816         passfd module, part 4, tweaks.
15817         * tests/test-passfd.c: Reorder includes.
15818         (main): Fix perror and printf calls.
15819
15820 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15821
15822         passfd module, part 4.
15823         * modules/passfd-tests: New file.
15824         * tests/test-passfd.c: New file.
15825
15826 2011-03-13  Jim Meyering  <meyering@redhat.com>
15827
15828         Makefile: rely on GNU make; derive syntax-check rule names
15829         Rather than requiring that each sc_ rule be listed as a dependent
15830         of "check", use features of GNU make to derive the list.
15831         * Makefile (syntax-check-rules): Define.
15832         (check): Depend on the new variable, not the hard-coded list.
15833
15834 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15835             Bruno Haible  <bruno@clisp.org>
15836
15837         passfd module, part 3.
15838         * lib/passfd.h (recvfd): Add a flags argument.
15839         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15840         (recvfd): Add a flags argument.
15841         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15842         exists.
15843         * modules/passfd (Depends-on): Add cloexec.
15844         Suggested by Eric Blake.
15845
15846 2011-03-13  Bruno Haible  <bruno@clisp.org>
15847
15848         passfd module, part 2, tweaks.
15849         * modules/passfd (Files): Reorder.
15850         (Depends-on): Remove errno.
15851         (Include): Remove <sys/socket.h>, <sys/un.h>.
15852         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15853         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15854         specification header. Include <sys/socket.h> always. Don't include
15855         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15856         (sendfd): Clarify that it sets errno when it fails.
15857         (recvfd): Fix specification.
15858
15859 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15860
15861         passfd module, part 2.
15862         * modules/passfd: New file.
15863         * lib/passfd.h: New file.
15864         * lib/passfd.c: New file.
15865
15866 2011-03-12  Bruno Haible  <bruno@clisp.org>
15867
15868         wcswidth, mbswidth: Avoid integer overflow.
15869         * lib/wcswidth.c: Include <limits.h>.
15870         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15871         * lib/mbswidth.c: Include <limits.h>.
15872         (mbsnwidth): Avoid 'int' overflow.
15873         Reported by Jim Meyering.
15874
15875 2011-03-12  Bruno Haible  <bruno@clisp.org>
15876
15877         futimens, utimensat: Avoid endless recursion on Solaris 10.
15878         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15879         Solaris.
15880         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15881         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15882
15883 2011-03-11  Jim Meyering  <meyering@redhat.com>
15884
15885         maint.mk: relax a regexp to accommodate other formatting styles
15886         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15887         between "ngettext" and the following "(".
15888
15889 2011-03-11  Pádraig Brady <P@draigBrady.com>
15890
15891         maint.mk: suppress a false positive warning
15892         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15893         diagnostics are marked with ngettext.
15894
15895 2011-03-10  Eric Blake  <eblake@redhat.com>
15896
15897         wchar: add explicit dependencies, for Tru64
15898         * modules/mbmemcasecoll (Depends-on): Add wchar.
15899         * modules/mbtowc (Depends-on): Likewise.
15900         * modules/vasnprintf (Depends-on): Likewise.
15901         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15902         * modules/wctomb (Depends-on): Likewise.
15903         Reported by Peter O'Gorman.
15904
15905 2011-03-08  Bruno Haible  <bruno@clisp.org>
15906
15907         passfd module, part 1, tweaks.
15908         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15909         Improve indentation. Improve AC_MSG_CHECKING messages.
15910         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15911         gl_SOCKET_FAMILIES.
15912
15913 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15914
15915         passfd module, part 1.
15916         * m4/afunix.m4: New file.
15917         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15918         sockets.
15919
15920 2011-03-08  Bruno Haible  <bruno@clisp.org>
15921
15922         regex-quote: New API.
15923         * lib/regex-quote.h: Include <stdbool.h>.
15924         (struct regex_quote_spec): New type.
15925         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15926         New declarations.
15927         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15928         'const struct regex_quote_spec *' argument.
15929         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15930         (pcre_special): New constant.
15931         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15932         New functions.
15933         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15934         'const struct regex_quote_spec *' argument.
15935         * modules/regex-quote (Depends-on): Add stdbool.
15936         * tests/test-regex-quote.c (check): Update for new API. Add test for
15937         anchored results.
15938         * NEWS: Mention the API change.
15939         Reported by Reuben Thomas and Eric Blake.
15940
15941 2011-03-06  Bruno Haible  <bruno@clisp.org>
15942
15943         regex-quote: Fix creation of POSIX extended regular expressions.
15944         * lib/regex-quote.c (ere_special): Add grouping and alternation
15945         operators.
15946
15947 2011-03-05  Bruno Haible  <bruno@clisp.org>
15948
15949         doc: Improve doc regarding autopoint vs. gnulib.
15950         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15951         disable autopoint while running autoreconf.
15952         Suggested by Ralf Wildenhues.
15953
15954 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15955
15956         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15957         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15958
15959 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15960
15961         parse-duration: remove xalloc.h dependency
15962         * lib/parse-duration.c (parse_period): handle NULL return from
15963         strdup instead of calling xstrdup().
15964         * modules/parse-duration: remove "xalloc" dependency
15965
15966 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15967
15968         bootstrap: honor m4_base when running aclocal
15969         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15970
15971 2011-03-02  Jim Meyering  <meyering@redhat.com>
15972
15973         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15974         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15975         on request from Matt Booth.
15976
15977 2011-03-01  Eric Blake  <eblake@redhat.com>
15978
15979         test-link: work on Hurd
15980         * tests/test-link.h (test_link): Hurd rejects linking directories
15981         with EISDIR instead of the POSIX-mandated EPERM.
15982
15983 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15984
15985         stdio: simplify by moving files to printf-posix, sigpipe
15986         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15987         since this symbol is needed only if printf is replaced.
15988         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15989         Require gl_ASM_SYMBOL_PREFIX.
15990         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15991         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15992         (Depends-on): Add 'raise'.
15993         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15994         * modules/stdio (Files): Remove lib/stdio-write.c,
15995         m4/asm-underscore.m4.
15996         (Depends-on): Remove 'raise'.
15997
15998         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15999         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
16000         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
16001         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
16002
16003 2011-02-28  Bruno Haible  <bruno@clisp.org>
16004
16005         localcharset: Assume ANSI C behaviour of free().
16006         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
16007         calling free().
16008         Suggested by Simon Josefsson <simon@josefsson.org>.
16009
16010 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
16011             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
16012             Bruno Haible  <bruno@clisp.org>  (tiny change)
16013
16014         On Cygwin, use /proc file system instead of win32 API.
16015         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
16016         Win32 file names.
16017         (DllMain): Simplify by removing Cygwin specific code.
16018         (find_shared_library_fullname): Use Linux specific implementation also
16019         for Cygwin.
16020         (get_shared_library_fullname): Update accordingly.
16021         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
16022         Win32 file names.
16023         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
16024         Cygwin specific code.
16025
16026 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
16027             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
16028
16029         Fix OpenMP flag detection for various Fortran compilers.
16030         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
16031         OpenMP-conditional compilation construct, to force compile
16032         failure with missing OpenMP flag.
16033         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
16034
16035 2011-02-25  Eric Blake  <eblake@redhat.com>
16036
16037         strstr: expand test coverage
16038         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
16039         compilation.
16040         * tests/test-memmem.c (main): Duplicate tests.
16041         * tests/test-strcasestr.c (main): Likewise.
16042         * tests/test-c-strcasestr.c (main): Likewise.
16043
16044 2011-02-25  Jim Meyering  <meyering@redhat.com>
16045
16046         maint.mk: detect missing-NL-at-EOF, too
16047         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
16048         it also detects when a file lacks a newline at EOF.
16049         (require_exactly_one_NL_at_EOF_): Renamed from
16050         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
16051         since people may well have .x-sc_... file names tied to the
16052         existing name.  Suggested by Eric Blake.
16053
16054 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
16055
16056         dirname: move m4/dos.m4 functionality into lib/dosname.h
16057
16058         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
16059         extracts symbols from it, puts them into config.h; but it's much
16060         easier to use the symbols directly.  filename.h already does this,
16061         but it disagrees with dos.m4 in some respects.  This patch
16062         introduces a different include file dosname.h that packages up
16063         dos.m4, and then later we can work on merging filename.h and
16064         dosname.h.  Applications that need only the easy-to-configure
16065         symbols should consider including dosname.h rather than dirname.h.
16066         * NEWS: Mention incompatible changes.
16067         * m4/dos.m4: Remove.
16068         * lib/dosname.h, modules/dosname: New files.
16069         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
16070         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
16071         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
16072         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
16073         Include dosname.h, not dirname.h.
16074         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
16075         Include dosname.h, for definitions of symbols like ISSLASH
16076         that used to be in config.h.
16077         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
16078         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
16079         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16080         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16081         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
16082         * modules/rmdir (Files): Likewise.
16083         * modules/stat (Files): Likewise.
16084         * modules/unlink (Files): Likewise.
16085         * modules/dirname-lgpl (Depends-on): Add dosname.
16086         * modules/lstat (Depends-on): Likewise.
16087         * modules/openat (Depends-on): Likewise.
16088         * modules/rmdir (Depends-on): Likewise.
16089         * modules/savewd (Depends-on): Likewise.
16090         * modules/stat (Depends-on): Likewise.
16091         * modules/unlink (Depends-on): Likewise.
16092         * modules/openat (Depends-on): Remove dirname-lgpl.
16093         * modules/savewd (Depends-on): Likewise.
16094         * tests/test-dirname.c: Do not use removed symbols like
16095         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
16096         the remaining symbols, e.g., ISSLASH ('\\').
16097
16098 2011-02-25  Eric Blake  <eblake@redhat.com>
16099
16100         strstr: revert patches that introduced bug and pessimization
16101         * lib/str-two-way.h: Add another reference.
16102         (two_way_short_needle, two_way_long_needle): Revert changes from
16103         2011-02-24; they pessimize search speed.
16104         (critical_factorization): Partially revert changes from
16105         2010-06-22; they violate the requirement that the left half of the
16106         needle be smaller than the period of the needle.
16107
16108 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
16109
16110         filenamecat: remove unnecessary dependency on dirname-lgpl
16111         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
16112         is no direct dependency, just an indirect one via filenamecat-lgpl.
16113
16114         remove: remove unnecessary use of m4/dos.m4
16115         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
16116         * modules/remove (FILES): Remove m4/dos.m4.
16117
16118         * lib/openat-proc.c: Don't include dirname.h; not needed.
16119
16120         backupfile: remove unnecessary use of m4/dos.m4
16121         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
16122         of its symbols are used by the backupfile code.  backupfile.c does
16123         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
16124         for the rare case of programs that want all their backup file
16125         names to live within 8+3 limits, and dos.m4 doesn't address that.
16126         * modules/backupfile (Files): Remove m4/dos.m4.
16127
16128 2011-02-24  Jim Meyering  <meyering@redhat.com>
16129
16130         strstr: fix a bug whereby strstr would mistakenly return NULL
16131         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
16132         in period calculation.
16133         (two_way_long_needle): Likewise.
16134         The original problem was reported by Mike Stump in
16135         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
16136         Ralf Wildenhues provided the short needle and haystack.
16137         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
16138         Add a more involved test to trigger the bug in two_way_long_needle.
16139
16140 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16141
16142         gnulib-tool: remove use of bold display in help screen
16143         * gnulib-tool (func_usage): Do not use bold display anymore in the
16144         help screen.  That was just meant to be a temporary emphasis for a
16145         backward-incompatible change.
16146
16147 2011-02-23  Bruno Haible  <bruno@clisp.org>
16148
16149         Fix misindentation of preprocessor directives.
16150         * lib/argp-namefrob.h: Reindent preprocessor directives.
16151         * lib/getopt_int.h (struct _getopt_data): Likewise.
16152         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
16153         * lib/vasnprintf.c (decode_long_double): Likewise.
16154         * tests/test-argmatch.c: Insert blank lines, for clarity.
16155         * tests/test-exclude.c: Likewise.
16156
16157 2011-02-22  Bruno Haible  <bruno@clisp.org>
16158
16159         ioctl: Fix for MacOS X in 64-bit mode.
16160         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
16161         value.
16162         Suggested by Eric Blake.
16163         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16164
16165 2011-02-22  Jim Meyering  <meyering@redhat.com>
16166
16167         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16168         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16169         in lib/.
16170
16171 2011-02-22  Eric Blake  <eblake@redhat.com>
16172
16173         maint: avoid any CDPATH issue
16174         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16175
16176         maint: adjust cpp indentation for my modules, as well
16177         * Makefile (sc_cpp_indent_check): Add my name.
16178         * lib/fbufmode.c: Filter through cppi.
16179         * lib/fpurge.c: Likewise.
16180         * lib/freadable.c: Likewise.
16181         * lib/freading.c: Likewise.
16182         * lib/fwritable.c: Likewise.
16183         * lib/fwriting.c: Likewise.
16184         * lib/sigaction.c: Likewise.
16185
16186 2011-02-22  Jim Meyering  <meyering@redhat.com>
16187
16188         maint: adjust cpp indentation to reflect nesting depth
16189         I.e., in a block of code that begins with an unnested "#if",
16190         put one space between the "#" in column 1 and following token.
16191         For example,
16192         -#include <sys/vfs.h>
16193         +# include <sys/vfs.h>
16194         Do this only in .c files that are part of a module I maintain.
16195         * lib/linkat.c: Filter through cppi.
16196         * lib/nanosleep.c: Likewise.
16197         * lib/openat.c: Likewise.
16198         * lib/openat-die.c: Likewise.
16199         * lib/dup3.c: Likewise.
16200         * lib/fchownat.c: Likewise.
16201         * lib/flock.c: Likewise.
16202         * lib/fsync.c: Likewise.
16203         * lib/fts.c: Likewise.
16204         * lib/getpass.c: Likewise.
16205         * lib/gettimeofday.c: Likewise.
16206         * lib/userspec.c: Likewise.
16207         * Makefile (sc_cpp_indent_check): New rule, to check this.
16208
16209 2011-02-22  Bruno Haible  <bruno@clisp.org>
16210
16211         New module 'wctomb'.
16212         * lib/stdlib.in.h (wctomb): New declaration.
16213         * lib/wctomb.c: New file.
16214         * lib/wctomb-impl.h: New file.
16215         * m4/wctomb.m4: New file.
16216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16217         REPLACE_WCTOMB.
16218         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16219         REPLACE_WCTOMB.
16220         * modules/wctomb: New file.
16221         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16222         * doc/posix-functions/wctomb.texi: Mention the new module.
16223         * modules/wctob (Depends-on): Add wctomb.
16224
16225 2011-02-22  Bruno Haible  <bruno@clisp.org>
16226
16227         New module 'mbtowc'.
16228         * lib/stdlib.in.h (mbtowc): New declaration.
16229         * lib/mbtowc.c: New file.
16230         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16231         * m4/mbtowc.m4: New file.
16232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16233         REPLACE_MBTOWC.
16234         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16235         REPLACE_MBTOWC.
16236         * modules/mbtowc: New file.
16237         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16238         * doc/posix-functions/mbtowc.texi: Mention the new module.
16239         * modules/btowc (Depends-on): Add mbtowc.
16240
16241 2011-02-22  Bruno Haible  <bruno@clisp.org>
16242
16243         wcrtomb: Add more tests for native Windows platforms.
16244         * tests/test-wcrtomb-w32-1.sh: New file.
16245         * tests/test-wcrtomb-w32-2.sh: New file.
16246         * tests/test-wcrtomb-w32-3.sh: New file.
16247         * tests/test-wcrtomb-w32-4.sh: New file.
16248         * tests/test-wcrtomb-w32-5.sh: New file.
16249         * tests/test-wcrtomb-w32.c: New file.
16250         * modules/wcrtomb-tests (Files): Add them.
16251         (Makefile.am): Arrange to run these tests.
16252         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16253         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16254
16255 2011-02-20  Bruno Haible  <bruno@clisp.org>
16256
16257         wcrtomb: Enhance test.
16258         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16259
16260 2011-02-20  Bruno Haible  <bruno@clisp.org>
16261
16262         mbrtowc: Tiny optimization.
16263         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16264
16265 2011-02-20  Jim Meyering  <meyering@redhat.com>
16266
16267         test-exclude.c: remove unmatched #endif
16268         * tests/test-exclude.c: Remove stray #endif, left over from
16269         the change of a week ago.
16270
16271 2011-02-19  Jim Meyering  <meyering@redhat.com>
16272
16273         git-version-gen: skip "-dirty" check when appropriate
16274         * build-aux/git-version-gen: Don't run any git commands when the
16275         version string comes from .tarball-version.  Prior to this, we
16276         would run git update-index --refresh even from a just-unpacked
16277         tarball directory, and that could affect a .git/ directory in a
16278         parent of the build directory.  Reported by Mike Frysinger.
16279
16280 2011-02-19  Bruno Haible  <bruno@clisp.org>
16281
16282         unictype/property-byname: Reduce the size of the 'data' segment.
16283         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16284
16285 2011-02-19  Bruno Haible  <bruno@clisp.org>
16286
16287         unictype/scripts: Reduce the size of the 'data' segment.
16288         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16289         '%pic'.
16290         * lib/unictype/scripts_byname.gperf: Regenerated.
16291
16292 2011-02-19  Bruno Haible  <bruno@clisp.org>
16293
16294         stdint: Update documentation.
16295         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16296
16297 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16298
16299         stdint: omit redundant check for wchar.h
16300         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16301         always tests whether wchar.h exists, so remove the now-redundant test.
16302
16303 2011-02-18  Bruno Haible  <bruno@clisp.org>
16304
16305         stdint: Cut dependency to module 'wchar'.
16306         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16307         include the necessary prerequisites.
16308         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16309         * modules/stdint (Depends-on): Remove wchar.
16310         (Makefile.am): Substitute HAVE_WCHAR_H.
16311         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16312
16313 2011-02-18  Eric Blake  <eblake@redhat.com>
16314
16315         longlong: skip, rather than fail, on cross-compilation
16316         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16317         when cross-compiling; regression from 2011-02-16.
16318
16319 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16320
16321         * NEWS: Mention 2011-02-08 change to stdlib.
16322
16323 2011-02-17  Bruno Haible  <bruno@clisp.org>
16324
16325         getloadavg: Add comments about platforms.
16326         * m4/getloadavg.m4: Add comment.
16327         * lib/getloadavg.c: Likewise.
16328
16329 2011-02-17  Bruno Haible  <bruno@clisp.org>
16330
16331         getloadavg: Fix link error on Solaris 2.6.
16332         * modules/getloadavg (Link): New section.
16333         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16334         linking test-getloadavg.
16335         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16336         getloadavg.
16337
16338 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16339
16340         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16341         It was 'int', but this doesn't match the IRIX 6.5 manual.
16342         Suggested by Bruno Haible in
16343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16344
16345 2011-02-17  Bruno Haible  <bruno@clisp.org>
16346
16347         havelib: Fix comments.
16348         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16349         change.
16350
16351 2011-02-17  Bruno Haible  <bruno@clisp.org>
16352
16353         havelib: Update config.rpath.
16354         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16355
16356 2011-02-17  Bruno Haible  <bruno@clisp.org>
16357
16358         getloadavg test: Add some plausibility checks.
16359         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16360         is improbable.
16361
16362 2011-02-16  Eric Blake  <eblake@redhat.com>
16363
16364         maintainer-makefile: make syntax-check a no-op from tarballs
16365         * top/maint.mk (no-vc-detected): New rule.
16366         (local-checks-available): Use it to avoid hanging if someone tries
16367         'make syntax-check' from a tarball.  Also append to any non-syntax
16368         checks already defined in cfg.mk.
16369
16370 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16371
16372         longlong: tune, particularly for common case of c99
16373
16374         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16375         or running anything if c99, or if unsigned long long int does not
16376         work.  In either case, we know the answer without further tests.
16377         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16378         it at most once, and use its results for both long long int and
16379         unsigned long long int.  This is more likely to be efficient in
16380         the common case where the program wants to check for both long
16381         long int and unsigned long long int.
16382         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16383         since the answer is already known.
16384
16385 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16386
16387         getloadavg: set errno
16388         * lib/getloadavg.c: Set errno when returning -1.  If no other
16389         error number looks appropriate, set it to ENOSYS if the getloadavg
16390         looks like it can't possibly ever work, ENOTSUP otherwise.
16391         Suggested by Bruno Haible in
16392         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16393
16394         getloadavg: trim unused parts and speed up 'configure'
16395         * NEWS: Document this.
16396         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16397         always compiled if getloadavg is absent.
16398         Move test code to ...
16399         * tests/test-getloadavg.c: New file, containing previous
16400         contents of test from lib/getloadavg.c.  It also contains
16401         suggestions by Bruno Haible in
16402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16403         * modules/getloadavg-tests: New file.
16404         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16405         Do tests in the same order as they're needed for getloadavg.c.
16406         Omit setgid-related tests that generate symbols KMEM_GROUP,
16407         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16408         Do only the tests that are needed to see whether the system has
16409         getloadavg, moving the other tests into ...
16410         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16411         NLIST_NAME_UNION; nobody should be using it.  Do not define
16412         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16413         relevant, as the user of this module shouldn't care how getloadavg
16414         is implemented.
16415
16416         getloadavg: omit unused var
16417         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16418
16419 2011-02-15  Jim Meyering  <meyering@redhat.com>
16420
16421         doc: update users.txt
16422         * users.txt: Update iwhd's URL.
16423
16424 2011-02-13  Bruno Haible  <bruno@clisp.org>
16425
16426         Consistent macro naming for macros that use GCC __attribute__.
16427         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16428         _ATTRIBUTE_NONNULL_.
16429         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16430         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16431         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16432         ATTRIBUTE_DEPRECATED.
16433         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16434         ATTRIBUTE_NORETURN.
16435         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16436         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16437         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16438         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16439         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16440         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16441         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16442         ATTRIBUTE_SENTINEL.
16443         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16444         ATTRIBUTE_RETURN_CHECK.
16445         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16446         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16447         ATTRIBUTE_NORETURN.
16448         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16449         Reported by Paul Eggert.
16450
16451 2011-02-13  Bruno Haible  <bruno@clisp.org>
16452
16453         Don't interfere with a program's definition of __attribute__.
16454         * lib/argp.h (__attribute__): Remove definition.
16455         (_GL_ATTRIBUTE_FORMAT): New macro.
16456         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16457         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16458         (_GL_ATTRIBUTE_FORMAT): New macro.
16459         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16460         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16461         GCC 3 or newer.
16462         * lib/error.h (__attribute__): Remove definition.
16463         (_GL_ATTRIBUTE_FORMAT): New macro.
16464         (error, error_at_line): Use it.
16465         * lib/hash.h (__attribute__): Remove definition.
16466         (ATTRIBUTE_WUR): Update definition. Define always.
16467         * lib/openat.h (__attribute__): Remove definition.
16468         (ATTRIBUTE_NORETURN): Update definition. Define always.
16469         * lib/sigpipe-die.h (__attribute__): Remove definition.
16470         (ATTRIBUTE_NORETURN): Update definition. Define always.
16471         * lib/vasnprintf.h (__attribute__): Remove definition.
16472         (_GL_ATTRIBUTE_FORMAT): New macro.
16473         (asnprintf, vasnprintf): Use it.
16474         * lib/xalloc.h (__attribute__): Remove definition.
16475         (ATTRIBUTE_NORETURN): Update definition. Define always.
16476         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16477         * lib/xmemdup0.h (__attribute__): Remove definition.
16478         (ATTRIBUTE_NORETURN): Update definition. Define always.
16479         * lib/xprintf.h (__attribute__): Remove definition.
16480         (_GL_ATTRIBUTE_FORMAT): New macro.
16481         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16482         * lib/xstrtol.h (__attribute__): Remove definition.
16483         (ATTRIBUTE_NORETURN): Update definition. Define always.
16484         * lib/xvasprintf.h (__attribute__): Remove definition.
16485         (_GL_ATTRIBUTE_FORMAT): New macro.
16486         (xasprintf, xvasprintf): Use it.
16487         * tests/test-argmatch.c (__attribute__): Remove definition.
16488         (ATTRIBUTE_NORETURN): Update definition. Define always.
16489         * tests/test-exclude.c (__attribute__): Remove definition.
16490         (ATTRIBUTE_NORETURN): Update definition. Define always.
16491         Reported by Paul Eggert.
16492
16493 2011-02-13  Bruno Haible  <bruno@clisp.org>
16494
16495         mbrtowc: Add more tests for native Windows platforms.
16496         * tests/test-mbrtowc-w32-1.sh: New file.
16497         * tests/test-mbrtowc-w32-2.sh: New file.
16498         * tests/test-mbrtowc-w32-3.sh: New file.
16499         * tests/test-mbrtowc-w32-4.sh: New file.
16500         * tests/test-mbrtowc-w32-5.sh: New file.
16501         * tests/test-mbrtowc-w32.c: New file.
16502         * modules/mbrtowc-tests (Files): Add them.
16503         (Makefile.am): Arrange to run these tests.
16504         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16505         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16506
16507 2011-02-13  Bruno Haible  <bruno@clisp.org>
16508
16509         mbrtowc: Work around native Windows bug.
16510         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16511         guess when no suitable locale for testing was found.
16512         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16513
16514 2011-02-13  Bruno Haible  <bruno@clisp.org>
16515
16516         mbsinit: Work around mingw bug.
16517         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16518         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16519         Windows.
16520         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16521
16522 2011-02-13  Bruno Haible  <bruno@clisp.org>
16523
16524         mbsinit: Don't crash for a NULL argument.
16525         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16526         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16527
16528 2011-02-13  Bruno Haible  <bruno@clisp.org>
16529
16530         Don't interfere with a program's definition of __attribute__.
16531         * lib/stdio.in.h (__attribute__): Remove definition.
16532         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16533         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16534         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16535         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16536         * lib/string.in.h (__attribute__): Remove definition.
16537         Reported by Paul Eggert.
16538
16539 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16540
16541         stdlib: don't get in the way of non-GCC __attribute__
16542         See thread starting at
16543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16544         Revert previous stdlib change, installing the following instead:
16545         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16546         to get in the way of a non-GCC compiler that supports __attribute__.
16547         (_GL_ATTRIBUTE_RETURN): New macro.
16548         (_Exit): Use it instead of __attribute__.
16549
16550 2011-02-12  Bruno Haible  <bruno@clisp.org>
16551
16552         quotearg test: Avoid test failure on mingw.
16553         * tests/test-quotearg.sh: Convert the locale identifier from native
16554         Windows syntax to Unix syntax.
16555
16556 2011-02-12  Bruno Haible  <bruno@clisp.org>
16557
16558         setlocale: Prefer gnulib's override over libintl's override.
16559         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16560         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16561         GNULIB_defined_setlocale is set.
16562
16563 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16564
16565         stdlib: support non-GCC __attribute__
16566
16567         Fix a serious and tricky problem encountered when attempting to
16568         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16569         5.5, but it crashed due to memory corruption on Solaris 10 with
16570         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16571         bits that are otherwise zero.  This tagging is optional inside
16572         Emacs but is preferred and is used when __attribute__ ((__aligned
16573         (8))) works, as it does with both recent-enough GCC and with Sun C
16574         5.11.  However, Sun C 5.11 is not GCC and does not #define
16575         __GNUC__ and __GNUC_MINOR__.
16576
16577         When I added the getloadavg module to Emacs, it brought in
16578         stdlib.in.h, which contained this fragment:
16579
16580            #ifndef __attribute__
16581            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16582            #  define __attribute__(Spec)   /* empty */
16583            # endif
16584            #endif
16585
16586         When files that include <stdlib.h> were compiled with Sun C 5.11,
16587         the above code disabled __attribute__ ((__aligned (8))), which
16588         caused variables to not be properly aligned, which eventually led
16589         to the pointer corruption mentioned above.  (This was a bit hard
16590         to diagnose, unfortunately.)
16591
16592         Several "#define __attribute__(X) /* empty */" code snippets need
16593         to be eradicated from Gnulib to work with non-GCC compilers that
16594         support __attribute__.  The Autoconf way to do this is to test for
16595         each kind of attribute that we want support for, and selectively
16596         enable that in source code.
16597
16598         Fix this problem just for stdlib.h, by adding a test for the
16599         __noreturn__ attribute, and change stdlib.in.h to use that test
16600         when needed.  This technique can be easily generalized to the
16601         other *.in.h files and attributes, and a similar technique can be
16602         used for *.h and *.c files.  This patch is enough to solve the
16603         problem for Emacs + getloadavg, and I thought I'd publish it for
16604         feedback before undertaking further, similar fixes in other
16605         modules.
16606
16607         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16608         because it's not needed for stdlib.h.  It merely substitutes the
16609         value directly into stdlib.h.  We may well need to #define it, or
16610         similar symbols, for other modules, but it's nice to also have an
16611         option to not #define it for applications like Emacs that do not
16612         need it.
16613
16614         * lib/stdlib.in.h (__attribute__): Do not #define.
16615         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16616         be defined only if the _Exit module is also used.
16617         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16619         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16620         platforms.
16621         * modules/_Exit (Files): Add m4/attribute.m4.
16622         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16623         * m4/attribute.m4: New file.
16624
16625 2011-02-12  Bruno Haible  <bruno@clisp.org>
16626
16627         wcsrtombs: Work around bug on native Windows.
16628         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16629         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16630         instead of len.
16631         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16632
16633 2011-02-12  Bruno Haible  <bruno@clisp.org>
16634
16635         mbsrtowcs: Work around bug on native Windows.
16636         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16637         against mingw bug.
16638         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16639
16640 2011-02-12  Bruno Haible  <bruno@clisp.org>
16641
16642         Avoid setlocale bugs in tests.
16643         * modules/btowc (Dependencies): Add setlocale.
16644         * modules/c-strcase (Dependencies): Likewise.
16645         * modules/mbmemcasecmp (Dependencies): Likewise.
16646         * modules/mbmemcasecoll (Dependencies): Likewise.
16647         * modules/mbrtowc (Dependencies): Likewise.
16648         * modules/mbscasecmp (Dependencies): Likewise.
16649         * modules/mbscasestr (Dependencies): Likewise.
16650         * modules/mbschr (Dependencies): Likewise.
16651         * modules/mbscspn (Dependencies): Likewise.
16652         * modules/mbsinit (Dependencies): Likewise.
16653         * modules/mbsncasecmp (Dependencies): Likewise.
16654         * modules/mbsnrtowcs (Dependencies): Likewise.
16655         * modules/mbspbrk (Dependencies): Likewise.
16656         * modules/mbspcasecmp (Dependencies): Likewise.
16657         * modules/mbsrchr (Dependencies): Likewise.
16658         * modules/mbsrtowcs (Dependencies): Likewise.
16659         * modules/mbsspn (Dependencies): Likewise.
16660         * modules/mbsstr (Dependencies): Likewise.
16661         * modules/nl_langinfo (Dependencies): Likewise.
16662         * modules/quotearg (Dependencies): Likewise.
16663         * modules/unicase/locale-language (Dependencies): Likewise.
16664         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16665         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16666         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16667         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16668         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16669         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16670         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16671         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16672         * modules/vasnprintf-posix (Dependencies): Likewise.
16673         * modules/wcrtomb (Dependencies): Likewise.
16674         * modules/wcsnrtombs (Dependencies): Likewise.
16675         * modules/wcsrtombs (Dependencies): Likewise.
16676
16677 2011-02-12  Bruno Haible  <bruno@clisp.org>
16678
16679         setlocale: Workaround native Windows bug.
16680         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16681         succeeds but sets LC_CTYPE to "C", report a failure.
16682         * tests/test-setlocale2.sh: New file.
16683         * tests/test-setlocale2.c: New file.
16684         * modules/setlocale-tests (Files): Add the new files.
16685         (Makefile.am): Enable test-setlocale2.sh test.
16686         * doc/posix-functions/setlocale.texi: Mention workaround.
16687
16688 2011-02-11  Bruno Haible  <bruno@clisp.org>
16689
16690         Tests for module 'setlocale'.
16691         * modules/setlocale-tests: New file.
16692         * tests/test-setlocale1.sh: New file.
16693         * tests/test-setlocale1.c: New file.
16694
16695         New module 'setlocale'.
16696         * lib/locale.in.h (setlocale): New declaration.
16697         * lib/setlocale.c: New file, based on
16698         gettext/gettext-runtime/intl/setlocale.c.
16699         * m4/setlocale.m4: New file.
16700         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16701         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16702         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16703         REPLACE_SETLOCALE.
16704         * modules/setlocale: New file.
16705         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16706         * doc/posix-functions/setlocale.texi: Mention the new module.
16707
16708 2011-02-11  Bruno Haible  <bruno@clisp.org>
16709
16710         Prepare for locale dependent tests on mingw.
16711         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16712         because it has the wrong locale encoding.
16713         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16714         French_France.1252 instead of "fr".
16715         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16716         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16717         because it has the wrong locale encoding.
16718         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16719         native Windows, try Turkish_Turkey.65001.
16720         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16721         Chinese_China.54936.
16722
16723         Prepare for locale dependent tests on mingw.
16724         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16725         differently.
16726         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16727         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16728         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16729         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16730
16731 2011-02-11  Eric Blake  <eblake@redhat.com>
16732
16733         strptime: avoid compiler warnings
16734         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16735         compiler warnings about dead code.
16736         Reported by Daniel P. Berrange.
16737
16738 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16739
16740         doc: update users.txt
16741         * users.txt: Add rcs.
16742
16743 2011-02-10  John W. Eaton  <jwe@gnu.org>
16744
16745         doc: update users.txt
16746         * users.txt: Add octave.
16747
16748 2011-02-10  Jim Meyering  <meyering@redhat.com>
16749
16750         doc: update users.txt
16751         * users.txt: Add iwhd.
16752
16753 2011-02-09  Bruno Haible  <bruno@clisp.org>
16754
16755         gnulib-tool: Make copyright notice adjustment more robust.
16756         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16757         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16758         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16759         License".
16760         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16761
16762 2011-02-06  Bruno Haible  <bruno@clisp.org>
16763
16764         New module 'towctrans'.
16765         * modules/towctrans: New file.
16766         * lib/wctype.in.h (towctrans): New declaration.
16767         * lib/towctrans.c: New file.
16768         * lib/towctrans-impl.h: New file.
16769         * m4/towctrans.m4: New file.
16770         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16771         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16772         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16773         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16774         * doc/posix-functions/towctrans.texi: Mention the new module.
16775
16776 2011-02-06  Bruno Haible  <bruno@clisp.org>
16777
16778         New module 'wctrans'.
16779         * modules/wctrans: New file.
16780         * lib/wctype.in.h (wctrans): New declaration.
16781         * lib/wctrans.c: New file.
16782         * lib/wctrans-impl.h: New file.
16783         * m4/wctrans.m4: New file.
16784         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16785         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16786         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16787         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16788         * doc/posix-functions/wctrans.texi: Mention the new module.
16789
16790 2011-02-06  Bruno Haible  <bruno@clisp.org>
16791
16792         New module 'iswctype'.
16793         * modules/iswctype: New file.
16794         * lib/wctype.in.h (iswctype): New declaration.
16795         * lib/iswctype.c: New file.
16796         * lib/iswctype-impl.h: New file.
16797         * m4/iswctype.m4: New file.
16798         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16799         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16800         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16801         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16802         * doc/posix-functions/iswctype.texi: Mention the new module and the
16803         HP-UX 11.00 problem.
16804
16805 2011-02-06  Bruno Haible  <bruno@clisp.org>
16806
16807         New module 'wctype'.
16808         * modules/wctype: Change to represent the wctype() substitute.
16809         * lib/wctype.in.h (wctype): New declaration.
16810         * lib/wctype.c: New file.
16811         * lib/wctype-impl.h: New file.
16812         * m4/wctype.m4: New file.
16813         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16814         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16815         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16816         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16817         * doc/posix-functions/wctype.texi: Mention the new module and the
16818         HP-UX 11.00 problem.
16819
16820 2011-02-06  Bruno Haible  <bruno@clisp.org>
16821
16822         wctype-h: Ensure wctype_t and wctrans_t are defined.
16823         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16824         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16825         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16826         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16827         HAVE_WCTRANS_T.
16828         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16829
16830 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16831
16832         flock: fix license typo
16833
16834         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16835         omitted.
16836
16837 2011-02-08  Bruno Haible  <bruno@clisp.org>
16838
16839         Split large sed scripts, for HP-UX sed.
16840         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16841         to avoid HP-UX limit of 99 commands, in the near future.
16842         * modules/stdlib (Makefile.am): Likewise.
16843         * modules/unistd (Makefile.am): Likewise.
16844         * modules/wchar (Makefile.am): Likewise.
16845         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16846         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16847         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16848
16849 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16850             Bruno Haible  <bruno@clisp.org>
16851
16852         stdlib: improve random_r modularization
16853         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16854         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16855         you also need the random_r module to get this material right.
16856         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16857         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16858         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16859
16860 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16861
16862         stdlib: don't depend on stdint
16863         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16864         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16865         be independent of whether stdint.h is needed.
16866         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16867         here, instead of ...
16868         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16869         struct random_data should be using the random_r module, not just
16870         the stdlib module (which wouldn't make sense: what package needs
16871         just struct random_data without also needing random_r?).
16872         * modules/stdlib (Depends-on): Remove stdint.
16873
16874         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16875         See the thread rooted at
16876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16877         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16878         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16879         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16880         __VMS)); previously it was always included (via fcntl--.h).
16881         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16882         hand; this is good enough for load averages.  Also, do not use
16883         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16884         flags directly if available and don't bother otherwise.  (Packages
16885         that need the extra reliability should use the modules that define
16886         these flags on older platforms that lack them.)
16887         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16888         fcntl-safer.
16889
16890 2011-02-08  Jim Meyering  <meyering@redhat.com>
16891
16892         di-set.h, ino-map.h: add multiple-inclusion guard
16893         Technically, the guard is required only for ino-map.h, due to its
16894         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16895         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16896         * lib/ino-map.h: Likewise.
16897
16898 2011-02-06  Bruno Haible  <bruno@clisp.org>
16899
16900         iswblank: Ensure declaration on glibc systems.
16901         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16902         * modules/iswblank (Dependencies): Add 'extensions'.
16903         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16904
16905 2011-02-06  Bruno Haible  <bruno@clisp.org>
16906
16907         New module 'iswblank'.
16908         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16909         * modules/iswblank: New file.
16910         * modules/wctype-h (Files): Remove lib/iswblank.c.
16911         (Makefile.am): Substitute GNULIB_ISWBLANK.
16912         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16913         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16914         (gl_WCTYPE_H_DEFAULTS): New macro.
16915         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16916         * modules/iswblank-tests: New file.
16917         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16918         * tests/test-wctype-h.c (main): Remove iswblank tests.
16919         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16920         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16921         of 'wctype-h'.
16922         * NEWS: Mention the change.
16923         * modules/mbchar (Depends-on): Add iswblank.
16924
16925 2011-02-08  Bruno Haible  <bruno@clisp.org>
16926
16927         di-set tests: Refactor.
16928         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16929         unnecessary includes.
16930         (ASSERT): Remove macro.
16931         (main): Make C90 compliant by avoiding variable declaration after
16932         statement.
16933         * modules/di-set-tests (Files): Add tests/macros.h.
16934
16935 2011-02-08  Bruno Haible  <bruno@clisp.org>
16936
16937         ino-map tests: Refactor.
16938         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16939         unnecessary includes.
16940         (ASSERT): Remove macro.
16941         (main): Make C90 compliant by avoiding variable declaration after
16942         statement.
16943         * modules/ino-map-tests (Files): Add tests/macros.h.
16944
16945 2011-02-08  Jim Meyering  <meyering@redhat.com>
16946
16947         di-set: add "const" to a cast
16948         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16949         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16950
16951 2011-02-06  Bruno Haible  <bruno@clisp.org>
16952
16953         Rename module 'wctype' to 'wctype-h'.
16954         * modules/wctype-h: Renamed from modules/wctype.
16955         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16956         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16957         (Files, Depends-on, Makefile.am): Update.
16958         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16959         (Files, Makefile.am): Update.
16960         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16961         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16962         * doc/posix-headers/wctype.texi: Update.
16963         * doc/posix-functions/iswalnum.texi: Update.
16964         * doc/posix-functions/iswalpha.texi: Update.
16965         * doc/posix-functions/iswblank.texi: Update.
16966         * doc/posix-functions/iswcntrl.texi: Update.
16967         * doc/posix-functions/iswdigit.texi: Update.
16968         * doc/posix-functions/iswgraph.texi: Update.
16969         * doc/posix-functions/iswlower.texi: Update.
16970         * doc/posix-functions/iswprint.texi: Update.
16971         * doc/posix-functions/iswpunct.texi: Update.
16972         * doc/posix-functions/iswspace.texi: Update.
16973         * doc/posix-functions/iswupper.texi: Update.
16974         * doc/posix-functions/iswxdigit.texi: Update.
16975         * doc/posix-functions/towlower.texi: Update.
16976         * doc/posix-functions/towupper.texi: Update.
16977         * NEWS: Mention the change.
16978         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16979         * modules/mbchar (Dependencies): Likewise.
16980         * modules/mbswidth (Dependencies): Likewise.
16981         * modules/quotearg (Dependencies): Likewise.
16982         * modules/regex (Dependencies): Likewise.
16983         * modules/wcscasecmp (Dependencies): Likewise.
16984         * modules/wcsncasecmp (Dependencies): Likewise.
16985         * modules/wcwidth (Dependencies): Likewise.
16986
16987 2011-02-06  Bruno Haible  <bruno@clisp.org>
16988
16989         New module 'wcswidth'.
16990         * modules/wcswidth: New file.
16991         * lib/wchar.in.h (wcswidth): New declaration.
16992         * lib/wcswidth.c: New file.
16993         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16994         * m4/wcswidth.m4: New file.
16995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16997         REPLACE_WCSWIDTH.
16998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16999         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
17000         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
17001         * doc/posix-functions/wcswidth.texi: Mention the new module.
17002
17003 2011-02-06  Bruno Haible  <bruno@clisp.org>
17004
17005         New module 'wcstok'.
17006         * modules/wcstok: New file.
17007         * lib/wchar.in.h (wcstok): New declaration.
17008         * lib/wcstok.c: New file.
17009         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
17010         * m4/wcstok.m4: New file.
17011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
17012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
17013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
17014         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
17015         * doc/posix-functions/wcstok.texi: Mention the new module.
17016
17017 2011-02-06  Bruno Haible  <bruno@clisp.org>
17018
17019         New module 'wcsstr'.
17020         * modules/wcsstr: New file.
17021         * lib/wchar.in.h (wcsstr): New declaration.
17022         * lib/wcsstr.c: New file.
17023         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
17024         * m4/wcsstr.m4: New file.
17025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
17026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
17027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
17028         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
17029         * doc/posix-functions/wcsstr.texi: Mention the new module.
17030
17031 2011-02-06  Bruno Haible  <bruno@clisp.org>
17032
17033         New module 'wcspbrk'.
17034         * modules/wcspbrk: New file.
17035         * lib/wchar.in.h (wcspbrk): New declaration.
17036         * lib/wcspbrk.c: New file.
17037         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
17038         * m4/wcspbrk.m4: New file.
17039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
17040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
17041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
17042         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
17043         * doc/posix-functions/wcspbrk.texi: Mention the new module.
17044
17045 2011-02-06  Bruno Haible  <bruno@clisp.org>
17046
17047         New module 'wcsspn'.
17048         * modules/wcsspn: New file.
17049         * lib/wchar.in.h (wcsspn): New declaration.
17050         * lib/wcsspn.c: New file.
17051         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
17052         * m4/wcsspn.m4: New file.
17053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
17054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
17055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
17056         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
17057         * doc/posix-functions/wcsspn.texi: Mention the new module.
17058
17059 2011-02-06  Bruno Haible  <bruno@clisp.org>
17060
17061         New module 'wcscspn'.
17062         * modules/wcscspn: New file.
17063         * lib/wchar.in.h (wcscspn): New declaration.
17064         * lib/wcscspn.c: New file.
17065         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
17066         * m4/wcscspn.m4: New file.
17067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
17068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
17069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
17070         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
17071         * doc/posix-functions/wcscspn.texi: Mention the new module.
17072
17073 2011-02-06  Bruno Haible  <bruno@clisp.org>
17074
17075         New module 'wcsrchr'.
17076         * modules/wcsrchr: New file.
17077         * lib/wchar.in.h (wcsrchr): New declaration.
17078         * lib/wcsrchr.c: New file.
17079         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
17080         * m4/wcsrchr.m4: New file.
17081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
17082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
17083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
17084         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
17085         * doc/posix-functions/wcsrchr.texi: Mention the new module.
17086
17087 2011-02-06  Bruno Haible  <bruno@clisp.org>
17088
17089         New module 'wcschr'.
17090         * modules/wcschr: New file.
17091         * lib/wchar.in.h (wcschr): New declaration.
17092         * lib/wcschr.c: New file.
17093         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
17094         * m4/wcschr.m4: New file.
17095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
17096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
17097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
17098         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
17099         * doc/posix-functions/wcschr.texi: Mention the new module.
17100
17101 2011-02-06  Bruno Haible  <bruno@clisp.org>
17102
17103         New module 'wcsdup'.
17104         * modules/wcsdup: New file.
17105         * lib/wchar.in.h (wcsdup): New declaration.
17106         * lib/wcsdup.c: New file.
17107         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
17108         * m4/wcsdup.m4: New file.
17109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
17110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
17111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
17112         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
17113         * doc/posix-functions/wcsdup.texi: Mention the new module.
17114
17115 2011-02-06  Bruno Haible  <bruno@clisp.org>
17116
17117         New module 'wcsxfrm'.
17118         * modules/wcsxfrm: New file.
17119         * lib/wchar.in.h (wcsxfrm): New declaration.
17120         * lib/wcsxfrm.c: New file.
17121         * lib/wcsxfrm-impl.h: New file.
17122         * m4/wcsxfrm.m4: New file.
17123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
17124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
17125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
17126         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
17127         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
17128
17129 2011-02-06  Bruno Haible  <bruno@clisp.org>
17130
17131         New module 'wcscoll'.
17132         * modules/wcscoll: New file.
17133         * lib/wchar.in.h (wcscoll): New declaration.
17134         * lib/wcscoll.c: New file.
17135         * lib/wcscoll-impl.h: New file.
17136         * m4/wcscoll.m4: New file.
17137         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
17138         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
17139         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
17140         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
17141         * doc/posix-functions/wcscoll.texi: Mention the new module.
17142
17143 2011-02-06  Bruno Haible  <bruno@clisp.org>
17144
17145         New module 'wcsncasecmp'.
17146         * modules/wcsncasecmp: New file.
17147         * lib/wchar.in.h (wcsncasecmp): New declaration.
17148         * lib/wcsncasecmp.c: New file.
17149         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
17150         * m4/wcsncasecmp.m4: New file.
17151         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
17152         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
17153         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
17154         HAVE_WCSNCASECMP.
17155         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
17156         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
17157
17158 2011-02-06  Bruno Haible  <bruno@clisp.org>
17159
17160         New module 'wcscasecmp'.
17161         * modules/wcscasecmp: New file.
17162         * lib/wchar.in.h (wcscasecmp): New declaration.
17163         * lib/wcscasecmp.c: New file.
17164         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17165         * m4/wcscasecmp.m4: New file.
17166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17168         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17169         HAVE_WCSCASECMP.
17170         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17171         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17172
17173 2011-02-05  Bruno Haible  <bruno@clisp.org>
17174
17175         New module 'wcsncmp'.
17176         * modules/wcsncmp: New file.
17177         * lib/wchar.in.h (wcsncmp): New declaration.
17178         * lib/wcsncmp.c: New file.
17179         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17180         * m4/wcsncmp.m4: New file.
17181         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17182         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17183         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17184         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17185         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17186
17187 2011-02-05  Bruno Haible  <bruno@clisp.org>
17188
17189         New module 'wcscmp'.
17190         * modules/wcscmp: New file.
17191         * lib/wchar.in.h (wcscmp): New declaration.
17192         * lib/wcscmp.c: New file.
17193         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17194         * m4/wcscmp.m4: New file.
17195         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17196         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17197         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17198         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17199         * doc/posix-functions/wcscmp.texi: Mention the new module.
17200
17201 2011-02-05  Bruno Haible  <bruno@clisp.org>
17202
17203         New module 'wcsncat'.
17204         * modules/wcsncat: New file.
17205         * lib/wchar.in.h (wcsncat): New declaration.
17206         * lib/wcsncat.c: New file.
17207         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17208         * m4/wcsncat.m4: New file.
17209         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17210         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17211         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17212         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17213         * doc/posix-functions/wcsncat.texi: Mention the new module.
17214
17215 2011-02-05  Bruno Haible  <bruno@clisp.org>
17216
17217         New module 'wcscat'.
17218         * modules/wcscat: New file.
17219         * lib/wchar.in.h (wcscat): New declaration.
17220         * lib/wcscat.c: New file.
17221         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17222         * m4/wcscat.m4: New file.
17223         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17224         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17225         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17226         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17227         * doc/posix-functions/wcscat.texi: Mention the new module.
17228
17229 2011-02-05  Bruno Haible  <bruno@clisp.org>
17230
17231         New module 'wcpncpy'.
17232         * modules/wcpncpy: New file.
17233         * lib/wchar.in.h (wcpncpy): New declaration.
17234         * lib/wcpncpy.c: New file.
17235         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17236         * m4/wcpncpy.m4: New file.
17237         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17238         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17239         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17240         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17241         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17242
17243 2011-02-05  Bruno Haible  <bruno@clisp.org>
17244
17245         New module 'wcsncpy'.
17246         * modules/wcsncpy: New file.
17247         * lib/wchar.in.h (wcsncpy): New declaration.
17248         * lib/wcsncpy.c: New file.
17249         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17250         * m4/wcsncpy.m4: New file.
17251         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17252         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17254         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17255         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17256
17257 2011-02-05  Bruno Haible  <bruno@clisp.org>
17258
17259         New module 'wcpcpy'.
17260         * modules/wcpcpy: New file.
17261         * lib/wchar.in.h (wcpcpy): New declaration.
17262         * lib/wcpcpy.c: New file.
17263         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17264         * m4/wcpcpy.m4: New file.
17265         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17266         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17267         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17268         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17269         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17270
17271 2011-02-05  Bruno Haible  <bruno@clisp.org>
17272
17273         New module 'wcscpy'.
17274         * modules/wcscpy: New file.
17275         * lib/wchar.in.h (wcscpy): New declaration.
17276         * lib/wcscpy.c: New file.
17277         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17278         * m4/wcscpy.m4: New file.
17279         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17280         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17281         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17282         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17283         * doc/posix-functions/wcscpy.texi: Mention the new module.
17284
17285 2011-02-05  Bruno Haible  <bruno@clisp.org>
17286
17287         New module 'wcsnlen'.
17288         * modules/wcsnlen: New file.
17289         * lib/wchar.in.h (wcsnlen): New declaration.
17290         * lib/wcsnlen.c: New file.
17291         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17292         * m4/wcsnlen.m4: New file.
17293         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17294         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17295         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17296         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17297         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17298
17299 2011-02-05  Bruno Haible  <bruno@clisp.org>
17300
17301         New module 'wcslen'.
17302         * modules/wcslen: New file.
17303         * lib/wchar.in.h (wcslen): New declaration.
17304         * lib/wcslen.c: New file.
17305         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17306         * m4/wcslen.m4: New file.
17307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17309         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17310         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17311         * doc/posix-functions/wcslen.texi: Mention the new module.
17312
17313 2011-02-05  Bruno Haible  <bruno@clisp.org>
17314
17315         New module 'wmemset'.
17316         * modules/wmemset: New file.
17317         * lib/wchar.in.h (wmemset): New declaration.
17318         * lib/wmemset.c: New file.
17319         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17320         * m4/wmemset.m4: New file.
17321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17323         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17324         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17325         * doc/posix-functions/wmemset.texi: Mention the new module.
17326
17327 2011-02-05  Bruno Haible  <bruno@clisp.org>
17328
17329         New module 'wmemmove'.
17330         * modules/wmemmove: New file.
17331         * lib/wchar.in.h (wmemmove): New declaration.
17332         * lib/wmemmove.c: New file.
17333         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17334         * m4/wmemmove.m4: New file.
17335         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17336         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17337         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17338         HAVE_WMEMMOVE.
17339         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17340         * doc/posix-functions/wmemmove.texi: Mention the new module.
17341
17342 2011-02-05  Bruno Haible  <bruno@clisp.org>
17343
17344         New module 'wmemcpy'.
17345         * modules/wmemcpy: New file.
17346         * lib/wchar.in.h (wmemcpy): New declaration.
17347         * lib/wmemcpy.c: New file.
17348         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17349         * m4/wmemcpy.m4: New file.
17350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17352         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17353         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17354         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17355
17356 2011-02-05  Bruno Haible  <bruno@clisp.org>
17357
17358         New module 'wmemcmp'.
17359         * modules/wmemcmp: New file.
17360         * lib/wchar.in.h (wmemcmp): New declaration.
17361         * lib/wmemcmp.c: New file.
17362         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17363         * m4/wmemcmp.m4: New file.
17364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17366         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17367         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17368         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17369
17370 2011-02-07  Jim Meyering  <meyering@redhat.com>
17371
17372         di-set, ino-map: new modules, from coreutils
17373         * lib/di-set.c: New file.
17374         * lib/di-set.h: Likewise.
17375         * lib/ino-map.c: Likewise.
17376         * lib/ino-map.h: Likewise.
17377         * modules/di-set: Likewise.
17378         * modules/di-set-tests: Likewise.
17379         * modules/ino-map: Likewise.
17380         * modules/ino-map-tests: Likewise.
17381         * tests/test-di-set.c: Likewise.
17382         * tests/test-ino-map.c: Likewise.
17383
17384 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17385
17386         getloadavg: merge minor changes from Emacs
17387
17388         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17389         (getloadavg): Use memset, not bzero.
17390
17391         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17392         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17393         clash (bug#86).
17394
17395 2010-11-14  Bruno Haible  <bruno@clisp.org>
17396
17397         Allow multiple gnulib generated replacements to coexist.
17398         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17399         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17400         * lib/langinfo.in.h (nl_item): Likewise.
17401         * lib/math.in.h (_NaN, NAN): Likewise.
17402         * lib/netdb.in.h (struct addrinfo): Likewise.
17403         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17404         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17405         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17406         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17407         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17408         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17409         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17410         pthread_mutexattr_init, pthread_mutexattr_settype,
17411         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17412         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17413         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17414         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17415         * lib/sched.in.h (struct sched_param): Likewise.
17416         * lib/se-selinux.in.h (security_class_t, security_context_t,
17417         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17418         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17419         lsetfilecon, fsetfilecon, security_check_context,
17420         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17421         Likewise.
17422         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17423         Likewise.
17424         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17425         _gl_function_taking_int_returning_void_t, union sigval,
17426         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17427         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17428         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17429         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17430         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17431         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17432         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17433         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17434         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17435         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17436         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17437         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17438         socklen_t, rpl_fd_isset): Likewise.
17439         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17440         * lib/sys_time.in.h (struct timeval): Likewise.
17441         * lib/sys_times.in.h (struct tms): Likewise.
17442         * lib/sys_utsname.in.h (struct utsname):
17443         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17444         * lib/unistd.in.h (getpagesize): Likewise.
17445         * lib/wchar.in.h (mbstate_t): Likewise.
17446         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17447         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17448         towlower, towupper): Likewise.
17449         Reported by Sam Steingold <sds@gnu.org>.
17450
17451 2011-02-05  Eric Blake  <eblake@redhat.com>
17452
17453         unsetenv: work around Haiku issues
17454         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17455         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17456
17457 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17458
17459         libposix: avoid calling error() within libposix
17460         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17461         is defined.
17462
17463 2011-02-05  Eric Blake  <eblake@redhat.com>
17464
17465         strerror_r-posix: port to cygwin
17466         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17467         implementation.
17468         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17469         * tests/test-strerror_r.c (main): Fix test.
17470         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17471         issue.
17472
17473 2011-02-05  Bruno Haible  <bruno@clisp.org>
17474
17475         New module 'wmemchr'.
17476         * modules/wmemchr: New file.
17477         * lib/wchar.in.h (wmemchr): New declaration.
17478         * lib/wmemchr.c: New file.
17479         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17480         * m4/wmemchr.m4: New file.
17481         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17482         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17483         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17484         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17485         * doc/posix-functions/wmemchr.texi: Mention the new module.
17486
17487 2011-02-04  Eric Blake  <eblake@redhat.com>
17488
17489         fdopendir: detect FreeBSD bug
17490         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17491         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17492
17493 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17494
17495         stdbool: do not define HAVE_STDBOOL_H
17496         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17497         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17498         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17499         imported from the latest Autoconf git.  It was motivated by Emacs,
17500         which uses gnulib but does not need HAVE_STDBOOL_H.
17501
17502 2011-02-04  Bruno Haible  <bruno@clisp.org>
17503
17504         wcsnrtombs: Prepare for new module wwcsnrtombs.
17505         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17506         * lib/wcsnrtombs.c: Include it.
17507         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17508
17509         wcsrtombs: Prepare for new module wwcsrtombs.
17510         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17511         * lib/wcsrtombs.c: Include it.
17512         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17513
17514         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17515         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17516         * lib/mbsnrtowcs.c: Include it.
17517         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17518
17519         mbsrtowcs: Prepare for new module mbsrtowwcs.
17520         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17521         * lib/mbsrtowcs.c: Include it.
17522         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17523
17524 2011-02-04  Bruno Haible  <bruno@clisp.org>
17525
17526         vasnprintf: Reduce use of malloc for small format strings.
17527         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17528         (arguments): Add room for the first 7 arguments.
17529         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17530         (char_directives, u8_directives, u16_directives, u32_directives): Add
17531         room for the first 7 directives.
17532         * lib/printf-parse.c: Include <string.h>.
17533         (PRINTF_PARSE): Change memory handling code so that it uses the first
17534         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17535         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17536         Reported by Pádraig Brady <P@draigbrady.com>.
17537
17538 2011-01-31  Eric Blake  <eblake@redhat.com>
17539
17540         dup2: work around Haiku bug
17541         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17542         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17543         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17544         * tests/test-dup2.c (main): Enhance test.
17545
17546 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17547
17548         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17549         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17550         declared by eglibc 2.11.2.
17551         * lib/stdio.in.h: Likewise.
17552
17553 2011-01-31  Eric Blake  <eblake@redhat.com>
17554
17555         ignore-value: add missing test dependency
17556         * tests/test-ignore-value.c: Revert previous change; stdio.h
17557         provides off_t.
17558         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17559
17560 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17561
17562         mktime: clarify long_int width checking
17563         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17564         the top level, to make it clearer that the assumption about
17565         long_int width is being checked.  See
17566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17567
17568 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17569
17570         ignore-value: Fix self-test.
17571         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17572
17573 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17574
17575         TYPE_MAXIMUM: avoid theoretically undefined behavior
17576         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17577         negative number, which the C Standard says has undefined behavior.
17578         In practice this is not a problem, but might as well do it by the book.
17579         Reported by Rich Felker and Eric Blake; see
17580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17581         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17582         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17584         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17585         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17586         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17587
17588         mktime: #undef mktime before #defining it
17589         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17590
17591         mktime: systematically normalize tm_isdst comparisons
17592         * lib/mktime.c (isdst_differ): New function.
17593         (__mktime_internal): Use it systematically for all isdst comparisons.
17594         This completes the fix for libc BZ #6723, and removes the need for
17595         normalizing tm_isdst.  See
17596         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17597         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17598
17599         mktime: fix some integer overflow issues and sidestep the rest
17600
17601         This was prompted by a bug report by Benjamin Lindner for MinGW
17602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17603         His bug is due to signed integer overflow (0 - INT_MIN), and I
17604         I scanned through mktime.c looking for other integer overflow
17605         problems, fixing all the bugs I found.
17606
17607         Although the C Standard says the resulting code is still not safe
17608         in the presence of integer overflow, in practice it should be good
17609         enough for all real-world two's-complement implementations, except
17610         for debugging environments that deliberately trap on integer
17611         overflow (e.g., gcc -ftrapv).
17612
17613         * lib/mktime.c (WRAPV): New macro.
17614         (SHR): Also check that long_int and time_t shift right in the
17615         usual way, before using the fast-but-unportable method.
17616         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17617         used.  The code already assumed two's complement, so there's
17618         no need to test for alternatives.  All uses removed.
17619         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17620         the C standard.  Problem reported by Rich Felker in
17621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17622         (twos_complement_arithmetic): Also check long_int and time_t.
17623         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17624         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17625         (__mktime_internal): Avoid integer overflow with unary subtraction
17626         in two instances where -1 - X is an adequate replacement for -X,
17627         since the calculations are approximate.
17628
17629 2011-01-29  Eric Blake  <eblake@redhat.com>
17630
17631         mktime: avoid infinite loop
17632         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17633         type; behavior is still undefined but portable to all known targets.
17634         Reported by Rich Felker.
17635
17636 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17637
17638         rename, unlink, same-inode: Relicense.
17639         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17640         * modules/unlink (License): Likewise.
17641         * modules/same-inode (License): Likewise.
17642
17643 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17644
17645         mktime: avoid problems on NetBSD 5 / i386
17646         * lib/mktime.c (long_int): New type.  This works around a problem
17647         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17648         but time_t is 64 bits, and where I expect the existing code is
17649         wrong in some cases.
17650         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17651         (ydhms_diff): Bring back the compile-time check for wide-enough
17652         year and yday.
17653
17654         mktime: fix misspelling in comment
17655         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17656         This merges all recent glibc changes of importance.
17657
17658 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17659
17660         move-if-change: cope with concurrent mv of identical file.
17661         * build-aux/move-if-change (CMPPROG): Accept environment
17662         variable as an override for `cmp'.
17663         (usage): Document CMPPROG.
17664         Adjust comparison to drop stdout.  Cope with failure of mv if
17665         the target file exists and is identical to the source, for
17666         parallel builds.
17667         Report from H.J. Lu against binutils in PR binutils/12283.
17668
17669 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17670
17671         * users.txt: Mention sharutils.
17672
17673 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17674
17675         * users.txt: Mention OATH Toolkit.
17676
17677 2011-01-27  Bruno Haible  <bruno@clisp.org>
17678
17679         Prepare for supporting FreeBSD 10.
17680         * build-aux/config.libpath: Remove handling of freebsd1*.
17681
17682 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17683
17684         Prepare for supporting FreeBSD 10.
17685         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17686         match FreeBSD 10.0.
17687
17688 2011-01-27  Bruno Haible  <bruno@clisp.org>
17689
17690         vma-iter, get-rusage-as: Add OpenBSD support.
17691         * modules/vma-iter (configure.ac): Test for mquery.
17692         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17693         * lib/vma-iter.c: Include <sys/mman.h>.
17694         (vma_iterate): Add an implementation based on mquery().
17695         * lib/resource-ext.h (get_rusage_as): Update comments.
17696         * lib/get-rusage-as.c: Likewise.
17697         * lib/get-rusage-data.c: Likewise.
17698
17699 2011-01-26  Karl Berry  <karl@gnu.org>
17700
17701         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17702         variables to make it easier to override the makeinfo program used.
17703
17704 2011-01-26  Eric Blake  <eblake@redhat.com>
17705
17706         fcntl: work around Haiku F_DUPFD bugs
17707         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17708         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17709         cloexec bit on duplication.
17710         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17711
17712 2011-01-26  Bruno Haible  <bruno@clisp.org>
17713
17714         Enable memory leak tests on AIX.
17715         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17716         * tests/test-fprintf-posix3.c (main): Likewise.
17717
17718 2011-01-26  Bruno Haible  <bruno@clisp.org>
17719
17720         Tests for module 'get-rusage-data'.
17721         * modules/get-rusage-data-tests: New file.
17722         * tests/test-get-rusage-data.c: New file.
17723
17724         New module 'get-rusage-data'.
17725         * lib/resource-ext.h (get_rusage_data): New declaration.
17726         * lib/get-rusage-data.c: New file.
17727         * modules/get-rusage-data: New file.
17728
17729 2011-01-25  Bruno Haible  <bruno@clisp.org>
17730
17731         get-rusage-as: Allow for easier testing.
17732         * lib/resource-ext.h (get_rusage_as): Add comment.
17733         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17734         (main): New function for interactive testing.
17735
17736 2011-01-25  Bruno Haible  <bruno@clisp.org>
17737
17738         vma-iter: Treat Haiku like BeOS.
17739         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17740         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17741
17742 2011-01-25  Eric Blake  <eblake@redhat.com>
17743
17744         c-stack: fix regression on cygwin when libsigsegv is present
17745         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17746
17747 2011-01-24  Bruno Haible  <bruno@clisp.org>
17748
17749         vma-iter: Avoid empty intervals.
17750         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17751         on an empty interval.
17752
17753 2011-01-24  Jim Meyering  <meyering@redhat.com>
17754
17755         u64: remove unnecessary #include
17756         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17757
17758 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17759
17760         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17761         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17762
17763 2011-01-23  Bruno Haible  <bruno@clisp.org>
17764
17765         New module 'vma-iter'.
17766         * lib/vma-iter.h: New file.
17767         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17768         * modules/vma-iter: New file.
17769         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17770         for get_rusage_as_via_iterator.
17771         (vma_iterate_callback): New function.
17772         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17773         * modules/get-rusage-as (Depends-on): Add vma-iter.
17774
17775 2011-01-23  Bruno Haible  <bruno@clisp.org>
17776
17777         uninorm: Tweak includes.
17778         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17779         Reported by Jim Meyering.
17780
17781 2011-01-23  Bruno Haible  <bruno@clisp.org>
17782
17783         get-rusage-as: Improve on NetBSD.
17784         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17785         /proc, like on FreeBSD.
17786
17787 2011-01-23  Jim Meyering  <meyering@redhat.com>
17788
17789         xreadlink.h: remove unnecessary #include
17790         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17791
17792         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17793         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17794
17795 2011-01-23  Bruno Haible  <bruno@clisp.org>
17796
17797         get-rusage-as: Fix bug.
17798         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17799         original limit when aborting the first loop.
17800
17801 2011-01-23  Bruno Haible  <bruno@clisp.org>
17802
17803         wctype: Ensure valid C syntax.
17804         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17805         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17806
17807 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17808
17809         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17811         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17812         as they are needed only for configure's test case.
17813         This removes two unnecessary symbols from config.h.
17814
17815         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17816         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17818         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17819         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17820         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17821         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17822         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17823         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17824         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17825         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17826         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17827         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17828         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17829         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17830         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17831         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17832         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17833
17834 2011-01-21  Eric Blake  <eblake@redhat.com>
17835
17836         maintainer-makefile: work with older git for submodule check
17837         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17838         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17839         Reported by Matthias Bolte.
17840
17841         bootstrap: minor portability fixes
17842         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17843         (usage): Omit leading capital and trailing . on help phrases, per
17844         GNU Coding Standards.
17845         (check_versions, top level): Prefix messages with script name.
17846
17847 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17848
17849         bootstrap: support --no-git option
17850         * build-aux/bootstrap: Add --no-git option, to be used when
17851         --gnulib-srcdir points to the exact desired checkout.
17852
17853 2011-01-21  Eric Blake  <eblake@redhat.com>
17854
17855         strerror_r-posix: work with glibc 2.13
17856         * lib/strerror_r.c (strerror_r): Fix return type.
17857
17858 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17859             Bruno Haible  <bruno@clisp.org>
17860
17861         uN_strstr: New unit tests.
17862         * modules/unistr/u8-strstr-tests: New file.
17863         * modules/unistr/u16-strstr-tests: New file.
17864         * modules/unistr/u32-strstr-tests: New file.
17865         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17866         * tests/unistr/test-u8-strstr.c: New file.
17867         * tests/unistr/test-u16-strstr.c: New file.
17868         * tests/unistr/test-u32-strstr.c: New file.
17869
17870 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17871             Bruno Haible  <bruno@clisp.org>
17872
17873         Make uN_strstr functions O(n) worst-case.
17874         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17875         16-bit and 32-bit unit cases, use the unibyte algorithm from
17876         lib/mbsstr.c.
17877         * lib/unistr/u8-strstr.c: Include <string.h>.
17878         (UNIT_IS_UINT8_T): New macro.
17879         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17880         (U_STRLEN, U_STRNLEN): New macros.
17881         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17882         (U_STRLEN, U_STRNLEN): New macros.
17883         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17884         (configure.ac): Update required libunistring version.
17885         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17886         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17887         malloca.
17888         (configure.ac): Update required libunistring version.
17889         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17890         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17891         malloca.
17892         (configure.ac): Update required libunistring version.
17893
17894 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17895             Bruno Haible  <bruno@clisp.org>
17896
17897         Prepare for faster uN_strstr functions.
17898         * lib/str-kmp.h: Support definable UNITs.
17899         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17900         needle_len argument.
17901         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17902         * lib/mbscasestr.c (mbscasestr): Likewise.
17903
17904 2011-01-21  Pádraig Brady <P@draigBrady.com>
17905
17906         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17907         * tests/test-malloca.c (main): Unset the environment variable
17908         to greatly speed up the test.
17909         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17910         * modules/malloca-tests: Depend on unsetenv.
17911
17912 2011-01-21  Pádraig Brady <P@draigBrady.com>
17913
17914         ignore-value: remove stdint dependency
17915         * lib/ignore-value.h: Remove <stdint.h>
17916         * modules/ignore-value: Remove stdint dependency.
17917
17918 2011-01-21  Jim Meyering  <meyering@redhat.com>
17919
17920         maint.mk: adjust variable name to be consistent with other gl_ vars
17921         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17922         to be lower case.
17923
17924 2011-01-20  Jim Meyering  <meyering@redhat.com>
17925
17926         maint.mk: make "check" depend on public-submodule-commit by default
17927         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17928
17929 2011-01-20  Bruno Haible  <bruno@clisp.org>
17930
17931         mbfile, mbiter: Complete change from 2008-12-21.
17932         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17933         * m4/mbiter.m4 (gl_MBITER): Likewise.
17934
17935 2011-01-20  Jim Meyering  <meyering@redhat.com>
17936
17937         init.sh: insert space between each function name and "()"
17938         * tests/init.sh: Make it a little easier to see that a function's
17939         name is "warn_", and not "warn" when looking at the first part of
17940         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17941
17942 2011-01-20  Jim Meyering  <meyering@redhat.com>
17943
17944         mountlist: clean up code formatting
17945         * lib/mountlist.c (read_file_system_list): Split a long line,
17946         correct bracing style, use NULL in place of "(struct statfs *)0",
17947         don't parenthesize return value, add spaces around "=" and after
17948         ";-in-for-stmt".
17949
17950 2011-01-14  Markus Duft <mduft@gentoo.org>
17951
17952         mountlist: add support for Interix
17953         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17954         Apply statvfs to all entries of /dev/fs.
17955         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17956         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17957
17958 2011-01-20  Jim Meyering  <meyering@redhat.com>
17959
17960         maint.mk: improve the public-submodule-commit rule
17961         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17962         to suppress printing of its commands... unless V=1.
17963         Add git submodule's --quiet option to suppress printing of e.g.,
17964         "Entering gnulib" output.
17965         "cd" into $(srcdir) before running git submodule.
17966
17967 2011-01-20  Bruno Haible  <bruno@clisp.org>
17968
17969         include_next: Fix bug introduced on 2011-01-18.
17970         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17971         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17972         ac_cv_header_... variable if the second argument is not 'check'.
17973         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17974         gl_NEXT_HEADERS_INTERNAL.
17975
17976 2011-01-20  Bruno Haible  <bruno@clisp.org>
17977
17978         Allow the user to avoid the GNULIB_TEST_* macros.
17979         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17980         Suggested by Paul Eggert.
17981
17982 2011-01-14  Jim Meyering  <meyering@redhat.com>
17983
17984         bootstrap: avoid failure when there is no .gitmodules file
17985         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17986         has been assigned to, even when its value is the empty string.
17987         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17988         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17989         Reported by John W. Eaton <jwe@gnu.org>.
17990
17991 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17992
17993         assume <ctype.h>, ..., <time.h> exist
17994         For years gnulib has been assuming the existence of the headers
17995         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17996         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17997         them, since they don't appear to be needed.
17998         * README (Portability guidelines): Document this.
17999         * lib/flock.c: Assume <fcntl.h> exists.
18000         * lib/regex_internal.h: Assume <locale.h> exists.
18001         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
18002         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
18003         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
18004         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
18005         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
18006         * m4/regex.m4 (gl_REGEX): Likewise.
18007         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
18008         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
18009         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
18010         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
18011         * tests/test-argp.c: Likewise.
18012         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
18013
18014         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
18015         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
18016         AA_APPLE_UNIVERSAL_BUILD.  See
18017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
18018         * NEWS: Document this.
18019
18020 2011-01-19  Eric Blake  <eblake@redhat.com>
18021
18022         c-stack: assume stack overflow if SA_SIGINFO unsupported
18023         * lib/c-stack.c (SIGACTION_WORKS): Rename...
18024         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
18025         sigaction will work.
18026         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
18027         behavior match Linux.
18028         * tests/test-c-stack.c (main): Prefer NULL for pointers.
18029
18030         stdbool-tests: accomodate Haiku
18031         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
18032
18033         binary-io: fix O_TEXT on Haiku
18034         * modules/binary-io (Depends-on): Add fcntl-h.
18035         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
18036         than blindly undefining O_TEXT.
18037         Reported by Scott McCreary.
18038
18039 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18040
18041         include_next: do not check for standard headers like stddef.h
18042
18043         I found this problem when modifying Emacs to use gnulib.
18044         I noticed that it added HAVE_STDDEF_H to config.h, even though
18045         gnulib always assumes <stddef.h> exists as per README and this
18046         symbol is unnecessary.
18047         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
18048         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
18049         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
18050         faster for headers like stddef.h that are known to exist.
18051         (gl_CHECK_NEXT_HEADERS): Use it.
18052         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
18053         rather than gl_CHECK_NEXT_HEADERS.
18054         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
18055         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
18056
18057 2011-01-18  Eric Blake  <eblake@redhat.com>
18058
18059         ansi-c++-opt: skip C++ dependency style if C++ is unused
18060         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
18061         tests when we know C++ compilation is not desired.
18062         Reported by Scott McCreary.
18063
18064 2011-01-18  Bruno Haible  <bruno@clisp.org>
18065
18066         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
18067         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
18068         (main): Perform test also when getrlimit and setrlimit don't exist or
18069         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
18070         limiting the address space size using setrlimit, compare the address
18071         space size before and after the the test.
18072         * tests/test-dprintf-posix2.c: Likewise.
18073         * tests/test-fprintf-posix3.sh: Update skip messages.
18074         * tests/test-dprintf-posix2.sh: Likewise.
18075         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
18076         * modules/dprintf-posix-tests (Depends-on): Likewise.
18077         Reported by Bruce Korb <bkorb@gnu.org> and
18078         Gary V. Vaughan <gary@gnu.org>.
18079
18080 2011-01-18  Bruno Haible  <bruno@clisp.org>
18081
18082         get-rusage-as: Improvement for Cygwin.
18083         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
18084         areas that are merely reserved.
18085
18086 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18087
18088         strftime: remove dependencies on multibyte modules
18089
18090         strftime depended on mbrlen, mbsinit, and wchar, but these modules
18091         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
18092         only if __osf__ is defined, and I suspect OSF doesn't need these
18093         other modules.  If my guess is wrong, we'll need to come up with a
18094         variant of strftime that doesn't need the multibyte modules.
18095
18096         I discovered this problem when attempting modify Emacs to use the
18097         strftime module.  With the previous gnulib, this caused Emacs to
18098         need 31 new files, ranging from lib/config.charset to
18099         m4/wint_t.m4.  This was overkill and I expect would be offputting
18100         to the Emacs maintainers.  After this change, only 6 new files are
18101         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
18102         stdbool.m4, and tm_gmtoff.m4.
18103
18104         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
18105         Suggested by Bruno Haible in
18106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
18107         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
18108         and do not check for wchar.h.
18109         * modules/strftime (Files): Remove m4/mbstate_t.m4.
18110         (Depends-on): Remove mbrlen, mbsinit, wchar.
18111
18112 2011-01-18  Bruno Haible  <bruno@clisp.org>
18113
18114         Tests for module 'get-rusage-as'.
18115         * modules/get-rusage-as-tests: New file.
18116         * tests/test-get-rusage-as.c: New file.
18117
18118         New module 'get-rusage-as'.
18119         * modules/get-rusage-as: New file.
18120         * lib/resource-ext.h: New file.
18121         * lib/get-rusage-as.c: New file.
18122
18123 2011-01-17  Eric Blake  <eblake@redhat.com>
18124
18125         sigaction: relax license from LGPLv3+ to LGPLv2+
18126         * modules/sigaction (License): Relax to LGPLv2+.
18127
18128 2011-01-14  Bruno Haible  <bruno@clisp.org>
18129
18130         filemode: Make function declarations usable in C++ mode.
18131         * lib/filemode.h: Enclose function declarations in extern "C" block.
18132         Reported by John W. Eaton <jwe@gnu.org>.
18133
18134 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
18135
18136         save-cwd: no longer include "xgetcwd.h"
18137         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
18138         This avoids a compilation failure in projects that use save-cwd
18139         without also using the xgetcwd module.
18140
18141 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18142
18143         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
18144         This is so that a program like Emacs, which needs only dtoastr,
18145         does not have to bother with distributing and compiling ftoastr
18146         and ldtoastr.
18147         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
18148         * modules/dtoastr, modules/ldtoastr: New files.
18149         * modules/ftoastr: Now works just for 'float'.
18150         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
18151         (Makefile.am): Remove ftoastr.h (not needed and no effect),
18152         dtoastr.c, ldtoastr.c.
18153
18154 2011-01-11  Jim Meyering  <meyering@redhat.com>
18155
18156         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
18157         There is no need to work around the lack of the fchdir function,
18158         since gnulib can now provide a replacement when required.
18159         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
18160         * modules/save-cwd (Depends-on): Add fchdir.
18161
18162 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18163
18164         openat, save-cwd: avoid xmalloc
18165
18166         This removes a direct (but undocumented) dependency of openat on
18167         xalloc, along with an indirect dependency via save-cwd.  It also
18168         removes a dependency of save-cwd on xgetcwd, and thereby
18169         indirectly on xalloc.  This change causes the openat substitute
18170         to fall back on save_cwd when memory is tight, and for save_cwd to
18171         fail instead of dying when memory is tight, but that's good enough.
18172         Problem and initial idea for fix reported by Bastien Roucaries in
18173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18174
18175         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18176         xalloc.h (for xmalloc).
18177         (openat_proc_name): Use malloc, not xmalloc.
18178         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18179         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18180
18181         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18182         This avoids heap allocation for file names whose lengths are in
18183         the range 512..1023, with the upper bound increasing to at most
18184         4031 depending on the platform's PATH_MAX.  (We do not want
18185         pathmax.h here as it might supply a non-constant PATH_MAX.)
18186         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18187         Perhaps they should be moved to malloca.h?
18188         (OPENAT_BUFFER_SIZE): Use them.
18189
18190 2011-01-10  Bruno Haible  <bruno@clisp.org>
18191
18192         doc: Update users.txt.
18193         * users.txt: Add recutils.
18194
18195 2011-01-09  Karl Berry  <karl@gnu.org>
18196
18197         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18198
18199         * doc/configmake.texi: New file.
18200         * doc/gnulib.texi: Include it.
18201         * modules/configmake: Move documentation from here.
18202
18203 2011-01-09  Bruno Haible  <bruno@clisp.org>
18204
18205         Update to Unicode 6.0.0.
18206         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18207         (get_lbp): Update for Unicode 6.0.0.
18208         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18209         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18210         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18211         U+11001, U+11038..U+11046. Remove U+06DE.
18212         (uc_width): Fix bounds of planes.
18213         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18214         lib/uniwidth/width.c.
18215         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18216         trailing whitespace removed.
18217         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18218         without comments, but with the original copyright notice.
18219         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18220         * lib/unicase/ignorable.h: Likewise.
18221         * lib/unicase/tocasefold.h: Likewise.
18222         * lib/unicase/tolower.h: Likewise.
18223         * lib/unicase/totitle.h: Likewise.
18224         * lib/unicase/toupper.h: Likewise.
18225         * lib/unictype/bidi_of.h: Likewise.
18226         * lib/unictype/blocks.h: Likewise.
18227         * lib/unictype/categ_C.h: Likewise.
18228         * lib/unictype/categ_Cn.h: Likewise.
18229         * lib/unictype/categ_L.h: Likewise.
18230         * lib/unictype/categ_Ll.h: Likewise.
18231         * lib/unictype/categ_Lm.h: Likewise.
18232         * lib/unictype/categ_Lo.h: Likewise.
18233         * lib/unictype/categ_Lu.h: Likewise.
18234         * lib/unictype/categ_M.h: Likewise.
18235         * lib/unictype/categ_Mc.h: Likewise.
18236         * lib/unictype/categ_Me.h: Likewise.
18237         * lib/unictype/categ_Mn.h: Likewise.
18238         * lib/unictype/categ_N.h: Likewise.
18239         * lib/unictype/categ_Nd.h: Likewise.
18240         * lib/unictype/categ_No.h: Likewise.
18241         * lib/unictype/categ_P.h: Likewise.
18242         * lib/unictype/categ_Po.h: Likewise.
18243         * lib/unictype/categ_S.h: Likewise.
18244         * lib/unictype/categ_Sc.h: Likewise.
18245         * lib/unictype/categ_Sk.h: Likewise.
18246         * lib/unictype/categ_Sm.h: Likewise.
18247         * lib/unictype/categ_So.h: Likewise.
18248         * lib/unictype/categ_of.h: Likewise.
18249         * lib/unictype/combining.h: Likewise.
18250         * lib/unictype/ctype_alnum.h: Likewise.
18251         * lib/unictype/ctype_alpha.h: Likewise.
18252         * lib/unictype/ctype_graph.h: Likewise.
18253         * lib/unictype/ctype_lower.h: Likewise.
18254         * lib/unictype/ctype_print.h: Likewise.
18255         * lib/unictype/ctype_punct.h: Likewise.
18256         * lib/unictype/ctype_upper.h: Likewise.
18257         * lib/unictype/decdigit.h: Likewise.
18258         * lib/unictype/digit.h: Likewise.
18259         * lib/unictype/numeric.h: Likewise.
18260         * lib/unictype/pr_alphabetic.h: Likewise.
18261         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18262         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18263         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18264         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18265         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18266         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18267         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18268         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18269         * lib/unictype/pr_case_ignorable.h: Likewise.
18270         * lib/unictype/pr_cased.h: Likewise.
18271         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18272         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18273         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18274         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18275         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18276         * lib/unictype/pr_combining.h: Likewise.
18277         * lib/unictype/pr_composite.h: Likewise.
18278         * lib/unictype/pr_currency_symbol.h: Likewise.
18279         * lib/unictype/pr_decimal_digit.h: Likewise.
18280         * lib/unictype/pr_deprecated.h: Likewise.
18281         * lib/unictype/pr_format_control.h: Likewise.
18282         * lib/unictype/pr_grapheme_base.h: Likewise.
18283         * lib/unictype/pr_grapheme_extend.h: Likewise.
18284         * lib/unictype/pr_grapheme_link.h: Likewise.
18285         * lib/unictype/pr_id_continue.h: Likewise.
18286         * lib/unictype/pr_id_start.h: Likewise.
18287         * lib/unictype/pr_ideographic.h: Likewise.
18288         * lib/unictype/pr_lowercase.h: Likewise.
18289         * lib/unictype/pr_math.h: Likewise.
18290         * lib/unictype/pr_numeric.h: Likewise.
18291         * lib/unictype/pr_other_alphabetic.h: Likewise.
18292         * lib/unictype/pr_other_id_continue.h: Likewise.
18293         * lib/unictype/pr_other_math.h: Likewise.
18294         * lib/unictype/pr_punctuation.h: Likewise.
18295         * lib/unictype/pr_sentence_terminal.h: Likewise.
18296         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18297         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18298         * lib/unictype/pr_unified_ideograph.h: Likewise.
18299         * lib/unictype/pr_uppercase.h: Likewise.
18300         * lib/unictype/pr_xid_continue.h: Likewise.
18301         * lib/unictype/pr_xid_start.h: Likewise.
18302         * lib/unictype/scripts.h: Likewise.
18303         * lib/unictype/scripts_byname.gperf: Likewise.
18304         * lib/unictype/sy_java_ident.h: Likewise.
18305         * lib/unigbrk/gbrkprop.h: Likewise.
18306         * lib/unilbrk/lbrkprop1.h: Likewise.
18307         * lib/unilbrk/lbrkprop2.h: Likewise.
18308         * lib/uninorm/decomposition-table2.h: Likewise.
18309         * lib/uniwbrk/wbrkprop.h: Likewise.
18310         * tests/unicase/test-cased.c: Likewise.
18311         * tests/unicase/test-ignorable.c: Likewise.
18312         * tests/unicase/test-uc_tolower.c: Likewise.
18313         * tests/unicase/test-uc_totitle.c: Likewise.
18314         * tests/unicase/test-uc_toupper.c: Likewise.
18315         * tests/unictype/test-categ_C.c: Likewise.
18316         * tests/unictype/test-categ_Cn.c: Likewise.
18317         * tests/unictype/test-categ_L.c: Likewise.
18318         * tests/unictype/test-categ_Ll.c: Likewise.
18319         * tests/unictype/test-categ_Lm.c: Likewise.
18320         * tests/unictype/test-categ_Lo.c: Likewise.
18321         * tests/unictype/test-categ_Lu.c: Likewise.
18322         * tests/unictype/test-categ_M.c: Likewise.
18323         * tests/unictype/test-categ_Mc.c: Likewise.
18324         * tests/unictype/test-categ_Me.c: Likewise.
18325         * tests/unictype/test-categ_Mn.c: Likewise.
18326         * tests/unictype/test-categ_N.c: Likewise.
18327         * tests/unictype/test-categ_Nd.c: Likewise.
18328         * tests/unictype/test-categ_No.c: Likewise.
18329         * tests/unictype/test-categ_P.c: Likewise.
18330         * tests/unictype/test-categ_Po.c: Likewise.
18331         * tests/unictype/test-categ_S.c: Likewise.
18332         * tests/unictype/test-categ_Sc.c: Likewise.
18333         * tests/unictype/test-categ_Sk.c: Likewise.
18334         * tests/unictype/test-categ_Sm.c: Likewise.
18335         * tests/unictype/test-categ_So.c: Likewise.
18336         * tests/unictype/test-ctype_alnum.c: Likewise.
18337         * tests/unictype/test-ctype_alpha.c: Likewise.
18338         * tests/unictype/test-ctype_graph.c: Likewise.
18339         * tests/unictype/test-ctype_lower.c: Likewise.
18340         * tests/unictype/test-ctype_print.c: Likewise.
18341         * tests/unictype/test-ctype_punct.c: Likewise.
18342         * tests/unictype/test-ctype_upper.c: Likewise.
18343         * tests/unictype/test-decdigit.h: Likewise.
18344         * tests/unictype/test-digit.h: Likewise.
18345         * tests/unictype/test-numeric.h: Likewise.
18346         * tests/unictype/test-pr_alphabetic.c: Likewise.
18347         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18348         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18349         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18350         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18351         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18352         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18353         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18354         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18355         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18356         * tests/unictype/test-pr_cased.c: Likewise.
18357         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18358         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18359         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18360         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18361         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18362         * tests/unictype/test-pr_combining.c: Likewise.
18363         * tests/unictype/test-pr_composite.c: Likewise.
18364         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18365         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18366         * tests/unictype/test-pr_deprecated.c: Likewise.
18367         * tests/unictype/test-pr_format_control.c: Likewise.
18368         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18369         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18370         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18371         * tests/unictype/test-pr_id_continue.c: Likewise.
18372         * tests/unictype/test-pr_id_start.c: Likewise.
18373         * tests/unictype/test-pr_ideographic.c: Likewise.
18374         * tests/unictype/test-pr_lowercase.c: Likewise.
18375         * tests/unictype/test-pr_math.c: Likewise.
18376         * tests/unictype/test-pr_numeric.c: Likewise.
18377         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18378         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18379         * tests/unictype/test-pr_other_math.c: Likewise.
18380         * tests/unictype/test-pr_punctuation.c: Likewise.
18381         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18382         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18383         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18384         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18385         * tests/unictype/test-pr_uppercase.c: Likewise.
18386         * tests/unictype/test-pr_xid_continue.c: Likewise.
18387         * tests/unictype/test-pr_xid_start.c: Likewise.
18388         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18389         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18390         changes.
18391         * lib/unictype/categ_Cc.h: Likewise.
18392         * lib/unictype/categ_Cf.h: Likewise.
18393         * lib/unictype/categ_Co.h: Likewise.
18394         * lib/unictype/categ_Cs.h: Likewise.
18395         * lib/unictype/categ_Lt.h: Likewise.
18396         * lib/unictype/categ_Nl.h: Likewise.
18397         * lib/unictype/categ_Pc.h: Likewise.
18398         * lib/unictype/categ_Pd.h: Likewise.
18399         * lib/unictype/categ_Pe.h: Likewise.
18400         * lib/unictype/categ_Pf.h: Likewise.
18401         * lib/unictype/categ_Pi.h: Likewise.
18402         * lib/unictype/categ_Ps.h: Likewise.
18403         * lib/unictype/categ_Z.h: Likewise.
18404         * lib/unictype/categ_Zl.h: Likewise.
18405         * lib/unictype/categ_Zp.h: Likewise.
18406         * lib/unictype/categ_Zs.h: Likewise.
18407         * lib/unictype/ctype_blank.h: Likewise.
18408         * lib/unictype/ctype_cntrl.h: Likewise.
18409         * lib/unictype/ctype_digit.h: Likewise.
18410         * lib/unictype/ctype_space.h: Likewise.
18411         * lib/unictype/ctype_xdigit.h: Likewise.
18412         * lib/unictype/mirror.h: Likewise.
18413         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18414         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18415         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18416         * lib/unictype/pr_bidi_control.h: Likewise.
18417         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18418         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18419         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18420         * lib/unictype/pr_bidi_pdf.h: Likewise.
18421         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18422         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18423         * lib/unictype/pr_dash.h: Likewise.
18424         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18425         * lib/unictype/pr_diacritic.h: Likewise.
18426         * lib/unictype/pr_extender.h: Likewise.
18427         * lib/unictype/pr_hex_digit.h: Likewise.
18428         * lib/unictype/pr_hyphen.h: Likewise.
18429         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18430         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18431         * lib/unictype/pr_ignorable_control.h: Likewise.
18432         * lib/unictype/pr_iso_control.h: Likewise.
18433         * lib/unictype/pr_join_control.h: Likewise.
18434         * lib/unictype/pr_left_of_pair.h: Likewise.
18435         * lib/unictype/pr_line_separator.h: Likewise.
18436         * lib/unictype/pr_logical_order_exception.h: Likewise.
18437         * lib/unictype/pr_non_break.h: Likewise.
18438         * lib/unictype/pr_not_a_character.h: Likewise.
18439         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18440         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18441         * lib/unictype/pr_other_id_start.h: Likewise.
18442         * lib/unictype/pr_other_lowercase.h: Likewise.
18443         * lib/unictype/pr_other_uppercase.h: Likewise.
18444         * lib/unictype/pr_paired_punctuation.h: Likewise.
18445         * lib/unictype/pr_paragraph_separator.h: Likewise.
18446         * lib/unictype/pr_pattern_syntax.h: Likewise.
18447         * lib/unictype/pr_pattern_white_space.h: Likewise.
18448         * lib/unictype/pr_private_use.h: Likewise.
18449         * lib/unictype/pr_quotation_mark.h: Likewise.
18450         * lib/unictype/pr_radical.h: Likewise.
18451         * lib/unictype/pr_soft_dotted.h: Likewise.
18452         * lib/unictype/pr_space.h: Likewise.
18453         * lib/unictype/pr_titlecase.h: Likewise.
18454         * lib/unictype/pr_variation_selector.h: Likewise.
18455         * lib/unictype/pr_white_space.h: Likewise.
18456         * lib/unictype/pr_zero_width.h: Likewise.
18457         * lib/unictype/sy_c_ident.h: Likewise.
18458         * lib/unictype/sy_c_whitespace.h: Likewise.
18459         * lib/unictype/sy_java_whitespace.h: Likewise.
18460         * lib/uninorm/composition-table.gperf: Likewise.
18461         * lib/uninorm/decomposition-table1.h: Likewise.
18462         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18463         LB8.
18464         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18465         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18466         * modules/unictype/*: Bump version number of expected libunistring
18467         version.
18468
18469 2011-01-09  Bruno Haible  <bruno@clisp.org>
18470
18471         Update to Unicode 5.2.0.
18472         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18473         trailing whitespace removed.
18474
18475 2011-01-09  Bruno Haible  <bruno@clisp.org>
18476
18477         New Unicode character properties, from Unicode 5.2.0.
18478         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18479         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18480         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18481         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18482         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18483         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18484         uc_is_property_cased, uc_is_property_case_ignorable,
18485         uc_is_property_changes_when_lowercased,
18486         uc_is_property_changes_when_uppercased,
18487         uc_is_property_changes_when_titlecased,
18488         uc_is_property_changes_when_casefolded,
18489         uc_is_property_changes_when_casemapped): New declarations.
18490         * lib/unictype/pr_byname.gperf: Add the new properties.
18491         * modules/unictype/property-byname (Depends-on): Depend on the new
18492         properties modules.
18493         * modules/unictype/property-all (Depends-on): Likewise.
18494         * MODULES.html.sh (Unicode string functions): Add
18495         unictype/property-case-ignorable, unictype/property-cased,
18496         unictype/property-changes-when-casefolded,
18497         unictype/property-changes-when-casemapped,
18498         unictype/property-changes-when-lowercased,
18499         unictype/property-changes-when-titlecased,
18500         unictype/property-changes-when-uppercased.
18501
18502         New module 'unictype/property-changes-when-casemapped'.
18503         * modules/unictype/property-changes-when-casemapped: New file.
18504         * lib/unictype/pr_changes_when_casemapped.c: New file.
18505         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18506         generated by gen-uni-tables.
18507         * modules/unictype/property-changes-when-casemapped-tests: New file.
18508         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18509         automatically generated by gen-uni-tables.
18510
18511         New module 'unictype/property-changes-when-casefolded'.
18512         * modules/unictype/property-changes-when-casefolded: New file.
18513         * lib/unictype/pr_changes_when_casefolded.c: New file.
18514         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18515         generated by gen-uni-tables.
18516         * modules/unictype/property-changes-when-casefolded-tests: New file.
18517         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18518         automatically generated by gen-uni-tables.
18519
18520         New module 'unictype/property-changes-when-titlecased'.
18521         * modules/unictype/property-changes-when-titlecased: New file.
18522         * lib/unictype/pr_changes_when_titlecased.c: New file.
18523         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18524         generated by gen-uni-tables.
18525         * modules/unictype/property-changes-when-titlecased-tests: New file.
18526         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18527         automatically generated by gen-uni-tables.
18528
18529         New module 'unictype/property-changes-when-uppercased'.
18530         * modules/unictype/property-changes-when-uppercased: New file.
18531         * lib/unictype/pr_changes_when_uppercased.c: New file.
18532         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18533         generated by gen-uni-tables.
18534         * modules/unictype/property-changes-when-uppercased-tests: New file.
18535         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18536         automatically generated by gen-uni-tables.
18537
18538         New module 'unictype/property-changes-when-lowercased'.
18539         * modules/unictype/property-changes-when-lowercased: New file.
18540         * lib/unictype/pr_changes_when_lowercased.c: New file.
18541         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18542         generated by gen-uni-tables.
18543         * modules/unictype/property-changes-when-lowercased-tests: New file.
18544         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18545         automatically generated by gen-uni-tables.
18546
18547         New module 'unictype/property-case-ignorable'.
18548         * modules/unictype/property-case-ignorable: New file.
18549         * lib/unictype/pr_case_ignorable.c: New file.
18550         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18551         by gen-uni-tables.
18552         * modules/unictype/property-case-ignorable-tests: New file.
18553         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18554         generated by gen-uni-tables.
18555
18556         New module 'unictype/property-cased'.
18557         * modules/unictype/property-cased: New file.
18558         * lib/unictype/pr_cased.c: New file.
18559         * lib/unictype/pr_cased.h: New file, automatically generated by
18560         gen-uni-tables.
18561         * modules/unictype/property-cased-tests: New file.
18562         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18563         gen-uni-tables.
18564
18565 2011-01-09  Bruno Haible  <bruno@clisp.org>
18566
18567         Update to Unicode 5.2.0.
18568         * lib/gen-uni-tables.c (output_predicate, output_category,
18569         output_combclass, output_bidi_category, output_decimal_digit_test,
18570         output_decimal_digit, output_digit_test, output_digit,
18571         output_numeric_test, output_numeric, output_mirror, output_scripts,
18572         output_scripts_byname, output_blocks, output_ident_category): Fix
18573         comment header.
18574         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18575         get_wbp.
18576         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18577         items.
18578         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18579         Changes_When_Lowercased, Changes_When_Uppercased,
18580         Changes_When_Titlecased, Changes_When_Casefolded,
18581         Changes_When_Casemapped.
18582         (is_property_alphabetic, is_property_default_ignorable_code_point):
18583         Update for Unicode 5.2.0.
18584         (is_property_cased, is_property_case_ignorable,
18585         is_property_changes_when_lowercased,
18586         is_property_changes_when_uppercased,
18587         is_property_changes_when_titlecased,
18588         is_property_changes_when_casefolded,
18589         is_property_changes_when_casemapped): New functions.
18590         (output_properties): Output also the properties cased, case_ignorable,
18591         changes_when_lowercased, changes_when_uppercased,
18592         changes_when_titlecased, changes_when_casefolded,
18593         changes_when_casemapped.
18594         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18595         Unicode TR#11 revision 17 -> 19.
18596         (LBP_CP): New enumeration value.
18597         (LBP_*): Adjust values accordingly.
18598         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18599         TR#14 revision 22 -> 24.
18600         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18601         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18602         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18603         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18604         is_WBP_MIDLETTER.
18605         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18606         the code1 and code2 of each composition rule.
18607         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18608         * lib/unicase/ignorable.h: Likewise.
18609         * lib/unicase/tocasefold.h: Likewise.
18610         * lib/unicase/tolower.h: Likewise.
18611         * lib/unicase/totitle.h: Likewise.
18612         * lib/unicase/toupper.h: Likewise.
18613         * lib/unictype/bidi_of.h: Likewise.
18614         * lib/unictype/blocks.h: Likewise.
18615         * lib/unictype/categ_C.h: Likewise.
18616         * lib/unictype/categ_Cf.h: Likewise.
18617         * lib/unictype/categ_Cn.h: Likewise.
18618         * lib/unictype/categ_L.h: Likewise.
18619         * lib/unictype/categ_Ll.h: Likewise.
18620         * lib/unictype/categ_Lm.h: Likewise.
18621         * lib/unictype/categ_Lo.h: Likewise.
18622         * lib/unictype/categ_Lu.h: Likewise.
18623         * lib/unictype/categ_M.h: Likewise.
18624         * lib/unictype/categ_Mc.h: Likewise.
18625         * lib/unictype/categ_Mn.h: Likewise.
18626         * lib/unictype/categ_N.h: Likewise.
18627         * lib/unictype/categ_Nd.h: Likewise.
18628         * lib/unictype/categ_Nl.h: Likewise.
18629         * lib/unictype/categ_No.h: Likewise.
18630         * lib/unictype/categ_P.h: Likewise.
18631         * lib/unictype/categ_Pd.h: Likewise.
18632         * lib/unictype/categ_Po.h: Likewise.
18633         * lib/unictype/categ_S.h: Likewise.
18634         * lib/unictype/categ_Sc.h: Likewise.
18635         * lib/unictype/categ_So.h: Likewise.
18636         * lib/unictype/categ_of.h: Likewise.
18637         * lib/unictype/combining.h: Likewise.
18638         * lib/unictype/ctype_alnum.h: Likewise.
18639         * lib/unictype/ctype_alpha.h: Likewise.
18640         * lib/unictype/ctype_graph.h: Likewise.
18641         * lib/unictype/ctype_lower.h: Likewise.
18642         * lib/unictype/ctype_print.h: Likewise.
18643         * lib/unictype/ctype_punct.h: Likewise.
18644         * lib/unictype/ctype_upper.h: Likewise.
18645         * lib/unictype/decdigit.h: Likewise.
18646         * lib/unictype/digit.h: Likewise.
18647         * lib/unictype/numeric.h: Likewise.
18648         * lib/unictype/pr_alphabetic.h: Likewise.
18649         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18650         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18651         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18652         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18653         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18654         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18655         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18656         * lib/unictype/pr_combining.h: Likewise.
18657         * lib/unictype/pr_composite.h: Likewise.
18658         * lib/unictype/pr_currency_symbol.h: Likewise.
18659         * lib/unictype/pr_dash.h: Likewise.
18660         * lib/unictype/pr_decimal_digit.h: Likewise.
18661         * lib/unictype/pr_deprecated.h: Likewise.
18662         * lib/unictype/pr_diacritic.h: Likewise.
18663         * lib/unictype/pr_extender.h: Likewise.
18664         * lib/unictype/pr_grapheme_base.h: Likewise.
18665         * lib/unictype/pr_grapheme_extend.h: Likewise.
18666         * lib/unictype/pr_grapheme_link.h: Likewise.
18667         * lib/unictype/pr_id_continue.h: Likewise.
18668         * lib/unictype/pr_id_start.h: Likewise.
18669         * lib/unictype/pr_ideographic.h: Likewise.
18670         * lib/unictype/pr_ignorable_control.h: Likewise.
18671         * lib/unictype/pr_logical_order_exception.h: Likewise.
18672         * lib/unictype/pr_lowercase.h: Likewise.
18673         * lib/unictype/pr_numeric.h: Likewise.
18674         * lib/unictype/pr_other_alphabetic.h: Likewise.
18675         * lib/unictype/pr_punctuation.h: Likewise.
18676         * lib/unictype/pr_sentence_terminal.h: Likewise.
18677         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18678         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18679         * lib/unictype/pr_unified_ideograph.h: Likewise.
18680         * lib/unictype/pr_uppercase.h: Likewise.
18681         * lib/unictype/pr_xid_continue.h: Likewise.
18682         * lib/unictype/pr_xid_start.h: Likewise.
18683         * lib/unictype/pr_zero_width.h: Likewise.
18684         * lib/unictype/scripts.h: Likewise.
18685         * lib/unictype/scripts_byname.gperf: Likewise.
18686         * lib/unictype/sy_java_ident.h: Likewise.
18687         * lib/unigbrk/gbrkprop.h: Likewise.
18688         * lib/unilbrk/lbrkprop1.h: Likewise.
18689         * lib/unilbrk/lbrkprop2.h: Likewise.
18690         * lib/unilbrk/lbrktables.h: Likewise.
18691         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18692         LBP_CP. Implement rule LB30.
18693         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18694         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18695         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18696         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18697         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18698         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18699         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18700         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18701         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18702         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18703         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18704         bits instead of 16 bits in the code1 and code2 of each composition
18705         rule.
18706         (uc_composition): Update for Unicode 5.2.0.
18707         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18708         * lib/uninorm/decomposition-table2.h: Likewise.
18709         * lib/uniwbrk/wbrkprop.h: Likewise.
18710         * tests/unicase/test-cased.c: Likewise.
18711         * tests/unicase/test-ignorable.c: Likewise.
18712         * tests/unicase/test-uc_tolower.c: Likewise.
18713         * tests/unicase/test-uc_totitle.c: Likewise.
18714         * tests/unicase/test-uc_toupper.c: Likewise.
18715         * tests/unictype/test-categ_C.c: Likewise.
18716         * tests/unictype/test-categ_Cf.c: Likewise.
18717         * tests/unictype/test-categ_Cn.c: Likewise.
18718         * tests/unictype/test-categ_L.c: Likewise.
18719         * tests/unictype/test-categ_Ll.c: Likewise.
18720         * tests/unictype/test-categ_Lm.c: Likewise.
18721         * tests/unictype/test-categ_Lo.c: Likewise.
18722         * tests/unictype/test-categ_Lu.c: Likewise.
18723         * tests/unictype/test-categ_M.c: Likewise.
18724         * tests/unictype/test-categ_Mc.c: Likewise.
18725         * tests/unictype/test-categ_Mn.c: Likewise.
18726         * tests/unictype/test-categ_N.c: Likewise.
18727         * tests/unictype/test-categ_Nd.c: Likewise.
18728         * tests/unictype/test-categ_Nl.c: Likewise.
18729         * tests/unictype/test-categ_No.c: Likewise.
18730         * tests/unictype/test-categ_P.c: Likewise.
18731         * tests/unictype/test-categ_Pd.c: Likewise.
18732         * tests/unictype/test-categ_Po.c: Likewise.
18733         * tests/unictype/test-categ_S.c: Likewise.
18734         * tests/unictype/test-categ_Sc.c: Likewise.
18735         * tests/unictype/test-categ_So.c: Likewise.
18736         * tests/unictype/test-ctype_alnum.c: Likewise.
18737         * tests/unictype/test-ctype_alpha.c: Likewise.
18738         * tests/unictype/test-ctype_graph.c: Likewise.
18739         * tests/unictype/test-ctype_lower.c: Likewise.
18740         * tests/unictype/test-ctype_print.c: Likewise.
18741         * tests/unictype/test-ctype_punct.c: Likewise.
18742         * tests/unictype/test-ctype_upper.c: Likewise.
18743         * tests/unictype/test-decdigit.h: Likewise.
18744         * tests/unictype/test-digit.h: Likewise.
18745         * tests/unictype/test-numeric.h: Likewise.
18746         * tests/unictype/test-pr_alphabetic.c: Likewise.
18747         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18748         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18749         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18750         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18751         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18752         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18753         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18754         * tests/unictype/test-pr_combining.c: Likewise.
18755         * tests/unictype/test-pr_composite.c: Likewise.
18756         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18757         * tests/unictype/test-pr_dash.c: Likewise.
18758         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18759         * tests/unictype/test-pr_deprecated.c: Likewise.
18760         * tests/unictype/test-pr_diacritic.c: Likewise.
18761         * tests/unictype/test-pr_extender.c: Likewise.
18762         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18763         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18764         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18765         * tests/unictype/test-pr_id_continue.c: Likewise.
18766         * tests/unictype/test-pr_id_start.c: Likewise.
18767         * tests/unictype/test-pr_ideographic.c: Likewise.
18768         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18769         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18770         * tests/unictype/test-pr_lowercase.c: Likewise.
18771         * tests/unictype/test-pr_numeric.c: Likewise.
18772         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18773         * tests/unictype/test-pr_punctuation.c: Likewise.
18774         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18775         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18776         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18777         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18778         * tests/unictype/test-pr_uppercase.c: Likewise.
18779         * tests/unictype/test-pr_xid_continue.c: Likewise.
18780         * tests/unictype/test-pr_xid_start.c: Likewise.
18781         * tests/unictype/test-pr_zero_width.c: Likewise.
18782         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18783         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18784         changed behaviour: line breaking is now disallowed between a letter
18785         or '=' and '('.
18786         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18787         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18788         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18789         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18790         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18791         lib/uniwidth/width.c.
18792         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18793         without comments, but with the original copyright notice.
18794         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18795         changes.
18796         * lib/unictype/categ_Cc.h: Likewise.
18797         * lib/unictype/categ_Co.h: Likewise.
18798         * lib/unictype/categ_Cs.h: Likewise.
18799         * lib/unictype/categ_Lt.h: Likewise.
18800         * lib/unictype/categ_Me.h: Likewise.
18801         * lib/unictype/categ_Pc.h: Likewise.
18802         * lib/unictype/categ_Pe.h: Likewise.
18803         * lib/unictype/categ_Pf.h: Likewise.
18804         * lib/unictype/categ_Pi.h: Likewise.
18805         * lib/unictype/categ_Ps.h: Likewise.
18806         * lib/unictype/categ_Sk.h: Likewise.
18807         * lib/unictype/categ_Sm.h: Likewise.
18808         * lib/unictype/categ_Z.h: Likewise.
18809         * lib/unictype/categ_Zl.h: Likewise.
18810         * lib/unictype/categ_Zp.h: Likewise.
18811         * lib/unictype/categ_Zs.h: Likewise.
18812         * lib/unictype/ctype_blank.h: Likewise.
18813         * lib/unictype/ctype_cntrl.h: Likewise.
18814         * lib/unictype/ctype_digit.h: Likewise.
18815         * lib/unictype/ctype_space.h: Likewise.
18816         * lib/unictype/ctype_xdigit.h: Likewise.
18817         * lib/unictype/mirror.h: Likewise.
18818         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18819         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18820         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18821         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18822         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18823         * lib/unictype/pr_bidi_control.h: Likewise.
18824         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18825         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18826         * lib/unictype/pr_bidi_pdf.h: Likewise.
18827         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18828         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18829         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18830         * lib/unictype/pr_format_control.h: Likewise.
18831         * lib/unictype/pr_hex_digit.h: Likewise.
18832         * lib/unictype/pr_hyphen.h: Likewise.
18833         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18834         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18835         * lib/unictype/pr_iso_control.h: Likewise.
18836         * lib/unictype/pr_join_control.h: Likewise.
18837         * lib/unictype/pr_left_of_pair.h: Likewise.
18838         * lib/unictype/pr_line_separator.h: Likewise.
18839         * lib/unictype/pr_math.h: Likewise.
18840         * lib/unictype/pr_non_break.h: Likewise.
18841         * lib/unictype/pr_not_a_character.h: Likewise.
18842         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18843         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18844         * lib/unictype/pr_other_id_continue.h: Likewise.
18845         * lib/unictype/pr_other_id_start.h: Likewise.
18846         * lib/unictype/pr_other_lowercase.h: Likewise.
18847         * lib/unictype/pr_other_math.h: Likewise.
18848         * lib/unictype/pr_other_uppercase.h: Likewise.
18849         * lib/unictype/pr_paired_punctuation.h: Likewise.
18850         * lib/unictype/pr_paragraph_separator.h: Likewise.
18851         * lib/unictype/pr_pattern_syntax.h: Likewise.
18852         * lib/unictype/pr_pattern_white_space.h: Likewise.
18853         * lib/unictype/pr_private_use.h: Likewise.
18854         * lib/unictype/pr_quotation_mark.h: Likewise.
18855         * lib/unictype/pr_radical.h: Likewise.
18856         * lib/unictype/pr_soft_dotted.h: Likewise.
18857         * lib/unictype/pr_space.h: Likewise.
18858         * lib/unictype/pr_titlecase.h: Likewise.
18859         * lib/unictype/pr_variation_selector.h: Likewise.
18860         * lib/unictype/pr_white_space.h: Likewise.
18861         * lib/unictype/sy_c_ident.h: Likewise.
18862         * lib/unictype/sy_c_whitespace.h: Likewise.
18863         * lib/unictype/sy_java_whitespace.h: Likewise.
18864         * modules/uni*/*: Bump version number of expected libunistring version.
18865         Reported by Simon Josefsson.
18866
18867 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18868
18869         useless-if-before-free: fix typo in --help and make the internal,
18870         automatic version date update process work once again.
18871         --help output contained a NUL character instead of the
18872         backslash-zero that was intended.  Also, the "must lie within
18873         the first 8 lines" line is on line 9, and hence not getting
18874         automatically updated.
18875         * build-aux/useless-if-before-free: Fix the former by adding a
18876         backslash, and the latter by condensing the three lines of what-it-does
18877         to a single line, leaving one line of slack for the future.
18878
18879 2011-01-09  Bruno Haible  <bruno@clisp.org>
18880
18881         uniwidth/width: Fix width of U+1D173..U+1D17A.
18882         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18883         symbolic_width, output_width_property_test): New functions.
18884         (main): Invoke output_nonspacing_property, output_width_property_test.
18885         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18886         U+1D173..U+1D17A.
18887         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18888         1.
18889         * modules/uniwidth/*: Bump version number of expected libunistring
18890         version.
18891         * modules/unilbrk/*: Likewise.
18892
18893 2011-01-08  Bruno Haible  <bruno@clisp.org>
18894
18895         uninorm tests: Preserve copyright of Unicode data file.
18896         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18897         Mention modifications.
18898
18899 2011-01-08  Bruno Haible  <bruno@clisp.org>
18900
18901         gen-uni-tables: Prepare for Unicode 5.2.0.
18902         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18903         (debug_output_lbp, output_lbp): Update.
18904
18905 2011-01-08  Bruno Haible  <bruno@clisp.org>
18906
18907         unilbrk: Clarify gen-uni-tables.c code.
18908         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18909         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18910         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18911
18912 2011-01-07  Bruno Haible  <bruno@clisp.org>
18913
18914         strtod: Restore errno when successfully parsing Infinity or NaN.
18915         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18916         restore the original errno.
18917
18918 2011-01-07  Bruno Haible  <bruno@clisp.org>
18919
18920         remove test: Avoid failure on HP-UX 11.
18921         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18922
18923 2011-01-07  Bruno Haible  <bruno@clisp.org>
18924
18925         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18926         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18927         error code.
18928
18929 2011-01-07  Pádraig Brady <P@draigBrady.com>
18930
18931         ignore-value: fixup comments, and add Eric Blake
18932         as an author since he rewrote the macros.
18933         * lib/ignore-value.h (ignore_value):  State that
18934         we now support aggregates.  Also specify exactly
18935         when the GCC warn_unused_result feature was added.
18936
18937 2011-01-06  Eric Blake  <eblake@redhat.com>
18938
18939         ignore-value: support aggregate types
18940         * lib/ignore-value.h (ignore_value): Provide separate gcc
18941         definition.
18942         * modules/ignore-value-tests: New test module.
18943         * tests/test-ignore-value.c: New test.
18944
18945         maint.mk: improve sc_prohibit_strcmp regex
18946         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18947         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18948         definition of STRNEQ.
18949
18950         signal: work around Haiku issue with SIGBUS
18951         * lib/siglist.h: Add comment.
18952         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18953         strsignal's favoring of SIGSEGV.
18954         * tests/test-signal.c (main): Avoid test failure.
18955         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18956         Reported by Scott McCreary.
18957
18958         maint.mk: add pre-release check to ensure submodule commits are public
18959         * top/maint.mk (public-submodule-commit): New rule.
18960         (submodule-checks): New variable.
18961         (alpha beta stable): Depend on the variable.
18962
18963 2011-01-05  Pádraig Brady <P@draigBrady.com>
18964         and Jim Meyering  <meyering@redhat.com>
18965
18966         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18967         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18968         (ATTRIBUTE_DEPRECATED): Define.
18969         (_ignore_case): New function.
18970         (ignore_value): New macro, to replace the old function.
18971         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18972         * modules/ignore-value (Depends-on): Add stdint.
18973
18974 2011-01-04  Eric Blake  <eblake@redhat.com>
18975
18976         doc: regenerate INSTALL
18977         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18978         @firstparagraphindent support, now that autoconf dropped it.
18979         (INSTALL_PRELUDE): Reinstate old macro.
18980         * doc/install.texi: Resync from autoconf.
18981         * doc/INSTALL: Reflect recent autoconf update.
18982         * doc/INSTALL.ISO: Likewise.
18983         * doc/INSTALL.UTF-8: Likewise.
18984         Reported by Karl Berry.
18985
18986 2011-01-04  Bruce Korb  <address@hidden>
18987
18988         git-version-gen: avoid a sub-shell
18989         * build-aux/git-version-gen: Redirect stderr in `...` via
18990         "exec 2>...", rather than via an added sub-shell.
18991
18992 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18993
18994         git-version-gen: use (...) rather than sh -c '...'
18995         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18996         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18997
18998 2011-01-03  Jim Meyering  <meyering@redhat.com>
18999
19000         git-version-gen: convert leading TABs to spaces
19001         * build-aux/git-version-gen: Expand leading TABs.
19002
19003         git-version-gen: handle failed "git rev-list"
19004         * build-aux/git-version-gen: Rather than leaking a "fatal" error
19005         from git and proceeding as if it had succeeded but printed no SHA1
19006         checksums, suppress the diagnostic and handle the failure.
19007         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
19008
19009         git-version-gen: include command name in one more diagnostic
19010         * build-aux/git-version-gen: When the required .tarball-version file
19011         was missing or unreadable, you might see the diagnostic from "cat",
19012         but no trace of the name of the invoking script.  Now, you still see
19013         the diagnostic from cat, but also get one from "git-version-gen: ".
19014         Inspired by a patch from Bruce Korb.
19015
19016         update-copyright: adjust test to match changed code
19017         * tests/test-update-copyright.sh: Change test's expected output
19018         to match new actual output.
19019
19020 2011-01-02  Bruno Haible  <bruno@clisp.org>
19021
19022         getlogin_r: Avoid test failure on HP-UX 11.
19023         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
19024         ERANGE when the second argument is zero.
19025         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
19026         portability problem.
19027
19028 2011-01-02  Bruce Korb  <bkorb@gnu.org>
19029
19030         * build-aux/update-copyright: doc Simon's changes
19031
19032 2011-01-02  Simon Josefsson  <simon@josefsson.org>
19033
19034         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
19035         environment variable.
19036
19037 2011-01-02  Bruno Haible  <bruno@clisp.org>
19038
19039         unigbrk: Avoid gcc warnings.
19040         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
19041         unused variable.
19042         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
19043         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
19044         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
19045         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
19046         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
19047         Change type of first argument to 'const char *'.
19048         (main): Remove unused variable.
19049         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
19050         type of first argument to 'const char *'.
19051         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
19052         Likewise.
19053         (main): Change type of variable 's'.
19054         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
19055         to 'int'.
19056
19057 2011-01-02  Bruno Haible  <bruno@clisp.org>
19058
19059         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
19060         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
19061         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
19062         bug.
19063         * lib/pwrite.c: Undo 2010-12-31 patch.
19064         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
19065
19066 2011-01-02  Bruno Haible  <bruno@clisp.org>
19067
19068         pread: Fix test whether it works.
19069         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
19070
19071 2011-01-02  Bruno Haible  <bruno@clisp.org>
19072
19073         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
19074         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
19075         ends in "6". Don't require a specific month name. Try also the locale
19076         names found on HP-UX 11 and Solaris 7.
19077
19078 2011-01-02  Bruno Haible  <bruno@clisp.org>
19079
19080         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
19081         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
19082         C linkage.
19083         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
19084
19085 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19086
19087         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
19088         for consistency, since the "cluster" term is not used elsewhere.
19089         * lib/unigbrk.in.h: Update name.
19090         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
19091         * lib/unigbrk/u16-grapheme-next.c: Update name.
19092         * lib/unigbrk/u16-grapheme-prev.c: Update name.
19093         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
19094         * lib/unigbrk/u32-grapheme-next.c: Update name.
19095         * lib/unigbrk/u32-grapheme-prev.c: Update name.
19096         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
19097         * lib/unigbrk/u8-grapheme-next.c: Update name.
19098         * lib/unigbrk/u8-grapheme-prev.c: Update name.
19099         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
19100         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
19101         Suggested by Bruno Haible.
19102
19103 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19104
19105         Remove module 'u8-grapheme-len' as too redundant with
19106         'u8-grapheme-next'.
19107         * modules/unigbrk/u8-grapheme-len: Delete file.
19108         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
19109         * lib/unigbrk.in.h: Remove prototype for deleted function.
19110         * lib/unigbrk/u8-grapheme-len.c: Delete file.
19111         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
19112
19113         Remove module 'u16-grapheme-len' as too redundant with
19114         'u16-grapheme-next'.
19115         * modules/unigbrk/u16-grapheme-len: Delete file.
19116         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
19117         * lib/unigbrk.in.h: Remove prototype for deleted function.
19118         * lib/unigbrk/u16-grapheme-len.c: Delete file.
19119         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
19120
19121         Remove module 'u32-grapheme-len' as too redundant with
19122         'u32-grapheme-next'.
19123         * modules/unigbrk/u32-grapheme-len: Delete file.
19124         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
19125         * lib/unigbrk.in.h: Remove prototype for deleted function.
19126         * lib/unigbrk/u32-grapheme-len.c: Delete file.
19127         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
19128
19129         Suggested by Bruno Haible.
19130
19131 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
19132
19133         * unigbrk.in.h: Fix typo: "ben" => "been".
19134         Reported by Bruno Haible.
19135
19136 2011-01-01  Jim Meyering  <meyering@redhat.com>
19137
19138         maint: update almost all copyright ranges to include 2011
19139         Run the new "make update-copyright" rule.
19140
19141 2011-01-01  Jim Meyering  <meyering@redhat.com>
19142
19143         maint: update-copyright: exempt doc/INSTALL*
19144         * Makefile (update-copyright): Also exclude doc/INSTALL*,
19145         since they are generated.  Suggested by Bruno Haible.
19146
19147 2011-01-01  Jim Meyering  <meyering@redhat.com>
19148
19149         maint: refine the update-copyright rule
19150         * Makefile (update-copyright): Also exclude any file that includes
19151         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
19152         code that merely generates the comment.
19153
19154 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19155
19156         New module 'u8-grapheme-len'.
19157         * modules/unigbrk/u8-grapheme-len: New file.
19158         * modules/unigbrk/u8-grapheme-len-tests: New file.
19159         * lib/unigbrk.in.h: Add prototype for new function.
19160         * lib/unigbrk/u8-grapheme-len.c: New file.
19161         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19162
19163         New module 'u16-grapheme-len'.
19164         * modules/unigbrk/u16-grapheme-len: New file.
19165         * modules/unigbrk/u16-grapheme-len-tests: New file.
19166         * lib/unigbrk.in.h: Add prototype for new function.
19167         * lib/unigbrk/u16-grapheme-len.c: New file.
19168         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19169
19170         New module 'u32-grapheme-len'.
19171         * modules/unigbrk/u32-grapheme-len: New file.
19172         * modules/unigbrk/u32-grapheme-len-tests: New file.
19173         * lib/unigbrk.in.h: Add prototype for new function.
19174         * lib/unigbrk/u32-grapheme-len.c: New file.
19175         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19176
19177         New module 'u8-grapheme-next'.
19178         * modules/unigbrk/u8-grapheme-next: New file.
19179         * modules/unigbrk/u8-grapheme-next-tests: New file.
19180         * lib/unigbrk.in.h: Add prototype for new function.
19181         * lib/unigbrk/u8-grapheme-next.c: New file.
19182         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19183
19184         New module 'u16-grapheme-next'.
19185         * modules/unigbrk/u16-grapheme-next: New file.
19186         * modules/unigbrk/u16-grapheme-next-tests: New file.
19187         * lib/unigbrk.in.h: Add prototype for new function.
19188         * lib/unigbrk/u16-grapheme-next.c: New file.
19189         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19190
19191         New module 'u32-grapheme-next'.
19192         * modules/unigbrk/u32-grapheme-next: New file.
19193         * modules/unigbrk/u32-grapheme-next-tests: New file.
19194         * lib/unigbrk.in.h: Add prototype for new function.
19195         * lib/unigbrk/u32-grapheme-next.c: New file.
19196         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19197
19198         New module 'u8-grapheme-prev'.
19199         * modules/unigbrk/u8-grapheme-prev: New file.
19200         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19201         * lib/unigbrk.in.h: Add prototype for new function.
19202         * lib/unigbrk/u8-grapheme-prev.c: New file.
19203         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19204
19205         New module 'u16-grapheme-prev'.
19206         * modules/unigbrk/u16-grapheme-prev: New file.
19207         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19208         * lib/unigbrk.in.h: Add prototype for new function.
19209         * lib/unigbrk/u16-grapheme-prev.c: New file.
19210         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19211
19212         New module 'u32-grapheme-prev'.
19213         * modules/unigbrk/u32-grapheme-prev: New file.
19214         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19215         * lib/unigbrk.in.h: Add prototype for new function.
19216         * lib/unigbrk/u32-grapheme-prev.c: New file.
19217         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19218
19219         New module 'u8-grapheme-breaks'.
19220         * modules/unigbrk/u8-grapheme-breaks: New file.
19221         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19222         * lib/unigbrk.in.h: Add prototype for new function.
19223         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19224         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19225
19226         New module 'u16-grapheme-breaks'.
19227         * modules/unigbrk/u16-grapheme-breaks: New file.
19228         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19229         * lib/unigbrk.in.h: Add prototype for new function.
19230         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19231         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19232
19233         New module 'u32-grapheme-breaks'.
19234         * modules/unigbrk/u32-grapheme-breaks: New file.
19235         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19236         * lib/unigbrk.in.h: Add prototype for new function.
19237         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19238         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19239
19240         New module 'ulc-grapheme-breaks'.
19241         * modules/unigbrk/ulc-grapheme-breaks: New file.
19242         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19243         * m4/locale-ar.m4: New file.
19244         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19245         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19246         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19247
19248 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19249
19250         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19251         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19252         modified how this file was generated before I initially submitted
19253         the module, but failed to regenerate it.  This meant that several
19254         of the level2 entries were wrong.
19255         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19256         Remove the division-by-2 that is folded into the table now that
19257         gbrkprop.h has been regenerated properly.  Now -1 entries are
19258         handled correctly.
19259
19260         New module 'unigbrk/uc-gbrk-prop-tests'.
19261         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19262         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19263         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19264         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19265
19266 2011-01-01  Bruno Haible  <bruno@clisp.org>
19267
19268         Avoid use of hexadecimal escapes.
19269         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19270         instead of hexadecimal escapes.
19271
19272 2011-01-01  Jim Meyering  <meyering@redhat.com>
19273
19274         maint: new rule to update copyright year ranges
19275         * Makefile (update-copyright): New rule.
19276
19277         maint: indent with TABs in Makefile
19278         * Makefile: Expand leading sequences of spaces to TABs
19279
19280         version-etc: update the copyright year it reports
19281         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19282
19283 2010-12-31  Bruno Haible  <bruno@clisp.org>
19284
19285         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19286         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19287         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19288         zero.
19289
19290 2010-12-31  Bruno Haible  <bruno@clisp.org>
19291
19292         pwrite: Work around HP-UX 11.11 bug.
19293         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19294         works and set REPLACE_PWRITE if not.
19295         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19296         function.
19297         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19298
19299 2010-12-31  Bruno Haible  <bruno@clisp.org>
19300
19301         pread: Work around HP-UX 11 bugs.
19302         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19303         and set REPLACE_PREAD if not.
19304         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19305
19306 2010-12-31  Eric Blake  <eblake@redhat.com>
19307
19308         nl_langinfo: fix YESEXPR on Irix 6.5
19309         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19310         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19311         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19312         it.
19313
19314 2010-12-31  Bruno Haible  <bruno@clisp.org>
19315
19316         iconv: Document HP-UX 11 bug.
19317         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19318
19319 2010-12-31  Bruno Haible  <bruno@clisp.org>
19320
19321         ldexpl: Fix link error on HP-UX 11.
19322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19323         LDEXPL_LIBM, using $ISNANL_LIBM.
19324
19325 2010-12-31  Eric Blake  <eblake@redhat.com>
19326
19327         ftello: avoid compilation failure with SunStudio c89
19328         * lib/ftello.c (ftello): Use lseek, not llseek.
19329
19330         tests: avoid failing coreutils tests on cygwin
19331         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19332         (create_exe_shims_): Return 0 when skipping.
19333
19334 2010-12-31  Bruno Haible  <bruno@clisp.org>
19335
19336         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19337         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19338
19339 2010-12-31  Bruno Haible  <bruno@clisp.org>
19340
19341         waitpid: Fix link error in C++ mode.
19342         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19343
19344 2010-12-31  Bruno Haible  <bruno@clisp.org>
19345
19346         isnan: Use GCC built-ins when possible.
19347         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19348         __builtin_isnan.
19349         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19350         (isnan): Define using GCC built-ins for GCC >= 4.0.
19351
19352 2010-12-31  Bruno Haible  <bruno@clisp.org>
19353
19354         isnand: Fix mistake.
19355         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19356         __builtin_isnand.
19357
19358 2010-12-31  Bruno Haible  <bruno@clisp.org>
19359
19360         open: Avoid C++ error on HP-UX 11.
19361         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19362
19363 2010-12-31  Bruno Haible  <bruno@clisp.org>
19364
19365         time_r: Add missing declarations on HP-UX 11.
19366         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19367         instead of HAVE_LOCALTIME_R.
19368         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19369         HAVE_LOCALTIME_R always.
19370         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19371         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19372         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19373         HAVE_LOCALTIME_R.
19374         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19375         * doc/posix-functions/localtime_r.texi: Likewise.
19376
19377 2010-12-29  Eric Blake  <eblake@redhat.com>
19378
19379         mountlist: tweak previous commit
19380         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19381         Reported by Paul Eggert.
19382
19383         mountlist: fix local drive detection on cygwin
19384         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19385         that works for cygwin.
19386
19387 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19388
19389         ftoastr, snprintf: ftoastr + snprintf module
19390         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19391         since the snprintf module now should be good enough here.
19392         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19393         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19394         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19395         GNULIB_SNPRINTF only for the test directory, and the latter
19396         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19397         seems to suffice by itself.
19398
19399 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19400
19401         alloca: one step towards thread-safety
19402         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19403         need for a static variable.  All callers changed.  This does not
19404         make the alloca replacement thread-safe, but it's one step.
19405
19406         tests: minor indenting change
19407         * tests/init.sh: Sync from coreutils housekeeping patch
19408         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19409         to keep lines within 80 columns.
19410
19411 2010-12-28  Jim Meyering  <meyering@redhat.com>
19412
19413         regex: don't infloop on persistent failing calloc
19414         * lib/regexec.c (build_trtable): Return failure indication upon
19415         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19416         In glibc, this was fixed for version 2.13:
19417         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19418
19419 2010-12-28  Bruno Haible  <bruno@clisp.org>
19420             Paul Eggert <eggert@cs.ucla.edu>
19421
19422         linkat: Make implementation robust against system behaviour variations.
19423         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19424         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19425         way, and to -2 if it needs a generic runtime test.
19426         * lib/linkat.c (solaris_optimized_link_immediate,
19427         solaris_optimized_link_follow): New functions.
19428         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19429         (check_same_link): Use it.
19430
19431 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19432
19433         New module 'unigbrk/base'.
19434         * modules/unigbrk/base: New file.
19435         * lib/unigbrk.in.h: New file.
19436
19437         New module 'unigbrk/uc-gbrk-prop'.
19438         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19439         * modules/unigbrk/uc-gbrk-prop: New file.
19440         * lib/unigbrk/gbrkprop.h: New file.
19441         * lib/unigbrk/uc-gbrk-prop.c: New file.
19442
19443         New module 'unigbrk/uc-is-grapheme-break'.
19444         * modules/unigbrk/uc-is-grapheme-break: New file.
19445         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19446         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19447         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19448         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19449         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19450
19451         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19452
19453 2010-12-27  Bruno Haible  <bruno@clisp.org>
19454
19455         linkat test: Avoid failure on Solaris 11 2010-11.
19456         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19457
19458 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19459
19460         utimens: work around glibc rounding bug on more platforms
19461         * lib/utimens.c (fdutimens): Work around rounding bug even if
19462         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19463         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19464
19465 2010-12-27  Bruno Haible  <bruno@clisp.org>
19466
19467         select tests: Improve comments.
19468         * tests/test-select.c (do_select): Add comments.
19469
19470 2010-12-27  Bruno Haible  <bruno@clisp.org>
19471
19472         select tests: Safer way of handling timeout.
19473         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19474         at every invocation.
19475
19476 2010-12-27  Bruno Haible  <bruno@clisp.org>
19477
19478         select tests: Use 'bool' where appropriate.
19479         * tests/test-select.c (connect_to_socket): Change argument type to
19480         'bool'.
19481
19482 2010-12-27  Bruno Haible  <bruno@clisp.org>
19483
19484         select tests: Use existing modules.
19485         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19486         (configure.ac): Don't test for unistd.h.
19487         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19488         declared in <unistd.h>.
19489
19490 2010-12-27  Bruno Haible  <bruno@clisp.org>
19491
19492         mbrtowc: Work around a Solaris 7 bug.
19493         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19494         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19495         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19496         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19497         MBRTOWC_NULL_ARG1_BUG.
19498         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19499         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19500         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19501         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19502
19503 2010-12-27  Jim Meyering  <meyering@redhat.com>
19504
19505         read-file.c: tweak syntax
19506         * lib/read-file.c (fread_file): Remove space after "*" in function
19507         definitions.
19508
19509 2010-12-27  Bruno Haible  <bruno@clisp.org>
19510
19511         times test: Avoid gcc warnings on OSF/1.
19512         * tests/test-times.c (main): Cast printf arguments from clock_t to
19513         'long int'.
19514
19515 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19516
19517         utimens: work around glibc rounding bug on older Linux kernels
19518         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19519         on Linux with a glibc whose utimes might not work, then work
19520         around a longstanding glibc bug involving rounding rather than
19521         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19522         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19523
19524 2010-12-26  Bruno Haible  <bruno@clisp.org>
19525
19526         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19527         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19528         _GL_CXXALIAS_SYS.
19529         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19530
19531 2010-12-26  Bruno Haible  <bruno@clisp.org>
19532
19533         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19534         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19535         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19536         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19537         looking for the declaration.
19538         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19539         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19540         problem.
19541         * doc/posix-functions/inet_pton.texi: Likewise.
19542
19543 2010-12-26  Bruno Haible  <bruno@clisp.org>
19544
19545         arpa_inet: Use the common idioms with C++ support.
19546         * lib/arpa_inet.in.h: Include c++defs.h.
19547         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19548         support.
19549         * modules/arpa_inet (Depends-on): Add c++defs.
19550         (Makefile.am): Substitute the contents of c++defs.h.
19551         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19552         * modules/arpa_inet-c++-tests: New file.
19553         * tests/test-arpa_inet-c++.cc: New file.
19554
19555 2010-12-25  Bruno Haible  <bruno@clisp.org>
19556
19557         Fix more C++ link errors on Solaris 8.
19558         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19559         $(LIB_EACCESS).
19560         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19561         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19562         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19563         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19564         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19565
19566 2010-12-25  Bruno Haible  <bruno@clisp.org>
19567
19568         printf-posix: Fix link error when a non-GCC compiler is used.
19569         * lib/stdio.in.h (printf): When not using GCC, override printf
19570         correctly.
19571         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19572
19573 2010-12-25  Bruno Haible  <bruno@clisp.org>
19574
19575         strerror_r-posix: Update doc.
19576         * doc/posix-functions/strerror_r.texi: Update doc about the return
19577         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19578
19579 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19580
19581         utimens: simplify the logic of the previous change
19582         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19583         This should not affect whether the test succeeds or fails.
19584
19585         utimens: configure better on hosts with NFS clock skew
19586         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19587         uses the clock of the local host.  It might use the clock of the
19588         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19589         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19590
19591 2010-12-25  Bruno Haible  <bruno@clisp.org>
19592
19593         ptsname test: Avoid failure on Solaris.
19594         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19595         open a pseudo-terminal; don't use BSD-style ptys.
19596         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19597
19598 2010-12-25  Bruno Haible  <bruno@clisp.org>
19599
19600         ptsname: Avoid ERANGE failure on some systems.
19601         * lib/ptsname.c (buffer): Increase size.
19602
19603 2010-12-25  Bruno Haible  <bruno@clisp.org>
19604
19605         rename, renameat: Avoid test failures at NFS mounted locations.
19606         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19607         so that subsequent mkdir calls succeed.
19608
19609 2010-12-25  Bruno Haible  <bruno@clisp.org>
19610
19611         iswblank: Fix C++ link error on Solaris 8.
19612         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19613         _GL_FUNCDECL_SYS.
19614
19615 2010-12-25  Bruno Haible  <bruno@clisp.org>
19616
19617         unistd: Fix C++ link error on Solaris 8.
19618         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19619
19620 2010-12-25  Bruno Haible  <bruno@clisp.org>
19621
19622         readlink doc: Mention an old glibc bug.
19623         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19624
19625 2010-12-25  Bruno Haible  <bruno@clisp.org>
19626
19627         fcntl-h: Fix for use of C++ on glibc systems.
19628         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19629         also on glibc systems in C++ mode.
19630         Reported by Gary V. Vaughan <gary@gnu.org>.
19631
19632 2010-12-25  Bruno Haible  <bruno@clisp.org>
19633
19634         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19635         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19636
19637 2010-12-25  Bruno Haible  <bruno@clisp.org>
19638
19639         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19640         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19641         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19642         test whether truncl works according to ISO C 99 with IEC 60559.
19643         * m4/truncl-ieee.m4: New file.
19644         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19645         m4/signbit.m4.
19646         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19647
19648 2010-12-25  Bruno Haible  <bruno@clisp.org>
19649
19650         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19651         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19652         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19653         test whether ceill works according to ISO C 99 with IEC 60559.
19654         * m4/ceill-ieee.m4: New file.
19655         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19656         m4/signbit.m4.
19657         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19658
19659 2010-12-25  Bruno Haible  <bruno@clisp.org>
19660
19661         Ensure all prerequisites of <wchar.h> are included.
19662         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19663         before <wchar.h>.
19664         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19665         gl_MBRLEN_NUL_RETVAL): Likewise.
19666         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19667         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19668         AC_FUNC_MBRTOWC): Likewise.
19669         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19670         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19671         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19672         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19673         Likewise.
19674         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19675         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19676         (gl_WCHAR_H): Improve comments.
19677         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19678
19679 2010-12-25  Bruno Haible  <bruno@clisp.org>
19680
19681         strtok_r: Fix C syntax error in autoconf macro.
19682         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19683         characters in test program.
19684
19685 2010-12-24  Bruno Haible  <bruno@clisp.org>
19686
19687         ceil, trunc, round: Fix gcc warnings.
19688         * lib/ceil.c (MIN): Undefine before redefining.
19689         * lib/trunc.c (MIN): Likewise.
19690         * lib/round.c (MIN): Likewise.
19691         Include <math.h> first.
19692
19693 2010-12-24  Bruno Haible  <bruno@clisp.org>
19694
19695         select tests: Avoid failures on OSF/1 5.1.
19696         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19697         failure of closing the last socket; it may fail with ECONNRESET.
19698
19699 2010-12-24  Eric Blake  <eblake@redhat.com>
19700
19701         stdint: avoid HP-UX 10.20 preprocessor bug
19702         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19703         than #if.
19704         * tests/test-floor2.c (main): Likewise.
19705         Reported by Peter O'Gorman.
19706
19707         pipe: make obsoletion transition easier
19708         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19709         * modules/pipe (Files): Include revived file.
19710         (Include): Drop reference, to mirror getdate's behavior.
19711
19712 2010-12-24  Bruno Haible  <bruno@clisp.org>
19713
19714         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19715         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19716         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19717         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19718
19719 2010-12-24  Bruno Haible  <bruno@clisp.org>
19720
19721         gethostname: Ensure declaration on NonStop Kernel.
19722         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19723         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19724
19725 2010-12-24  Bruno Haible  <bruno@clisp.org>
19726
19727         sys_select: Ensure all necessary types on NonStop Kernel.
19728         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19729         include <sys/time.h>.
19730         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19731         NonStop Kernel.
19732         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19733
19734 2010-12-24  Bruno Haible  <bruno@clisp.org>
19735
19736         sys_select: Remove unneeded include.
19737         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19738         have <sys/select.h>.
19739
19740 2010-12-24  Bruno Haible  <bruno@clisp.org>
19741
19742         gethostname: Provide a fallback for HOST_NAME_MAX.
19743         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19744         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19745         instead.
19746         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19747
19748 2010-12-24  Bruno Haible  <bruno@clisp.org>
19749
19750         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19751         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19752         (SA_RESTART): Likewise.
19753         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19754
19755 2010-12-24  Bruno Haible  <bruno@clisp.org>
19756
19757         signal: Define NSIG.
19758         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19759         * tests/test-signal.c (nsig): New variable.
19760         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19761
19762 2010-12-24  Bruno Haible  <bruno@clisp.org>
19763
19764         rename, renameat: Avoid test failures on OSF/1 5.1.
19765         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19766         alternative error codes.
19767         * tests/test-renameat.c (main): Likewise.
19768
19769 2010-12-24  Bruno Haible  <bruno@clisp.org>
19770
19771         *printf: Detect large precisions bug on Solaris 10/SPARC.
19772         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19773         by Paul Eggert.
19774         * tests/test-snprintf-posix.h (test_function): Add this test code here
19775         too.
19776         * tests/test-sprintf-posix.h (test_function): Likewise.
19777         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19778         * tests/test-vasprintf-posix.c (test_function): Likewise.
19779         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19780         around by gnulib.
19781         * doc/posix-functions/printf.texi: Likewise.
19782         * doc/posix-functions/snprintf.texi: Likewise.
19783         * doc/posix-functions/sprintf.texi: Likewise.
19784         * doc/posix-functions/vfprintf.texi: Likewise.
19785         * doc/posix-functions/vprintf.texi: Likewise.
19786         * doc/posix-functions/vsnprintf.texi: Likewise.
19787         * doc/posix-functions/vsprintf.texi: Likewise.
19788         * doc/posix-functions/dprintf.texi: Undo last commit.
19789         * doc/posix-functions/vdprintf.texi: Likewise.
19790
19791 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19792
19793         tests: port test-fdutimensat.c to Solaris 8
19794         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19795         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19796         On Solaris 8, it fails with errno == ENOSYS, because there is no
19797         futimens (so it can't use the fd), and there is no lutimens (so it
19798         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19799
19800         vsnprintf: make more consistent with snprintf; doc fixes
19801
19802         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19803         the byte count return problem was promoted from the snprintf-posix
19804         to the snprintf module.
19805         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19806         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19807         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19808         * tests/test-snprintf.c (main): Check the byte count returned.
19809         * tests/test-vsnprintf.c (main): Likewise.
19810
19811 2010-12-23  Eric Blake  <eblake@redhat.com>
19812
19813         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19814         * modules/sigpipe (License): Relax license.
19815
19816 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19817
19818         doc: document Solaris printf bug with large float precisions
19819         * doc/posix-functions/dprintf.texi (dprintf):
19820         * doc/posix-functions/fprintf.texi (fprintf):
19821         * doc/posix-functions/printf.texi (printf):
19822         * doc/posix-functions/snprintf.texi (snprintf):
19823         * doc/posix-functions/sprintf.texi (sprintf):
19824         * doc/posix-functions/vdprintf.texi (vdprintf):
19825         * doc/posix-functions/vfprintf.texi (vfprintf):
19826         * doc/posix-functions/vprintf.texi (vprintf):
19827         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19828         * doc/posix-functions/vsprintf.texi (vsprintf):
19829         Mention that these functions mishandle large floating point
19830         precisions on Solaris 10.  The same bug is also present in Solaris
19831         8, and I assume earlier.  This causes "cd gnulib-tests; make
19832         check" to fail on Solaris 8 (and I assume, later) when building
19833         the latest coreutils, in test-vasprintf-posix's call to
19834         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19835         the wide flavors (e.g., wprintf) so this patch just updates the
19836         documentation for the narrow ones.
19837
19838         test-posixtm.c: add two tests
19839         * tests/test-posixtm.c: Add two tests, to highlight the
19840         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19841         around this bug; this is merely to document it.
19842
19843 2010-12-22  Bruno Haible  <bruno@clisp.org>
19844
19845         getlogin_r: Work around portability problem on OSF/1.
19846         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19847         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19848         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19849         test for a truncated result.
19850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19851         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19852         * modules/getlogin_r (Depends-on): Add memchr.
19853         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19854
19855 2010-12-22  Bruno Haible  <bruno@clisp.org>
19856
19857         ptsname: Avoid test failure on OSF/1 5.1.
19858         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19859         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19860         (same_slave): New function.
19861         (main): Use it to compare ptsname's result with the expected file name.
19862
19863 2010-12-22  Bruno Haible  <bruno@clisp.org>
19864
19865         Port extended stdio modules to HP NonStop Kernel.
19866         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19867         macros.
19868         * lib/fbufmode.c: Update comments.
19869         * lib/fflush.c: Likewise.
19870         * lib/fpurge.c: Likewise.
19871         * lib/freadable.c: Likewise.
19872         * lib/freadahead.c: Likewise.
19873         * lib/freading.c: Likewise.
19874         * lib/freadptr.c: Likewise.
19875         * lib/freadseek.c: Likewise.
19876         * lib/fseeko.c: Likewise.
19877         * lib/fseterr.c: Likewise.
19878         * lib/fwritable.c: Likewise.
19879         * lib/fwriting.c: Likewise.
19880         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19881
19882 2010-12-22  Bruno Haible  <bruno@clisp.org>
19883
19884         ttyname_r: Work around bug on OSF/1 5.1.
19885         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19886         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19887         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19888         present.
19889         * lib/ttyname_r.c (ttyname_r): Update comments.
19890
19891 2010-12-22  Bruno Haible  <bruno@clisp.org>
19892
19893         round: Implement result sign according to IEEE 754.
19894         * lib/round.c (MIN, MINUS_ZERO): New macros.
19895         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19896         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19897         * tests/test-round-ieee.c (main): Likewise.
19898         * tests/test-roundl-ieee.c (main): Likewise.
19899
19900         trunc: Implement result sign according to IEEE 754.
19901         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19902         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19903         * tests/test-trunc2.c: Include minus-zero.h.
19904         (MINUS_ZERO): New macro.
19905         (trunc_reference): Keep in sync with lib/trunc.c.
19906         * tests/test-truncf2.c: Include minus-zero.h.
19907         (MINUS_ZERO): New macro.
19908         (truncf_reference): Keep in sync with lib/trunc.c.
19909         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19910         * tests/test-trunc-ieee.c (main): Likewise.
19911         * tests/test-truncl-ieee.c (main): Likewise.
19912
19913         ceil: Implement result sign according to IEEE 754.
19914         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19915         (FUNC): Return -0.0 for -1 < x < 0.
19916         * tests/test-ceil2.c: Include minus-zero.h.
19917         (MINUS_ZERO): New macro.
19918         (ceil_reference): Keep in sync with lib/ceil.c.
19919         * tests/test-ceilf2.c: Include minus-zero.h.
19920         (MINUS_ZERO): New macro.
19921         (ceilf_reference): Keep in sync with lib/ceil.c.
19922         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19923         * tests/test-ceil-ieee.c (main): Likewise.
19924         * tests/test-ceill-ieee.c (main): Likewise.
19925
19926         floor: Implement result sign according to IEEE 754.
19927         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19928         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19929         * tests/test-floorf2.c (floorf_reference): Likewise.
19930         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19931         * tests/test-floor-ieee.c (main): Likewise.
19932         * tests/test-floorl-ieee.c (main): Likewise.
19933
19934 2010-12-22  Bruno Haible  <bruno@clisp.org>
19935
19936         getaddrinfo: Update doc.
19937         * doc/posix-functions/gai_strerror.texi: Return type is also different
19938         on AIX and HP-UX.
19939
19940 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19941
19942         getaddrinfo, inet_ntop: Update doc for Solaris.
19943         * doc/posix-functions/gai_strerror.texi: Return type is also an
19944         issue on Solaris 9 and earlier.
19945         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19946         on Solaris 10 and earlier.
19947
19948 2010-12-21  Bruno Haible  <bruno@clisp.org>
19949
19950         New module 'roundl-ieee'.
19951         * modules/roundl-ieee: New file.
19952         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19953         test whether roundl works according to ISO C 99 with IEC 60559.
19954         * m4/roundl-ieee.m4: New file.
19955         * modules/roundl-ieee-tests: New file.
19956         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19957         * tests/test-roundl.c (main): Remove signbit tests.
19958         * modules/roundl-tests (Depends-on): Remove signbit.
19959         * doc/posix-functions/roundl.texi: Mention the new module.
19960
19961 2010-12-21  Bruno Haible  <bruno@clisp.org>
19962
19963         New module 'truncl-ieee'.
19964         * modules/truncl-ieee: New file.
19965         * modules/truncl-ieee-tests: New file.
19966         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19967         * tests/test-truncl.c (main): Remove signbit tests.
19968         * modules/truncl-tests (Depends-on): Remove signbit.
19969         * doc/posix-functions/truncl.texi: Mention the new module.
19970
19971 2010-12-21  Bruno Haible  <bruno@clisp.org>
19972
19973         New module 'ceill-ieee'.
19974         * modules/ceill-ieee: New file.
19975         * modules/ceill-ieee-tests: New file.
19976         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19977         * tests/test-ceill.c (main): Remove signbit tests.
19978         * modules/ceill-tests (Depends-on): Remove signbit.
19979         * doc/posix-functions/ceill.texi: Mention the new module.
19980
19981 2010-12-21  Bruno Haible  <bruno@clisp.org>
19982
19983         New module 'floorl-ieee'.
19984         * modules/floorl-ieee: New file.
19985         * modules/floorl-ieee-tests: New file.
19986         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19987         * tests/test-floorl.c (main): Remove signbit tests.
19988         * modules/floorl-tests (Depends-on): Remove signbit.
19989         * doc/posix-functions/floorl.texi: Mention the new module.
19990
19991 2010-12-21  Bruno Haible  <bruno@clisp.org>
19992
19993         New module 'round-ieee'.
19994         * modules/round-ieee: New file.
19995         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19996         whether round works according to ISO C 99 with IEC 60559.
19997         * m4/round-ieee.m4: New file.
19998         * modules/round-ieee-tests: New file.
19999         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
20000         * tests/test-round1.c (main): Remove signbit tests.
20001         * modules/round-tests (Depends-on): Remove 'signbit'.
20002         * doc/posix-functions/round.texi: Mention the new module.
20003
20004 2010-12-21  Bruno Haible  <bruno@clisp.org>
20005
20006         New module 'trunc-ieee'.
20007         * modules/trunc-ieee: New file.
20008         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
20009         whether trunc works according to ISO C 99 with IEC 60559.
20010         * m4/trunc-ieee.m4: New file.
20011         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
20012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
20013         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
20014         * modules/trunc-ieee-tests: New file.
20015         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
20016         * tests/test-trunc1.c (main): Remove signbit tests.
20017         * modules/trunc-tests (Depends-on): Remove 'signbit'.
20018         * doc/posix-functions/trunc.texi: Mention the new module.
20019
20020 2010-12-21  Bruno Haible  <bruno@clisp.org>
20021
20022         New module 'ceil-ieee'.
20023         * modules/ceil-ieee: New file.
20024         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
20025         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
20026         ISO C 99 with IEC 60559.
20027         * m4/ceil-ieee.m4: New file.
20028         * modules/ceil (Files): Add lib/ceil.c.
20029         (Depends-on): Add 'float'.
20030         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20031         * lib/math.in.h (ceil): New declaration.
20032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
20033         REPLACE_CEIL.
20034         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
20035         * modules/ceil-ieee-tests: New file.
20036         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
20037         * tests/test-math-c++.cc: Check the signature of 'ceil'.
20038         * doc/posix-functions/ceil.texi: Mention the new module.
20039
20040 2010-12-21  Bruno Haible  <bruno@clisp.org>
20041
20042         New module 'floor-ieee'.
20043         * modules/floor-ieee: New file.
20044         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
20045         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
20046         ISO C 99 with IEC 60559.
20047         * m4/floor-ieee.m4: New file.
20048         * modules/floor (Files): Add lib/floor.c.
20049         (Depends-on): Add 'float'.
20050         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
20051         * lib/math.in.h (floor): New declaration.
20052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
20053         REPLACE_FLOOR.
20054         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
20055         * modules/floor-ieee-tests: New file.
20056         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
20057         * tests/test-math-c++.cc: Check the signature of 'floor'.
20058         * doc/posix-functions/floor.texi: Mention the new module.
20059
20060 2010-12-21  Bruno Haible  <bruno@clisp.org>
20061
20062         New module 'roundf-ieee'.
20063         * modules/roundf-ieee: New file.
20064         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
20065         test whether roundf works according to ISO C 99 with IEC 60559.
20066         * m4/roundf-ieee.m4: New file.
20067         * modules/roundf-ieee-tests: New file.
20068         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
20069         * tests/test-roundf1.c (main): Remove signbit tests.
20070         * modules/roundf-tests (Depends-on): Remove 'signbit'.
20071         * doc/posix-functions/roundf.texi: Mention the new module.
20072
20073 2010-12-21  Bruno Haible  <bruno@clisp.org>
20074
20075         New module 'truncf-ieee'.
20076         * modules/truncf-ieee: New file.
20077         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
20078         test whether truncf works according to ISO C 99 with IEC 60559.
20079         * m4/truncf-ieee.m4: New file.
20080         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
20081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
20082         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
20083         * modules/truncf-ieee-tests: New file.
20084         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
20085         * tests/test-truncf1.c (main): Remove signbit tests.
20086         * modules/truncf-tests (Depends-on): Remove 'signbit'.
20087         * doc/posix-functions/truncf.texi: Mention the new module.
20088
20089 2010-12-21  Bruno Haible  <bruno@clisp.org>
20090
20091         New module 'ceilf-ieee'.
20092         * modules/ceilf-ieee: New file.
20093         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
20094         test whether ceilf works according to ISO C 99 with IEC 60559.
20095         * m4/ceilf-ieee.m4: New file.
20096         * modules/ceilf-ieee-tests: New file.
20097         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
20098         * tests/test-ceilf1.c (main): Remove signbit tests.
20099         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
20100         * doc/posix-functions/ceilf.texi: Mention the new module.
20101
20102 2010-12-21  Bruno Haible  <bruno@clisp.org>
20103
20104         New module 'floorf-ieee'.
20105         * modules/floorf-ieee: New file.
20106         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
20107         test whether floorf works according to ISO C 99 with IEC 60559.
20108         * m4/floorf-ieee.m4: New file.
20109         * modules/floorf-ieee-tests: New file.
20110         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
20111         * tests/test-floorf1.c (main): Remove signbit tests.
20112         * modules/floorf-tests (Depends-on): Remove 'signbit'.
20113         * doc/posix-functions/floorf.texi: Mention the new module.
20114
20115 2010-12-21  Bruno Haible  <bruno@clisp.org>
20116
20117         Support for minus zero in autoconf macros.
20118         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
20119         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
20120         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
20121         * tests/minus-zero.h: Update comments.
20122
20123 2010-12-21  Bruno Haible  <bruno@clisp.org>
20124
20125         Tests for module 'ceil'.
20126         * modules/ceil-tests: New file.
20127         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
20128         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
20129
20130 2010-12-21  Bruno Haible  <bruno@clisp.org>
20131
20132         Tests for module 'floor'.
20133         * modules/floor-tests: New file.
20134         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
20135         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
20136
20137 2010-12-21  Bruno Haible  <bruno@clisp.org>
20138
20139         math: Fix indentation.
20140         * lib/math.in.h (floorf): Fix indentation.
20141
20142 2010-12-21  Bruno Haible  <bruno@clisp.org>
20143
20144         Fix cross-compilation guesses on Solaris.
20145         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
20146         not match "solaris2.10".
20147         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20148         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
20149         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
20150
20151 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20152
20153         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
20154         This fixes a problem observed with the latest coreutils snapshot
20155         that caused a test to fail on Solaris 8.  src/csplit.c's call
20156         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
20157         earlier, instead of returning the number of bytes that would have
20158         been generated; this causes csplit to incorrectly report memory
20159         exhaustion.
20160         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
20161         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20162         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20163         comments to match.
20164         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20165         Fix typo in matching older versions of Solaris: "solaris2.10"
20166         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20167         only for guessing while cross-compiling.
20168         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20169
20170 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20171
20172         ftoastr: fix comment again
20173         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20174         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20175         Also, simplify example a bit by using flags = 0.
20176
20177 2010-12-20  Bruno Haible  <bruno@clisp.org>
20178
20179         round*, trunc*: Update documentation regarding glibc.
20180         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20181         * doc/posix-functions/round.texi: Likewise.
20182         * doc/posix-functions/roundl.texi: Likewise.
20183         * doc/posix-functions/truncf.texi: Likewise.
20184         * doc/posix-functions/trunc.texi: Likewise.
20185         * doc/posix-functions/truncl.texi: Likewise.
20186
20187 2010-12-20  Bruno Haible  <bruno@clisp.org>
20188
20189         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20190         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20191         * doc/posix-functions/round.texi: Likewise.
20192         * doc/posix-functions/roundl.texi: Likewise.
20193
20194 2010-12-20  Bruno Haible  <bruno@clisp.org>
20195
20196         ttyname_r: Add missing declaration on HP-UX 11.
20197         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20198         HAVE_TTYNAME_R.
20199         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20200         declared. Set HAVE_TTYNAME_R always.
20201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20202         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20203         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20204         HAVE_TTYNAME_R.
20205         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20206
20207 2010-12-20  Bruno Haible  <bruno@clisp.org>
20208
20209         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20210         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20211         * doc/posix-functions/getlogin_r.texi: Likewise.
20212         * tests/test-getlogin.c: Include <errno.h>.
20213         (main): Avoid test failure on HP-UX 11.11.
20214         * tests/test-getlogin_r.c (main): Likewise.
20215
20216 2010-12-20  Bruno Haible  <bruno@clisp.org>
20217
20218         getlogin_r: Add missing declaration on HP-UX 11.
20219         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20220         declared also when it exists as a function.
20221         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20222
20223 2010-12-20  Bruno Haible  <bruno@clisp.org>
20224
20225         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20226         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20227         through wcrtomb.
20228
20229 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20230
20231         ftoastr: fix comment
20232         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20233         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20234
20235 2010-12-19  Bruno Haible  <bruno@clisp.org>
20236
20237         isnan: Ensure it is a macro.
20238         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20239         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20240         Solaris.
20241
20242 2010-12-19  Bruno Haible  <bruno@clisp.org>
20243
20244         ldexpl test: Fix link error on OSF/1 5.1.
20245         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20246
20247 2010-12-19  Bruno Haible  <bruno@clisp.org>
20248
20249         wctype: Make it work in C++ mode on OSF/1 5.1.
20250         * lib/wctype.in.h (iswblank): Declare but not define here.
20251         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20252         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20253         * modules/wctype (Files): Add lib/iswblank.c.
20254
20255 2010-12-19  Bruno Haible  <bruno@clisp.org>
20256
20257         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20258         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20259         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20260
20261 2010-12-19  Bruno Haible  <bruno@clisp.org>
20262
20263         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20264         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20265         _POSIX_PII_SOCKET.
20266         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20267         * doc/posix-functions/recvfrom.texi: Likewise.
20268         * doc/posix-functions/send.texi: Likewise.
20269         * doc/posix-functions/sendto.texi: Likewise.
20270
20271 2010-12-19  Bruno Haible  <bruno@clisp.org>
20272
20273         tcgetsid: Add missing declaration on OSF/1 5.1.
20274         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20275         HAVE_TCGETSID.
20276         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20277         Don't set HAVE_TCGETSID.
20278         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20279         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20280         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20281         HAVE_TCGETSID.
20282         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20283
20284 2010-12-19  Bruno Haible  <bruno@clisp.org>
20285
20286         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20287         * lib/stdio.in.h: During the include_next statement, let recursive
20288         includes of this file include only the system header file.
20289
20290 2010-12-19  Bruno Haible  <bruno@clisp.org>
20291
20292         iconv_open: Fix regression from 2010-12-04.
20293         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20294         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20295
20296 2010-12-19  Bruno Haible  <bruno@clisp.org>
20297
20298         stdbool test: Avoid a gcc warning.
20299         * tests/test-stdbool.c (main): Fail if e1 is false.
20300         Reported by Jim Meyering.
20301
20302 2010-12-19  Jim Meyering  <meyering@redhat.com>
20303
20304         setenv: restore to working order
20305         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20306         mistakenly removed.
20307         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20308         HAVE_SETENV.
20309         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20310         HAVE_SETENV.
20311
20312 2010-12-19  Bruno Haible  <bruno@clisp.org>
20313
20314         Document some different function declarations on OSF/1 5.1.
20315         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20316         * doc/posix-functions/inet_ntop.texi: Likewise.
20317         * doc/posix-functions/gethostname.texi: Likewise.
20318         * lib/unistd.in.h (gethostname): Update comment.
20319
20320 2010-12-19  Bruno Haible  <bruno@clisp.org>
20321
20322         doc: Mention vasprintf-posix module.
20323         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20324         the 'vasprintf-posix' module.
20325         * doc/glibc-functions/vasprintf.texi: Likewise.
20326
20327 2010-12-19  Bruno Haible  <bruno@clisp.org>
20328
20329         unsetenv: Add missing declaration on OSF/1 5.1.
20330         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20331         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20332         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20334         not HAVE_UNSETENV.
20335         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20336         HAVE_UNSETENV.
20337         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20338
20339 2010-12-19  Bruno Haible  <bruno@clisp.org>
20340
20341         setenv: Add missing declaration on OSF/1 5.1.
20342         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20343         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20344         declared. Don't set HAVE_SETENV.
20345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20346         not HAVE_SETENV.
20347         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20348         HAVE_SETENV.
20349         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20350
20351 2010-12-19  Bruno Haible  <bruno@clisp.org>
20352
20353         nl_langinfo tests: Avoid gcc warning.
20354         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20355
20356 2010-12-19  Bruno Haible  <bruno@clisp.org>
20357
20358         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20359         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20360         _GL_CXXALIAS_SYS.
20361
20362 2010-12-19  Bruno Haible  <bruno@clisp.org>
20363
20364         stdbool: Relax test.
20365         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20366         address to 'bool' work in static initializer, for compilers other than
20367         GCC.
20368
20369 2010-12-19  Bruno Haible  <bruno@clisp.org>
20370
20371         ftello: Add missing declaration on OSF/1 5.1.
20372         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20373         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20375         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20376         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20377
20378 2010-12-19  Bruno Haible  <bruno@clisp.org>
20379
20380         fseeko: Add missing declaration on OSF/1 5.1.
20381         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20384         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20385         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20386
20387 2010-12-19  Bruno Haible  <bruno@clisp.org>
20388
20389         fchdir: Add missing declaration on OSF/1 5.1.
20390         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20393         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20394         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20395
20396 2010-12-19  Bruno Haible  <bruno@clisp.org>
20397
20398         relocatable-prog-wrapper: Separate from relocatable-prog.
20399         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20400         uninstall-relocwrapper rule here.
20401         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20402         Reported by Ian Beckwith <ianb@erislabs.net>.
20403
20404 2010-12-19  Bruno Haible  <bruno@clisp.org>
20405
20406         unistr/u8-mbsnlen: Add missing dependency.
20407         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20408         Reported by Ian Beckwith <ianb@erislabs.net>.
20409
20410 2010-12-19  Bruno Haible  <bruno@clisp.org>
20411
20412         iconv: Make it possible again to use this module without 'iconv-h'.
20413         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20414         if it is not defined.
20415         Reported by Ian Beckwith <ianb@erislabs.net>.
20416
20417 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20418
20419         acl: port to Solaris 8 when copying from tmpfs to ufs
20420         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20421         error number.  Problem observed on Solaris 8 with latest
20422         coreutils, with "mv A B", where A is on a tmpfs file system and B
20423         is on a ufs file system.  This caused coreutils' mv/part-symlink
20424         test to fail.
20425
20426         tests: set fail=0 at start
20427         * tests/init.sh (setup_): Move fail=0 initialization here ...
20428         (mktempd_): ... from here, so that tests can rely on fail being
20429         set to 0 initially.  This fixes a problem in coreutils; see:
20430         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20431
20432 2010-12-18  Bruno Haible  <bruno@clisp.org>
20433
20434         memmem-simple: Stylistic changes.
20435         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20436         Fix preprocessor directive indentation.
20437
20438 2010-12-15  Pádraig Brady <P@draigBrady.com>
20439
20440         memmem, memmem-simple: reorganize and expand empty needle check
20441         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20442         functional checks to memmem-simple so that one has a fully functional
20443         memmem by using just this module.
20444         Restrict the performance only check to the memmem module.
20445         Also expand the empty needle check to ensure the correct
20446         pointer is returned, not just a non NULL pointer.
20447         * doc/glibc-functions/memmem.texi: Rearrange the portability
20448         documentation to correlate with the rearranged checks.
20449         Clarify exactly how the memmem and memmem-simple modules
20450         relate to each other.
20451
20452 2010-12-15  Pádraig Brady <P@draigBrady.com>
20453             Bruno Haible  <bruno@clisp.org>
20454
20455         Improve cross-compilation guesses for uClibc.
20456         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20457         that uClibc does not have the glibc bug.
20458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20459         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20460
20461 2010-12-14  Eric Blake  <eblake@redhat.com>
20462
20463         configmake: provide fallbacks for oldest supported autotools
20464         * m4/configmake.m4: New file.
20465         * modules/configmake (Files): Ship it.
20466         (configure.ac): Use it to guarantee fallbacks.
20467
20468 2010-12-13  Pádraig Brady <P@draigBrady.com>
20469
20470         read-file: Improve handling of large files
20471         * lib/read-file.c (fread_file): Minimize realloc()s
20472         for regular files, and better manage sizes around SIZE_MAX.
20473
20474 2010-12-13  Eric Blake  <eblake@redhat.com>
20475
20476         cloexec, fcntl: relax license
20477         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20478         consent from all contributors.
20479         * modules/fcntl (License): Likewise.
20480
20481 2010-12-10  Bruno Haible  <bruno@clisp.org>
20482
20483         Tests for module 'pipe-posix'.
20484         * modules/pipe-posix-tests: New file.
20485         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20486
20487 2010-12-10  Bruno Haible  <bruno@clisp.org>
20488
20489         pipe-posix: Make it work in C++ mode.
20490         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20491         (pipe): Use common idiom, not a macro definition.
20492         * lib/pipe.c: New file.
20493         * m4/pipe.m4: New file.
20494         * modules/pipe-posix (Description): Enhance.
20495         (Files): Add lib/pipe.c, m4/pipe.m4.
20496         (configure.ac): Invoke gl_FUNC_PIPE.
20497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20498         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20499         * tests/test-unistd-c++.cc: Check the signature of pipe.
20500
20501 2010-12-10  Bruno Haible  <bruno@clisp.org>
20502
20503         Rename module 'pipe' to 'spawn-pipe'.
20504         * modules/spawn-pipe: New file, renamed from modules/pipe.
20505         (Files, configure.ac, Makefile.am): Update.
20506         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20507         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20508         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20509         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20510         "spawn-pipe.h" instead of "pipe.h".
20511         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20512         to gl_SPAWN_PIPE.
20513         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20514         (Files, Makefile.am): Update.
20515         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20516         Update.
20517         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20518         Include "spawn-pipe.h" instead of "pipe.h".
20519         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20520         * lib/javacomp.c: Likewise.
20521         * lib/javaversion.c: Likewise.
20522         * lib/pipe-filter-gi.c: Likewise.
20523         * lib/pipe-filter-ii.c: Likewise.
20524         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20525         * modules/javacomp (Depends-on): Likewise.
20526         * modules/javaversion (Depends-on): Likewise.
20527         * modules/pipe-filter-gi (Depends-on): Likewise.
20528         * modules/pipe-filter-ii (Depends-on): Likewise.
20529         * MODULES.html.sh (Executing programs): Update.
20530         * NEWS: Mention the change.
20531
20532 2010-12-10  Eric Blake  <eblake@redhat.com>
20533
20534         pipe-posix: new module
20535         * modules/pipe-posix: New file.
20536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20537         (gl_UNISTD_H): Check for declaration.
20538         * modules/unistd (Makefile.am): Substitute it.
20539         * lib/unistd.in.h (pipe): Provide it for mingw.
20540         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20541         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20542
20543 2010-12-07  Bruno Haible  <bruno@clisp.org>
20544
20545         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20546         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20547         u8_strcmp_gnu.
20548         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20549
20550 2010-12-06  Bruno Haible  <bruno@clisp.org>
20551
20552         Update internal documentation.
20553         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20554
20555 2010-12-04  Bruno Haible  <bruno@clisp.org>
20556
20557         Put more information about failed tests into the test return codes.
20558         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20559         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20560         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20561         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20562         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20563         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20564         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20565         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20566         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20567         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20568         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20569         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20570         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20571         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20572         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20573         returns a bit mask.
20574         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20575         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20576         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20577         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20578         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20579         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20580         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20581         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20582         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20583         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20584         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20585         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20586         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20587         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20588         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20589         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20590         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20591         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20592         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20593         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20595         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20596         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20597         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20598         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20599         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20600         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20601         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20602         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20603         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20604         gl_PRINTF_PRECISION): Likewise.
20605         * m4/regex.m4 (gl_REGEX): Likewise.
20606         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20607         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20608         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20609         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20611         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20612         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20613         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20614         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20615         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20616         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20617         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20618         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20619         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20620         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20621         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20622         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20623         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20625         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20626         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20627         enumerated value.
20628         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20629
20630 2010-12-04  Bruno Haible  <bruno@clisp.org>
20631
20632         Update for Solaris 11 2010-11.
20633         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20634         Express, released in November 2010.
20635
20636 2010-12-04  Bruno Haible  <bruno@clisp.org>
20637
20638         nproc: Relax license.
20639         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20640         and Paul Eggert.
20641         Requested by Ludovic Courtès <ludo@gnu.org>.
20642
20643 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20644
20645         utimecmp: fine-grained src to nearby coarse-grained dest
20646
20647         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20648         and the source is on a file system with higher-resolution time
20649         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20650         not work, and the time stamps are close together, the algorithm to
20651         determine the exact resolution from the read-back mtime was buggy:
20652         it had a "!=" where it should have had an "==".  This bug has been
20653         in the code ever since it was introduced to gnulib.
20654         Problem reported by Dan Jacobson in
20655         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20656
20657 2010-11-30  Bruno Haible  <bruno@clisp.org>
20658
20659         strerror_r-posix: Fix autoconf test.
20660         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20661
20662 2010-11-28  Bruno Haible  <bruno@clisp.org>
20663             Paul Eggert  <eggert@cs.ucla.edu>
20664
20665         Tests for module 'getdomainname'.
20666         * modules/getdomainname-tests: New file.
20667         * tests/test-getdomainname.c: New file, based on
20668         tests/test-gethostname.c.
20669
20670 2010-11-28  Bruno Haible  <bruno@clisp.org>
20671             Paul Eggert  <eggert@cs.ucla.edu>
20672
20673         getdomainname: Use the system function when possible.
20674         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20675         (getdomainname): Replace if needed. Provide the declaration if it is
20676         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20677         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20678         (getdomainname): When the system has getdomainname, call the system
20679         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20680         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20681         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20682         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20683         the function if its second argument is of type 'int' or if it is found
20684         in libnsl.
20685         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20686         <sys/systeminfo.h> and sysinfo().
20687         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20689         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20690         HAVE_GETDOMAINNAME.
20691         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20692         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20693         * doc/glibc-functions/getdomainname.texi: Document the problems with
20694         the getdomainname declaration.
20695
20696 2010-11-28  Bruno Haible  <bruno@clisp.org>
20697
20698         sys_socket: Ensure ss_family field on AIX.
20699         * lib/sys_socket.in.h (ss_family): New macro definition.
20700         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20701         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20702         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20703         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20704         * modules/sys_socket (Makefile.am): Substitute
20705         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20706         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20707
20708 2010-11-27  Bruno Haible  <bruno@clisp.org>
20709
20710         readline: Improve configure output.
20711         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20712         "checking for readline..." result understandable.
20713
20714 2010-11-27  Bruno Haible  <bruno@clisp.org>
20715
20716         *printf-posix: Detect a bug on Solaris 10/x86.
20717         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20718         for floating-point output.
20719         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20720         directive.
20721         * tests/test-snprintf-posix.h (test_function): Likewise.
20722         * tests/test-sprintf-posix.h (test_function): Likewise.
20723         * tests/test-vasprintf-posix.c (test_function): Likewise.
20724         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20725         * doc/posix-functions/printf.texi: Likewise.
20726         * doc/posix-functions/snprintf.texi: Likewise.
20727         * doc/posix-functions/sprintf.texi: Likewise.
20728         * doc/posix-functions/vfprintf.texi: Likewise.
20729         * doc/posix-functions/vprintf.texi: Likewise.
20730         * doc/posix-functions/vsnprintf.texi: Likewise.
20731         * doc/posix-functions/vsprintf.texi: Likewise.
20732         * doc/glibc-functions/obstack_printf.texi: Likewise.
20733         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20734
20735 2010-11-27  Bruno Haible  <bruno@clisp.org>
20736
20737         Fix link error when module libunistring-optional is in use.
20738         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20739         * modules/striconveha-tests (Makefile.am): Likewise.
20740
20741 2010-11-27  Bruno Haible  <bruno@clisp.org>
20742
20743         regex: Mention link dependencies.
20744         * modules/regex (Link): New section.
20745         * modules/rpmatch (Link): Likewise.
20746         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20747
20748 2010-11-27  Bruno Haible  <bruno@clisp.org>
20749
20750         ftoastr: Fix compilation error on Solaris.
20751         * lib/ftoastr.c: Include <config.h>.
20752
20753 2010-11-27  Bruno Haible  <bruno@clisp.org>
20754
20755         getloadavg: Update documentation.
20756         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20757
20758 2010-11-27  Bruno Haible  <bruno@clisp.org>
20759
20760         sys_socket: Fix test whether the functions are declared.
20761         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20762         not <sys/select.h>.
20763
20764 2010-11-27  Bruno Haible  <bruno@clisp.org>
20765
20766         getpass: Make sure to get system declaration on some platforms.
20767         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20768         gl_USE_SYSTEM_EXTENSIONS.
20769         * modules/getpass (Depends-on): Add extensions.
20770
20771 2010-11-26  Bruno Haible  <bruno@clisp.org>
20772
20773         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20774         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20775         'iconv' module is present.
20776         (ICONV_CONST): New macro.
20777         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20778         ICONV_CONST.
20779         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20780         set ICONV_CONST.
20781         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20782         here.
20783         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20784         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20785         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20786         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20787         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20788         present.
20789
20790 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20791
20792         ftoastr: comment fix
20793         * lib/ftoastr.c: "little" -> "little or no" in comment
20794
20795 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20796
20797         stdint: port to GCC 4.3 + OSX + Octave
20798         On this platform, stdint.h is buggy and defines int64_t to long
20799         long int.  The replacement defined it to long int, causing
20800         problems with C++ style name mangling.  Instead, trust the system
20801         definition if INT64_MAX is defined, and likewise for the unsigned
20802         variant.   Problem reported by Jarno Rajahalme in
20803         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20804         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20805         and don't mess with int64_t and INT64_MAX in this case.
20806         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20807
20808 2010-11-24  Bruno Haible  <bruno@clisp.org>
20809
20810         doc: Corrections regarding MacOS X 10.4 and 10.5.
20811         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20812         MacOS X.
20813         Reported by Simon Josefsson.
20814
20815 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20816
20817         Uninstall ".bin" files installed by relocwrapper.
20818         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20819         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20820         unless it is already there.
20821
20822 2010-11-21  Bruno Haible  <bruno@clisp.org>
20823
20824         Update for NetBSD 5.0.
20825         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20826         NetBSD; the test fails on NetBSD 5.0.
20827         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20828         about NetBSD.
20829
20830 2010-11-21  Bruno Haible  <bruno@clisp.org>
20831
20832         Update for HP-UX 11.23 and HP-UX 11.31.
20833         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20834         HP-UX.
20835
20836 2010-11-21  Bruno Haible  <bruno@clisp.org>
20837
20838         Update for MacOS X 10.5.
20839         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20840         MacOS X; the test fails on MacOS X 10.5.8.
20841         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20842         about MacOS X.
20843
20844 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20845
20846         bootstrap: add bootstrap_sync option.
20847         See discussion at
20848         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20849         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20850         * build-aux/bootstrap: Accept --bootstrap-sync to update
20851         bootstrap if it is not identical to the local gnulib's
20852         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20853         enable this by default.  Accept --no-bootstrap-sync to disable
20854         it.
20855
20856 2010-11-20  Bruno Haible  <bruno@clisp.org>
20857
20858         Ensure that <features.h> is included before __GLIBC__ is tested.
20859         * lib/printf-parse.h: Include <features.h>.
20860         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20861         Reported by Mike Frysinger <vapier@gentoo.org>.
20862
20863         Ensure that <features.h> is included before __GLIBC__ is tested.
20864         * lib/wchar.in.h: Include <features.h>.
20865         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20866         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20867         Reported by Mike Frysinger <vapier@gentoo.org>.
20868
20869         Ensure that <features.h> is included before __GLIBC__ is tested.
20870         * lib/arpa_inet.in.h: Include <features.h>.
20871         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20872         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20873         Reported by Mike Frysinger <vapier@gentoo.org>.
20874
20875         Ensure that <features.h> is included before __GLIBC__ is tested.
20876         * build-aux/link-warning.h: Include <features.h>.
20877         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20878         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20879         Reported by Mike Frysinger <vapier@gentoo.org>.
20880
20881         Ensure that <features.h> is included before __GLIBC__ is tested.
20882         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20883         Reported by Mike Frysinger <vapier@gentoo.org>.
20884
20885 2010-11-20  Bruno Haible  <bruno@clisp.org>
20886
20887         memmem: Fix autoconf test.
20888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20889
20890 2010-11-20  Bruno Haible  <bruno@clisp.org>
20891
20892         Port to uClibc.
20893         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20894         * lib/fcntl.in.h: Likewise.
20895         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20896         * lib/mbrtowc.c (mbrtowc): Likewise.
20897         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20898         * lib/strerror_r.c: Likewise.
20899         * lib/unistr/u8-strnlen.c: Likewise.
20900         * lib/vasnprintf.c (decimal_point_char): Likewise.
20901         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20902         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20903         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20904         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20905         * tests/test-sigaction.c (handler, main): Likewise.
20906         * lib/freading.h: Treat uClibc like a non-glibc platform.
20907         * lib/freading.c: Likewise.
20908         * lib/gettext.h: Likewise.
20909         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20910         Likewise.
20911         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20912         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20913         * lib/propername.c (proper_name_utf8): Likewise.
20914         * lib/spawn.in.h: Likewise.
20915         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20916         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20917         mem_cd_iconveh_internal): Likewise.
20918         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20919         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20920         strstr, strcasestr): Likewise.
20921         * lib/unicodeio.c (unicode_to_mb): Likewise.
20922         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20923         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20924         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20925         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20926         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20927         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20928         * lib/unistr/u8-stpncpy.c: Likewise.
20929         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20930         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20931         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20932         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20933         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20934         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20935         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20936         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20937         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20938         Likewise.
20939         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20940         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20941         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20942         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20943         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20944         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20945         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20946         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20947         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20948         * tests/test-striconveha.c (main): Likewise.
20949         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20950         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20951         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20952         * doc/posix-functions/getline.texi: Likewise.
20953         Reported by Mike Frysinger <vapier@gentoo.org>.
20954
20955 2010-11-20  Bruno Haible  <bruno@clisp.org>
20956
20957         nproc: Fix condition.
20958         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20959         HAVE_PTHREAD_AFFINITY_NP.
20960
20961 2010-11-20  Bruno Haible  <bruno@clisp.org>
20962
20963         Fix a comment.
20964         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20965
20966 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20967
20968         ftoastr: don't assume snprintf
20969         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20970         Implement a subset of snprintf here, by using sprintf safely.
20971         * modules/ftoastr (Depends-on): Remove snprintf.
20972
20973 2010-11-19  Jim Meyering  <meyering@redhat.com>
20974
20975         test-rename.h: fix compilation failure
20976         * tests/test-rename.h (test_rename): Add omitted "}".
20977
20978 2010-11-17  Jim Meyering  <meyering@redhat.com>
20979
20980         maint.mk: add a URL discussing the no-@acronym policy
20981         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20982
20983 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20984
20985         ftoastr: depend on snprintf, improve comments
20986         * lib/ftoastr.c: Also mention Loitsch's draft.
20987         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20988         needed in the current implementation, but it might simplify
20989         speeding up the code later.
20990         * modules/ftoastr: Depend on snprintf; this improves portability.
20991         Suggested by Bruno Haible in the same email.
20992
20993         ftoastr: port to hosts lacking strtof and strtold
20994         Problem reported by Bruno Haible in
20995         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20996         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20997         environment and strtold (and presumably strtof) are not available.
20998         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20999         (configure.ac): Require gl_C99_STRTOLD.
21000
21001 2010-11-18  Bruno Haible  <bruno@clisp.org>
21002
21003         c-strtold: Avoid link error on AIX 7.
21004         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
21005         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
21006         (gl_C_STRTOLD): Test whether strtold_l exists.
21007         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21008
21009 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21010
21011         intprops: new macro INT_BITS_STRLEN_BOUND
21012         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
21013         ftoastr.h.  This exposes an internal of intprops.h that was formerly
21014         not exposed.  Also, it uses a slightly tighter bound than before;
21015         though this makes no practical difference, we might as well be as
21016         tight as we easily can.
21017
21018         ftoastr: new module, for lossless conversion of floats to short strings
21019         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
21020         * modules/ftoastr: New files.
21021
21022 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
21023
21024         bootstrap: port to Solaris sed
21025         * build-aux/bootstrap (get_version): Port to Solaris sed.
21026         See Ralf Wildenhues's note in
21027         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
21028
21029 2010-11-14  Jim Meyering  <meyering@redhat.com>
21030
21031         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
21032         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
21033         and move definition closer to sole use.
21034
21035 2010-11-13  Jim Meyering  <meyering@redhat.com>
21036
21037         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
21038         Now we require at least autoconf-2.59, which means the work-around
21039         is no longer needed.
21040         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
21041         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21042         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
21043         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21044         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21045
21046 2010-11-13  Bruno Haible  <bruno@clisp.org>
21047
21048         rename, renameat: Avoid test failures at NFS mounted locations.
21049         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
21050         functions.
21051         (test_rename): Use assert_nonexistent.
21052         * tests/test-rename.c: Include <dirent.h>.
21053         * tests/test-renameat.c: Likewise.
21054         Reported by Gary V. Vaughan <gary@gnu.org>.
21055
21056         rename, renameat: Document Linux bug with NFS
21057         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
21058         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
21059         * doc/posix-functions/renameat.texi: Likewise.
21060         Suggested by Eric Blake.
21061
21062 2010-11-13  Bruno Haible  <bruno@clisp.org>
21063
21064         rename test: Add comments.
21065         * tests/test-rename.h (test_rename): Add structure and comments.
21066
21067 2010-11-13  Eric Blake  <eblake@redhat.com>
21068
21069         maintainer-makefile: cover a few more files
21070         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
21071         scripts generated within C files, for libvirt.
21072
21073 2010-11-13  Bruno Haible  <bruno@clisp.org>
21074
21075         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
21076         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
21077         character, return the number of bytes that belong together, not always
21078         1.
21079         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
21080         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
21081         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
21082         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
21083         number of bytes of an invalid character.
21084         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
21085         (main): Invoke it.
21086         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
21087         results.
21088         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
21089         malformed byte sequences.
21090         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
21091         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
21092         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
21093         Reported by Ben Pfaff and Paolo Bonzini.
21094
21095 2010-11-13  Bruno Haible  <bruno@clisp.org>
21096
21097         openat: Work around glibc bug with fchownat() and empty file names.
21098         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
21099         (gl_FUNC_FCHOWNAT): Invoke it.
21100         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
21101         * doc/posix-functions/fchownat.texi: Document the glibc bug.
21102         Reported by Gary V. Vaughan <gary@gnu.org>.
21103
21104 2010-11-13  Bruno Haible  <bruno@clisp.org>
21105
21106         openat: Ensure autoconf macro ordering.
21107         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
21108         gl_USE_SYSTEM_EXTENSIONS.
21109         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
21110
21111 2010-11-13  Bruno Haible  <bruno@clisp.org>
21112
21113         Update comments.
21114         * lib/unistr/u8-check.c: Update file name in comments.
21115         * lib/unistr/u8-mblen.c: Likewise.
21116         * lib/unistr/u8-prev.c: Likewise.
21117         * lib/unistr/u8-strmblen.c: Likewise.
21118         * lib/unistr/u8-strmbtouc.c: Likewise.
21119
21120 2010-11-13  Jim Meyering  <meyering@redhat.com>
21121
21122         tests: avoid test failure on Solaris 10 due to lack of PATH export
21123         * tests/test-update-copyright.sh: Don't forget to export PATH.
21124
21125         init.sh: ensure that IFS is defined, just in case...
21126         * tests/init.sh (setup_): Ensure that IFS is defined,
21127         so that saving and restoring it works as expected.  This
21128         appears to be useful at least for an old version of dash
21129         from a long time ago (RH 6).  See here for details:
21130         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
21131
21132         maint.mk: tighten "test a == b" check
21133         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
21134         test to files that contain something like #!/bin/sh.
21135         Without this, coreutils would get two false positives in
21136         the comments of C source files.
21137
21138 2010-11-12  Eric Blake  <eblake@redhat.com>
21139
21140         bootstrap: fix typo in previous attempt
21141         * build-aux/bootstrap (buildreq): Correct the grouping.
21142         Reported by Paul Eggert.
21143
21144         maintainer-makefile: prohibit test x == x
21145         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
21146         Based on a report by Matthias Bolte.
21147
21148         bootstrap: allow FreeBSD gzip
21149         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
21150         which has no '.' and goes to stderr.
21151         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
21152         Reported by Matthias Bolte.
21153
21154         maintainer-makefile: check for i18n setup
21155         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
21156         will likely work.
21157
21158 2010-11-12  Bruno Haible  <bruno@clisp.org>
21159
21160         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
21161         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21162         * lib/nanosleep.c (nanosleep): Likewise.
21163
21164 2010-11-11  Bruno Haible  <bruno@clisp.org>
21165
21166         fcntl-h: Fix for use of C++ on glibc systems.
21167         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21168         also on glibc systems in C++ mode.
21169         Reported by Gary V. Vaughan <gary@gnu.org>.
21170
21171 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21172
21173         mknod: avoid false failure with dash
21174         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21175
21176 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21177
21178         unlink: Fix "is it should" typo in diagnostic.
21179         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21180         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21181
21182 2010-11-11  Bruno Haible  <bruno@clisp.org>
21183
21184         Tests for module 'strerror_r-posix'.
21185         * modules/strerror_r-posix-tests: New file.
21186         * tests/test-strerror_r.c: New file.
21187         * tests/test-string-c++.cc: Check the signature of strerror_r.
21188
21189         New module 'strerror_r-posix'.
21190         * lib/string.in.h (strerror_r): New declaration.
21191         * lib/strerror_r.c: New file.
21192         * m4/strerror_r.m4: New file.
21193         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21194         of strerror_r.
21195         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21196         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21197         * modules/strerror_r-posix: New file.
21198         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21199         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21200         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21201         portability problems.
21202
21203 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21204
21205         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21206         line is also considered for output. Quoted function name in shell
21207         command, so temporary files for functions like MyClass::operator()
21208         are removed correctly without errors.
21209
21210 2010-11-09  Bruno Haible  <bruno@clisp.org>
21211
21212         * doc/posix-functions/strerror.texi: List more failing platforms.
21213
21214         * doc/posix-functions/strerror.texi: Add a comment.
21215
21216 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21217
21218         fdopendir: fix bug on MacOS X when low on file descriptors
21219
21220         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21221         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21222         All callers changed.
21223         (fdopendir): Invoke save_cwd at the top level, not after using
21224         multiple dup() calls to use up file descriptors.  Then retry
21225         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21226         less than the maximum number of open file descriptors, because
21227         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21228         on Mac OS X 10.6.4 for tar 1.24
21229         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21230         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21231         and for tar 1.25
21232         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21233
21234 2010-11-07  Bruno Haible  <bruno@clisp.org>
21235
21236         vasnprintf: Support I flag on glibc systems.
21237         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21238         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21239         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21240         snprintf function.
21241         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21242         glibc systems.
21243         * tests/test-vasnprintf-posix3.c: New file.
21244         * modules/vasnprintf-posix-tests (Files): Add it.
21245         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21246
21247 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21248
21249         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21250         * MODULES.html.sh: For compiler warnings, use name
21251         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21252
21253 2010-11-05  Eric Blake  <eblake@redhat.com>
21254
21255         ceil, floor: avoid spurious failure with icc
21256         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21257         [denormals-as-zero] when optimizing without -mieee-fp option.
21258         * tests/test-floorf2.c (floorf_reference): Likewise.
21259         * tests/test-ceilf1.c (dummy): New function.
21260         (main): Use it to outsmart icc's optimization.
21261         * tests/test-floorf1.c (dummy, main): Likewise.
21262
21263         tests: require working signbit
21264         * modules/ceilf-tests (Depends-on): Add signbit.
21265         * modules/ceill-tests (Depends-on): Likewise.
21266         * modules/floorf-tests (Depends-on): Likewise.
21267         * modules/floorl-tests (Depends-on): Likewise.
21268         * modules/round-tests (Depends-on): Likewise.
21269         * modules/roundf-tests (Depends-on): Likewise.
21270         * modules/roundl-tests (Depends-on): Likewise.
21271         * modules/trunc-tests (Depends-on): Likewise.
21272         * modules/truncf-tests (Depends-on): Likewise.
21273         * modules/truncl-tests (Depends-on): Likewise.
21274
21275         strtod: work around icc bug
21276         * lib/strtod.c (minus_zero): Define to working value.
21277         (strtod): Use it to avoid icc bug.
21278
21279         copysign: enhance tests
21280         * modules/copysign-tests (Files): Add minus-zero.h.
21281         * tests/test-copysign.c (main): Also test zeros.
21282
21283 2010-11-04  Eric Blake  <eblake@redhat.com>
21284
21285         ceil, floor, round, trunc: enhance tests of -0
21286         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21287         * tests/test-ceill.c (main): Likewise.
21288         * tests/test-floorf1.c (main): Likewise.
21289         * tests/test-floorl.c (main): Likewise.
21290         * tests/test-round1.c (main): Likewise.
21291         * tests/test-roundf1.c (main): Likewise.
21292         * tests/test-roundl.c (main): Likewise.
21293         * tests/test-trunc1.c (main): Likewise.
21294         * tests/test-truncf1.c (main): Likewise.
21295         * tests/test-truncl.c (main): Likewise.
21296
21297 2010-11-04  Eric Blake  <eblake@redhat.com>
21298
21299         frexp, tests: work around ICC bug with -zero
21300         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21301         works with more compilers.
21302         * tests/minus-zero.h: New file.
21303         * modules/ceilf-tests (Files): Include it.
21304         * modules/ceill-tests (Files): Likewise.
21305         * modules/floorf-tests (Files): Likewise.
21306         * modules/floorl-tests (Files): Likewise.
21307         * modules/frexp-nolibm-tests (Files): Likewise.
21308         * modules/frexp-tests (Files): Likewise.
21309         * modules/frexpl-nolibm-tests (Files): Likewise.
21310         * modules/frexpl-tests (Files): Likewise.
21311         * modules/isnan-tests (Files): Likewise.
21312         * modules/isnand-nolibm-tests (Files): Likewise.
21313         * modules/isnand-tests (Files): Likewise.
21314         * modules/isnanf-nolibm-tests (Files): Likewise.
21315         * modules/isnanf-tests (Files): Likewise.
21316         * modules/isnanl-nolibm-tests (Files): Likewise.
21317         * modules/isnanl-tests (Files): Likewise.
21318         * modules/round-tests (Files): Likewise.
21319         * modules/roundf-tests (Files): Likewise.
21320         * modules/roundl-tests (Files): Likewise.
21321         * modules/ldexpl-tests (Files): Likewise.
21322         * modules/signbit-tests (Files): Likewise.
21323         * modules/snprintf-posix-tests (Files): Likewise.
21324         * modules/sprintf-posix-tests (Files): Likewise.
21325         * modules/strtod-tests (Files): Likewise.
21326         * modules/trunc-tests (Files): Likewise.
21327         * modules/truncf-tests (Files): Likewise.
21328         * modules/truncl-tests (Files): Likewise.
21329         * modules/vsnprintf-posix-tests (Files): Likewise.
21330         * modules/vsprintf-posix-tests (Files): Likewise.
21331         * modules/vasnprintf-posix-tests (Files): Likewise.
21332         * modules/vasprintf-posix-tests (Files): Likewise.
21333         * tests/test-ceilf1.c (main): Use it.
21334         * tests/test-ceill.c (main): Likewise.
21335         * tests/test-floorf1.c (main): Likewise.
21336         * tests/test-floorl.c (main): Likewise.
21337         * tests/test-frexp.c (main): Likewise.
21338         * tests/test-frexpl.c (main): Likewise.
21339         * tests/test-isnan.c (main): Likewise.
21340         * tests/test-isnand.h (main): Likewise.
21341         * tests/test-isnanf.h (main): Likewise.
21342         * tests/test-isnanl.h (main): Likewise.
21343         * tests/test-ldexpl.c (main): Likewise.
21344         * tests/test-round.c (main): Likewise.
21345         * tests/test-roundf.c (main): Likewise.
21346         * tests/test-roundl.c (main): Likewise.
21347         * tests/test-signbit.c (test_signbitf, test_signbitd)
21348         (test_signbitl): Likewise.
21349         * tests/test-snprintf-posix.h (test_function): Likewise.
21350         * tests/test-sprintf-posix.h (test_function): Likewise.
21351         * tests/test-strtod.c (main): Likewise.
21352         * tests/test-trunc1.c (main): Likewise.
21353         * tests/test-truncf1.c (main): Likewise.
21354         * tests/test-truncl.c (main): Likewise.
21355
21356         isnanl: work around icc bug
21357         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21358
21359 2010-11-03  Eric Blake  <eblake@redhat.com>
21360
21361         tests: fix compiler warnings
21362         * tests/test-getopt.h (test_getopt): Fix condition.
21363         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21364         * tests/test-pipe2.c (main): Likewise.
21365         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21366
21367         utimens: fix broken m4 test
21368         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21369
21370 2010-10-28  Bruno Haible  <bruno@clisp.org>
21371
21372         posix_spawn*, getdtablesize: Relax license.
21373         * modules/posix_spawn (License): Change to LGPLv2+.
21374         * modules/posix_spawnp (License): Likewise.
21375         * modules/posix_spawn-internal (License): Likewise.
21376         * modules/posix_spawnattr_init (License): Likewise.
21377         * modules/posix_spawnattr_getflags (License): Likewise.
21378         * modules/posix_spawnattr_setflags (License): Likewise.
21379         * modules/posix_spawnattr_getpgroup (License): Likewise.
21380         * modules/posix_spawnattr_setpgroup (License): Likewise.
21381         * modules/posix_spawnattr_getschedparam (License): Likewise.
21382         * modules/posix_spawnattr_setschedparam (License): Likewise.
21383         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21384         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21385         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21386         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21387         * modules/posix_spawnattr_getsigmask (License): Likewise.
21388         * modules/posix_spawnattr_setsigmask (License): Likewise.
21389         * modules/posix_spawnattr_destroy (License): Likewise.
21390         * modules/posix_spawn_file_actions_init (License): Likewise.
21391         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21392         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21393         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21394         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21395         * modules/getdtablesize (License): Likewise.
21396         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21397
21398 2010-10-26  Bruno Haible  <bruno@clisp.org>
21399
21400         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21401         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21402         Cygwin and mingw.
21403         Suggested by Eric Blake.
21404
21405 2010-10-26  Bruno Haible  <bruno@clisp.org>
21406
21407         stdio: Work around compilation error due to renameat() on Solaris 10.
21408         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21409         * lib/renameat.c: Don't include <unistd.h> here.
21410         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21411         Reported by Paul Eggert and Eric Blake.
21412
21413 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21414
21415         renameat: port to Solaris 10, which declares renameat in unistd.h
21416
21417         * lib/renameat.c: Include unistd.h before stdio.h, because
21418         Solaris 10 declares renameat in unistd.h.  Problem encountered
21419         when building GNU tar 1.24 on Solaris 10.
21420
21421 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21422
21423         fdopendir: fix C89 compilation
21424         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21425         compilers.
21426
21427 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21428
21429         inttostr: simplify by removing unnecessary redundancy
21430         * lib/anytostr.c: Don't include verify.h.
21431         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21432         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21433         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21434         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21435         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21436         Likewise.
21437         * modules/inttostr (Depends-on): Remove 'verify'.
21438
21439 2010-10-23  Bruno Haible  <bruno@clisp.org>
21440
21441         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21442         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21443         Reported by Eric Blake.
21444
21445 2010-10-23  Bruno Haible  <bruno@clisp.org>
21446
21447         Tests: Fix LOCALE_JA on MirBSD 10.
21448         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21449         to an UTF-8 locale.
21450         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21451         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21452         Reported by Eric Blake.
21453
21454 2010-10-21  Bruno Haible  <bruno@clisp.org>
21455
21456         nl_langinfo test: Avoid test failure on NetBSD 5.
21457         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21458         Reported by Eric Blake.
21459
21460 2010-10-21  Eric Blake  <eblake@redhat.com>
21461
21462         c-stack: work around libsigsegv 2.8 bug
21463         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21464         overflow on at least PowerPC64.
21465
21466 2010-10-17  Bruno Haible  <bruno@clisp.org>
21467
21468         userspec: Drop redundant file.
21469         * modules/userspec (Files): Remove lib/inttostr.h.
21470
21471 2010-10-17  Bruno Haible  <bruno@clisp.org>
21472
21473         nl_langinfo tests: Silence some warnings.
21474         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21475         Reported by Jim Meyering.
21476
21477 2010-10-17  Bruno Haible  <bruno@clisp.org>
21478
21479         Make use of GCC's attribute __alloc_size__.
21480         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21481         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21482         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21483         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21484         __alloc_size__.
21485         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21486         Suggested by Jim Meyering.
21487
21488 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21489
21490         bootstrap: anchor .gitignore entries.
21491         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21492         with...
21493         (insert_vc_ignore): ... this new function, which prepends `/' to
21494         all .gitignore entries before passing them to
21495         insert_sorted_if_absent.
21496
21497 2010-10-16  Bruno Haible  <bruno@clisp.org>
21498
21499         nextafter: Fix configure check.
21500         * modules/nextafter (configure.ac): Correct expected prototype.
21501
21502 2010-10-16  Bruno Haible  <bruno@clisp.org>
21503
21504         termios: Update documentation.
21505         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21506
21507 2010-10-16  Bruno Haible  <bruno@clisp.org>
21508
21509         tests: Make them compile with TinyCC.
21510         * tests/test-strstr.c (main): Remove parentheses around array
21511         initializer.
21512
21513 2010-10-15  Eric Blake  <eblake@redhat.com>
21514
21515         ignore-value: make header idempotent
21516         * lib/ignore-value.h: Add double-inclusion guards.
21517         Reported by Stefan Berger.
21518
21519 2010-10-15  Jim Meyering  <meyering@redhat.com>
21520
21521         GNUmakefile: handle "stable" target, not "major"
21522         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21523         lists in maint.mk and announce-gen.  Without this, "make stable"
21524         would fail to ensure that $(VERSION) is up to date.
21525
21526 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21527
21528         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21529         & co.
21530
21531 2010-10-14  Bruno Haible  <bruno@clisp.org>
21532
21533         vasnprintf: Don't set errno to 0.
21534         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21535         block that sets it to 0.
21536         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21537
21538 2010-10-14  Bruno Haible  <bruno@clisp.org>
21539
21540         socketlib: Fix.
21541         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21542         gl_PREREQ_SYS_H_WINSOCK2.
21543         Reported by Ian Beckwith <ianb@erislabs.net>.
21544
21545 2010-10-13  Jim Meyering  <meyering@redhat.com>
21546
21547         test-select-stdin.c: avoid warn_unused_result warnings
21548         * tests/test-select-stdin.c: Include "macros.h".
21549         ASSERT that read and fflush succeed.
21550
21551 2010-10-13  Jim Meyering  <meyering@redhat.com>
21552
21553         git-version-gen: do require git-VC'd files in cwd
21554         * build-aux/git-version-gen: Reject a git version string
21555         if there are no commits associated with the current directory.
21556         This avoids an unlikely false-positive (unrelated dir whose parent
21557         repository also contains a tag matching v*), as pointed out
21558         by Giuseppe Scrivano in
21559         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21560
21561 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21562
21563         argv-iter: omit nonconforming declaration
21564         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21565         enum arg_iter_err declaration, which doesn't conform to C99.
21566         Solaris 10 cc warns about this.
21567
21568 2010-10-13  Eric Blake  <eblake@redhat.com>
21569
21570         termios: fix compilation on mingw
21571         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21572         (gl_TERMIOS_H): Adjust it on mingw.
21573         * modules/termios (Makefile.am): Substitute new key.
21574         * lib/termios.in.h (includes): Make include_next conditional.
21575         * doc/posix-headers/termios.texi (termios.h): Update
21576         documentation.
21577         Reported by Daniel P. Berrange.
21578
21579 2010-10-13  Jim Meyering  <meyering@redhat.com>
21580
21581         git-version-gen: don't require that .git/ be in the current dir
21582         * build-aux/git-version-gen: Adjust this script so that it works
21583         when run from any working directory beneath the top-level .git/-
21584         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21585         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21586
21587         test-select: avoid warn_unused_result warnings
21588         * tests/test-select.c: Include "macros.h".
21589         ASSERT that each call to read, write, and pipe succeeds.
21590         While not technically required, also check each "close".
21591         * modules/select-tests (Files): Add tests/macros.h.
21592
21593         test-symlinkat: remove declaration of unused local
21594         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21595
21596         test-inttostr: avoid shadowing warnings
21597         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21598         and use malloc rather than the stack for the same reason as
21599         mentioned in the comment justifying the other allocation.
21600
21601 2010-10-11  Bruno Haible  <bruno@clisp.org>
21602
21603         stdlib: Allow multiple gnulib generated replacements to coexist.
21604         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21605         Reported by Sam Steingold <sds@gnu.org>.
21606
21607 2010-10-11  Jim Meyering  <meyering@redhat.com>
21608
21609         fix a documentation typo
21610         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21611
21612 2010-10-11  Eric Blake  <eblake@redhat.com>
21613
21614         futimens: work around Solaris 11 bug
21615         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21616         * tests/test-futimens.h (test_futimens): Enhance, rather than
21617         weaken test.
21618         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21619
21620 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21621
21622         Indentation.
21623         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21624         higher-level operators more to the left.
21625
21626 2010-10-11  Jim Meyering  <meyering@redhat.com>
21627
21628         test-futimens: avoid unwarranted test failure on Solaris 5.11
21629         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21630         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21631         because it tries to dereference the NULL name argument.
21632
21633 2010-10-11  Bruno Haible  <bruno@clisp.org>
21634
21635         Indentation.
21636         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21637         indentation.
21638
21639 2010-10-11  Jim Meyering  <meyering@redhat.com>
21640
21641         spawn.in.h: make indentation consistent with parentheses
21642         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21643         Make indentation consistent with parentheses.
21644
21645 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21646
21647         Fix mismatched parens in previous commit
21648         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21649         parens.
21650
21651 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21652
21653         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21654
21655         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21656         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21657         * lib/malloca.c: Include "verify.h".
21658         (verify1): Remove, replacing with a verify call.
21659         * lib/relocwrapper.c (verify1): Likewise.
21660         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21661         Likewise.
21662         * modules/malloca (Depends-on): Add 'verify'.
21663         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21664         * modules/vasnprintf (Depends-on): Add 'verify'.
21665         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21666         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21667         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21668         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21669         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21670         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21671         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21672
21673         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21674
21675         Formerly the style was sometimes 2*X - 1, because the C standard
21676         was wrongly thought to disallow ?: in integral constant expressions.
21677         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21678         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21679         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21680         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21681         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21682         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21683         verify that time_t cannot be floating.
21684
21685 2010-10-08  Eric Blake  <eblake@redhat.com>
21686
21687         time: enforce recent POSIX ruling that time_t is integral
21688         * lib/time.in.h (__time_t_must_be_integral): Detect any
21689         problematic systems, allowing the rest of gnulib to assume POSIX.
21690
21691 2010-10-08  Jim Meyering  <meyering@redhat.com>
21692
21693         fdopendir: fix a bug on systems lacking openat and /proc support
21694         OpenBSD 4.7 is one such system.  The most noticeable effect was
21695         failure of any application making nontrivial use of fts: rm, du,
21696         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21697           ./rm: traversal failed: `a': Bad file descriptor
21698         Debugging that, you see that even though FD 6 was closed just
21699         prior to the opendir call in fd_clone_opendir, its resulting
21700         dir->dd_fd was 8, rather than the expected value of 6:
21701
21702         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21703         93                close (fd);
21704         (gdb) n
21705         94                dir = fd_clone_opendir (dupfd);
21706         (gdb) n
21707         95                saved_errno = errno;
21708         (gdb) p dir->dd_fd
21709         $11 = 8
21710
21711         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21712         The problem is that on OpenBSD, fd_clone_opendir has to resort
21713         to using the old-style save/restore CWD mechanism, due to its
21714         lack of openat/proc support, and *that* would steal the FD (6)
21715         that opendir was supposed to use.
21716
21717         The fix is to squirrel away the desired FD so that save_cwd uses a
21718         different one, and then free the dest FD right before calling opendir.
21719         That guarantees opendir will use the required file descriptor.
21720
21721         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21722
21723 2010-10-08  Bruno Haible  <bruno@clisp.org>
21724
21725         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21726         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21727
21728 2010-10-08  Bruno Haible  <bruno@clisp.org>
21729
21730         nanosleep: Make replacement POSIX compliant.
21731         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21732         is out of range.
21733         Reported by Jim Meyering.
21734
21735 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21736
21737         bootstrap: add hook for altering gnulib.mk, for Bison
21738         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21739         the Bison bootstrapping process can rewrite file names and variables
21740         in this file before later parts of 'bootstrap' use the file.
21741         Bison wants to include lib/gnulib.mk from the top-level makefile,
21742         so it needs the file names in this file to be relative to the top
21743         level, not relative to lib; plus it needs variable names to be
21744         rewritten.
21745         (slurp): Use the new function.
21746
21747         bootstrap: reformat for readability
21748         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21749
21750 2010-10-08  Eric Blake  <eblake@redhat.com>
21751
21752         docs: update cygwin progress
21753         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21754         1.7.7.
21755         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21756         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21757         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21758         * doc/posix-functions/carg.texi (carg): Likewise.
21759         * doc/posix-functions/cargf.texi (cargf): Likewise.
21760         * doc/posix-functions/casin.texi (casin): Likewise.
21761         * doc/posix-functions/casinf.texi (casinf): Likewise.
21762         * doc/posix-functions/casinh.texi (casinh): Likewise.
21763         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21764         * doc/posix-functions/catan.texi (catan): Likewise.
21765         * doc/posix-functions/catanf.texi (catanf): Likewise.
21766         * doc/posix-functions/catanh.texi (catanh): Likewise.
21767         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21768         * doc/posix-functions/ccos.texi (ccos): Likewise.
21769         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21770         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21771         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21772         * doc/posix-functions/cexp.texi (cexp): Likewise.
21773         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21774         * doc/posix-functions/cimag.texi (cimag): Likewise.
21775         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21776         * doc/posix-functions/clog.texi (clog): Likewise.
21777         * doc/posix-functions/clogf.texi (clogf): Likewise.
21778         * doc/posix-functions/conj.texi (conj): Likewise.
21779         * doc/posix-functions/conjf.texi (conjf): Likewise.
21780         * doc/posix-functions/cpow.texi (cpow): Likewise.
21781         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21782         * doc/posix-functions/cproj.texi (cproj): Likewise.
21783         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21784         * doc/posix-functions/creal.texi (creal): Likewise.
21785         * doc/posix-functions/crealf.texi (crealf): Likewise.
21786         * doc/posix-functions/csin.texi (csin): Likewise.
21787         * doc/posix-functions/csinf.texi (csinf): Likewise.
21788         * doc/posix-functions/csinh.texi (csinh): Likewise.
21789         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21790         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21791         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21792         * doc/posix-functions/ctan.texi (ctan): Likewise.
21793         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21794         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21795         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21796         * doc/posix-headers/complex.texi (complex.h): Likewise.
21797
21798 2010-10-07  Jim Meyering  <meyering@redhat.com>
21799
21800         parse-datetime: avoid compilation failure on OpenBSD 4.7
21801         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21802         This works around a compilation failure on OpenBSD 4.7:
21803         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21804
21805 2010-10-07  Eric Blake  <eblake@redhat.com>
21806
21807         docs: update cygwin progress
21808         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21809         1.7.6.
21810         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21811         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21812         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21813         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21814         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21815         Likewise.
21816         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21817         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21818         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21819         Likewise.
21820         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21821         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21822         Likewise.
21823         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21824         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21825         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21826         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21827         Likewise.
21828         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21829         Likewise.
21830         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21831
21832         docs: update parse-datetime history
21833         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21834         documentation of this function's history and alternatives.
21835
21836         cygwin: use more robust version check
21837         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21838         exclude an eventual cygwin 1.9.1.
21839         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21841         (gl_FUNC_STRCASESTR): Likewise.
21842         Reported by Bruno Haible.
21843
21844 2010-10-06  Bruno Haible  <bruno@clisp.org>
21845
21846         string, sys_select: Avoid #including large headers unless necessary.
21847         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21848         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21849         OSF/1, BeOS, Haiku.
21850         Reported by Jim Meyering.
21851
21852 2010-10-05  Eric Blake  <eblake@redhat.com>
21853
21854         memmem, strstr, strcasestr: fix bug with long periodic needle
21855         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21856         periodic needle having false positive.
21857         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21858         and cygwin 1.7.7.
21859         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21861         (gl_FUNC_STRCASESTR): Likewise.
21862         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21863         * tests/test-memmem.c (main): Expose the bug.
21864         * tests/test-strcasestr.c (main): Likewise.
21865         * tests/test-strstr.c (main): Likewise.
21866         * tests/test-c-strcasestr.c (main): Likewise.
21867         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21868         * doc/posix-functions/strstr.texi (strstr): Likewise.
21869         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21870         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21871
21872 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21873
21874         parse-datetime: do some more renaming
21875         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21876         parse_datetime, not get_date.  Mention the renaming.
21877         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21878         in comments.
21879         * m4/bison.m4: Likewise.
21880
21881 2010-10-05  Eric Blake  <eblake@redhat.com>
21882
21883         parse-datetime: better name than get_date
21884         * NEWS: Reword the deprecation notice.
21885         * modules/get_date: Rename to modules/parse-datetime.
21886         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21887         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21888         * lib/get_date.y: Rename to lib/parse-datetime.y.
21889         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21890         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21891         * doc/getdate.texi: Provide fallback wrapper.
21892         * lib/getdate.h: Move guts, and wrap...
21893         * lib/parse-datetime.h: ...new file.
21894         * lib/parse-datetime.y (get_date): Rename...
21895         (parse_datetime): ...to this.
21896         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21897         (gl_PARSE_DATETIME): ...to this.
21898         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21899         documentation.
21900         * modules/getdate (Files): Provide fallback docs and header.
21901         (Notice, Depends-on): Update references.
21902         * tests/test-parse-datetime.c: Likewise.
21903         * DEPENDENCIES: Likewise.
21904         * MODULES.html.sh (Date and time <time.h>): Likewise.
21905         * doc/parse-datetime.texi (Date input formats)
21906         (Authors of parse_datetime): Likewise.
21907         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21908         (Include): Likewise.
21909         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21910         * gnulib-tool: Likewise.
21911         * m4/bison.m4 (gl_BISON): Likewise.
21912         Suggested by Bruno Haible.
21913
21914 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21915
21916         more ports to Solaris tr, which needs [] around ranges
21917         * gnulib-tool: Solaris tr needs [] around ranges.
21918         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21919         * tests/test-pipe-filter-gi1.c (main): Likewise.
21920         * tests/test-pipe-filter-ii1.c (main): Likewise.
21921
21922 2010-10-05  Eric Blake  <eblake@redhat.com>
21923
21924         bootstrap: fix Solaris regression
21925         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21926         around ranges.
21927         Reported by Pádraig Brady.
21928
21929         bootstrap: work with pkg-config
21930         * build-aux/bootstrap (check_versions): Also transliterate - in
21931         prerequisite name.
21932         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21933         prerequisites that were already found, to avoid confusion.
21934         Reported by Justin Clift.
21935
21936         faccessat: remove unused wrappers
21937         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21938         presence of these wrappers dragged in -lgen on Solaris.
21939         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21940
21941 2010-10-05  Jim Meyering  <meyering@redhat.com>
21942
21943         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21944         * Makefile (sc_pragma_columns): New syntax-check rule.
21945
21946 2010-10-04  Bruno Haible  <bruno@clisp.org>
21947
21948         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21949         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21950         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21951         Reported by Bruce Korb and Eric Blake.
21952
21953 2010-10-04  Bruno Haible  <bruno@clisp.org>
21954
21955         threadlib: Make option --with-libpth-prefix work.
21956         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21957         use $LIBPTH, not just -lpth.
21958
21959 2010-10-04  Bruno Haible  <bruno@clisp.org>
21960
21961         Avoid line length limitation from HP NonStop system header files.
21962         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21963         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21964         * lib/ctype.in.h: Likewise.
21965         * lib/dirent.in.h: Likewise.
21966         * lib/errno.in.h: Likewise.
21967         * lib/fcntl.in.h: Likewise.
21968         * lib/float.in.h: Likewise.
21969         * lib/getopt.in.h: Likewise.
21970         * lib/iconv.in.h: Likewise.
21971         * lib/inttypes.in.h: Likewise.
21972         * lib/langinfo.in.h: Likewise.
21973         * lib/locale.in.h: Likewise.
21974         * lib/math.in.h: Likewise.
21975         * lib/netdb.in.h: Likewise.
21976         * lib/netinet_in.in.h: Likewise.
21977         * lib/poll.in.h: Likewise.
21978         * lib/pthread.in.h: Likewise.
21979         * lib/pty.in.h: Likewise.
21980         * lib/sched.in.h: Likewise.
21981         * lib/se-selinux.in.h: Likewise.
21982         * lib/search.in.h: Likewise.
21983         * lib/signal.in.h: Likewise.
21984         * lib/spawn.in.h: Likewise.
21985         * lib/stdarg.in.h: Likewise.
21986         * lib/stddef.in.h: Likewise.
21987         * lib/stdint.in.h: Likewise.
21988         * lib/stdio.in.h: Likewise.
21989         * lib/stdlib.in.h: Likewise.
21990         * lib/string.in.h: Likewise.
21991         * lib/strings.in.h: Likewise.
21992         * lib/sys_file.in.h: Likewise.
21993         * lib/sys_ioctl.in.h: Likewise.
21994         * lib/sys_select.in.h: Likewise.
21995         * lib/sys_socket.in.h: Likewise.
21996         * lib/sys_stat.in.h: Likewise.
21997         * lib/sys_time.in.h: Likewise.
21998         * lib/sys_times.in.h: Likewise.
21999         * lib/sys_utsname.in.h: Likewise.
22000         * lib/sys_wait.in.h: Likewise.
22001         * lib/sysexits.in.h: Likewise.
22002         * lib/termios.in.h: Likewise.
22003         * lib/time.in.h: Likewise.
22004         * lib/unistd.in.h: Likewise.
22005         * lib/wchar.in.h: Likewise.
22006         * lib/wctype.in.h: Likewise.
22007         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
22008         * modules/ctype (Makefile.am): Likewise.
22009         * modules/dirent (Makefile.am): Likewise.
22010         * modules/errno (Makefile.am): Likewise.
22011         * modules/fcntl-h (Makefile.am): Likewise.
22012         * modules/float (Makefile.am): Likewise.
22013         * modules/getopt-posix (Makefile.am): Likewise.
22014         * modules/iconv-h (Makefile.am): Likewise.
22015         * modules/inttypes (Makefile.am): Likewise.
22016         * modules/langinfo (Makefile.am): Likewise.
22017         * modules/locale (Makefile.am): Likewise.
22018         * modules/math (Makefile.am): Likewise.
22019         * modules/netdb (Makefile.am): Likewise.
22020         * modules/netinet_in (Makefile.am): Likewise.
22021         * modules/poll-h (Makefile.am): Likewise.
22022         * modules/pthread (Makefile.am): Likewise.
22023         * modules/pty (Makefile.am): Likewise.
22024         * modules/sched (Makefile.am): Likewise.
22025         * modules/search (Makefile.am): Likewise.
22026         * modules/selinux-h (Makefile.am): Likewise.
22027         * modules/signal (Makefile.am): Likewise.
22028         * modules/spawn (Makefile.am): Likewise.
22029         * modules/stdarg (Makefile.am): Likewise.
22030         * modules/stddef (Makefile.am): Likewise.
22031         * modules/stdint (Makefile.am): Likewise.
22032         * modules/stdio (Makefile.am): Likewise.
22033         * modules/stdlib (Makefile.am): Likewise.
22034         * modules/string (Makefile.am): Likewise.
22035         * modules/strings (Makefile.am): Likewise.
22036         * modules/sys_file (Makefile.am): Likewise.
22037         * modules/sys_ioctl (Makefile.am): Likewise.
22038         * modules/sys_select (Makefile.am): Likewise.
22039         * modules/sys_socket (Makefile.am): Likewise.
22040         * modules/sys_stat (Makefile.am): Likewise.
22041         * modules/sys_time (Makefile.am): Likewise.
22042         * modules/sys_times (Makefile.am): Likewise.
22043         * modules/sys_utsname (Makefile.am): Likewise.
22044         * modules/sys_wait (Makefile.am): Likewise.
22045         * modules/sysexits (Makefile.am): Likewise.
22046         * modules/termios (Makefile.am): Likewise.
22047         * modules/time (Makefile.am): Likewise.
22048         * modules/unistd (Makefile.am): Likewise.
22049         * modules/wchar (Makefile.am): Likewise.
22050         * modules/wctype (Makefile.am): Likewise.
22051
22052 2010-10-04  Bruno Haible  <bruno@clisp.org>
22053
22054         read-file tests: Avoid a test failure on NonStop Kernel.
22055         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
22056         a regular file.
22057         Reported by Joachim Schmitz <schmitz@hp.com>.
22058
22059 2010-10-03  Bruno Haible  <bruno@clisp.org>
22060
22061         gnulib-tool: Fixes for --create-testdir with --libtool.
22062         * gnulib-tool (func_get_automake_snippet): Don't augment
22063         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
22064         an executable.
22065         (func_create_testdir): Handle module 'alloca' like func_import.
22066         Reported by Bruce Korb <bruce.korb@gmail.com>.
22067
22068 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
22069
22070         Avoid some lines longer than 80 characters.
22071         * lib/stdint.in.h: Break long comment lines.
22072         * lib/math.in.h: Likewise.
22073         (_GL_NUM_UINT_WORDS): New macro, for readability.
22074         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
22075         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
22076         * lib/stdlib.in.h: Likewise.
22077         * lib/spawn.in.h: Likewise.
22078         * lib/sys_socket.in.h: Update an URL.
22079         * lib/sys_stat.in.h: Break long line.
22080
22081 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
22082
22083         Improve pmccabe2html.
22084         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
22085         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
22086         when the sources change. Remove the line in the HTML about "Used
22087         ranges" (which implied that there might be other unused ranges),
22088         rename "Resume" to "Summary" (easier to understand for more users).
22089         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
22090         styles, and some unnecessary blank lines.
22091
22092 2010-10-03  Bruno Haible  <bruno@clisp.org>
22093             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
22094
22095         acl: Add support for ACLs on NonStop Kernel.
22096         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
22097         Check whether the function aclsort() exists.
22098         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
22099         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
22100         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22101         (acl_nontrivial [HAVE_ACLSORT]: New function.
22102         (file_has_acl): Implement for NonStop Kernel.
22103         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22104         (qset_acl): Implement for NonStop Kernel.
22105         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
22106         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
22107         (main): Implement for NonStop Kernel.
22108         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
22109         Kernel. Handle this flavor.
22110         * tests/test-set-mode-acl.sh: Likewise.
22111         * tests/test-copy-acl.sh: Likewise.
22112         * tests/test-copy-file.sh: Likewise.
22113
22114 2010-10-03  Bruno Haible  <bruno@clisp.org>
22115
22116         Info about ACLs on NonStop Kernel.
22117         * doc/acl-resources.txt: Add info about NonStop Kernel.
22118         References by Joachim Schmitz <schmitz@hp.com>.
22119
22120 2010-10-02  Bruno Haible  <bruno@clisp.org>
22121
22122         Define missing EDQUOT on NonStop Kernel.
22123         * lib/errno.in.h (EDQUOT): Assign a value if missing.
22124         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
22125         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
22126         missing.
22127         * doc/posix-headers/errno.texi: Mention the NSK bug.
22128         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
22129         Reported by Joachim Schmitz <schmitz@hp.com>.
22130
22131 2010-10-02  Bruno Haible  <bruno@clisp.org>
22132
22133         Update doc for POSIX:2008.
22134         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
22135         Update URL of POSIX specification.
22136
22137 2010-10-02  Bruno Haible  <bruno@clisp.org>
22138
22139         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
22140         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
22141         from gnulib, not from Automake.
22142
22143 2010-10-02  Bruno Haible  <bruno@clisp.org>
22144
22145         New module 'system-posix'.
22146         * modules/system-posix: New file.
22147         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
22148         module is present.
22149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22150         GNULIB_SYSTEM_POSIX.
22151         * modules/stdlib (Depends-on): Remove sys_wait.
22152         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
22153         * doc/posix-functions/system.texi: Mention the new module.
22154         * doc/posix-headers/stdlib.texi: Likewise.
22155         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
22156         define test_sys_wait_macros to a no-op.
22157         Reported by Sam Steingold <sds@gnu.org>.
22158
22159 2010-09-30  Bruno Haible  <bruno@clisp.org>
22160
22161         More renaming from 'getdate' to 'get_date'.
22162         * doc/get_date.texi: Renamed from doc/getdate.texi.
22163         * modules/get_date (Files): Update.
22164         * MODULES.html.sh (Date and time <time.h>): Update.
22165         * DEPENDENCIES: Update.
22166         * gnulib-tool: Update comment.
22167         * m4/bison.m4 (gl_BISON): Likewise.
22168         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22169
22170 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22171
22172         bootstrap: support ACLOCAL_FLAGS during aclocal
22173         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22174         can add additional -I dir for third-party .m4 files.
22175
22176 2010-09-30  Eric Blake  <eblake@redhat.com>
22177
22178         bootstrap: use glibtoolize on MacOS
22179         * build-aux/bootstrap (check_versions): Convert libtool into
22180         libtoolize.
22181         (tool search): Move libtool check earlier, and look for
22182         glibtoolize for MacOS.
22183         (gnulib_tool_options): Auto-add --libtool when appropriate.
22184         Reported by Justin Clift.
22185
22186         poll: fix typo that broke test on MacOS
22187         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22188         Reported by Justin Clift.
22189
22190         getdate: rename to get_date
22191         Note: getdate.h is not renamed, to minimize client impact.
22192         * modules/getdate: Mark obsolete.  Move old contents...
22193         * modules/get_date: ...to new module name.
22194         * modules/getdate-tests: Move...
22195         * modules/get_date-tests: ...here.
22196         * m4/getdate.m4: Move...
22197         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22198         * lib/getdate.y: Move...
22199         * lib/get_date.y: ...here.
22200         * tests/test-getdate.c: Move...
22201         * tests/test-get_date.c: ...here.
22202         * doc/posix-functions/getdate.texi (getdate): Update name.
22203         * NEWS: Mention the change.
22204
22205 2010-09-29  Bruno Haible  <bruno@clisp.org>
22206
22207         Separate the module 'waitpid' from the module 'sys_wait'.
22208         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22209         present.
22210         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22211         gl_MODULE_INDICATOR_FOR_TESTS.
22212         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22213         * modules/sys_wait (Depends-on): Remove waitpid.
22214         (Makefile.am): Substitute GNULIB_WAITPID.
22215         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22216         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22217         signature only if the 'waitpid' module is present.
22218         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22219         * NEWS: Mention the change.
22220         * modules/grantpt (Depends-on): Add waitpid.
22221         * modules/wait-process (Depends-on): Likewise.
22222
22223 2010-09-29  Bruno Haible  <bruno@clisp.org>
22224
22225         More tests for module 'sys_wait'.
22226         * modules/sys_wait-c++-tests: New file.
22227         * tests/test-sys_wait-c++.cc: New file.
22228         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22229         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22230
22231 2010-09-29  Bruno Haible  <bruno@clisp.org>
22232
22233         New module 'waitpid'.
22234         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22235         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22236         Don't include <process.h>.
22237         (waitpid): Declare only, using modern idiom.
22238         * m4/waitpid.m4: New file.
22239         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22240         * modules/waitpid: New file.
22241         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22242         (Makefile.am): Update.
22243         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22244
22245 2010-09-28  Bruno Haible  <bruno@clisp.org>
22246
22247         poll: Assume ANSI C.
22248         * lib/poll.c (poll): Use an ANSI C declaration.
22249
22250 2010-09-28  Bruno Haible  <bruno@clisp.org>
22251
22252         poll-h: Create poll.h on all platforms.
22253         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22254         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22255         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22256         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22257         (gl_REPLACE_POLL_H): Don't set POLL_H.
22258         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22259         * modules/poll-h (Depends-on): Add include_next.
22260         (Makefile.am): Create poll.h unconditionally. Substitute also
22261         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22262
22263 2010-09-28  Bruno Haible  <bruno@clisp.org>
22264
22265         Tests for module 'poll-h'.
22266         * modules/poll-h-c++-tests: New file.
22267         * tests/test-poll-h-c++.cc: New file.
22268
22269         Tests for module 'poll-h'.
22270         * modules/poll-h-tests: New file.
22271         * tests/test-poll-h.c: New file.
22272
22273 2010-09-28  Bruno Haible  <bruno@clisp.org>
22274
22275         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22276         * modules/poll-h (Depends-on): Add 'extensions'.
22277
22278 2010-09-28  Bruno Haible  <bruno@clisp.org>
22279
22280         New module 'poll-h'.
22281         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22282         (poll): Use modern idiom.
22283         * modules/poll-h: New file.
22284         * modules/poll (Files): Remove lib/poll.in.h.
22285         (Depends-on): Add poll-h.
22286         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22287         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22288         * m4/poll_h.m4: New file.
22289         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22290         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22291         and invoke gl_REPLACE_POLL_H.
22292         * lib/poll.c: Use common idiom.
22293         * tests/test-poll.c: Likewise.
22294         * doc/posix-headers/poll.texi: Mention the poll-h module.
22295         Suggested by Eric Blake.
22296
22297 2010-09-26  Bruno Haible  <bruno@clisp.org>
22298
22299         sys_wait: Implement WSTOPSIG.
22300         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22301         Reported by Simon Josefsson.
22302
22303 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22304
22305         stdlib, sys_wait: Avoid compilation error on mingw.
22306         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22307
22308 2010-09-26  Bruno Haible  <bruno@clisp.org>
22309
22310         stdlib tests: Avoid code duplication.
22311         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22312         * modules/sys_wait-tests (Files): Likewise.
22313         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22314         * tests/test-stdlib.c: Include test-sys_wait.h.
22315         (main): Invoke test_sys_wait_macros.
22316         * tests/test-sys_wait.c: Include test-sys_wait.h.
22317         (main): Invoke test_sys_wait_macros.
22318
22319 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22320
22321         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22322         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22323         sure Windows sockets are working before calling getaddrinfo.
22324         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22325         * doc/gnulib.texi (Windows sockets): Fix typo.
22326
22327 2010-09-25  Bruno Haible  <bruno@clisp.org>
22328
22329         Tests for module 'regex-quote'.
22330         * modules/regex-quote-tests: New file.
22331         * tests/test-regex-quote.c: New file.
22332
22333         New module 'regex-quote'.
22334         * lib/regex-quote.h: New file.
22335         * lib/regex-quote.c: New file.
22336         * modules/regex-quote: New file.
22337         Suggested by Reuben Thomas <rrt@sc3d.org>.
22338
22339 2010-09-24  Bruno Haible  <bruno@clisp.org>
22340
22341         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22342         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22343
22344 2010-09-23  Bruno Haible  <bruno@clisp.org>
22345
22346         setenv: Relax license.
22347         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22348         Blake.
22349         Requested by Eric Blake.
22350
22351 2010-09-22  Bruno Haible  <bruno@clisp.org>
22352
22353         termios: Relax license.
22354         * modules/termios (License): Change to LGPLv2+.
22355         Requested by Eric Blake.
22356
22357 2010-09-22  Bruno Haible  <bruno@clisp.org>
22358
22359         threadlib: Allow the package to change the default to 'no'.
22360         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22361         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22362         Reported by Paul Eggert.
22363
22364 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22365             Bruno Haible  <bruno@clisp.org>
22366
22367         Fix endless loop in mbmemcasecoll.
22368         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22369         byte.
22370         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22371
22372 2010-09-22  Bruno Haible  <bruno@clisp.org>
22373
22374         Tests for module 'memcoll'.
22375         * modules/memcoll-tests: New file.
22376         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22377
22378         memcoll, xmemcoll: Clarify size vs. length.
22379         * modules/memcoll.c (memcoll0): Clarify specification.
22380         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22381         passed to collate_error.
22382
22383 2010-09-22  Bruno Haible  <bruno@clisp.org>
22384
22385         Tests for module 'memcasecmp'.
22386         * modules/memcasecmp-tests: New file.
22387         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22388
22389 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22390
22391         * lib/pthread.in.h: Add split double-inclusion guard, and include
22392         system <pthread.h> if there is one.  Use @@-style as in other
22393         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22394         pthread.h doesn't.
22395         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22396         (pthread_mutexattr_settype, pthread_mutex_trylock):
22397         New static inline functions, if there's no system <pthread.h>.
22398         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22399         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22400         Approximate with mutexes if the system lacks spinlocks, as in
22401         MacOS.
22402         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22403         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22404         @@-style.  Check for spinlocks separately.
22405         (gl_PTHREAD_DEFAULTS): New macro.
22406         * modules/pthread: Redo to use a more typical style for in.h files.
22407
22408 2010-09-21  Eric Blake  <eblake@redhat.com>
22409
22410         net_if: enhance tests
22411         * tests/test-net_if.c (main): Move signature checks earlier.
22412         Print failures to stderr.
22413         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22414         Document the bug that we do not yet fix.
22415
22416 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22417
22418         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22419         about gnulib, not GSS.
22420
22421 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22422
22423         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22424         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22425         for Emacs.
22426         * build-aux/pmccabe2html: Make Makefile.am example code more
22427         cut-and-paste friendly.
22428
22429 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22430
22431         * tests/test-net_if.c: New file.
22432         * modules/net_if-tests: New file.
22433
22434 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22435
22436         pthread: add pthread_spin_destroy
22437         * lib/pthread.in.h (pthread_spin_destroy): New function.
22438
22439 2010-09-19  Bruno Haible  <bruno@clisp.org>
22440
22441         gnulib-tool: Fix --help output.
22442         * gnulib-tool (func_usage): Fix help message.
22443         Reported by Reuben Thomas <rrt@sc3d.org>.
22444
22445 2010-09-18  Jim Meyering  <meyering@redhat.com>
22446
22447         maint.mk: avoid unexpanded \n in two diagnostics
22448         * top/maint.mk (sc_prohibit_always_true_header_tests):
22449         Don't use a literal \n in a halt=... assignment.  It would not be
22450         expanded, and the two \n bytes would appear in the diagnostic output
22451         rather than the desired newline.  Use halt=$$(printf ... instead.
22452         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22453
22454 2010-09-18  Bruno Haible  <bruno@clisp.org>
22455
22456         netinet_in: Doc tweak.
22457         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22458         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22459
22460 2010-09-18  Jim Meyering  <meyering@redhat.com>
22461
22462         init.sh: correct an outdated comment
22463         * tests/init.sh (create_exe_shims_):  s/function/alias/
22464
22465         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22466         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22467         a file named "*.exe" is removed between the glob expansion and the
22468         processing of that oddly named file.
22469
22470 2010-09-17  Eric Blake  <eblake@redhat.com>
22471
22472         mirbsd: add some more support
22473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22474         in BSD family.
22475         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22476         devices as OpenBSD.
22477         * m4/host-os.m4 (mirbsd): Add MirBSD.
22478
22479         tests: fix unportable assumption on sys/wait.h
22480         * tests/test-sys_wait.c (main): Relax test.
22481         * tests/test-stdlib.c (main): Likewise.
22482
22483         init.sh: accomodate directory with no .exes
22484         * tests/init.sh: Accomodate directory containing only scripts.
22485
22486         tests: avoid compiler warning
22487         * tests/test-stdlib.c (main): Use the variable.
22488
22489         fdutimens, fdutimensat: update signature, again
22490         * lib/utimens.h (gl_futimens): Delete, and move signature...
22491         (fdutimens): ...here.
22492         (fdutimensat): Rearrange signature.
22493         (lutimensat): Rename variable for clarity.
22494         * lib/fdutimensat.c (fdutimensat): Update signature.
22495         * lib/utimens.c (fdutimens): Likewise.
22496         (gl_futimens): Delete.
22497         (utimens, lutimens): Update callers.
22498         * lib/futimens.c (futimens): Likewise.
22499         * tests/test-fdutimensat.c: Likewise.
22500         * tests/test-utimens.c: Likewise.
22501         * tests/test-futimens.h: Update comment.
22502         * NEWS: Mention this.
22503         Suggested by Paul Eggert.
22504
22505 2010-09-17  Bruno Haible  <bruno@clisp.org>
22506
22507         Take over the maintenance of some older macros from Autoconf.
22508         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22509         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22510         GNU Autoconf.
22511         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22512         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22513
22514 2010-09-17  Eric Blake  <eblake@redhat.com>
22515
22516         fdutimensat: drop atflag validation
22517         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22518         with valid fd, to close a race scenario where futimens is
22519         unsupported and FILE was replaced by a symlink.
22520         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22521         accordingly.
22522         Suggested by Paul Eggert.
22523
22524 2010-09-16  Bruno Haible  <bruno@clisp.org>
22525
22526         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22527         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22528
22529 2010-09-16  Bruno Haible  <bruno@clisp.org>
22530
22531         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22532         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22533         login_tty exists.
22534         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22535
22536 2010-09-16  Bruno Haible  <bruno@clisp.org>
22537
22538         login_tty: Make the replacement code work on BSD systems.
22539         * lib/login_tty.c: Include <sys/ioctl.h>.
22540         (login_tty): Use ioctl TIOCSCTTY when available.
22541         * modules/login_tty (Depends-on): Add sys_ioctl.
22542         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22543
22544 2010-09-16  Bruno Haible  <bruno@clisp.org>
22545
22546         login_tty: Stricter unit test.
22547         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22548         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22549         and tcgetsid() after login_tty.
22550         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22551
22552 2010-09-16  Bruno Haible  <bruno@clisp.org>
22553
22554         New module 'tcgetsid'.
22555         * lib/tcgetsid.c: New file.
22556         * m4/tcgetsid.m4: New file.
22557         * modules/tcgetsid: New file.
22558         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22559         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22560         GNULIB_TCGETSID, HAVE_TCGETSID.
22561         * lib/termios.in.h: Include <sys/types.h>.
22562         (tcgetsid): New declaration.
22563         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22564         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22565         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22566         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22567
22568 2010-09-16  Bruno Haible  <bruno@clisp.org>
22569
22570         Tests for module 'termios'.
22571         * modules/termios-c++-tests: New file.
22572         * modules/termios-tests: New file.
22573         * tests/test-termios-c++.cc: New file.
22574         * tests/test-termios.c: New file.
22575
22576         New module 'termios'.
22577         * modules/termios: New file.
22578         * lib/termios.in.h: New file.
22579         * m4/termios_h.m4: New file.
22580         * doc/posix-headers/termios.texi: Mention the new module.
22581
22582 2010-09-16  Eric Blake  <eblake@redhat.com>
22583
22584         fdutimensat: add an atflag parameter
22585         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22586         * lib/utimens.h (fdutimensat): Update prototype.
22587         * tests/test-fdutimensat.c: Adjust test to match.
22588         * NEWS: Document the change.
22589         Suggested by Paul Eggert.
22590
22591 2010-09-16  Bruno Haible  <bruno@clisp.org>
22592
22593         Fix typos in comments.
22594         * lib/striconveh.h: Fix typo in comment.
22595         * lib/login_tty.c (login_tty): Likewise.
22596
22597 2010-09-15  Bruno Haible  <bruno@clisp.org>
22598
22599         stdlib: clarify MirBSD WEXITSTATUS bug
22600         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22601         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22602
22603 2010-09-15  Eric Blake  <eblake@redhat.com>
22604
22605         stdlib: work around MirBSD WEXITSTATUS bug
22606         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22607         * modules/stdlib (Depends-on): Add sys_wait.
22608         * tests/test-sys_wait.c (main): Enhance test.
22609         * tests/test-stdlib.c (main): Likewise.
22610         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22611
22612         docs: mention MacOS issue with WEXITSTATUS(constant)
22613         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22614         issue.
22615         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22616
22617         strnlen: add tests
22618         * modules/strnlen-tests: New file.
22619         * tests/test-strnlen.c: Likewise.
22620
22621 2010-09-14  Bruno Haible  <bruno@clisp.org>
22622
22623         unistr/base: Avoid link errors when module 'libunistring' is also used.
22624         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22625         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22626         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22627         Declare also when HAVE_LIBUNISTRING is set.
22628         Reported by Pádraig Brady <P@draigbrady.com>.
22629
22630 2010-09-14  Eric Blake  <eblake@redhat.com>
22631
22632         test-rawmemchr: make more robust
22633         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22634         (Depends-on, configure.ac): Add needed prerequisites to use it.
22635         * modules/memchr-tests (Files, Depends-on, configure.ac):
22636         Likewise, to avoid implicit reliance on memchr module prereqs.
22637         * tests/test-memchr.c (main): Ensure proper masking.
22638         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22639         reads.
22640
22641         memchr: detect glibc Alpha bug
22642         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22643         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22644         Alpha.
22645         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22646         * tests/test-memchr.c (main): Enhance test.
22647         Reported by Nelson H. F. Beebe.
22648
22649 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22650
22651         fts, getcwd, glob: audit for dirfd returning -1
22652         * lib/fts.c (opendir): Remove #define; no longer used.
22653         (opendirat): New arg PDIR_FD.  All callers changed.
22654         (fts_build, _opendir2): Use new opendirat to avoid the need for
22655         dirfd, or for checking whether dirfd returns a negative value.
22656         Don't use opendir; always use openat followed by fdopendir.
22657         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22658         it.
22659         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22660         returns -1 here.
22661         * modules/fts (Depends-on): Remove dirfd.
22662         * modules/getcwd (Depends-on): Likewise.
22663
22664 2010-09-13  Eric Blake  <eblake@redhat.com>
22665
22666         float: fix broken MirBSD header
22667         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22668         * doc/posix-headers/float.texi (float.h): Document it.
22669
22670 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22671
22672         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22673         * lib/fts.c (opendirat): New arg extra_flags.
22674         (__opendir2): Use it to avoid following symlinks when opening
22675         a directory, if symlinks are not supposed to be followed.  See
22676         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22677
22678         fdopendir: preserve argument fd before returning
22679         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22680         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22681         (fdopendir): Use them, arranging for FD to be open to the same
22682         directory that it was when it started.  (It might be temporarily
22683         closed while fdopendir is running, so this not thread- or
22684         signal-safe.)  Be careful to do the right thing even when file
22685         descriptors are scarce and dup fails with errno == EMFILE.  See
22686         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22687
22688 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22689
22690         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22691         * NEWS: Document change.
22692         * m4/regex.m4: Disable test for regoff_t size.
22693
22694 2010-09-13  Jim Meyering  <meyering@redhat.com>
22695
22696         fts: don't operate on an invalid file descriptor after failed dup
22697         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22698         negative file descriptor.
22699
22700 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22701
22702         savedir: add streamsavedir, deprecate fdsavedir
22703         * NEWS: Mention deprecation of fdsavedir.
22704         * lib/savedir.c (streamsavedir): New extern function, whose name
22705         ends in "savedir" to be consistent with the others.  This differs
22706         from savedirstream in that it doesn't close its argument.  The
22707         next version of GNU tar will use this instead of fdsavedir, to
22708         avoid some race conditions and conserve file descriptors.
22709         (savedirstream): Reimplement as a wrapper around streamsavedir.
22710         (fdsavedir): Add a comment deprecating this function.  As far as
22711         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22712         * lib/savedir.h (streamsavedir): New decl.
22713         (fdsavedir): Add a comment deprecating this.
22714
22715 2010-09-10  Bruno Haible  <bruno@clisp.org>
22716
22717         langinfo: Fix last commit.
22718         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22719         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22721
22722 2010-09-10  Bruno Haible  <bruno@clisp.org>
22723
22724         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22725         * lib/progreloc.c (O_EXEC): Define fallback.
22726
22727 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22728
22729         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22730         * NEWS: Document recent changes to fcntl-h.
22731         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22732         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22733         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22734         Similarly for O_SEARCH; this last was already true, but not documented.
22735         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22736         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22737         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22738         Likewise.
22739         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22740         is zero, not whether it is defined.
22741         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22742         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22743         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22744
22745 2010-09-10  Bruno Haible  <bruno@clisp.org>
22746
22747         langinfo, nl_langinfo: Fix for IRIX 5.3.
22748         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22749         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22750         HAVE_LANGINFO_YESEXPR.
22751         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22752         HAVE_LANGINFO_YESEXPR.
22753         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22754         HAVE_LANGINFO_T_FMT_AMPM is 0.
22755         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22756         HAVE_LANGINFO_YESEXPR is 0.
22757         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22758         NOEXPR.
22759         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22760         * doc/posix-functions/nl_langinfo.texi: Likewise.
22761         Reported by Eric Blake.
22762
22763 2010-09-10  Bruno Haible  <bruno@clisp.org>
22764
22765         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22766         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22767         on FreeBSD 8.0 and OpenBSD 4.6.
22768         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22769         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22770         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22771         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22772         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22773         ac_includes_default.
22774         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22775
22776 2010-09-09  Eric Blake  <eblake@redhat.com>
22777
22778         strsignal: work around NetBSD bug
22779         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22780         * lib/string.in.h (includes): Likewise.
22781         * doc/posix-functions/strsignal.texi (strsignal): Document the
22782         bug.
22783         Reported by Nelson H. F. Beebe.
22784
22785         gnulib-tool: work with NetBSD /bin/sh
22786         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22787         (func_get_description, func_get_comment, func_get_status)
22788         (func_get_notice, func_get_applicability, func_get_filelist)
22789         (func_get_dependencies, func_get_autoconf_early_snippet)
22790         (func_get_autoconf_snippet, func_get_automake_snippet)
22791         (func_get_include_directive, func_get_link_directive)
22792         (func_get_license, func_get_maintainer, func_import): Avoid
22793         shell syntax errors from parsing syntax extensions.
22794
22795 2010-09-09  Bruno Haible  <bruno@clisp.org>
22796
22797         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22798         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22799         a reliable way to determine whether the 'alias' command works.
22800
22801 2010-09-08  Jim Meyering  <meyering@redhat.com>
22802
22803         init.sh: penalize a set-x-impaired shell; don't disqualify it
22804         * tests/init.sh: Too many shells corrupt application stderr when
22805         you set -x, so we can't afford to disqualify them, since at least
22806         on Irix-6.5, that would disqualify all bourne shells.
22807         Instead, use a two-pass approach.
22808         On the first pass, try to find a shell that meets the stricter
22809         condition that set -x does not corrupt stderr.
22810         If no shell meets the stricter condition, retest each candidate
22811         shell, but without that extra condition.  Finally, when
22812         VERBOSE=yes is requested and set -x might cause trouble, simply
22813         issue a warning and refrain from enabling debug output.
22814
22815 2010-09-08  Eric Blake  <eblake@redhat.com>
22816
22817         unsetenv: fix OpenBSD bug
22818         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22819         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22820         documentation.
22821         Reported by Jim Meyering.
22822
22823         strtod: work around IRIX 6.5 bug
22824         * lib/strtod.c (strtod): Reparse number on shorter string if
22825         exponent parse was invalid.
22826         * tests/test-strtod.c (main): Add check for "0x1p 2".
22827         Reported by Tom G. Christensen.
22828
22829         getopt: optimize previous patch
22830         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22831         empty variable.  Speed up awk script.
22832         Reported by Paolo Bonzini.
22833
22834 2010-09-08  Jim Meyering  <meyering@redhat.com>
22835
22836         test.sh: disqualify shells for which set -x corrupts stderr
22837         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22838         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22839         appear in stderr output.  For example, this command:
22840             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22841         prints "P=1" on those two systems:
22842
22843 2010-09-08  Bruno Haible  <bruno@clisp.org>
22844
22845         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22846         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22847         commands, because some shells ignore redirections when there is an
22848         error in the command lookup.
22849         Reported by Eric Blake.
22850
22851 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22852
22853         * lib/regex.h: Fix a mention of `regex_compile' (should be
22854         `re_compile_pattern').
22855         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22856         (re_set_registers): Correct name of parameter in comment.
22857
22858         * doc/regex.texi: Add documentation for missing syntax flags.
22859         Remove commented-out documentation of defunct syntax option
22860         RE_NO_EMPTY_ALTS.
22861         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22862         Add documentation of re_set_registers.
22863         Document trick to re-use a pattern buffer by setting fastmap manually.
22864         Update documentation of struct re_pattern_buffer per public members.
22865         Uncomment documentation of equivalence class operators and
22866         collating symbol operators, since they are now implemented,
22867         Explain leftmost-longest matching in relation to alternatives.
22868         Tidy documentation of substring matching.
22869         Remove POSIX documentation, which is done better in
22870         glibc, and refer the reader there. Keep BSD API documentation, as
22871         that is not readily available elsewhere.
22872
22873 2010-09-07  Eric Blake  <eblake@redhat.com>
22874
22875         getopt: handle POSIXLY_CORRECT set but not exported
22876         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22877         export state of POSIXLY_CORRECT, due to bash set -o posix.
22878         Reported by Dustin J. Mitchell.
22879
22880 2010-09-05  Bruno Haible  <bruno@clisp.org>
22881
22882         gnulib-tool: Highlight the changed options.
22883         * gnulib-tool (func_usage): Display the --import, --add-import,
22884         --remove-import explanations in bold font.
22885
22886 2010-09-06  Karl Berry  <karl@gnu.org>
22887
22888         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22889
22890 2010-09-05  Bruno Haible  <bruno@clisp.org>
22891
22892         uniwidth/width: Update comment.
22893         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22894         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22895
22896 2010-09-05  Bruno Haible  <bruno@clisp.org>
22897
22898         isinf, isnan: Relax license.
22899         * modules/isinf (License): Change from GPL to LGPL, with consent from
22900         Ben Pfaff.
22901         * modules/isnan (License): Likewise.
22902         Requested by Ludovic Courtès.
22903
22904 2010-09-04  Bruno Haible  <bruno@clisp.org>
22905
22906         gnulib-tool: Help migration from --import to --add-import or --update.
22907         * gnulib-tool: Emit a verbose error message when --import is used
22908         without any module name.
22909
22910 2010-09-04  Bruno Haible  <bruno@clisp.org>
22911
22912         Update doc about gnulib-tool.
22913         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22914         'gnulib-tool --update' in more detail.
22915         Reported by Eric Blake.
22916
22917 2010-09-04  Bruno Haible  <bruno@clisp.org>
22918
22919         gnulib-tool: Change --import. New options --add/remove-import.
22920         * gnulib-tool: New options --add-import, --remove-import.
22921         (func_usage): Document them.
22922         (have_associative): Define always.
22923         (func_import): In import mode, don't merge the specified settings with
22924         the cached settings. Implement remove-import mode.
22925         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22926         Explain when to use them versus --import.
22927         (Simple update): Use --add-import instead of --import.
22928         * NEWS: Mention the change.
22929
22930 2010-09-04  Bruno Haible  <bruno@clisp.org>
22931
22932         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22933         separate gnulib.mk.
22934
22935 2010-09-04  Bruno Haible  <bruno@clisp.org>
22936
22937         gnulib-tool: Don't talk about CVS any more.
22938         * gnulib-tool (func_usage, func_import): Write "version control"
22939         instead of CVS.
22940
22941 2010-09-04  Jim Meyering  <meyering@redhat.com>
22942
22943         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22944         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22945         false positives (whose names may be ill-chosen) when searching
22946         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22947         would cause a false-positive.
22948
22949         avoid coreutils "make distcheck" failure
22950         Coreutils tests with an absolute build directory name that contains
22951         a space.  Not quoting this directory name caused a failure.
22952         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22953         * tests/test-vc-list-files-cvs.sh: Likewise.
22954
22955 2010-09-04  Bruno Haible  <bruno@clisp.org>
22956
22957         gnulib-tool: Avoid error when run in a package without Makefile.am.
22958         * gnulib-tool: When collecting the m4dirs in a package that does not
22959         have a Makefile.am, eliminate those directories that contain no
22960         gnulib-cache.m4. Fix expression that counts these directories.
22961
22962 2010-09-04  Bruno Haible  <bruno@clisp.org>
22963
22964         update-copyright test: Improve output when perl is missing or too old.
22965         * tests/test-update-copyright.sh: Move test of Perl version down after
22966         the test whether Perl exists. Provide an explanation relating Perl's
22967         error message to Automake's SKIP: message.
22968
22969 2010-09-04  Bruno Haible  <bruno@clisp.org>
22970
22971         Don't augment PATH in TESTS_ENVIRONMENT.
22972         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22973         set abs_aux_dir instead of augmenting PATH.
22974         * modules/vc-list-files-tests (Makefile.am): Likewise.
22975         * tests/test-update-copyright.sh: Augment PATH here.
22976         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22977         path_prepend_.
22978         * tests/test-vc-list-files-git.sh: Likewise.
22979
22980 2010-09-04  Jim Meyering  <meyering@redhat.com>
22981
22982         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22983         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22984
22985 2010-09-04  Bruno Haible  <bruno@clisp.org>
22986
22987         strdup: Fix compilation error in C++ mode.
22988         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22989         the macro.
22990
22991 2010-09-04  Bruno Haible  <bruno@clisp.org>
22992
22993         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22994         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22995         macro into a function.
22996         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22997
22998 2010-09-04  Bruno Haible  <bruno@clisp.org>
22999
23000         Set PATH_SEPARATOR the same way autoconf does.
23001         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
23002         the value of PATH_SEPARATOR the same way autoconf-generated configure
23003         scripts do.
23004         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
23005         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23006
23007 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23008
23009         Set PATH_SEPARATOR the same way autoconf does.
23010         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
23011         the same way autoconf-generated configure scripts do.
23012         * posix-modules: Likewise.
23013
23014 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
23015
23016         hash: fix safe_hasher const typo
23017         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
23018         const; otherwise, there is a type error later.
23019
23020 2010-09-02  Jim Meyering  <meyering@redhat.com>
23021
23022         test-update-copyright.sh: require perl 5.8.0
23023         * tests/test-update-copyright.sh: Require 5.8.0,
23024         which Tom G. Christensen has confirmed is adequate,
23025         while 5.6.1 is not.
23026
23027 2010-09-02  Eric Blake  <eblake@redhat.com>
23028
23029         tests: init.sh improvements for re-exec'ing with zsh
23030         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
23031         -vx through shell re-exec.
23032         Reported by Tom G. Christensen.
23033
23034         wctype: fix typo in previous commit
23035         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
23036         Reported by Ludovic Courtès.
23037
23038 2010-09-02  Jim Meyering  <meyering@redhat.com>
23039
23040         test-update-copyright.sh: skip test if Perl is too old
23041         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
23042         Reported by Tom G. Christensen.
23043
23044 2010-09-02  Bruno Haible  <bruno@clisp.org>
23045
23046         wctype: Avoid compilation error on IRIX 6.5.30.
23047         * lib/wctype.in.h (iswblank): Declare with a replacement if
23048         REPLACE_ISWBLANK is set.
23049         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
23050         declared. Set REPLACE_ISWBLANK.
23051         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
23052         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
23053         * doc/posix-headers/wctype.texi: Likewise.
23054         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23055
23056 2010-09-01  Bruno Haible  <bruno@clisp.org>
23057
23058         New module 'socketlib'.
23059         * modules/socketlib: New file.
23060         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
23061         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
23062         * modules/sockets (Depends-on): Add socketlib.
23063         Suggested by Sam Steingold <sds@gnu.org>.
23064
23065 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
23066
23067         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
23068
23069         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
23070         when one needs search access to a directory but not read access.
23071         On systems where it is available, it works in some cases where
23072         O_RDONLY does not, namely on directories that are searchable but
23073         not readable, and which need only to be searchable.  If O_SEARCH
23074         is not available, fall back to the traditional method of using
23075         O_RDONLY.
23076
23077         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
23078         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
23079         when opening a directory that needs only to be searchable.
23080         * lib/chdir-safer.c (chdir_no_follow): Likewise.
23081         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
23082         * lib/openat-proc.c (openat_proc_name): Likewise.
23083         * lib/openat.c (openat_needs_fchdir): Likewise.
23084         * lib/save-cwd.c (save_cwd): Likewise.
23085         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
23086
23087 2010-08-28  Bruno Haible  <bruno@clisp.org>
23088
23089         New module 'host-cpu-c-abi'.
23090         * modules/host-cpu-c-abi: New file.
23091         * m4/host-cpu-c-abi.m4: New file, based on part of
23092         clisp/src/m4/general.m4.
23093         Requested by Sam Steingold <sds@gnu.org>.
23094
23095 2010-08-31  Eric Blake  <eblake@redhat.com>
23096         and Jim Meyering  <meyering@redhat.com>
23097
23098         hash: factor, and guard against misbehaving hasher function
23099         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
23100         of table->hasher's return value.  Also protect against a hash value
23101         so large that adding it to table->bucket results in a NULL pointer.
23102         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
23103         Use it in place of open-coded check-and-abort.
23104
23105 2010-08-30  Bruno Haible  <bruno@clisp.org>
23106
23107         hash: silence spurious clang warning
23108         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
23109         Reported by Eric Blake.
23110
23111 2010-08-30  Eric Blake  <eblake@redhat.com>
23112
23113         strstr, memmem, strcasestr: avoid leaked shell message
23114         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
23115         FreeBSD.
23116         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23117         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23118
23119         tests: silence clang warning
23120         * tests/test-malloca.c (do_allocation): Avoid dead store.
23121
23122 2010-08-29  Bruno Haible  <bruno@clisp.org>
23123
23124         gettext: Fix recent mistake.
23125         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
23126
23127 2010-08-29  Bruno Haible  <bruno@clisp.org>
23128
23129         selinux-h: Offer a --without-selinux option.
23130         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
23131         --without-selinux was specified, skip all tests and define
23132         HAVE_SELINUX_SELINUX_H to 0.
23133         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
23134         set LIB_SELINUX to empty.
23135         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
23136         gl_LIBSELINUX. If --without-selinux was specified, replace
23137         selinux/context.h.
23138         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
23139
23140 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23141             Bruno Haible  <bruno@clisp.org>
23142
23143         Make the module 'realloc-gnu' work again on AIX and OSF/1.
23144         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
23145         of HAVE_REALLOC.
23146         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
23147         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
23148         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
23149         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23150
23151 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23152             Bruno Haible  <bruno@clisp.org>
23153
23154         Make the module 'calloc-gnu' work again on AIX and OSF/1.
23155         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
23156         HAVE_CALLOC.
23157         * lib/xmalloc.c: Update accordingly.
23158         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
23159         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
23160         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
23161
23162 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23163             Bruno Haible  <bruno@clisp.org>
23164
23165         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23166         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23167         HAVE_MALLOC.
23168         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23169         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23170         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23171
23172 2010-08-29  Bruno Haible  <bruno@clisp.org>
23173
23174         Update modules list.
23175         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23176         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23177         (String handling <string.h>): Add astrxfrm.
23178         (File system functions): Add readlinkat.
23179
23180 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23181
23182         Tests for module 'realloc-gnu'.
23183         * modules/realloc-gnu-tests: New file.
23184         * tests/test-realloc-gnu.c: New file.
23185
23186         Tests for module 'calloc-gnu'.
23187         * modules/calloc-gnu-tests: New file.
23188         * tests/test-calloc-gnu.c: New file.
23189
23190         Tests for module 'malloc-gnu'.
23191         * modules/malloc-gnu-tests: New file.
23192         * tests/test-malloc-gnu.c: New file.
23193
23194 2010-08-28  Bruno Haible  <bruno@clisp.org>
23195
23196         Rename module 'realloc' -> 'realloc-gnu'.
23197         * modules/realloc-gnu: New file, copied from modules/realloc.
23198         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23199         obsolete.
23200         * modules/mgetgroups (Depends-on): Update.
23201         * doc/posix-functions/realloc.texi: Update.
23202         * NEWS: Mention the change.
23203
23204         Rename module 'calloc' -> 'calloc-gnu'.
23205         * modules/calloc-gnu: New file, copied from modules/calloc.
23206         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23207         obsolete.
23208         * doc/posix-functions/calloc.texi: Update.
23209         * NEWS: Mention the change.
23210
23211         Rename module 'malloc' -> 'malloc-gnu'.
23212         * modules/malloc-gnu: New file, copied from modules/malloc.
23213         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23214         obsolete.
23215         * modules/argp (Depends-on): Update.
23216         * modules/regex (Depends-on): Update.
23217         * doc/posix-functions/malloc.texi: Update.
23218         * NEWS: Mention the change.
23219
23220 2010-08-28  Eric Blake  <eblake@redhat.com>
23221
23222         pread, pwrite: add missing dependency
23223         * modules/pread (Depends-on): Add extensions.
23224         * modules/pwrite (Depends-on): Likewise.
23225
23226 2010-08-28  Bruno Haible  <bruno@clisp.org>
23227
23228         unistr/u*-strchr: Fix tests dependencies.
23229         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23230         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23231         Reported by Ian Beckwith <ianb@erislabs.net>.
23232
23233 2010-08-28  Bruno Haible  <bruno@clisp.org>
23234
23235         read-file: Don't occupy too much unused memory.
23236         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23237
23238 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23239             Eric Blake  <eblake@redhat.com>
23240             Bruno Haible  <bruno@clisp.org>
23241
23242         read-file: Avoid memory reallocations with regular files.
23243         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23244         (fread_file): With regular files, use the remaining length as the
23245         initial buffer size.  Check against overflow.
23246         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23247         sys_stat.
23248
23249 2010-08-28  Bruno Haible  <bruno@clisp.org>
23250
23251         ftello: Relax license.
23252         * modules/ftello (License): Relax to LGPLv2+.
23253         Reported by Eric Blake.
23254
23255 2010-08-28  Bruno Haible  <bruno@clisp.org>
23256
23257         Avoid relocwrapper link errors due to gnulib replacement functions.
23258         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23259         function.
23260         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23261
23262 2010-08-28  Bruno Haible  <bruno@clisp.org>
23263
23264         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23265         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23266         defined.
23267         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23268         Suggested by Eric Blake.
23269
23270 2010-08-28  Bruno Haible  <bruno@clisp.org>
23271
23272         sys_socket, netdb: Ensure socklen_t gets defined.
23273         * modules/sys_socket (Depends-on): Add socklen.
23274         * modules/netdb (Depends-on): Likewise.
23275         * modules/getaddrinfo (Depends-on): Remove socklen.
23276         * modules/getsockopt (Depends-on): Likewise.
23277         * modules/setsockopt (Depends-on): Likewise.
23278         * tests/test-sys_socket.c: Check that socklen_t is defined.
23279         * tests/test-netdb.c: Likewise.
23280         * m4/socklen.m4: Update comments.
23281         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23282
23283 2010-08-27  Eric Blake  <eblake@redhat.com>
23284
23285         login_tty: add missing dependency
23286         * modules/login_tty (Depends-on): Add pty.
23287
23288 2010-08-26  Eric Blake  <eblake@redhat.com>
23289
23290         lib-symbol-versions: fix m4 quoting
23291         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23292         format for AC_LINK_IFELSE.
23293
23294         glob: fix compile test
23295         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23296
23297         btowc: fix missing file
23298         * modules/btowc (Files): Also ship locale-fr.m4.
23299
23300         lseek: fix link test
23301         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23302         AC_LINK_IFELSE.
23303
23304         include_next: silence autoconf 2.68 warning
23305         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23306         AC_COMPILE_IFELSE as special.
23307         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23308         autoconf < 2.68.
23309
23310         acl: fix compilation test
23311         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23312         AC_COMPILE_IFELSE.
23313
23314 2010-08-26  Bruno Haible  <bruno@clisp.org>
23315
23316         Modernize AC_TRY_RUN invocations.
23317         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23318         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23319         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23320         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23321         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23322         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23323         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23324         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23325         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23326         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23327         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23328         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23329         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23330         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23331         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23332         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23333         gl_MBRLEN_NUL_RETVAL): Likewise.
23334         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23335         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23336         Likewise.
23337         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23338         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23339         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23340         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23341         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23342         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23343         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23344         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23345         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23346         Likewise.
23347         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23348         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23349         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23350         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23351         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23352         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23353         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23354         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23355         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23356         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23357
23358 2010-08-26  Bruno Haible  <bruno@clisp.org>
23359
23360         Modernize AC_TRY_LINK invocations.
23361         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23362         AC_TRY_LINK.
23363         * m4/argp.m4 (gl_ARGP): Likewise.
23364         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23365         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23366         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23367         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23368         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23369         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23370         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23371         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23372         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23373         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23374         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23375         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23376         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23377         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23378         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23379         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23380         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23381         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23382         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23383         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23384         Likewise.
23385         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23386         Likewise.
23387         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23388         Likewise.
23389         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23390         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23391         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23392         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23393         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23394         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23395         * m4/servent.m4 (gl_SERVENT): Likewise.
23396         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23397         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23398         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23399         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23400         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23401         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23402         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23403         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23404         * modules/tsearch-tests (configure.ac): Likewise.
23405
23406 2010-08-26  Bruno Haible  <bruno@clisp.org>
23407
23408         Modernize AC_TRY_COMPILE invocations.
23409         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23410         AC_TRY_COMPILE.
23411         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23412         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23413         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23414         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23415         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23416         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23417         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23418         * m4/lock.m4 (gl_LOCK): Likewise.
23419         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23420         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23421         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23422         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23423         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23424         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23425         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23426         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23427         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23428         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23429         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23430         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23431         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23432         extraneous semicolon.
23433
23434 2010-08-26  Jim Meyering  <meyering@redhat.com>
23435
23436         stat-time: relax license LGPL
23437         * modules/stat-time (License): Change from GPL to LGPL,
23438         with consent from all contributors, for use in libguile.
23439         Requested by Ludovic Courtès.
23440
23441 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23442
23443         poll: return immediately on POLLHUP.
23444         * lib/poll.c (poll): Always set timeout before wait_timeout is
23445         computed.
23446
23447 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23448
23449         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23450         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23451         rmdir ("dir/.//"), unlinkat.
23452
23453 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23454
23455         stdbool: avoid spurious failure with modern xlc
23456         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23457
23458 2010-08-24  Bruno Haible  <bruno@clisp.org>
23459
23460         getloadavg: simplify code
23461         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23462         gl_have_func. Update comments.
23463
23464 2010-08-24  Eric Blake  <eblake@redhat.com>
23465
23466         getloadavg: don't define SVR4 on cygwin
23467         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23468         only define SVR4 when -lkvm is required.
23469         Reported by Yaakov Selkowitz.
23470
23471 2010-08-24  Bruno Haible  <bruno@clisp.org>
23472
23473         priv-set: fix comment
23474         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23475
23476 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23477
23478         priv-set: fix comments
23479         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23480         to match code, as suggested by David Bartley in:
23481         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23482
23483 2010-08-23  Eric Blake  <eblake@redhat.com>
23484
23485         stdbool: avoid rejecting clang
23486         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23487         * tests/test-stdbool.c: Enable more tests if using the system
23488         <stdbool.h> instead of the gnulib replacement.
23489         (main): Move xlc bug test to a runtime test for all compilers.
23490         Reported by Anders Kaseorg.
23491
23492         argz: fix shell quoting issue
23493         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23494         Reported by Charles Wilson.
23495
23496 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23497             Erik Faye-Lund <kusmabite@gmail.com>
23498
23499         poll, select: handle ERROR_BROKEN_PIPE.
23500         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23501         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23502         * lib/select.c (win32_compute_revents): Do not mark a pipe
23503         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23504
23505 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23506
23507         fts: allow compilation with C++
23508         * lib/fts_.h: Specify extern "C" linkage with C++.
23509
23510 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23511
23512         Fix gnulib-tool sed script de-commentation for AIX sed.
23513         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23514         sed.
23515
23516 2010-08-17  Eric Blake  <eblake@redhat.com>
23517
23518         test-stddef: test for (some) offsetof bugs
23519         * tests/test-stddef.c: Enhance test to ensure correct type of
23520         offsetof.
23521         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23522         that we are not fixing at this time.
23523
23524 2010-08-15  Bruno Haible  <bruno@clisp.org>
23525
23526         stpncpy: Allow stpncpy to be defined as a macro.
23527         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23528         if it's already correctly declared.
23529         * lib/string.in.h (stpncpy): Undefine before redefining.
23530         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23531
23532 2010-08-14  Bruno Haible  <bruno@clisp.org>
23533
23534         Rename module 'memxfrm' to 'amemxfrm'.
23535         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23536         (amemxfrm): Renamed from memxfrm.
23537         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23538         (amemxfrm): Renamed from memxfrm.
23539         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23540         * NEWS: Mention the change.
23541         * MODULES.html.sh (String handling <string.h>): Update.
23542         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23543         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23544         * lib/unicase/u16-casexfrm.c: Likewise.
23545         * lib/unicase/u32-casexfrm.c: Likewise.
23546         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23547         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23548         * lib/uninorm/u16-normxfrm.c: Likewise.
23549         * lib/uninorm/u32-normxfrm.c: Likewise.
23550         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23551         memxfrm.
23552         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23553         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23554         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23555         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23556         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23557         Suggested by Paul Eggert.
23558
23559 2010-08-14  Bruno Haible  <bruno@clisp.org>
23560
23561         Tests for module 'astrxfrm'.
23562         * modules/astrxfrm-tests: New file.
23563         * tests/test-astrxfrm.c: New file.
23564
23565         New module 'astrxfrm'.
23566         * lib/astrxfrm.h: New file.
23567         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23568         * modules/astrxfrm: New file.
23569
23570 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23571
23572         regex: Tweak doc.
23573         * doc/regex.texi (Overview): Don't mention regex.c.
23574         (GNU Regular Expression Compiling): Likewise.
23575         (Match-end-of-line Operator): Mention 'not_eol'.
23576
23577 2010-08-14  Brian Gough  <bjg@gnu.org>
23578             Bruno Haible  <bruno@clisp.org>
23579
23580         git-merge-changelog: add doc relating to use with bzr and hg.
23581         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23582
23583 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23584
23585         pthread: fix pthread.h creation for srcdir != builddir
23586         * modules/pthread (Makefile.am): Fix the rule to work also in a
23587         non-srcdir build.
23588
23589 2010-08-13  Karl Berry  <karl@gnu.org>
23590
23591         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23592         * doc/posix-*/*: force line break before @url of POSIX
23593         specifications.
23594         Suggested by Werner Lemberg.
23595
23596 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23597
23598         strtod: fix const diagnostic
23599         * lib/strtod.c (strtod): Don't assign const char * to char *,
23600         as this elicits a warning from GCC when warnings are enabled.
23601
23602 2010-08-10  Pádraig Brady <P@draigbrady.com>
23603         and Eric Blake  <eblake@redhat.com>
23604
23605         copy-acl: ignore ENOTSUP on HP-UX
23606         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23607         so that it is available for HP-UX.
23608         * lib/copy-acl.c (qcopy_acl): Use it.
23609         Reported by Patrick M. Callahan.
23610
23611 2010-08-10  Eric Blake  <eblake@redhat.com>
23612
23613         open, chown: relax license
23614         * modules/open (License): Change to LGPLv2+, with consent by all
23615         authors, for use in augeas.
23616         * modules/chown (License): Likewise.
23617         * modules/lchown (Likewise): Likewise.
23618         Requested by Adam Stokes.
23619
23620 2010-08-09  Karl Berry  <karl@gnu.org>
23621
23622         * build-aux/ar-lib: new file, import from Automake.
23623         * config/srclist.txt: autocheck for updates.
23624
23625 2010-08-09  Eric Blake  <eblake@redhat.com>
23626
23627         readlinkat: adjust client modules
23628         * modules/areadlinkat (Depends-on): Use readlinkat, not
23629         symlinkat.
23630         * modules/areadlinkat-with-size (Depends-on): Likewise.
23631
23632         mknod: be more vocal about danger of running tests as root
23633         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23634         root, since that is just asking for problems.
23635         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23636
23637         readlinkat: split into its own module
23638         * modules/symlinkat: Split readlinkat...
23639         * modules/readlinkat: ...into separate module.
23640         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23641         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23642         * lib/symlinkat.c (readlinkat): Move...
23643         * lib/readlinkat.c: ...into new file.
23644         * modules/symlinkat-tests: Split readlinkat test...
23645         * modules/readlinkat-tests: ...into separate module.
23646         * tests/test-symlinkat.c: Split...
23647         * tests/test-readlinkat.c: ...into new file.
23648         * NEWS: Document the split.
23649         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23650         * lib/unistd.in.h (readlinkat): Likewise.
23651         Suggested by Bruno Haible.
23652
23653 2010-08-08  Bruno Haible  <bruno@clisp.org>
23654
23655         memxfrm: Speed up.
23656         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23657         that usually only one call to strxfrm is necessary for each string
23658         part.
23659         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23660
23661 2010-08-07  Karl Berry  <karl@gnu.org>
23662
23663         * doc/posix-headers/limits.texi,
23664         * doc/posix-functions/malloc.texi,
23665         * doc/posix-functions/strsignal.texi: missing @item.
23666         * doc/ld-version-script.texi: spurious leading i.
23667         * doc/regex.texi (Interval Operators): no commas inside @var.
23668
23669 2010-08-01  Bruno Haible  <bruno@clisp.org>
23670
23671         Integrate the regex documentation.
23672         * doc/gnulib.texi: Define 'cn' index.
23673         (Regular expressions): New a chapter that includes regex.texi and
23674         regexprops-generic.texi.
23675         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23676         syntax.
23677
23678         Whitespace cleanup.
23679         * doc/regex.texi: Remove trailing spaces.
23680
23681         Add regex documentation.
23682         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23683         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23684         Written by Kathy A. Hargreaves and Karl Berry.
23685
23686 2010-08-01  Bruno Haible  <bruno@clisp.org>
23687
23688         link: Update documentation.
23689         * doc/posix-functions/link.texi: Update regarding Solaris.
23690
23691 2010-07-31  Bruno Haible  <bruno@clisp.org>
23692
23693         Update modules list.
23694         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23695         (String handling <string.h>): Add memcmp2, memxfrm.
23696         (Container data structures): Add xlist, xsublist, xoset.
23697         (Core language properties): Add alignof, unused-parameter.
23698         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23699         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23700         (Unibyte characters <ctype.h>): New section.
23701         (String handling <string.h>): New section.
23702         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23703         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23704         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23705         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23706         tan, tanh, tanl, y0, y1, yn.
23707         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23708         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23709         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23710         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23711         unlockpt, vdprintf, vdprintf-posix.
23712         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23713         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23714         xconcat-filename.
23715         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23716         getdtablesize, pipe2, pipe2-safer.
23717         (Security): New section.
23718         (Networking functions): Add accept4.
23719         (Signal handling): Add sigpipe.
23720         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23721         mbmemcasecoll.
23722         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23723         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23724         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23725         pipe-filter-ii.
23726         (Misc): Add argp-version-etc, login_tty, parse-duration.
23727
23728 2010-07-31  Bruno Haible  <bruno@clisp.org>
23729
23730         Improve doc in MODULES.html.
23731         * modules/linkat (Description): Add the word "function".
23732         * modules/mkfifo (Description): Likewise.
23733         * modules/mknod (Description): Likewise.
23734         * modules/remove (Description): Likewise.
23735         * modules/renameat (Description): Likewise.
23736         * modules/stat (Description): Likewise.
23737         * modules/symlink (Description): Likewise.
23738         * modules/unlink (Description): Likewise.
23739
23740 2010-07-31  Bruno Haible  <bruno@clisp.org>
23741
23742         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23743         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23744         option --enable/disable-c++ instead of --enable/disable-cxx.
23745         * NEWS: Mention the change.
23746
23747 2010-07-31  Bruno Haible  <bruno@clisp.org>
23748
23749         readlink, areadlink: Relax test a bit.
23750         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23751         alternative to ENOTDIR.
23752         * tests/test-areadlink.h (test_areadlink): Likewise.
23753         Reported by Rainer Tammer.
23754
23755 2010-07-31  Bruno Haible  <bruno@clisp.org>
23756
23757         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23758         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23759         character, perform the search using U_STRCHR.
23760         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23761         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23762         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23763         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23764         Suggested by Paolo Bonzini.
23765
23766 2010-07-31  Bruno Haible  <bruno@clisp.org>
23767
23768         unistr/u*-strstr: Fix dependencies.
23769         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23770         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23771         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23772
23773 2010-07-31  Bruno Haible  <bruno@clisp.org>
23774
23775         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23776         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23777         the beginning of the loop.
23778         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23779         cases in 'switch' statement.
23780
23781         unistr/u8-strchr: Fix several bugs.
23782         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23783         the string. When not found, return NULL, not a pointer near the end.
23784
23785         More tests for unistr/u8-strchr.
23786         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23787         that the function does not read past the first occurrence of the byte
23788         being searched.
23789         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23790         * tests/unistr/test-u16-strchr.c (main): New function.
23791         * tests/unistr/test-u32-strchr.c (main): New function.
23792
23793 2010-07-31  Bruno Haible  <bruno@clisp.org>
23794
23795         posix-modules: Ignore backup files of documentation files.
23796         * posix-modules: grep only through files named *.texi.
23797
23798 2010-07-31  Bruno Haible  <bruno@clisp.org>
23799
23800         symlinkat: Fix documentation.
23801         * doc/posix-functions/readlinkat.texi: Fix module name.
23802
23803 2010-07-31  Bruno Haible  <bruno@clisp.org>
23804
23805         fchownat: Replace also when chown has the trailing slash bug.
23806         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23807         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23808         introduced on 2010-04-10.
23809         Reported by Rainer Tammer.
23810
23811 2010-07-31  Bruno Haible  <bruno@clisp.org>
23812
23813         linkat: Work around AIX 7.1 bug.
23814         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23815         whether linkat handles trailing slash correctly. If not, replace linkat
23816         and define LINKAT_TRAILING_SLASH_BUG.
23817         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23818         check whether (fd1,file1) points to a directory if file1 or file2 ends
23819         in a slash. Code taken from lib/link.c.
23820         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23821         Reported by Rainer Tammer.
23822
23823 2010-07-31  Bruno Haible  <bruno@clisp.org>
23824
23825         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23826         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23827         This disables an xlc optimization that was causing wrong test results.
23828         Reported by Rainer Tammer.
23829
23830 2010-07-31  Bruno Haible  <bruno@clisp.org>
23831
23832         iconv: Work around AIX 6.1..7.1 bug.
23833         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23834         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23835         cross-compiling, guess no on all versions of AIX.
23836         Reported by Rainer Tammer.
23837
23838 2010-07-31  Bruno Haible  <bruno@clisp.org>
23839
23840         readlink: Relax test a bit.
23841         * tests/test-readlink.h (test_readlink): Allow different errno value
23842         when readlink is called with a file name that ends in / and refers to
23843         a file.
23844         Suggested by Eric Blake.
23845         Reported by Rainer Tammer.
23846
23847 2010-07-31  Bruno Haible  <bruno@clisp.org>
23848
23849         copysign: Does not require -lm on glibc systems.
23850         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23851         gl_COMMON_DOUBLE_MATHFUNC.
23852         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23853
23854 2010-07-31  Bruno Haible  <bruno@clisp.org>
23855
23856         duplocale: Work around AIX 7.1 bug.
23857         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23858         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23859         * lib/duplocale.c (rpl_duplocale): Update comment.
23860         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23861         Reported by Rainer Tammer.
23862
23863 2010-07-30  Bruno Haible  <bruno@clisp.org>
23864
23865         dirfd: Avoid link error on AIX 7.1.
23866         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23867         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23868         exist, set REPLACE_DIRFD.
23869         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23870         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23871         * doc/posix-functions/dirfd.texi: Update.
23872         Reported by Rainer Tammer.
23873
23874 2010-07-30  Eric Blake  <eblake@redhat.com>
23875
23876         strtod: next round of AIX fixes
23877         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23878         exponent.
23879         * tests/test-strtod.c (main): Enhance tests.
23880         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23881         Reported by Rainer Tammer.
23882
23883         futimens: fix configure check
23884         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23885         Reported by Bruno Haible.
23886
23887 2010-07-30  Bruno Haible  <bruno@clisp.org>
23888
23889         getline: Update regarding AIX.
23890         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23891         Reported by Rainer Tammer.
23892
23893 2010-07-30  Bruno Haible  <bruno@clisp.org>
23894
23895         wcwidth: Drop replacement on AIX 7.
23896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23897         AIX 7.
23898         Reported by Rainer Tammer.
23899
23900 2010-07-30  Bruno Haible  <bruno@clisp.org>
23901
23902         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23903         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23904         a 'char *'.
23905         Reported by Rainer Tammer.
23906
23907 2010-07-30  Bruno Haible  <bruno@clisp.org>
23908
23909         unlink: Update regarding AIX.
23910         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23911         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23912         Reported by Rainer Tammer.
23913
23914 2010-07-30  Bruno Haible  <bruno@clisp.org>
23915
23916         symlink: Update regarding AIX.
23917         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23918         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23919         Reported by Rainer Tammer.
23920
23921 2010-07-30  Bruno Haible  <bruno@clisp.org>
23922
23923         strndup: Update regarding AIX.
23924         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23925         AIX 7.
23926         Reported by Rainer Tammer.
23927
23928 2010-07-30  Bruno Haible  <bruno@clisp.org>
23929
23930         stat: Update regarding AIX.
23931         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23932         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23933         Reported by Rainer Tammer.
23934
23935 2010-07-30  Bruno Haible  <bruno@clisp.org>
23936
23937         truncl: Fix autoconf test.
23938         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23939         whether truncl works.
23940         Reported by Rainer Tammer.
23941
23942 2010-07-30  Bruno Haible  <bruno@clisp.org>
23943
23944         round: Update regarding AIX.
23945         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23946         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23947         Reported by Rainer Tammer.
23948
23949 2010-07-30  Bruno Haible  <bruno@clisp.org>
23950
23951         rename: Update regarding AIX.
23952         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23953         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23954         Reported by Rainer Tammer.
23955
23956 2010-07-30  Bruno Haible  <bruno@clisp.org>
23957
23958         printf.m4: Update regarding AIX.
23959         * m4/printf.m4: Update comments regarding AIX.
23960         Reported by Rainer Tammer.
23961
23962 2010-07-30  Bruno Haible  <bruno@clisp.org>
23963
23964         iconv: Update regarding AIX.
23965         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23966         AIX 7.
23967         Reported by Rainer Tammer.
23968
23969 2010-07-30  Bruno Haible  <bruno@clisp.org>
23970
23971         getopt: Update regarding AIX.
23972         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23973         no on AIX.
23974         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23975         Reported by Rainer Tammer.
23976
23977 2010-07-30  Bruno Haible  <bruno@clisp.org>
23978
23979         ldexpl; Update regarding AIX.
23980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23981         on AIX 7.
23982         Reported by Rainer Tammer.
23983
23984 2010-07-30  Bruno Haible  <bruno@clisp.org>
23985
23986         frexpl: Update regarding AIX.
23987         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23988         on AIX 7.
23989         Reported by Rainer Tammer.
23990
23991 2010-07-30  Bruno Haible  <bruno@clisp.org>
23992
23993         open, fopen: Update regarding AIX.
23994         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23995         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23996         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23997         * doc/posix-functions/fopen.texi: Likewise.
23998         Reported by Rainer Tammer.
23999
24000 2010-07-30  Bruno Haible  <bruno@clisp.org>
24001
24002         chown: Update doc regarding AIX.
24003         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
24004         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
24005         Reported by Rainer Tammer.
24006
24007 2010-07-30  Eric Blake  <eblake@redhat.com>
24008
24009         strtod: fix bug in replacement function on AIX
24010         * lib/strtod.c (strtod): Special case broken "0x" parse in
24011         underlying strtod.
24012         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
24013         * doc/posix-functions/strtod.texi (strtod): Likewise.
24014         Reported by Rainer Tammer.
24015
24016 2010-07-30  Bruno Haible  <bruno@clisp.org>
24017
24018         mbrlen: Fix cross-compilation guess for AIX.
24019         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
24020         guess. Leftover from 2008-12-22.
24021
24022 2010-07-30  Bruno Haible  <bruno@clisp.org>
24023
24024         mbrtowc: Fix cross-compilation guess for AIX.
24025         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
24026         guess. Leftover from 2008-12-21.
24027
24028 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
24029
24030         init.sh: work around trap limitation of some shells
24031         * tests/init.sh (setup_): Move exit trap outside of shell function.
24032
24033 2010-07-29  Eric Blake  <eblake@redhat.com>
24034
24035         strtod: aid debugging
24036         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
24037         understanding why strtod is rejected.
24038
24039 2010-07-28  Bruno Haible  <bruno@clisp.org>
24040
24041         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
24042         * lib/unistr/u8-chr.c: Include <string.h>.
24043         * tests/unistr/test-u8-chr.c: Likewise.
24044         * tests/unistr/test-u16-chr.c: Likewise.
24045         * tests/unistr/test-u32-chr.c: Likewise.
24046         * tests/unistr/test-u8-strchr.c: Likewise.
24047         * tests/unistr/test-u16-strchr.c: Likewise.
24048         * tests/unistr/test-u32-strchr.c: Likewise.
24049         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
24050         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
24051         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
24052         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
24053
24054 2010-07-28  Bruno Haible  <bruno@clisp.org>
24055
24056         Use spaces for indentation, not tabs.
24057         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
24058
24059 2010-07-27  Bruno Haible  <bruno@clisp.org>
24060
24061         mbspcasecmp: Fix function specification.
24062         * lib/string.in.h (mbspcasecmp): Fix specification comment.
24063         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
24064         Reported by Eric Blake <eblake@redhat.com>.
24065
24066 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
24067
24068         timespec: use cast and not conditional, as truncation isn't possible
24069         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
24070         instead of a conditional.  Comment about the situation in more detail.
24071         This undoes most of the 2009-10-29 patch.
24072
24073 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
24074
24075         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
24076         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
24077         * lib/unistr/u8-strchr.c: Likewise.
24078         * modules/unistr/u8-chr: Depend on memchr.
24079
24080         unistr/u*-strchr: add tests
24081         * modules/unistr/u8-strchr-tests: New file.
24082         * modules/unistr/u16-strchr-tests: New file.
24083         * modules/unistr/u32-strchr-tests: New file.
24084         * tests/unistr/test-strchr.h: New file.
24085         * tests/unistr/test-u8-strchr.c: New file.
24086         * tests/unistr/test-u16-strchr.c: New file.
24087         * tests/unistr/test-u32-strchr.c: New file.
24088
24089         unistr/u*-chr: test multibyte sequences more
24090         * tests/unistr/test-chr.h: Do complete testing of the characters in the
24091         test vector.
24092         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
24093         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
24094         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
24095
24096         unistr/u*-chr: test multibyte sequences
24097         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
24098
24099         unistr/u*-chr: prepare for multibyte tests
24100         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
24101         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
24102         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
24103         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
24104         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
24105         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
24106
24107 2010-07-18  Bruno Haible  <bruno@clisp.org>
24108
24109         unistr/u8-strchr: Optimize non-ASCII argument case.
24110         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
24111         because the first byte often matches anyway.
24112         Reported by Pádraig Brady <P@draigbrady.com>.
24113
24114 2010-07-15  Karl Berry  <karl@gnu.org>
24115
24116         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
24117
24118 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
24119
24120         getcwd: on Solaris, work better if ancestors are inaccessible
24121         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
24122         buffer and size, try again with a large buffer.  This works better
24123         on Solaris, since its getcwd succeeds even if the path to the root
24124         is inaccessible, and this is helpful in common cases such as .zfs
24125         hidden directories.  Problem reported by J Chapman Flack in
24126         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
24127         Use system getcwd if it's declared, not merely if it's partly
24128         working; use the partly-working test only to avoid needless effort
24129         if the system getcwd fails.
24130         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
24131         comment that was already obsolete and is now even more obsolete.
24132         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
24133         now might call strdup.
24134
24135 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
24136
24137         pthread: Add enough so that coreutils/src/sort.c compiles.
24138         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
24139         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
24140         gnulib. Include <sched.h> and <time.h>, as per POSIX.
24141         Include <sys/types.h>, in case it defines pthread_t.
24142         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
24143         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
24144         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
24145         (pthread_rwlockattr_t, pthread_spinlock_t):
24146         New typedefs, if HAVE_PTHREAD_T is not defined.
24147         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
24148         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
24149         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
24150         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
24151         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
24152         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
24153         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
24154         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
24155         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
24156         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
24157         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
24158         New macros.
24159         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
24160         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
24161         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24162         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24163         (pthread_spin_unlock): New dummy functions.
24164         (pthread_create): Return EAGAIN; don't set errno.
24165         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24166         require AC_C_INLINE.
24167         * modules/pthread (Depends-on): Add sched, time.
24168         (pthread.h): Use AM_V_GEN.
24169
24170 2010-07-13  Bruno Haible  <bruno@clisp.org>
24171
24172         striconveh: Don't malloc memory if the result buffer is sufficient.
24173         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24174         buffer if its size is sufficient.
24175         Reported by Ludovic Courtès <ludo@gnu.org>.
24176
24177 2010-07-13  Bruno Haible  <bruno@clisp.org>
24178
24179         strtod: Add safety check.
24180         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24181
24182 2010-07-12  Bruno Haible  <bruno@clisp.org>
24183
24184         Unify tests that set gl_cv_func_ldexpl_no_libm.
24185         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24186         gl_FUNC_LDEXPL.
24187         (gl_FUNC_LDEXPL): Invoke it.
24188         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24189
24190 2010-07-12  Bruno Haible  <bruno@clisp.org>
24191
24192         Unify tests that set gl_cv_func_ldexp_no_libm.
24193         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24194         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24195         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24196         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24197         * modules/strtod (Files): Add m4/ldexp.m4.
24198
24199 2010-07-12  Bruno Haible  <bruno@clisp.org>
24200
24201         Unify tests that set gl_cv_func_frexpl_no_libm.
24202         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24203         gl_FUNC_FREXPL_NO_LIBM.
24204         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24205         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24206
24207 2010-07-12  Bruno Haible  <bruno@clisp.org>
24208
24209         Unify tests that set gl_cv_func_frexp_no_libm.
24210         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24211         gl_FUNC_FREXP_NO_LIBM.
24212         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24213         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24214
24215 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24216
24217         memcoll: clarify sizes versus lengths, document better, and tweak perf
24218         * lib/memcoll.c (strcoll_loop, memcoll0):
24219         Improve quality of descriptive comments.  Name variables
24220         consistently as to whether they are lengths (which do not include
24221         terminating null) versus sizes (which do).
24222         * lib/xmemcoll.c (xmemcoll0): Likewise.
24223         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24224         returned when s1size == 0; this is easier to compile and saves
24225         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24226
24227 2010-07-12  Bruno Haible  <bruno@clisp.org>
24228
24229         Tests for module '_Exit'.
24230         * modules/_Exit-tests: New file.
24231         * tests/test-_Exit.sh: New file.
24232         * tests/test-_Exit.c: New file.
24233
24234         New module '_Exit'.
24235         * lib/stdlib.in.h (__attribute__): New macro.
24236         (_Exit): New declaration.
24237         * lib/_Exit.c: New file.
24238         * m4/_Exit.m4: New file.
24239         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24240         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24241         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24242         * modules/_Exit: New file.
24243         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24244         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24245
24246 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24247
24248         strtod: make it more-accurate typically, and don't require libm
24249         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24250         Include limits.h.  Don't include string.h.
24251         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24252         (locale_isspace): New function, so that no casts are needed to
24253         check whether *s is a space.
24254         (ldexp): Provide an unused dummy if not available.
24255         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24256         (strtod): Use them.  This implementation prefers to use the
24257         underlying strtod if available, falling back on our own code
24258         only to fix known bugs.  This is more likely to produce an
24259         accurate result.  Also, it avoids the use of libm functions.
24260         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24261         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24262         was absent, but it caused a test failure with coreutils.
24263         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24264         with libm.
24265         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24266         * modules/strtod-tests (Makefile.am): Likewise.
24267
24268 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24269             Bruno Haible  <bruno@clisp.org>
24270
24271         unistr/u8-strchr: Optimize ASCII argument case.
24272         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24273
24274 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24275
24276         (x)memcoll: minor tweaks
24277         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24278         is after the type that it qualifies.
24279         (memcoll0): Likewise.
24280         * lib/memcoll.h (memcoll0): Likewise.
24281         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24282         * lib/xmemcoll.h (xmemcoll0): Likewise.
24283         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24284         differs from memcoll in that the NUL byte is part of the argument.
24285         Omit the abort-checks, as performance is a real issue here.  Plus,
24286         the checks were wrong anyway (an off-by-one error).  Omit local
24287         variable 'diff', as it's a bit clearer that way.
24288         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24289         no longer needed.
24290
24291 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24292
24293         (x)memcoll: speedup when input is known to be NUL delimited
24294         * lib/memcoll.c: Include stdlib.
24295         (memcoll0): New function.
24296         (strcoll_loop): New function, refactored for use in both memcoll
24297         and memcoll0.
24298         * lib/memcoll.h (memcoll0): Add prototype.
24299         * lib/xmemcoll.c (xmemcoll0): New function.
24300         (collate_error): New function, refactored for use in both xmemcoll
24301         and xmemcoll0.
24302         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24303         * m4/memcoll.m4: add inline invocation.
24304
24305 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24306
24307         * build-aux/bootstrap: Remove any local translations
24308         from the translation project synchronization directory,
24309         so that local only translations are not distributed.
24310
24311 2010-07-04  Bruno Haible  <bruno@clisp.org>
24312
24313         fsusage: Clarify which code applies to which platforms.
24314         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24315         platform.
24316         * lib/fsusage.c (get_fs_usage): Likewise.
24317
24318 2010-07-04  Bruno Haible  <bruno@clisp.org>
24319
24320         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24321         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24322         Reported by Martin Lambers <marlam@marlam.de>.
24323
24324 2010-07-04  Jim Meyering  <meyering@redhat.com>
24325
24326         hash: once again explicitly disallow insertion of NULL
24327         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24328         inserting a NULL pointer cannot work with these functions.
24329         Add a comment with details.
24330         This reverts part of the 2010-07-01 commit, 5bef1a35
24331         "hash: extend module to deal with non-pointer keys".
24332
24333 2010-07-01  Bruno Haible  <bruno@clisp.org>
24334
24335         stdbool: Update doc.
24336         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24337         Info from Christian Weisgerber <naddy@mips.inka.de>.
24338
24339 2010-07-01  Jim Meyering  <meyering@redhat.com>
24340
24341         hash: extend module to deal with non-pointer keys
24342         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24343         but that allows insertion of non-pointer entries.
24344         Do not disallow an ENTRY value of NULL.
24345         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24346         * lib/hash.h (hash_insert0): Declare.
24347
24348 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24349
24350         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24351         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24352         not present (i.e. with autoconf 2.59 and when using gettextize, not
24353         gnulib), require AC_GNU_SOURCE instead.
24354
24355 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24356
24357         idpriv-drop: Fix tests.
24358         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24359         not to the test-idpriv-droptemp program.
24360
24361 2010-06-29  Bruno Haible  <bruno@clisp.org>
24362
24363         string: Fix syntax error with g++ 2.96.
24364         * lib/string.in.h (__pure__): Remove definition.
24365         (_GL_ATTRIBUTE_PURE): New macro.
24366         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24367         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24368         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24369
24370 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24371
24372         unitypes: Fix bug introduced on 2010-05-18.
24373         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24374
24375 2010-06-22  Eric Blake  <eblake@redhat.com>
24376
24377         memmem: slight optimization
24378         * lib/str-two-way.h (critical_factorization): Update comments.
24379         Reduce work during factorization phase.
24380         Reported by Carlos Bueno <carlos@bueno.org>.
24381
24382 2010-06-21  Bruno Haible  <bruno@clisp.org>
24383
24384         Fix HAVE_CALLOC_POSIX misnomer.
24385         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24386         !HAVE_CALLOC_POSIX.
24387         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24388         HAVE_CALLOC_POSIX.
24389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24390         instead of HAVE_CALLOC_POSIX.
24391         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24392         HAVE_CALLOC_POSIX.
24393
24394         Use modern idiom for calloc() replacement.
24395         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24396         AC_FUNC_CALLOC.
24397         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24398         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24399         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24400         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24401         (gl_REPLACE_CALLOC): New macro.
24402
24403 2010-06-21  Bruno Haible  <bruno@clisp.org>
24404
24405         Fix HAVE_REALLOC_POSIX misnomer.
24406         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24407         !HAVE_REALLOC_POSIX.
24408         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24409         HAVE_REALLOC_POSIX.
24410         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24411         instead of HAVE_REALLOC_POSIX.
24412         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24413         HAVE_REALLOC_POSIX.
24414
24415         Use modern idiom for realloc() replacement.
24416         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24417         AC_FUNC_REALLOC.
24418         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24419         Autoconf's AC_FUNC_REALLOC.
24420         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24421         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24422         (gl_REPLACE_REALLOC): New macro.
24423         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24424
24425 2010-06-21  Bruno Haible  <bruno@clisp.org>
24426
24427         Fix HAVE_MALLOC_POSIX misnomer.
24428         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24429         !HAVE_MALLOC_POSIX.
24430         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24431         HAVE_MALLOC_POSIX.
24432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24433         instead of HAVE_MALLOC_POSIX.
24434         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24435         HAVE_MALLOC_POSIX.
24436
24437         Use modern idiom for malloc() replacement.
24438         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24439         AC_FUNC_MALLOC.
24440         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24441         Autoconf's AC_FUNC_MALLOC.
24442         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24443         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24444         (gl_REPLACE_MALLOC): New macro.
24445         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24446
24447 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24448
24449         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24450         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24451         This macro takes 3 arguments, not 4.
24452
24453 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24454
24455         ipv6: fix detection under mingw
24456         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24457         in6_addr.
24458
24459 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24460
24461         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24462         that strtod() works when cross-compiling to a glibc version known
24463         to work.
24464
24465 2010-06-15  Bruno Haible  <bruno@clisp.org>
24466
24467         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24468
24469 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24470
24471         select: Correct timeout.
24472         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24473
24474 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24475
24476         git-version-gen: init shell var to avoid env var influence
24477         * build-aux/git-version-gen (v): Init shell var to empty.
24478
24479 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24480
24481         priv-set: Don't assume that priv.h exists merely because getppriv does.
24482         See Jan Andersen's bug report about AIX 5L in
24483         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24484         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24485         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24486         * lib/priv-set.h: Likewise.
24487         * tests/test-priv-set.c: Likewise.
24488
24489 2010-06-13  Bruno Haible  <bruno@clisp.org>
24490
24491         relocatable: Make it easier to test whether to install wrappers.
24492         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24493         RELOCATABLE_VIA_WRAPPER.
24494
24495 2010-06-13  Bruno Haible  <bruno@clisp.org>
24496
24497         gnulib-tool: Display specified modules and dependencies differently.
24498         * gnulib-tool (func_show_module_list): New function.
24499         (func_import, func_create_testdir): Invoke it.
24500         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24501
24502 2010-06-13  Bruno Haible  <bruno@clisp.org>
24503
24504         gnulib-tool: Align code of func_import and func_create_testdir.
24505         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24506         specified_modules.
24507
24508 2010-06-12  Jim Meyering  <meyering@redhat.com>
24509
24510         test-inttostr: avoid spurious failure on Solaris 9
24511         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24512         to accept "%ju".  Reported by Bruno Haible.
24513
24514 2010-06-11  Jim Meyering  <meyering@redhat.com>
24515
24516         test-sys_socket: mark variables as used more readably
24517         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24518         as "used" explicitly via (void) statement casts.  This is more
24519         readable than using them in an artificial return expression.
24520         Suggestion from Bruno Haible.
24521
24522 2010-06-11  Bruno Haible  <bruno@clisp.org>
24523
24524         Avoid some more warnings from "gcc -Wwrite-strings".
24525         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24526         to 'const char *'.
24527         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24528         * tests/test-c-strcasestr.c (main): Likewise.
24529         * tests/test-mbscasestr1.c (main): Likewise.
24530         * tests/test-mbscasestr2.c (main): Likewise.
24531         * tests/test-memmem.c (main): Likewise.
24532         * tests/test-strstr.c (main): Likewise.
24533         * tests/test-strcasestr.c (main): Likewise.
24534
24535 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24536
24537         init.sh: change framework_failure_ to fail with status 99, not 1
24538         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24539         automake's parallel-tests rule that this is an unexpected failure,
24540         even if the test is listed in XFAIL_TESTS.
24541
24542 2010-06-11  Jim Meyering  <meyering@redhat.com>
24543
24544         test-inttostr: avoid warnings about 4-6KB literal strings
24545         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24546         Include "macros.h", for its definition of ASSERT.
24547         (CK): s/assert/ASSERT/
24548         * modules/inttostr-tests (Files): Add macros.h.
24549
24550         init.sh: don't use $ME_ or skip_ before they are defined
24551         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24552         their first uses.  Also hoist their companions: warn_, fail_,
24553         framework_failure_, $stderr_fileno.  Prompted by a patch from
24554         Stefano Lattarini.
24555
24556         test-sys_socket: avoid set-but-not-used warnings from gcc
24557         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24558         avoid warning about set-but-not-used variables.
24559
24560         test-xvasprintf: avoid 'const' discard warnings
24561         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24562         "const" when assigning from literal strings.
24563         (test_xasprintf): Add "void" in function argument list to placate
24564         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24565
24566         tests: avoid compilation warnings in argmatch and exclude tests...
24567         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24568         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24569         Since it always exits, declare with the "noreturn" attribute.
24570         * tests/test-argmatch.c: Likewise.
24571
24572         tests: avoid 'const' discard warnings in mbsstr tests
24573         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24574         * tests/test-mbsstr2.c (main): Likewise.
24575
24576         test-verify: avoid warning from gcc's -Wmissing-declarations
24577         * tests/test-verify.c (function): Declare to be static.
24578
24579         test-inttostr.c: include <string.h> for use of strcmp
24580         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24581
24582         test-linkat: avoid failed assertion on "other" architectures
24583         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24584         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24585         sparc: https://bugs.launchpad.net/bugs/591968
24586
24587 2010-06-11  Jim Meyering  <meyering@redhat.com>
24588
24589         printf.m4: avoid autoconf's "Expanded Before Required" warning
24590         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24591         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24592         autoconf warning.
24593
24594 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24595
24596         Replacement header templates are now named with ".in", not "_".
24597         * doc/gnulib-intro.texi: Correct.
24598
24599 2010-06-10  Jim Meyering  <meyering@redhat.com>
24600
24601         inttostr-tests: depend on snprintf, not snprintf-posix
24602         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24603         snprintf-posix, to avoid this aclocal failure:
24604           missing file gnulib-tests/vasnprintf.c
24605           configure.ac:45: error: expected source file, required through \
24606           AC_LIBSOURCES, not found
24607
24608 2010-06-10  Jim Meyering  <meyering@redhat.com>
24609
24610         inttostr: add a new function, inttostr, and tests
24611         The namesake function was not available.  The existence of the
24612         template file, inttostr.c makes its addition nontrivial.
24613         * lib/anytostr.c: Rename from inttostr.c.
24614         (anytostr): Rename from inttostr.
24615         * lib/inttostr.c: New file.
24616         * modules/inttostr (Files): Add anytostr.c.
24617         (Makefile.am): Set lib_SOURCES instead of ...
24618         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24619         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24620         * lib/offtostr.c: Likewise.
24621         * lib/uinttostr.c: Likewise.
24622         * lib/umaxtostr.c: Likewise.
24623         * modules/inttostr-tests: New file.
24624         * tests/test-inttostr.c: New file.  Test these functions.
24625
24626 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24627             Bruno Haible  <bruno@clisp.org>
24628
24629         Add "Extending Gnulib" chapter to manual.
24630         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24631         chapter.
24632         (Extending Gnulib): New chapter.
24633         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24634         chapter.
24635
24636 2010-06-09  Bruno Haible  <bruno@clisp.org>
24637
24638         Avoid relocwrapper link errors due to gnulib replacement functions.
24639         * lib/areadlink.c: Use the system's malloc, realloc functions.
24640         (areadlink): Set errno to ENOMEM explicitly.
24641         * modules/areadlink (Depends-on): Remove malloc-posix.
24642         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24643
24644 2010-06-09  Bruno Haible  <bruno@clisp.org>
24645
24646         Avoid relocwrapper link errors due to gnulib replacement functions.
24647         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24648         * lib/malloca.c: Likewise.
24649         * lib/relocatable.c: Likewise.
24650         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24651         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24652         * lib/setenv.c: Use the system's malloc, realloc functions.
24653         * lib/strerror.c: Use the system's sprintf function.
24654         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24655
24656 2010-06-04  Bruno Haible  <bruno@clisp.org>
24657
24658         Prefer documented low-level autoconf macro names.
24659         * m4/lib-link.m4: Use m4_translit instead of translit.
24660         * m4/environ.m4: Likewise.
24661         * m4/mathfunc.m4: Likewise.
24662         * m4/onceonly.m4: Likewise.
24663         * m4/stdint.m4: Likewise.
24664         Suggested by Eric Blake.
24665
24666 2010-06-04  Martin Lambers  <marlam@marlam.de>
24667             Bruno Haible  <bruno@clisp.org>
24668
24669         havelib: Allow library names with '+' characters.
24670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24671         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24672
24673 2010-06-09  Bruno Haible  <bruno@clisp.org>
24674
24675         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24676         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24677         realloc failed.
24678
24679 2010-06-08  Peter Simons  <simons@cryp.to>
24680
24681         maint.mk: make the news-check rule more configurable
24682         * top/maint.mk (news-check-lines-spec): New variable.
24683         (news-check): Use "sed -n 1,10p" in place of "head".
24684
24685 2010-06-07  Jim Meyering  <meyering@redhat.com>
24686
24687         do-release-commit-and-tag: fix typo in --help
24688         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24689
24690         regex: avoid new dead-code warning with gcc-4.6.0
24691         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24692         if-block containing a while-loop.  It's been unused for at least
24693         5 years.
24694
24695 2010-06-05  Bruno Haible  <bruno@clisp.org>
24696
24697         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24698         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24699
24700 2010-06-04  Bruno Haible  <bruno@clisp.org>
24701
24702         Update to GNU gettext 0.18.1.
24703         * modules/gettext (configure.ac): Require gettext infrastructure from
24704         version 0.18.1.
24705
24706 2010-06-03  Bruno Haible  <bruno@clisp.org>
24707
24708         Don't use AC_LIBOBJ with file names in subdirectories.
24709         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24710         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24711         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24712         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24713         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24714         gl_LIBUNISTRING_LIBSOURCE.
24715         (Makefile.am): Augment lib_SOURCES here, conditionally.
24716         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24717
24718 2010-06-03  Bruno Haible  <bruno@clisp.org>
24719
24720         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24721         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24722         expansion does not end with a newline.
24723         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24724         unnecessary newline.
24725
24726 2010-06-03  Bruno Haible  <bruno@clisp.org>
24727
24728         Reduce dependencies.
24729         * tests/test-quotearg.h: New file, extracted from
24730         tests/test-quotearg.c.
24731         * tests/test-quotearg-simple.c: New file, extracted from
24732         tests/test-quotearg.c.
24733         * tests/test-quotearg.c: Don't include <ctype.h>.
24734         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24735         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24736         use_quote_double_quotes, use_quotearg_colon): Moved to
24737         tests/test-quotearg.h.
24738         (results_g, flag_results, custom_quotes, custom_results): Moved
24739         to tests/test-quotearg-simple.c.
24740         (main): Moved the part that does not depend on gettext to
24741         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24742         performed.
24743         * modules/quotearg-simple: New file.
24744         * modules/quotearg-simple-tests: New file.
24745         * modules/quotearg (Depends-on): Add quotearg-simple.
24746         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24747         (Files): Add tests/test-quotearg.h.
24748         Reported by Paolo Bonzini.
24749
24750 2010-06-03  Bruno Haible  <bruno@clisp.org>
24751
24752         Reduce dependencies.
24753         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24754
24755 2010-06-03  Bruno Haible  <bruno@clisp.org>
24756
24757         time: Undefine more broken macros.
24758         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24759         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24760         Reported by Eric Blake.
24761
24762 2010-06-03  Bruno Haible  <bruno@clisp.org>
24763
24764         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24765         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24766         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24767         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24768         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24769         Reported by Ludovic Courtès <ludo@gnu.org>.
24770
24771 2010-06-02  Eric Blake  <eblake@redhat.com>
24772
24773         time: work with mingw + pthreads-win32 library
24774         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24775         if timespec is defined only in pthread.h.
24776         * modules/time (Makefile.am): Substitute it.
24777         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24778         <pthread.h>, when needed.
24779         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24780         from the library.
24781
24782 2010-05-31  Bruno Haible  <bruno@clisp.org>
24783
24784         Avoid expanding two macros in the wrong order.
24785         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24786         gl_LIBUNISTRING if it is defined.
24787         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24788         autoconf >= 2.64.
24789         Reported by Ludovic Courtès <ludo@gnu.org>.
24790
24791 2010-05-27  Jim Meyering  <meyering@redhat.com>
24792
24793         maint.mk: also prohibit "#undef" of always-defined symbols
24794         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24795         Allow more than one space before the symbol name.
24796         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24797         the regexp uses alternation.
24798
24799 2010-05-26  Eric Blake  <eblake@redhat.com>
24800
24801         maint.mk: avoid echo -e
24802         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24803         Convert all uses of echo -* to printf.
24804         Reported by Matthias Bolte.
24805
24806 2010-05-25  Bruno Haible  <bruno@clisp.org>
24807
24808         Update to GNU gettext 0.18, part 2.
24809         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24810         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24811
24812 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24813
24814         Add missing include in test-pwrite.c.
24815         * tests/test-pwrite.c: Include string.h, for strcmp.
24816
24817 2010-05-24  Bruno Haible  <bruno@clisp.org>
24818
24819         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24820
24821 2010-05-24  Bruno Haible  <bruno@clisp.org>
24822
24823         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24824         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24825         iconveh_error argument.
24826         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24827         U_STRCONV_TO_LOCALE.
24828         * lib/unistr/u16-strcoll.c: Likewise.
24829         * lib/unistr/u32-strcoll.c: Likewise.
24830         * modules/unistr/u8-strcoll (Depends-on): Add
24831         uniconv/u8-strconv-to-enc, localcharset. Remove
24832         uniconv/u8-strconv-to-locale.
24833         (configure.ac): Bump version number.
24834         * modules/unistr/u16-strcoll (Depends-on): Add
24835         uniconv/u16-strconv-to-enc, localcharset. Remove
24836         uniconv/u16-strconv-to-locale.
24837         (configure.ac): Bump version number.
24838         * modules/unistr/u32-strcoll (Depends-on): Add
24839         uniconv/u32-strconv-to-enc, localcharset. Remove
24840         uniconv/u32-strconv-to-locale.
24841         (configure.ac): Bump version number.
24842
24843 2010-05-24  Bruno Haible  <bruno@clisp.org>
24844
24845         Avoid a test failure on NetBSD 5.0.
24846         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24847         an iconv() bug.
24848
24849 2010-05-24  Bruno Haible  <bruno@clisp.org>
24850
24851         Adjust #include directive style.
24852         * modules/regex (Includes): Recommend to write <regex.h>.
24853
24854 2010-05-24  Bruno Haible  <bruno@clisp.org>
24855
24856         regex: Don't require alloca.
24857         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24858         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24859         only inside if (0).
24860
24861 2010-05-23  Jim Meyering  <meyering@redhat.com>
24862
24863         test-renameat.c: include <sys/stat.h>
24864         * tests/test-renameat.c: Include <sys/stat.h>; required for
24865         definition of S_IS* macros.
24866
24867 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24868
24869         Update maintainer documentation for 'relocatable-prog' module.
24870         * doc/relocatable-maint.texi: Update.
24871         Comments by Bruno Haible.
24872
24873 2010-05-23  Bruno Haible  <bruno@clisp.org>
24874
24875         git-merge-changelog: Enable --split-merged-entry by default.
24876         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24877         (usage): Don't mention this option any more.
24878         Reported by Ralf Wildenhues.
24879
24880 2010-05-23  Jim Meyering  <meyering@redhat.com>
24881
24882         test-pwrite: do not leave behind a test file named "out"
24883         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24884         The trivial-looking use of init.sh is really necessary.
24885         It ensures that the temporary file, "out", is created in
24886         a temporary directory, and removed upon termination.
24887         * tests/test-pwrite.sh: Re-add file.
24888         * modules/pwrite-tests: Reference it.
24889
24890 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24891
24892         Fix output redirection buglet in init.sh.
24893         * tests/init.sh: Fix redirection of stderr.
24894
24895 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24896
24897         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24898
24899 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24900
24901         * modules/valgrind-tests: New file.
24902         * m4/valgrind-tests.m4: New file.
24903         * doc/valgrind-tests.texi: New file.
24904         * doc/gnulib.texi (Running self-tests under valgrind): New
24905         section.
24906
24907 2010-05-19  Bruno Haible  <bruno@clisp.org>
24908
24909         Clean up dead code in recent commit.
24910         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24911         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24912         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24913         Suggested by Paolo Bonzini.
24914
24915 2010-05-19  Bruno Haible  <bruno@clisp.org>
24916
24917         Avoid valgrind error reports from libunistring.
24918         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24919         * modules/libunistring (Files): Add it.
24920         * modules/libunistring-optional (Files): Likewise.
24921
24922 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24923             Bruno Haible  <bruno@clisp.org>
24924
24925         New module 'libunistring-optional'.
24926         * modules/libunistring-optional: New file.
24927         * m4/libunistring-base.m4: New file.
24928         * m4/libunistring-optional.m4: New file.
24929         * lib/unicase.in.h: Renamed from lib/unicase.h.
24930         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24931         * lib/unictype.in.h: Renamed from lib/unictype.h.
24932         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24933         * lib/uniname.in.h: Renamed from lib/uniname.h.
24934         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24935         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24936         * lib/unistr.in.h: Renamed from lib/unistr.h.
24937         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24938         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24939         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24940         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24941         gl_LIBUNISTRING. If the library was found, determine the installed
24942         version and set LIBUNISTRING_VERSION.
24943         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24944         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24945         handle a configuration option --with-included-libunistring.
24946         * modules/libunistring (Files): Add m4/absolute-header.m4.
24947         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24948         Add m4/libunistring-base.m4.
24949         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24950         (Makefile.am): Build unicase.h from unicase.in.h.
24951         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24952         Add m4/libunistring-base.m4.
24953         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24954         (Makefile.am): Build uniconv.h from uniconv.in.h.
24955         * modules/unictype/base (Files): Use unictype.in.h instead of
24956         unictype.h. Add m4/libunistring-base.m4.
24957         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24958         (Makefile.am): Build unictype.h from unictype.in.h.
24959         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24960         Add m4/libunistring-base.m4.
24961         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24962         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24963         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24964         Add m4/libunistring-base.m4.
24965         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24966         (Makefile.am): Build uniname.h from uniname.in.h.
24967         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24968         Add m4/libunistring-base.m4.
24969         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24970         (Makefile.am): Build uninorm.h from uninorm.in.h.
24971         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24972         unistdio.h. Add m4/libunistring-base.m4.
24973         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24974         (Makefile.am): Build unistdio.h from unistdio.in.h.
24975         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24976         Add m4/libunistring-base.m4.
24977         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24978         (Makefile.am): Build unistr.h from unistr.in.h.
24979         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24980         Add m4/libunistring-base.m4.
24981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24982         (Makefile.am): Build unitypes.h from unitypes.in.h.
24983         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24984         Add m4/libunistring-base.m4.
24985         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24986         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24987         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24988         uniwidth.h. Add m4/libunistring-base.m4.
24989         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24990         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24991         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24992         instead of augmenting lib_SOURCES.
24993         * modules/unicase/empty-suffix-context: Likewise.
24994         * modules/unicase/locale-language: Likewise.
24995         * modules/unicase/tolower: Likewise.
24996         * modules/unicase/totitle: Likewise.
24997         * modules/unicase/toupper: Likewise.
24998         * modules/unicase/u8-casecmp: Likewise.
24999         * modules/unicase/u8-casecoll: Likewise.
25000         * modules/unicase/u8-casefold: Likewise.
25001         * modules/unicase/u8-casexfrm: Likewise.
25002         * modules/unicase/u8-ct-casefold: Likewise.
25003         * modules/unicase/u8-ct-tolower: Likewise.
25004         * modules/unicase/u8-ct-totitle: Likewise.
25005         * modules/unicase/u8-ct-toupper: Likewise.
25006         * modules/unicase/u8-is-cased: Likewise.
25007         * modules/unicase/u8-is-casefolded: Likewise.
25008         * modules/unicase/u8-is-lowercase: Likewise.
25009         * modules/unicase/u8-is-titlecase: Likewise.
25010         * modules/unicase/u8-is-uppercase: Likewise.
25011         * modules/unicase/u8-prefix-context: Likewise.
25012         * modules/unicase/u8-suffix-context: Likewise.
25013         * modules/unicase/u8-tolower: Likewise.
25014         * modules/unicase/u8-totitle: Likewise.
25015         * modules/unicase/u8-toupper: Likewise.
25016         * modules/unicase/u16-casecmp: Likewise.
25017         * modules/unicase/u16-casecoll: Likewise.
25018         * modules/unicase/u16-casefold: Likewise.
25019         * modules/unicase/u16-casexfrm: Likewise.
25020         * modules/unicase/u16-ct-casefold: Likewise.
25021         * modules/unicase/u16-ct-tolower: Likewise.
25022         * modules/unicase/u16-ct-totitle: Likewise.
25023         * modules/unicase/u16-ct-toupper: Likewise.
25024         * modules/unicase/u16-is-cased: Likewise.
25025         * modules/unicase/u16-is-casefolded: Likewise.
25026         * modules/unicase/u16-is-lowercase: Likewise.
25027         * modules/unicase/u16-is-titlecase: Likewise.
25028         * modules/unicase/u16-is-uppercase: Likewise.
25029         * modules/unicase/u16-prefix-context: Likewise.
25030         * modules/unicase/u16-suffix-context: Likewise.
25031         * modules/unicase/u16-tolower: Likewise.
25032         * modules/unicase/u16-totitle: Likewise.
25033         * modules/unicase/u16-toupper: Likewise.
25034         * modules/unicase/u32-casecmp: Likewise.
25035         * modules/unicase/u32-casecoll: Likewise.
25036         * modules/unicase/u32-casefold: Likewise.
25037         * modules/unicase/u32-casexfrm: Likewise.
25038         * modules/unicase/u32-ct-casefold: Likewise.
25039         * modules/unicase/u32-ct-tolower: Likewise.
25040         * modules/unicase/u32-ct-totitle: Likewise.
25041         * modules/unicase/u32-ct-toupper: Likewise.
25042         * modules/unicase/u32-is-cased: Likewise.
25043         * modules/unicase/u32-is-casefolded: Likewise.
25044         * modules/unicase/u32-is-lowercase: Likewise.
25045         * modules/unicase/u32-is-titlecase: Likewise.
25046         * modules/unicase/u32-is-uppercase: Likewise.
25047         * modules/unicase/u32-prefix-context: Likewise.
25048         * modules/unicase/u32-suffix-context: Likewise.
25049         * modules/unicase/u32-tolower: Likewise.
25050         * modules/unicase/u32-totitle: Likewise.
25051         * modules/unicase/u32-toupper: Likewise.
25052         * modules/unicase/ulc-casecmp: Likewise.
25053         * modules/unicase/ulc-casecoll: Likewise.
25054         * modules/unicase/ulc-casexfrm: Likewise.
25055         * modules/uniconv/u8-conv-from-enc: Likewise.
25056         * modules/uniconv/u8-conv-to-enc: Likewise.
25057         * modules/uniconv/u8-strconv-from-enc: Likewise.
25058         * modules/uniconv/u8-strconv-from-locale: Likewise.
25059         * modules/uniconv/u8-strconv-to-enc: Likewise.
25060         * modules/uniconv/u8-strconv-to-locale: Likewise.
25061         * modules/uniconv/u16-conv-from-enc: Likewise.
25062         * modules/uniconv/u16-conv-to-enc: Likewise.
25063         * modules/uniconv/u16-strconv-from-enc: Likewise.
25064         * modules/uniconv/u16-strconv-from-locale: Likewise.
25065         * modules/uniconv/u16-strconv-to-enc: Likewise.
25066         * modules/uniconv/u16-strconv-to-locale: Likewise.
25067         * modules/uniconv/u32-conv-from-enc: Likewise.
25068         * modules/uniconv/u32-conv-to-enc: Likewise.
25069         * modules/uniconv/u32-strconv-from-enc: Likewise.
25070         * modules/uniconv/u32-strconv-from-locale: Likewise.
25071         * modules/uniconv/u32-strconv-to-enc: Likewise.
25072         * modules/uniconv/u32-strconv-to-locale: Likewise.
25073         * modules/unictype/bidicategory-byname: Likewise.
25074         * modules/unictype/bidicategory-name: Likewise.
25075         * modules/unictype/bidicategory-of: Likewise.
25076         * modules/unictype/bidicategory-test: Likewise.
25077         * modules/unictype/block-list: Likewise.
25078         * modules/unictype/block-test: Likewise.
25079         * modules/unictype/category-C: Likewise.
25080         * modules/unictype/category-Cc: Likewise.
25081         * modules/unictype/category-Cf: Likewise.
25082         * modules/unictype/category-Cn: Likewise.
25083         * modules/unictype/category-Co: Likewise.
25084         * modules/unictype/category-Cs: Likewise.
25085         * modules/unictype/category-L: Likewise.
25086         * modules/unictype/category-Ll: Likewise.
25087         * modules/unictype/category-Lm: Likewise.
25088         * modules/unictype/category-Lo: Likewise.
25089         * modules/unictype/category-Lt: Likewise.
25090         * modules/unictype/category-Lu: Likewise.
25091         * modules/unictype/category-M: Likewise.
25092         * modules/unictype/category-Mc: Likewise.
25093         * modules/unictype/category-Me: Likewise.
25094         * modules/unictype/category-Mn: Likewise.
25095         * modules/unictype/category-N: Likewise.
25096         * modules/unictype/category-Nd: Likewise.
25097         * modules/unictype/category-Nl: Likewise.
25098         * modules/unictype/category-No: Likewise.
25099         * modules/unictype/category-P: Likewise.
25100         * modules/unictype/category-Pc: Likewise.
25101         * modules/unictype/category-Pd: Likewise.
25102         * modules/unictype/category-Pe: Likewise.
25103         * modules/unictype/category-Pf: Likewise.
25104         * modules/unictype/category-Pi: Likewise.
25105         * modules/unictype/category-Po: Likewise.
25106         * modules/unictype/category-Ps: Likewise.
25107         * modules/unictype/category-S: Likewise.
25108         * modules/unictype/category-Sc: Likewise.
25109         * modules/unictype/category-Sk: Likewise.
25110         * modules/unictype/category-Sm: Likewise.
25111         * modules/unictype/category-So: Likewise.
25112         * modules/unictype/category-Z: Likewise.
25113         * modules/unictype/category-Zl: Likewise.
25114         * modules/unictype/category-Zp: Likewise.
25115         * modules/unictype/category-Zs: Likewise.
25116         * modules/unictype/category-and: Likewise.
25117         * modules/unictype/category-and-not: Likewise.
25118         * modules/unictype/category-byname: Likewise.
25119         * modules/unictype/category-name: Likewise.
25120         * modules/unictype/category-none: Likewise.
25121         * modules/unictype/category-of: Likewise.
25122         * modules/unictype/category-or: Likewise.
25123         * modules/unictype/category-test: Likewise.
25124         * modules/unictype/combining-class: Likewise.
25125         * modules/unictype/ctype-alnum: Likewise.
25126         * modules/unictype/ctype-alpha: Likewise.
25127         * modules/unictype/ctype-blank: Likewise.
25128         * modules/unictype/ctype-cntrl: Likewise.
25129         * modules/unictype/ctype-digit: Likewise.
25130         * modules/unictype/ctype-graph: Likewise.
25131         * modules/unictype/ctype-lower: Likewise.
25132         * modules/unictype/ctype-print: Likewise.
25133         * modules/unictype/ctype-punct: Likewise.
25134         * modules/unictype/ctype-space: Likewise.
25135         * modules/unictype/ctype-upper: Likewise.
25136         * modules/unictype/ctype-xdigit: Likewise.
25137         * modules/unictype/decimal-digit: Likewise.
25138         * modules/unictype/digit: Likewise.
25139         * modules/unictype/mirror: Likewise.
25140         * modules/unictype/numeric: Likewise.
25141         * modules/unictype/property-alphabetic: Likewise.
25142         * modules/unictype/property-ascii-hex-digit: Likewise.
25143         * modules/unictype/property-bidi-arabic-digit: Likewise.
25144         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
25145         * modules/unictype/property-bidi-block-separator: Likewise.
25146         * modules/unictype/property-bidi-boundary-neutral: Likewise.
25147         * modules/unictype/property-bidi-common-separator: Likewise.
25148         * modules/unictype/property-bidi-control: Likewise.
25149         * modules/unictype/property-bidi-embedding-or-override: Likewise.
25150         * modules/unictype/property-bidi-eur-num-separator: Likewise.
25151         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
25152         * modules/unictype/property-bidi-european-digit: Likewise.
25153         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
25154         * modules/unictype/property-bidi-left-to-right: Likewise.
25155         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
25156         * modules/unictype/property-bidi-other-neutral: Likewise.
25157         * modules/unictype/property-bidi-pdf: Likewise.
25158         * modules/unictype/property-bidi-segment-separator: Likewise.
25159         * modules/unictype/property-bidi-whitespace: Likewise.
25160         * modules/unictype/property-byname: Likewise.
25161         * modules/unictype/property-combining: Likewise.
25162         * modules/unictype/property-composite: Likewise.
25163         * modules/unictype/property-currency-symbol: Likewise.
25164         * modules/unictype/property-dash: Likewise.
25165         * modules/unictype/property-decimal-digit: Likewise.
25166         * modules/unictype/property-default-ignorable-code-point: Likewise.
25167         * modules/unictype/property-deprecated: Likewise.
25168         * modules/unictype/property-diacritic: Likewise.
25169         * modules/unictype/property-extender: Likewise.
25170         * modules/unictype/property-format-control: Likewise.
25171         * modules/unictype/property-grapheme-base: Likewise.
25172         * modules/unictype/property-grapheme-extend: Likewise.
25173         * modules/unictype/property-grapheme-link: Likewise.
25174         * modules/unictype/property-hex-digit: Likewise.
25175         * modules/unictype/property-hyphen: Likewise.
25176         * modules/unictype/property-id-continue: Likewise.
25177         * modules/unictype/property-id-start: Likewise.
25178         * modules/unictype/property-ideographic: Likewise.
25179         * modules/unictype/property-ids-binary-operator: Likewise.
25180         * modules/unictype/property-ids-trinary-operator: Likewise.
25181         * modules/unictype/property-ignorable-control: Likewise.
25182         * modules/unictype/property-iso-control: Likewise.
25183         * modules/unictype/property-join-control: Likewise.
25184         * modules/unictype/property-left-of-pair: Likewise.
25185         * modules/unictype/property-line-separator: Likewise.
25186         * modules/unictype/property-logical-order-exception: Likewise.
25187         * modules/unictype/property-lowercase: Likewise.
25188         * modules/unictype/property-math: Likewise.
25189         * modules/unictype/property-non-break: Likewise.
25190         * modules/unictype/property-not-a-character: Likewise.
25191         * modules/unictype/property-numeric: Likewise.
25192         * modules/unictype/property-other-alphabetic: Likewise.
25193         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25194         * modules/unictype/property-other-grapheme-extend: Likewise.
25195         * modules/unictype/property-other-id-continue: Likewise.
25196         * modules/unictype/property-other-id-start: Likewise.
25197         * modules/unictype/property-other-lowercase: Likewise.
25198         * modules/unictype/property-other-math: Likewise.
25199         * modules/unictype/property-other-uppercase: Likewise.
25200         * modules/unictype/property-paired-punctuation: Likewise.
25201         * modules/unictype/property-paragraph-separator: Likewise.
25202         * modules/unictype/property-pattern-syntax: Likewise.
25203         * modules/unictype/property-pattern-white-space: Likewise.
25204         * modules/unictype/property-private-use: Likewise.
25205         * modules/unictype/property-punctuation: Likewise.
25206         * modules/unictype/property-quotation-mark: Likewise.
25207         * modules/unictype/property-radical: Likewise.
25208         * modules/unictype/property-sentence-terminal: Likewise.
25209         * modules/unictype/property-soft-dotted: Likewise.
25210         * modules/unictype/property-space: Likewise.
25211         * modules/unictype/property-terminal-punctuation: Likewise.
25212         * modules/unictype/property-test: Likewise.
25213         * modules/unictype/property-titlecase: Likewise.
25214         * modules/unictype/property-unassigned-code-value: Likewise.
25215         * modules/unictype/property-unified-ideograph: Likewise.
25216         * modules/unictype/property-uppercase: Likewise.
25217         * modules/unictype/property-variation-selector: Likewise.
25218         * modules/unictype/property-white-space: Likewise.
25219         * modules/unictype/property-xid-continue: Likewise.
25220         * modules/unictype/property-xid-start: Likewise.
25221         * modules/unictype/property-zero-width: Likewise.
25222         * modules/unictype/scripts: Likewise.
25223         * modules/unictype/syntax-c-ident: Likewise.
25224         * modules/unictype/syntax-c-whitespace: Likewise.
25225         * modules/unictype/syntax-java-ident: Likewise.
25226         * modules/unictype/syntax-java-whitespace: Likewise.
25227         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25228         * modules/unilbrk/u8-width-linebreaks: Likewise.
25229         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25230         * modules/unilbrk/u16-width-linebreaks: Likewise.
25231         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25232         * modules/unilbrk/u32-width-linebreaks: Likewise.
25233         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25234         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25235         * modules/uniname/uniname: Likewise.
25236         * modules/uninorm/canonical-decomposition: Likewise.
25237         * modules/uninorm/composition: Likewise.
25238         * modules/uninorm/decomposing-form: Likewise.
25239         * modules/uninorm/decomposition: Likewise.
25240         * modules/uninorm/filter: Likewise.
25241         * modules/uninorm/nfc: Likewise.
25242         * modules/uninorm/nfd: Likewise.
25243         * modules/uninorm/nfkc: Likewise.
25244         * modules/uninorm/nfkd: Likewise.
25245         * modules/uninorm/u8-normalize: Likewise.
25246         * modules/uninorm/u8-normcmp: Likewise.
25247         * modules/uninorm/u8-normcoll: Likewise.
25248         * modules/uninorm/u8-normxfrm: Likewise.
25249         * modules/uninorm/u16-normalize: Likewise.
25250         * modules/uninorm/u16-normcmp: Likewise.
25251         * modules/uninorm/u16-normcoll: Likewise.
25252         * modules/uninorm/u16-normxfrm: Likewise.
25253         * modules/uninorm/u32-normalize: Likewise.
25254         * modules/uninorm/u32-normcmp: Likewise.
25255         * modules/uninorm/u32-normcoll: Likewise.
25256         * modules/uninorm/u32-normxfrm: Likewise.
25257         * modules/unistdio/u8-asnprintf: Likewise.
25258         * modules/unistdio/u8-asprintf: Likewise.
25259         * modules/unistdio/u8-snprintf: Likewise.
25260         * modules/unistdio/u8-sprintf: Likewise.
25261         * modules/unistdio/u8-u8-asnprintf: Likewise.
25262         * modules/unistdio/u8-u8-asprintf: Likewise.
25263         * modules/unistdio/u8-u8-snprintf: Likewise.
25264         * modules/unistdio/u8-u8-sprintf: Likewise.
25265         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25266         * modules/unistdio/u8-u8-vasprintf: Likewise.
25267         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25268         * modules/unistdio/u8-u8-vsprintf: Likewise.
25269         * modules/unistdio/u8-vasnprintf: Likewise.
25270         * modules/unistdio/u8-vasprintf: Likewise.
25271         * modules/unistdio/u8-vsnprintf: Likewise.
25272         * modules/unistdio/u8-vsprintf: Likewise.
25273         * modules/unistdio/u16-asnprintf: Likewise.
25274         * modules/unistdio/u16-asprintf: Likewise.
25275         * modules/unistdio/u16-snprintf: Likewise.
25276         * modules/unistdio/u16-sprintf: Likewise.
25277         * modules/unistdio/u16-u16-asnprintf: Likewise.
25278         * modules/unistdio/u16-u16-asprintf: Likewise.
25279         * modules/unistdio/u16-u16-snprintf: Likewise.
25280         * modules/unistdio/u16-u16-sprintf: Likewise.
25281         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25282         * modules/unistdio/u16-u16-vasprintf: Likewise.
25283         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25284         * modules/unistdio/u16-u16-vsprintf: Likewise.
25285         * modules/unistdio/u16-vasnprintf: Likewise.
25286         * modules/unistdio/u16-vasprintf: Likewise.
25287         * modules/unistdio/u16-vsnprintf: Likewise.
25288         * modules/unistdio/u16-vsprintf: Likewise.
25289         * modules/unistdio/u32-asnprintf: Likewise.
25290         * modules/unistdio/u32-asprintf: Likewise.
25291         * modules/unistdio/u32-snprintf: Likewise.
25292         * modules/unistdio/u32-sprintf: Likewise.
25293         * modules/unistdio/u32-u32-asnprintf: Likewise.
25294         * modules/unistdio/u32-u32-asprintf: Likewise.
25295         * modules/unistdio/u32-u32-snprintf: Likewise.
25296         * modules/unistdio/u32-u32-sprintf: Likewise.
25297         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25298         * modules/unistdio/u32-u32-vasprintf: Likewise.
25299         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25300         * modules/unistdio/u32-u32-vsprintf: Likewise.
25301         * modules/unistdio/u32-vasnprintf: Likewise.
25302         * modules/unistdio/u32-vasprintf: Likewise.
25303         * modules/unistdio/u32-vsnprintf: Likewise.
25304         * modules/unistdio/u32-vsprintf: Likewise.
25305         * modules/unistdio/ulc-asnprintf: Likewise.
25306         * modules/unistdio/ulc-asprintf: Likewise.
25307         * modules/unistdio/ulc-fprintf: Likewise.
25308         * modules/unistdio/ulc-snprintf: Likewise.
25309         * modules/unistdio/ulc-sprintf: Likewise.
25310         * modules/unistdio/ulc-vasnprintf: Likewise.
25311         * modules/unistdio/ulc-vasprintf: Likewise.
25312         * modules/unistdio/ulc-vfprintf: Likewise.
25313         * modules/unistdio/ulc-vsnprintf: Likewise.
25314         * modules/unistdio/ulc-vsprintf: Likewise.
25315         * modules/unistr/u8-check: Likewise.
25316         * modules/unistr/u8-chr: Likewise.
25317         * modules/unistr/u8-cmp: Likewise.
25318         * modules/unistr/u8-cmp2: Likewise.
25319         * modules/unistr/u8-cpy: Likewise.
25320         * modules/unistr/u8-cpy-alloc: Likewise.
25321         * modules/unistr/u8-endswith: Likewise.
25322         * modules/unistr/u8-mblen: Likewise.
25323         * modules/unistr/u8-mbsnlen: Likewise.
25324         * modules/unistr/u8-mbtouc: Likewise.
25325         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25326         * modules/unistr/u8-mbtoucr: Likewise.
25327         * modules/unistr/u8-move: Likewise.
25328         * modules/unistr/u8-next: Likewise.
25329         * modules/unistr/u8-prev: Likewise.
25330         * modules/unistr/u8-set: Likewise.
25331         * modules/unistr/u8-startswith: Likewise.
25332         * modules/unistr/u8-stpcpy: Likewise.
25333         * modules/unistr/u8-stpncpy: Likewise.
25334         * modules/unistr/u8-strcat: Likewise.
25335         * modules/unistr/u8-strchr: Likewise.
25336         * modules/unistr/u8-strcmp: Likewise.
25337         * modules/unistr/u8-strcoll: Likewise.
25338         * modules/unistr/u8-strcpy: Likewise.
25339         * modules/unistr/u8-strcspn: Likewise.
25340         * modules/unistr/u8-strdup: Likewise.
25341         * modules/unistr/u8-strlen: Likewise.
25342         * modules/unistr/u8-strmblen: Likewise.
25343         * modules/unistr/u8-strmbtouc: Likewise.
25344         * modules/unistr/u8-strncat: Likewise.
25345         * modules/unistr/u8-strncmp: Likewise.
25346         * modules/unistr/u8-strncpy: Likewise.
25347         * modules/unistr/u8-strnlen: Likewise.
25348         * modules/unistr/u8-strpbrk: Likewise.
25349         * modules/unistr/u8-strrchr: Likewise.
25350         * modules/unistr/u8-strspn: Likewise.
25351         * modules/unistr/u8-strstr: Likewise.
25352         * modules/unistr/u8-strtok: Likewise.
25353         * modules/unistr/u8-to-u16: Likewise.
25354         * modules/unistr/u8-to-u32: Likewise.
25355         * modules/unistr/u8-uctomb: Likewise.
25356         * modules/unistr/u16-check: Likewise.
25357         * modules/unistr/u16-chr: Likewise.
25358         * modules/unistr/u16-cmp: Likewise.
25359         * modules/unistr/u16-cmp2: Likewise.
25360         * modules/unistr/u16-cpy: Likewise.
25361         * modules/unistr/u16-cpy-alloc: Likewise.
25362         * modules/unistr/u16-endswith: Likewise.
25363         * modules/unistr/u16-mblen: Likewise.
25364         * modules/unistr/u16-mbsnlen: Likewise.
25365         * modules/unistr/u16-mbtouc: Likewise.
25366         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25367         * modules/unistr/u16-mbtoucr: Likewise.
25368         * modules/unistr/u16-move: Likewise.
25369         * modules/unistr/u16-next: Likewise.
25370         * modules/unistr/u16-prev: Likewise.
25371         * modules/unistr/u16-set: Likewise.
25372         * modules/unistr/u16-startswith: Likewise.
25373         * modules/unistr/u16-stpcpy: Likewise.
25374         * modules/unistr/u16-stpncpy: Likewise.
25375         * modules/unistr/u16-strcat: Likewise.
25376         * modules/unistr/u16-strchr: Likewise.
25377         * modules/unistr/u16-strcmp: Likewise.
25378         * modules/unistr/u16-strcoll: Likewise.
25379         * modules/unistr/u16-strcpy: Likewise.
25380         * modules/unistr/u16-strcspn: Likewise.
25381         * modules/unistr/u16-strdup: Likewise.
25382         * modules/unistr/u16-strlen: Likewise.
25383         * modules/unistr/u16-strmblen: Likewise.
25384         * modules/unistr/u16-strmbtouc: Likewise.
25385         * modules/unistr/u16-strncat: Likewise.
25386         * modules/unistr/u16-strncmp: Likewise.
25387         * modules/unistr/u16-strncpy: Likewise.
25388         * modules/unistr/u16-strnlen: Likewise.
25389         * modules/unistr/u16-strpbrk: Likewise.
25390         * modules/unistr/u16-strrchr: Likewise.
25391         * modules/unistr/u16-strspn: Likewise.
25392         * modules/unistr/u16-strstr: Likewise.
25393         * modules/unistr/u16-strtok: Likewise.
25394         * modules/unistr/u16-to-u32: Likewise.
25395         * modules/unistr/u16-to-u8: Likewise.
25396         * modules/unistr/u16-uctomb: Likewise.
25397         * modules/unistr/u32-check: Likewise.
25398         * modules/unistr/u32-chr: Likewise.
25399         * modules/unistr/u32-cmp: Likewise.
25400         * modules/unistr/u32-cmp2: Likewise.
25401         * modules/unistr/u32-cpy: Likewise.
25402         * modules/unistr/u32-cpy-alloc: Likewise.
25403         * modules/unistr/u32-endswith: Likewise.
25404         * modules/unistr/u32-mblen: Likewise.
25405         * modules/unistr/u32-mbsnlen: Likewise.
25406         * modules/unistr/u32-mbtouc: Likewise.
25407         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25408         * modules/unistr/u32-mbtoucr: Likewise.
25409         * modules/unistr/u32-move: Likewise.
25410         * modules/unistr/u32-next: Likewise.
25411         * modules/unistr/u32-prev: Likewise.
25412         * modules/unistr/u32-set: Likewise.
25413         * modules/unistr/u32-startswith: Likewise.
25414         * modules/unistr/u32-stpcpy: Likewise.
25415         * modules/unistr/u32-stpncpy: Likewise.
25416         * modules/unistr/u32-strcat: Likewise.
25417         * modules/unistr/u32-strchr: Likewise.
25418         * modules/unistr/u32-strcmp: Likewise.
25419         * modules/unistr/u32-strcoll: Likewise.
25420         * modules/unistr/u32-strcpy: Likewise.
25421         * modules/unistr/u32-strcspn: Likewise.
25422         * modules/unistr/u32-strdup: Likewise.
25423         * modules/unistr/u32-strlen: Likewise.
25424         * modules/unistr/u32-strmblen: Likewise.
25425         * modules/unistr/u32-strmbtouc: Likewise.
25426         * modules/unistr/u32-strncat: Likewise.
25427         * modules/unistr/u32-strncmp: Likewise.
25428         * modules/unistr/u32-strncpy: Likewise.
25429         * modules/unistr/u32-strnlen: Likewise.
25430         * modules/unistr/u32-strpbrk: Likewise.
25431         * modules/unistr/u32-strrchr: Likewise.
25432         * modules/unistr/u32-strspn: Likewise.
25433         * modules/unistr/u32-strstr: Likewise.
25434         * modules/unistr/u32-strtok: Likewise.
25435         * modules/unistr/u32-to-u16: Likewise.
25436         * modules/unistr/u32-to-u8: Likewise.
25437         * modules/unistr/u32-uctomb: Likewise.
25438         * modules/uniwbrk/u8-wordbreaks: Likewise.
25439         * modules/uniwbrk/u16-wordbreaks: Likewise.
25440         * modules/uniwbrk/u32-wordbreaks: Likewise.
25441         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25442         * modules/uniwbrk/wordbreak-property: Likewise.
25443         * modules/uniwidth/u8-strwidth: Likewise.
25444         * modules/uniwidth/u8-width: Likewise.
25445         * modules/uniwidth/u16-strwidth: Likewise.
25446         * modules/uniwidth/u16-width: Likewise.
25447         * modules/uniwidth/u32-strwidth: Likewise.
25448         * modules/uniwidth/u32-width: Likewise.
25449         * modules/uniwidth/width: Likewise.
25450         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25451         with $(LIBUNISTRING).
25452         * modules/unicase/ignorable-tests: Likewise.
25453         * modules/unicase/locale-language-tests: Likewise.
25454         * modules/unicase/tolower-tests: Likewise.
25455         * modules/unicase/totitle-tests: Likewise.
25456         * modules/unicase/toupper-tests: Likewise.
25457         * modules/unicase/u8-casecmp-tests: Likewise.
25458         * modules/unicase/u8-casecoll-tests: Likewise.
25459         * modules/unicase/u8-casefold-tests: Likewise.
25460         * modules/unicase/u8-is-cased-tests: Likewise.
25461         * modules/unicase/u8-is-casefolded-tests: Likewise.
25462         * modules/unicase/u8-is-lowercase-tests: Likewise.
25463         * modules/unicase/u8-is-titlecase-tests: Likewise.
25464         * modules/unicase/u8-is-uppercase-tests: Likewise.
25465         * modules/unicase/u8-tolower-tests: Likewise.
25466         * modules/unicase/u8-totitle-tests: Likewise.
25467         * modules/unicase/u8-toupper-tests: Likewise.
25468         * modules/unicase/u16-casecmp-tests: Likewise.
25469         * modules/unicase/u16-casecoll-tests: Likewise.
25470         * modules/unicase/u16-casefold-tests: Likewise.
25471         * modules/unicase/u16-is-cased-tests: Likewise.
25472         * modules/unicase/u16-is-casefolded-tests: Likewise.
25473         * modules/unicase/u16-is-lowercase-tests: Likewise.
25474         * modules/unicase/u16-is-titlecase-tests: Likewise.
25475         * modules/unicase/u16-is-uppercase-tests: Likewise.
25476         * modules/unicase/u16-tolower-tests: Likewise.
25477         * modules/unicase/u16-totitle-tests: Likewise.
25478         * modules/unicase/u16-toupper-tests: Likewise.
25479         * modules/unicase/u32-casecmp-tests: Likewise.
25480         * modules/unicase/u32-casecoll-tests: Likewise.
25481         * modules/unicase/u32-casefold-tests: Likewise.
25482         * modules/unicase/u32-is-cased-tests: Likewise.
25483         * modules/unicase/u32-is-casefolded-tests: Likewise.
25484         * modules/unicase/u32-is-lowercase-tests: Likewise.
25485         * modules/unicase/u32-is-titlecase-tests: Likewise.
25486         * modules/unicase/u32-is-uppercase-tests: Likewise.
25487         * modules/unicase/u32-tolower-tests: Likewise.
25488         * modules/unicase/u32-totitle-tests: Likewise.
25489         * modules/unicase/u32-toupper-tests: Likewise.
25490         * modules/unicase/ulc-casecmp-tests: Likewise.
25491         * modules/unicase/ulc-casecoll-tests: Likewise.
25492         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25493         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25494         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25495         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25496         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25497         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25498         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25499         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25500         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25501         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25502         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25503         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25504         * modules/unictype/bidicategory-byname-tests: Likewise.
25505         * modules/unictype/bidicategory-name-tests: Likewise.
25506         * modules/unictype/bidicategory-of-tests: Likewise.
25507         * modules/unictype/bidicategory-test-tests: Likewise.
25508         * modules/unictype/block-list-tests: Likewise.
25509         * modules/unictype/block-of-tests: Likewise.
25510         * modules/unictype/block-test-tests: Likewise.
25511         * modules/unictype/category-C-tests: Likewise.
25512         * modules/unictype/category-Cc-tests: Likewise.
25513         * modules/unictype/category-Cf-tests: Likewise.
25514         * modules/unictype/category-Cn-tests: Likewise.
25515         * modules/unictype/category-Co-tests: Likewise.
25516         * modules/unictype/category-Cs-tests: Likewise.
25517         * modules/unictype/category-L-tests: Likewise.
25518         * modules/unictype/category-Ll-tests: Likewise.
25519         * modules/unictype/category-Lm-tests: Likewise.
25520         * modules/unictype/category-Lo-tests: Likewise.
25521         * modules/unictype/category-Lt-tests: Likewise.
25522         * modules/unictype/category-Lu-tests: Likewise.
25523         * modules/unictype/category-M-tests: Likewise.
25524         * modules/unictype/category-Mc-tests: Likewise.
25525         * modules/unictype/category-Me-tests: Likewise.
25526         * modules/unictype/category-Mn-tests: Likewise.
25527         * modules/unictype/category-N-tests: Likewise.
25528         * modules/unictype/category-Nd-tests: Likewise.
25529         * modules/unictype/category-Nl-tests: Likewise.
25530         * modules/unictype/category-No-tests: Likewise.
25531         * modules/unictype/category-P-tests: Likewise.
25532         * modules/unictype/category-Pc-tests: Likewise.
25533         * modules/unictype/category-Pd-tests: Likewise.
25534         * modules/unictype/category-Pe-tests: Likewise.
25535         * modules/unictype/category-Pf-tests: Likewise.
25536         * modules/unictype/category-Pi-tests: Likewise.
25537         * modules/unictype/category-Po-tests: Likewise.
25538         * modules/unictype/category-Ps-tests: Likewise.
25539         * modules/unictype/category-S-tests: Likewise.
25540         * modules/unictype/category-Sc-tests: Likewise.
25541         * modules/unictype/category-Sk-tests: Likewise.
25542         * modules/unictype/category-Sm-tests: Likewise.
25543         * modules/unictype/category-So-tests: Likewise.
25544         * modules/unictype/category-Z-tests: Likewise.
25545         * modules/unictype/category-Zl-tests: Likewise.
25546         * modules/unictype/category-Zp-tests: Likewise.
25547         * modules/unictype/category-Zs-tests: Likewise.
25548         * modules/unictype/category-and-not-tests: Likewise.
25549         * modules/unictype/category-and-tests: Likewise.
25550         * modules/unictype/category-byname-tests: Likewise.
25551         * modules/unictype/category-name-tests: Likewise.
25552         * modules/unictype/category-none-tests: Likewise.
25553         * modules/unictype/category-of-tests: Likewise.
25554         * modules/unictype/category-or-tests: Likewise.
25555         * modules/unictype/category-test-withtable-tests: Likewise.
25556         * modules/unictype/combining-class-tests: Likewise.
25557         * modules/unictype/ctype-alnum-tests: Likewise.
25558         * modules/unictype/ctype-alpha-tests: Likewise.
25559         * modules/unictype/ctype-blank-tests: Likewise.
25560         * modules/unictype/ctype-cntrl-tests: Likewise.
25561         * modules/unictype/ctype-digit-tests: Likewise.
25562         * modules/unictype/ctype-graph-tests: Likewise.
25563         * modules/unictype/ctype-lower-tests: Likewise.
25564         * modules/unictype/ctype-print-tests: Likewise.
25565         * modules/unictype/ctype-punct-tests: Likewise.
25566         * modules/unictype/ctype-space-tests: Likewise.
25567         * modules/unictype/ctype-upper-tests: Likewise.
25568         * modules/unictype/ctype-xdigit-tests: Likewise.
25569         * modules/unictype/decimal-digit-tests: Likewise.
25570         * modules/unictype/digit-tests: Likewise.
25571         * modules/unictype/mirror-tests: Likewise.
25572         * modules/unictype/numeric-tests: Likewise.
25573         * modules/unictype/property-alphabetic-tests: Likewise.
25574         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25575         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25576         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25577         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25578         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25579         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25580         * modules/unictype/property-bidi-control-tests: Likewise.
25581         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25582         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25583         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25584         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25585         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25586         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25587         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25588         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25589         * modules/unictype/property-bidi-pdf-tests: Likewise.
25590         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25591         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25592         * modules/unictype/property-byname-tests: Likewise.
25593         * modules/unictype/property-combining-tests: Likewise.
25594         * modules/unictype/property-composite-tests: Likewise.
25595         * modules/unictype/property-currency-symbol-tests: Likewise.
25596         * modules/unictype/property-dash-tests: Likewise.
25597         * modules/unictype/property-decimal-digit-tests: Likewise.
25598         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25599         * modules/unictype/property-deprecated-tests: Likewise.
25600         * modules/unictype/property-diacritic-tests: Likewise.
25601         * modules/unictype/property-extender-tests: Likewise.
25602         * modules/unictype/property-format-control-tests: Likewise.
25603         * modules/unictype/property-grapheme-base-tests: Likewise.
25604         * modules/unictype/property-grapheme-extend-tests: Likewise.
25605         * modules/unictype/property-grapheme-link-tests: Likewise.
25606         * modules/unictype/property-hex-digit-tests: Likewise.
25607         * modules/unictype/property-hyphen-tests: Likewise.
25608         * modules/unictype/property-id-continue-tests: Likewise.
25609         * modules/unictype/property-id-start-tests: Likewise.
25610         * modules/unictype/property-ideographic-tests: Likewise.
25611         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25612         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25613         * modules/unictype/property-ignorable-control-tests: Likewise.
25614         * modules/unictype/property-iso-control-tests: Likewise.
25615         * modules/unictype/property-join-control-tests: Likewise.
25616         * modules/unictype/property-left-of-pair-tests: Likewise.
25617         * modules/unictype/property-line-separator-tests: Likewise.
25618         * modules/unictype/property-logical-order-exception-tests: Likewise.
25619         * modules/unictype/property-lowercase-tests: Likewise.
25620         * modules/unictype/property-math-tests: Likewise.
25621         * modules/unictype/property-non-break-tests: Likewise.
25622         * modules/unictype/property-not-a-character-tests: Likewise.
25623         * modules/unictype/property-numeric-tests: Likewise.
25624         * modules/unictype/property-other-alphabetic-tests: Likewise.
25625         * modules/unictype/property-other-default-ignorable-code-point-tests:
25626         Likewise.
25627         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25628         * modules/unictype/property-other-id-continue-tests: Likewise.
25629         * modules/unictype/property-other-id-start-tests: Likewise.
25630         * modules/unictype/property-other-lowercase-tests: Likewise.
25631         * modules/unictype/property-other-math-tests: Likewise.
25632         * modules/unictype/property-other-uppercase-tests: Likewise.
25633         * modules/unictype/property-paired-punctuation-tests: Likewise.
25634         * modules/unictype/property-paragraph-separator-tests: Likewise.
25635         * modules/unictype/property-pattern-syntax-tests: Likewise.
25636         * modules/unictype/property-pattern-white-space-tests: Likewise.
25637         * modules/unictype/property-private-use-tests: Likewise.
25638         * modules/unictype/property-punctuation-tests: Likewise.
25639         * modules/unictype/property-quotation-mark-tests: Likewise.
25640         * modules/unictype/property-radical-tests: Likewise.
25641         * modules/unictype/property-sentence-terminal-tests: Likewise.
25642         * modules/unictype/property-soft-dotted-tests: Likewise.
25643         * modules/unictype/property-space-tests: Likewise.
25644         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25645         * modules/unictype/property-test-tests: Likewise.
25646         * modules/unictype/property-titlecase-tests: Likewise.
25647         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25648         * modules/unictype/property-unified-ideograph-tests: Likewise.
25649         * modules/unictype/property-uppercase-tests: Likewise.
25650         * modules/unictype/property-variation-selector-tests: Likewise.
25651         * modules/unictype/property-white-space-tests: Likewise.
25652         * modules/unictype/property-xid-continue-tests: Likewise.
25653         * modules/unictype/property-xid-start-tests: Likewise.
25654         * modules/unictype/property-zero-width-tests: Likewise.
25655         * modules/unictype/scripts-tests: Likewise.
25656         * modules/unictype/syntax-c-ident-tests: Likewise.
25657         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25658         * modules/unictype/syntax-java-ident-tests: Likewise.
25659         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25660         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25661         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25662         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25663         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25664         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25665         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25666         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25667         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25668         * modules/uniname/uniname-tests: Likewise.
25669         * modules/uninorm/canonical-decomposition-tests: Likewise.
25670         * modules/uninorm/compat-decomposition-tests: Likewise.
25671         * modules/uninorm/composition-tests: Likewise.
25672         * modules/uninorm/decomposing-form-tests: Likewise.
25673         * modules/uninorm/decomposition-tests: Likewise.
25674         * modules/uninorm/filter-tests: Likewise.
25675         * modules/uninorm/nfc-tests: Likewise.
25676         * modules/uninorm/nfd-tests: Likewise.
25677         * modules/uninorm/nfkc-tests: Likewise.
25678         * modules/uninorm/nfkd-tests: Likewise.
25679         * modules/uninorm/u8-normcmp-tests: Likewise.
25680         * modules/uninorm/u8-normcoll-tests: Likewise.
25681         * modules/uninorm/u16-normcmp-tests: Likewise.
25682         * modules/uninorm/u16-normcoll-tests: Likewise.
25683         * modules/uninorm/u32-normcmp-tests: Likewise.
25684         * modules/uninorm/u32-normcoll-tests: Likewise.
25685         * modules/unistdio/u8-asnprintf-tests: Likewise.
25686         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25687         * modules/unistdio/u8-vasprintf-tests: Likewise.
25688         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25689         * modules/unistdio/u8-vsprintf-tests: Likewise.
25690         * modules/unistdio/u16-asnprintf-tests: Likewise.
25691         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25692         * modules/unistdio/u16-vasprintf-tests: Likewise.
25693         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25694         * modules/unistdio/u16-vsprintf-tests: Likewise.
25695         * modules/unistdio/u32-asnprintf-tests: Likewise.
25696         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25697         * modules/unistdio/u32-vasprintf-tests: Likewise.
25698         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25699         * modules/unistdio/u32-vsprintf-tests: Likewise.
25700         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25701         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25702         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25703         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25704         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25705         * modules/unistr/u8-check-tests: Likewise.
25706         * modules/unistr/u8-chr-tests: Likewise.
25707         * modules/unistr/u8-cmp-tests: Likewise.
25708         * modules/unistr/u8-cmp2-tests: Likewise.
25709         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25710         * modules/unistr/u8-cpy-tests: Likewise.
25711         * modules/unistr/u8-mblen-tests: Likewise.
25712         * modules/unistr/u8-mbsnlen-tests: Likewise.
25713         * modules/unistr/u8-mbtouc-tests: Likewise.
25714         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25715         * modules/unistr/u8-mbtoucr-tests: Likewise.
25716         * modules/unistr/u8-move-tests: Likewise.
25717         * modules/unistr/u8-next-tests: Likewise.
25718         * modules/unistr/u8-prev-tests: Likewise.
25719         * modules/unistr/u8-set-tests: Likewise.
25720         * modules/unistr/u8-stpcpy-tests: Likewise.
25721         * modules/unistr/u8-stpncpy-tests: Likewise.
25722         * modules/unistr/u8-strcat-tests: Likewise.
25723         * modules/unistr/u8-strcmp-tests: Likewise.
25724         * modules/unistr/u8-strcoll-tests: Likewise.
25725         * modules/unistr/u8-strcpy-tests: Likewise.
25726         * modules/unistr/u8-strdup-tests: Likewise.
25727         * modules/unistr/u8-strlen-tests: Likewise.
25728         * modules/unistr/u8-strmblen-tests: Likewise.
25729         * modules/unistr/u8-strmbtouc-tests: Likewise.
25730         * modules/unistr/u8-strncat-tests: Likewise.
25731         * modules/unistr/u8-strncmp-tests: Likewise.
25732         * modules/unistr/u8-strncpy-tests: Likewise.
25733         * modules/unistr/u8-strnlen-tests: Likewise.
25734         * modules/unistr/u8-to-u16-tests: Likewise.
25735         * modules/unistr/u8-to-u32-tests: Likewise.
25736         * modules/unistr/u8-uctomb-tests: Likewise.
25737         * modules/unistr/u16-check-tests: Likewise.
25738         * modules/unistr/u16-chr-tests: Likewise.
25739         * modules/unistr/u16-cmp-tests: Likewise.
25740         * modules/unistr/u16-cmp2-tests: Likewise.
25741         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25742         * modules/unistr/u16-cpy-tests: Likewise.
25743         * modules/unistr/u16-mblen-tests: Likewise.
25744         * modules/unistr/u16-mbsnlen-tests: Likewise.
25745         * modules/unistr/u16-mbtouc-tests: Likewise.
25746         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25747         * modules/unistr/u16-mbtoucr-tests: Likewise.
25748         * modules/unistr/u16-move-tests: Likewise.
25749         * modules/unistr/u16-next-tests: Likewise.
25750         * modules/unistr/u16-prev-tests: Likewise.
25751         * modules/unistr/u16-set-tests: Likewise.
25752         * modules/unistr/u16-stpcpy-tests: Likewise.
25753         * modules/unistr/u16-stpncpy-tests: Likewise.
25754         * modules/unistr/u16-strcat-tests: Likewise.
25755         * modules/unistr/u16-strcmp-tests: Likewise.
25756         * modules/unistr/u16-strcoll-tests: Likewise.
25757         * modules/unistr/u16-strcpy-tests: Likewise.
25758         * modules/unistr/u16-strdup-tests: Likewise.
25759         * modules/unistr/u16-strlen-tests: Likewise.
25760         * modules/unistr/u16-strmblen-tests: Likewise.
25761         * modules/unistr/u16-strmbtouc-tests: Likewise.
25762         * modules/unistr/u16-strncat-tests: Likewise.
25763         * modules/unistr/u16-strncmp-tests: Likewise.
25764         * modules/unistr/u16-strncpy-tests: Likewise.
25765         * modules/unistr/u16-strnlen-tests: Likewise.
25766         * modules/unistr/u16-to-u32-tests: Likewise.
25767         * modules/unistr/u16-to-u8-tests: Likewise.
25768         * modules/unistr/u16-uctomb-tests: Likewise.
25769         * modules/unistr/u32-check-tests: Likewise.
25770         * modules/unistr/u32-chr-tests: Likewise.
25771         * modules/unistr/u32-cmp-tests: Likewise.
25772         * modules/unistr/u32-cmp2-tests: Likewise.
25773         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25774         * modules/unistr/u32-cpy-tests: Likewise.
25775         * modules/unistr/u32-mblen-tests: Likewise.
25776         * modules/unistr/u32-mbsnlen-tests: Likewise.
25777         * modules/unistr/u32-mbtouc-tests: Likewise.
25778         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25779         * modules/unistr/u32-mbtoucr-tests: Likewise.
25780         * modules/unistr/u32-move-tests: Likewise.
25781         * modules/unistr/u32-next-tests: Likewise.
25782         * modules/unistr/u32-prev-tests: Likewise.
25783         * modules/unistr/u32-set-tests: Likewise.
25784         * modules/unistr/u32-stpcpy-tests: Likewise.
25785         * modules/unistr/u32-stpncpy-tests: Likewise.
25786         * modules/unistr/u32-strcat-tests: Likewise.
25787         * modules/unistr/u32-strcmp-tests: Likewise.
25788         * modules/unistr/u32-strcoll-tests: Likewise.
25789         * modules/unistr/u32-strcpy-tests: Likewise.
25790         * modules/unistr/u32-strdup-tests: Likewise.
25791         * modules/unistr/u32-strlen-tests: Likewise.
25792         * modules/unistr/u32-strmblen-tests: Likewise.
25793         * modules/unistr/u32-strmbtouc-tests: Likewise.
25794         * modules/unistr/u32-strncat-tests: Likewise.
25795         * modules/unistr/u32-strncmp-tests: Likewise.
25796         * modules/unistr/u32-strncpy-tests: Likewise.
25797         * modules/unistr/u32-strnlen-tests: Likewise.
25798         * modules/unistr/u32-to-u16-tests: Likewise.
25799         * modules/unistr/u32-to-u8-tests: Likewise.
25800         * modules/unistr/u32-uctomb-tests: Likewise.
25801         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25802         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25803         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25804         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25805         * modules/uniwidth/u8-strwidth-tests: Likewise.
25806         * modules/uniwidth/u8-width-tests: Likewise.
25807         * modules/uniwidth/u16-strwidth-tests: Likewise.
25808         * modules/uniwidth/u16-width-tests: Likewise.
25809         * modules/uniwidth/u32-strwidth-tests: Likewise.
25810         * modules/uniwidth/u32-width-tests: Likewise.
25811         * modules/uniwidth/width-tests: Likewise.
25812
25813 2010-05-18  Richard Jones  <rjones@redhat.com>
25814
25815         doc: users.txt: list hivex
25816         * users.txt: Add hivex.
25817
25818 2010-05-18  Richard Jones  <rjones@redhat.com>
25819
25820         doc: users.txt: list febootstrap
25821         * users.txt: Add febootstrap.
25822
25823 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25824
25825         bootstrap: fix an error when gnulib is not used as a git submodule
25826         * build-aux/bootstrap (gnulib_path): If its length is zero then
25827         assign "gnulib" to it.
25828         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25829
25830 2010-05-16  Bruno Haible  <bruno@clisp.org>
25831
25832         Avoid autoconf warnings about AM_ICONV.
25833         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25834         2.64.
25835
25836 2010-05-16  Bruno Haible  <bruno@clisp.org>
25837
25838         absolute-header: Make the macro usable in more situations.
25839         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25840         from gl_ABSOLUTE_HEADER.
25841         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25842
25843 2010-05-16  James Youngman  <jay@gnu.org>
25844
25845         doc: update users.txt
25846         * users.txt: Add CSSC.
25847
25848 2010-05-16  Jim Meyering  <meyering@redhat.com>
25849
25850         init.sh: fix an error in the previous change; add more comments
25851         * tests/init.sh: Compare exit code in loop against 9, not 2.
25852         Patch by Bruno Haible.
25853         Make the two tests more similar by adding an empty "then" clause.
25854         Add comments.
25855
25856         init.sh: avoid unnecessary shell re-exec
25857         * tests/init.sh: Improve the re-exec-required check to first test the
25858         current shell.  If it passes the test, do not search for a shell that
25859         does pass, and do not re-exec.  This test is particularly contorted to
25860         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25861         of $(...) evokes a syntax error and causes immediate shell exit with
25862         status 2.  Bruno Haible reported that the re-exec made it impossible
25863         to single-step through any init.sh-using script.
25864
25865 2010-05-16  Bruno Haible  <bruno@clisp.org>
25866
25867         Fix collision between gnulib's and libintl's printf replacements.
25868         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25869         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25870         (printf): When using GNU C, map the __printf__ function to rpl_printf
25871         via __asm__. When not using GNU C, define rpl_printf instead of
25872         __printf__.
25873         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25874         commit.
25875         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25876         commit.
25877         * m4/asm-underscore.m4: New file.
25878         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25879         * modules/stdio (Files): Add m4/asm-underscore.m4.
25880         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25881         Reported by Ben Pfaff.
25882
25883 2010-05-16  Bruno Haible  <bruno@clisp.org>
25884
25885         verify: Avoid skipping the test on openSUSE 11.0.
25886         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25887
25888 2010-05-13  Bruno Haible  <bruno@clisp.org>
25889
25890         Avoid useless warnings from G++.
25891         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25892         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25893         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25894
25895 2010-05-11  Jim Meyering  <meyering@redhat.com>
25896
25897         maint.mk: tweak preceding change
25898         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25899         regexps tighter by anchoring at EOL, and make the new group "shy"
25900         for slightly decreased overhead.
25901
25902 2010-05-11  Eric Blake  <eblake@redhat.com>
25903
25904         maint.mk: gnulib doesn't guarantee NSIG
25905         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25906
25907 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25908
25909         test-pwrite.c: Remove unused variable declaration.
25910         * tests/test-pwrite.c (main): Remove read_buf declaration.
25911
25912         Remove useless test-pwrite.sh file.
25913         * tests/test-pwrite.sh: Delete file.
25914         * modules/pwrite-tests: Remove references.
25915         Reported by Bruno Haible.
25916
25917 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25918
25919         init.sh: fix a typo
25920         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25921
25922 2010-05-10  Jim Meyering  <meyering@redhat.com>
25923
25924         maint.mk: avoid using a temporary file in the always-defined-macros check
25925         * top/maint.mk (.re-defmac): Remove rule.
25926         (gl_trap_): Remove definition.
25927         (sc_prohibit_always-defined_macros): Rewrite not to create and
25928         depend on a temporary file.  Instead, depend on GNU grep's ability
25929         to read a list of regular expressions from stdin when given "-f -".
25930
25931 2010-05-09  Bruno Haible  <bruno@clisp.org>
25932
25933         Update to GNU gettext 0.18, part 1.
25934         * m4/gettext.m4: Update to GNU gettext 0.18.
25935         * m4/intl.m4: Likewise.
25936         * m4/po.m4: Likewise.
25937         * modules/gettext (Files): Add m4/fcntl-o.m4.
25938         (configure.ac): Require gettext infrastructure from version 0.18.
25939
25940 2010-05-09  Jim Meyering  <meyering@redhat.com>
25941
25942         init.sh: enable MALLOC_PERTURB_
25943         * tests/init.sh: Enable glibc's malloc-perturbing option.
25944
25945         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25946         With my recent change in init.sh from the two-line form:
25947             -#   : ${srcdir=.}
25948             -#   . "$srcdir/init.sh"; path_prepend_ .
25949             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25950         I noticed that using the one-line form would cause this test
25951         to fail with a false-positive, or to stop working altogether,
25952         depending on whether help-version changed or all the tests did.
25953         * top/maint.mk (_hv_regex): Remove this definition.
25954         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25955         (_hv_regex_strong): Use a stronger regex to check for conformance.
25956         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25957         Give a separate diagnostic for lack of conforming use.
25958
25959         maint.mk: prohibit definition of symbols defined by gnulib
25960         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25961         definition of symbols defined by gnulib.
25962
25963 2010-05-09  Bruno Haible  <bruno@clisp.org>
25964
25965         acl: Avoid test failure on Cygwin-hosted mingw.
25966         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25967
25968 2010-05-09  Bruno Haible  <bruno@clisp.org>
25969
25970         error: Use system's fcntl function.
25971         * lib/error.c (fcntl): Undefine.
25972
25973 2010-05-09  Jim Meyering  <meyering@redhat.com>
25974
25975         verify: adjust formatting to be more consistent
25976         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25977         argument-list '('s, and after one comma.
25978
25979 2010-05-09  Bruno Haible  <bruno@clisp.org>
25980
25981         error: More reliable output on mingw.
25982         * lib/error.c: Include <windows.h>.
25983         (is_open): New function.
25984         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25985         defined.
25986
25987 2010-05-09  Bruno Haible  <bruno@clisp.org>
25988
25989         vasnprintf: Fix syntax errors in libintl build on mingw.
25990         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25991         pad_ourselves and prec_ourselves after use.
25992
25993 2010-05-08  Bruno Haible  <bruno@clisp.org>
25994
25995         * lib/config.charset: Update comments for Cygwin 1.7.
25996         * lib/localcharset.c: Likewise.
25997
25998 2010-05-07  Jim Meyering  <meyering@redhat.com>
25999
26000         init.sh: improve comments
26001         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
26002         . "${srcdir=.}/init.sh"; path_prepend_ .
26003         Add a note about path_prepend_ and the alternative of using
26004         TESTS_ENVIRONMENT.
26005
26006 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26007
26008         exclude: Unescape hashed patterns in wildcard mode.
26009         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
26010         to the hash list.
26011         * tests/test-exclude8.sh: New test case.
26012         * modules/exclude-tests: Add new test.
26013
26014 2010-05-05  Eric Blake  <eblake@redhat.com>
26015
26016         verify: automate tests
26017         * modules/verify-tests: New module.
26018         * tests/test-verify.sh: New file.
26019         * tests/test-verify.c: Guard each negative test with a unique id.
26020         Also avoid warning about unused left hand of comma expressions.
26021
26022 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
26023
26024         Further improvements to verify.h, suggested by Eric Blake.
26025         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
26026         the GL_* versions, to avoid collision with OpenGL.
26027         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
26028         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
26029         than testing merely whether it's defined.
26030
26031         Modify verify.h to pacify gcc -Wredundant_decls.
26032         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
26033         These use the prefix "GL_" since they're likely to be useful elsewhere.
26034         We may need to break them out into a different .h file.
26035         (__COUNTER__): Define to 0 if the compiler doesn't support it.
26036         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
26037         of verify_function__.
26038
26039 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26040
26041         Tests for module pwrite.
26042         * modules/pwrite-tests: New file.
26043         * tests/test-pwrite.sh: New file.
26044         * tests/test-pwrite.c: New file.
26045
26046         New module pwrite.
26047         * lib/unistd.in.h (pwrite): New declaration.
26048         * lib/pwrite.c: New file, from glibc with modifications.
26049         * m4/pwrite.m4: New file.
26050         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
26051         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
26052         REPLACE_PWRITE.
26053         * modules/pwrite: New file.
26054         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
26055         REPLACE_PWRITE.
26056         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
26057         * doc/posix-functions/pwrite.texi: Mention the new module.
26058
26059 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
26060
26061         pread: Update documentation.
26062         * doc/posix-functions/pread.texi: Mention the 'pread' module.
26063
26064 2010-05-04  Eric Blake  <eblake@redhat.com>
26065
26066         docs: update cygwin progress
26067         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
26068         this bug.
26069         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
26070         Added in cygwin 1.7.2.
26071         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
26072         Likewise.
26073         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
26074         Likewise.
26075         * doc/glibc-functions/dup3.texi (dup3): Likewise.
26076         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
26077         * doc/glibc-functions/accept4.texi (accept4): Likewise.
26078         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
26079         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
26080         Mention nproc module.
26081         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
26082         bug in cygwin 1.7.5 addition.
26083         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
26084         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
26085         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
26086         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
26087         1.7.5.
26088         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
26089         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
26090         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
26091         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
26092         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
26093         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
26094         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
26095         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
26096         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
26097         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
26098         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
26099         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
26100         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
26101         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
26102         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
26103         Likewise.
26104         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
26105         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
26106         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
26107         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
26108         Likewise.
26109         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
26110         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
26111         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
26112         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
26113         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
26114         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
26115         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
26116         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
26117         Likewise.
26118         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
26119         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
26120         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
26121         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
26122         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
26123         Likewise.
26124         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
26125         Likewise.
26126         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
26127         Likewise.
26128         * doc/glibc-functions/xdrrec_endofrecord.texi
26129         (xdrrec_endofrecord): Likewise.
26130         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
26131         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
26132         Likewise.
26133         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
26134         Likewise.
26135
26136 2010-05-04  Jim Meyering  <meyering@redhat.com>
26137
26138         gendocs.sh: make its "-s FILE" option more useful
26139         * build-aux/gendocs.sh: When honoring the -s FILE option, update
26140         $PACKAGE to reflect the probably-different basename of "FILE".
26141
26142 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
26143
26144         bootstrap: don't ignore download_po_files failure
26145         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
26146         failure.
26147
26148 2010-05-03  Jim Meyering  <meyering@redhat.com>
26149
26150         maint.mk: allow to pass options to gendocs.sh
26151         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
26152         (gendocs_options_): New overridable variable.
26153
26154         gnu-web-doc-update: don't ignore configure or build failure
26155         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
26156
26157         announce-gen: backslash-escape '@'s in --help output
26158         * build-aux/announce-gen: Fix syntax errors.
26159
26160         maint.mk, announce-gen: allow project-specific announcement mail headers
26161         * top/maint.mk (translation_project_): Define default.
26162         (announcement_Cc_, announcement_mail_headers_): Likewise.
26163         (announcement): Invoke announce-gen with new --mail-headers option.
26164         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26165
26166         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26167         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26168         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26169         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26170         line in the "err2" output file when running "make check" in verbose
26171         mode (i.e., with set -x enabled).
26172
26173 2010-05-03  Bruno Haible  <bruno@clisp.org>
26174
26175         wctob: Fix for weird platforms.
26176         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26177         argument value.
26178
26179 2010-05-03  Jim Meyering  <meyering@redhat.com>
26180
26181         maint.mk: prohibit unwarranted use of <strings.h>
26182         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26183         strings.h in a file that does not also use strcasecmp, strncasecmp,
26184         ffs or ffsll.
26185
26186         maint.mk: remove obsolete comments
26187         * top/maint.mk: Remove stale, commented-out rules.
26188
26189 2010-05-02  Bruno Haible  <bruno@clisp.org>
26190
26191         wcwidth: Declare also when it's aliased.
26192         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26193         macro.
26194
26195 2010-05-02  Bruno Haible  <bruno@clisp.org>
26196
26197         Fix regression from 2010-04-25.
26198         * gnulib-tool (func_modules_transitive_closure): Check the status of
26199         all modules, not only of the tests that are of the form foo-tests where
26200         foo is a module.
26201
26202 2010-05-02  Bruno Haible  <bruno@clisp.org>
26203
26204         wctob: Work around nasty Cygwin 1.7.2 bug.
26205         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26206         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26207
26208 2010-05-01  Bruno Haible  <bruno@clisp.org>
26209
26210         fpurge: Sharper test.
26211         * tests/test-fpurge.c (main): Add one more ftell check.
26212         * modules/fpurge-tests (Depends-on): Add ftell.
26213         Suggested by Eric Blake.
26214
26215 2010-05-01  Bruno Haible  <bruno@clisp.org>
26216
26217         ftello: Another test.
26218         * tests/test-ftello3.c: New file.
26219         * modules/ftello-tests (Files): Add it.
26220         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26221         MOSTLYCLEANFILES.
26222
26223         ftell: Another test.
26224         * tests/test-ftell3.c: New file.
26225         * modules/ftell-tests (Files): Add it.
26226         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26227         MOSTLYCLEANFILES.
26228
26229 2010-05-01  Bruno Haible  <bruno@clisp.org>
26230
26231         ftell, ftello: Work around Solaris bug.
26232         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26233         * lib/ftello.c: Include stdio-impl.h.
26234         (ftello): On Solaris, when _IOWRT is set, compute the result without
26235         looking at _IOREAD.
26236         * modules/ftello (Files): Add lib/stdio-impl.h.
26237         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26238         * doc/posix-functions/ftello.texi: Likewise.
26239         Reported by Eric Blake.
26240
26241 2010-05-01  Bruno Haible  <bruno@clisp.org>
26242
26243         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26244         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26245         the _IOWRT flag is also set.
26246
26247 2010-05-01  Bruno Haible  <bruno@clisp.org>
26248
26249         Fix doc about a HP-UX stdio bug.
26250         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26251         * doc/posix-functions/ftello.texi: Likewise.
26252
26253 2010-05-01  Bruno Haible  <bruno@clisp.org>
26254
26255         lseek test: Fix failure on Solaris.
26256         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26257         output.
26258
26259 2010-04-30  Jim Meyering  <meyering@redhat.com>
26260
26261         bootstrap: don't ignore failure to generate po*/Makevars
26262         * build-aux/bootstrap (with_gettext): Don't ignore failure
26263         to create po/Makevars or runtime-po/Makevars.
26264
26265 2010-04-29  Eric Blake  <eblake@redhat.com>
26266
26267         headers: relax license to LGPLv2+
26268         * modules/fcntl-h (License): Relax license.
26269         * modules/getopt-posix (License): Likewise.
26270         * modules/locale (License): Likewise.
26271         * modules/math (License): Likewise.
26272         * modules/pty (License): Likewise.
26273         * modules/sched (License): Likewise.
26274         * modules/search (License): Likewise.
26275         * modules/spawn (License): Likewise.
26276         * modules/stdarg (License): Likewise.
26277         * modules/sysexits (License): Likewise.
26278
26279 2010-04-29  Jim Meyering  <meyering@redhat.com>
26280
26281         inttypes: relax license to LGPLv2+
26282         * modules/inttypes (License): Relax license.
26283
26284 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26285
26286         * top/maint.mk (indent): Run twice to produce idempotent results.
26287
26288 2010-04-28  Bruno Haible  <bruno@clisp.org>
26289
26290         getdate: Generate getdate.c in the source directory.
26291         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26292         MOSTLYCLEANFILES.
26293         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26294
26295 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26296
26297         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26298         is not declared as a const *; avoid warnings in that case.
26299
26300 2010-04-28  Eric Blake  <eblake@redhat.com>
26301
26302         canonicalize-lgpl: avoid compiler warning
26303         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26304         declaration' / 'extraneous semicolon' warning with some compilers.
26305         Reported by Andreas Gruenbacher.
26306
26307 2010-04-28  Jim Meyering  <meyering@redhat.com>
26308
26309         init.sh: ensure a more reliable exit status when exiting via trap
26310         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26311         Inspired by patches from Dmitry V. Levin.
26312         Also trap on signal 3 (SIGQUIT).
26313
26314 2010-04-27  Bruno Haible  <bruno@clisp.org>
26315
26316         Update doc about utimes().
26317         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26318         'utimens' module.
26319         Reported by Andreas Gruenbacher <agruen@suse.de>.
26320
26321 2010-04-27  Eric Blake  <eblake@redhat.com>
26322
26323         full-read, full-write: relax license
26324         * modules/full-read (License): Drop to LGPLv2+.
26325         * modules/full-write (License): Likewise.
26326         * modules/safe-read (License): Likewise.
26327         * modules/safe-write (License): Likewise.
26328
26329         pthread: mention library for linking
26330         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26331
26332 2010-04-27  Jim Meyering  <meyering@redhat.com>
26333
26334         maint.mk: fix a bug introduced in last change
26335         * top/maint.mk (gl_assured_headers_): Now that all names are on
26336         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26337         is not anchored to end of word, it should be adequate.
26338
26339         maint.mk: avoid side-effect in latest syntax-check
26340         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26341         to run commands via $(shell...), and hence to incur cost only when
26342         the new rule is actually run.
26343
26344         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26345         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26346         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26347         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26348         (gl_assured_headers_, az_, AZ_): Define.
26349         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26350
26351 2010-04-26  Jim Meyering  <jim@meyering.net>
26352             Bruno Haible  <bruno@clisp.org>
26353
26354         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26355         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26356         Prompted by an exchange with Gilles Espinasse.
26357
26358 2010-04-26  Jim Meyering  <meyering@redhat.com>
26359
26360         git-version-gen: aesthetic tweak
26361         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26362         so that the command remains on a single line.
26363
26364 2010-04-26  Eric Blake  <eblake@redhat.com>
26365
26366         git-version-gen: allow use on EBCDIC hosts
26367         * build-aux/git-version-gen (dirty): Use literal rather than tying
26368         ourselves to ascii.
26369         Reported by Steve Goetze.
26370
26371 2010-04-25  Bruno Haible  <bruno@clisp.org>
26372
26373         netdb: Add support for GNULIB_POSIXCHECK.
26374         * lib/netdb.in.h: Include warn-on-use.h.
26375         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26376         functions are used when GNULIB_POSIXCHECK is defined and the
26377         getaddrinfo module is not in use.
26378         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26379         freeaddrinfo, gai_strerror, getnameinfo are declared.
26380         * modules/netdb (Depends-on): Add warn-on-use.
26381         (Makefile.am): Include warn-on-use.h in netdb.h.
26382
26383 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26384
26385         build: avoid "make check" failure without .git/ directory
26386         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26387         there is no .git/ directory.
26388
26389 2010-04-25  Bruno Haible  <bruno@clisp.org>
26390
26391         ptsname: Fix misuse of ttyname_r.
26392         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26393         of errno.
26394
26395 2010-04-25  Bruno Haible  <bruno@clisp.org>
26396
26397         ttyname_r: Make it work on Solaris 10.
26398         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26399         if the system function has the POSIX declaration. Test whether the
26400         function fails if the buffer is less than 128 bytes large.
26401         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26402         system's ttyname_r function. Provide a reasonably large buffer.
26403         * modules/ttyname_r (Depends-on): Add extensions.
26404         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26405
26406 2010-04-25  Bruno Haible  <bruno@clisp.org>
26407
26408         Use the 'extensions' module for some more functions on Solaris.
26409         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26410         module.
26411         * doc/posix-functions/ctime_r.texi: Likewise.
26412         * doc/posix-functions/getgrgid_r.texi: Likewise.
26413         * doc/posix-functions/getgrnam_r.texi: Likewise.
26414         * doc/posix-functions/getpwnam_r.texi: Likewise.
26415         * doc/posix-functions/getpwuid_r.texi: Likewise.
26416         * doc/posix-functions/readdir_r.texi: Likewise.
26417         * doc/posix-functions/sigwait.texi: Likewise.
26418         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26419         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26420
26421 2010-04-25  Bruno Haible  <bruno@clisp.org>
26422
26423         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26424         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26425         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26426         * lib/ttyname_r.c: Include <limits.h>.
26427         (ttyname_r): Define using the system's ttyname_r function, if it exists
26428         and not on Solaris.
26429         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26430         set.
26431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26432         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26433         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26434         Reported by Simon Josefsson.
26435
26436 2010-04-25  Bruno Haible  <bruno@clisp.org>
26437
26438         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26439         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26440         * doc/posix-functions/ctime_r.texi: Likewise.
26441         * doc/posix-functions/getgrgid_r.texi: Likewise.
26442         * doc/posix-functions/getgrnam_r.texi: Likewise.
26443         * doc/posix-functions/getlogin_r.texi: Likewise.
26444         * doc/posix-functions/getpwnam_r.texi: Likewise.
26445         * doc/posix-functions/getpwuid_r.texi: Likewise.
26446         * doc/posix-functions/readdir_r.texi: Likewise.
26447         * doc/posix-functions/sigwait.texi: Likewise.
26448         * doc/posix-functions/ttyname_r.texi: Likewise.
26449         Reported by Simon Josefsson.
26450
26451 2010-04-25  Bruno Haible  <bruno@clisp.org>
26452
26453         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26454         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26455         also to --create-testdir.
26456         (func_acceptable): Don't consider the status of *-tests modules here.
26457         (func_modules_transitive_closure): Consider it here, before including a
26458         test module.
26459         (func_import, func_create_testdir): Set inc_all_direct_tests,
26460         inc_all_indirect_tests.
26461         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26462         --create-testdir and --create-megatestdir.
26463
26464 2010-04-25  Bruno Haible  <bruno@clisp.org>
26465
26466         gnulib-tool: Add --without-*-tests options.
26467         * gnulib-tool (func_usage): Document the --without-*-tests options.
26468         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26469         excl_unportable_tests): New variables.
26470         Fail if they are specified with --import or --update.
26471         (func_acceptable): Respect the excl_*_tests variables.
26472         (func_import): Set the excl_*_tests variables to empty.
26473
26474 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26475             Bruno Haible  <bruno@clisp.org>
26476
26477         Work around a MacOS X 10.4 bug with openpty.
26478         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26479         * tests/test-openpty.c (main): Close the master side explicitly.
26480
26481 2010-04-25  Bruno Haible  <bruno@clisp.org>
26482
26483         strnlen: Fix a C++ test error on MacOS X and Solaris.
26484         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26485         the function is not declared.
26486         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26487         Simon Josefsson.
26488
26489 2010-04-24  Bruno Haible  <bruno@clisp.org>
26490
26491         Avoid a gcc warning.
26492         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26493         of correct type for %08lx directive.
26494         Reported by Eric Blake.
26495
26496 2010-04-24  Bruno Haible  <bruno@clisp.org>
26497
26498         vasnprintf: Correct errno value in case of out-of-memory.
26499         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26500         or sprintf. Use the errno value from SNPRINTF or sprintf.
26501         Reported by Ian Beckwith <ianb@erislabs.net>.
26502
26503 2010-04-24  Bruno Haible  <bruno@clisp.org>
26504
26505         ansi-c++-opt: Find correct compiler when cross-compiling.
26506         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26507         AC_CHECK_PROGS.
26508         Reported by Simon Josefsson.
26509
26510 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26511
26512         vc-list-files: Add support for subversion
26513         * build-aux/vc-list-files: Use "svn list" to generate the list of
26514         files controlled by subversion.
26515
26516 2010-04-23  Jim Meyering  <meyering@redhat.com>
26517
26518         vc-list-files tests: convert to use init.sh
26519         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26520         path_prepend_.
26521         Use Exit, not exit.
26522         Use skip_ rather than open coding it.
26523         Remove trap set-up and compare definitions.
26524         * tests/test-vc-list-files-git.sh: Likewise.
26525         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26526
26527 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26528
26529         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26530         backup files.
26531
26532 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26533
26534         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26535
26536 2010-04-20  Eric Blake  <eblake@redhat.com>
26537
26538         tests: be robust to ignored SIGPIPE
26539         * tests/test-select-in.sh: Consume all output.
26540         * tests/test-lseek.sh: Check correct exit status, while avoiding
26541         EPIPE.
26542
26543 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26544             Bruno Haible  <bruno@clisp.org>
26545
26546         visibility: Don't use -fvisibility if it leads to a warning.
26547         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26548         yes, don't pretend that visibility works if it leads to a warning.
26549         Reported by Mike Gran <spk121@yahoo.com>.
26550
26551 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26552
26553         * build-aux/bootstrap: Use "git -h" for testing for supported options
26554         instead of "git --help".  The short-form option only shows a summary,
26555         and doesn't layout the full man page.  Grep for the full option name
26556         in the summary, too.
26557
26558 2010-04-19  Bruno Haible  <bruno@clisp.org>
26559
26560         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26561         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26562         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26563         mention of RELOCATABLE_STRIP.
26564         Reported by Sylvain Beucler <beuc@beuc.net>.
26565
26566 2010-04-19  Bruno Haible  <bruno@clisp.org>
26567
26568         * lib/diffseq.h: Fix typo in comment.
26569         Reported by Eric Blake.
26570
26571 2010-04-19  Bruno Haible  <bruno@clisp.org>
26572
26573         ioctl: Move autoconf macro to a .m4 file.
26574         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26575         * modules/ioctl (Files): Add it.
26576         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26577         Reported by Ian Beckwith <ianb@erislabs.net>.
26578
26579 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26580             Bruno Haible  <bruno@clisp.org>
26581
26582         diffseq: Accommodate use-case with abstract arrays.
26583         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26584         is not defined.
26585         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26586         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26587
26588 2010-04-18  Bruno Haible  <bruno@clisp.org>
26589
26590         * doc/posix-headers/stdbool.texi: More precise wording.
26591
26592 2010-04-17  Jim Meyering  <meyering@redhat.com>
26593
26594         maint.mk: use gnu-style indentation in an embedded perl script
26595         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26596         Rename variable: s/two/last_two_bytes/
26597
26598 2010-04-16  Eric Blake  <eblake@redhat.com>
26599
26600         test-stdbool: skip test that fails with Solaris CC
26601         * tests/test-stdbool.c (f): Skip test that causes compilation
26602         error under buggy C++ compiler.
26603         * lib/stdbool.in.h: Document the limitation.
26604         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26605
26606         setenv: allow compilation with C++
26607         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26608         register keyword.
26609
26610         stdint: allow test to pass with C++
26611         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26612
26613         getopt: allow compilation with C++
26614         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26615         struct.
26616         * lib/getopt.c (_getopt_internal_r): Use correct type.
26617         Reported by Dagobert Michelson, via Joel E. Denny.
26618
26619 2010-04-16  Bruno Haible  <bruno@clisp.org>
26620
26621         Override netdb.h always.
26622         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26623         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26624         Reported by Ludovic Courtès <ludo@gnu.org>.
26625
26626 2010-04-15  Bruno Haible  <bruno@clisp.org>
26627
26628         openpty: Fix mistake from 2010-03-21.
26629         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26630         Reported by Simon Josefsson.
26631
26632 2010-04-15  Eric Blake  <eblake@redhat.com>
26633
26634         test-forkpty: fix expected signature
26635         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26636         Reported by Simon Josefsson.
26637
26638 2010-04-15  Jim Meyering  <meyering@redhat.com>
26639
26640         maint.mk: texinfo_suffix_re_: correct the default regexp
26641         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26642
26643         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26644         make it configurable via texinfo_suffix_re_.
26645
26646 2010-04-14  Eric Blake  <eblake@redhat.com>
26647
26648         strtok_r: relax license to LGPLv2+
26649         * modules/strtok_r (License): Relax license.
26650         Reported by Matthias Bolte.
26651
26652 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26653
26654         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26655         version 1.4.4 by default instead of requiring the libgcrypt
26656         version used during build.  This makes it possible to use the
26657         application with older but still binary compatible libgcrypt
26658         versions.
26659
26660 2010-04-13  Eric Blake  <eblake@redhat.com>
26661
26662         getopt-gnu: match recent glibc fixes and posix ruling
26663         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26664         '+' handling, when requesting extensions.
26665         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26666         'W;' handling.
26667         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26668         * doc/posix-functions/getopt.texi (getopt): Document this.
26669         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26670         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26671         Likewise.
26672
26673         getopt: merge bug fixes from glibc
26674         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26675         diagnostics.  Honor '+:' correctly.  Reject ';'.
26676
26677         getopt-posix: detect MacOS bug
26678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26679         optind when missing a required argument.
26680         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26681         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26682         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26683         Likewise.
26684
26685         getopt-posix: avoid spurious failure on Solaris
26686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26687         an indicator that setting optind=1 is sufficient for reset.
26688
26689         getopt-posix: avoid spurious failure on FreeBSD
26690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26691         in POSIX mode, since the m4 test uses it.
26692
26693         gnulib-tool: silence warning on BSD sh
26694         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26695
26696 2010-04-13  Jim Meyering  <meyering@redhat.com>
26697
26698         doc: users.txt: GNU patch now uses gnulib
26699         * users.txt: Add patch.
26700
26701 2010-04-12  Jim Meyering  <meyering@redhat.com>
26702
26703         maint.mk: generate more concise timing data for syntax-check rules
26704         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26705         " done" from each line that reports a syntax-check test duration.
26706
26707 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26708
26709         git-version-gen: use "git update-index..." rather than "git status"
26710         * build-aux/git-version-gen: Use git update-index --refresh, not
26711         "git status".  With some versions of git, "git status" would fail
26712         to update the index and result in an unwarranted "-dirty" suffix.
26713
26714 2010-04-11  Jim Meyering  <meyering@redhat.com>
26715
26716         openat: correct formatting (no semantic change)
26717         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26718         Suggested by Bruno Haible.
26719
26720 2010-04-11  Bruno Haible  <bruno@clisp.org>
26721
26722         Stricter declaration checking in testdirs.
26723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26724         If for_tests is true, augment AM_CPPFLAGS to define
26725         GNULIB_STRICT_CHECKING.
26726         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26727         GNULIB_STRICT_CHECKING is defined, verify that the function is
26728         declared.
26729
26730 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26731             Bruno Haible  <bruno@clisp.org>
26732
26733         libunistring: Improve configure output.
26734         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26735         Don't say "consider installing GNU libunistring" when checking again
26736         with libiconv.
26737
26738 2010-04-11  Bruno Haible  <bruno@clisp.org>
26739
26740         libunistring: Correct value of $LTLIBUNISTRING.
26741         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26742         correct the value of $LTLIBUNISTRING.
26743
26744 2010-04-11  Bruno Haible  <bruno@clisp.org>
26745
26746         havelib: Add static libraries to LIBS in the right order.
26747         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26748         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26749
26750 2010-04-11  Bruno Haible  <bruno@clisp.org>
26751
26752         libunistring: Detect libunistring also when it depends on libiconv.
26753         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26754         the second AC_LIB_HAVE_LINKFLAGS invocation.
26755
26756 2010-04-11  James Youngman  <jay@gnu.org>
26757
26758         close-stream: declare local scalars to be "const"
26759         * lib/close-stream.c (close_stream): Make boolean variables const
26760         to document the fact that we set but do not change them.
26761
26762 2010-04-11  Bruno Haible  <bruno@clisp.org>
26763
26764         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26765
26766 2010-04-11  Jim Meyering  <meyering@redhat.com>
26767
26768         maint.mk: don't include dist-check.mk
26769         * top/maint.mk: Remove bogus include directive.
26770
26771         maint.mk: improve empty-line-at-EOF check
26772         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26773         solution, rather than tail+Perl-based one.  The latter would read
26774         a few kilobytes from the end of each file, and did not handle empty
26775         files properly.
26776
26777         maint.mk: print the elapsed time for each syntax-check rule
26778         * top/maint.mk (sc_m_rules_): Save start time in a file.
26779         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26780         (local-check): Interpose the .z rules
26781
26782 2010-04-11  Jim Meyering  <meyering@redhat.com>
26783
26784         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26785         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26786         empty file with one that ends in an empty line.
26787
26788 2010-04-10  Bruno Haible  <bruno@clisp.org>
26789
26790         mkdir: Make it work on mingw64.
26791         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26792         * lib/mkdir.c: Update comment.
26793         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26794
26795 2010-04-10  Bruno Haible  <bruno@clisp.org>
26796
26797         Don't override improved macro from newer autoconf.
26798         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26799         autoconf >= 2.62.
26800         Reported by Joel E. Denny <jdenny@clemson.edu>.
26801
26802 2010-04-10  Jim Meyering  <meyering@redhat.com>
26803
26804         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26805         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26806
26807         maint.mk: correct a diagnostic
26808         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26809         in diagnostic; now use $prohibit.
26810
26811 2010-04-10  Bruno Haible  <address@hidden>
26812
26813         fchownat: Fix a C++ test error on Solaris 8.
26814         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26815         the function does not exist.
26816
26817 2010-04-10  Bruno Haible  <bruno@clisp.org>
26818
26819         vasnprintf: Add more tests.
26820         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26821         (test_function): Test converting an invalid wide string.
26822
26823         vasnprintf: Correct handling of unconvertible wide string arguments.
26824         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26825         VASNPRINTF.
26826         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26827         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26828         smaller than the expected maximum need for the directive. Set errno to
26829         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26830         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26831         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26832         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26833         * modules/vasnprintf (Files): Add m4/printf.m4.
26834         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26835
26836 2010-04-10  Bruno Haible  <bruno@clisp.org>
26837
26838         vasnprintf: Fix crash in %ls directive.
26839         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26840         string is passed as argument to %ls, with no precision and no width.
26841         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26842
26843 2010-04-10  Bruno Haible  <bruno@clisp.org>
26844
26845         vasnprintf: Fix multiple test failures on mingw.
26846         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26847         _snprintf, or snwprintf, not _snwprintf.
26848
26849 2010-04-10  Bruno Haible  <bruno@clisp.org>
26850
26851         write: Fix a C++ test error on mingw.
26852         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26853
26854 2010-04-10  Bruno Haible  <bruno@clisp.org>
26855
26856         vasnprintf test: Reduce code duplication.
26857         * tests/test-vasnprintf.c (test_function): New function, extracted from
26858         test_vasnprintf.
26859         (test_vasnprintf, test_asnprintf): Invoke it.
26860
26861 2010-04-10  Bruno Haible  <bruno@clisp.org>
26862
26863         strnlen: Fix warning in C++ mode on MacOS X.
26864         * lib/string.in.h (strnlen): Use the modern idiom.
26865         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26866         defining strnlen as a macro already in <config.h>.
26867         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26868         REPLACE_STRNLEN.
26869         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26870         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26871
26872 2010-04-08  James Youngman  <jay@gnu.org>
26873
26874         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26875         the example.
26876
26877 2010-04-09  Jim Meyering  <meyering@redhat.com>
26878
26879         maint.mk: print better diagnostic when there is no $(_hv_file)
26880         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26881         announce that when $(_hv_file) (aka help-version) does not exist.
26882
26883         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26884         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26885         not try to interpret its random input bytes.  Jarno Rajahalme reported
26886         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26887         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26888         (mktempd_): Likewise, just in case.
26889
26890         ftruncate: add two years to projected module removal date: 2012
26891         * m4/ftruncate.m4: Adjust comments.
26892
26893         ftruncate: mark module as obsolete; even MinGW provides it, now
26894         * modules/ftruncate (Status): Obsolete.
26895         (Notice): Say that.
26896         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26897         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26898
26899 2010-04-08  Bruno Haible  <bruno@clisp.org>
26900
26901         Fix side effects from tests-related modules.
26902         * modules/dprintf-posix (Comment): New section.
26903         * modules/fprintf-posix (Comment): Likewise.
26904         * modules/obstack-printf-posix (Comment): Likewise.
26905         * modules/printf-posix (Comment): Likewise.
26906         * modules/snprintf-posix (Comment): Likewise.
26907         * modules/sprintf-posix (Comment): Likewise.
26908         * modules/vasnprintf-posix (Comment): Likewise.
26909         * modules/vasprintf-posix (Comment): Likewise.
26910         * modules/vdprintf-posix (Comment): Likewise.
26911         * modules/vfprintf-posix (Comment): Likewise.
26912         * modules/vprintf-posix (Comment): Likewise.
26913         * modules/vsnprintf-posix (Comment): Likewise.
26914         * modules/vsprintf-posix (Comment): Likewise.
26915         * modules/xprintf-posix (Comment): Likewise.
26916         * modules/xvasprintf-posix (Comment): Likewise.
26917         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26918         * modules/floorf-tests (Depends-on): Likewise.
26919         * modules/round-tests (Depends-on): Likewise.
26920         * modules/roundf-tests (Depends-on): Likewise.
26921         * modules/trunc-tests (Depends-on): Likewise.
26922         * modules/truncf-tests (Depends-on): Likewise.
26923         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26924         'fprintf-posix' module is not present.
26925         * tests/test-floorf2.c (check): Likewise.
26926         * tests/test-trunc2.c (check): Likewise.
26927         * tests/test-truncf2.c (check): Likewise.
26928         * tests/test-round2.c (equal): Likewise.
26929         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26930
26931 2010-04-07  Karl Berry  <karl@gnu.org>
26932
26933         * config/srclist.txt,
26934         * config/srclistvars.sh,
26935         * config/srclist-update: doc fixes.
26936
26937 2010-04-07  Jim Meyering  <meyering@redhat.com>
26938
26939         maint.mk: add a PATH crosschecking syntax-check rule
26940         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26941         Useful if you use a test like the one in help-version (coreutils,
26942         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26943         printed by prog --version.
26944
26945 2010-04-06  Bruno Haible  <bruno@clisp.org>
26946
26947         Fix link error on mingw.
26948         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26949         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26950
26951 2010-04-06  Bruno Haible  <bruno@clisp.org>
26952
26953         Assume rmdir exists.
26954         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26955
26956 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26957
26958         doc: update users.txt
26959         * users.txt: Add gcal.
26960
26961 2010-04-06  Jim Meyering  <meyering@redhat.com>
26962
26963         init.sh: simply unset TMPDIR rather than risking env -i
26964         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26965         although it probably works fine on all Unix-based systems, some
26966         systems (Cygwin?) cannot tolerate a totally cleared environment.
26967         Suggestion from Eric Blake.
26968
26969 2010-04-06  Jim Meyering  <meyering@redhat.com>
26970
26971         init.sh: portability fix: use env's POSIX-specified -i option not -u
26972         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26973         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26974
26975 2010-04-05  Bruno Haible  <bruno@clisp.org>
26976
26977         btowc: Work around Cygwin 1.7.2 bug.
26978         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26979         does not map NUL to 0.
26980         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26981
26982 2010-04-05  Bruno Haible  <bruno@clisp.org>
26983
26984         Make the multithread modules work on Cygwin 1.7.2.
26985         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26986         imported symbols can be declared weak, so that it returns "no" on
26987         Cygwin 1.7.2.
26988
26989 2010-04-05  Bruno Haible  <bruno@clisp.org>
26990
26991         Use the module 'strncat'.
26992         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26993
26994         Tests for module 'strncat'.
26995         * modules/strncat-tests: New file.
26996         * tests/test-strncat.c: New file.
26997
26998         New module 'strncat'.
26999         * lib/string.in.h (strncat): New declaration.
27000         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
27001         * m4/strncat.m4: New file, based on m4/memchr.m4.
27002         * modules/strncat: New file.
27003         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
27004         is declared.
27005         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
27006         REPLACE_STRNCAT.
27007         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
27008         REPLACE_STRNCAT.
27009         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
27010         module.
27011         * tests/test-string-c++.cc: Check signature of strncat.
27012
27013 2010-04-05  Jim Meyering  <meyering@redhat.com>
27014
27015         xstrtoumax-tests: convert to use init.sh
27016         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
27017         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27018         Use Exit, not exit.
27019         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27020
27021         xstrtoimax-tests: convert to use init.sh
27022         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
27023         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27024         Use Exit, not exit.
27025         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27026
27027 2010-04-05  Bruno Haible  <bruno@clisp.org>
27028
27029         sys_socket: Avoid #define replacements in C++ mode.
27030         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
27031         warning to the function if possible, rather than #defining the symbol
27032         to a dysfunctional alias.
27033
27034 2010-04-05  Bruno Haible  <bruno@clisp.org>
27035
27036         fseeko: Fix C++ test error on mingw.
27037         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
27038         gl_FUNC_FSEEKO.
27039         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
27040         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
27041         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
27042         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
27043
27044 2010-04-05  Bruno Haible  <bruno@clisp.org>
27045
27046         duplocale: Improve test output.
27047         * tests/test-duplocale.c (main): Print reason for skipped test.
27048
27049 2010-04-05  Bruno Haible  <bruno@clisp.org>
27050
27051         Assume rmdir exists.
27052         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
27053         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
27054
27055 2010-04-05  Bruno Haible  <bruno@clisp.org>
27056
27057         Fix link error on Solaris 8 with cc.
27058         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
27059
27060 2010-04-05  Bruno Haible  <bruno@clisp.org>
27061
27062         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27063         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
27064
27065 2010-04-05  Bruno Haible  <bruno@clisp.org>
27066
27067         vasprintf: Update documentation.
27068         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
27069
27070 2010-04-05  Bruno Haible  <bruno@clisp.org>
27071
27072         ptsname: Improve test.
27073         * tests/test-ptsname.c (main): Also try the various master names of BSD
27074         systems.
27075
27076 2010-04-05  Bruno Haible  <bruno@clisp.org>
27077
27078         memchr: Avoid a possible C++ test error.
27079         * lib/string.in.h (memchr): Provide declaration if function is missing.
27080         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
27081         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
27082         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
27083         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
27084
27085 2010-04-05  Bruno Haible  <bruno@clisp.org>
27086
27087         strtok_r: Improve idiom.
27088         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
27089         AC_LIBOBJ is used.
27090
27091 2010-04-05  Bruno Haible  <bruno@clisp.org>
27092
27093         strdup: Improve idiom.
27094         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
27095         AC_LIBOBJ is used.
27096         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
27097         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
27098         when AC_LIBOBJ is used.
27099
27100 2010-04-05  Bruno Haible  <bruno@clisp.org>
27101
27102         mbsinit, mbrtowc, wcrtomb: Improve idioms.
27103         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
27104         don't set REPLACE_MBSINIT to 1.
27105         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
27106         don't set REPLACE_MBRTOWC to 1.
27107         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
27108         exist, don't set REPLACE_MBSRTOWCS to 1.
27109         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
27110         exist, don't set REPLACE_MBSNRTOWCS to 1.
27111         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
27112         don't set REPLACE_WCRTOMB to 1.
27113         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
27114         exist, don't set REPLACE_WCSRTOMBS to 1.
27115         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
27116         exist, don't set REPLACE_WCSNRTOMBS to 1.
27117
27118 2010-04-05  Bruno Haible  <bruno@clisp.org>
27119
27120         ldexpl: Improve idiom.
27121         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
27122         make sure to set HAVE_DECL_LDEXPL to 0.
27123
27124 2010-04-05  Jim Meyering  <meyering@redhat.com>
27125
27126         xstrtol-tests: convert to use init.sh
27127         * modules/xstrtol-tests (Files): Add tests/init.sh.
27128         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27129         Use Exit, not exit.
27130         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27131
27132         atexit-tests: convert to use init.sh
27133         * modules/atexit-tests (Files): Add tests/init.sh.
27134         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
27135         Use Exit, not exit.
27136         Remove uses of $EXEEXT and "./" to run a program in the current dir.
27137
27138         init.sh: fix typo
27139         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
27140
27141         init.sh: make it easier for a test script to write to the tty, ...
27142         when using automake's parallel-tests mode.
27143         * tests/init.sh (stderr_fileno_): Define overridable variable.
27144         (warn_): New function, to use it.
27145         (fail_, skip_, framework_failure_): Use warn_.
27146
27147 2010-04-04  Bruno Haible  <bruno@clisp.org>
27148
27149         btowc: Avoid warning.
27150         * lib/btowc.c: Include <stdlib.h>.
27151         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
27152
27153 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27154             Bruno Haible  <bruno@clisp.org>
27155
27156         wchar: Port to NetBSD 1.5.
27157         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
27158         * lib/wctype.in.h (WEOF): Likewise.
27159
27160 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
27161             Bruno Haible  <bruno@clisp.org>
27162
27163         Port extended stdio to NetBSD 1.5.
27164         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27165         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27166         older.
27167
27168 2010-04-04  Bruno Haible  <bruno@clisp.org>
27169
27170         string: Remove unused substitution.
27171         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27172         HAVE_DECL_STRERROR.
27173         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27174
27175 2010-04-04  Bruno Haible  <bruno@clisp.org>
27176
27177         strtod: Avoid a possible C++ test error.
27178         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27179         set REPLACE_STRTOD.
27180
27181 2010-04-04  Bruno Haible  <bruno@clisp.org>
27182
27183         strerror: Update documentation.
27184         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27185
27186 2010-04-04  Bruno Haible  <bruno@clisp.org>
27187
27188         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27189         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27190         _GL_CXXALIAS_SYS_CAST.
27191
27192 2010-04-04  Bruno Haible  <bruno@clisp.org>
27193
27194         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27195         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27196         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27197         REPLACE_FREXPL to 1.
27198         * doc/posix-functions/frexpl.texi: Update documentation.
27199
27200 2010-04-04  Bruno Haible  <bruno@clisp.org>
27201
27202         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27203         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27204
27205 2010-04-04  Bruno Haible  <bruno@clisp.org>
27206
27207         Implement nanosleep for native Windows.
27208         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27209
27210 2010-04-04  Bruno Haible  <bruno@clisp.org>
27211
27212         math: Fix some C++ test errors on Solaris 8.
27213         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27214
27215 2010-04-04  Bruno Haible  <bruno@clisp.org>
27216
27217         math: Fix some C++ test errors on Cygwin.
27218         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27219         truncl): Provide declaration if the system does not have it.
27220         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27221         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27222         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27223         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27224         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27225         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27226         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27227         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27228         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27229         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27230         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27231         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27232         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27233         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27234         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27235         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27236         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27237         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27238         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27239         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27240         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27241         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27242
27243 2010-04-04  Bruno Haible  <bruno@clisp.org>
27244
27245         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27246         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27247         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27248         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27249         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27250         * m4/isinf.m4 (gl_ISINF): Likewise.
27251         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27252
27253 2010-04-04  Bruno Haible  <bruno@clisp.org>
27254
27255         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27256         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27257
27258 2010-04-04  Bruno Haible  <bruno@clisp.org>
27259
27260         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27261         * modules/tmpfile (configure.ac): Update.
27262
27263         tmpfile: Fix C++ test error on mingw.
27264         * lib/stdio.in.h (tmpfile): New declaration.
27265         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27266         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27267         * modules/tmpfile (Depends-on): Add stdio.
27268         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27269         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27270         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27271         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27272         REPLACE_TMPFILE.
27273         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27274
27275 2010-04-04  Bruno Haible  <bruno@clisp.org>
27276
27277         ioctl: Fix C++ test error on mingw.
27278         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27279         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27280         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27281
27282 2010-04-03  Bruno Haible  <bruno@clisp.org>
27283
27284         wcwidth: Fix C++ test error on mingw.
27285         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27287         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27288
27289 2010-04-03  Bruno Haible  <bruno@clisp.org>
27290
27291         nanosleep: Fix C++ test error on mingw.
27292         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27293         * lib/time.in.h (nanosleep): Use modern idiom.
27294         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27295         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27296         REPLACE_NANOSLEEP to 1.
27297         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27298         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27299
27300 2010-04-03  Bruno Haible  <bruno@clisp.org>
27301
27302         strptime: Fix C++ test error on mingw.
27303         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27304         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27305         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27306         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27307         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27308         not REPLACE_STRPTIME.
27309         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27310         REPLACE_STRPTIME.
27311
27312 2010-04-03  Bruno Haible  <bruno@clisp.org>
27313
27314         timegm: Fix C++ test error on mingw.
27315         * lib/time.in.h (timegm): Use modern idiom.
27316         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27317         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27318         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27319         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27320
27321 2010-04-03  Bruno Haible  <bruno@clisp.org>
27322
27323         timegm: Assume declaration if function exists.
27324         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27325         if it exists. Don't clobber ac_cv_func_timegm.
27326
27327 2010-04-03  Bruno Haible  <bruno@clisp.org>
27328
27329         time_r: Fix C++ test error on mingw.
27330         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27331         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27332         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27333         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27334         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27335
27336 2010-04-03  Bruno Haible  <bruno@clisp.org>
27337
27338         time_r: Minor updates.
27339         * modules/time_r (Description): Mention the provided functions.
27340         * lib/time_r.c: Don't include <string.h>.
27341         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27342         * doc/posix-functions/localtime_r.texi: Likewise.
27343
27344 2010-04-03  Bruno Haible  <bruno@clisp.org>
27345
27346         time: Fix regression introduced on 2010-03-08.
27347         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27348         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27349
27350 2010-04-03  Jim Meyering  <meyering@redhat.com>
27351
27352         maint.mk: don't silently disable project-specific syntax-check rules
27353         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27354         that they need to convert their project-specific syntax-check rules
27355         to use the new _sc_search_regexp.
27356
27357 2010-04-03  Bruno Haible  <bruno@clisp.org>
27358
27359         fchdir: Fix regression introduced on 2010-03-08.
27360         * lib/unistd.in.h (fchdir): Fix declaration.
27361         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27363         REPLACE_FCHDIR.
27364         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27365         REPLACE_FCHDIR.
27366
27367 2010-04-03  Bruno Haible  <bruno@clisp.org>
27368
27369         getpagesize: Fix C++ test error on mingw.
27370         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27371         system does not declare the function.
27372         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27373         declared.
27374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27375         HAVE_DECL_GETPAGESIZE.
27376         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27377
27378 2010-04-03  Bruno Haible  <bruno@clisp.org>
27379
27380         stdio: Make C++ tests work on mingw.
27381         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27382         does not declare the function.
27383
27384 2010-04-03  Bruno Haible  <bruno@clisp.org>
27385
27386         ftello: Fix C++ test error on mingw.
27387         * lib/stdio.in.h (ftello): Use modern idiom.
27388         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27389         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27390         is missing and that it needs to be replaced.
27391         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27393         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27394
27395 2010-04-03  Bruno Haible  <bruno@clisp.org>
27396
27397         fseeko: Fix C++ test error on mingw.
27398         * lib/stdio.in.h (fseeko): Use modern idiom.
27399         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27400         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27401         is missing and that it needs to be replaced.
27402         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27404         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27405
27406 2010-04-03  Bruno Haible  <bruno@clisp.org>
27407
27408         mkstemp: Fix C++ test error on mingw.
27409         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27410         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27411         function is missing and that it needs to be replaced.
27412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27413         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27414
27415 2010-04-03  Bruno Haible  <bruno@clisp.org>
27416
27417         stpncpy: Fix C++ test error on mingw.
27418         * lib/string.in.h (stpncpy): Use modern idiom.
27419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27420         function is missing and that it needs to be replaced.
27421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27422         REPLACE_STPNCPY.
27423         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27424
27425 2010-04-03  Bruno Haible  <bruno@clisp.org>
27426
27427         sys_stat: Fix C++ test error on mingw.
27428         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27429         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27430
27431 2010-04-03  Bruno Haible  <bruno@clisp.org>
27432
27433         pty: Update doc.
27434         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27435
27436 2010-04-03  Bruno Haible  <bruno@clisp.org>
27437
27438         unistd: Fix C++ test error on mingw.
27439         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27440
27441 2010-04-03  Bruno Haible  <bruno@clisp.org>
27442
27443         Update doc regarding mingw.
27444         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27445         * doc/glibc-functions/login_tty.texi: Likewise.
27446         * doc/glibc-functions/forkpty.texi: Likewise.
27447
27448 2010-04-03  Bruno Haible  <bruno@clisp.org>
27449
27450         stdlib: Avoid compilation failure of c-strtold on mingw.
27451         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27452
27453 2010-04-03  Bruno Haible  <bruno@clisp.org>
27454
27455         locale: Make C++ tests work on Cygwin and mingw.
27456         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27457         cannot provide the function.
27458         Reported by Simon Josefsson.
27459
27460 2010-04-03  Bruno Haible  <bruno@clisp.org>
27461
27462         localename: Port to MacOS X 10.6.
27463         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27464         memory layout of the locales in MacOS X 10.6 as well.
27465         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27466
27467 2010-04-02  Bruno Haible  <bruno@clisp.org>
27468
27469         gnulib-tool: Ensure that long-running tests are executed last.
27470         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27471         running tests after the one for the other tests.
27472
27473 2010-04-02  Bruno Haible  <bruno@clisp.org>
27474
27475         gnulib-tool: Ensure the tests in the main directory are executed first.
27476         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27477         start with the current directory.
27478
27479 2010-04-02  Bruno Haible  <bruno@clisp.org>
27480
27481         Tests for module 'havelib', moved here from GNU gettext.
27482         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27483         modifications.
27484         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27485         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27486         with modifications.
27487         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27488         modifications.
27489         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27490         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27491         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27492         with modifications.
27493         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27494         with modifications.
27495         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27496         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27497         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27498         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27499         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27500         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27501         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27502         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27503         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27504         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27505         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27506         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27507         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27508         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27509         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27510         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27511         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27512         with modifications.
27513         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27514         with modifications.
27515         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27516         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27517         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27518         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27519         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27520         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27521         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27522         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27523         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27524         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27525         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27526         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27527         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27528         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27529         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27530         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27531         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27532         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27533         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27534         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27535         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27536         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27537         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27538         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27539         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27540         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27541         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27542         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27543         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27544         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27545         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27546         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27547         * tests/havelib/rpathx/rpathx.c: New file, from
27548         gettext/autoconf-lib-link.
27549         * tests/havelib/rpathx/Makefile.am: New file, from
27550         gettext/autoconf-lib-link.
27551         * tests/havelib/rpathx/configure.ac: New file, from
27552         gettext/autoconf-lib-link with modifications.
27553         * tests/havelib/rpathy/rpathy.c: New file, from
27554         gettext/autoconf-lib-link.
27555         * tests/havelib/rpathy/Makefile.am: New file, from
27556         gettext/autoconf-lib-link.
27557         * tests/havelib/rpathy/configure.ac: New file, from
27558         gettext/autoconf-lib-link with modifications.
27559         * tests/havelib/rpathz/rpathz.c: New file, from
27560         gettext/autoconf-lib-link.
27561         * tests/havelib/rpathz/Makefile.am: New file, from
27562         gettext/autoconf-lib-link.
27563         * tests/havelib/rpathz/configure.ac: New file, from
27564         gettext/autoconf-lib-link with modifications.
27565         * tests/havelib/rpathlx/usex.c: New file, from
27566         gettext/autoconf-lib-link.
27567         * tests/havelib/rpathlx/Makefile.am: New file, from
27568         gettext/autoconf-lib-link.
27569         * tests/havelib/rpathlx/configure.ac: New file, from
27570         gettext/autoconf-lib-link with modifications.
27571         * tests/havelib/rpathly/usey.c: New file, from
27572         gettext/autoconf-lib-link.
27573         * tests/havelib/rpathly/Makefile.am: New file, from
27574         gettext/autoconf-lib-link.
27575         * tests/havelib/rpathly/configure.ac: New file, from
27576         gettext/autoconf-lib-link with modifications.
27577         * tests/havelib/rpathlz/usez.c: New file, from
27578         gettext/autoconf-lib-link.
27579         * tests/havelib/rpathlz/Makefile.am: New file, from
27580         gettext/autoconf-lib-link.
27581         * tests/havelib/rpathlz/configure.ac: New file, from
27582         gettext/autoconf-lib-link with modifications.
27583         * tests/havelib/rpathlyx/usey.c: New file, from
27584         gettext/autoconf-lib-link.
27585         * tests/havelib/rpathlyx/Makefile.am: New file, from
27586         gettext/autoconf-lib-link.
27587         * tests/havelib/rpathlyx/configure.ac: New file, from
27588         gettext/autoconf-lib-link with modifications.
27589         * tests/havelib/rpathlzyx/usez.c: New file, from
27590         gettext/autoconf-lib-link.
27591         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27592         gettext/autoconf-lib-link.
27593         * tests/havelib/rpathlzyx/configure.ac: New file, from
27594         gettext/autoconf-lib-link with modifications.
27595         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27596         with modifications.
27597
27598 2010-04-02  Bruno Haible  <bruno@clisp.org>
27599
27600         gnulib-tool: Create distributed built sources also for the tests.
27601         * gnulib-tool (func_create_testdir): Also generate distributed built
27602         sources in the tests directory.
27603
27604 2010-04-02  Bruno Haible  <bruno@clisp.org>
27605
27606         gnulib-tool: Obey user's environment variables.
27607         * gnulib-tool (func_create_testdir): When creating built sources,
27608         respect the environment variables for autoconf, automake, etc. given by
27609         the user.
27610
27611 2010-04-02  Bruno Haible  <bruno@clisp.org>
27612
27613         gnulib-tool: Provide the value of --m4-base to modules.
27614         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27615         of gl_m4_base.
27616
27617 2010-04-02  Eric Blake  <eblake@redhat.com>
27618
27619         maint.mk: fix some fallout
27620         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27621         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27622
27623 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27624
27625         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27626         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27627         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27628         (sc_cast_of_x_alloc_return_value): Likewise.
27629         (sc_cast_of_alloca_return_value): Likewise.
27630         (sc_space_tab): Likewise.
27631         (sc_prohibit_atoi_atof): Likewise.
27632         (sc_prohibit_magic_number_exit): Likewise.
27633         (sc_error_exit_success): Likewise.
27634         (sc_file_system): Likewise.
27635         (sc_prohibit_have_config_h): Likewise.
27636         (sc_require_config_h): Likewise.
27637         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27638         (sc_obsolete_symbols): Likewise.
27639         (sc_changelog): Likewise.
27640         (sc_program_name): Likewise.
27641         (sc_the_the): Likewise.
27642         (sc_trailing_blank): Likewise.
27643         (sc_two_space_separator_in_usage): Likewise.
27644         (sc_useless_cpp_parens): Likewise.
27645         (sc_GPL_version): Likewise.
27646         (sc_GFDL_version): Likewise.
27647         (sc_texinfo_acronym): Likewise.
27648         (sc_prohibit_cvs_keyword): Likewise.
27649         (sc_prohibit_stat_st_blocks): Likewise.
27650         (sc_prohibit_S_IS_definition): Likewise.
27651         (sc_redundant_const): Likewise.
27652         (sc_makefile_TAB_only_indentation): Likewise.
27653         (sc_m4_quote_check): Likewise.
27654         (sc_makefile_path_separator_check): Likewise.
27655         (sc_copyright_check): Likewise.
27656         (sc_Wundef_boolean): Likewise.
27657         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27658
27659         maint.mk: match 0 or more whitespace-before-function-call '('
27660         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27661         that have zero or two-and-more spaces between the function name
27662         and the open parenthesis.
27663         (sc_error_message_warn_fatal): Likewise.
27664         (sc_error_message_uppercase): Likewise.
27665         (sc_error_message_period): Likewise.
27666
27667 2010-03-31  Eric Blake  <eblake@redhat.com>
27668
27669         maint.mk: check for [ as well as test
27670         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27671         Based on a libvirt report by Matthias Bolte.
27672
27673         gnumakefile: don't squelch _version output
27674         * top/GNUmakefile (_version): Create one-shot dependency rather
27675         than using $(shell) when version must be regenerated.
27676         (_autoreconf): Run verbosely, by default.
27677
27678         sys_time: avoid compiler warnings
27679         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27680         unconditional, fixing regression from 2010-03-29.
27681         Reported by Simon Josefsson.
27682
27683 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27684
27685         maint.mk: s/_header_without_use/_sc_header_without_use/
27686         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27687         (sc_prohibit_assert_without_use): Use the new name.
27688         (sc_prohibit_close_stream_without_use): Likewise.
27689         (sc_prohibit_getopt_without_use): Likewise.
27690         (sc_prohibit_quotearg_without_use): Likewise.
27691         (sc_prohibit_quote_without_use): Likewise.
27692         (sc_prohibit_long_options_without_use): Likewise.
27693         (sc_prohibit_inttostr_without_use): Likewise.
27694         (sc_prohibit_ignore_value_without_use): Likewise.
27695         (sc_prohibit_error_without_use): Likewise.
27696         (sc_prohibit_xalloc_without_use): Likewise.
27697         (sc_prohibit_hash_without_use): Likewise.
27698         (sc_prohibit_hash_pjw_without_use): Likewise.
27699         (sc_prohibit_safe_read_without_use): Likewise.
27700         (sc_prohibit_argmatch_without_use): Likewise.
27701         (sc_prohibit_canonicalize_without_use): Likewise.
27702         (sc_prohibit_root_dev_ino_without_use): Likewise.
27703         (sc_prohibit_openat_without_use): Likewise.
27704         (sc_prohibit_c_ctype_without_use): Likewise.
27705         (sc_prohibit_signal_without_use): Likewise.
27706         (sc_prohibit_intprops_without_use): Likewise.
27707
27708 2010-03-30  Eric Blake  <eblake@redhat.com>
27709
27710         maint: improve module indicators
27711         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27712         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27713         columns, and avoid extra macro expansion.
27714
27715         fdopendir: work around FreeBSD bug
27716         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27717         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27718         * modules/dirent (Makefile.am): Substitute it.
27719         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27720         declaration.
27721         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27722         fix.
27723         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27724
27725 2010-03-29  Bruno Haible  <bruno@clisp.org>
27726
27727         Emit #pragma system_header after the inclusion guard, not before.
27728         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27729         guard that spans the entire file, not before. This enables an
27730         optimization in GCC's preprocessor.
27731         * lib/ctype.in.h: Likewise.
27732         * lib/dirent.in.h: Likewise.
27733         * lib/errno.in.h: Likewise.
27734         * lib/float.in.h: Likewise.
27735         * lib/getopt.in.h: Likewise.
27736         * lib/iconv.in.h: Likewise.
27737         * lib/langinfo.in.h: Likewise.
27738         * lib/locale.in.h: Likewise.
27739         * lib/math.in.h: Likewise.
27740         * lib/netdb.in.h: Likewise.
27741         * lib/netinet_in.in.h: Likewise.
27742         * lib/pty.in.h: Likewise.
27743         * lib/sched.in.h: Likewise.
27744         * lib/se-selinux.in.h: Likewise.
27745         * lib/search.in.h: Likewise.
27746         * lib/spawn.in.h: Likewise.
27747         * lib/stdarg.in.h: Likewise.
27748         * lib/stdint.in.h: Likewise.
27749         * lib/string.in.h: Likewise.
27750         * lib/strings.in.h: Likewise.
27751         * lib/sys_file.in.h: Likewise.
27752         * lib/sys_ioctl.in.h: Likewise.
27753         * lib/sys_time.in.h: Likewise.
27754         * lib/sys_times.in.h: Likewise.
27755         * lib/sys_utsname.in.h: Likewise.
27756         * lib/sys_wait.in.h: Likewise.
27757         * lib/sysexits.in.h: Likewise.
27758         * lib/wctype.in.h: Likewise.
27759
27760 2010-03-28  James Youngman  <jay@gnu.org>
27761
27762         save-cwd: don't leak a file descriptor when the caller execs.
27763         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27764         saved file descriptor.
27765         * modules/save-cwd (Depends-on): Depend on cloexec.
27766
27767 2010-03-29  Bruno Haible  <bruno@clisp.org>
27768
27769         Remove vestiges of fts-lgpl module.
27770         * lib/fts_.h: Assume GNULIB_FTS is 1.
27771         * lib/fts.c: Likewise.
27772         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27773
27774 2010-03-28  Bruno Haible  <bruno@clisp.org>
27775
27776         Fix definition of tests witness macro.
27777         * gnulib-tool (func_import): Fix definition of witness macro.
27778
27779 2010-03-28  Bruno Haible  <bruno@clisp.org>
27780
27781         Fix ioctl's protoype on glibc systems.
27782         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27783         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27784         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27785         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27786         signature. If not, arrange to replace the ioctl function.
27787         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27788         REPLACE_IOCTL.
27789         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27790         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27791         Reported by Ludovic Courtès <ludo@gnu.org>.
27792
27793 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27794
27795         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27796         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27797         made it so grep -r --include=GLOB* ... did not work.
27798
27799 2010-03-26  Jim Meyering  <meyering@redhat.com>
27800             Eric Blake  <eblake@redhat.com>
27801
27802         maint.mk: prohibit use of test's -o and -a operators
27803         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27804
27805 2010-03-28  Bruno Haible  <bruno@clisp.org>
27806
27807         Remove unused GNULIB_XYZ macro definitions.
27808         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27809         invocation.
27810
27811 2010-03-28  Bruno Haible  <bruno@clisp.org>
27812
27813         Mark privileged tests modules.
27814         * modules/idpriv-drop-tests (Status): New section.
27815         * modules/idpriv-droptemp-tests (Status): New section.
27816
27817 2010-03-28  Bruno Haible  <bruno@clisp.org>
27818
27819         Split C++ tests into separate tests modules.
27820         * modules/dirent-c++-tests: New file, extracted from
27821         modules/dirent-tests.
27822         * modules/dirent-tests: Depend on it.
27823         * modules/fcntl-h-c++-tests: New file, extracted from
27824         modules/fcntl-h-tests.
27825         * modules/fcntl-h-tests: Depend on it.
27826         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27827         * modules/glob-tests: Depend on it.
27828         * modules/iconv-h-c++-tests: New file, extracted from
27829         modules/iconv-h-tests.
27830         * modules/iconv-h-tests: Depend on it.
27831         * modules/langinfo-c++-tests: New file, extracted from
27832         modules/langinfo-tests.
27833         * modules/langinfo-tests: Depend on it.
27834         * modules/locale-c++-tests: New file, extracted from
27835         modules/locale-tests.
27836         * modules/locale-tests: Depend on it.
27837         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27838         * modules/math-tests: Depend on it.
27839         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27840         * modules/pty-tests: Depend on it.
27841         * modules/search-c++-tests: New file, extracted from
27842         modules/search-tests.
27843         * modules/search-tests: Depend on it.
27844         * modules/signal-c++-tests: New file, extracted from
27845         modules/signal-tests.
27846         * modules/signal-tests: Depend on it.
27847         * modules/spawn-c++-tests: New file, extracted from
27848         modules/spawn-tests.
27849         * modules/spawn-tests: Depend on it.
27850         * modules/stdio-c++-tests: New file, extracted from
27851         modules/stdio-tests.
27852         * modules/stdio-tests: Depend on it.
27853         * modules/stdlib-c++-tests: New file, extracted from
27854         modules/stdlib-tests.
27855         * modules/stdlib-tests: Depend on it.
27856         * modules/string-c++-tests: New file, extracted from
27857         modules/string-tests.
27858         * modules/string-tests: Depend on it.
27859         * modules/sys_ioctl-c++-tests: New file, extracted from
27860         modules/sys_ioctl-tests.
27861         * modules/sys_ioctl-tests: Depend on it.
27862         * modules/sys_select-c++-tests: New file, extracted from
27863         modules/sys_select-tests.
27864         * modules/sys_select-tests: Depend on it.
27865         * modules/sys_socket-c++-tests: New file, extracted from
27866         modules/sys_socket-tests.
27867         * modules/sys_socket-tests: Depend on it.
27868         * modules/sys_stat-c++-tests: New file, extracted from
27869         modules/sys_stat-tests.
27870         * modules/sys_stat-tests: Depend on it.
27871         * modules/sys_time-c++-tests: New file, extracted from
27872         modules/sys_time-tests.
27873         * modules/sys_time-tests: Depend on it.
27874         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27875         * modules/time-tests: Depend on it.
27876         * modules/unistd-c++-tests: New file, extracted from
27877         modules/unistd-tests.
27878         * modules/unistd-tests: Depend on it.
27879         * modules/wchar-c++-tests: New file, extracted from
27880         modules/wchar-tests.
27881         * modules/wchar-tests: Depend on it.
27882         * modules/wctype-c++-tests: New file, extracted from
27883         modules/wctype-tests.
27884         * modules/wctype-tests: Depend on it.
27885         Reported by Simon Josefsson.
27886
27887 2010-03-28  Bruno Haible  <bruno@clisp.org>
27888
27889         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27890         * gnulib-tool (func_exists_module): New function, extracted from
27891         func_verify_module.
27892         (func_verify_module): Use it.
27893         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27894         'foo' only if 'foo' exists.
27895         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27896         module.
27897
27898 2010-03-28  Bruno Haible  <bruno@clisp.org>
27899
27900         gnulib-tool: Add support for special categories of tests.
27901         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27902         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27903         (func_usage): Document them.
27904         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27905         inc_unportable_tests, inc_all_tests): New variables.
27906         (func_acceptable): Consider these variables.
27907         (func_modules_transitive_closure): Make it work when the 'Status' field
27908         consists of multiple words.
27909         (func_import): Store and restore the values of inc_cxx_tests,
27910         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27911         inc_all_tests in gnulib-comp.m4.
27912         (func_create_testdir): Set inc_all_tests to true.
27913         * doc/gnulib.texi (Extra tests modules): New section.
27914         Suggested by Jim Meyering.
27915
27916 2010-03-28  Bruno Haible  <bruno@clisp.org>
27917
27918         ansi-c++-opt: Allow turning off the C++ build by default.
27919         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27920         gl_CXX_CHOICE_DEFAULT_NO is defined.
27921         Requested by Eric Blake.
27922
27923 2010-03-28  Bruno Haible  <bruno@clisp.org>
27924
27925         unistd: Avoid #define replacements in C++ mode.
27926         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27927         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27928         setsockopt, shutdown, select): In C++, attach a warning to the function
27929         if possible, rather than #defining the symbol to a dysfunctional alias.
27930         Reported by John W. Eaton <jwe@gnu.org>.
27931
27932 2010-03-28  Bruno Haible  <bruno@clisp.org>
27933
27934         Fix link errors on mingw.
27935         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27936         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27937         $(LIBSOCKET).
27938         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27939         $(LIBSOCKET).
27940
27941 2010-03-28  Bruno Haible  <bruno@clisp.org>
27942             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27943
27944         lib-ignore: Determine different options for different compilers.
27945         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27946         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27947         Add comments.
27948         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27949         * NEWS: Mention the change.
27950
27951 2010-03-27  Bruno Haible  <bruno@clisp.org>
27952
27953         Remove unused GNULIB_XYZ macro definitions.
27954         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27955         * modules/fseek (configure.ac): Likewise.
27956         * modules/ioctl (configure.ac): Likewise.
27957         * modules/open (configure.ac): Likewise.
27958         * modules/stdlib-safer (configure.ac): Likewise.
27959
27960 2010-03-27  Bruno Haible  <bruno@clisp.org>
27961
27962         Add a remark about certain modules.
27963         * modules/malloc (Comment): New section.
27964         * modules/realloc (Comment): Likewise.
27965         * modules/sigpipe (Comment): Likewise.
27966
27967 2010-03-27  Bruno Haible  <bruno@clisp.org>
27968
27969         Resolve conflict between the two kinds of module indicators.
27970         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27971         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27972         * modules/canonicalize (configure.ac): Invoke
27973         gl_MODULE_INDICATOR_FOR_TESTS.
27974         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27975         GNULIB_XYZ.
27976         * tests/test-dirent-c++.cc: Likewise.
27977         * tests/test-dirent-safer.c: Likewise.
27978         * tests/test-dup2.c: Likewise.
27979         * tests/test-fchdir.c: Likewise.
27980         * tests/test-fcntl-h-c++.cc: Likewise.
27981         * tests/test-getopt.c: Likewise.
27982         * tests/test-getopt.h: Likewise.
27983         * tests/test-langinfo-c++.cc: Likewise.
27984         * tests/test-locale-c++.cc: Likewise.
27985         * tests/test-math-c++.cc: Likewise.
27986         * tests/test-pty-c++.cc: Likewise.
27987         * tests/test-search-c++.cc: Likewise.
27988         * tests/test-signal-c++.cc: Likewise.
27989         * tests/test-spawn-c++.cc: Likewise.
27990         * tests/test-stdio-c++.cc: Likewise.
27991         * tests/test-stdlib-c++.cc: Likewise.
27992         * tests/test-string-c++.cc: Likewise.
27993         * tests/test-sys_ioctl-c++.cc: Likewise.
27994         * tests/test-sys_select-c++.cc: Likewise.
27995         * tests/test-sys_socket-c++.cc: Likewise.
27996         * tests/test-sys_stat-c++.cc: Likewise.
27997         * tests/test-sys_time-c++.cc: Likewise.
27998         * tests/test-time-c++.cc: Likewise.
27999         * tests/test-unistd-c++.cc: Likewise.
28000         * tests/test-wchar-c++.cc: Likewise.
28001         * tests/uninorm/test-u8-nfc.c: Likewise.
28002         * tests/uninorm/test-u8-nfd.c: Likewise.
28003         * tests/uninorm/test-u8-nfkc.c: Likewise.
28004         * tests/uninorm/test-u8-nfkd.c: Likewise.
28005         * tests/uninorm/test-u16-nfc.c: Likewise.
28006         * tests/uninorm/test-u16-nfd.c: Likewise.
28007         * tests/uninorm/test-u16-nfkc.c: Likewise.
28008         * tests/uninorm/test-u16-nfkd.c: Likewise.
28009         * tests/uninorm/test-u32-nfc.c: Likewise.
28010         * tests/uninorm/test-u32-nfc-big.c: Likewise.
28011         * tests/uninorm/test-u32-nfd.c: Likewise.
28012         * tests/uninorm/test-u32-nfd-big.c: Likewise.
28013         * tests/uninorm/test-u32-nfkc.c: Likewise.
28014         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
28015         * tests/uninorm/test-u32-nfkd.c: Likewise.
28016         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
28017         * tests/uninorm/test-u32-normalize-big.c: Likewise.
28018
28019 2010-03-27  Bruno Haible  <bruno@clisp.org>
28020
28021         Distinguish two kinds of module indicators.
28022         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
28023         gl_MODULE_INDICATOR.
28024         (gl_MODULE_INDICATOR): New macro.
28025         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28026         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
28027         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28028         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28029         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28030         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28031         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28032         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28033         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28034         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28035         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28036         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28037         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28038         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28039         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28040         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28041         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28042         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28043         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28044         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28045         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28046         * modules/cloexec (configure.ac): Likewise.
28047         * modules/getopt-gnu (configure.ac): Likewise.
28048         * modules/uninorm/u8-normalize (configure.ac): Likewise.
28049         * modules/uninorm/u16-normalize (configure.ac): Likewise.
28050         * modules/uninorm/u32-normalize (configure.ac): Likewise.
28051         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
28052
28053 2010-03-27  Bruno Haible  <bruno@clisp.org>
28054
28055         New module description field 'Comment'.
28056         * gnulib-tool: New option --extract-comment.
28057         (func_usage): Document it.
28058         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
28059         (func_get_comment): New function.
28060         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
28061
28062 2010-03-27  Bruno Haible  <bruno@clisp.org>
28063
28064         Addendum to 2010-02-07 commit.
28065         * gnulib-tool (func_usage): Document --extract-applicability option.
28066
28067 2010-03-27  Bruno Haible  <bruno@clisp.org>
28068
28069         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
28070         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
28071         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
28072         rather than link errors.
28073
28074 2010-03-27  Bruno Haible  <bruno@clisp.org>
28075
28076         Avoid side effects from tests-related modules on the compilation of lib.
28077         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
28078         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
28079         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
28080         parameter. Emit into AM_CPPFLAGS a definition of the designated C
28081         macro.
28082         (func_import): Define a witness macro. Assign it a value that depends
28083         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
28084         tests-related modules.
28085         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
28086         Reported by Jim Meyering.
28087
28088 2010-03-27  Bruno Haible  <bruno@clisp.org>
28089
28090         Factorize common .m4 code.
28091         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
28092         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
28093         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
28094         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
28095         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
28096         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
28097         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
28098         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
28099         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
28100         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
28101         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
28102         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
28103         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
28104         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
28105         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
28106         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
28107         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
28108         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
28109         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
28110         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
28111         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
28112         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
28113         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
28114         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
28115         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
28116         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
28117         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
28118         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
28119         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
28120         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
28121         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
28122         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
28123
28124 2010-03-27  Bruno Haible  <bruno@clisp.org>
28125
28126         Fix a compilation error on Cygwin with g++ >= 4.3.
28127         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
28128         if it is undefined or if we alias it to chmod.
28129         (lstat): Don't warn about the use of this function if it is undefined
28130         or if we alias it to stat.
28131         Reported by Simon Josefsson.
28132
28133 2010-03-27  Bruno Haible  <bruno@clisp.org>
28134
28135         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
28136         * modules/getlogin (configure.ac): Update.
28137
28138         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
28139         * modules/getlogin_r (configure.ac): Update.
28140
28141         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
28142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
28143         * modules/inet_ntop (configure.ac): Update.
28144
28145         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
28146         * modules/inet_pton (configure.ac): Update.
28147
28148         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
28149         * modules/mbslen (configure.ac): Update.
28150
28151         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
28152         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
28153         * modules/forkpty (configure.ac): Update.
28154         * modules/openpty (configure.ac): Update.
28155
28156 2010-03-26  Simon Josefsson  <simon@josefsson.org>
28157
28158         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
28159         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
28160
28161 2010-03-25  Eric Blake  <eblake@redhat.com>
28162
28163         maint: use pragma consistently across replacement headers
28164         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28165         * lib/dirent.in.h (system_header): Likewise.
28166         * lib/errno.in.h (system_header): Likewise.
28167         * lib/float.in.h (system_header): Likewise.
28168         * lib/getopt.in.h (system_header): Likewise.
28169         * lib/iconv.in.h (system_header): Likewise.
28170         * lib/inttypes.in.h (system_header): Likewise.
28171         * lib/langinfo.in.h (system_header): Likewise.
28172         * lib/locale.in.h (system_header): Likewise.
28173         * lib/math.in.h (system_header): Likewise.
28174         * lib/netdb.in.h (system_header): Likewise.
28175         * lib/netinet_in.in.h (system_header): Likewise.
28176         * lib/pty.in.h (system_header): Likewise.
28177         * lib/sched.in.h (system_header): Likewise.
28178         * lib/se-selinux.in.h (system_header): Likewise.
28179         * lib/search.in.h (system_header): Likewise.
28180         * lib/spawn.in.h (system_header): Likewise.
28181         * lib/stdarg.in.h (system_header): Likewise.
28182         * lib/stdint.in.h (system_header): Likewise.
28183         * lib/string.in.h (system_header): Likewise.
28184         * lib/strings.in.h (system_header): Likewise.
28185         * lib/sys_file.in.h (system_header): Likewise.
28186         * lib/sys_ioctl.in.h (system_header): Likewise.
28187         * lib/sys_socket.in.h (system_header): Likewise.
28188         * lib/sys_times.in.h (system_header): Likewise.
28189         * lib/sys_utsname.in.h (system_header): Likewise.
28190         * lib/sys_wait.in.h (system_header): Likewise.
28191         * lib/sysexits.in.h (system_header): Likewise.
28192         * lib/unistd.in.h (system_header): Likewise.
28193         * lib/wctype.in.h (system_header): Likewise.
28194
28195         arpa/inet: fix mingw compilation warning
28196         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28197         Reported by Matthew Bolte.
28198
28199 2010-03-25  Bruno Haible  <bruno@clisp.org>
28200
28201         Avoid collision between gnulib wrapper and libintl wrapper.
28202         * lib/printf.c (printf): Don't define if a printf wrapper is already
28203         defined in intl/printf.c.
28204         Reported by Michel Boaventura <michel@michelboaventura.com>.
28205
28206 2010-03-25  Bruno Haible  <bruno@clisp.org>
28207
28208         Use ANSI C.
28209         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28210
28211 2010-03-25  Bruno Haible  <bruno@clisp.org>
28212
28213         Minor formatting changes.
28214         * lib/acosl.c: Insert space before function argument list.
28215         * lib/argz.c: Likewise.
28216         * lib/asinl.c: Likewise.
28217         * lib/expl.c: Likewise.
28218         * lib/gen-uni-tables.c: Likewise.
28219         * lib/gettext.h: Likewise.
28220         * lib/glthread/lock.h: Likewise.
28221         * lib/tanl.c: Likewise.
28222         * lib/uniname/uniname.c: Likewise.
28223         * tests/test-idpriv-drop.c: Likewise.
28224         * tests/test-idpriv-droptemp.c: Likewise.
28225         * tests/test-lock.c: Likewise.
28226         * tests/test-tls.c: Likewise.
28227         * lib/argp-help.c: Insert space before function-like macro argument
28228         list.
28229         * lib/memcmp.c: Likewise.
28230         * tests/test-base64.c: Likewise.
28231         * lib/localename.c: Insert space before sizeof's argument list.
28232         * lib/safe-alloc.h: Likewise.
28233         * lib/file-set.h: Insert space before macro argument list.
28234         * tests/test-argp.c: Likewise.
28235         * lib/argp-namefrob.h: Insert space before function parameter list.
28236         * lib/getaddrinfo.c: Likewise.
28237         * lib/netdb.in.h: Likewise.
28238         * lib/parse-duration.h: Likewise.
28239         * lib/parse-duration.c: Likewise.
28240         * lib/poll.c: Likewise.
28241         * lib/select.c: Likewise.
28242         * lib/trim.h: Likewise.
28243         * tests/test-usleep.c: Likewise.
28244         * lib/ldexpl.c: Insert space before function parameter list and before
28245         function argument list.
28246         * lib/logl.c: Likewise.
28247         * lib/sqrtl.c: Likewise.
28248         * lib/trim.c: Likewise.
28249         * lib/cosl.c: Use GNU style indentation. Insert space before function
28250         argument list.
28251         * lib/sinl.c: Likewise.
28252         * lib/tsearch.c: Insert space after 'for'.
28253         Reported by Jim Meyering.
28254
28255 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28256
28257         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28258         config header before grepping, as it's not present before
28259         autoreconf/configure are run.  Reported by Simon Josefsson.
28260
28261 2010-03-23  Bruno Haible  <bruno@clisp.org>
28262
28263         pt_chown: Make it work with automake < 1.11.
28264         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28265         Reported by Simon Josefsson.
28266
28267 2010-03-23  Bruno Haible  <bruno@clisp.org>
28268
28269         pt_chown: Don't depend on GPLed modules.
28270         * lib/pt_chown.c: Don't include idpriv.h.
28271         (main): Don't drop privileges.
28272         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28273         Reported by Simon Josefsson.
28274
28275 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28276
28277         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28278         suggestions from karl@freefriends.org (Karl Berry).
28279
28280 2010-03-22  Eric Blake  <eblake@redhat.com>
28281
28282         gethostname: further tweaks
28283         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28284         are overriding gethostname.
28285         Suggested by Bruno Haible.
28286
28287 2010-03-21  Bruno Haible  <bruno@clisp.org>
28288
28289         Fix comments.
28290         * lib/forkpty.c (rpl_forkpty): Fix comment.
28291         * lib/openpty.c (rpl_openpty): Likewise.
28292         Reported by Eric Blake.
28293
28294 2010-03-22  Eric Blake  <eblake@redhat.com>
28295
28296         gethostname: fix build on mingw
28297         * lib/unistd.in.h (includes): Work around fact that mingw
28298         <winsock2.h> re-includes <unistd.h>, by avoiding any
28299         redeclarations if we are being included by <winsock2.h>.
28300         Reported by Matthias Bolte.
28301
28302 2010-03-21  Bruno Haible  <bruno@clisp.org>
28303
28304         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28305         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28306         modifications.
28307         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28308         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28309         provide the replacement.
28310         * modules/forkpty (Depends-on): Add openpty, login_tty.
28311         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28312         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28313         * doc/glibc-functions/forkpty.texi: More supported platforms.
28314         * config/srclist.txt: Add forkpty.c (commented).
28315
28316 2010-03-21  Bruno Haible  <bruno@clisp.org>
28317
28318         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28319         (Makefile.am): Verify that PTY_LIB is defined.
28320
28321         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28322
28323 2010-03-21  Bruno Haible  <bruno@clisp.org>
28324
28325         Tests for module 'login_tty'.
28326         * modules/login_tty-tests: New file.
28327         * tests/test-login_tty.c: New file.
28328
28329         New module 'login_tty'.
28330         * lib/login_tty.c: New file.
28331         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28332         * modules/login_tty: New file.
28333         * doc/glibc-functions/login_tty.texi: Mention the new module.
28334
28335 2010-03-21  Bruno Haible  <bruno@clisp.org>
28336
28337         login_tty: Documentation.
28338         * doc/glibc-functions/login_tty.texi: New file.
28339         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28340
28341 2010-03-21  Bruno Haible  <bruno@clisp.org>
28342
28343         pty: Consistent macro naming.
28344         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28345         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28346         * modules/pty (configure.ac): Update.
28347
28348 2010-03-21  Bruno Haible  <bruno@clisp.org>
28349
28350         Tests for openpty: Make stricter.
28351         * tests/test-openpty.c (main): Add test of canonical processing and
28352         erase.
28353         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28354
28355         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28356         * lib/openpty.c (openpty): New replacement function.
28357         * lib/pty.in.h: Include <termios.h>.
28358         (openpty): Update declaration. Add comments.
28359         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28360         is not declared, arrange to provide the replacement. Check for _getpty
28361         and posix_openpt.
28362         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28363         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28364         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28365         * modules/pty-tests (test_pty_c___LDADD): New variable.
28366         * doc/glibc-functions/openpty.texi: More supported platforms.
28367
28368 2010-03-21  Bruno Haible  <bruno@clisp.org>
28369
28370         setenv: Tweaks.
28371         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28372         the test program.
28373         * doc/posix-functions/setenv.texi: Update platforms list.
28374
28375 2010-03-21  Bruno Haible  <bruno@clisp.org>
28376
28377         New module 'unlockpt'.
28378         * lib/unlockpt.c: New file, from glibc with modifications.
28379         * m4/unlockpt.m4: New file.
28380         * modules/unlockpt: New file.
28381         * lib/stdlib.in.h (unlockpt): New declaration.
28382         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28383         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28384         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28385         HAVE_UNLOCKPT.
28386         * doc/posix-functions/unlockpt.texi: Mention the new module.
28387         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28388         * config/srclist.txt: Add unlockpt.c (commented).
28389
28390 2010-03-21  Jim Meyering  <meyering@redhat.com>
28391
28392         maint.mk: prohibit inclusion of "intprops.h" without use
28393         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28394
28395 2010-03-21  Bruno Haible  <bruno@clisp.org>
28396
28397         New module 'grantpt'.
28398         * lib/grantpt.c: New file, from glibc with modifications.
28399         * m4/grantpt.m4: New file.
28400         * modules/grantpt: New file.
28401         * lib/stdlib.in.h (grantpt): New declaration.
28402         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28403         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28404         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28405         HAVE_GRANTPT.
28406         * doc/posix-functions/grantpt.texi: Mention the new module.
28407         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28408         * config/srclist.txt: Add grantpt.c (commented).
28409
28410 2010-03-21  Bruno Haible  <bruno@clisp.org>
28411
28412         New module 'pt_chown'.
28413         * lib/pt_chown.c: New file, from glibc with modifications.
28414         * lib/pty-private.h: New file, from glibc with modifications.
28415         * modules/pt_chown: New file.
28416         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28417
28418 2010-03-21  Bruno Haible  <bruno@clisp.org>
28419
28420         Tests for module 'ptsname'.
28421         * modules/ptsname-tests: New file.
28422         * tests/test-ptsname.c: New file.
28423
28424         New module 'ptsname'.
28425         * lib/ptsname.c: New file, from glibc with modifications.
28426         * m4/ptsname.m4: New file.
28427         * modules/ptsname: New file.
28428         * lib/stdlib.in.h (ptsname): New declaration.
28429         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28430         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28431         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28432         HAVE_PTSNAME.
28433         * doc/posix-functions/ptsname.texi: Mention the new module.
28434         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28435         * config/srclist.txt: Add ptsname.c (commented).
28436
28437 2010-03-21  Bruno Haible  <bruno@clisp.org>
28438
28439         Tests for module 'ttyname_r'.
28440         * modules/ttyname_r-tests: New file.
28441         * tests/test-ttyname_r.c: New file.
28442
28443         New module 'ttyname_r'.
28444         * lib/ttyname_r.c: New file.
28445         * m4/ttyname_r.m4: New file.
28446         * modules/ttyname_r: New file.
28447         * lib/unistd.in.h (ttyname_r): New declaration.
28448         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28449         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28450         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28451         HAVE_TTYNAME_R.
28452         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28453         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28454
28455 2010-03-20  Bruno Haible  <bruno@clisp.org>
28456
28457         signal: Undefine macro definitions in C++ mode.
28458         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28459         sigfillset): Undefine macro definitions from the system header in C++
28460         mode.
28461         Reported by John W. Eaton <jwe@gnu.org>.
28462
28463 2010-03-20  Bruno Haible  <bruno@clisp.org>
28464
28465         Ensure no #include statements inside extern "C" { ... }.
28466         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28467         contain #include statements.
28468         * lib/time.in.h: Likewise.
28469
28470 2010-03-20  Bruno Haible  <bruno@clisp.org>
28471
28472         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28473         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28474         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28475         Reported by John W. Eaton <jwe@gnu.org>.
28476
28477 2010-03-20  Bruno Haible  <bruno@clisp.org>
28478
28479         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28480         Reported by Jim Meyering.
28481
28482 2010-03-20  Bruno Haible  <bruno@clisp.org>
28483
28484         pipe: Set errno upon failure.
28485         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28486         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28487         errno value in error message.
28488
28489 2010-03-20  Bruno Haible  <bruno@clisp.org>
28490             Jim Meyering  <meyering@redhat.com>
28491
28492         lchown: Avoid "unused variable" warning.
28493         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28494
28495 2010-03-20  Bruno Haible  <bruno@clisp.org>
28496
28497         Work around unlink() bug on MacOS X 10.5.6.
28498         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28499         attempting to unlink a parent directory.
28500         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28501         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28502         activate for the replacement function.
28503         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28504
28505 2010-03-20  Bruno Haible  <bruno@clisp.org>
28506
28507         Fix link errors on Solaris 8.
28508         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28509         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28510
28511 2010-03-19  Jim Meyering  <meyering@redhat.com>
28512
28513         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28514         The _LIBC implementation of build_range_exp correctly honors the
28515         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28516         However, the non-_LIBC implementation would ignore that syntax-bit
28517         flag and return REG_ERANGE unconditionally.
28518         This change makes it honor that flag.
28519         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28520         Make two pointer parameters "const".
28521         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28522         (parse_bracket_exp): Update caller.
28523
28524         regex.m4: correct the reversed range endpoint ([b-a]) test
28525         * m4/regex.m4: When requiring that [b-a] evoke failure,
28526         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28527         test pass once again for x86-based systems.
28528
28529 2010-03-19  Bruno Haible  <bruno@clisp.org>
28530
28531         scandir: Fix link error on Solaris 8.
28532         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28533         macros.
28534
28535 2010-03-19  Bruno Haible  <bruno@clisp.org>
28536
28537         getusershell: Fix documentation.
28538         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28539         module.
28540         * doc/glibc-functions/setusershell.texi: Likewise.
28541
28542         getusershell: Provide declaration, missing on Solaris 9.
28543         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28544         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28545         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28546         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28548         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28549         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28550         HAVE_GETUSERSHELL.
28551         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28552
28553 2010-03-19  Bruno Haible  <bruno@clisp.org>
28554
28555         wctype: Provide iswblank function.
28556         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28557         exists and is fine.
28558         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28559         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28560         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28561         * doc/posix-functions/iswblank.texi: Update.
28562
28563 2010-03-19  Bruno Haible  <bruno@clisp.org>
28564
28565         Tests of module 'pty' in C++ mode.
28566         * modules/pty-tests: New file.
28567         * tests/test-pty-c++.cc: New file.
28568         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28569
28570 2010-03-19  Eric Blake  <eblake@redhat.com>
28571
28572         logb: fix documentation
28573         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28574         1.5 declaration bug.
28575
28576         forkpty, openpty: prefer glibc's const-safe prototype
28577         * lib/forkpty.c (rpl_forkpty): New file.
28578         * lib/openpty.c (rpl_openpty): Likewise.
28579         * modules/forkpty (Files): Distribute it.
28580         * modules/openpty (Files): Likewise.
28581         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28582         check...
28583         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28584         replacement for for non-const BSD signature.
28585         * modules/pty (Makefile.am): Substitute witnesses.
28586         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28587         * tests/test-forkpty.c: Update signature check.
28588         * tests/test-openpty.c: Likewise.
28589         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28590         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28591
28592         forkpty, openpty: split functions into new modules
28593         * modules/pty (Makefile.am): Substitute new witnesses.
28594         (Libraries): Move library detection...
28595         * modules/forkpty: ...into new module.
28596         * modules/openpty: Another new module.
28597         * modules/pty-tests: Rename and split...
28598         * modules/forkpty-tests: ...to this...
28599         * modules/openpty-tests: ...and this.
28600         * tests/test-pty.c: Rename and split...
28601         * tests/test-forkpty.c: ...to this...
28602         * tests/test-openpty.c: ...and this.
28603         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28604         (gl_PTY): Split library searching...
28605         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28606         (gl_FORKPTY, gl_OPENPTY): New macros.
28607         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28608         * NEWS: Mention the split.
28609         * MODULES.html.sh (Misc): Document the modules.
28610         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28611         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28612
28613         pty: improve replacement header
28614         * lib/pty.in.h: New file.
28615         * modules/pty (Files): Ship it.
28616         (Makefile.am): Always build replacement.
28617         * m4/pty.m4: Rename...
28618         * m4/pty_h.m4: ...to this.
28619         (gl_PTY): Modernize setting of witness macros; update check of
28620         forkpty to take proper advantage of cache.
28621         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28622
28623         getopt: avoid compiler warning
28624         * lib/getopt.c (attribute_hidden): Remove unused macro.
28625
28626 2010-03-18  Bruno Haible  <bruno@clisp.org>
28627
28628         Fix link errors on Solaris 8.
28629         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28630         * modules/search-tests (test_search_c___LDADD): Likewise.
28631         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28632         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28633         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28634         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28635         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28636         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28637         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28638
28639 2010-03-18  Bruno Haible  <bruno@clisp.org>
28640
28641         Fix bug introduced on 2010-03-14.
28642         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28643         (gl_SPAWN_H): Require it.
28644         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28645         Reported by Simon Josefsson.
28646
28647 2010-03-18  Bruno Haible  <bruno@clisp.org>
28648
28649         Fix typo introduced on 2009-12-31.
28650         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28651         posix_spawn_file_actions_adddup2.
28652
28653 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28654         and Eric Blake  <eblake@redhat.com>
28655
28656         test-vc-list-files-git: make more robust
28657         * tests/test-vc-list-files-git.sh: Unset problematic environment
28658         variables.  Chain commands together.
28659
28660 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28661
28662         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28663         `AC_CHECK_DECL' invocation.
28664
28665 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28666
28667         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28668         appears before executable statements. Suggested by Petr Sumbera
28669         <Petr.Sumbera@Sun.COM>.
28670
28671 2010-03-14  Bruno Haible  <bruno@clisp.org>
28672
28673         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28674         portability problems. Instead use a simpler test.
28675         (main): Check that invalid arguments are rejected only on Linux.
28676
28677 2010-03-14  Bruno Haible  <bruno@clisp.org>
28678
28679         Fix bug introduced on 2009-12-31.
28680         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28681         gl_PREREQ_SYS_H_WINSOCK2 always.
28682         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28683         SYS_SOCKET_H variable.
28684         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28685         Update comments.
28686         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28687         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28688         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28689         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28690         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28691
28692 2010-03-14  Bruno Haible  <bruno@clisp.org>
28693
28694         Fix values returned by sinl, cosl.
28695         * lib/trigl.h: Add specification comments.
28696         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28697         that combines the values from the precomputed table with the values of
28698         the Chebyshev polynomials.
28699
28700 2010-03-14  Bruno Haible  <bruno@clisp.org>
28701
28702         Fix compilation error when modules 'posix_spawn[p]' are not used.
28703         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28704         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28705
28706 2010-03-14  Bruno Haible  <bruno@clisp.org>
28707
28708         Fix compilation error on mingw when module 'time_r' is not used.
28709         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28710         is 1.
28711         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28712         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28713         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28714         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28715
28716 2010-03-14  Bruno Haible  <bruno@clisp.org>
28717
28718         Fix compilation error with Sun C.
28719         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28720         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28721         instead of GCC specific ULONG_LONG_MAX.
28722         * lib/xstrtoll.c: Likewise.
28723         * lib/xstrtoull.c: Likewise.
28724
28725 2010-03-13  Bruno Haible  <bruno@clisp.org>
28726
28727         Allow the user to disable C++ code and tests.
28728         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28729         (gl_PROG_ANSI_CXX): Require it.
28730
28731 2010-03-13  Bruno Haible  <bruno@clisp.org>
28732
28733         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28734         cases.
28735
28736 2010-03-13  Bruno Haible  <bruno@clisp.org>
28737
28738         Test that gnulib does not break the standard C++ headers.
28739         * tests/test-locale-c++2.cc: New file.
28740         * modules/locale-tests (Files): Add it.
28741         (Makefile.am): Compile it for test-locale-c++.
28742         * tests/test-math-c++2.cc: New file.
28743         * modules/math-tests (Files): Add it.
28744         (Makefile.am): Compile it for test-math-c++.
28745         * tests/test-signal-c++2.cc: New file.
28746         * modules/signal-tests (Files): Add it.
28747         (Makefile.am): Compile it for test-signal-c++.
28748         * tests/test-stdio-c++2.cc: New file.
28749         * modules/stdio-tests (Files): Add it.
28750         (Makefile.am): Compile it for test-stdio-c++.
28751         * tests/test-stdlib-c++2.cc: New file.
28752         * modules/stdlib-tests (Files): Add it.
28753         (Makefile.am): Compile it for test-stdlib-c++.
28754         * tests/test-string-c++2.cc: New file.
28755         * modules/string-tests (Files): Add it.
28756         (Makefile.am): Compile it for test-string-c++.
28757         * tests/test-time-c++2.cc: New file.
28758         * modules/time-tests (Files): Add it.
28759         (Makefile.am): Compile it for test-time-c++.
28760         Reported by John W. Eaton <jwe@gnu.org>.
28761
28762 2010-03-13  Bruno Haible  <bruno@clisp.org>
28763
28764         * gnulib-tool (func_usage): Clarify which options are available for
28765         --create-testdir and --create-megatestdir.
28766
28767 2010-03-13  Bruno Haible  <bruno@clisp.org>
28768
28769         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28770         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28771         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28772         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28773         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28774         when appropriate.
28775         Reported by Jim Meyering.
28776
28777 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28778
28779         * gnulib-tool (func_import): Explain origin of code.
28780
28781 2010-03-12  Bruno Haible  <bruno@clisp.org>
28782
28783         Fix problem with automake's definition of CXXLINK.
28784         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28785         Reported by Simon Josefsson and Ludovic Courtès.
28786
28787 2010-03-12  Bruno Haible  <bruno@clisp.org>
28788
28789         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28790         stable releases.
28791
28792 2010-03-11  Bruno Haible  <bruno@clisp.org>
28793
28794         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28795         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28796         whether the system provides one variant or multiple variants of the
28797         function.
28798         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28799         C++ compilers.
28800         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28801         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28802         Reported by Jim Meyering.
28803
28804 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28805
28806         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28807
28808 2010-03-08  Bruno Haible  <bruno@clisp.org>
28809
28810         gnulib-tool: Add support for --libtool in --create-testdir.
28811         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28812         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28813
28814 2010-03-08  Eric Blake  <eblake@redhat.com>
28815
28816         gnulib-tool.texi: mention possibility of git submodule
28817         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28818         submodules.
28819         * doc/.gitignore: Ignore another generated file.
28820
28821 2010-03-08  Karl Berry  <karl@gnu.org>
28822
28823         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28824         of committing gnulib files while skipping others.
28825
28826 2010-03-07  Bruno Haible  <bruno@clisp.org>
28827
28828         Tests of module 'wctype' in C++ mode.
28829         * tests/test-wctype-c++.cc: New file.
28830         * modules/wctype-tests (Files): Add it and tests/signature.h.
28831         (Depends-on): Add ansi-c++-opt.
28832         (Makefile.am): Arrange to compile and run test-wctype-c++.
28833
28834         Tests of module 'wchar' in C++ mode.
28835         * tests/test-wchar-c++.cc: New file.
28836         * modules/wchar-tests (Files): Add it and tests/signature.h.
28837         (Depends-on): Add ansi-c++-opt.
28838         (Makefile.am): Arrange to compile and run test-wchar-c++.
28839         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28840         gl_MODULE_INDICATOR.
28841
28842         Tests of module 'unistd' in C++ mode.
28843         * tests/test-unistd-c++.cc: New file.
28844         * modules/unistd-tests (Files): Add it and tests/signature.h.
28845         (Depends-on): Add ansi-c++-opt.
28846         (Makefile.am): Arrange to compile and run test-unistd-c++.
28847         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28848         gl_MODULE_INDICATOR.
28849
28850         Tests of module 'time' in C++ mode.
28851         * tests/test-time-c++.cc: New file.
28852         * modules/time-tests (Files): Add it and tests/signature.h.
28853         (Depends-on): Add ansi-c++-opt.
28854         (Makefile.am): Arrange to compile and run test-time-c++.
28855         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28856
28857         Tests of module 'sys_time' in C++ mode.
28858         * tests/test-sys_time-c++.cc: New file.
28859         * modules/sys_time-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_time-c++.
28862         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28863         gl_MODULE_INDICATOR.
28864
28865         Tests of module 'sys_stat' in C++ mode.
28866         * tests/test-sys_stat-c++.cc: New file.
28867         * modules/sys_stat-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_stat-c++.
28870         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28871         gl_MODULE_INDICATOR.
28872
28873         Tests of module 'sys_socket' in C++ mode.
28874         * tests/test-sys_socket-c++.cc: New file.
28875         * modules/sys_socket-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_socket-c++.
28878         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28879         gl_MODULE_INDICATOR.
28880
28881         Tests of module 'sys_select' in C++ mode.
28882         * tests/test-sys_select-c++.cc: New file.
28883         * modules/sys_select-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_select-c++.
28886         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28887         gl_MODULE_INDICATOR.
28888
28889         Tests of module 'sys_ioctl' in C++ mode.
28890         * tests/test-sys_ioctl-c++.cc: New file.
28891         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28892         (Depends-on): Add ansi-c++-opt.
28893         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28894         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28895         gl_MODULE_INDICATOR.
28896
28897         Tests of module 'string' in C++ mode.
28898         * tests/test-string-c++.cc: New file.
28899         * modules/string-tests (Files): Add it and tests/signature.h.
28900         (Depends-on): Add ansi-c++-opt.
28901         (Makefile.am): Arrange to compile and run test-string-c++.
28902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28903         gl_MODULE_INDICATOR.
28904
28905         Tests of module 'stdlib' in C++ mode.
28906         * tests/test-stdlib-c++.cc: New file.
28907         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28908         (Depends-on): Add ansi-c++-opt.
28909         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28910         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28911         gl_MODULE_INDICATOR.
28912
28913         Tests of module 'stdio' in C++ mode.
28914         * tests/test-stdio-c++.cc: New file.
28915         * modules/stdio-tests (Files): Add it and tests/signature.h.
28916         (Depends-on): Add ansi-c++-opt.
28917         (Makefile.am): Arrange to compile and run test-stdio-c++.
28918         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28919         gl_MODULE_INDICATOR.
28920
28921         Tests of module 'spawn' in C++ mode.
28922         * tests/test-spawn-c++.cc: New file.
28923         * modules/spawn-tests (Files): Add it and tests/signature.h.
28924         (Depends-on): Add ansi-c++-opt.
28925         (Makefile.am): Arrange to compile and run test-spawn-c++.
28926         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28927         gl_MODULE_INDICATOR.
28928
28929         Tests of module 'signal' in C++ mode.
28930         * tests/test-signal-c++.cc: New file.
28931         * modules/signal-tests (Files): Add it and tests/signature.h.
28932         (Depends-on): Add ansi-c++-opt.
28933         (Makefile.am): Arrange to compile and run test-signal-c++.
28934         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28935         gl_MODULE_INDICATOR.
28936
28937         Tests of module 'search' in C++ mode.
28938         * tests/test-search-c++.cc: New file.
28939         * modules/search-tests (Files): Add it and tests/signature.h.
28940         (Depends-on): Add ansi-c++-opt.
28941         (Makefile.am): Arrange to compile and run test-search-c++.
28942         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28943         gl_MODULE_INDICATOR.
28944
28945         Tests of module 'math' in C++ mode.
28946         * tests/test-math-c++.cc: New file.
28947         * modules/math-tests (Files): Add it and tests/signature.h.
28948         (Depends-on): Add ansi-c++-opt.
28949         (Makefile.am): Arrange to compile and run test-math-c++.
28950         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28951
28952         Tests of module 'locale' in C++ mode.
28953         * tests/test-locale-c++.cc: New file.
28954         * modules/locale-tests (Files): Add it and tests/signature.h.
28955         (Depends-on): Add ansi-c++-opt.
28956         (Makefile.am): Arrange to compile and run test-locale-c++.
28957         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28958         gl_MODULE_INDICATOR.
28959
28960         Tests of module 'langinfo' in C++ mode.
28961         * tests/test-langinfo-c++.cc: New file.
28962         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28963         (Depends-on): Add ansi-c++-opt.
28964         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28965         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28966         gl_MODULE_INDICATOR.
28967
28968         Tests of module 'iconv-h' in C++ mode.
28969         * tests/test-iconv-h-c++.cc: New file.
28970         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28971         (Depends-on): Add ansi-c++-opt.
28972         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28973
28974         Tests of module 'glob' in C++ mode.
28975         * tests/test-glob-c++.cc: New file.
28976         * modules/glob-tests (Files): Add it.
28977         (Depends-on): Add ansi-c++-opt.
28978         (Makefile.am): Arrange to compile and run test-glob-c++.
28979
28980         Tests of module 'fcntl-h' in C++ mode.
28981         * tests/test-fcntl-h-c++.cc: New file.
28982         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28983         (Depends-on): Add ansi-c++-opt.
28984         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28985         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28986         gl_MODULE_INDICATOR.
28987
28988         Tests of module 'dirent' in C++ mode.
28989         * tests/test-dirent-c++.cc: New file.
28990         * modules/dirent-tests (Files): Add it and tests/signature.h.
28991         (Depends-on): Add ansi-c++-opt.
28992         (Makefile.am): Arrange to compile and run test-dirent-c++.
28993         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28994         gl_MODULE_INDICATOR.
28995
28996         New module 'ansi-c++-opt'.
28997         * modules/ansi-c++-opt: New file.
28998         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28999
29000         Document C++ namespace mode.
29001         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
29002
29003         wctype: Avoid #define replacements in C++ mode.
29004         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
29005         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
29006         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
29007         In C++, define a namespaced alias symbol.
29008         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
29009         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
29010         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
29011         rule.
29012
29013         wchar: Avoid #define replacements in C++ mode.
29014         * lib/wchar.in.h: Include c++defs.h.
29015         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
29016         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
29017         symbol.
29018         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
29019         * modules/wchar (Depends-on): Add c++defs.
29020         (Makefile.am): Update wchar.h rule.
29021
29022         unistd: Avoid #define replacements in C++ mode.
29023         * lib/unistd.in.h: Include c++defs.h.
29024         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
29025         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
29026         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
29027         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
29028         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
29029         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
29030         symbol.
29031         (environ): Update.
29032         * modules/unistd (Depends-on): Add c++defs.
29033         (Makefile.am): Update unistd.h rule.
29034
29035         time: Avoid #define replacements in C++ mode.
29036         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
29037         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
29038         define a namespaced alias symbol.
29039         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
29040         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
29041         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
29042         * modules/time (Depends-on): Add c++defs, warn-on-use.
29043         (Makefile.am): Update time.h rule.
29044         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
29045         * modules/nanosleep (configure.ac): Likewise.
29046         * modules/strptime (configure.ac): Likewise.
29047         * modules/timegm (configure.ac): Likewise.
29048
29049         sys_time: Avoid #define replacements in C++ mode.
29050         * lib/sys_time.in.h: Include c++defs.h.
29051         (gettimeofday): In C++, define a namespaced alias symbol.
29052         * modules/sys_time (Depends-on): Add c++defs.
29053         (Makefile.am): Update sys/time.h rule.
29054
29055         sys_stat: Avoid #define replacements in C++ mode.
29056         * lib/sys_stat.in.h: Include c++defs.h.
29057         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
29058         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
29059         namespaced alias symbol.
29060         In C++, define a namespaced alias symbol.
29061         * modules/sys_stat (Depends-on): Add c++defs.
29062         (Makefile.am): Update sys/stat.h rule.
29063
29064         sys_socket: Avoid #define replacements in C++ mode.
29065         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
29066         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
29067         definitions also when the system has a <sys/socket.h>.
29068         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
29069         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
29070         In C++, define a namespaced alias symbol.
29071         * modules/sys_socket (Depends-on): Add c++defs.
29072         (Makefile.am): Update sys/socket.h rule.
29073
29074         sys_select: Avoid #define replacements in C++ mode.
29075         * lib/sys_select.in.h: Include c++defs.h. Enable the function
29076         definitions also when the system has a <sys/select.h>.
29077         (select): In C++, define a namespaced alias symbol.
29078         * modules/sys_select (Depends-on): Add c++defs.
29079         (Makefile.am): Update sys/select.h rule.
29080
29081         sys_ioctl: Avoid #define replacements in C++ mode.
29082         * lib/sys_ioctl.in.h: Include c++defs.h.
29083         (ioctl): In C++, define a namespaced alias symbol.
29084         * modules/sys_ioctl (Depends-on): Add c++defs.
29085         (Makefile.am): Update sys/ioctl.h rule.
29086
29087         string: Avoid #define replacements in C++ mode.
29088         * lib/string.in.h: Include c++defs.h.
29089         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
29090         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
29091         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
29092         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
29093         strsignal, strverscmp): In C++, define a namespaced alias symbol.
29094         * modules/string (Depends-on): Add c++defs.
29095         (Makefile.am): Update string.h rule.
29096
29097         stdlib: Avoid #define replacements in C++ mode.
29098         * lib/stdlib.in.h: Include c++defs.h.
29099         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
29100         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
29101         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
29102         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
29103         symbol.
29104         * modules/stdlib (Depends-on): Add c++defs.
29105         (Makefile.am): Update stdlib.h rule.
29106
29107         stdio: Avoid #define replacements in C++ mode.
29108         * lib/stdio.in.h: Include c++defs.h.
29109         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
29110         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
29111         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
29112         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
29113         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
29114         namespaced alias symbol.
29115         * modules/stdio (Depends-on): Add c++defs.
29116         (Makefile.am): Update stdio.h rule.
29117
29118         spawn: Avoid #define replacements in C++ mode.
29119         * lib/spawn.in.h: Include c++defs.h.
29120         (posix_spawn, posix_spawnp, posix_spawnattr_init,
29121         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
29122         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
29123         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
29124         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
29125         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
29126         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
29127         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
29128         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
29129         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
29130         In C++, define a namespaced alias symbol.
29131         * modules/spawn (Depends-on): Add c++defs.
29132         (Makefile.am): Update spawn.h rule.
29133
29134         signal: Avoid #define replacements in C++ mode.
29135         * lib/signal.in.h: Include c++defs.h.
29136         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
29137         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
29138         namespaced alias symbol.
29139         * modules/signal (Depends-on): Add c++defs.
29140         (Makefile.am): Update signal.h rule.
29141
29142         search: Avoid #define replacements in C++ mode.
29143         * lib/search.in.h: Include c++defs.h.
29144         (_gl_search_compar_fn, _gl_search_action_fn): New types.
29145         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
29146         symbol.
29147         * modules/search (Depends-on): Add c++defs.
29148         (Makefile.am): Update search.h rule.
29149
29150         math: Avoid #define replacements in C++ mode.
29151         * lib/math.in.h: Include c++defs.h.
29152         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
29153         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
29154         trunc, truncl): In C++, define a namespaced alias symbol.
29155         * modules/math (Depends-on): Add c++defs.
29156         (Makefile.am): Update math.h rule.
29157
29158         locale: Avoid #define replacements in C++ mode.
29159         * lib/locale.in.h: Include c++defs.h.
29160         (duplocale): In C++, define a namespaced alias symbol.
29161         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29162         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29163         * modules/locale (Depends-on): Add c++defs.
29164         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29165
29166         langinfo: Avoid #define replacements in C++ mode.
29167         * lib/langinfo.in.h: Include c++defs.h.
29168         (nl_langinfo): In C++, define a namespaced alias symbol.
29169         * modules/langinfo (Depends-on): Add c++defs.
29170         (Makefile.am): Update langinfo.h rule.
29171
29172         iconv-h: Avoid #define replacements in C++ mode.
29173         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29174         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29175         symbol.
29176         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29177         whenever iconv is present.
29178         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29179         (Makefile.am): Update iconv.h rule.
29180
29181         glob: Avoid #define replacements in C++ mode.
29182         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29183         (_gl_glob_errfunc_fn): New type.
29184         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29185         symbol.
29186         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29187         (Makefile.am): Update glob.h rule.
29188
29189         fcntl-h: Avoid #define replacements in C++ mode.
29190         * lib/fcntl.in.h: Include c++defs.h.
29191         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29192         * modules/fcntl-h (Depends-on): Add c++defs.
29193         (Makefile.am): Update fcntl.h rule.
29194
29195         dirent: Avoid #define replacements in C++ mode.
29196         * lib/dirent.in.h: Include c++defs.h.
29197         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29198         namespaced alias symbol.
29199         (dirfd): Update declaration.
29200         * modules/dirent (Depends-on): Add c++defs.
29201         (Makefile.am): Update dirent.h rule.
29202
29203         ctype: Make it usable in C++ code.
29204         * lib/ctype.in.h: Include c++defs.h.
29205         (isblank): Declare as extern "C".
29206         * modules/ctype (Depends-on): Add c++defs.
29207         (Makefile.am): Update ctype.h rule.
29208
29209         New module 'c++defs'.
29210         * modules/c++defs: New file.
29211         * build-aux/c++defs.h: New file.
29212         Reported by John W. Eaton <jwe@gnu.org>.
29213
29214 2010-03-07  Bruno Haible  <bruno@clisp.org>
29215
29216         logb: Provide missing declaration for Cygwin.
29217         * lib/math.in.h (logb): New declaration.
29218         * m4/logb.m4: New file.
29219         * modules/logb (Files): Add m4/logb.m4.
29220         (Depends-on): Add math.
29221         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29222         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29224         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29225         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29226
29227 2010-03-07  Bruno Haible  <bruno@clisp.org>
29228
29229         Fix test-cond link error.
29230         * tests/test-cond.c: Include <stdio.h>.
29231
29232 2010-03-07  Bruno Haible  <bruno@clisp.org>
29233
29234         Fix test-dirent-safer link error.
29235         * modules/dirent-safer-tests (Makefile.am): Define
29236         test_dirent_safer_LDADD.
29237
29238 2010-03-07  Bruno Haible  <bruno@clisp.org>
29239
29240         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29241         among default module list.
29242
29243 2010-03-07  Bruno Haible  <bruno@clisp.org>
29244
29245         Fix link error on platforms with GNU libiconv.
29246         * modules/unistr/u8-strcoll-tests (Makefile): Define
29247         test_u8_strcoll_LDADD.
29248         * modules/unistr/u16-strcoll-tests (Makefile): Define
29249         test_u16_strcoll_LDADD.
29250         * modules/unistr/u32-strcoll-tests (Makefile): Define
29251         test_u32_strcoll_LDADD.
29252
29253 2010-03-07  Bruno Haible  <bruno@clisp.org>
29254
29255         Use POSIX declarations for socket functions.
29256         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29257         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29258         rpl_sendto): Change declaration to match POSIX.
29259         * lib/connect.c (rpl_connect): Likewise.
29260         * lib/accept.c (rpl_accept): Likewise.
29261         * lib/bind.c (rpl_bind): Likewise.
29262         * lib/getpeername.c (rpl_getpeername): Likewise.
29263         * lib/getsockname.c (rpl_getsockname): Likewise.
29264         * lib/recv.c (rpl_recv): Likewise.
29265         * lib/send.c (rpl_send): Likewise.
29266         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29267         * lib/sendto.c (rpl_sendto): Likewise.
29268
29269 2010-03-06  Bruno Haible  <bruno@clisp.org>
29270
29271         Clarify access, euidaccess, faccessat.
29272         * doc/posix-functions/faccessat.texi: Mention security problem under
29273         "Other problems", not "Portability problems".
29274         * doc/posix-functions/access.texi: Likewise. Mention a related security
29275         problem.
29276         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29277         * lib/euidaccess.c: Add comments about platforms.
29278         * lib/unistd.in.h (access, euidaccess): Add warnings.
29279
29280 2010-03-07  Bruno Haible  <bruno@clisp.org>
29281
29282         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29283         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29284         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29285         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29286         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29287         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29288         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29289         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29290         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29291         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29292         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29293         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29294         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29295         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29296         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29297         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29298         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29299         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29300         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29301         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29302         Likewise.
29303         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29304         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29305         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29306         Likewise.
29307         * tests/test-spawn.c (main): Make it work when
29308         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29309
29310 2010-03-07  Bruno Haible  <bruno@clisp.org>
29311
29312         Fix incorrect Makefile.am generation in German locale.
29313         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29314         Execute sed command with character range in C locale.
29315
29316 2010-03-06  Bruno Haible  <bruno@clisp.org>
29317
29318         Tests for module 'iconv-h'.
29319         * modules/iconv-h-tests: New file.
29320         * tests/test-iconv-h.c: New file.
29321
29322         New module 'iconv-h'.
29323         * modules/iconv-h: New file.
29324         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29325         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29326         (configure.ac): Remove gl_ICONV_H.
29327         (Makefile.am): Remove rule for iconv.h.
29328
29329 2010-03-06  Bruno Haible  <bruno@clisp.org>
29330
29331         More consistent naming of *.m4 files.
29332         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29333         * modules/wctype (Files): Update.
29334
29335         More consistent naming of *.m4 files.
29336         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29337         * modules/wchar (Files): Update.
29338
29339 2010-03-06  Jim Meyering  <meyering@redhat.com>
29340
29341         euidaccess: relax license to LGPLv2+
29342         * modules/euidaccess (License): Relax to LGPLv2+.
29343
29344 2010-03-06  Bruno Haible  <bruno@clisp.org>
29345
29346         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29347         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29348         (Makefile.am): Augment lib_SOURCES instead.
29349
29350 2010-03-04  Jim Meyering  <meyering@redhat.com>
29351
29352         utime: remove obsolete module
29353         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29354         unnecessary for years, and has been marked as obsolete for 10 months.
29355         * modules/utime: Remove file.
29356         * lib/utime.c: Remove file.
29357         * m4/utime.m4: Remove file.
29358         * m4/utimes-null.m4: Remove file.
29359         * doc/posix-functions/utime.texi (utime): Remove reference to
29360         the module.  Move the sole "fixed by gnulib" item into the
29361         "problems not fixed by Gnulib" list.
29362         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29363
29364 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29365
29366         * modules/exit (License): Relax license to LGPLv2+.
29367         (Status): Mark as obsolete.
29368         * NEWS: Mention deprecated 'exit' module.
29369         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29370         of now obsolete 'exit'.
29371
29372 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29373
29374         fts-lgpl: remove unused module
29375         * modules/fts-lgpl: Remove.
29376         * MODULES.html.sh (func_all_modules): Adjust.
29377         * check-module (find_included_lib_files): Adjust.
29378         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29379
29380 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29381
29382         copy-acl: enhance Solaris ACL error handling
29383         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29384         * lib/set-mode-acl.c (qset_acl): Likewise.
29385
29386 2010-03-02  Bruno Haible  <bruno@clisp.org>
29387
29388         spawn: Don't override the system defined values on FreeBSD 8.
29389         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29390         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29391         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29392         if HAVE_POSIX_SPAWN is 1.
29393         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29394
29395 2010-03-01  Bruno Haible  <bruno@clisp.org>
29396
29397         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29398         regarding Automake.
29399
29400 2010-02-25  Bruno Haible  <bruno@clisp.org>
29401
29402         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29403         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29404         setting, not afterwards.
29405         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29406
29407 2010-02-24  Eric Blake  <eblake@redhat.com>
29408
29409         bootstrap, git-version-gen: use timestamp
29410         * build-aux/git-version-gen (scriptversion): Force UTC.
29411         * build-aux/bootstrap (scriptversion): New variable.
29412
29413         bootstrap: allow older git
29414         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29415         older than 1.6.4.  Requested by the libvirt project.
29416
29417 2010-02-23  Eric Blake  <eblake@redhat.com>
29418
29419         warn-on-use: work with old autoconf
29420         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29421         AS_VAR semantics of autoconf 2.60.
29422         Reported by Bruno Haible.
29423
29424         bootstrap: improve some comments
29425         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29426         clarification comments.
29427
29428         gettimeofday: provide correct function
29429         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29430         when replacement is declared, otherwise provide gettimeofday.
29431         Reported by Michael Goffioul.
29432
29433 2010-02-23  Jim Meyering  <meyering@redhat.com>
29434
29435         lib-ignore: relax license to "unlimited", not LGPLv2+
29436         * modules/lib-ignore (License): Relax to "unlimited".
29437
29438 2010-02-23  Jim Meyering  <meyering@redhat.com>
29439
29440         lib-ignore: relax license to LGPLv2+
29441         * modules/lib-ignore (License): Relax to LGPLv2+.
29442
29443 2010-02-22  Eric Blake  <eblake@redhat.com>
29444
29445         lseek: avoid bash 3.2 broken pipe bug
29446         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29447         warning from bash 3.2.
29448         Reported by Ben Pfaff, with analysis from Bruno Haible.
29449
29450         bootstrap: support non-FSF copyright holder
29451         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29452         bootstrap.conf override of COPYRIGHT_HOLDER.
29453         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29454
29455         bootstrap: interoperate with gettext 0.14.1
29456         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29457
29458         bootstrap: allow for alternate submodule location
29459         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29460         hardcoding submodule location.
29461         (gnulib_mk): Allow direct use of Makefile.am.
29462
29463         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29464         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29465         rather than reconfiguring where the submodule points.
29466
29467         gettimeofday: restore support for platforms that lack function
29468         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29469         replacement if function is missing.
29470         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29471         * modules/sys_time (Makefile.am): Substitute it.
29472         * lib/sys_time.in.h (gettimeofday): Check it.
29473         Reported by Michael Goffioul.
29474
29475 2010-02-21  Bruno Haible  <bruno@clisp.org>
29476
29477         * lib/stdio.in.h (obstack_printf): Fix typo.
29478
29479 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29480
29481         vc-list-files: use bzr ls's -R option
29482         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29483         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29484
29485 2010-02-21  Jim Meyering  <meyering@redhat.com>
29486
29487         init.sh: fix EXEEXT shims to work also for names like test-prog
29488         * tests/init.sh: Re-exec a better shell, when needed.
29489         If the current shell lacks support for posix $(...), an init.sh-using
29490         test will now try to find a shell that supports that.  If EXEEXT is
29491         nonempty, we also require support for hyphen-in-alias-name and shell
29492         substitutions like ${var#glob}.  Failure to find such a shell results
29493         in a skipped test.
29494
29495 2010-02-21  Bruno Haible  <bruno@clisp.org>
29496
29497         Really work around around "broken pipe" error message from bash 3.2.
29498         * gnulib-tool (func_reset_sigpipe): Remove function.
29499         (echo): In bash 3.2, define to a function that uses printf.
29500         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29501
29502 2010-02-20  Bruno Haible  <bruno@clisp.org>
29503
29504         Restore support for automake 1.9.6 with autoconf 2.61.
29505         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29506         Reported by James Youngman <jay@gnu.org>.
29507
29508 2010-02-20  Bruno Haible  <bruno@clisp.org>
29509
29510         Improve *printf warning condition.
29511         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29512         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29513         and the function is overridden due to SIGPIPE emulation.
29514
29515 2010-02-20  Bruno Haible  <bruno@clisp.org>
29516
29517         * lib/stdio.in.h: Tweak comments.
29518
29519 2010-02-19  Bruno Haible  <bruno@clisp.org>
29520
29521         Make it easier to find modules. New gnulib-tool option '--find'.
29522         * gnulib-tool: New option --find.
29523         (func_usage): Document it.
29524         (func_sanitize_modulelist): New function, extracted from
29525         func_all_modules.
29526         (func_all_modules): Invoke it.
29527         * doc/gnulib-tool.texi (Which modules?): New node.
29528
29529 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29530
29531         * lib/sys_select.in.h: Provide select replacement even if
29532         sys/select.h exists on a system, for Interix.
29533
29534 2010-02-18  Jim Meyering  <meyering@redhat.com>
29535
29536         init.sh: don't use $(...) just yet
29537         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29538         to accommodate e.g., Solaris' /bin/sh.
29539
29540 2010-02-17  Bruno Haible  <bruno@clisp.org>
29541
29542         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29543         Reported by Ludovic Courtès <ludo@gnu.org>.
29544
29545 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29546
29547         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29548         linking with -lintl.
29549
29550 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29551
29552         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29553         if not provided by the system's netdb.h.  Reported by
29554         ludo@gnu.org (Ludovic Courtès).
29555
29556 2010-02-15  Jim Meyering  <meyering@redhat.com>
29557
29558         init.sh: improve portability and efficiency
29559         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29560         "dummy" in a for loop.
29561         Use '!', not '^' to select the complement of a character set used
29562         in a "case" statement.
29563         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29564         Suggestions from Eric Blake.
29565
29566         init.sh: automatically accommodate programs with the .exe suffix
29567         Automatically arrange for an invocation of "prog" to execute the
29568         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29569         may use the simpler "prog", yet still work when built on a system
29570         that requires specifying the added suffix.
29571         Do this by constructing a function named "prog" that invokes
29572         "prog.exe" for each .exe file in selected directories.
29573         * tests/init.sh (find_exe_basenames_): New function.
29574         (create_exe_shim_functions_): New function.
29575         (path_prepend_): Use it.
29576
29577         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29578         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29579         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29580
29581 2010-02-14  Jim Meyering  <meyering@redhat.com>
29582
29583         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29584         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29585         (sc_prohibit_hash_pjw_without_use): New rule.
29586
29587         maint.mk: allow the default upload destination dir to be overridden
29588         * top/maint.mk (upload_dest_dir_): Define with a default that
29589         preserves the status quo.
29590         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29591         Reported by Peter Simons.
29592
29593         maint.mk: prohibit inclusion of "hash.h" without_use
29594         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29595
29596 2010-02-10  Jim Meyering  <meyering@redhat.com>
29597
29598         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29599         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29600
29601 2010-02-09  Eric Blake  <ebb9@byu.net>
29602         and Bruno Haible  <bruno@clisp.org>
29603
29604         obstack-printf-posix: ensure declaration
29605         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29606         extracted from gl_FUNC_OBSTACK_PRINTF.
29607         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29608         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29609         Likewise.
29610         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29611         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29612         0.
29613
29614 2010-02-08  Bruno Haible  <bruno@clisp.org>
29615
29616         gnulib-tool: Fix typo in 2010-02-07 commit.
29617         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29618         Reported by Eric Blake.
29619
29620 2010-02-07  Bruno Haible  <bruno@clisp.org>
29621
29622         gnulib-tool: Fix up caching patches.
29623         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29624         option --no-cache. Use associative arrays when supported by the shell.
29625         (sed_comments): New variable.
29626         (modcache): Renamed from do_cache.
29627         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29628         abbreviate unnecessarily.
29629         (have_associative): New variable.
29630         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29631         way also for ksh and zsh.
29632         (func_init_sed_convert_to_cache_statements): New function, extracted
29633         from func_cache_lookup_module. Add support for associative arrays.
29634         Don't set the c_MODULE_cached variable here. Ignore all lines before
29635         the first field header. Remove only the final newline, not all trailing
29636         newlines. Support empty fields correctly. Limit the use of 'eval' to
29637         assignments.
29638         (func_get_description, func_get_status, func_get_notice,
29639         func_get_applicability, func_get_filelist, func_get_dependencies,
29640         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29641         func_get_automake_snippet, func_get_include_directive,
29642         func_get_link_directive, func_get_license, func_get_maintainer):
29643         Update documentation. List the unoptimized code first. Add support for
29644         associative arrays. Limit the use of 'eval' to assignments.
29645         (func_get_applicability): Undo stylistic pessimisations.
29646         (func_get_automake_snippet, func_get_include_directive): Reduce code
29647         duplication.
29648         (func_modules_transitive_closure, func_modules_add_dummy,
29649         func_modules_notice, func_modules_to_filelist, func_add_file,
29650         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29651         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29652         func_create_testdir, func_create_megatestdir): Update documentation.
29653
29654 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29655
29656         * gnulib-tool (func_cache_lookup_module): Store the module name
29657         belonging to the cache variable; error out if two different
29658         module names map to the same cache variable name.
29659
29660 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29661
29662         gnulib-tool: Make caching optional.
29663         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29664         Update matching short versions of --no-changelog.
29665         (func_usage): Update.
29666         (sed_extract_cache_prog): Renamed from ...
29667         (sed_extract_prog): ... this; revert to old extraction script.
29668         (func_get_description, func_get_status)
29669         (func_get_notice, func_get_applicability, func_get_filelist)
29670         (func_get_dependencies, func_get_autoconf_early_snippet)
29671         (func_get_autoconf_snippet, func_get_automake_snippet)
29672         (func_get_include_directive, func_get_link_directive)
29673         (func_get_license, func_get_maintainer): If $do_cache is false,
29674         use old, non-caching extraction scripts.
29675         Suggestion by Bruno Haible.
29676
29677 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29678
29679         gnulib-tool: cache module metainformation.
29680         * gnulib-tool (sed_extract_prog): Match newline before each
29681         header, and rewrite header to a shell variable suffix.
29682         (func_cache_var, func_cache_lookup_module): New functions,
29683         to turn a module name into a cache variable prefix, and to
29684         look up and cache module metainformation.
29685         (func_get_description, func_get_status)
29686         (func_get_notice, func_get_applicability, func_get_filelist)
29687         (func_get_dependencies, func_get_autoconf_early_snippet)
29688         (func_get_autoconf_snippet, func_get_automake_snippet)
29689         (func_get_include_directive, func_get_link_directive)
29690         (func_get_license, func_get_maintainer): Use
29691         func_cache_lookup_module.
29692
29693 2010-02-07  Bruno Haible  <bruno@clisp.org>
29694
29695         fnctl: Fix missing dependency.
29696         * modules/fcntl (Depends-on): Add getdtablesize.
29697         Reported by John W. Eaton <jwe@gnu.org>.
29698
29699 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29700
29701         Argp: fix recognition of short alias options.
29702
29703         * lib/argp-parse.c (convert_options): Fix improper use of
29704         `|' between character values.
29705         * tests/test-argp.c (group1_option): New alias option
29706         --read (-r).
29707         (group1_parser): Special handling for 'r'.
29708         (test15): New test case.
29709         (test_fun): Add test15.
29710         * tests/test-argp-2.sh: Update expected --help and --usage
29711         outputs.
29712
29713 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29714
29715         * tests/test-argp.c: Fix indentation.
29716
29717 2010-02-04  Eric Blake  <ebb9@byu.net>
29718
29719         gettimeofday: expose type of second argument
29720         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29721         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29722         * tests/test-gettimeofday.c: Use it to silence warning.
29723         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29724         the issue.
29725
29726 2010-02-03  Jim Meyering  <meyering@redhat.com>
29727
29728         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29729         * lib/regcomp.c (TYPE_SIGNED): Define.
29730         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29731
29732         regcomp.c: avoid a new -Wshadow warning
29733         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29734
29735 2010-02-01  Jim Meyering  <meyering@redhat.com>
29736
29737         removing useless parentheses in cpp #define directives
29738         For motivation, see commit c0221df4, "define STREQ(a,b)
29739         consistently, removing useless parentheses"
29740         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29741         * lib/mountlist.c (MNT_IGNORE): Likewise.
29742         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29743
29744 2010-02-01  Eric Blake  <ebb9@byu.net>
29745
29746         sys_time: use link-warning
29747         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29748         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29749         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29750         * modules/sys_time (Depends-on): Add warn-on-use.
29751         (Makefile.am): Always build replacement.
29752         (configure.ac): Update substitutions.
29753         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29754         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29755         bother with SYS_TIME_H.
29756         * modules/gettimeofday (configure.ac): Declare indicator.
29757         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29758         in use.
29759
29760         closein-tests: silence compiler warning
29761         * tests/test-closein.c (main): Ignore fread result.
29762         * modules/closein-tests (Depends-on): Add ignore-value.
29763
29764         tests: silence warning about system return
29765         * tests/test-areadlink-with-size.c (main): Ignore system result.
29766         * tests/test-areadlink.c (main): Likewise.
29767         * tests/test-areadlinkat-with-size.c (main): Likewise.
29768         * tests/test-areadlinkat.c (main): Likewise.
29769         * tests/test-canonicalize-lgpl.c (main): Likewise.
29770         * tests/test-canonicalize.c (main): Likewise.
29771         * tests/test-chown.c (main): Likewise.
29772         * tests/test-fchownat.c (main): Likewise.
29773         * tests/test-fdutimensat.c (main): Likewise.
29774         * tests/test-fstatat.c (main): Likewise.
29775         * tests/test-futimens.c (main): Likewise.
29776         * tests/test-lchown.c (main): Likewise.
29777         * tests/test-link.c (main): Likewise.
29778         * tests/test-linkat.c (main): Likewise.
29779         * tests/test-lstat.c (main): Likewise.
29780         * tests/test-mkdir.c (main): Likewise.
29781         * tests/test-mkdirat.c (main): Likewise.
29782         * tests/test-mkfifo.c (main): Likewise.
29783         * tests/test-mkfifoat.c (main): Likewise.
29784         * tests/test-mknod.c (main): Likewise.
29785         * tests/test-readlink.c (main): Likewise.
29786         * tests/test-remove.c (main): Likewise.
29787         * tests/test-rename.c (main): Likewise.
29788         * tests/test-renameat.c (main): Likewise.
29789         * tests/test-rmdir.c (main): Likewise.
29790         * tests/test-symlink.c (main): Likewise.
29791         * tests/test-symlinkat.c (main): Likewise.
29792         * tests/test-unlink.c (main): Likewise.
29793         * tests/test-unlinkat.c (main): Likewise.
29794         * tests/test-utimens.c (main): Likewise.
29795         * tests/test-utimensat.c (main): Likewise.
29796         * modules/areadlink-tests (Depends-on): Add ignore-value.
29797         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29798         * modules/areadlinkat-tests (Depends-on): Likewise.
29799         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29800         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29801         * modules/canonicalize-tests (Depends-on): Likewise.
29802         * modules/chown-tests (Depends-on): Likewise.
29803         * modules/fdutimensat-tests (Depends-on): Likewise.
29804         * modules/futimens-tests (Depends-on): Likewise.
29805         * modules/lchown-tests (Depends-on): Likewise.
29806         * modules/link-tests (Depends-on): Likewise.
29807         * modules/linkat-tests (Depends-on): Likewise.
29808         * modules/lstat-tests (Depends-on): Likewise.
29809         * modules/mkdir-tests (Depends-on): Likewise.
29810         * modules/mkfifo-tests (Depends-on): Likewise.
29811         * modules/mkfifoat-tests (Depends-on): Likewise.
29812         * modules/mknod-tests (Depends-on): Likewise.
29813         * modules/openat-tests (Depends-on): Likewise.
29814         * modules/readlink-tests (Depends-on): Likewise.
29815         * modules/remove-tests (Depends-on): Likewise.
29816         * modules/rename-tests (Depends-on): Likewise.
29817         * modules/renameat-tests (Depends-on): Likewise.
29818         * modules/rmdir-tests (Depends-on): Likewise.
29819         * modules/symlink-tests (Depends-on): Likewise.
29820         * modules/symlinkat-tests (Depends-on): Likewise.
29821         * modules/unlink-tests (Depends-on): Likewise.
29822         * modules/utimens-tests (Depends-on): Likewise.
29823         * modules/utimensat-tests (Depends-on): Likewise.
29824
29825 2010-01-31  Bruno Haible  <bruno@clisp.org>
29826
29827         Perform the same test for many <math.h> functions.
29828         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29829         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29830         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29831         of gl_MATHFUNC.
29832         * modules/acos (configure.ac): Likewise.
29833         * modules/asin (configure.ac): Likewise.
29834         * modules/atan (configure.ac): Likewise.
29835         * modules/atan2 (configure.ac): Likewise.
29836         * modules/cbrt (configure.ac): Likewise.
29837         * modules/copysign (configure.ac): Likewise.
29838         * modules/cos (configure.ac): Likewise.
29839         * modules/cosh (configure.ac): Likewise.
29840         * modules/erf (configure.ac): Likewise.
29841         * modules/erfc (configure.ac): Likewise.
29842         * modules/exp (configure.ac): Likewise.
29843         * modules/fmod (configure.ac): Likewise.
29844         * modules/hypot (configure.ac): Likewise.
29845         * modules/j0 (configure.ac): Likewise.
29846         * modules/j1 (configure.ac): Likewise.
29847         * modules/jn (configure.ac): Likewise.
29848         * modules/lgamma (configure.ac): Likewise.
29849         * modules/log (configure.ac): Likewise.
29850         * modules/log10 (configure.ac): Likewise.
29851         * modules/log1p (configure.ac): Likewise.
29852         * modules/pow (configure.ac): Likewise.
29853         * modules/remainder (configure.ac): Likewise.
29854         * modules/sin (configure.ac): Likewise.
29855         * modules/sinh (configure.ac): Likewise.
29856         * modules/tan (configure.ac): Likewise.
29857         * modules/tanh (configure.ac): Likewise.
29858         * modules/y0 (configure.ac): Likewise.
29859         * modules/y1 (configure.ac): Likewise.
29860         * modules/yn (configure.ac): Likewise.
29861         Suggested by Paolo Bonzini.
29862
29863 2010-01-31  Bruno Haible  <bruno@clisp.org>
29864
29865         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29866
29867 2010-01-31  Bruno Haible  <bruno@clisp.org>
29868
29869         Work around getdelim() bug on FreeBSD 8.0.
29870         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29871         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29872         not work.
29873         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29874         is 1.
29875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29876         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29877         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29878         a non-zero size.
29879         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29880
29881 2010-01-31  Bruno Haible  <bruno@clisp.org>
29882
29883         Work around getline() bug on FreeBSD 8.0.
29884         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29885         and a non-zero size.
29886         * tests/test-getline.c (main): Likewise.
29887         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29888         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29889
29890 2010-01-28  Eric Blake  <ebb9@byu.net>
29891
29892         regex: fix build failure
29893         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29894         platforms.
29895
29896 2010-01-28  Jim Meyering  <meyering@redhat.com>
29897
29898         regex: do not ignore memory allocation failure
29899         * lib/regex_internal.c (create_cd_newstate): Detect
29900         re_node_set_init_copy failure.   Extracted from glibc commit
29901         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29902
29903         regex: sync more white-space changes from libc
29904         * lib/regex_internal.c: White-space only changes.
29905         * lib/regexec.c: Likewise.
29906
29907         regex: add many uses of __attribute_warn_unused_result__
29908         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29909         * lib/regexec.c: Likewise.
29910         Extracted from a messy glibc commit.
29911
29912         regcomp.c: spelling and merge-artifact from glibc
29913         * lib/regcomp.c: Merge remainder of glibc's
29914         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29915
29916         regcomp.c: sync white-space changes from glibc
29917         * lib/regcomp.c: Merge to accommodate white space
29918         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29919
29920         regcomp.c: do not ignore internal return values
29921         * lib/regcomp.c: Do not ignore internal return values.
29922         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29923         but without its white-space changes and spelling fixes.
29924
29925         regex_internal.h: define __attribute_warn_unused_result__
29926         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29927
29928         maint: add a syntax-check rule to check for vulnerable Makefile.in
29929         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29930
29931 2010-01-27  Jim Meyering  <meyering@redhat.com>
29932
29933         ncftpput-ftp: clean up spaces
29934         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29935         Remove trailing blanks.
29936
29937 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29938
29939         * build-aux/git-version-gen: Fix copyright statement.
29940         * build-aux/gnupload: Likewise.
29941         * tests/test-arcfour.c: Likewise.
29942         * tests/test-arctwo.c: Likewise.
29943         * tests/test-count-one-bits.c: Likewise.
29944         * tests/test-crc.c: Likewise.
29945         * tests/test-des.c: Likewise.
29946         * tests/test-gc-arcfour.c: Likewise.
29947         * tests/test-gc-arctwo.c: Likewise.
29948         * tests/test-gc-des.c: Likewise.
29949         * tests/test-gc-hmac-md5.c: Likewise.
29950         * tests/test-gc-hmac-sha1.c: Likewise.
29951         * tests/test-gc-md2.c: Likewise.
29952         * tests/test-gc-md4.c: Likewise.
29953         * tests/test-gc-md5.c: Likewise.
29954         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29955         * tests/test-gc-rijndael.c: Likewise.
29956         * tests/test-gc-sha1.c: Likewise.
29957         * tests/test-gc.c: Likewise.
29958         * tests/test-gethostname.c: Likewise.
29959         * tests/test-gettimeofday.c: Likewise.
29960         * tests/test-hash.c: Likewise.
29961         * tests/test-hmac-md5.c: Likewise.
29962         * tests/test-hmac-sha1.c: Likewise.
29963         * tests/test-md2.c: Likewise.
29964         * tests/test-md4.c: Likewise.
29965         * tests/test-md5.c: Likewise.
29966         * tests/test-memchr.c: Likewise.
29967         * tests/test-memchr2.c: Likewise.
29968         * tests/test-memcmp.c: Likewise.
29969         * tests/test-memmem.c: Likewise.
29970         * tests/test-memrchr.c: Likewise.
29971         * tests/test-rawmemchr.c: Likewise.
29972         * tests/test-read-file.c: Likewise.
29973         * tests/test-rijndael.c: Likewise.
29974         * tests/test-sockets.c: Likewise.
29975         * tests/test-strchrnul.c: Likewise.
29976         * tests/test-strstr.c: Likewise.
29977         * tests/test-strtod.c: Likewise.
29978         * build-aux/ncftpput-ftp: Likewise.
29979
29980 2010-01-26  Eric Blake  <ebb9@byu.net>
29981
29982         ignore-value: update recommended header name
29983         * modules/ignore-value (Include): Only use <> for headers that
29984         exist in glibc.
29985
29986 2010-01-26  Jim Meyering  <meyering@redhat.com>
29987
29988         test-userspec.c: avoid compiler warnings
29989         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29990         and "initialization discards qualifiers..." warnings.
29991         Put the first "uid" in its own scope, and make char* members "const".
29992
29993 2010-01-25  Bruno Haible  <bruno@clisp.org>
29994
29995         gnulib-tool: Make warning diagnostics consistent.
29996         * gnulib-tool (func_warning): New function.
29997         Use it everywhere where gnulib-tool produces output to stderr and it is
29998         not a fatal error.
29999
30000 2010-01-25  Bruno Haible  <bruno@clisp.org>
30001
30002         Fix test dependencies.
30003         * modules/xstrtol-tests (Depends-on): Add inttypes.
30004         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
30005
30006 2010-01-25 Pádraig Brady <P@draigBrady.com>
30007
30008         syntax-check: detect incorrect boolean macro values in config.h
30009         * modules/maintainer-makefile (configure.ac): Parameterize the location
30010         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
30011         The logic is from Eric Blake and the location indicated by Jim Meyering.
30012         Note the more natural CONFIG_HEADER name is prohibited by automake
30013         for backwards compatibility reasons.
30014         * top/maint.mk (sc_Wundef_boolean): New rule.
30015
30016 2010-01-25  Jim Meyering  <meyering@redhat.com>
30017
30018         bootstrap: detect MacOS 10.6's shasum, too
30019         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
30020         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
30021
30022 2010-01-23  Jim Meyering  <meyering@redhat.com>
30023
30024         xstrtoll: new module
30025         * modules/xstrtoll: New file.
30026         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
30027         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
30028         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
30029         ./configure fails if you use this module and lack "long long".
30030         * modules/xstrtoll-tests: New module.
30031         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
30032         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
30033         new init.sh-based test framework.
30034
30035 2010-01-24  Bruno Haible  <bruno@clisp.org>
30036
30037         Tests for module 'yn'.
30038         * modules/yn-tests: New file.
30039         * tests/test-yn.c: New file.
30040
30041         Tests for module 'y1'.
30042         * modules/y1-tests: New file.
30043         * tests/test-y1.c: New file.
30044
30045         Tests for module 'y0'.
30046         * modules/y0-tests: New file.
30047         * tests/test-y0.c: New file.
30048
30049         Tests for module 'tanh'.
30050         * modules/tanh-tests: New file.
30051         * tests/test-tanh.c: New file.
30052
30053         Tests for module 'tan'.
30054         * modules/tan-tests: New file.
30055         * tests/test-tan.c: New file.
30056
30057         Tests for module 'sqrt'.
30058         * modules/sqrt-tests: New file.
30059         * tests/test-sqrt.c: New file.
30060
30061         Tests for module 'sinh'.
30062         * modules/sinh-tests: New file.
30063         * tests/test-sinh.c: New file.
30064
30065         Tests for module 'sin'.
30066         * modules/sin-tests: New file.
30067         * tests/test-sin.c: New file.
30068
30069         Tests for module 'rint'.
30070         * modules/rint-tests: New file.
30071         * tests/test-rint.c: New file.
30072
30073         Tests for module 'remainder'.
30074         * modules/remainder-tests: New file.
30075         * tests/test-remainder.c: New file.
30076
30077         Tests for module 'pow'.
30078         * modules/pow-tests: New file.
30079         * tests/test-pow.c: New file.
30080
30081         Tests for module 'nextafter'.
30082         * modules/nextafter-tests: New file.
30083         * tests/test-nextafter.c: New file.
30084
30085         Tests for module 'modf'.
30086         * modules/modf-tests: New file.
30087         * tests/test-modf.c: New file.
30088
30089         Tests for module 'logb'.
30090         * modules/logb-tests: New file.
30091         * tests/test-logb.c: New file.
30092
30093         Tests for module 'log1p'.
30094         * modules/log1p-tests: New file.
30095         * tests/test-log1p.c: New file.
30096
30097         Tests for module 'log10'.
30098         * modules/log10-tests: New file.
30099         * tests/test-log10.c: New file.
30100
30101         Tests for module 'log'.
30102         * modules/log-tests: New file.
30103         * tests/test-log.c: New file.
30104
30105         Tests for module 'lgamma'.
30106         * modules/lgamma-tests: New file.
30107         * tests/test-lgamma.c: New file.
30108
30109         Tests for module 'ldexp'.
30110         * modules/ldexp-tests: New file.
30111         * tests/test-ldexp.c: New file.
30112
30113         Tests for module 'jn'.
30114         * modules/jn-tests: New file.
30115         * tests/test-jn.c: New file.
30116
30117         Tests for module 'j1'.
30118         * modules/j1-tests: New file.
30119         * tests/test-j1.c: New file.
30120
30121         Tests for module 'j0'.
30122         * modules/j0-tests: New file.
30123         * tests/test-j0.c: New file.
30124
30125         Tests for module 'hypot'.
30126         * modules/hypot-tests: New file.
30127         * tests/test-hypot.c: New file.
30128
30129         Tests for module 'fmod'.
30130         * modules/fmod-tests: New file.
30131         * tests/test-fmod.c: New file.
30132
30133         Tests for module 'fabs'.
30134         * modules/fabs-tests: New file.
30135         * tests/test-fabs.c: New file.
30136
30137         Tests for module 'exp'.
30138         * modules/exp-tests: New file.
30139         * tests/test-exp.c: New file.
30140
30141         Tests for module 'erfc'.
30142         * modules/erfc-tests: New file.
30143         * tests/test-erfc.c: New file.
30144
30145         Tests for module 'erf'.
30146         * modules/erf-tests: New file.
30147         * tests/test-erf.c: New file.
30148
30149         Tests for module 'cosh'.
30150         * modules/cosh-tests: New file.
30151         * tests/test-cosh.c: New file.
30152
30153         Tests for module 'cos'.
30154         * modules/cos-tests: New file.
30155         * tests/test-cos.c: New file.
30156
30157         Tests for module 'copysign'.
30158         * modules/copysign-tests: New file.
30159         * tests/test-copysign.c: New file.
30160
30161         Tests for module 'cbrt'.
30162         * modules/cbrt-tests: New file.
30163         * tests/test-cbrt.c: New file.
30164
30165         Tests for module 'atan2'.
30166         * modules/atan2-tests: New file.
30167         * tests/test-atan2.c: New file.
30168
30169         Tests for module 'atan'.
30170         * modules/atan-tests: New file.
30171         * tests/test-atan.c: New file.
30172
30173         Tests for module 'asin'.
30174         * modules/asin-tests: New file.
30175         * tests/test-asin.c: New file.
30176
30177         Tests for module 'acos'.
30178         * modules/acos-tests: New file.
30179         * tests/test-acos.c: New file.
30180
30181 2010-01-24  Bruno Haible  <bruno@clisp.org>
30182
30183         Fix tests for common <math.h> functions.
30184         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30185         code snippet that references the function pointer, rather than merely
30186         calling the function. Substitute the FUNC_LIBM variable.
30187         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30188         * modules/acos (configure.ac): Likewise.
30189         * modules/asin (configure.ac): Likewise.
30190         * modules/atan (configure.ac): Likewise.
30191         * modules/atan2 (configure.ac): Likewise.
30192         * modules/cbrt (configure.ac): Likewise.
30193         * modules/copysign (configure.ac): Likewise.
30194         * modules/cos (configure.ac): Likewise.
30195         * modules/cosh (configure.ac): Likewise.
30196         * modules/erf (configure.ac): Likewise.
30197         * modules/erfc (configure.ac): Likewise.
30198         * modules/exp (configure.ac): Likewise.
30199         * modules/fabs (configure.ac): Likewise.
30200         * modules/fmod (configure.ac): Likewise.
30201         * modules/hypot (configure.ac): Likewise.
30202         * modules/j0 (configure.ac): Likewise.
30203         * modules/j1 (configure.ac): Likewise.
30204         * modules/jn (configure.ac): Likewise.
30205         * modules/ldexp (configure.ac): Likewise.
30206         * modules/lgamma (configure.ac): Likewise.
30207         * modules/log (configure.ac): Likewise.
30208         * modules/log10 (configure.ac): Likewise.
30209         * modules/log1p (configure.ac): Likewise.
30210         * modules/logb (configure.ac): Likewise.
30211         * modules/modf (configure.ac): Likewise.
30212         * modules/nextafter (configure.ac): Likewise.
30213         * modules/pow (configure.ac): Likewise.
30214         * modules/remainder (configure.ac): Likewise.
30215         * modules/rint (configure.ac): Likewise.
30216         * modules/sin (configure.ac): Likewise.
30217         * modules/sinh (configure.ac): Likewise.
30218         * modules/tan (configure.ac): Likewise.
30219         * modules/tanh (configure.ac): Likewise.
30220         * modules/y0 (configure.ac): Likewise.
30221         * modules/y1 (configure.ac): Likewise.
30222         * modules/yn (configure.ac): Likewise.
30223
30224 2010-01-24  Bruno Haible  <bruno@clisp.org>
30225
30226         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30227         * tests/test-acosl.c (x): New variable.
30228         (main): Store argument in x and fetch it from x.
30229         * tests/test-asinl.c (x): New variable.
30230         (main): Store argument in x and fetch it from x.
30231         * tests/test-atanl.c (x): New variable.
30232         (main): Store argument in x and fetch it from x.
30233         * tests/test-cosl.c (x): New variable.
30234         (main): Store argument in x and fetch it from x.
30235         * tests/test-expl.c (x): New variable.
30236         (main): Store argument in x and fetch it from x.
30237         * tests/test-logl.c (x): New variable.
30238         (main): Store argument in x and fetch it from x.
30239         * tests/test-sinl.c (x): New variable.
30240         (main): Store argument in x and fetch it from x.
30241         * tests/test-sqrtl.c (x): New variable.
30242         (main): Store argument in x and fetch it from x.
30243         * tests/test-tanl.c (x): New variable.
30244         (main): Store argument in x and fetch it from x.
30245
30246 2010-01-24  Bruno Haible  <bruno@clisp.org>
30247
30248         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30249         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30250         assignments to the initial TESTS_ENVIRONMENT.
30251         * doc/gnulib.texi (Unit test modules): Document it.
30252         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30253         TESTS_ENVIRONMENT.
30254         * modules/btowc-tests (Makefile.am): Likewise.
30255         * modules/c-stack-tests (Makefile.am): Likewise.
30256         * modules/c-strcase-tests (Makefile.am): Likewise.
30257         * modules/copy-file-tests (Makefile.am): Likewise.
30258         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30259         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30260         * modules/mbrtowc-tests (Makefile.am): Likewise.
30261         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30262         * modules/mbscasestr-tests (Makefile.am): Likewise.
30263         * modules/mbschr-tests (Makefile.am): Likewise.
30264         * modules/mbscspn-tests (Makefile.am): Likewise.
30265         * modules/mbsinit-tests (Makefile.am): Likewise.
30266         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30267         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30268         * modules/mbspbrk-tests (Makefile.am): Likewise.
30269         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30270         * modules/mbsrchr-tests (Makefile.am): Likewise.
30271         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30272         * modules/mbsspn-tests (Makefile.am): Likewise.
30273         * modules/mbsstr-tests (Makefile.am): Likewise.
30274         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30275         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30276         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30277         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30278         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30279         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30280         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30281         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30282         * modules/wcrtomb-tests (Makefile.am): Likewise.
30283         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30284         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30285         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30286         assignments from TESTS_ENVIRONMENT.
30287         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30288         augmentation.
30289         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30290         * modules/atexit-tests (Makefile.am): Likewise.
30291         * modules/binary-io-tests (Makefile.am): Likewise.
30292         * modules/closein-tests (Makefile.am): Likewise.
30293         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30294         * modules/exclude-tests (Makefile.am): Likewise.
30295         * modules/fflush-tests (Makefile.am): Likewise.
30296         * modules/fpending-tests (Makefile.am): Likewise.
30297         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30298         * modules/freadahead-tests (Makefile.am): Likewise.
30299         * modules/freadptr-tests (Makefile.am): Likewise.
30300         * modules/freadseek-tests (Makefile.am): Likewise.
30301         * modules/fseek-tests (Makefile.am): Likewise.
30302         * modules/fseeko-tests (Makefile.am): Likewise.
30303         * modules/ftell-tests (Makefile.am): Likewise.
30304         * modules/ftello-tests (Makefile.am): Likewise.
30305         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30306         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30307         * modules/lseek-tests (Makefile.am): Likewise.
30308         * modules/parse-duration-tests (Makefile.am): Likewise.
30309         * modules/perror-tests (Makefile.am): Likewise.
30310         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30311         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30312         * modules/pipe-tests (Makefile.am): Likewise.
30313         * modules/pread-tests (Makefile.am): Likewise.
30314         * modules/printf-posix-tests (Makefile.am): Likewise.
30315         * modules/select-tests (Makefile.am): Likewise.
30316         * modules/sigpipe-tests (Makefile.am): Likewise.
30317         * modules/tsearch-tests (Makefile.am): Likewise.
30318         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30319         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30320         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30321         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30322         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30323         * modules/version-etc-tests (Makefile.am): Likewise.
30324         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30325         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30326         * modules/xalloc-die-tests (Makefile.am): Likewise.
30327         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30328         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30329         * modules/xstrtol-tests (Makefile.am): Likewise.
30330         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30331         * modules/yesno-tests (Makefile.am): Likewise.
30332         Suggested by Jim Meyering.
30333
30334 2010-01-24  Bruno Haible  <bruno@clisp.org>
30335
30336         More documentation.
30337         * doc/gnulib.texi (Writing modules): New chapter.
30338         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30339         the new chapter.
30340
30341 2010-01-24  Jim Meyering  <meyering@redhat.com>
30342
30343         maint.mk: do not prepend "./" after filtering
30344         * top/maint.mk (_prepend_srcdir_prefix): New variable
30345         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30346         "./" when $(srcdir) is ".".
30347
30348         define STREQ(a,b) consistently, removing useless parentheses
30349         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30350         since the only risk is that "a" or "b" contains an unparenthesized
30351         comma, but if either did that, STREQ would have 3 or more arguments.
30352         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30353         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30354         * lib/hash-triple.c (STREQ): Likewise.
30355         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30356         * lib/getugroups.c (STREQ): Likewise.
30357
30358 2010-01-23  Jim Meyering  <meyering@redhat.com>
30359
30360         maint.mk: fix syntax-check in a non-srcdir build directory
30361         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30362         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30363
30364 2010-01-22  Jim Meyering  <meyering@redhat.com>
30365
30366         userspec: add unit tests
30367         * tests/test-userspec.c: New file.
30368         * modules/userspec-tests: Likewise.
30369
30370 2010-01-21  Jim Meyering  <meyering@redhat.com>
30371
30372         maint.mk: handle source file names containing "." robustly
30373         * top/maint.mk (_dot_escaped_srcdir): Define.
30374         (VC_LIST): Use it in LHS of sed substitution.
30375
30376 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30377
30378         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30379         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30380         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30381         from a non-srcdir build.
30382
30383 2010-01-20  Eric Blake  <ebb9@byu.net>
30384
30385         warn-on-use: use instead of link-warning
30386         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30387         * modules/unistd (Depends-on, Makefile.am): Likewise.
30388         * modules/arpa_inet (Depends-on): Replace link-warning with
30389         warn-on-use.
30390         (Makefile.am): Update rules accordingly.
30391         * modules/ctype (Depends-on, Makefile.am): Likewise.
30392         * modules/dirent (Depends-on, Makefile.am): Likewise.
30393         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30394         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30395         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30396         * modules/locale (Depends-on, Makefile.am): Likewise.
30397         * modules/math (Depends-on, Makefile.am): Likewise.
30398         * modules/search (Depends-on, Makefile.am): Likewise.
30399         * modules/signal (Depends-on, Makefile.am): Likewise.
30400         * modules/spawn (Depends-on, Makefile.am): Likewise.
30401         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30402         * modules/string (Depends-on, Makefile.am): Likewise.
30403         * modules/strings (Depends-on, Makefile.am): Likewise.
30404         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30405         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30406         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30407         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30408         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30409         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30410         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30411         * modules/wchar (Depends-on, Makefile.am): Likewise.
30412         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30413         should be poisoned.
30414         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30415         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30416         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30417         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30418         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30419         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30420         * m4/math_h.m4 (gl_MATH_H): Likewise.
30421         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30422         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30423         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30424         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30425         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30426         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30427         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30428         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30429         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30431         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30432         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30433         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30434         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30435         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30436         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30437         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30438         GL_LINK_WARNING.
30439         * lib/ctype.in.h: Likewise.
30440         * lib/dirent.in.h: Likewise.
30441         * lib/fcntl.in.h: Likewise.
30442         * lib/inttypes.in.h: Likewise.
30443         * lib/langinfo.in.h: Likewise.
30444         * lib/locale.in.h: Likewise.
30445         * lib/math.in.h: Likewise.
30446         * lib/search.in.h: Likewise.
30447         * lib/signal.in.h: Likewise.
30448         * lib/spawn.in.h: Likewise.
30449         * lib/stdio.in.h: Likewise.
30450         * lib/stdlib.in.h: Likewise.
30451         * lib/string.in.h: Likewise.
30452         * lib/strings.in.h: Likewise.
30453         * lib/sys_file.in.h: Likewise.
30454         * lib/sys_ioctl.in.h: Likewise.
30455         * lib/sys_select.in.h: Likewise.
30456         * lib/sys_socket.in.h: Likewise.
30457         * lib/sys_stat.in.h: Likewise.
30458         * lib/sys_times.in.h: Likewise.
30459         * lib/sys_utsname.in.h: Likewise.
30460         * lib/unistd.in.h: Likewise.
30461         * lib/wchar.in.h: Likewise.
30462
30463 2010-01-20  Bruno Haible  <bruno@clisp.org>
30464
30465         Avoid duplicate -lm.
30466         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30467         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30468         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30469         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30470         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30471         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30472         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30473         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30474         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30475         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30476         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30477         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30478         Reported by Paolo Bonzini.
30479
30480 2010-01-19  Bruno Haible  <bruno@clisp.org>
30481
30482         langinfo, nl_langinfo: Relicense under LGPLv2+.
30483         * modules/langinfo (License): Change to LGPLv2+.
30484         * modules/nl_langinfo (License): Likewise.
30485         Patch by David Lutterkort <lutter@redhat.com>.
30486
30487 2010-01-19  Bruno Haible  <bruno@clisp.org>
30488
30489         Avoid compilation error with cc on OSF/1 5.1.
30490         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30491         statement, not before.
30492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30493
30494 2010-01-18  Bruno Haible  <bruno@clisp.org>
30495
30496         Avoid a link error due to the __printf__ symbol.
30497         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30498         and 2.6.x.
30499         (__format__, __printf__): Remove definitions.
30500         * lib/argp-fmtstream.h: Likewise.
30501         * lib/argp.h: Likewise.
30502         * lib/error.h: Likewise.
30503         * lib/vasnprintf.h: Likewise.
30504         * lib/xprintf.h: Likewise.
30505         * lib/xvasprintf.h: Likewise.
30506         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30507
30508 2010-01-18  Bruno Haible  <bruno@clisp.org>
30509
30510         Tests for module 'tanl'.
30511         * modules/tanl-tests: New file.
30512         * tests/test-tanl.c: New file.
30513
30514         Tests for module 'sqrtl'.
30515         * modules/sqrtl-tests: New file.
30516         * tests/test-sqrtl.c: New file.
30517
30518         Tests for module 'sinl'.
30519         * modules/sinl-tests: New file.
30520         * tests/test-sinl.c: New file.
30521
30522         Tests for module 'logl'.
30523         * modules/logl-tests: New file.
30524         * tests/test-logl.c: New file.
30525
30526         Tests for module 'expl'.
30527         * modules/expl-tests: New file.
30528         * tests/test-expl.c: New file.
30529
30530         Tests for module 'cosl'.
30531         * modules/cosl-tests: New file.
30532         * tests/test-cosl.c: New file.
30533
30534         Tests for module 'atanl'.
30535         * modules/atanl-tests: New file.
30536         * tests/test-atanl.c: New file.
30537
30538         Tests for module 'asinl'.
30539         * modules/asinl-tests: New file.
30540         * tests/test-asinl.c: New file.
30541
30542         Tests for module 'acosl'.
30543         * modules/acosl-tests: New file.
30544         * tests/test-acosl.c: New file.
30545
30546         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30547         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30548         tanl): Use the standard gnulib idiom.
30549         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30550         * lib/sinl.c: Likewise.
30551         * lib/tanl.c: Don't include trigl.c.
30552         (kernel_tanl): Make static.
30553         * lib/sincosl.c: Include trigl.h first.
30554         * lib/trigl.c: Likewise.
30555         * m4/acosl.m4: New file.
30556         * m4/asinl.m4: New file.
30557         * m4/atanl.m4: New file.
30558         * m4/cosl.m4: New file.
30559         * m4/expl.m4: New file.
30560         * m4/logl.m4: New file.
30561         * m4/sinl.m4: New file.
30562         * m4/sqrtl.m4: New file.
30563         * m4/tanl.m4: New file.
30564         * m4/mathl.m4: Remove file.
30565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30566         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30567         Don't initialize GNULIB_MATHL.
30568         * modules/acosl: New file.
30569         * modules/asinl: New file.
30570         * modules/atanl: New file.
30571         * modules/cosl: New file.
30572         * modules/expl: New file.
30573         * modules/logl: New file.
30574         * modules/sinl: New file.
30575         * modules/sqrtl: New file.
30576         * modules/tanl: New file.
30577         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30578         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30579         substitute GNULIB_MATHL.
30580         * modules/mathl: Rewritten.
30581         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30582         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30583         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30584         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30585         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30586         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30587         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30588         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30589         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30590
30591 2010-01-18  Bruno Haible  <bruno@clisp.org>
30592
30593         sqrt: Make gl_FUNC_SQRT requirable.
30594         * m4/sqrt.m4: New file.
30595         * modules/sqrt (Files): Add it.
30596         (configure.ac): Invoke gl_FUNC_SQRT.
30597
30598 2010-01-18  Bruno Haible  <bruno@clisp.org>
30599
30600         New modules for common <math.h> functions.
30601         * m4/mathfunc.m4: New file.
30602         * modules/acos: New file.
30603         * modules/asin: New file.
30604         * modules/atan: New file.
30605         * modules/atan2: New file.
30606         * modules/cbrt: New file.
30607         * modules/copysign: New file.
30608         * modules/cos: New file.
30609         * modules/cosh: New file.
30610         * modules/erf: New file.
30611         * modules/erfc: New file.
30612         * modules/exp: New file.
30613         * modules/fabs: New file.
30614         * modules/fmod: New file.
30615         * modules/hypot: New file.
30616         * modules/j0: New file.
30617         * modules/j1: New file.
30618         * modules/jn: New file.
30619         * modules/ldexp: New file.
30620         * modules/lgamma: New file.
30621         * modules/log: New file.
30622         * modules/log10: New file.
30623         * modules/log1p: New file.
30624         * modules/logb: New file.
30625         * modules/modf: New file.
30626         * modules/nextafter: New file.
30627         * modules/pow: New file.
30628         * modules/remainder: New file.
30629         * modules/rint: New file.
30630         * modules/sin: New file.
30631         * modules/sinh: New file.
30632         * modules/sqrt: New file.
30633         * modules/tan: New file.
30634         * modules/tanh: New file.
30635         * modules/y0: New file.
30636         * modules/y1: New file.
30637         * modules/yn: New file.
30638         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30639         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30640         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30641         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30642         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30643         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30644         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30645         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30646         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30647         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30648         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30649         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30650         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30651         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30652         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30653         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30654         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30655         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30656         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30657         * doc/posix-functions/log.texi: Mention the 'log' module.
30658         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30659         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30660         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30661         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30662         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30663         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30664         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30665         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30666         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30667         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30668         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30669         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30670         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30671         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30672         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30673         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30674
30675 2010-01-18  Jim Meyering  <meyering@redhat.com>
30676
30677         ignore-value: relax license to LGPLv2+
30678         * modules/ignore-value (License): Relax to LGPLv2+.
30679
30680         getdate: don't leak when TZ contains two or more '"'s
30681         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30682         double quote in TZ after the first one.
30683
30684         readtokens: do not leak internal token_lengths buffer
30685         * lib/readtokens.c (readtokens): Free the local, lengths,
30686         when the supplied "token_lengths" parameter is NULL.
30687
30688 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30689
30690         Fix a couple of missing LIBTHREAD link failures on AIX.
30691         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30692         $(LIBTHREAD).
30693         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30694
30695         Link test-poll against INET_PTON_LIB.
30696         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30697         for inet_pton on Solaris 10.
30698
30699 2010-01-17  Bruno Haible  <bruno@clisp.org>
30700
30701         unistdio/*-sprintf: Fix typo in module description.
30702         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30703         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30704         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30705         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30706         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30707         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30708         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30709         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30710
30711 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30712
30713         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30714         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30715         variables in shell case patterns, for AIX and HP-UX ksh.
30716
30717         Split large sed scripts, for HP-UX sed.
30718         * modules/stdio: Split sed scripts around 50 sed commands,
30719         to avoid HP-UX limit of 99 commands, in the near future.
30720         * modules/string: Likewise.
30721         * modules/unistd: Likewise.
30722
30723         gnulib-tool: avoid writing in the current directory.
30724         * gnulib-tool (func_emit_lib_Makefile_am)
30725         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30726         not in the current directory, so concurrent gnulib-tool
30727         instances do not interfere.
30728
30729 2010-01-16  Jim Meyering  <meyering@redhat.com>
30730
30731         doc: update users.txt
30732         * users.txt: Add grep.
30733         (diffutils, gzip): Update URLs.
30734
30735 2010-01-12  Bruno Haible  <bruno@clisp.org>
30736
30737         posix_spawn: Avoid test failure on Cygwin.
30738         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30739         characters.
30740         Reported by Simon Josefsson.
30741
30742 2010-01-12  Bruno Haible  <bruno@clisp.org>
30743
30744         * tests/test-cond.c (main): When skipping the test, show the reason.
30745
30746 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30747
30748         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30749
30750 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30751
30752         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30753         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30754
30755 2010-01-12  Eric Blake  <ebb9@byu.net>
30756
30757         build: guarantee AS_VAR_IF
30758         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30759         (gl_AS_VAR_IF): Move...
30760         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30761         Reported by Simon Josefsson.
30762
30763 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30764
30765         * lib/stdio.in.h: Fix typo.
30766
30767 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30768
30769         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30770         libgpg-error.
30771
30772 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30773
30774         * tests/test-xalloc-die.sh: Use $EXEEXT.
30775
30776 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30777             Bruno Haible  <bruno@clisp.org>
30778
30779         getlogin, getlogin_r: Avoid test failure.
30780         * tests/test-getlogin.c: Include <stdio.h>.
30781         (main): Skip the test when the function fails because stdin is not a
30782         tty.
30783         * tests/test-getlogin_r.c: Include <stdio.h>.
30784         (main): Skip the test when the function fails because stdin is not a
30785         tty.
30786
30787 2010-01-11  Eric Blake  <ebb9@byu.net>
30788
30789         tests: avoid more large file warnings
30790         * tests/test-fflush.c: Avoid warning about ftell use.
30791         * tests/test-fseek.c: Avoid warning about fseek use.
30792
30793 2010-01-10  Bruno Haible  <bruno@clisp.org>
30794
30795         nproc: Work better on Linux when /proc and /sys are not mounted.
30796         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30797         as lower bound when, on glibc/Linux systems,
30798         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30799         Suggested by Pádraig Brady <P@draigbrady.com>.
30800         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30801
30802         nproc: Refactor.
30803         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30804         extracted from num_processors.
30805         (num_processors): Call it.
30806
30807 2010-01-11  Jim Meyering  <meyering@redhat.com>
30808
30809         utimecmp: avoid new warning from upcoming gcc-4.5.0
30810         * lib/utimecmp.c (BILLION): Define using #define rather than an
30811         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30812
30813 2010-01-11  Eric Blake  <ebb9@byu.net>
30814
30815         math: add portability warnings for classification macros
30816         * modules/math (Depends-on): Add warn-on-use.
30817         (Makefile.am): Provide new substitutions.
30818         * m4/math_h.m4 (gl_MATH_H): Require inline.
30819         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30820         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30821         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30822         implement warnings.
30823
30824         unistd: warn on use of environ without module
30825         * modules/unistd (Depends-on): Add warn-on-use.
30826         (Makefile.am): Provide new substitutions.
30827         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30828         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30829
30830         stdio: warn on suspicious uses
30831         * modules/stdio (Depends-on): Add warn-on-use.
30832         (Makefile.am): Provide new substitutions.
30833         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30834         fseeko.
30835         * lib/stdio.in.h (gets): Always warn on use.
30836         (fseek, ftell): Adjust when warnings are issued, and honor
30837         _GL_NO_LARGE_FILES as a way to silence the warning.
30838         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30839         any warning about large file offsets.
30840         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30841         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30842         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30843         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30844         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30845         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30846         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30847         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30848
30849         warn-on-use: new module
30850         * modules/warn-on-use: New file.
30851         * build-aux/warn-on-use.h: Likewise.
30852         * m4/warn-on-use.m4: Likewise.
30853         * MODULES.html.sh (Support for building): Mention it.
30854
30855 2010-01-10  Bruno Haible  <bruno@clisp.org>
30856
30857         Tests for module 'unistr/u32-strdup'.
30858         * modules/unistr/u32-strdup-tests: New file.
30859         * tests/unistr/test-u32-strdup.c: New file.
30860
30861         Tests for module 'unistr/u16-strdup'.
30862         * modules/unistr/u16-strdup-tests: New file.
30863         * tests/unistr/test-u16-strdup.c: New file.
30864
30865         Tests for module 'unistr/u8-strdup'.
30866         * modules/unistr/u8-strdup-tests: New file.
30867         * tests/unistr/test-u8-strdup.c: New file.
30868         * tests/unistr/test-strdup.h: New file.
30869
30870         Tests for module 'unistr/u32-strncmp'.
30871         * modules/unistr/u32-strncmp-tests: New file.
30872         * tests/unistr/test-u32-strncmp.c: New file.
30873
30874         Tests for module 'unistr/u16-strncmp'.
30875         * modules/unistr/u16-strncmp-tests: New file.
30876         * tests/unistr/test-u16-strncmp.c: New file.
30877
30878         Tests for module 'unistr/u8-strncmp'.
30879         * modules/unistr/u8-strncmp-tests: New file.
30880         * tests/unistr/test-u8-strncmp.c: New file.
30881         * tests/unistr/test-strncmp.h: New file.
30882
30883         Tests for module 'unistr/u32-strcoll'.
30884         * modules/unistr/u32-strcoll-tests: New file.
30885         * tests/unistr/test-u32-strcoll.c: New file.
30886
30887         Tests for module 'unistr/u16-strcoll'.
30888         * modules/unistr/u16-strcoll-tests: New file.
30889         * tests/unistr/test-u16-strcoll.c: New file.
30890
30891         Tests for module 'unistr/u8-strcoll'.
30892         * modules/unistr/u8-strcoll-tests: New file.
30893         * tests/unistr/test-u8-strcoll.c: New file.
30894
30895         Tests for module 'unistr/u32-strcmp'.
30896         * modules/unistr/u32-strcmp-tests: New file.
30897         * tests/unistr/test-u32-strcmp.c: New file.
30898         * tests/unistr/test-u32-strcmp.h: New file.
30899
30900         Tests for module 'unistr/u16-strcmp'.
30901         * modules/unistr/u16-strcmp-tests: New file.
30902         * tests/unistr/test-u16-strcmp.c: New file.
30903         * tests/unistr/test-u16-strcmp.h: New file.
30904
30905         Tests for module 'unistr/u8-strcmp'.
30906         * modules/unistr/u8-strcmp-tests: New file.
30907         * tests/unistr/test-u8-strcmp.c: New file.
30908         * tests/unistr/test-u8-strcmp.h: New file.
30909         * tests/unistr/test-strcmp.h: New file.
30910
30911         Tests for module 'unistr/u32-strncat'.
30912         * modules/unistr/u32-strncat-tests: New file.
30913         * tests/unistr/test-u32-strncat.c: New file.
30914
30915         Tests for module 'unistr/u16-strncat'.
30916         * modules/unistr/u16-strncat-tests: New file.
30917         * tests/unistr/test-u16-strncat.c: New file.
30918
30919         Tests for module 'unistr/u8-strncat'.
30920         * modules/unistr/u8-strncat-tests: New file.
30921         * tests/unistr/test-u8-strncat.c: New file.
30922         * tests/unistr/test-strncat.h: New file.
30923
30924         Tests for module 'unistr/u32-strcat'.
30925         * modules/unistr/u32-strcat-tests: New file.
30926         * tests/unistr/test-u32-strcat.c: New file.
30927
30928         Tests for module 'unistr/u16-strcat'.
30929         * modules/unistr/u16-strcat-tests: New file.
30930         * tests/unistr/test-u16-strcat.c: New file.
30931
30932         Tests for module 'unistr/u8-strcat'.
30933         * modules/unistr/u8-strcat-tests: New file.
30934         * tests/unistr/test-u8-strcat.c: New file.
30935         * tests/unistr/test-strcat.h: New file.
30936
30937         Tests for module 'unistr/u32-stpncpy'.
30938         * modules/unistr/u32-stpncpy-tests: New file.
30939         * tests/unistr/test-u32-stpncpy.c: New file.
30940
30941         Tests for module 'unistr/u16-stpncpy'.
30942         * modules/unistr/u16-stpncpy-tests: New file.
30943         * tests/unistr/test-u16-stpncpy.c: New file.
30944
30945         Tests for module 'unistr/u8-stpncpy'.
30946         * modules/unistr/u8-stpncpy-tests: New file.
30947         * tests/unistr/test-u8-stpncpy.c: New file.
30948         * tests/unistr/test-stpncpy.h: New file.
30949
30950         Tests for module 'unistr/u32-strncpy'.
30951         * modules/unistr/u32-strncpy-tests: New file.
30952         * tests/unistr/test-u32-strncpy.c: New file.
30953
30954         Tests for module 'unistr/u16-strncpy'.
30955         * modules/unistr/u16-strncpy-tests: New file.
30956         * tests/unistr/test-u16-strncpy.c: New file.
30957
30958         Tests for module 'unistr/u8-strncpy'.
30959         * modules/unistr/u8-strncpy-tests: New file.
30960         * tests/unistr/test-u8-strncpy.c: New file.
30961         * tests/unistr/test-strncpy.h: New file.
30962
30963         Tests for module 'unistr/u32-stpcpy'.
30964         * modules/unistr/u32-stpcpy-tests: New file.
30965         * tests/unistr/test-u32-stpcpy.c: New file.
30966
30967         Tests for module 'unistr/u16-stpcpy'.
30968         * modules/unistr/u16-stpcpy-tests: New file.
30969         * tests/unistr/test-u16-stpcpy.c: New file.
30970
30971         Tests for module 'unistr/u8-stpcpy'.
30972         * modules/unistr/u8-stpcpy-tests: New file.
30973         * tests/unistr/test-u8-stpcpy.c: New file.
30974         * tests/unistr/test-stpcpy.h: New file.
30975
30976         Tests for module 'unistr/u32-strcpy'.
30977         * modules/unistr/u32-strcpy-tests: New file.
30978         * tests/unistr/test-u32-strcpy.c: New file.
30979
30980         Tests for module 'unistr/u16-strcpy'.
30981         * modules/unistr/u16-strcpy-tests: New file.
30982         * tests/unistr/test-u16-strcpy.c: New file.
30983
30984         Tests for module 'unistr/u8-strcpy'.
30985         * modules/unistr/u8-strcpy-tests: New file.
30986         * tests/unistr/test-u8-strcpy.c: New file.
30987         * tests/unistr/test-strcpy.h: New file.
30988
30989         Tests for module 'unistr/u32-strnlen'.
30990         * modules/unistr/u32-strnlen-tests: New file.
30991         * tests/unistr/test-u32-strnlen.c: New file.
30992
30993         Tests for module 'unistr/u16-strnlen'.
30994         * modules/unistr/u16-strnlen-tests: New file.
30995         * tests/unistr/test-u16-strnlen.c: New file.
30996
30997         Tests for module 'unistr/u8-strnlen'.
30998         * modules/unistr/u8-strnlen-tests: New file.
30999         * tests/unistr/test-u8-strnlen.c: New file.
31000         * tests/unistr/test-strnlen.h: New file.
31001
31002         Tests for module 'unistr/u32-strlen'.
31003         * modules/unistr/u32-strlen-tests: New file.
31004         * tests/unistr/test-u32-strlen.c: New file.
31005
31006         Tests for module 'unistr/u16-strlen'.
31007         * modules/unistr/u16-strlen-tests: New file.
31008         * tests/unistr/test-u16-strlen.c: New file.
31009
31010         Tests for module 'unistr/u8-strlen'.
31011         * modules/unistr/u8-strlen-tests: New file.
31012         * tests/unistr/test-u8-strlen.c: New file.
31013
31014         Tests for module 'unistr/u32-prev'.
31015         * modules/unistr/u32-prev-tests: New file.
31016         * tests/unistr/test-u32-prev.c: New file.
31017
31018         Tests for module 'unistr/u16-prev'.
31019         * modules/unistr/u16-prev-tests: New file.
31020         * tests/unistr/test-u16-prev.c: New file.
31021
31022         Tests for module 'unistr/u8-prev'.
31023         * modules/unistr/u8-prev-tests: New file.
31024         * tests/unistr/test-u8-prev.c: New file.
31025
31026         Tests for module 'unistr/u32-next'.
31027         * modules/unistr/u32-next-tests: New file.
31028         * tests/unistr/test-u32-next.c: New file.
31029
31030         Tests for module 'unistr/u16-next'.
31031         * modules/unistr/u16-next-tests: New file.
31032         * tests/unistr/test-u16-next.c: New file.
31033
31034         Tests for module 'unistr/u8-next'.
31035         * modules/unistr/u8-next-tests: New file.
31036         * tests/unistr/test-u8-next.c: New file.
31037
31038         Tests for module 'unistr/u32-strmbtouc'.
31039         * modules/unistr/u32-strmbtouc-tests: New file.
31040         * tests/unistr/test-u32-strmbtouc.c: New file.
31041
31042         Tests for module 'unistr/u16-strmbtouc'.
31043         * modules/unistr/u16-strmbtouc-tests: New file.
31044         * tests/unistr/test-u16-strmbtouc.c: New file.
31045
31046         Tests for module 'unistr/u8-strmbtouc'.
31047         * modules/unistr/u8-strmbtouc-tests: New file.
31048         * tests/unistr/test-u8-strmbtouc.c: New file.
31049
31050         Tests for module 'unistr/u32-strmblen'.
31051         * modules/unistr/u32-strmblen-tests: New file.
31052         * tests/unistr/test-u32-strmblen.c: New file.
31053
31054         Tests for module 'unistr/u16-strmblen'.
31055         * modules/unistr/u16-strmblen-tests: New file.
31056         * tests/unistr/test-u16-strmblen.c: New file.
31057
31058         Tests for module 'unistr/u8-strmblen'.
31059         * modules/unistr/u8-strmblen-tests: New file.
31060         * tests/unistr/test-u8-strmblen.c: New file.
31061
31062         Tests for module 'unistr/u32-cpy-alloc'.
31063         * modules/unistr/u32-cpy-alloc-tests: New file.
31064         * tests/unistr/test-u32-cpy-alloc.c: New file.
31065
31066         Tests for module 'unistr/u16-cpy-alloc'.
31067         * modules/unistr/u16-cpy-alloc-tests: New file.
31068         * tests/unistr/test-u16-cpy-alloc.c: New file.
31069
31070         Tests for module 'unistr/u8-cpy-alloc'.
31071         * modules/unistr/u8-cpy-alloc-tests: New file.
31072         * tests/unistr/test-u8-cpy-alloc.c: New file.
31073         * tests/unistr/test-cpy-alloc.h: New file.
31074
31075         Tests for module 'unistr/u32-mbsnlen'.
31076         * modules/unistr/u32-mbsnlen-tests: New file.
31077         * tests/unistr/test-u32-mbsnlen.c: New file.
31078
31079         Tests for module 'unistr/u16-mbsnlen'.
31080         * modules/unistr/u16-mbsnlen-tests: New file.
31081         * tests/unistr/test-u16-mbsnlen.c: New file.
31082
31083         Tests for module 'unistr/u8-mbsnlen'.
31084         * modules/unistr/u8-mbsnlen-tests: New file.
31085         * tests/unistr/test-u8-mbsnlen.c: New file.
31086
31087         Tests for module 'unistr/u32-chr'.
31088         * modules/unistr/u32-chr-tests: New file.
31089         * tests/unistr/test-u32-chr.c: New file.
31090
31091         Tests for module 'unistr/u16-chr'.
31092         * modules/unistr/u16-chr-tests: New file.
31093         * tests/unistr/test-u16-chr.c: New file.
31094
31095         Tests for module 'unistr/u8-chr'.
31096         * modules/unistr/u8-chr-tests: New file.
31097         * tests/unistr/test-u8-chr.c: New file.
31098         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
31099
31100         Tests for module 'unistr/u32-cmp2'.
31101         * modules/unistr/u32-cmp2-tests: New file.
31102         * tests/unistr/test-u32-cmp2.c: New file.
31103
31104         Tests for module 'unistr/u16-cmp2'.
31105         * modules/unistr/u16-cmp2-tests: New file.
31106         * tests/unistr/test-u16-cmp2.c: New file.
31107
31108         Tests for module 'unistr/u8-cmp2'.
31109         * modules/unistr/u8-cmp2-tests: New file.
31110         * tests/unistr/test-u8-cmp2.c: New file.
31111         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
31112
31113         Tests for module 'unistr/u32-cmp'.
31114         * modules/unistr/u32-cmp-tests: New file.
31115         * tests/unistr/test-u32-cmp.c: New file.
31116
31117         Tests for module 'unistr/u16-cmp'.
31118         * modules/unistr/u16-cmp-tests: New file.
31119         * tests/unistr/test-u16-cmp.c: New file.
31120
31121         Tests for module 'unistr/u8-cmp'.
31122         * modules/unistr/u8-cmp-tests: New file.
31123         * tests/unistr/test-u8-cmp.c: New file.
31124         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
31125
31126         Tests for module 'unistr/u32-set'.
31127         * modules/unistr/u32-set-tests: New file.
31128         * tests/unistr/test-u32-set.c: New file.
31129
31130         Tests for module 'unistr/u16-set'.
31131         * modules/unistr/u16-set-tests: New file.
31132         * tests/unistr/test-u16-set.c: New file.
31133
31134         Tests for module 'unistr/u8-set'.
31135         * modules/unistr/u8-set-tests: New file.
31136         * tests/unistr/test-u8-set.c: New file.
31137         * tests/unistr/test-set.h: New file.
31138
31139         Tests for module 'unistr/u32-move'.
31140         * modules/unistr/u32-move-tests: New file.
31141         * tests/unistr/test-u32-move.c: New file.
31142
31143         Tests for module 'unistr/u16-move'.
31144         * modules/unistr/u16-move-tests: New file.
31145         * tests/unistr/test-u16-move.c: New file.
31146
31147         Tests for module 'unistr/u8-move'.
31148         * modules/unistr/u8-move-tests: New file.
31149         * tests/unistr/test-u8-move.c: New file.
31150         * tests/unistr/test-move.h: New file.
31151
31152         Tests for module 'unistr/u32-cpy'.
31153         * modules/unistr/u32-cpy-tests: New file.
31154         * tests/unistr/test-u32-cpy.c: New file.
31155
31156         Tests for module 'unistr/u16-cpy'.
31157         * modules/unistr/u16-cpy-tests: New file.
31158         * tests/unistr/test-u16-cpy.c: New file.
31159
31160         Tests for module 'unistr/u8-cpy'.
31161         * modules/unistr/u8-cpy-tests: New file.
31162         * tests/unistr/test-u8-cpy.c: New file.
31163         * tests/unistr/test-cpy.h: New file.
31164
31165 2010-01-09  Bruno Haible  <bruno@clisp.org>
31166
31167         Tests for module 'unistr/u32-uctomb'.
31168         * modules/unistr/u32-uctomb-tests: New file.
31169         * tests/unistr/test-u32-uctomb.c: New file.
31170
31171         Tests for module 'unistr/u16-uctomb'.
31172         * modules/unistr/u16-uctomb-tests: New file.
31173         * tests/unistr/test-u16-uctomb.c: New file.
31174
31175         Tests for module 'unistr/u8-uctomb'.
31176         * modules/unistr/u8-uctomb-tests: New file.
31177         * tests/unistr/test-u8-uctomb.c: New file.
31178
31179         Tests for module 'unistr/u32-mbtoucr'.
31180         * modules/unistr/u32-mbtoucr-tests: New file.
31181         * tests/unistr/test-u32-mbtoucr.c: New file.
31182
31183         Tests for module 'unistr/u16-mbtoucr'.
31184         * modules/unistr/u16-mbtoucr-tests: New file.
31185         * tests/unistr/test-u16-mbtoucr.c: New file.
31186
31187         Tests for module 'unistr/u8-mbtoucr'.
31188         * modules/unistr/u8-mbtoucr-tests: New file.
31189         * tests/unistr/test-u8-mbtoucr.c: New file.
31190
31191         Tests for module 'unistr/u32-mbtouc'.
31192         * modules/unistr/u32-mbtouc-tests: New file.
31193         * tests/unistr/test-u32-mbtouc.c: New file.
31194
31195         Tests for module 'unistr/u16-mbtouc'.
31196         * modules/unistr/u16-mbtouc-tests: New file.
31197         * tests/unistr/test-u16-mbtouc.c: New file.
31198
31199         Tests for module 'unistr/u8-mbtouc'.
31200         * modules/unistr/u8-mbtouc-tests: New file.
31201         * tests/unistr/test-u8-mbtouc.c: New file.
31202
31203         Tests for module 'unistr/u32-mbtouc-unsafe'.
31204         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31205         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31206         * tests/unistr/test-u32-mbtouc.h: New file.
31207
31208         Tests for module 'unistr/u16-mbtouc-unsafe'.
31209         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31210         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31211         * tests/unistr/test-u16-mbtouc.h: New file.
31212
31213         Tests for module 'unistr/u8-mbtouc-unsafe'.
31214         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31215         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31216         * tests/unistr/test-u8-mbtouc.h: New file.
31217
31218         Tests for module 'unistr/u32-mblen'.
31219         * modules/unistr/u32-mblen-tests: New file.
31220         * tests/unistr/test-u32-mblen.c: New file.
31221
31222         Tests for module 'unistr/u16-mblen'.
31223         * modules/unistr/u16-mblen-tests: New file.
31224         * tests/unistr/test-u16-mblen.c: New file.
31225
31226         Tests for module 'unistr/u8-mblen'.
31227         * modules/unistr/u8-mblen-tests: New file.
31228         * tests/unistr/test-u8-mblen.c: New file.
31229
31230         Tests for module 'unistr/u32-to-u16'.
31231         * modules/unistr/u32-to-u16-tests: New file.
31232         * tests/unistr/test-u32-to-u16.c: New file.
31233
31234         Tests for module 'unistr/u32-to-u8'.
31235         * modules/unistr/u32-to-u8-tests: New file.
31236         * tests/unistr/test-u32-to-u8.c: New file.
31237
31238         Tests for module 'unistr/u16-to-u32'.
31239         * modules/unistr/u16-to-u32-tests: New file.
31240         * tests/unistr/test-u16-to-u32.c: New file.
31241
31242         Tests for module 'unistr/u16-to-u8'.
31243         * modules/unistr/u16-to-u8-tests: New file.
31244         * tests/unistr/test-u16-to-u8.c: New file.
31245
31246         Tests for module 'unistr/u8-to-u32'.
31247         * modules/unistr/u8-to-u32-tests: New file.
31248         * tests/unistr/test-u8-to-u32.c: New file.
31249
31250         Tests for module 'unistr/u8-to-u16'.
31251         * modules/unistr/u8-to-u16-tests: New file.
31252         * tests/unistr/test-u8-to-u16.c: New file.
31253
31254         Tests for module 'unistr/u32-check'.
31255         * modules/unistr/u32-check-tests: New file.
31256         * tests/unistr/test-u32-check.c: New file.
31257
31258         Tests for module 'unistr/u16-check'.
31259         * modules/unistr/u16-check-tests: New file.
31260         * tests/unistr/test-u16-check.c: New file.
31261
31262         Tests for module 'unistr/u8-check'.
31263         * modules/unistr/u8-check-tests: New file.
31264         * tests/unistr/test-u8-check.c: New file.
31265
31266         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31267         (category_equals): New function.
31268         (main): Add more tests.
31269         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31270
31271         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31272
31273 2010-01-10  Bruno Haible  <bruno@clisp.org>
31274
31275         unistr/u*-strcoll: Try harder to distinguish different strings.
31276         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31277         compare s1 and s2 to see if they are different.
31278
31279 2010-01-10  Bruno Haible  <bruno@clisp.org>
31280
31281         unistr/u*-stpncpy: Fix the return value.
31282         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31283         description of the return value consistent with stpncpy in glibc.
31284         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31285         written non-NUL unit.
31286
31287 2010-01-10  Bruno Haible  <bruno@clisp.org>
31288
31289         unistr/u*-next: Add missing dependencies.
31290         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31291         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31292         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31293
31294 2010-01-10  Bruno Haible  <bruno@clisp.org>
31295
31296         unistr/u8-mbsnlen: Fix return value for incomplete character.
31297         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31298         u8_mblen.
31299         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31300         Remove unistr/u8-mblen.
31301         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31302         u16_mblen.
31303         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31304         Remove unistr/u16-mblen.
31305
31306 2010-01-10  Bruno Haible  <bruno@clisp.org>
31307
31308         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31309         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31310         Reported by Brian Gough <bjg@gnu.org> and
31311         Chris Clayton <chris2553@googlemail.com> via
31312         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31313
31314 2010-01-09  Bruno Haible  <bruno@clisp.org>
31315
31316         unistr/u16-to-u32: Reject invalid input.
31317         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31318         u16_mbtouc.
31319         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31320         Remove unistr/u16-mbtouc.
31321
31322         unistr/u16-to-u8: Reject invalid input.
31323         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31324         u16_mbtouc.
31325         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31326         Remove unistr/u16-mbtouc.
31327
31328         unistr/u8-to-u32: Reject invalid input.
31329         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31330         u8_mbtouc.
31331         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31332         Remove unistr/u8-mbtouc.
31333
31334         unistr/u8-to-u16: Reject invalid input.
31335         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31336         u8_mbtouc.
31337         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31338         Remove unistr/u8-mbtouc.
31339
31340 2010-01-09  Bruno Haible  <bruno@clisp.org>
31341
31342         Tests for module 'getlogin'.
31343         * modules/getlogin-tests: New file.
31344         * tests/test-getlogin.c: New file.
31345
31346         New module 'getlogin'.
31347         * lib/unistd.in.h (getlogin): New declaration.
31348         * lib/getlogin.c: New file.
31349         * m4/getlogin.m4: New file.
31350         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31351         HAVE_GETLOGIN.
31352         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31353         HAVE_GETLOGIN.
31354         * modules/getlogin: New file.
31355         * doc/posix-functions/getlogin.texi: Mention the new module.
31356         Reported by John W. Eaton <jwe@gnu.org>.
31357
31358 2010-01-09  Bruno Haible  <bruno@clisp.org>
31359
31360         getlogin_r: Support for native Windows.
31361         * lib/getlogin_r.c: Include <windows.h>
31362         (getlogin_r): Implement for native Windows.
31363         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31364         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31365         via John W. Eaton <jwe@gnu.org>.
31366
31367 2010-01-09  Bruno Haible  <bruno@clisp.org>
31368
31369         getlogin_r: Small fixes.
31370         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31371         succeeds.
31372         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31373         before testing whether getlogin_r is declared. No need to set
31374         HAVE_DECL_GETLOGIN_R to 1.
31375         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31376
31377 2010-01-09  Bruno Haible  <bruno@clisp.org>
31378
31379         * lib/unistd.in.h (getlogin_r): Add comment.
31380
31381 2010-01-09  Bruno Haible  <bruno@clisp.org>
31382
31383         Tests for module 'getlogin_r'.
31384         * modules/getlogin_r-tests: New file.
31385         * tests/test-getlogin_r.c: New file.
31386
31387 2010-01-09  Jim Meyering  <meyering@redhat.com>
31388
31389         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31390         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31391         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31392
31393 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31394
31395         * lib/dup2.c (rpl_dup2): Improve comment.
31396
31397 2010-01-08  Eric Blake  <ebb9@byu.net>
31398
31399         maint.mk: allow packages to add makefile @@ exceptions
31400         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31401         (sc_makefile_check): Rename...
31402         (sc_makefile_at_at_check): ...to this, and use hook.
31403
31404         dup2: work around mingw bug
31405         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31406         Reported by Simon Josefsson.
31407
31408 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31409
31410         glob: Fix C++ compilation.
31411         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31412         C++.
31413
31414 2010-01-07  Bruno Haible  <bruno@clisp.org>
31415
31416         Fix indentation of wctype.in.h, broken since 2007-01-06.
31417         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31418
31419 2010-01-07  Bruno Haible  <bruno@clisp.org>
31420
31421         mbslen: Avoid collision with system function.
31422         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31423         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31424         * m4/mbslen.m4: New file.
31425         * modules/mbslen (Files): Add it.
31426         (configure.ac): Invoke gl_MBSLEN.
31427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31428         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31429         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31430         via Ian Beckwith <ianb@erislabs.net>.
31431
31432 2010-01-07  Bruno Haible  <bruno@clisp.org>
31433
31434         dirent: Document the last fix.
31435         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31436
31437 2010-01-07  Bruno Haible  <bruno@clisp.org>
31438
31439         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31440         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31441         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31442         va_list are defined.
31443         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31444         Reported by Eric Blake.
31445
31446 2010-01-07  Bruno Haible  <bruno@clisp.org>
31447
31448         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31449         * modules/xlist (Depends-on): Add 'list',
31450         * modules/xoset (Depends-on): Add 'oset'.
31451         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31452
31453 2010-01-07  Bruno Haible  <bruno@clisp.org>
31454
31455         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31456         * doc/posix-functions/strncasecmp.texi: Likewise.
31457
31458 2010-01-07  Bruno Haible  <bruno@clisp.org>
31459
31460         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31461
31462 2010-01-07  John W. Eaton  <jwe@octave.org>
31463
31464         wctype: allow C++ use
31465         * lib/wctype.in.h: Add extern "C" block for C++.
31466
31467 2010-01-06  Eric Blake  <ebb9@byu.net>
31468
31469         maint.mk: detect incorrect GFDL usage
31470         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31471
31472 2010-01-06  Jim Meyering  <meyering@redhat.com>
31473         and Eric Blake  <ebb9@byu.net>
31474
31475         maint.mk: ignore multi-line copyright in NEWS
31476         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31477
31478 2010-01-06  Eric Blake  <ebb9@byu.net>
31479
31480         select: add missing dependency
31481         * modules/select-tests (Depends-on): Move sockets dependency...
31482         * modules/select (Depends-on): ...here.
31483         Reported by Ian Beckwith.
31484
31485         doc: regenerate INSTALL
31486         * doc/INSTALL: Reflect recent autoconf update.
31487         * doc/INSTALL.ISO: Likewise.
31488         * doc/INSTALL.UTF-8: Likewise.
31489
31490         pread: fix compilation on glibc
31491         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31492         Reported by Ralf Wildenhues.
31493
31494         dirent: fix test failure
31495         * lib/dirent.in.h (includes): Guarantee ino_t.
31496         Reported by Ralf Wildenhues.
31497
31498 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31499
31500         linkat, renameat: avoid bad free
31501         * lib/at-func2.c (at_func2): Fix typo.
31502         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31503
31504 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31505
31506         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31507         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31508         to avoid failure of symlink test later.
31509
31510 2010-01-06  Eric Blake  <ebb9@byu.net>
31511
31512         stdio, unistd: guarantee ssize_t
31513         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31514         2008 are exposed when needed.
31515         * lib/stdio.in.h (includes): Likewise.
31516         Reported by Ralf Wildenhues.
31517
31518 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31519
31520         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31521         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31522         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31523
31524 2010-01-06  Jim Meyering  <meyering@redhat.com>
31525
31526         readtokens: this module *does* require xalloc.h
31527         It uses only functions that were omitted by the old syntax-check rule.
31528         * lib/readtokens.c: Include "xalloc.h" once again.
31529         * modules/readtokens (Depends-on): Add xalloc.
31530         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31531
31532 2010-01-05  Eric Blake  <ebb9@byu.net>
31533
31534         maint: support 'make announcement' from a VPATH build
31535         * top/maint.mk (announcement): Look for correct NEWS file.
31536
31537 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31538
31539         utimens (fdutimens): ignore a negative FD, per contract
31540         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31541         when we have a valid file descriptor.  Otherwise, using a brand
31542         new glibc (with just-patched futimens that now fails with EBADF)
31543         would cause this function to fail with ENOSYS.
31544         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31545         See also http://bugzilla.redhat.com/552320.
31546
31547 2010-01-05  Eric Blake  <ebb9@byu.net>
31548
31549         strcase: document what it provides
31550         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31551         gnulib module.
31552         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31553         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31554
31555 2010-01-05  Jim Meyering  <meyering@redhat.com>
31556
31557         maint: remove useless inclusions of "xalloc.h"
31558         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31559         * lib/readtokens.c: Likewise.
31560         * lib/same.c: Likewise.
31561         * modules/getloadavg (Depends-on): Remove xalloc.
31562         * modules/readtokens: Likewise.
31563         * modules/same: Likewise.
31564
31565         maint.mk: include 4 more function names in alloca.h-checking regexp
31566         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31567         regexp.  Before, we would give a false-positive (saying alloca.h
31568         is included unnecessarily) when the only uses involved omitted symbols.
31569
31570         xalloc.h: use consistent formatting
31571         * lib/xalloc.h: Move declarations to start in the first column.
31572
31573 2010-01-05  Eric Blake  <ebb9@byu.net>
31574
31575         mkdir: avoid xalloc
31576         * lib/mkdir.c (includes): Drop unused header.
31577         Reported by John W. Eaton.
31578
31579 2010-01-04  Jim Meyering  <meyering@redhat.com>
31580
31581         nl_langinfo: avoid configure-time syntax error
31582         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31583         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31584         the empty string.  Don't let that provoke a shell syntax error.
31585
31586         regcomp, regexec, fnmatch: avoid array bounds read error
31587         * lib/regcomp.c (build_equiv_class): From glibc:
31588         Use only the low 24 bits of a findidx return value as an index
31589         into the weights array.  Patch by Ulrich Drepper:
31590         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31591         * lib/regexec.c (check_node_accept_bytes): Likewise.
31592         * lib/fnmatch_loop.c (FCT): Likewise.
31593
31594         regcomp: skip collseq lookup when there are no rules
31595         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31596         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31597
31598         regcomp: recognize ill-formed { } expressions
31599         * lib/regcomp.c (parse_dup_op): From glibc:
31600         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31601
31602         regcomp: fix typo in comment
31603         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31604         s/satisfy/satisfies/.
31605
31606         regcomp: sync from glibc: remove dead store
31607         * lib/regcomp.c (duplicate_node_closure): Remove useless
31608         search_duplicated_node call and dead store.
31609
31610         regcomp: sync from glibc; always use nl_langinfo
31611         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31612         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31613         * modules/regex (Depends-on): Add nl_langinfo.
31614
31615 2010-01-04  Eric Blake  <ebb9@byu.net>
31616
31617         fdopendir: fix configure test
31618         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31619
31620 2010-01-01  Bruno Haible  <bruno@clisp.org>
31621
31622         wchar: Remove unused configure check.
31623         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31624
31625 2010-01-01  Eric Blake  <ebb9@byu.net>
31626
31627         headers: make check of system header explicit
31628         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31629         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31630         ourselves.
31631         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31632         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31633         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31634         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31635         internals.
31636         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31637         missing.
31638         Suggested by Bruno Haible.
31639
31640 2010-01-01  Jim Meyering  <meyering@redhat.com>
31641
31642         ChangeLog: tweak to eliminate unnecessary copyright line
31643         * ChangeLog: Remove a copyright line that was mistakenly updated
31644         by today's update-copyright run.  Reported by Eric Blake.
31645
31646         test-update-copyright: don't let envvar setting cause test failure
31647         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31648
31649 2010-01-01  Bruno Haible  <bruno@clisp.org>
31650
31651         localename: Avoid gcc warning.
31652         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31653         function if it is not used.
31654
31655 2010-01-01  Jim Meyering  <meyering@redhat.com>
31656
31657         update nearly all FSF copyright year lists to include 2010
31658         Use the same procedure as for 2009, outlined in
31659         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31660
31661         version-etc: set COPYRIGHT_YEAR to 2010
31662         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31663
31664 2009-12-31  Eric Blake  <ebb9@byu.net>
31665
31666         doc: correct availability of cygwin 1.5.x getopt
31667         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31668         variables.
31669         * doc/posix-functions/opterr.texi (opterr): Likewise.
31670         * doc/posix-functions/optind.texi (optind): Likewise.
31671         * doc/posix-functions/optopt.texi (optopt): Likewise.
31672         * doc/posix-functions/tzname.texi (tzname): Likewise.
31673
31674         openat: update maintainer
31675         * modules/openat (Maintainer): Add myself.
31676
31677         utimens: avoid shadowing warning
31678         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31679         buffers into one, to avoid shadowing, as well as avoiding a
31680         redundant stat.
31681         Reported by Jim Meyering.
31682
31683         test-dup2: avoid compiler warning
31684         * tests/test-dup2.c (is_inheritable): Only define if used.
31685
31686 2010-01-01  Bruno Haible  <bruno@clisp.org>
31687
31688         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31689         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31690         defined, use wctomb instead of wcrtomb.
31691
31692 2010-01-01  Bruno Haible  <bruno@clisp.org>
31693
31694         iconv: Reject native Solaris iconv.
31695         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31696         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31697
31698 2009-12-31  Bruno Haible  <bruno@clisp.org>
31699
31700         * tests/test-signal.c (main): Remove test of 'SIG'.
31701
31702 2009-12-31  Bruno Haible  <bruno@clisp.org>
31703
31704         spawn: Fix incomplete fix.
31705         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31706         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31707         warnings for GNULIB_POSIXCHECK again.
31708         Reported by Eric Blake.
31709
31710 2009-12-31  Bruno Haible  <bruno@clisp.org>
31711
31712         Avoid namespace pollution on glibc systems.
31713         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31714         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31715         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31716         glibc systems.
31717
31718 2009-12-31  Bruno Haible  <bruno@clisp.org>
31719
31720         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31721         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31722         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31723         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31724         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31725         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31726         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31727
31728 2009-12-31  Bruno Haible  <bruno@clisp.org>
31729
31730         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31731         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31732         afterwards.
31733
31734 2009-12-31  Bruno Haible  <bruno@clisp.org>
31735
31736         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31737         SYS_UTSNAME_H.
31738
31739 2009-12-31  Bruno Haible  <bruno@clisp.org>
31740
31741         spawn: Fix misapplied patch.
31742         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31743         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31744         warnings for GNULIB_POSIXCHECK.
31745
31746 2009-12-31  Bruno Haible  <bruno@clisp.org>
31747
31748         times: Update after sys_times changed.
31749         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31750         * modules/times (Files): Add it.
31751         (configure.ac): Invoke gl_FUNC_TIMES.
31752
31753 2009-12-31  Bruno Haible  <bruno@clisp.org>
31754
31755         Use AC_C_INLINE where necessary.
31756         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31757         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31758         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31759         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31760         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31761         * m4/mbiter.m4 (gl_MBITER): Likewise.
31762         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31763         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31764         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31765         * modules/u64 (configure.ac): Likewise.
31766
31767 2009-12-31  Bruno Haible  <bruno@clisp.org>
31768
31769         Use AC_C_INLINE instead of module 'inline' where possible.
31770         * modules/inline (Description): Clarify purpose.
31771         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31772         * modules/count-one-bits (Depends-on): Remove inline.
31773         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31774         * modules/openat (Depends-on): Remove inline.
31775         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31776         instead of depending on module 'inline'.
31777         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31778         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31779         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31780         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31781         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31782         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31783         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31784         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31785         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31786         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31787         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31788         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31789         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31790         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31791         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31792         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31793         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31794         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31795         Likewise.
31796         * modules/unictype/property-ascii-hex-digit (Depends-on,
31797         configure.ac): Likewise.
31798         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31799         configure.ac): Likewise.
31800         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31801         configure.ac): Likewise.
31802         * modules/unictype/property-bidi-block-separator (Depends-on,
31803         configure.ac): Likewise.
31804         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31805         configure.ac): Likewise.
31806         * modules/unictype/property-bidi-common-separator (Depends-on,
31807         configure.ac): Likewise.
31808         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31809         Likewise.
31810         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31811         configure.ac): Likewise.
31812         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31813         configure.ac): Likewise.
31814         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31815         configure.ac): Likewise.
31816         * modules/unictype/property-bidi-european-digit (Depends-on,
31817         configure.ac): Likewise.
31818         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31819         configure.ac): Likewise.
31820         * modules/unictype/property-bidi-left-to-right (Depends-on,
31821         configure.ac): Likewise.
31822         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31823         configure.ac): Likewise.
31824         * modules/unictype/property-bidi-other-neutral (Depends-on,
31825         configure.ac): Likewise.
31826         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31827         Likewise.
31828         * modules/unictype/property-bidi-segment-separator (Depends-on,
31829         configure.ac): Likewise.
31830         * modules/unictype/property-bidi-whitespace (Depends-on,
31831         configure.ac): Likewise.
31832         * modules/unictype/property-combining (Depends-on, configure.ac):
31833         Likewise.
31834         * modules/unictype/property-composite (Depends-on, configure.ac):
31835         Likewise.
31836         * modules/unictype/property-currency-symbol (Depends-on,
31837         configure.ac): Likewise.
31838         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31839         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31840         Likewise.
31841         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31842         configure.ac): Likewise.
31843         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31844         Likewise.
31845         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31846         Likewise.
31847         * modules/unictype/property-extender (Depends-on, configure.ac):
31848         Likewise.
31849         * modules/unictype/property-format-control (Depends-on, configure.ac):
31850         Likewise.
31851         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31852         Likewise.
31853         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31854         Likewise.
31855         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31856         Likewise.
31857         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31858         Likewise.
31859         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31860         Likewise.
31861         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31862         Likewise.
31863         * modules/unictype/property-id-start (Depends-on, configure.ac):
31864         Likewise.
31865         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31866         Likewise.
31867         * modules/unictype/property-ids-binary-operator (Depends-on,
31868         configure.ac): Likewise.
31869         * modules/unictype/property-ids-trinary-operator (Depends-on,
31870         configure.ac): Likewise.
31871         * modules/unictype/property-ignorable-control (Depends-on,
31872         configure.ac): Likewise.
31873         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31874         Likewise.
31875         * modules/unictype/property-join-control (Depends-on, configure.ac):
31876         Likewise.
31877         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31878         Likewise.
31879         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31880         Likewise.
31881         * modules/unictype/property-logical-order-exception (Depends-on,
31882         configure.ac): Likewise.
31883         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31884         Likewise.
31885         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31886         * modules/unictype/property-non-break (Depends-on, configure.ac):
31887         Likewise.
31888         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31889         Likewise.
31890         * modules/unictype/property-numeric (Depends-on, configure.ac):
31891         Likewise.
31892         * modules/unictype/property-other-alphabetic (Depends-on,
31893         configure.ac): Likewise.
31894         * modules/unictype/property-other-default-ignorable-code-point
31895         (Depends-on, configure.ac): Likewise.
31896         * modules/unictype/property-other-grapheme-extend (Depends-on,
31897         configure.ac): Likewise.
31898         * modules/unictype/property-other-id-continue (Depends-on,
31899         configure.ac): Likewise.
31900         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31901         Likewise.
31902         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31903         Likewise.
31904         * modules/unictype/property-other-math (Depends-on, configure.ac):
31905         Likewise.
31906         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31907         Likewise.
31908         * modules/unictype/property-paired-punctuation (Depends-on,
31909         configure.ac): Likewise.
31910         * modules/unictype/property-paragraph-separator (Depends-on,
31911         configure.ac): Likewise.
31912         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31913         Likewise.
31914         * modules/unictype/property-pattern-white-space (Depends-on,
31915         configure.ac): Likewise.
31916         * modules/unictype/property-private-use (Depends-on, configure.ac):
31917         Likewise.
31918         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31919         Likewise.
31920         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31921         Likewise.
31922         * modules/unictype/property-radical (Depends-on, configure.ac):
31923         Likewise.
31924         * modules/unictype/property-sentence-terminal (Depends-on,
31925         configure.ac): Likewise.
31926         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31927         Likewise.
31928         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31929         * modules/unictype/property-terminal-punctuation (Depends-on,
31930         configure.ac): Likewise.
31931         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31932         Likewise.
31933         * modules/unictype/property-unassigned-code-value (Depends-on,
31934         configure.ac): Likewise.
31935         * modules/unictype/property-unified-ideograph (Depends-on,
31936         configure.ac): Likewise.
31937         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31938         Likewise.
31939         * modules/unictype/property-variation-selector (Depends-on,
31940         configure.ac): Likewise.
31941         * modules/unictype/property-white-space (Depends-on, configure.ac):
31942         Likewise.
31943         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31944         Likewise.
31945         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31946         Likewise.
31947         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31948         Likewise.
31949         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31950         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31951         Likewise.
31952
31953 2009-12-31  Bruno Haible  <bruno@clisp.org>
31954
31955         Remove unnecessary AC_C_INLINE invocation.
31956         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31957         since 2009-08-21.
31958
31959 2009-12-31  Jim Meyering  <meyering@redhat.com>
31960
31961         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31962         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31963         With this change, we can all remove the gpg_key_ID = ... definition
31964         from our respective cfg.mk files.
31965
31966         maint.mk: create announcement template in ~/, not in /tmp
31967         * top/maint.mk (emit_upload_commands): Adjust.
31968         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31969         Remove temporary file, .ci-msg.
31970
31971 2009-12-31  Eric Blake  <ebb9@byu.net>
31972
31973         link-warning: always build headers with link warnings
31974         * modules/arpa_inet (Makefile.am): Always build replacement
31975         header.
31976         * modules/ctype (Makefile.am): Likewise.
31977         * modules/dirent (Makefile.am): Likewise.
31978         * modules/inttypes (Makefile.am): Likewise.
31979         * modules/langinfo (Makefile.am): Likewise.
31980         * modules/locale (Makefile.am): Likewise.
31981         * modules/spawn (Makefile.am): Likewise.
31982         * modules/sys_file (Makefile.am): Likewise.
31983         * modules/sys_ioctl (Makefile.am): Likewise.
31984         * modules/sys_select (Makefile.am): Likewise.
31985         * modules/sys_socket (Makefile.am): Likewise.
31986         * modules/sys_times (Makefile.am): Likewise.
31987         * modules/sys_utsname (Makefile.am): Likewise.
31988         * modules/sys_wait (Makefile.am): Likewise.
31989         * modules/wchar (Makefile.am): Likewise.
31990         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31991         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31992         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31993         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31994         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31995         Likewise.
31996         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31997         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31998         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31999         Likewise.
32000         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
32001         Likewise.
32002         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
32003         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
32004         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
32005         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32006         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32007         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32008         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32009         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
32010         (gl_WCHAR_H_DEFAULTS): Likewise.
32011
32012 2009-12-31  Eric Blake  <ebb9@byu.net>
32013
32014         signal, spawn: use link warnings
32015         * lib/signal.in.h (sigset_t): Make unconditional.
32016         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
32017         (sigpending, sigprocmask, sigaction): Add link warnings.
32018         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
32019         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
32020         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
32021         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
32022         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
32023         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
32024         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
32025         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
32026         (posix_spawn_file_actions_destroy)
32027         (posix_spawn_file_actions_addopen)
32028         (posix_spawn_file_actions_addclose)
32029         (posix_spawn_file_actions_adddup2): Likewise.
32030         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
32031         * tests/test-signal.c (main): Enhance test.
32032
32033         spawn: improve wrapper support
32034         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
32035         (gl_SPAWN_H_DEFAULTS): New defaults.
32036         * modules/spawn (Makefile.am): Substitute them.
32037         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
32038         Only declare if missing or broken.
32039
32040         sys_times, sys_utsname: use include_next
32041         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
32042         header.
32043         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
32044         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
32045         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
32046         * modules/sys_times (Depends-on): Add include_next.
32047         (Makefile.am): Substitute additional values.
32048         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32049         * lib/sys_times.in.h (includes): Include native header, if
32050         available.
32051         * lib/sys_utsname.in.h (includes): Likewise.
32052         * tests/test-sys_times.c (main): Enhance test.
32053
32054         fdutimensat: revert prior patch
32055         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
32056         utimens.h.
32057         Reported by Bruno Haible.
32058
32059 2009-12-30  Eric Blake  <ebb9@byu.net>
32060
32061         sys_wait: drop link-warning dependency
32062         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
32063         link-warning efforts.
32064         * lib/sys_wait.in.h: Likewise.
32065
32066         fdutimensat: remove bogus dependency
32067         * modules/fdutimensat (Depends-on): Drop inline.
32068
32069         unistd: fix typo
32070         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
32071
32072 2009-12-30  Bruno Haible  <bruno@clisp.org>
32073
32074         Fix compilation error with Solaris cc.
32075         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
32076         * lib/unicase/u16-is-invariant.c: Likewise.
32077         * lib/unicase/u32-is-invariant.c: Likewise.
32078         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32079
32080 2009-12-30  Bruno Haible  <bruno@clisp.org>
32081
32082         Fix test crash.
32083         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
32084         locales.
32085         Reported by Simon Josefsson <simon@josefsson.org>.
32086
32087 2009-12-30  Bruno Haible  <bruno@clisp.org>
32088
32089         Fix compilation error on most platforms.
32090         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
32091         Reported by Simon Josefsson <simon@josefsson.org>
32092         and Nelson H. F. Beebe <beebe@math.utah.edu>.
32093
32094 2009-12-30  Eric Blake  <ebb9@byu.net>
32095
32096         futimens, utimensat: work around ntfs-3g bug
32097         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
32098         a ctime bug is present, and expand workaround to cover ntfs-3g.
32099         * lib/utimens.c (fdutimens, lutimens): Likewise.
32100         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
32101         (validate_timespec): Adjust return value.
32102         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
32103         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32104         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
32105
32106 2009-12-29  Eric Blake  <ebb9@byu.net>
32107
32108         link-warning: make usage consistent
32109         * modules/ctype (Depends-on): Add link-warning.
32110         (Makefile.am): Update rules accordingly.
32111         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32112         * modules/locale (Depends-on, Makefile.am): Likewise.
32113         * modules/sys_file (Makefile.am): Likewise.
32114         * modules/getopt-posix (Makefile.am): Delete unused link warning
32115         efforts.
32116         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
32117         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
32118         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
32119         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
32120
32121         stdio: remove unused variables
32122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
32123         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
32124         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32125
32126         tests: test more substitute headers
32127         * modules/ctype-tests: New file.
32128         * modules/dirent-tests: Likewise.
32129         * modules/spawn-tests: Likewise.
32130         * modules/sys_file-tests: Likewise.
32131         * modules/sys_ioctl-tests: Likewise.
32132         * modules/sys_wait-tests: Likewise.
32133         * tests/test-ctype.c: Likewise.
32134         * tests/test-dirent.c: Likewise.
32135         * tests/test-spawn.c: Likewise.
32136         * tests/test-sys_file.c: Likewise.
32137         * tests/test-sys_ioctl.c: Likewise.
32138         * tests/test-sys_wait.c: Likewise.
32139         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
32140         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
32141         whether or not flock is in use.
32142
32143         tests: remove License section from module
32144         * modules/arpa_inet-tests: Remove unneeded section.
32145         * modules/byteswap-tests: Likewise.
32146         * modules/ceilf-tests: Likewise.
32147         * modules/ceill-tests: Likewise.
32148         * modules/crypto/des-tests: Likewise.
32149         * modules/crypto/gc-arcfour-tests: Likewise.
32150         * modules/crypto/gc-arctwo-tests: Likewise.
32151         * modules/crypto/gc-des-tests: Likewise.
32152         * modules/crypto/gc-hmac-md5-tests: Likewise.
32153         * modules/crypto/gc-hmac-sha1-tests: Likewise.
32154         * modules/crypto/gc-md2-tests: Likewise.
32155         * modules/crypto/gc-md4-tests: Likewise.
32156         * modules/crypto/gc-md5-tests: Likewise.
32157         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
32158         * modules/crypto/gc-rijndael-tests: Likewise.
32159         * modules/crypto/gc-sha1-tests: Likewise.
32160         * modules/crypto/gc-tests: Likewise.
32161         * modules/crypto/md2-tests: Likewise.
32162         * modules/crypto/md4-tests: Likewise.
32163         * modules/fcntl-h-tests: Likewise.
32164         * modules/floorf-tests: Likewise.
32165         * modules/floorl-tests: Likewise.
32166         * modules/frexp-nolibm-tests: Likewise.
32167         * modules/frexp-tests: Likewise.
32168         * modules/frexpl-nolibm-tests: Likewise.
32169         * modules/frexpl-tests: Likewise.
32170         * modules/getaddrinfo-tests: Likewise.
32171         * modules/inttypes-tests: Likewise.
32172         * modules/isfinite-tests: Likewise.
32173         * modules/isinf-tests: Likewise.
32174         * modules/ldexpl-tests: Likewise.
32175         * modules/locale-tests: Likewise.
32176         * modules/math-tests: Likewise.
32177         * modules/netdb-tests: Likewise.
32178         * modules/netinet_in-tests: Likewise.
32179         * modules/printf-frexp-tests: Likewise.
32180         * modules/printf-frexpl-tests: Likewise.
32181         * modules/priv-set-tests: Likewise.
32182         * modules/random_r-tests: Likewise.
32183         * modules/round-tests: Likewise.
32184         * modules/roundf-tests: Likewise.
32185         * modules/roundl-tests: Likewise.
32186         * modules/search-tests: Likewise.
32187         * modules/select-tests: Likewise.
32188         * modules/signal-tests: Likewise.
32189         * modules/stdbool-tests: Likewise.
32190         * modules/stddef-tests: Likewise.
32191         * modules/stdint-tests: Likewise.
32192         * modules/stdio-tests: Likewise.
32193         * modules/stdlib-tests: Likewise.
32194         * modules/string-tests: Likewise.
32195         * modules/strings-tests: Likewise.
32196         * modules/sys_select-tests: Likewise.
32197         * modules/sys_socket-tests: Likewise.
32198         * modules/sys_stat-tests: Likewise.
32199         * modules/sys_time-tests: Likewise.
32200         * modules/sys_utsname-tests: Likewise.
32201         * modules/sysexits-tests: Likewise.
32202         * modules/time-tests: Likewise.
32203         * modules/trunc-tests: Likewise.
32204         * modules/truncf-tests: Likewise.
32205         * modules/truncl-tests: Likewise.
32206         * modules/tsearch-tests: Likewise.
32207         * modules/unistd-tests: Likewise.
32208         * modules/wchar-tests: Likewise.
32209         * modules/wctype-tests: Likewise.
32210
32211         tests: fix license on several tests
32212         * tests/test-des.c: Update to GPLv3+.
32213         * tests/test-flock.c: Likewise.
32214         * tests/test-fsync.c: Likewise.
32215         * tests/test-futimens.h: Likewise.
32216         * tests/test-gc-arcfour.c: Likewise.
32217         * tests/test-gc-arctwo.c: Likewise.
32218         * tests/test-gc-des.c: Likewise.
32219         * tests/test-gc-hmac-md5.c: Likewise.
32220         * tests/test-gc-hmac-sha1.c: Likewise.
32221         * tests/test-gc-md2.c: Likewise.
32222         * tests/test-gc-md4.c: Likewise.
32223         * tests/test-gc-md5.c: Likewise.
32224         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32225         * tests/test-gc-rijndael.c: Likewise.
32226         * tests/test-gc-sha1.c: Likewise.
32227         * tests/test-gc.c: Likewise.
32228         * tests/test-getcwd.c: Likewise.
32229         * tests/test-link.c: Likewise.
32230         * tests/test-link.h: Likewise.
32231         * tests/test-lutimens.h: Likewise.
32232         * tests/test-md2.c: Likewise.
32233         * tests/test-md4.c: Likewise.
32234         * tests/test-mkdir.h: Likewise.
32235         * tests/test-rename.c: Likewise.
32236         * tests/test-rename.h: Likewise.
32237         * tests/test-safe-alloc.c: Likewise.
32238         * tests/test-utimens-common.h: Likewise.
32239         * tests/test-utimens.h: Likewise.
32240
32241         maint: sync license texts
32242         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32243         * doc/gpl-3.0.texi: Revert copyright year update.
32244         * doc/lgpl-3.0.texi: Likewise.
32245
32246 2009-12-29  Jim Meyering  <meyering@redhat.com>
32247
32248         update nearly all FSF copyright year lists to include 2009
32249         The files named by the following are exempted:
32250             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32251               test -f "$dst" && { echo "$dst"; continue; }
32252               test -d "$dst" || continue
32253               echo "$dst"/$(basename "$src")
32254             done > exempt
32255             git ls-files tests/unictype >> exempt
32256         In the remaining files, convert to all-interval notation if
32257         - there is already at least one year interval like 2000-2003
32258         - the file is maintained by me
32259         - the file is in lib/uni*/, where that style already prevails
32260         Otherwise, use update-copyright's default.
32261
32262 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32263         and Eric Blake  <ebb9@byu.net>
32264
32265         tests: don't require debug system() to pass
32266         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32267         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32268         * tests/test-unlink.h (test_unlink_func): Likewise.
32269         * tests/test-fstatat.c (main): ...into callers.
32270         * tests/test-lstat.c (main): Likewise.
32271         * tests/test-rmdir.c (main): Likewise.
32272         * tests/test-unlink.c (main): Likewise.
32273         * tests/test-unlinkat.c (main): Likewise.
32274         * tests/test-areadlink-with-size.c (main): Don't require a
32275         debug-only system call to pass, aiding cross-testing to mingw.
32276         * tests/test-areadlink.c (main): Likewise.
32277         * tests/test-areadlinkat-with-size.c (main): Likewise.
32278         * tests/test-areadlinkat.c (main): Likewise.
32279         * tests/test-canonicalize-lgpl.c (main): Likewise.
32280         * tests/test-canonicalize.c (main): Likewise.
32281         * tests/test-chown.c (main): Likewise.
32282         * tests/test-fchownat.c (main): Likewise.
32283         * tests/test-lchown.c (main): Likewise.
32284         * tests/test-fdutimensat.c (main): Likewise.
32285         * tests/test-futimens.c (main): Likewise.
32286         * tests/test-link.c (main): Likewise.
32287         * tests/test-linkat.c (main): Likewise.
32288         * tests/test-mkdir.c (main): Likewise.
32289         * tests/test-mkdirat.c (main): Likewise.
32290         * tests/test-mkfifo.c (main): Likewise.
32291         * tests/test-mkfifoat.c (main): Likewise.
32292         * tests/test-mknod.c (main): Likewise.
32293         * tests/test-readlink.c (main): Likewise.
32294         * tests/test-remove.c (main): Likewise.
32295         * tests/test-rename.c (main): Likewise.
32296         * tests/test-renameat.c (main): Likewise.
32297         * tests/test-symlink.c (main): Likewise.
32298         * tests/test-symlinkat.c (main): Likewise.
32299         * tests/test-utimens.c (main): Likewise.
32300         * tests/test-utimensat.c (main): Likewise.
32301
32302 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32303
32304         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32305         on $(UNUSED_PARAMETER_H) to avoid build failure.
32306
32307 2009-12-28  Jim Meyering  <meyering@redhat.com>
32308
32309         update-copyright: you may specify a max. line length other than 72
32310         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32311
32312         maint: use consistent FSF copyright line syntax
32313         * lib/posixtm.c: Add missing comma in FSF copyright line.
32314         * lib/posixtm.h: Likewise.
32315         * lib/getugroups.c: Add missing ", Inc.".
32316
32317         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32318         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32319         FSF copyright line.  Remove trailing blanks.
32320
32321 2009-12-28  Eric Blake  <ebb9@byu.net>
32322
32323         test-dup2: reduce dependencies
32324         * modules/cloexec (Configure.ac): Set witness.
32325         * modules/dup2-tests (Depends-on): Drop cloexec.
32326         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32327         not present.
32328         Suggested by Bruno Haible.
32329
32330 2009-12-26  Bruno Haible  <bruno@clisp.org>
32331
32332         Remove an unneeded dependency.
32333         * modules/fseterr (Depends-on): Remove dup2.
32334
32335 2009-12-26  Eric Blake  <ebb9@byu.net>
32336
32337         tests: use macros.h in more places
32338         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32339         (ASSERT_STREAM): Provide default of stderr.
32340         * tests/test-dirent-safer.c: Include macros.h, using alternate
32341         stream for assertions.
32342         * tests/test-dup-safer.c: Likewise.
32343         * tests/test-freopen-safer.c: Likewise.
32344         * tests/test-getopt.c: Likewise.
32345         * tests/test-openat-safer.c: Likewise.
32346         * tests/test-pipe.c: Likewise.
32347         * tests/test-popen-safer.c: Likewise.
32348         * modules/dirent-safer-tests (Files): Include macros.h.
32349         * modules/unistd-safer-tests (Files): Likewise.
32350         * modules/freopen-safer-tests (Files): Likewise.
32351         * modules/getopt-posix-tests (Files): Likewise.
32352         * modules/openat-safer-tests (Files): Likewise.
32353         * modules/pipe-tests (Files): Likewise.
32354
32355 2009-12-26  Bruno Haible  <bruno@clisp.org>
32356
32357         javacomp: Portability fix.
32358         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32359         that it also works on Solaris.
32360
32361 2009-12-26  Bruno Haible  <bruno@clisp.org>
32362
32363         localename: Fix storage allocation of gl_locale_name_thread's result.
32364         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32365         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32366         all platforms that have 'uselocale'.
32367         (gl_locale_name_thread_unsafe): New function, extracted from
32368         gl_locale_name_thread.
32369         (gl_locale_name_thread): Call struniq on all platforms that have
32370         'uselocale'.
32371         * tests/test-localename.c (test_locale_name_thread): Check that the
32372         resulting strings are permanently allocated.
32373         * modules/localename-tests (Depends-on): Add strdup.
32374
32375 2009-12-26  Bruno Haible  <bruno@clisp.org>
32376
32377         * tests/test-localename.c (categories): Fill in the strings.
32378
32379 2009-12-26  Jim Meyering  <meyering@redhat.com>
32380
32381         isdir: complete the removal of m4/isdir.m4
32382         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32383
32384         isdir: clean up, since at least grep still uses it
32385         * lib/isdir.c: Include "isdir.h".
32386         (S_ISDIR): Remove now-unneeded definition.
32387         * modules/isdir (Files): Add lib/isdir.h.
32388         * lib/isdir.h: New file, with declaration.
32389         * m4/isdir.m4: Remove file -- unneeded.
32390
32391 2009-12-25  Bruno Haible  <bruno@clisp.org>
32392
32393         selinux-h: Make generated .h files standalone.
32394         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32395         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32396         * lib/se-selinux.in.h: Likewise.
32397         * modules/selinux-h (Depends-on): Add unused-parameter.
32398         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32399         selinux/selinux.h and selinux/context.h.
32400         Suggested by Eric Blake.
32401
32402 2009-12-25  Bruno Haible  <bruno@clisp.org>
32403
32404         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32405         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32406         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32407         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32408         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32409
32410 2009-12-24  Bruno Haible  <bruno@clisp.org>
32411
32412         openat: Fix warning.
32413         * lib/openat-proc.c: Include <unistd.h>.
32414
32415 2009-12-24  Bruno Haible  <bruno@clisp.org>
32416
32417         New module 'unused-parameter'.
32418         * build-aux/unused-parameter.h: New file, extracted from earlier
32419         gnulib-common.m4.
32420         * modules/unused-parameter: New file.
32421         * lib/unistr.h: Include unused-parameter.h.
32422         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32423         _GL_UNUSED.
32424         * modules/unistr/base (Depends-on): Add unused-parameter.
32425
32426 2009-12-24  Bruno Haible  <bruno@clisp.org>
32427
32428         Add missing dependencies to 'extensions' module.
32429         * m4/extensions.m4: Add comment.
32430         * modules/accept4 (Depends-on): Add extensions.
32431         * modules/dup3 (Depends-on): Likewise.
32432         * modules/fcntl (Depends-on): Likewise.
32433         * modules/futimens (Depends-on): Likewise.
32434         * modules/mknod (Depends-on): Likewise.
32435         * modules/pipe2 (Depends-on): Likewise.
32436         * modules/stat-time (Depends-on): Likewise.
32437         * modules/strcasestr-simple (Depends-on): Likewise.
32438         * modules/strsignal (Depends-on): Likewise.
32439         * modules/utimensat (Depends-on): Likewise.
32440         * modules/localcharset (Depends-on): Likewise. Needed because of
32441         gl_FCNTL_O_FLAGS.
32442         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32443         AC_TYPE_MBSTATE_T.
32444         * modules/wcsnrtombs (Depends-on): Likewise.
32445         * modules/wcsrtombs (Depends-on): Likewise.
32446
32447 2009-12-24  Bruno Haible  <bruno@clisp.org>
32448
32449         binary-io: Avoid gcc warning due to SET_BINARY.
32450         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32451         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32452
32453 2009-12-24  Bruno Haible  <bruno@clisp.org>
32454
32455         Avoid future namespace pollution on glibc systems.
32456         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32457         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32458         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32459         glibc systems.
32460
32461 2009-12-24  Bruno Haible  <bruno@clisp.org>
32462
32463         Refactor common macros used in tests.
32464         * tests/macros.h: New file.
32465         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32466         and/or <stdlib.h>, if appropriate.
32467         (ASSERT, SIZEOF): Remove macros.
32468         * tests/test-areadlink-with-size.c: Likewise.
32469         * tests/test-areadlinkat.c: Likewise.
32470         * tests/test-areadlinkat-with-size.c: Likewise.
32471         * tests/test-argmatch.c: Likewise.
32472         * tests/test-argv-iter.c: Likewise.
32473         * tests/test-array-mergesort.c: Likewise.
32474         * tests/test-array_list.c: Likewise.
32475         * tests/test-array_oset.c: Likewise.
32476         * tests/test-avltree_list.c: Likewise.
32477         * tests/test-avltree_oset.c: Likewise.
32478         * tests/test-avltreehash_list.c: Likewise.
32479         * tests/test-base64.c: Likewise.
32480         * tests/test-binary-io.c: Likewise.
32481         * tests/test-bitrotate.c: Likewise.
32482         * tests/test-btowc.c: Likewise.
32483         * tests/test-byteswap.c: Likewise.
32484         * tests/test-c-ctype.c: Likewise.
32485         * tests/test-c-stack.c: Likewise.
32486         * tests/test-c-strcasecmp.c: Likewise.
32487         * tests/test-c-strcasestr.c: Likewise.
32488         * tests/test-c-strncasecmp.c: Likewise.
32489         * tests/test-c-strstr.c: Likewise.
32490         * tests/test-canonicalize-lgpl.c: Likewise.
32491         * tests/test-canonicalize.c: Likewise.
32492         * tests/test-carray_list.c: Likewise.
32493         * tests/test-ceilf1.c: Likewise.
32494         * tests/test-ceilf2.c: Likewise.
32495         * tests/test-ceill.c: Likewise.
32496         * tests/test-chown.c: Likewise.
32497         * tests/test-cloexec.c: Likewise.
32498         * tests/test-copy-acl.c: Likewise.
32499         * tests/test-copy-file.c: Likewise.
32500         * tests/test-count-one-bits.c: Likewise.
32501         * tests/test-dprintf-posix.c: Likewise.
32502         * tests/test-dup2.c: Likewise.
32503         * tests/test-dup3.c: Likewise.
32504         * tests/test-duplocale.c: Likewise.
32505         * tests/test-fbufmode.c: Likewise.
32506         * tests/test-fchdir.c: Likewise.
32507         * tests/test-fchownat.c: Likewise.
32508         * tests/test-fcntl-safer.c: Likewise.
32509         * tests/test-fcntl.c: Likewise.
32510         * tests/test-fdopendir.c: Likewise.
32511         * tests/test-fdutimensat.c: Likewise.
32512         * tests/test-fflush2.c: Likewise.
32513         * tests/test-file-has-acl.c: Likewise.
32514         * tests/test-filevercmp.c: Likewise.
32515         * tests/test-flock.c: Likewise.
32516         * tests/test-floorf1.c: Likewise.
32517         * tests/test-floorf2.c: Likewise.
32518         * tests/test-floorl.c: Likewise.
32519         * tests/test-fnmatch.c: Likewise.
32520         * tests/test-fopen.h: Likewise.
32521         * tests/test-fpending.c: Likewise.
32522         * tests/test-fprintf-posix.c: Likewise.
32523         * tests/test-fpurge.c: Likewise.
32524         * tests/test-freadable.c: Likewise.
32525         * tests/test-freadahead.c: Likewise.
32526         * tests/test-freading.c: Likewise.
32527         * tests/test-freadptr.c: Likewise.
32528         * tests/test-freadptr2.c: Likewise.
32529         * tests/test-freadseek.c: Likewise.
32530         * tests/test-freopen.c: Likewise.
32531         * tests/test-frexp.c: Likewise.
32532         * tests/test-frexpl.c: Likewise.
32533         * tests/test-fseek.c: Likewise.
32534         * tests/test-fseeko.c: Likewise.
32535         * tests/test-fstatat.c: Likewise.
32536         * tests/test-fstrcmp.c: Likewise.
32537         * tests/test-fsync.c: Likewise.
32538         * tests/test-ftell.c: Likewise.
32539         * tests/test-ftello.c: Likewise.
32540         * tests/test-func.c: Likewise.
32541         * tests/test-futimens.c: Likewise.
32542         * tests/test-fwritable.c: Likewise.
32543         * tests/test-fwriting.c: Likewise.
32544         * tests/test-getcwd.c: Likewise.
32545         * tests/test-getdate.c: Likewise.
32546         * tests/test-getdelim.c: Likewise.
32547         * tests/test-getdtablesize.c: Likewise.
32548         * tests/test-getgroups.c: Likewise.
32549         * tests/test-getline.c: Likewise.
32550         * tests/test-getndelim2.c: Likewise.
32551         * tests/test-glob.c: Likewise.
32552         * tests/test-hash.c: Likewise.
32553         * tests/test-i-ring.c: Likewise.
32554         * tests/test-iconv-utf.c: Likewise.
32555         * tests/test-iconv.c: Likewise.
32556         * tests/test-idpriv-drop.c: Likewise.
32557         * tests/test-idpriv-droptemp.c: Likewise.
32558         * tests/test-inet_ntop.c: Likewise.
32559         * tests/test-inet_pton.c: Likewise.
32560         * tests/test-isblank.c: Likewise.
32561         * tests/test-isfinite.c: Likewise.
32562         * tests/test-isinf.c: Likewise.
32563         * tests/test-isnan.c: Likewise.
32564         * tests/test-isnand.h: Likewise.
32565         * tests/test-isnanf.h: Likewise.
32566         * tests/test-isnanl.h: Likewise.
32567         * tests/test-lchown.c: Likewise.
32568         * tests/test-ldexpl.c: Likewise.
32569         * tests/test-link.c: Likewise.
32570         * tests/test-linkat.c: Likewise.
32571         * tests/test-linked_list.c: Likewise.
32572         * tests/test-linkedhash_list.c: Likewise.
32573         * tests/test-localename.c: Likewise.
32574         * tests/test-lseek.c: Likewise.
32575         * tests/test-lstat.c: Likewise.
32576         * tests/test-mbmemcasecmp.c: Likewise.
32577         * tests/test-mbmemcasecoll.c: Likewise.
32578         * tests/test-mbrtowc.c: Likewise.
32579         * tests/test-mbscasecmp.c: Likewise.
32580         * tests/test-mbscasestr1.c: Likewise.
32581         * tests/test-mbscasestr2.c: Likewise.
32582         * tests/test-mbscasestr3.c: Likewise.
32583         * tests/test-mbscasestr4.c: Likewise.
32584         * tests/test-mbschr.c: Likewise.
32585         * tests/test-mbscspn.c: Likewise.
32586         * tests/test-mbsinit.c: Likewise.
32587         * tests/test-mbsncasecmp.c: Likewise.
32588         * tests/test-mbsnrtowcs.c: Likewise.
32589         * tests/test-mbspbrk.c: Likewise.
32590         * tests/test-mbspcasecmp.c: Likewise.
32591         * tests/test-mbsrchr.c: Likewise.
32592         * tests/test-mbsrtowcs.c: Likewise.
32593         * tests/test-mbsspn.c: Likewise.
32594         * tests/test-mbsstr1.c: Likewise.
32595         * tests/test-mbsstr2.c: Likewise.
32596         * tests/test-mbsstr3.c: Likewise.
32597         * tests/test-memchr.c: Likewise.
32598         * tests/test-memchr2.c: Likewise.
32599         * tests/test-memcmp.c: Likewise.
32600         * tests/test-memmem.c: Likewise.
32601         * tests/test-memrchr.c: Likewise.
32602         * tests/test-mkdir.c: Likewise.
32603         * tests/test-mkdirat.c: Likewise.
32604         * tests/test-mkfifo.c: Likewise.
32605         * tests/test-mkfifoat.c: Likewise.
32606         * tests/test-mknod.c: Likewise.
32607         * tests/test-nanosleep.c: Likewise.
32608         * tests/test-nl_langinfo.c: Likewise.
32609         * tests/test-obstack-printf.c: Likewise.
32610         * tests/test-open.c: Likewise.
32611         * tests/test-openat.c: Likewise.
32612         * tests/test-pipe-filter-gi1.c: Likewise.
32613         * tests/test-pipe-filter-gi2-main.c: Likewise.
32614         * tests/test-pipe-filter-ii1.c: Likewise.
32615         * tests/test-pipe-filter-ii2-main.c: Likewise.
32616         * tests/test-pipe2.c: Likewise.
32617         * tests/test-popen.h: Likewise.
32618         * tests/test-posixtm.c: Likewise.
32619         * tests/test-pread.c: Likewise.
32620         * tests/test-printf-frexp.c: Likewise.
32621         * tests/test-printf-frexpl.c: Likewise.
32622         * tests/test-printf-posix.c: Likewise.
32623         * tests/test-priv-set.c: Likewise.
32624         * tests/test-quotearg.c: Likewise.
32625         * tests/test-random_r.c: Likewise.
32626         * tests/test-rawmemchr.c: Likewise.
32627         * tests/test-rbtree_list.c: Likewise.
32628         * tests/test-rbtree_oset.c: Likewise.
32629         * tests/test-rbtreehash_list.c: Likewise.
32630         * tests/test-readlink.c: Likewise.
32631         * tests/test-remove.c: Likewise.
32632         * tests/test-rename.c: Likewise.
32633         * tests/test-renameat.c: Likewise.
32634         * tests/test-rmdir.c: Likewise.
32635         * tests/test-round1.c: Likewise.
32636         * tests/test-roundf1.c: Likewise.
32637         * tests/test-roundl.c: Likewise.
32638         * tests/test-safe-alloc.c: Likewise.
32639         * tests/test-sameacls.c: Likewise.
32640         * tests/test-set-mode-acl.c: Likewise.
32641         * tests/test-setenv.c: Likewise.
32642         * tests/test-sigaction.c: Likewise.
32643         * tests/test-signbit.c: Likewise.
32644         * tests/test-sleep.c: Likewise.
32645         * tests/test-snprintf-posix.c: Likewise.
32646         * tests/test-snprintf.c: Likewise.
32647         * tests/test-sprintf-posix.c: Likewise.
32648         * tests/test-stat-time.c: Likewise.
32649         * tests/test-stat.c: Likewise.
32650         * tests/test-strcasestr.c: Likewise.
32651         * tests/test-strchrnul.c: Likewise.
32652         * tests/test-strerror.c: Likewise.
32653         * tests/test-striconv.c: Likewise.
32654         * tests/test-striconveh.c: Likewise.
32655         * tests/test-striconveha.c: Likewise.
32656         * tests/test-strsignal.c: Likewise.
32657         * tests/test-strstr.c: Likewise.
32658         * tests/test-strtod.c: Likewise.
32659         * tests/test-strverscmp.c: Likewise.
32660         * tests/test-symlink.c: Likewise.
32661         * tests/test-symlinkat.c: Likewise.
32662         * tests/test-trunc1.c: Likewise.
32663         * tests/test-trunc2.c: Likewise.
32664         * tests/test-truncf1.c: Likewise.
32665         * tests/test-truncf2.c: Likewise.
32666         * tests/test-truncl.c: Likewise.
32667         * tests/test-uname.c: Likewise.
32668         * tests/test-unlink.c: Likewise.
32669         * tests/test-unlinkat.c: Likewise.
32670         * tests/test-unsetenv.c: Likewise.
32671         * tests/test-usleep.c: Likewise.
32672         * tests/test-utimens.c: Likewise.
32673         * tests/test-utimensat.c: Likewise.
32674         * tests/test-vasnprintf-posix.c: Likewise.
32675         * tests/test-vasnprintf-posix2.c: Likewise.
32676         * tests/test-vasnprintf.c: Likewise.
32677         * tests/test-vasprintf-posix.c: Likewise.
32678         * tests/test-vasprintf.c: Likewise.
32679         * tests/test-vdprintf-posix.c: Likewise.
32680         * tests/test-vfprintf-posix.c: Likewise.
32681         * tests/test-vprintf-posix.c: Likewise.
32682         * tests/test-vsnprintf-posix.c: Likewise.
32683         * tests/test-vsnprintf.c: Likewise.
32684         * tests/test-vsprintf-posix.c: Likewise.
32685         * tests/test-wcrtomb.c: Likewise.
32686         * tests/test-wcsnrtombs.c: Likewise.
32687         * tests/test-wcsrtombs.c: Likewise.
32688         * tests/test-wctype.c: Likewise.
32689         * tests/test-wcwidth.c: Likewise.
32690         * tests/test-xfprintf-posix.c: Likewise.
32691         * tests/test-xmemdup0.c: Likewise.
32692         * tests/test-xprintf-posix.c: Likewise.
32693         * tests/test-xvasprintf.c: Likewise.
32694         * tests/unicase/test-locale-language.c: Likewise.
32695         * tests/unicase/test-mapping-part1.h: Likewise.
32696         * tests/unicase/test-predicate-part1.h: Likewise.
32697         * tests/unicase/test-u8-casecmp.c: Likewise.
32698         * tests/unicase/test-u8-casecoll.c: Likewise.
32699         * tests/unicase/test-u8-casefold.c: Likewise.
32700         * tests/unicase/test-u8-is-cased.c: Likewise.
32701         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32702         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32703         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32704         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32705         * tests/unicase/test-u8-tolower.c: Likewise.
32706         * tests/unicase/test-u8-totitle.c: Likewise.
32707         * tests/unicase/test-u8-toupper.c: Likewise.
32708         * tests/unicase/test-u16-casecmp.c: Likewise.
32709         * tests/unicase/test-u16-casecoll.c: Likewise.
32710         * tests/unicase/test-u16-casefold.c: Likewise.
32711         * tests/unicase/test-u16-is-cased.c: Likewise.
32712         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32713         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32714         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32715         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32716         * tests/unicase/test-u16-tolower.c: Likewise.
32717         * tests/unicase/test-u16-totitle.c: Likewise.
32718         * tests/unicase/test-u16-toupper.c: Likewise.
32719         * tests/unicase/test-u32-casecmp.c: Likewise.
32720         * tests/unicase/test-u32-casecoll.c: Likewise.
32721         * tests/unicase/test-u32-casefold.c: Likewise.
32722         * tests/unicase/test-u32-is-cased.c: Likewise.
32723         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32724         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32725         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32726         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32727         * tests/unicase/test-u32-tolower.c: Likewise.
32728         * tests/unicase/test-u32-totitle.c: Likewise.
32729         * tests/unicase/test-u32-toupper.c: Likewise.
32730         * tests/unicase/test-ulc-casecmp.c: Likewise.
32731         * tests/unicase/test-ulc-casecoll.c: Likewise.
32732         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32733         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32734         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32735         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32736         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32737         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32738         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32739         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32740         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32741         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32742         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32743         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32744         * tests/unictype/test-bidi_byname.c: Likewise.
32745         * tests/unictype/test-bidi_name.c: Likewise.
32746         * tests/unictype/test-bidi_of.c: Likewise.
32747         * tests/unictype/test-bidi_test.c: Likewise.
32748         * tests/unictype/test-block_list.c: Likewise.
32749         * tests/unictype/test-block_of.c: Likewise.
32750         * tests/unictype/test-block_test.c: Likewise.
32751         * tests/unictype/test-categ_and.c: Likewise.
32752         * tests/unictype/test-categ_and_not.c: Likewise.
32753         * tests/unictype/test-categ_byname.c: Likewise.
32754         * tests/unictype/test-categ_name.c: Likewise.
32755         * tests/unictype/test-categ_none.c: Likewise.
32756         * tests/unictype/test-categ_of.c: Likewise.
32757         * tests/unictype/test-categ_or.c: Likewise.
32758         * tests/unictype/test-categ_test_withtable.c: Likewise.
32759         * tests/unictype/test-combining.c: Likewise.
32760         * tests/unictype/test-decdigit.c: Likewise.
32761         * tests/unictype/test-digit.c: Likewise.
32762         * tests/unictype/test-mirror.c: Likewise.
32763         * tests/unictype/test-numeric.c: Likewise.
32764         * tests/unictype/test-pr_byname.c: Likewise.
32765         * tests/unictype/test-pr_test.c: Likewise.
32766         * tests/unictype/test-predicate-part1.h: Likewise.
32767         * tests/unictype/test-scripts.c: Likewise.
32768         * tests/unictype/test-sy_c_ident.c: Likewise.
32769         * tests/unictype/test-sy_java_ident.c: Likewise.
32770         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32771         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32772         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32773         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32774         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32775         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32776         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32777         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32778         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32779         * tests/uninorm/test-compat-decomposition.c: Likewise.
32780         * tests/uninorm/test-composition.c: Likewise.
32781         * tests/uninorm/test-decomposing-form.c: Likewise.
32782         * tests/uninorm/test-decomposition.c: Likewise.
32783         * tests/uninorm/test-u8-nfc.c: Likewise.
32784         * tests/uninorm/test-u8-nfd.c: Likewise.
32785         * tests/uninorm/test-u8-nfkc.c: Likewise.
32786         * tests/uninorm/test-u8-nfkd.c: Likewise.
32787         * tests/uninorm/test-u8-normcmp.c: Likewise.
32788         * tests/uninorm/test-u8-normcoll.c: Likewise.
32789         * tests/uninorm/test-u16-nfc.c: Likewise.
32790         * tests/uninorm/test-u16-nfd.c: Likewise.
32791         * tests/uninorm/test-u16-nfkc.c: Likewise.
32792         * tests/uninorm/test-u16-nfkd.c: Likewise.
32793         * tests/uninorm/test-u16-normcmp.c: Likewise.
32794         * tests/uninorm/test-u16-normcoll.c: Likewise.
32795         * tests/uninorm/test-u32-nfc.c: Likewise.
32796         * tests/uninorm/test-u32-nfd.c: Likewise.
32797         * tests/uninorm/test-u32-nfkc.c: Likewise.
32798         * tests/uninorm/test-u32-nfkd.c: Likewise.
32799         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32800         * tests/uninorm/test-u32-normcmp.c: Likewise.
32801         * tests/uninorm/test-u32-normcoll.c: Likewise.
32802         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32803         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32804         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32805         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32806         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32807         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32808         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32809         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32810         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32811         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32812         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32813         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32814         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32815         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32816         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32817         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32818         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32819         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32820         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32821         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32822         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32823         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32824         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32825         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32826         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32827         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32828         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32829         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32830         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32831         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32832         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32833         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32834         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32835         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32836         * tests/uniwidth/test-u8-width.c: Likewise.
32837         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32838         * tests/uniwidth/test-u16-width.c: Likewise.
32839         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32840         * tests/uniwidth/test-u32-width.c: Likewise.
32841         * tests/uniwidth/test-uc_width.c: Likewise.
32842         * tests/uniwidth/test-uc_width2.c: Likewise.
32843         * modules/acl-tests (Files): Add tests/macros.h.
32844         * modules/areadlink-tests (Files): Likewise.
32845         * modules/areadlink-with-size-tests (Files): Likewise.
32846         * modules/areadlinkat-tests (Files): Likewise.
32847         * modules/areadlinkat-with-size-tests (Files): Likewise.
32848         * modules/argmatch-tests (Files): Likewise.
32849         * modules/argv-iter-tests (Files): Likewise.
32850         * modules/array-list-tests (Files): Likewise.
32851         * modules/array-mergesort-tests (Files): Likewise.
32852         * modules/array-oset-tests (Files): Likewise.
32853         * modules/avltree-list-tests (Files): Likewise.
32854         * modules/avltree-oset-tests (Files): Likewise.
32855         * modules/avltreehash-list-tests (Files): Likewise.
32856         * modules/base64-tests (Files): Likewise.
32857         * modules/binary-io-tests (Files): Likewise.
32858         * modules/bitrotate-tests (Files): Likewise.
32859         * modules/btowc-tests (Files): Likewise.
32860         * modules/byteswap-tests (Files): Likewise.
32861         * modules/c-ctype-tests (Files): Likewise.
32862         * modules/c-stack-tests (Files): Likewise.
32863         * modules/c-strcase-tests (Files): Likewise.
32864         * modules/c-strcasestr-tests (Files): Likewise.
32865         * modules/c-strstr-tests (Files): Likewise.
32866         * modules/canonicalize-lgpl-tests (Files): Likewise.
32867         * modules/canonicalize-tests (Files): Likewise.
32868         * modules/carray-list-tests (Files): Likewise.
32869         * modules/ceilf-tests (Files): Likewise.
32870         * modules/ceill-tests (Files): Likewise.
32871         * modules/chown-tests (Files): Likewise.
32872         * modules/cloexec-tests (Files): Likewise.
32873         * modules/copy-file-tests (Files): Likewise.
32874         * modules/count-one-bits-tests (Files): Likewise.
32875         * modules/dprintf-posix-tests (Files): Likewise.
32876         * modules/dup2-tests (Files): Likewise.
32877         * modules/dup3-tests (Files): Likewise.
32878         * modules/duplocale-tests (Files): Likewise.
32879         * modules/fbufmode-tests (Files): Likewise.
32880         * modules/fchdir-tests (Files): Likewise.
32881         * modules/fcntl-safer-tests (Files): Likewise.
32882         * modules/fcntl-tests (Files): Likewise.
32883         * modules/fdopendir-tests (Files): Likewise.
32884         * modules/fdutimensat-tests (Files): Likewise.
32885         * modules/fflush-tests (Files): Likewise.
32886         * modules/filevercmp-tests (Files): Likewise.
32887         * modules/flock-tests (Files): Likewise.
32888         * modules/floorf-tests (Files): Likewise.
32889         * modules/floorl-tests (Files): Likewise.
32890         * modules/fnmatch-tests (Files): Likewise.
32891         * modules/fopen-safer-tests (Files): Likewise.
32892         * modules/fopen-tests (Files): Likewise.
32893         * modules/fpending-tests (Files): Likewise.
32894         * modules/fprintf-posix-tests (Files): Likewise.
32895         * modules/fpurge-tests (Files): Likewise.
32896         * modules/freadable-tests (Files): Likewise.
32897         * modules/freadahead-tests (Files): Likewise.
32898         * modules/freading-tests (Files): Likewise.
32899         * modules/freadptr-tests (Files): Likewise.
32900         * modules/freadseek-tests (Files): Likewise.
32901         * modules/freopen-tests (Files): Likewise.
32902         * modules/frexp-nolibm-tests (Files): Likewise.
32903         * modules/frexp-tests (Files): Likewise.
32904         * modules/frexpl-nolibm-tests (Files): Likewise.
32905         * modules/frexpl-tests (Files): Likewise.
32906         * modules/fseek-tests (Files): Likewise.
32907         * modules/fseeko-tests (Files): Likewise.
32908         * modules/fstrcmp-tests (Files): Likewise.
32909         * modules/fsync-tests (Files): Likewise.
32910         * modules/ftell-tests (Files): Likewise.
32911         * modules/ftello-tests (Files): Likewise.
32912         * modules/func-tests (Files): Likewise.
32913         * modules/futimens-tests (Files): Likewise.
32914         * modules/fwritable-tests (Files): Likewise.
32915         * modules/fwriting-tests (Files): Likewise.
32916         * modules/getcwd-tests (Files): Likewise.
32917         * modules/getdate-tests (Files): Likewise.
32918         * modules/getdelim-tests (Files): Likewise.
32919         * modules/getdtablesize-tests (Files): Likewise.
32920         * modules/getgroups-tests (Files): Likewise.
32921         * modules/getline-tests (Files): Likewise.
32922         * modules/getndelim2-tests (Files): Likewise.
32923         * modules/glob-tests (Files): Likewise.
32924         * modules/hash-tests (Files): Likewise.
32925         * modules/i-ring-tests (Files): Likewise.
32926         * modules/iconv-tests (Files): Likewise.
32927         * modules/iconv_open-utf-tests (Files): Likewise.
32928         * modules/idpriv-drop-tests (Files): Likewise.
32929         * modules/idpriv-droptemp-tests (Files): Likewise.
32930         * modules/inet_ntop-tests (Files): Likewise.
32931         * modules/inet_pton-tests (Files): Likewise.
32932         * modules/isblank-tests (Files): Likewise.
32933         * modules/isfinite-tests (Files): Likewise.
32934         * modules/isinf-tests (Files): Likewise.
32935         * modules/isnan-tests (Files): Likewise.
32936         * modules/isnand-nolibm-tests (Files): Likewise.
32937         * modules/isnand-tests (Files): Likewise.
32938         * modules/isnanf-nolibm-tests (Files): Likewise.
32939         * modules/isnanf-tests (Files): Likewise.
32940         * modules/isnanl-nolibm-tests (Files): Likewise.
32941         * modules/isnanl-tests (Files): Likewise.
32942         * modules/lchown-tests (Files): Likewise.
32943         * modules/ldexpl-tests (Files): Likewise.
32944         * modules/link-tests (Files): Likewise.
32945         * modules/linkat-tests (Files): Likewise.
32946         * modules/linked-list-tests (Files): Likewise.
32947         * modules/linkedhash-list-tests (Files): Likewise.
32948         * modules/localename-tests (Files): Likewise.
32949         * modules/lseek-tests (Files): Likewise.
32950         * modules/lstat-tests (Files): Likewise.
32951         * modules/mbmemcasecmp-tests (Files): Likewise.
32952         * modules/mbmemcasecoll-tests (Files): Likewise.
32953         * modules/mbrtowc-tests (Files): Likewise.
32954         * modules/mbscasecmp-tests (Files): Likewise.
32955         * modules/mbscasestr-tests (Files): Likewise.
32956         * modules/mbschr-tests (Files): Likewise.
32957         * modules/mbscspn-tests (Files): Likewise.
32958         * modules/mbsinit-tests (Files): Likewise.
32959         * modules/mbsncasecmp-tests (Files): Likewise.
32960         * modules/mbsnrtowcs-tests (Files): Likewise.
32961         * modules/mbspbrk-tests (Files): Likewise.
32962         * modules/mbspcasecmp-tests (Files): Likewise.
32963         * modules/mbsrchr-tests (Files): Likewise.
32964         * modules/mbsrtowcs-tests (Files): Likewise.
32965         * modules/mbsspn-tests (Files): Likewise.
32966         * modules/mbsstr-tests (Files): Likewise.
32967         * modules/memchr-tests (Files): Likewise.
32968         * modules/memchr2-tests (Files): Likewise.
32969         * modules/memcmp-tests (Files): Likewise.
32970         * modules/memmem-tests (Files): Likewise.
32971         * modules/memrchr-tests (Files): Likewise.
32972         * modules/mkdir-tests (Files): Likewise.
32973         * modules/mkfifo-tests (Files): Likewise.
32974         * modules/mkfifoat-tests (Files): Likewise.
32975         * modules/mknod-tests (Files): Likewise.
32976         * modules/nanosleep-tests (Files): Likewise.
32977         * modules/nl_langinfo-tests (Files): Likewise.
32978         * modules/obstack-printf-tests (Files): Likewise.
32979         * modules/open-tests (Files): Likewise.
32980         * modules/openat-tests (Files): Likewise.
32981         * modules/pipe-filter-gi-tests (Files): Likewise.
32982         * modules/pipe-filter-ii-tests (Files): Likewise.
32983         * modules/pipe2-tests (Files): Likewise.
32984         * modules/popen-safer-tests (Files): Likewise.
32985         * modules/popen-tests (Files): Likewise.
32986         * modules/posixtm-tests (Files): Likewise.
32987         * modules/pread-tests (Files): Likewise.
32988         * modules/printf-frexp-tests (Files): Likewise.
32989         * modules/printf-frexpl-tests (Files): Likewise.
32990         * modules/printf-posix-tests (Files): Likewise.
32991         * modules/priv-set-tests (Files): Likewise.
32992         * modules/quotearg-tests (Files): Likewise.
32993         * modules/random_r-tests (Files): Likewise.
32994         * modules/rawmemchr-tests (Files): Likewise.
32995         * modules/rbtree-list-tests (Files): Likewise.
32996         * modules/rbtree-oset-tests (Files): Likewise.
32997         * modules/rbtreehash-list-tests (Files): Likewise.
32998         * modules/readlink-tests (Files): Likewise.
32999         * modules/remove-tests (Files): Likewise.
33000         * modules/rename-tests (Files): Likewise.
33001         * modules/renameat-tests (Files): Likewise.
33002         * modules/rmdir-tests (Files): Likewise.
33003         * modules/round-tests (Files): Likewise.
33004         * modules/roundf-tests (Files): Likewise.
33005         * modules/roundl-tests (Files): Likewise.
33006         * modules/safe-alloc-tests (Files): Likewise.
33007         * modules/setenv-tests (Files): Likewise.
33008         * modules/sigaction-tests (Files): Likewise.
33009         * modules/signbit-tests (Files): Likewise.
33010         * modules/sleep-tests (Files): Likewise.
33011         * modules/snprintf-posix-tests (Files): Likewise.
33012         * modules/snprintf-tests (Files): Likewise.
33013         * modules/sprintf-posix-tests (Files): Likewise.
33014         * modules/stat-tests (Files): Likewise.
33015         * modules/stat-time-tests (Files): Likewise.
33016         * modules/strcasestr-tests (Files): Likewise.
33017         * modules/strchrnul-tests (Files): Likewise.
33018         * modules/strerror-tests (Files): Likewise.
33019         * modules/striconv-tests (Files): Likewise.
33020         * modules/striconveh-tests (Files): Likewise.
33021         * modules/striconveha-tests (Files): Likewise.
33022         * modules/strsignal-tests (Files): Likewise.
33023         * modules/strstr-tests (Files): Likewise.
33024         * modules/strtod-tests (Files): Likewise.
33025         * modules/strverscmp-tests (Files): Likewise.
33026         * modules/symlink-tests (Files): Likewise.
33027         * modules/symlinkat-tests (Files): Likewise.
33028         * modules/trunc-tests (Files): Likewise.
33029         * modules/truncf-tests (Files): Likewise.
33030         * modules/truncl-tests (Files): Likewise.
33031         * modules/uname-tests (Files): Likewise.
33032         * modules/unicase/cased-tests (Files): Likewise.
33033         * modules/unicase/ignorable-tests (Files): Likewise.
33034         * modules/unicase/locale-language-tests (Files): Likewise.
33035         * modules/unicase/tolower-tests (Files): Likewise.
33036         * modules/unicase/totitle-tests (Files): Likewise.
33037         * modules/unicase/toupper-tests (Files): Likewise.
33038         * modules/unicase/u8-casecmp-tests (Files): Likewise.
33039         * modules/unicase/u8-casecoll-tests (Files): Likewise.
33040         * modules/unicase/u8-casefold-tests (Files): Likewise.
33041         * modules/unicase/u8-is-cased-tests (Files): Likewise.
33042         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
33043         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
33044         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
33045         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
33046         * modules/unicase/u8-tolower-tests (Files): Likewise.
33047         * modules/unicase/u8-totitle-tests (Files): Likewise.
33048         * modules/unicase/u8-toupper-tests (Files): Likewise.
33049         * modules/unicase/u16-casecmp-tests (Files): Likewise.
33050         * modules/unicase/u16-casecoll-tests (Files): Likewise.
33051         * modules/unicase/u16-casefold-tests (Files): Likewise.
33052         * modules/unicase/u16-is-cased-tests (Files): Likewise.
33053         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
33054         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
33055         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
33056         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
33057         * modules/unicase/u16-tolower-tests (Files): Likewise.
33058         * modules/unicase/u16-totitle-tests (Files): Likewise.
33059         * modules/unicase/u16-toupper-tests (Files): Likewise.
33060         * modules/unicase/u32-casecmp-tests (Files): Likewise.
33061         * modules/unicase/u32-casecoll-tests (Files): Likewise.
33062         * modules/unicase/u32-casefold-tests (Files): Likewise.
33063         * modules/unicase/u32-is-cased-tests (Files): Likewise.
33064         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
33065         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
33066         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
33067         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
33068         * modules/unicase/u32-tolower-tests (Files): Likewise.
33069         * modules/unicase/u32-totitle-tests (Files): Likewise.
33070         * modules/unicase/u32-toupper-tests (Files): Likewise.
33071         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
33072         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
33073         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
33074         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
33075         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
33076         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
33077         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
33078         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
33079         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
33080         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
33081         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
33082         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
33083         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
33084         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
33085         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
33086         * modules/unictype/bidicategory-name-tests (Files): Likewise.
33087         * modules/unictype/bidicategory-of-tests (Files): Likewise.
33088         * modules/unictype/bidicategory-test-tests (Files): Likewise.
33089         * modules/unictype/block-list-tests (Files): Likewise.
33090         * modules/unictype/block-of-tests (Files): Likewise.
33091         * modules/unictype/block-test-tests (Files): Likewise.
33092         * modules/unictype/category-C-tests (Files): Likewise.
33093         * modules/unictype/category-Cc-tests (Files): Likewise.
33094         * modules/unictype/category-Cf-tests (Files): Likewise.
33095         * modules/unictype/category-Cn-tests (Files): Likewise.
33096         * modules/unictype/category-Co-tests (Files): Likewise.
33097         * modules/unictype/category-Cs-tests (Files): Likewise.
33098         * modules/unictype/category-L-tests (Files): Likewise.
33099         * modules/unictype/category-Ll-tests (Files): Likewise.
33100         * modules/unictype/category-Lm-tests (Files): Likewise.
33101         * modules/unictype/category-Lo-tests (Files): Likewise.
33102         * modules/unictype/category-Lt-tests (Files): Likewise.
33103         * modules/unictype/category-Lu-tests (Files): Likewise.
33104         * modules/unictype/category-M-tests (Files): Likewise.
33105         * modules/unictype/category-Mc-tests (Files): Likewise.
33106         * modules/unictype/category-Me-tests (Files): Likewise.
33107         * modules/unictype/category-Mn-tests (Files): Likewise.
33108         * modules/unictype/category-N-tests (Files): Likewise.
33109         * modules/unictype/category-Nd-tests (Files): Likewise.
33110         * modules/unictype/category-Nl-tests (Files): Likewise.
33111         * modules/unictype/category-No-tests (Files): Likewise.
33112         * modules/unictype/category-P-tests (Files): Likewise.
33113         * modules/unictype/category-Pc-tests (Files): Likewise.
33114         * modules/unictype/category-Pd-tests (Files): Likewise.
33115         * modules/unictype/category-Pe-tests (Files): Likewise.
33116         * modules/unictype/category-Pf-tests (Files): Likewise.
33117         * modules/unictype/category-Pi-tests (Files): Likewise.
33118         * modules/unictype/category-Po-tests (Files): Likewise.
33119         * modules/unictype/category-Ps-tests (Files): Likewise.
33120         * modules/unictype/category-S-tests (Files): Likewise.
33121         * modules/unictype/category-Sc-tests (Files): Likewise.
33122         * modules/unictype/category-Sk-tests (Files): Likewise.
33123         * modules/unictype/category-Sm-tests (Files): Likewise.
33124         * modules/unictype/category-So-tests (Files): Likewise.
33125         * modules/unictype/category-Z-tests (Files): Likewise.
33126         * modules/unictype/category-Zl-tests (Files): Likewise.
33127         * modules/unictype/category-Zp-tests (Files): Likewise.
33128         * modules/unictype/category-Zs-tests (Files): Likewise.
33129         * modules/unictype/category-and-not-tests (Files): Likewise.
33130         * modules/unictype/category-and-tests (Files): Likewise.
33131         * modules/unictype/category-byname-tests (Files): Likewise.
33132         * modules/unictype/category-name-tests (Files): Likewise.
33133         * modules/unictype/category-none-tests (Files): Likewise.
33134         * modules/unictype/category-of-tests (Files): Likewise.
33135         * modules/unictype/category-or-tests (Files): Likewise.
33136         * modules/unictype/category-test-withtable-tests (Files): Likewise.
33137         * modules/unictype/combining-class-tests (Files): Likewise.
33138         * modules/unictype/ctype-alnum-tests (Files): Likewise.
33139         * modules/unictype/ctype-alpha-tests (Files): Likewise.
33140         * modules/unictype/ctype-blank-tests (Files): Likewise.
33141         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
33142         * modules/unictype/ctype-digit-tests (Files): Likewise.
33143         * modules/unictype/ctype-graph-tests (Files): Likewise.
33144         * modules/unictype/ctype-lower-tests (Files): Likewise.
33145         * modules/unictype/ctype-print-tests (Files): Likewise.
33146         * modules/unictype/ctype-punct-tests (Files): Likewise.
33147         * modules/unictype/ctype-space-tests (Files): Likewise.
33148         * modules/unictype/ctype-upper-tests (Files): Likewise.
33149         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
33150         * modules/unictype/decimal-digit-tests (Files): Likewise.
33151         * modules/unictype/digit-tests (Files): Likewise.
33152         * modules/unictype/mirror-tests (Files): Likewise.
33153         * modules/unictype/numeric-tests (Files): Likewise.
33154         * modules/unictype/property-alphabetic-tests (Files): Likewise.
33155         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
33156         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
33157         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
33158         Likewise.
33159         * modules/unictype/property-bidi-block-separator-tests (Files):
33160         Likewise.
33161         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33162         Likewise.
33163         * modules/unictype/property-bidi-common-separator-tests (Files):
33164         Likewise.
33165         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33166         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33167         Likewise.
33168         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33169         Likewise.
33170         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33171         Likewise.
33172         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33173         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33174         Likewise.
33175         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33176         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33177         Likewise.
33178         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33179         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33180         * modules/unictype/property-bidi-segment-separator-tests (Files):
33181         Likewise.
33182         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33183         * modules/unictype/property-byname-tests (Files): Likewise.
33184         * modules/unictype/property-combining-tests (Files): Likewise.
33185         * modules/unictype/property-composite-tests (Files): Likewise.
33186         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33187         * modules/unictype/property-dash-tests (Files): Likewise.
33188         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33189         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33190         Likewise.
33191         * modules/unictype/property-deprecated-tests (Files): Likewise.
33192         * modules/unictype/property-diacritic-tests (Files): Likewise.
33193         * modules/unictype/property-extender-tests (Files): Likewise.
33194         * modules/unictype/property-format-control-tests (Files): Likewise.
33195         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33196         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33197         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33198         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33199         * modules/unictype/property-hyphen-tests (Files): Likewise.
33200         * modules/unictype/property-id-continue-tests (Files): Likewise.
33201         * modules/unictype/property-id-start-tests (Files): Likewise.
33202         * modules/unictype/property-ideographic-tests (Files): Likewise.
33203         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33204         * modules/unictype/property-ids-trinary-operator-tests (Files):
33205         Likewise.
33206         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33207         * modules/unictype/property-iso-control-tests (Files): Likewise.
33208         * modules/unictype/property-join-control-tests (Files): Likewise.
33209         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33210         * modules/unictype/property-line-separator-tests (Files): Likewise.
33211         * modules/unictype/property-logical-order-exception-tests (Files):
33212         Likewise.
33213         * modules/unictype/property-lowercase-tests (Files): Likewise.
33214         * modules/unictype/property-math-tests (Files): Likewise.
33215         * modules/unictype/property-non-break-tests (Files): Likewise.
33216         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33217         * modules/unictype/property-numeric-tests (Files): Likewise.
33218         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33219         * modules/unictype/property-other-default-ignorable-code-point-tests
33220         (Files): Likewise.
33221         * modules/unictype/property-other-grapheme-extend-tests (Files):
33222         Likewise.
33223         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33224         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33225         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33226         * modules/unictype/property-other-math-tests (Files): Likewise.
33227         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33228         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33229         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33230         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33231         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33232         * modules/unictype/property-private-use-tests (Files): Likewise.
33233         * modules/unictype/property-punctuation-tests (Files): Likewise.
33234         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33235         * modules/unictype/property-radical-tests (Files): Likewise.
33236         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33237         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33238         * modules/unictype/property-space-tests (Files): Likewise.
33239         * modules/unictype/property-terminal-punctuation-tests (Files):
33240         Likewise.
33241         * modules/unictype/property-test-tests (Files): Likewise.
33242         * modules/unictype/property-titlecase-tests (Files): Likewise.
33243         * modules/unictype/property-unassigned-code-value-tests (Files):
33244         Likewise.
33245         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33246         * modules/unictype/property-uppercase-tests (Files): Likewise.
33247         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33248         * modules/unictype/property-white-space-tests (Files): Likewise.
33249         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33250         * modules/unictype/property-xid-start-tests (Files): Likewise.
33251         * modules/unictype/property-zero-width-tests (Files): Likewise.
33252         * modules/unictype/scripts-tests (Files): Likewise.
33253         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33254         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33255         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33256         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33257         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33258         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33259         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33260         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33261         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33262         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33263         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33264         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33265         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33266         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33267         * modules/uninorm/composition-tests (Files): Likewise.
33268         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33269         * modules/uninorm/decomposition-tests (Files): Likewise.
33270         * modules/uninorm/filter-tests (Files): Likewise.
33271         * modules/uninorm/nfc-tests (Files): Likewise.
33272         * modules/uninorm/nfd-tests (Files): Likewise.
33273         * modules/uninorm/nfkc-tests (Files): Likewise.
33274         * modules/uninorm/nfkd-tests (Files): Likewise.
33275         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33276         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33277         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33278         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33279         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33280         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33281         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33282         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33283         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33284         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33285         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33286         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33287         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33288         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33289         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33290         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33291         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33292         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33293         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33294         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33295         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33296         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33297         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33298         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33299         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33300         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33301         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33302         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33303         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33304         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33305         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33306         * modules/uniwidth/u8-width-tests (Files): Likewise.
33307         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33308         * modules/uniwidth/u16-width-tests (Files): Likewise.
33309         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33310         * modules/uniwidth/u32-width-tests (Files): Likewise.
33311         * modules/uniwidth/width-tests (Files): Likewise.
33312         * modules/unlink-tests (Files): Likewise.
33313         * modules/unsetenv-tests (Files): Likewise.
33314         * modules/usleep-tests (Files): Likewise.
33315         * modules/utimens-tests (Files): Likewise.
33316         * modules/utimensat-tests (Files): Likewise.
33317         * modules/vasnprintf-posix-tests (Files): Likewise.
33318         * modules/vasnprintf-tests (Files): Likewise.
33319         * modules/vasprintf-posix-tests (Files): Likewise.
33320         * modules/vasprintf-tests (Files): Likewise.
33321         * modules/vdprintf-posix-tests (Files): Likewise.
33322         * modules/vfprintf-posix-tests (Files): Likewise.
33323         * modules/vprintf-posix-tests (Files): Likewise.
33324         * modules/vsnprintf-posix-tests (Files): Likewise.
33325         * modules/vsnprintf-tests (Files): Likewise.
33326         * modules/vsprintf-posix-tests (Files): Likewise.
33327         * modules/wcrtomb-tests (Files): Likewise.
33328         * modules/wcsnrtombs-tests (Files): Likewise.
33329         * modules/wcsrtombs-tests (Files): Likewise.
33330         * modules/wctype-tests (Files): Likewise.
33331         * modules/wcwidth-tests (Files): Likewise.
33332         * modules/xmemdup0-tests (Files): Likewise.
33333         * modules/xprintf-posix-tests (Files): Likewise.
33334         * modules/xvasprintf-tests (Files): Likewise.
33335
33336 2009-12-24  Eric Blake  <ebb9@byu.net>
33337
33338         test-nanosleep: fix typo
33339         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33340         patch.
33341         Reported by Bruno Haible.
33342
33343 2009-12-24  Bruno Haible  <bruno@clisp.org>
33344
33345         Reduce namespace pollution on glibc systems.
33346         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33347         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33348         systems.
33349         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33350         <getopt.h> on glibc systems.
33351         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33352         systems.
33353         * lib/fcntl.c: Include <unistd.h> here instead.
33354
33355 2009-12-24  Bruno Haible  <bruno@clisp.org>
33356
33357         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33358
33359 2009-12-24  Eric Blake  <ebb9@byu.net>
33360
33361         tests: add signature checks
33362         * tests/signature.h (SIGNATURE_CHECK): New file.
33363         * modules/atexit-tests (Files): Use it.
33364         * modules/btowc-tests (Files): Likewise.
33365         * modules/canonicalize-lgpl-tests (Files): Likewise.
33366         * modules/ceilf-tests (Files): Likewise.
33367         * modules/ceill-tests (Files): Likewise.
33368         * modules/chown-tests (Files): Likewise.
33369         * modules/dprintf-posix-tests (Files): Likewise.
33370         * modules/dup2-tests (Files): Likewise.
33371         * modules/dup3-tests (Files): Likewise.
33372         * modules/duplocale-tests (Files): Likewise.
33373         * modules/fchdir-tests (Files): Likewise.
33374         * modules/fcntl-tests (Files): Likewise.
33375         * modules/fdopendir-tests (Files): Likewise.
33376         * modules/fflush-tests (Files): Likewise.
33377         * modules/flock-tests (Files): Likewise.
33378         * modules/floorf-tests (Files): Likewise.
33379         * modules/floorl-tests (Files): Likewise.
33380         * modules/fnmatch-tests (Files): Likewise.
33381         * modules/fopen-tests (Files): Likewise.
33382         * modules/fprintf-posix-tests (Files): Likewise.
33383         * modules/freopen-tests (Files): Likewise.
33384         * modules/frexp-nolibm-tests (Files): Likewise.
33385         * modules/frexp-tests (Files): Likewise.
33386         * modules/frexpl-nolibm-tests (Files): Likewise.
33387         * modules/frexpl-tests (Files): Likewise.
33388         * modules/fseek-tests (Files): Likewise.
33389         * modules/fseeko-tests (Files): Likewise.
33390         * modules/fsync-tests (Files): Likewise.
33391         * modules/ftell-tests (Files): Likewise.
33392         * modules/ftello-tests (Files): Likewise.
33393         * modules/futimens-tests (Files): Likewise.
33394         * modules/getaddrinfo-tests (Files): Likewise.
33395         * modules/getcwd-tests (Files): Likewise.
33396         * modules/getdelim-tests (Files): Likewise.
33397         * modules/getdtablesize-tests (Files): Likewise.
33398         * modules/getgroups-tests (Files): Likewise.
33399         * modules/gethostname-tests (Files): Likewise.
33400         * modules/getline-tests (Files): Likewise.
33401         * modules/getopt-posix-tests (Files): Likewise.
33402         * modules/gettimeofday-tests (Files): Likewise.
33403         * modules/glob-tests (Files): Likewise.
33404         * modules/iconv-tests (Files): Likewise.
33405         * modules/inet_ntop-tests (Files): Likewise.
33406         * modules/inet_pton-tests (Files): Likewise.
33407         * modules/isblank-tests (Files): Likewise.
33408         * modules/lchown-tests (Files): Likewise.
33409         * modules/ldexpl-tests (Files): Likewise.
33410         * modules/link-tests (Files): Likewise.
33411         * modules/linkat-tests (Files): Likewise.
33412         * modules/lseek-tests (Files): Likewise.
33413         * modules/lstat-tests (Files): Likewise.
33414         * modules/mbrtowc-tests (Files): Likewise.
33415         * modules/mbsinit-tests (Files): Likewise.
33416         * modules/mbsnrtowcs-tests (Files): Likewise.
33417         * modules/mbsrtowcs-tests (Files): Likewise.
33418         * modules/memchr-tests (Files): Likewise.
33419         * modules/memcmp-tests (Files): Likewise.
33420         * modules/memmem-tests (Files): Likewise.
33421         * modules/memrchr-tests (Files): Likewise.
33422         * modules/mkdir-tests (Files): Likewise.
33423         * modules/mkfifo-tests (Files): Likewise.
33424         * modules/mkfifoat-tests (Files): Likewise.
33425         * modules/mknod-tests (Files): Likewise.
33426         * modules/nanosleep-tests (Files): Likewise.
33427         * modules/nl_langinfo-tests (Files): Likewise.
33428         * modules/obstack-printf-tests (Files): Likewise.
33429         * modules/open-tests (Files): Likewise.
33430         * modules/openat-tests (Files): Likewise.
33431         * modules/perror-tests (Files): Likewise.
33432         * modules/pipe2-tests (Files): Likewise.
33433         * modules/poll-tests (Files): Likewise.
33434         * modules/popen-tests (Files): Likewise.
33435         * modules/posix_spawn-tests (Files): Likewise.
33436         * modules/posix_spawnp-tests (Files): Likewise.
33437         * modules/pread-tests (Files): Likewise.
33438         * modules/printf-posix-tests (Files): Likewise.
33439         * modules/pty-tests (Files): Likewise.
33440         * modules/random_r-tests (Files): Likewise.
33441         * modules/rawmemchr-tests (Files): Likewise.
33442         * modules/readlink-tests (Files): Likewise.
33443         * modules/remove-tests (Files): Likewise.
33444         * modules/rename-tests (Files): Likewise.
33445         * modules/renameat-tests (Files): Likewise.
33446         * modules/rmdir-tests (Files): Likewise.
33447         * modules/round-tests (Files): Likewise.
33448         * modules/roundf-tests (Files): Likewise.
33449         * modules/roundl-tests (Files): Likewise.
33450         * modules/select-tests (Files): Likewise.
33451         * modules/setenv-tests (Files): Likewise.
33452         * modules/sigaction-tests (Files): Likewise.
33453         * modules/sleep-tests (Files): Likewise.
33454         * modules/snprintf-posix-tests (Files): Likewise.
33455         * modules/snprintf-tests (Files): Likewise.
33456         * modules/sprintf-posix-tests (Files): Likewise.
33457         * modules/stat-tests (Files): Likewise.
33458         * modules/strcasestr-tests (Files): Likewise.
33459         * modules/strchrnul-tests (Files): Likewise.
33460         * modules/strerror-tests (Files): Likewise.
33461         * modules/strsignal-tests (Files): Likewise.
33462         * modules/strstr-tests (Files): Likewise.
33463         * modules/strtod-tests (Files): Likewise.
33464         * modules/strverscmp-tests (Files): Likewise.
33465         * modules/symlink-tests (Files): Likewise.
33466         * modules/symlinkat-tests (Files): Likewise.
33467         * modules/times-tests (Files): Likewise.
33468         * modules/trunc-tests (Files): Likewise.
33469         * modules/truncf-tests (Files): Likewise.
33470         * modules/truncl-tests (Files): Likewise.
33471         * modules/tsearch-tests (Files): Likewise.
33472         * modules/uname-tests (Files): Likewise.
33473         * modules/unlink-tests (Files): Likewise.
33474         * modules/unsetenv-tests (Files): Likewise.
33475         * modules/usleep-tests (Files): Likewise.
33476         * modules/utimensat-tests (Files): Likewise.
33477         * modules/vasprintf-tests (Files): Likewise.
33478         * modules/vdprintf-posix-tests (Files): Likewise.
33479         * modules/vfprintf-posix-tests (Files): Likewise.
33480         * modules/vprintf-posix-tests (Files): Likewise.
33481         * modules/vsnprintf-posix-tests (Files): Likewise.
33482         * modules/vsnprintf-tests (Files): Likewise.
33483         * modules/vsprintf-posix-tests (Files): Likewise.
33484         * modules/wcrtomb-tests (Files): Likewise.
33485         * modules/wcsnrtombs-tests (Files): Likewise.
33486         * modules/wcsrtombs-tests (Files): Likewise.
33487         * modules/wcwidth-tests (Files): Likewise.
33488         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33489         * tests/test-isinf.c (isinf): Likewise.
33490         * tests/test-isnan.c (isnan): Likewise.
33491         * tests/test-signbit.c (signbit): Likewise.
33492         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33493         declaration, either as macro or with correct signature.
33494         (select): Ensure function under test is declared with correct
33495         signature in correct header.
33496         * tests/test-atexit.c (atexit): Likewise.
33497         * tests/test-btowc.c (btowc): Likewise.
33498         * tests/test-canonicalize-lgpl.c (realpath)
33499         (canonicalize_file_name): Likewise.
33500         * tests/test-ceilf1.c (ceilf): Likewise.
33501         * tests/test-ceill.c (ceill): Likewise.
33502         * tests/test-chown.c (chown): Likewise.
33503         * tests/test-dprintf-posix.c (dprintf): Likewise.
33504         * tests/test-dup2.c (dup2): Likewise.
33505         * tests/test-dup3.c (dup3): Likewise.
33506         * tests/test-duplocale.c (duplocale): Likewise.
33507         * tests/test-fchdir.c (fchdir): Likewise.
33508         * tests/test-fchownat.c (fchownat): Likewise.
33509         * tests/test-fcntl.c (fcntl): Likewise.
33510         * tests/test-fdopendir.c (fdopendir): Likewise.
33511         * tests/test-fflush.c (fflush): Likewise.
33512         * tests/test-flock.c (flock): Likewise.
33513         * tests/test-floorf1.c (floorf): Likewise.
33514         * tests/test-floorl.c (floorl): Likewise.
33515         * tests/test-fnmatch.c (fnmatch): Likewise.
33516         * tests/test-fopen.c (fopen): Likewise.
33517         * tests/test-fprintf-posix.c (fprintf): Likewise.
33518         * tests/test-freopen.c (freopen): Likewise.
33519         * tests/test-frexp.c (frexp): Likewise.
33520         * tests/test-frexpl.c (frexpl): Likewise.
33521         * tests/test-fseek.c (fseek): Likewise.
33522         * tests/test-fseeko.c (fseeko): Likewise.
33523         * tests/test-fstatat.c (fstatat): Likewise.
33524         * tests/test-fsync.c (fsync): Likewise.
33525         * tests/test-ftell.c (ftell): Likewise.
33526         * tests/test-ftello.c (ftello): Likewise.
33527         * tests/test-futimens.c (futimens): Likewise.
33528         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33529         (gai_strerror): Likewise.
33530         * tests/test-getcwd.c (getcwd): Likewise.
33531         * tests/test-getdelim.c (getdelim): Likewise.
33532         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33533         * tests/test-getgroups.c (getgroups): Likewise.
33534         * tests/test-gethostname.c (gethostname): Likewise.
33535         * tests/test-getline.c (getline): Likewise.
33536         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33537         Likewise.
33538         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33539         * tests/test-glob.c (glob, globfree): Likewise.
33540         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33541         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33542         * tests/test-inet_pton.c (inet_pton): Likewise.
33543         * tests/test-isblank.c (isblank): Likewise.
33544         * tests/test-lchown.c (lchown): Likewise.
33545         * tests/test-ldexpl.c (ldexpl): Likewise.
33546         * tests/test-link.c (link): Likewise.
33547         * tests/test-linkat.c (linkat): Likewise.
33548         * tests/test-lseek.c (lseek): Likewise.
33549         * tests/test-lstat.c (lstat): Likewise.
33550         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33551         * tests/test-mbsinit.c (mbsinit): Likewise.
33552         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33553         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33554         * tests/test-memchr.c (memchr): Likewise.
33555         * tests/test-memcmp.c (memcmp): Likewise.
33556         * tests/test-memmem.c (memmem): Likewise.
33557         * tests/test-memrchr.c (memrchr): Likewise.
33558         * tests/test-mkdir.c (mkdir): Likewise.
33559         * tests/test-mkdirat.c (mkdirat): Likewise.
33560         * tests/test-mkfifo.c (mkfifo): Likewise.
33561         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33562         * tests/test-mknod.c (mknod): Likewise.
33563         * tests/test-nanosleep.c (nanosleep): Likewise.
33564         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33565         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33566         Likewise.
33567         * tests/test-open.c (open): Likewise.
33568         * tests/test-openat.c (openat): Likewise.
33569         * tests/test-perror.c (perror): Likewise.
33570         * tests/test-pipe2.c (pipe2): Likewise.
33571         * tests/test-poll.c (poll): Likewise.
33572         * tests/test-popen.c (popen, pclose): Likewise.
33573         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33574         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33575         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33576         (posix_spawn_file_actions_destroy)
33577         (posix_spawn_file_actions_addclose)
33578         (posix_spawn_file_actions_addopen)
33579         (posix_spawn_file_actions_adddup2): Likewise.
33580         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33581         * tests/test-pread.c (pread): Likewise.
33582         * tests/test-printf-posix.c (printf): Likewise.
33583         * tests/test-pty.c (openpty, forkpty): Likewise.
33584         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33585         (random_r): Likewise.
33586         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33587         * tests/test-readlink.c (readlink): Likewise.
33588         * tests/test-remove.c (remove): Likewise.
33589         * tests/test-rename.c (rename): Likewise.
33590         * tests/test-renameat.c (renameat): Likewise.
33591         * tests/test-rmdir.c (rmdir): Likewise.
33592         * tests/test-round1.c (round): Likewise.
33593         * tests/test-roundf1.c (roundf): Likewise.
33594         * tests/test-roundl.c (roundl): Likewise.
33595         * tests/test-setenv.c (setenv): Likewise.
33596         * tests/test-sigaction.c (sigaction): Likewise.
33597         * tests/test-sleep.c (sleep): Likewise.
33598         * tests/test-snprintf.c (snprintf): Likewise.
33599         * tests/test-sprintf-posix.c (sprintf): Likewise.
33600         * tests/test-stat.c (stat): Likewise.
33601         * tests/test-stpncpy.c (stpncpy): Likewise.
33602         * tests/test-strcasestr.c (strcasestr): Likewise.
33603         * tests/test-strchrnul.c (strchrnul): Likewise.
33604         * tests/test-strerror.c (strerror): Likewise.
33605         * tests/test-strsignal.c (strsignal): Likewise.
33606         * tests/test-strstr.c (strstr): Likewise.
33607         * tests/test-strtod.c (strtod): Likewise.
33608         * tests/test-strverscmp.c (strverscmp): Likewise.
33609         * tests/test-symlink.c (symlink): Likewise.
33610         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33611         * tests/test-times.c (times): Likewise.
33612         * tests/test-trunc1.c (trunc): Likewise.
33613         * tests/test-truncf1.c (truncf): Likewise.
33614         * tests/test-truncl.c (truncl): Likewise.
33615         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33616         Likewise.
33617         * tests/test-uname.c (uname): Likewise.
33618         * tests/test-unlink.c (unlink): Likewise.
33619         * tests/test-unlinkat.c (unlinkat): Likewise.
33620         * tests/test-unsetenv.c (unsetenv): Likewise.
33621         * tests/test-usleep.c (usleep): Likewise.
33622         * tests/test-utimensat.c (utimensat): Likewise.
33623         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33624         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33625         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33626         * tests/test-vprintf-posix.c (vprintf): Likewise.
33627         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33628         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33629         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33630         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33631         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33632         * tests/test-wcwidth.c (wcwidth): Likewise.
33633
33634         build: pull in conditional headers during GNULIB_POSIXCHECK
33635         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33636         definitions from any conditionally-included headers.
33637         * lib/stdlib.in.h (includes): Likewise.
33638         * lib/unistd.in.h (includes): Likewise.
33639
33640 2009-12-24  Bruno Haible  <bruno@clisp.org>
33641
33642         * tests/test-argv-iter.c: Include header file being tested immediately
33643         after config.h.
33644         * tests/test-base64.c: Likewise.
33645         * tests/test-flock.c: Likewise.
33646         * tests/test-fsync.c: Likewise.
33647         * tests/test-getdate.c: Likewise.
33648         * tests/test-getndelim2.c: Likewise.
33649         * tests/test-isfinite.c: Likewise.
33650         * tests/test-isinf.c: Likewise.
33651         * tests/test-strerror.c: Likewise.
33652         * tests/test-strsignal.c: Likewise.
33653
33654 2009-12-23  Eric Blake  <ebb9@byu.net>
33655
33656         unistd: work around cygwin bug
33657         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33658         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33659         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33660
33661 2009-12-23  Bruno Haible  <bruno@clisp.org>
33662
33663         localename: More tests.
33664         * tests/test-localename.c (SIZEOF): New macro.
33665         (categories): New variable.
33666         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33667         test_locale_name_default): Add test w.r.t. thread locale.
33668         (test_locale_name_thread): New function.
33669         (main): Invoke it.
33670
33671         localename: Make aware of thread locale.
33672         * lib/localename.h (gl_locale_name_thread): New declaration.
33673         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33674         behaviour with respect to thread locale.
33675         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33676         <langinfo.h>, glthread/lock.h.
33677         (SIZE_BITS): New macro.
33678         (string_hash): New function.
33679         (struct hash_node): New type.
33680         (HASH_TABLE_SIZE): New macro.
33681         (struniq_hash_table, struniq_lock): New variables.
33682         (struniq): New function.
33683         (gl_locale_name_thread): New function.
33684         (gl_locale_name): Invoke it.
33685         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33686         * modules/localename (Depends-on): Add lock.
33687         Reported by Mike Gran <spk121@yahoo.com>.
33688
33689 2009-12-23  Eric Blake  <ebb9@byu.net>
33690
33691         va-args: new module
33692         * modules/va-args: New file.
33693         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33694         * MODULES.html.sh (Core language properties): Mention it.
33695
33696         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33697         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33698         named alias for __attribute__((__unused__)).
33699         * lib/chown.c: Update client.
33700         * lib/fchmodat.c: Likewise.
33701         * lib/fts.c: Likewise.
33702         * lib/getdate.y: Likewise.
33703         * lib/getgroups.c: Likewise.
33704         * lib/getopt.c: Likewise.
33705         * lib/getugroups.c: Likewise.
33706         * lib/mkdir.c: Likewise.
33707         * lib/mkfifo.c: Likewise.
33708         * lib/mkfifoat.c: Likewise.
33709         * lib/mknod.c: Likewise.
33710         * lib/mknodat.c: Likewise.
33711         * lib/readlink.c: Likewise.
33712         * lib/se-context.in.h: Likewise.
33713         * lib/se-selinux.in.h: Likewise.
33714         * lib/sockets.c: Likewise.
33715         * lib/symlink.c: Likewise.
33716         * lib/symlinkat.c: Likewise.
33717         * lib/unicodeio.c: Likewise.
33718         * lib/unistr.h: Likewise.
33719         * tests/test-areadlink.c: Likewise.
33720         * tests/test-areadlinkat.c: Likewise.
33721         * tests/test-filenamecat.c: Likewise.
33722         * tests/test-fseeko.c: Likewise.
33723         * tests/test-ftello.c: Likewise.
33724         * tests/test-getdate.c: Likewise.
33725         * tests/test-getgroups.c: Likewise.
33726         * tests/test-gethostname.c: Likewise.
33727         * tests/test-quotearg.c: Likewise.
33728         * tests/test-version-etc.c: Likewise.
33729         * tests/test-xalloc-die.c: Likewise.
33730         * tests/test-xfprintf-posix.c: Likewise.
33731         * tests/test-xprintf-posix.c: Likewise.
33732         * tests/test-xvasprintf.c: Likewise.
33733
33734         tests: avoid compiler warnings
33735         * tests/test-fcntl.c (main): Delete unused parameters.
33736         * tests/test-freopen-safer.c (main): Likewise.
33737         * tests/test-xalloc-die.c (main): Mark unused parameters.
33738         * tests/test-fseeko.c (main): Likewise.
33739         * tests/test-ftello.c (main): Likewise.
33740         * tests/test-nanosleep.c (main): Avoid declaration warning.
33741         * tests/test-sleep.c (main): Likewise.
33742         * tests/test-unsetenv.c (main): Silence warning about string
33743         literal.
33744         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33745
33746 2009-12-23  Bruno Haible  <bruno@clisp.org>
33747
33748         * tests/test-localename.c (test_locale_name): New function, extracted
33749         from main. Also test mixed situations.
33750         (test_locale_name_posix, test_locale_name_environ,
33751         test_locale_name_default): New functions.
33752         (main): Invoke them all.
33753         * modules/localename-tests (configure.ac): Test for newlocale.
33754
33755 2009-12-23  Bruno Haible  <bruno@clisp.org>
33756
33757         unistd: Ensure getcwd gets declared before being overridden.
33758         * lib/unistd.in.h: Conditionally include <io.h>.
33759
33760 2009-12-22  Bruno Haible  <bruno@clisp.org>
33761
33762         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33763         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33764         (gl_WCHAR_H): Invoke it.
33765         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33766         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33767         Reported by Karl Berry <karl@freefriends.org>.
33768
33769 2009-12-22  Eric Blake  <ebb9@byu.net>
33770
33771         math, unistd: avoid redundant includes
33772         * lib/math.in.h (isnan): No need to re-include <math.h>.
33773         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33774
33775         getsubopt: work around cygwin bug
33776         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33777         avoid conflicting with system getsubopt.
33778         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33779         bug.
33780
33781         getopt: synchronize from glibc
33782         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33783         parameter order.  Adjust all callers.
33784         (_getopt_internal_r, main): Adjust quoting in error messages.
33785         Drop considerations for outdated POSIX 1003.2 error message.
33786         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33787         callers.
33788         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33789
33790         test-getopt: test stderr behavior
33791         * modules/getopt-posix-tests (Depends-on): Add dup2.
33792         * tests/test-getopt.c (ASSERT): Avoid stderr.
33793         (main): Move stderr to a temporary file.
33794         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33795         Instead, add parameter to inform caller if output occurred.
33796         (test_getopt): Adjust all existing tests to expect silence, and
33797         add new tests of leading ":".
33798         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33799         glibc shortcomings with leading "-:" or "+:" in optstring.
33800         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33801         Likewise.
33802         * doc/posix-functions/getopt.texi (getopt): Likewise.
33803
33804         test-getopt: enhance test
33805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33806         supports optind=0.
33807         * tests/test-getopt.c (OPTIND_MIN): Move...
33808         * tests/test-getopt.h (OPTIND_MIN): ...here.
33809         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33810         Require that optind=0 works, since modern BSD supports it in
33811         addition to optreset, and since coreutils expects it.
33812         (test_getopt_long_only): New test.
33813         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33814         glibc shortcomings with 'W;', and enforcement of optind=0.
33815         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33816         Likewise.
33817
33818 2009-12-21  Bruno Haible  <bruno@clisp.org>
33819
33820         localename: Improvements for MacOS X and Cygwin.
33821         * lib/localename.h (gl_locale_name_environ): New declaration.
33822         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33823         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33824         (gl_locale_name_posix): Invoke it.
33825         (gl_locale_name_default): Add comments. Use Windows native API also on
33826         Cygwin.
33827
33828 2009-12-21  Bruno Haible  <bruno@clisp.org>
33829
33830         Update list of Win32 locale ids.
33831         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33832         (LANG_SAMI): Renamed from LANG_SAAMI.
33833         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33834         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33835         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33836         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33837         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33838         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33839         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33840         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33841         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33842         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33843         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33844         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33845         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33846         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33847         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33848         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33849         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33850         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33851         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33852         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33853         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33854         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33855         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33856         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33857         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33858         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33859         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33860         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33861         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33862         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33863         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33864         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33865         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33866         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33867         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33868         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33869         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33870         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33871         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33872         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33873         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33874         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33875         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33876         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33877         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33878         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33879         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33880         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33881         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33882         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33883         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33884         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33885         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33886         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33887         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33888         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33889         Add more languages and countries for Sami, Sorbian. Add more countries
33890         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33891         for Pashto. Change country for Syriac, Tswana.
33892
33893 2009-12-21  Eric Blake  <ebb9@byu.net>
33894
33895         test-utimens: avoid spurious failure
33896         * tests/test-chown.h (nap): Factor...
33897         * tests/nap.h: ...into new file.
33898         * tests/test-lchown.h (nap): Avoid duplication.
33899         * tests/test-utimens-common.h (nap): Use shared implementation,
33900         necessary on file systems with 1-second resolution.
33901         * modules/chown-tests (Files): Include new file.
33902         * modules/fdutimensat-tests (Files): Likewise.
33903         * modules/futimens-tests (Files): Likewise.
33904         * modules/lchown-tests (Files): Likewise.
33905         * modules/openat-tests (Files): Likewise.
33906         * modules/utimens-tests (Files): Likewise.
33907         * modules/utimensat-tests (Files): Likewise.
33908
33909 2009-12-19  Eric Blake  <ebb9@byu.net>
33910
33911         futimens, utimensat: work around Linux bug
33912         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33913         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33914         * lib/utimensat.c (rpl_utimensat): Work around it.
33915         * lib/futimens.c (rpl_futimens): Adjust comment.
33916
33917         utimens: work around Linux ctime bug
33918         * lib/utimens.c (detect_ctime_bug): New helper function.
33919         (update_timespec): Differentiate between workaround needed for
33920         this bug vs. what is needed for systems that lack utimensat.
33921         (fdutimens, lutimens): Work around bug.
33922
33923         utimens: check for ctime update
33924         * tests/test-utimens-common.h (check_ctime): Define.
33925         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33926         * tests/test-futimens.h (test_futimens): Likewise.
33927         * tests/test-lutimens.h (test_lutimens): Likewise.
33928         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33929         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33930
33931 2009-12-19  Bruno Haible  <bruno@clisp.org>
33932
33933         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33934         * tests/test-dprintf-posix2.sh: New file.
33935         * tests/test-dprintf-posix2.c: New file.
33936         * modules/dprintf-posix-tests (Files): Add them.
33937         (configure.ac): Check for getrlimit and setrlimit.
33938         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33939
33940 2009-12-19  Bruno Haible  <bruno@clisp.org>
33941
33942         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33943         * tests/test-fprintf-posix3.sh: New file.
33944         * tests/test-fprintf-posix3.c: New file.
33945         * modules/fprintf-posix-tests (Files): Add them.
33946         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33947
33948 2009-12-19  Eric Blake  <ebb9@byu.net>
33949
33950         dirfd: fix prototype
33951         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33952         * lib/dirfd.c (dirfd): Likewise.
33953
33954         canonicalize: reduce memory usage
33955         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33956         allocation to size.
33957         Reported by Solar Designer <solar@openwall.com>.
33958
33959 2009-12-19  Bruno Haible  <bruno@clisp.org>
33960
33961         New module attribute 'Applicability'.
33962         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33963         * gnulib-tool: New option --extract-applicability.
33964         (func_usage): Document it.
33965         (sed_extract_prog): Recognize it.
33966         (func_get_applicability): New function.
33967         (func_import): Generalize handling of 'link-warning' module.
33968         * modules/link-warning (Applicability): New section.
33969         * modules/arg-nonnull (Applicability): New section.
33970         Repoted by Simon Josefsson <simon@josefsson.org>.
33971
33972 2009-12-19  Bruno Haible  <bruno@clisp.org>
33973
33974         fflush: tweak
33975         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33976         * lib/fseeko.c (rpl_fseeko): Likewise.
33977
33978 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33979
33980         * lib/gl_list.h: Fix typo in comment.
33981
33982 2009-12-16  Eric Blake  <ebb9@byu.net>
33983
33984         fcntl: use to simplify other modules
33985         * modules/cloexec (Depends-on): Add fcntl.
33986         * modules/fchdir (Depends-on): Likewise.
33987         * modules/fd-safer-flag (Depends-on): Likewise.
33988         * modules/unistd-safer (Depends-on): Likewise.
33989         * modules/dup3 (configure.ac): Set module indicator.
33990         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33991         missing.
33992         * lib/fchdir.c (_gl_register_dup): Fix comment.
33993         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33994         * lib/dup-safer.c (dup_safer): Likewise.
33995         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33996         * lib/dup3.c (dup3): Likewise.
33997         * tests/test-fchdir.c (main): Enhance test.
33998         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33999
34000         fcntl: port portions of fcntl to mingw
34001         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
34002         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
34003         replacement for mingw.
34004         * modules/fcntl (Description): Update.
34005         (Depends-on): Add dup2.
34006         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
34007         * modules/fcntl-h (Makefile.am): Substitute it.
34008         * lib/fcntl.in.h (fcntl): Update declaration.
34009         (F_DUPFD, F_GETFD): New macros, when needed.
34010         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
34011         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
34012         * tests/test-fcntl.c (check_flags, main): Enhance test for items
34013         we now guarantee.
34014
34015         fcntl: work around cygwin bug in F_DUPFD
34016         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
34017         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
34018         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
34019         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
34020         * doc/posix-functions/fcntl.texi (fcntl): Document it.
34021
34022         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
34023         * modules/fcntl (Files): List new files.
34024         (configure.ac): Run a test.
34025         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
34026         * lib/fcntl.c (rpl_fcntl): Likewise.
34027         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
34028         (gl_FCNTL_H): Always replace fcntl.h.
34029         * modules/fcntl-h (Makefile.am): Substitute witnesses.
34030         * lib/fcntl.in.h (fcntl): Declare replacement.
34031         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
34032         needed, plus a witness.
34033         * doc/posix-functions/fcntl.texi (fcntl): Document this.
34034         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
34035         * tests/test-fcntl.c: New file.
34036         * modules/fcntl-tests: Likewise.
34037
34038         binary-io: avoid potential compilation warning
34039         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
34040         directives.
34041
34042         fflush: avoid compilation error on NetBSD
34043         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
34044         between off_t and fpos_t, since the latter is sometimes a struct.
34045         * lib/fseeko.c (rpl_fseeko): Likewise.
34046         Reported by Alexander Nasonov <alnsn@yandex.ru>.
34047
34048 2009-12-15  Eric Blake  <ebb9@byu.net>
34049
34050         fcntl-h, stdio, sys_ioctl: fix declarations
34051         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
34052         function must not take arguments.
34053         * lib/sys_ioctl.in.h (ioctl): Likewise.
34054         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
34055         (open): Add a link warning.
34056
34057 2009-12-15  Jim Meyering  <meyering@redhat.com>
34058
34059         areadlink, areadlink-with-size: relax license to LGPLv2+
34060         * modules/areadlink (License): Relax to LGPLv2+.
34061         * modules/areadlink-with-size (License): Likewise.
34062
34063 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
34064             Bruno Haible  <bruno@clisp.org>
34065
34066         *printf: Fix memory leak.
34067         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
34068         * lib/vfprintf.c (vfprintf): Likewise.
34069         * lib/dprintf.c (dprintf): Likewise.
34070         * lib/vdprintf.c (vdprintf): Likewise.
34071
34072 2009-12-14  Eric Blake  <ebb9@byu.net>
34073
34074         accept4: adjust module dependencies
34075         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
34076
34077         utimens: one more try at avoiding compiler warning
34078         * lib/utimens.c (lutimens): Lower scope of result.
34079
34080 2009-12-13  Bruno Haible  <bruno@clisp.org>
34081
34082         Move the malloc checking from module 'list' to new module 'xlist'.
34083         * modules/xlist: New file.
34084         * lib/gl_xlist.h: New file.
34085         * lib/gl_xlist.c: New file.
34086         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
34087         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
34088         gl_list_add_last, gl_list_add_before, gl_list_add_after,
34089         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
34090         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
34091         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
34092         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
34093         gl_sortedlist_nx_add): New declarations.
34094         (struct gl_list_implementation): Rename and change methods accordingly.
34095         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
34096         (gl_list_nx_create): Renamed from gl_list_create.
34097         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34098         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34099         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34100         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34101         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34102         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34103         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34104         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34105         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
34106         gl_list_create_empty.
34107         (gl_list_nx_create): Renamed from gl_list_create.
34108         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
34109         (gl_list_nx_set_at): Renamed from gl_list_set_at.
34110         (gl_list_nx_add_first): Renamed from gl_list_add_first.
34111         (gl_list_nx_add_last): Renamed from gl_list_add_last.
34112         (gl_list_nx_add_before): Renamed from gl_list_add_before.
34113         (gl_list_nx_add_after): Renamed from gl_list_add_after.
34114         (gl_list_nx_add_at): Renamed from gl_list_add_at.
34115         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
34116         * lib/gl_array_list.c: Don't include xalloc.h.
34117         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
34118         NULL upon out-of-memory.
34119         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
34120         out-of-memory.
34121         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
34122         Change return type to 'int'.
34123         (gl_array_nx_set_at): Renamed from gl_array_set_at.
34124         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34125         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
34126         upon out-of-memory.
34127         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
34128         upon out-of-memory.
34129         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
34130         upon out-of-memory.
34131         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
34132         upon out-of-memory.
34133         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
34134         out-of-memory.
34135         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
34136         Update.
34137         (gl_array_list_implementation): Update.
34138         * lib/gl_carray_list.c: Don't include xalloc.h.
34139         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
34140         Return NULL upon out-of-memory.
34141         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
34142         out-of-memory.
34143         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
34144         Change return type to 'int'.
34145         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
34146         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
34147         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
34148         upon out-of-memory.
34149         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
34150         upon out-of-memory.
34151         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
34152         out-of-memory.
34153         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
34154         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
34155         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
34156         Update.
34157         (gl_carray_list_implementation): Update.
34158         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
34159         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
34160         gl_linked_create_empty. Return NULL upon out-of-memory.
34161         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34162         out-of-memory.
34163         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34164         Change return type to 'int'. Return -1 upon out-of-memory.
34165         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34166         out-of-memory.
34167         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34168         upon out-of-memory.
34169         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34170         upon out-of-memory.
34171         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34172         NULL upon out-of-memory.
34173         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34174         upon out-of-memory.
34175         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34176         out-of-memory.
34177         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34178         Update.
34179         * lib/gl_linked_list.c: Don't include xalloc.h.
34180         (gl_linked_list_implementation): Update.
34181         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34182         (add_to_bucket): Change return type to 'int'.
34183         (gl_linkedhash_list_implementation): Update.
34184         * lib/gl_anytree_list1.h (free_subtree): New function.
34185         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34186         gl_tree_create_empty. Return NULL upon out-of-memory.
34187         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34188         Change return type to 'int'. Return -1 upon out-of-memory.
34189         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34190         out-of-memory.
34191         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34192         (gl_tree_remove_node): New function, moved here from
34193         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34194         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34195         Update.
34196         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34197         malloc, not xmalloc. Return NULL upon out-of-memory.
34198         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34199         out-of-memory.
34200         (gl_tree_remove_node_from_tree): New function, extracted from
34201         gl_tree_remove_node.
34202         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34203         upon out-of-memory.
34204         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34205         out-of-memory.
34206         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34207         upon out-of-memory.
34208         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34209         upon out-of-memory.
34210         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34211         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34212         not xmalloc. Return NULL upon out-of-memory.
34213         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34214         out-of-memory.
34215         (gl_tree_remove_node_from_tree): New function, extracted from
34216         gl_tree_remove_node.
34217         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34218         upon out-of-memory.
34219         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34220         out-of-memory.
34221         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34222         upon out-of-memory.
34223         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34224         upon out-of-memory.
34225         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34226         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34227         gl_anytree_list1.h before gl_anyavltree_list2.h.
34228         (gl_avltree_list_implementation): Update.
34229         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34230         gl_anytree_list1.h before gl_anyavltree_list2.h.
34231         (gl_rbtree_list_implementation): Update.
34232         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34233         Change return type to 'int'. Return -1 upon out-of-memory. Use
34234         __builtin_expect.
34235         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34236         (gl_avltreehash_list_implementation): Update.
34237         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34238         (gl_rbtreehash_list_implementation): Update.
34239         * modules/array-list (Depends-on): Remove xalloc.
34240         * modules/carray-list (Depends-on): Likewise.
34241         * modules/linked-list (Depends-on): Likewise.
34242         * modules/linkedhash-list (Depends-on): Likewise.
34243         * modules/avltree-list (Depends-on): Likewise.
34244         * modules/rbtree-list (Depends-on): Likewise.
34245         * modules/avltreehash-list (Depends-on): Likewise.
34246         * modules/rbtreehash-list (Depends-on): Likewise.
34247
34248         * modules/xsublist: New file.
34249         * lib/gl_xsublist.h: New file.
34250         * lib/gl_xsublist.c: New file.
34251         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34252         (gl_sublist_nx_create): New declaration.
34253         * lib/gl_sublist.c: Don't include xalloc.h.
34254         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34255         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34256         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34257         Change return type to 'int'. Return -1 upon out-of-memory.
34258         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34259         upon out-of-memory.
34260         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34261         NULL upon out-of-memory.
34262         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34263         upon out-of-memory.
34264         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34265         NULL upon out-of-memory.
34266         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34267         NULL upon out-of-memory.
34268         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34269         upon out-of-memory.
34270         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34271         (gl_sublist_list_implementation): Update.
34272         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34273         upon out-of-memory.
34274         * modules/sublist (Depends-on): Remove xalloc.
34275
34276         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34277         * tests/test-carray_list.c: Likewise.
34278         * tests/test-linked_list.c: Likewise.
34279         * tests/test-linkedhash_list.c: Likewise.
34280         * tests/test-avltree_list.c: Likewise.
34281         * tests/test-rbtree_list.c: Likewise.
34282         * tests/test-avltreehash_list.c: Likewise.
34283         * tests/test-rbtreehash_list.c: Likewise.
34284         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34285         * modules/carray-list-tests (Makefile.am): Likewise.
34286         * modules/linked-list-tests (Makefile.am): Likewise.
34287         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34288         * modules/avltree-list-tests (Makefile.am): Likewise.
34289         * modules/rbtree-list-tests (Makefile.am): Likewise.
34290         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34291         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34292
34293         * NEWS: Mention the changes.
34294
34295         * lib/clean-temp.c: Include gl_xlist.h.
34296         * modules/clean-temp (Depends-on): Add xlist.
34297
34298         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34299         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34300
34301         * tests/test-array_oset.c: Include gl_xlist.h.
34302         * modules/array-oset-tests (Depends-on): Add xlist.
34303
34304         Reported by José E. Marchesi <jemarch@gnu.org>.
34305
34306 2009-12-13  Bruno Haible  <bruno@clisp.org>
34307
34308         Move the malloc checking from module 'oset' to new module 'xoset'.
34309         * modules/xoset: New file.
34310         * lib/gl_xoset.h: New file.
34311         * lib/gl_xoset.c: New file.
34312         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34313         declarations.
34314         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34315         (struct gl_oset_implementation): Rename and change methods accordingly.
34316         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34317         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34318         'int'. Mark as __warn_unused_result__.
34319         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34320         gl_oset_create_empty.
34321         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34322         'int'.
34323         * lib/gl_array_oset.c: Don't include xalloc.h.
34324         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34325         malloc, not xmalloc.
34326         (grow): Change return type to 'int'. Don't call xalloc_die.
34327         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34328         to 'int'.
34329         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34330         'int'.
34331         (gl_array_oset_implementation): Update.
34332         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34333         gl_tree_create_empty.
34334         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34335         'int'.
34336         * lib/gl_avltree_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_avltree_oset_implementation): Update.
34344         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34345         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34346         xmalloc.
34347         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34348         not xmalloc.
34349         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34350         xmalloc.
34351         (gl_rbtree_oset_implementation): Update.
34352         * modules/array-oset (Depends-on): Remove xalloc.
34353         * modules/avltree-oset (Depends-on): Likewise.
34354         * modules/rbtree-oset (Depends-on): Likewise.
34355         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34356         * tests/test-avltree_oset.c: Likewise.
34357         * tests/test-rbtree_oset.c: Likewise.
34358         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34359         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34360         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34361         * NEWS: Mention the change.
34362
34363 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34364
34365         maint.mk: allow a project to override release-prep commands
34366         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34367         commands into a new rule.
34368         (release-prep): New rule.
34369         (release-prep-hook): New overridable variable.
34370
34371 2009-12-13  Bruno Haible  <bruno@clisp.org>
34372
34373         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34374
34375 2009-12-13  Jim Meyering  <meyering@redhat.com>
34376
34377         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34378         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34379
34380 2009-12-12  Bruno Haible  <bruno@clisp.org>
34381
34382         duplocale: Tweak.
34383         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34384
34385 2009-12-12  Karl Berry  <karl@gnu.org>
34386
34387         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34388
34389 2009-12-12  Bruno Haible  <bruno@clisp.org>
34390
34391         * m4/po.m4: Undo incorrect untabification.
34392
34393 2009-12-12  Bruno Haible  <bruno@clisp.org>
34394
34395         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34396         * modules/c-strtod (Depends-on): Add locale.
34397         * modules/c-strtold (Depends-on): Likewise.
34398
34399 2009-12-12  Bruno Haible  <bruno@clisp.org>
34400
34401         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34402
34403 2009-12-11  Eric Blake  <ebb9@byu.net>
34404
34405         setenv: relax requirement in light of POSIX ruling
34406         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34407         not NULL.
34408         * tests/test-setenv.c (main): Relax test.
34409         * tests/test-unsetenv.c (main): Likewise.
34410         * doc/posix-functions/setenv.texi (setenv): Document this.
34411         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34412
34413 2009-12-11  Bruno Haible  <bruno@clisp.org>
34414
34415         New module 'fd-safer-flag'.
34416         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34417         * lib/dup-safer.c (dup_safer_flag): Remove function.
34418         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34419         * lib/fd-safer.c (fd_safer_flag): Remove function.
34420         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34421         * modules/cloexec (configure.ac): Drop indicator macro.
34422         * modules/fd-safer-flag: New file.
34423         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34424         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34425         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34426
34427 2009-12-11  Bruno Haible  <bruno@clisp.org>
34428
34429         Tests for module 'nl_langinfo'.
34430         * modules/nl_langinfo-tests: New file.
34431         * tests/test-nl_langinfo.sh: New file.
34432         * tests/test-nl_langinfo.c: New file.
34433
34434         New module 'nl_langinfo'.
34435         * lib/nl_langinfo.c: New file.
34436         * m4/nl_langinfo.m4: New file.
34437         * modules/nl_langinfo: New file.
34438         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34439
34440 2009-12-11  Bruno Haible  <bruno@clisp.org>
34441
34442         Tests for module 'langinfo'.
34443         * modules/langinfo-tests: New file.
34444         * tests/test-langinfo.c: New file.
34445
34446         New module 'langinfo'.
34447         * lib/langinfo.in.h: New file.
34448         * m4/langinfo_h.m4: New file.
34449         * modules/langinfo: New file.
34450         * doc/posix-headers/langinfo.texi: Mention the new module.
34451
34452 2009-12-11  Bruno Haible  <bruno@clisp.org>
34453
34454         * lib/config.charset: Untabify.
34455
34456 2009-12-11  Bruno Haible  <bruno@clisp.org>
34457
34458         * modules/unistd-safer (configure.ac): Drop indicator macro.
34459
34460 2009-12-11  Bruno Haible  <bruno@clisp.org>
34461
34462         Move pipe2-safer code to its own file.
34463         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34464         * lib/pipe-safer.c (pipe2_safer): Remove function.
34465         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34466         (Makefile.am): Add it to lib_SOURCES.
34467
34468 2009-12-10  Bruno Haible  <bruno@clisp.org>
34469
34470         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34471
34472 2009-12-10  Bruno Haible  <bruno@clisp.org>
34473
34474         Declare which arguments expect non-NULL values, for GCC and clang.
34475         * build-aux/arg-nonnull.h: New file.
34476         * modules/arg-nonnull: New file.
34477         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34478         (inet_ntop, inet_pton): Use it.
34479         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34480         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34481         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34482         (open, openat): Use it.
34483         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34484         (fnmatch): Use it.
34485         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34486         (getopt, getopt_long, getopt_long_only): Use it.
34487         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34488         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34489         Use it.
34490         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34491         (iconv_open): Use it.
34492         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34493         (strtoimax, strtoumax): Use it.
34494         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34495         (duplocale): Use it.
34496         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34497         (frexp, frexpl): Use it.
34498         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34499         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34500         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34501         (tsearch, tfind, tdelete, twalk): Use it.
34502         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34503         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34504         sigpending): Use it.
34505         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34506         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34507         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34508         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34509         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34510         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34511         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34512         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34513         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34514         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34515         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34516         Use it.
34517         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34518         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34519         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34520         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34521         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34522         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34523         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34524         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34525         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34526         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34527         strtoull, unsetenv): Use it.
34528         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34529         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34530         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34531         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34532         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34533         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34534         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34535         (strcasecmp, strncasecmp): Use it.
34536         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34537         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34538         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34539         rpl_setsockopt): Use it.
34540         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34541         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34542         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34543         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34544         (gettimeofday): Use it.
34545         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34546         (times): Use it.
34547         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34548         (uname): Use it.
34549         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34550         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34551         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34552         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34553         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34554         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34555         unlinkat, write): Use it.
34556         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34557         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34558         * lib/argv-iter.h: Include arg-nonnull.h.
34559         (_ATTRIBUTE_NONNULL_): Remove macro.
34560         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34561         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34562         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34563         optimization.
34564         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34565         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34566         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34567         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34568         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34569         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34570         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34571         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34572         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34573         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34574         * modules/dirent (Depends-on): Add arg-nonnull.
34575         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34576         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34577         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34578         * modules/fnmatch (Depends-on): Add arg-nonnull.
34579         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34580         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34581         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34582         * modules/glob (Depends-on): Add arg-nonnull.
34583         (Makefile.am): Insert arg-nonnull.h into glob.h.
34584         * modules/iconv_open (Depends-on): Add arg-nonnull.
34585         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34586         * modules/inttypes (Depends-on): Add arg-nonnull.
34587         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34588         * modules/locale (Depends-on): Add arg-nonnull.
34589         (Makefile.am): Insert arg-nonnull.h into locale.h.
34590         * modules/math (Depends-on): Add arg-nonnull.
34591         (Makefile.am): Insert arg-nonnull.h into math.h.
34592         * modules/netdb (Depends-on): Add arg-nonnull.
34593         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34594         * modules/search (Depends-on): Add arg-nonnull.
34595         (Makefile.am): Insert arg-nonnull.h into search.h.
34596         * modules/signal (Depends-on): Add arg-nonnull.
34597         (Makefile.am): Insert arg-nonnull.h into signal.h.
34598         * modules/spawn (Depends-on): Add arg-nonnull.
34599         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34600         * modules/stdio (Depends-on): Add arg-nonnull.
34601         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34602         * modules/stdlib (Depends-on): Add arg-nonnull.
34603         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34604         * modules/string (Depends-on): Add arg-nonnull.
34605         (Makefile.am): Insert arg-nonnull.h into string.h.
34606         * modules/strings (Depends-on): Add arg-nonnull.
34607         (Makefile.am): Insert arg-nonnull.h into strings.h.
34608         * modules/sys_socket (Depends-on): Add arg-nonnull.
34609         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34610         * modules/sys_stat (Depends-on): Add arg-nonnull.
34611         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34612         * modules/sys_time (Depends-on): Add arg-nonnull.
34613         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34614         * modules/sys_times (Depends-on): Add arg-nonnull.
34615         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34616         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34617         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34618         * modules/time (Depends-on): Add arg-nonnull.
34619         (Makefile.am): Insert arg-nonnull.h into time.h.
34620         * modules/unistd (Depends-on): Add arg-nonnull.
34621         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34622         * modules/wchar (Depends-on): Add arg-nonnull.
34623         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34624         * modules/argv-iter (Depends-on): Add arg-nonnull.
34625         * tests/test-canonicalize.c (null_ptr): New function.
34626         (main): Use it.
34627         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34628         (main): Use it.
34629         * tests/test-memmem.c (null_ptr): New function.
34630         (main): Use it.
34631         Reported by Jim Meyering.
34632
34633 2009-12-10  Bruno Haible  <bruno@clisp.org>
34634
34635         Use spaces for indentation, not tabs.
34636         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34637         * m4/*.m4: Untabify.
34638         * build-aux/*.h: Untabify.
34639         * tests/**/*.[hc]: Untabify.
34640         * README: New section "Indent with spaces, not TABs", based on
34641         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34642         * NEWS: Mention the change.
34643
34644 2009-12-10  Bruno Haible  <bruno@clisp.org>
34645
34646         pty test: Fix link error.
34647         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34648         test_pty_LDADD.
34649
34650 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34651
34652         * modules/pty: New file.
34653         * modules/pty-tests: New file.
34654         * m4/pty.m4: New file.
34655         * tests/test-pty.c: New file.
34656         * doc/glibc-headers/pty.texi: Modified.
34657         * doc/glibc-functions/forkpty.texi: Modified.
34658         * doc/glibc-functions/openpty.texi: Modified.
34659
34660 2009-12-10  Bruno Haible  <bruno@clisp.org>
34661
34662         Avoid syntax error in C++ mode.
34663         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34664
34665 2009-12-10  Bruno Haible  <bruno@clisp.org>
34666
34667         Use sed with option -e.
34668         * gnulib-tool (func_version, func_emit_copyright_notice,
34669         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34670         option -e to sed.
34671         * modules/link-warning (Makefile.am): Likewise.
34672
34673 2009-12-10  Jim Meyering  <meyering@redhat.com>
34674
34675         mgetgroups: do not write bytes beyond end of malloc'd buffer
34676         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34677         username, we call getgroups with a one-element-shorter buffer,
34678         but still told it the length was original, max_n_groups.
34679
34680 2009-12-09  Eric Blake  <ebb9@byu.net>
34681
34682         cloexec: relax license
34683         * modules/cloexec (Maintainer): Add myself.
34684         (License): Use LGPL, not GPL.
34685
34686         link-warning: optimize generation
34687         * modules/link-warning (Makefile.am): Reduce process usage.
34688
34689 2009-12-09  Bruno Haible  <bruno@clisp.org>
34690
34691         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34692         workaround was added on 2009-11-17.
34693
34694 2009-12-09  Jim Meyering  <meyering@redhat.com>
34695             Bruno Haible  <bruno@clisp.org>
34696
34697         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34698         * modules/link-warning (Makefile.am): Make the comment-removing sed
34699         command more robust in the face of bootstrap-prepended comment lines.
34700
34701 2009-12-09  Bruno Haible  <bruno@clisp.org>
34702
34703         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34704         most one group.
34705
34706 2009-12-09  Simon Josefsson <simon@josefsson.org>
34707             Bruno Haible  <bruno@clisp.org>
34708
34709         * build-aux/link-warning.h: Add copyright notice.
34710         * modules/link-warning (Makefile.am): Generate link-warning.h from
34711         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34712         * NEWS: Mention change in link-warning module.
34713         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34714         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34715         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34716         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34717         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34718         * modules/math (Makefile.am): Add dependency to math.h.
34719         * modules/search (Makefile.am): Add dependency to search.h.
34720         * modules/signal (Makefile.am): Add dependency to signal.h.
34721         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34722         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34723         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34724         * modules/string (Makefile.am): Add dependency to string.h.
34725         * modules/strings (Makefile.am): Add dependency to strings.h.
34726         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34727         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34728         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34729         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34730         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34731         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34732         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34733         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34734         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34735
34736 2009-12-09  Bruno Haible  <bruno@clisp.org>
34737
34738         fchdir: Optimize away rpl_fstat when possible.
34739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34740         REPLACE_OPEN_DIRECTORY.
34741         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34742
34743 2009-12-09  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/fchdir.c: Update comment.
34746
34747 2009-12-09  Bruno Haible  <bruno@clisp.org>
34748
34749         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34750
34751 2009-12-08  Eric Blake  <ebb9@byu.net>
34752
34753         fchdir: avoid memory leak on re-registration.
34754         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34755
34756 2009-12-08  Jim Meyering  <meyering@redhat.com>
34757
34758         init.sh: avoid Solaris 10 /bin/sh portability problem
34759         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34760         sourced script:
34761           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34762           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34763           bar
34764         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34765         and two tests used that idiom.
34766         * tests/init.sh: Update suggested usage comments.
34767         (path_prepend_): New function, to be used in place
34768         of the --src-path=DIR option.
34769         (setup_): Move PATH-prepending code into path_prepend_.
34770         * tests/test-pread.sh: Adapt to new usage.
34771         * tests/test-xalloc-die.sh: Likewise.
34772
34773 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34774
34775         * doc/gnulib.texi (Glibc pty.h): Add.
34776         * doc/glibc-functions/forkpty.texi: Add.
34777         * doc/glibc-functions/openpty.texi: Add.
34778         Suggested by Bruno Haible.
34779
34780 2009-12-08  Eric Blake  <ebb9@byu.net>
34781
34782         fchdir: fix logic bugs
34783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34784         * tests/test-fchdir.c (main): Enhance test.
34785         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34786         is in use.
34787
34788         dup2: fix logic bugs
34789         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34790         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34791         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34792         exists.
34793         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34794
34795 2009-12-07  Eric Blake  <ebb9@byu.net>
34796
34797         unlink: fix m4 detection
34798         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34799
34800         unistd-safer: add unit test
34801         * modules/unistd-safer-tests: New file.
34802         * tests/test-dup-safer.c: Likewise.
34803         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34804         * tests/test-dup2.c (setmode): Likewise.
34805         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34806
34807         cloexec: preserve text vs. binary across dup_cloexec
34808         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34809         mode.
34810         * modules/dup2-tests (Depends-on): Add binary-io.
34811         * modules/cloexec-tests (Depends-on): Likewise.
34812         * tests/test-dup2.c (setmode, is_mode): New helpers.
34813         (main): Add tests that translation mode is preserved.
34814         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34815         Reported by Bruno Haible.
34816
34817         mgetgroups: reduce duplicate listings
34818         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34819         resulting array.
34820         * tests/test-chown.h (test_chown): Simplify client.
34821         * tests/test-lchown.h (test_lchown): Likewise.
34822
34823 2009-12-06  Bruno Haible  <bruno@clisp.org>
34824
34825         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34826         value.
34827
34828 2009-12-06  Bruno Haible  <bruno@clisp.org>
34829
34830         * lib/progname.c: Include stdio.h, stdlib.h.
34831         (set_program_name): Reject a NULL argument.
34832
34833 2009-12-05  Eric Blake  <ebb9@byu.net>
34834
34835         pipe2-safer: new module
34836         * modules/pipe2-safer: New file.
34837         * lib/unistd-safer.h (pipe2_safer): New prototype.
34838         * lib/unistd--.h (pipe2): New wrapper.
34839         * lib/pipe-safer.c (pipe2_safer): New function.
34840         * modules/pipe (Depends-on): Add pipe2-safer.
34841         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34842
34843         stdlib-safer: preserve cloexec flag for mkostemp[s]
34844         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34845         fd_safer_flag.
34846
34847         unistd-safer: allow preservation of cloexec status via flag
34848         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34849         prototypes.
34850         * lib/dup-safer.c (dup_safer_flag): New function.
34851         * lib/fd-safer.c (fd_safer_flag): Likewise.
34852         * modules/cloexec (configure.ac): Set witness.
34853
34854         test-dup2: enhance test
34855         * modules/dup2-tests (Depends-on): Add cloexec.
34856         * tests/test-dup2.c (main): Enhance test.
34857
34858         cloexec: add dup_cloexec
34859         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34860         header and comments.
34861         * lib/cloexec.c (set_cloexec_flag): Add comments.
34862         (dup_cloexec): New function, with mingw implementation borrowed
34863         from...
34864         * lib/w32spawn.h (dup_noinherit): ...here.
34865         * modules/execute (Depends-on): Add cloexec.
34866         * modules/pipe (Depends-on): Likewise.
34867         * modules/cloexec (Depends-on): Add dup2.
34868         * modules/cloexec-tests (Files): New file.
34869         * tests/test-cloexec.c: Likewise.
34870
34871         test-xalloc-die: fix test for mingw
34872         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34873         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34874         directory and .exe suffix off argv[0] output.
34875
34876         test-fseeko: fix test for mingw
34877         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34878         than undefining fseek, so test will pass on mingw.
34879
34880 2009-12-05  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/progname.h (set_program_name): Clarify specification.
34883         * lib/progname.c (set_program_name): Likewise.
34884         Reported by Jim Meyering.
34885
34886 2009-12-05  Jim Meyering  <meyering@redhat.com>
34887
34888         maint.mk: backslash-escape parens in default regexp
34889         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34890         backslash-escape the literal parentheses.
34891
34892         maint.mk: news-date-check: use grep -E
34893         * top/maint.mk (today): Define a Make variable, not a...
34894         (news-date-check): ...shell variable.
34895         (news-date-regexp): Use the Make variable.
34896         Use grep's -E option.  Change the failing diagnostic to mention
34897         the variable, $(news-date-regexp).
34898
34899 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34900
34901         maintainer-makefile: allow customization of NEWS entry format
34902         * top/maint.mk (news-date-regexp): New overridable variable.
34903         (news-date-check): Use it.
34904
34905 2009-12-04  Eric Blake  <ebb9@byu.net>
34906
34907         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34908         * lib/mgetgroups.h (xgetgroups): New prototype.
34909         * lib/mgetgroups.c (xgetgroups): New wrapper.
34910         (mgetgroups): Handle ENOSYS.
34911         * modules/mgetgroups (Depends-on): Add realloc.
34912         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34913
34914         mgetgroups: avoid argument promotion issues with -1
34915         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34916         for invalid gid_t.
34917         * tests/test-chown.h (getegid, test_chown): Likewise.
34918         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34919
34920 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34921
34922         exclude: Fix header file problems.
34923         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34924
34925 2009-12-01  Jim Meyering  <meyering@redhat.com>
34926
34927         fts: fts_open: do not let an empty string cause immediate failure
34928         This is required in support of GNU rm, for which the command
34929         "rm A '' B" must process and remove both A and B, in spite of
34930         the empty string argument.
34931         * lib/fts.c (fts_open): Do not let the presence of an empty string
34932         cause fts_open to fail immediately.  Most fts-using tools must be
34933         able to process all arguments, in order, and can be expected to
34934         diagnose such arguments themselves.
34935
34936 2009-11-30  Eric Blake  <ebb9@byu.net>
34937
34938         utimens: fix compilation error
34939         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34940         Declare variable at right scope.
34941
34942 2009-11-29  Jim Meyering  <meyering@redhat.com>
34943
34944         bootstrap: handle perl-5.11's changed --version output
34945         * build-aux/bootstrap (get_version): Handle perl separately,
34946         since perl-5.11's --version output is different.
34947
34948 2009-11-28  Jim Meyering  <meyering@redhat.com>
34949
34950         userspec: depend on the inttostr module, too
34951         * modules/userspec (Depends-on): Add inttostr.
34952
34953         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34954         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34955         number of MAXUID when it evaluates to (uid_t) -1.
34956         Likewise for group ID.  Reported by Matt McCutchen in
34957         <http://savannah.gnu.org/bugs/?28113>
34958
34959         userspec: reformat to use spaces, not TABs
34960         * lib/userspec.c: Expand TABs to spaces.
34961         Add Emacs' "indent-tabs-mode: nil" hint.
34962
34963 2009-11-27  Eric Blake  <ebb9@byu.net>
34964
34965         getopt-gnu: flush out another BSD bug
34966         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34967         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34968         flush out BSD bug.
34969         * tests/test-getopt.h (test_getopt): End lists with NULL.
34970         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34971         (test_getopt_long_posix): Enhance test.
34972         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34973         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34974         getopt-gnu.
34975         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34976         Likewise.
34977
34978 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34979
34980         * modules/idpriv-droptemp-tests (Notice): Fix text.
34981
34982 2009-11-27  Jim Meyering  <meyering@redhat.com>
34983
34984         test-xalloc-die: avoid spurious failure due to libtool argv difference
34985         In a libtool-enabled project, this test would fail due to a difference
34986         in the emitted program name, e.g.,
34987         -test-xalloc-die: memory exhausted
34988         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34989         Use program to avoid that.
34990         * modules/xalloc-die-tests (Depends-on): Add progname.
34991         * tests/test-xalloc-die.c: Include progname.h".
34992         (program_name): Remove decl.
34993         (main): Call set_program_name.
34994         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34995
34996 2009-11-26  Richard Jones  <rjones@redhat.com>
34997
34998         w32sock: leave win32 error in place.
34999         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
35000
35001 2009-11-26  Eric Blake  <ebb9@byu.net>
35002
35003         init.sh: suggest to use skip_ and fail_ functions in comments
35004         * tests/init.sh: Add a sentence.
35005
35006 2009-11-25  Bruno Haible  <bruno@clisp.org>
35007
35008         init.sh: add documentation in comments
35009         * tests/init.sh: Add some developer and user documentation.
35010
35011 2009-11-26  Jim Meyering  <meyering@redhat.com>
35012
35013         init.sh: accommodate even those who specify bogus srcdir manually
35014         * tests/init.sh: Normally, srcdir is guaranteed by automake and
35015         configure-time tests to be sanitized, so that there is no need to
35016         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
35017         (with no double quotes) suffices.  However, since tests may be
35018         invoked manually, and since you may explicitly set srcdir to the
35019         name of a directory containing spaces, do quote its uses here.
35020         * tests/test-pread.sh: Likewise.
35021         Suggested by Bruno Haible.
35022
35023         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
35024         * tests/test-pread.sh: Write no data into the pipe, because
35025         test-pread actually reads none.  This avoids a diagnostic,
35026         "bash: echo: write error: Broken pipe", that arises in the unusual
35027         event something is ignoring SIGPIPE, and might be interpreted
35028         as some sort of failure.  Reported by Bruno Haible.
35029
35030 2009-11-25  Jim Meyering  <meyering@redhat.com>
35031
35032         test-pread: cover failure with ESPIPE and EINVAL
35033         * tests/test-pread.c (main): Test for failure, too.
35034         * tests/test-pread.sh: Invoke with stdin on a pipe.
35035         Suggested by Eric Blake.
35036
35037         pread: improvement and fix
35038         * modules/pread (Depends-on): Depend on lseek, for portability to
35039         e.g., mingw.  Suggested by Eric Blake.
35040         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
35041
35042         unistd.in.h: correct declaration of pread
35043         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
35044         Reported by Richard W.M. Jones.
35045
35046         test-pread.sh: distribute the test script
35047         * modules/pread-tests (Files): Include test-pread.sh.
35048
35049         test-pread.sh: clean up
35050         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
35051         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
35052         That is unnecessary, since it's always ".".
35053         Suggestion from Eric Blake.
35054
35055         test-pread.sh: make executable
35056         * tests/test-pread.sh: Set executable bit.
35057         Reported by Eric Blake.
35058
35059         correct typo in test-pread.sh
35060         * tests/test-pread.sh: Add #! line.
35061
35062         test pread
35063         * tests/test-pread.c: New file.
35064         * tests/test-pread.sh: Likewise.
35065         * modules/pread-tests: Likewise.
35066
35067         pread: new module
35068         * modules/pread: New file.
35069         * lib/unistd.in.h (pread): Define/declare.
35070         * lib/pread.c (pread): New file.
35071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
35072         * modules/unistd (Makefile.am): Substitute witnesses.
35073         * doc/posix-functions/pread.texi (pread): Update.
35074         * MODULES.html.sh: Add pread.
35075
35076 2009-11-25  Jim Meyering  <meyering@redhat.com>
35077
35078         tests/init.sh: new file to be used via most *.sh tests
35079         * tests/init.sh: New file.
35080
35081 2009-11-25  Eric Blake  <ebb9@byu.net>
35082
35083         utimens: work around older Linux failure with symlinks
35084         * lib/utimens.c (lutimensat_works_really): New variable.
35085         (fdutimens, lutimens): Use it to manage kernels that support
35086         nanosecond times on files, but not on symlinks.
35087         Reported by OndÅ™ej Vašík.
35088
35089         utimes: fix configure grammar
35090         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
35091
35092 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
35093
35094         regex: Fix fastmap for multibyte character ranges.
35095         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
35096         characters when a multibyte character range is included.
35097
35098 2009-11-22  Andy Wingo  <wingo@pobox.com>
35099
35100         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
35101         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
35102
35103 2009-11-24  Bruno Haible  <bruno@clisp.org>
35104
35105         doc: Most *_l functions exist in MacOS X 10.5.
35106         * doc/posix-functions/duplocale.texi: Update platforms list.
35107         * doc/posix-functions/freelocale.texi: Likewise.
35108         * doc/posix-functions/newlocale.texi: Likewise.
35109         * doc/posix-functions/uselocale.texi: Likewise.
35110         * doc/posix-functions/isalnum_l.texi: Likewise.
35111         * doc/posix-functions/isalpha_l.texi: Likewise.
35112         * doc/posix-functions/isblank_l.texi: Likewise.
35113         * doc/posix-functions/iscntrl_l.texi: Likewise.
35114         * doc/posix-functions/isdigit_l.texi: Likewise.
35115         * doc/posix-functions/isgraph_l.texi: Likewise.
35116         * doc/posix-functions/islower_l.texi: Likewise.
35117         * doc/posix-functions/isprint_l.texi: Likewise.
35118         * doc/posix-functions/ispunct_l.texi: Likewise.
35119         * doc/posix-functions/isspace_l.texi: Likewise.
35120         * doc/posix-functions/isupper_l.texi: Likewise.
35121         * doc/posix-functions/iswalnum_l.texi: Likewise.
35122         * doc/posix-functions/iswalpha_l.texi: Likewise.
35123         * doc/posix-functions/iswblank_l.texi: Likewise.
35124         * doc/posix-functions/iswcntrl_l.texi: Likewise.
35125         * doc/posix-functions/iswctype_l.texi: Likewise.
35126         * doc/posix-functions/iswdigit_l.texi: Likewise.
35127         * doc/posix-functions/iswgraph_l.texi: Likewise.
35128         * doc/posix-functions/iswlower_l.texi: Likewise.
35129         * doc/posix-functions/iswprint_l.texi: Likewise.
35130         * doc/posix-functions/iswpunct_l.texi: Likewise.
35131         * doc/posix-functions/iswspace_l.texi: Likewise.
35132         * doc/posix-functions/iswupper_l.texi: Likewise.
35133         * doc/posix-functions/iswxdigit_l.texi: Likewise.
35134         * doc/posix-functions/isxdigit_l.texi: Likewise.
35135         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
35136         * doc/posix-functions/strcasecmp_l.texi: Likewise.
35137         * doc/posix-functions/strcoll_l.texi: Likewise.
35138         * doc/posix-functions/strfmon_l.texi: Likewise.
35139         * doc/posix-functions/strftime_l.texi: Likewise.
35140         * doc/posix-functions/strncasecmp_l.texi: Likewise.
35141         * doc/posix-functions/strxfrm_l.texi: Likewise.
35142         * doc/posix-functions/tolower_l.texi: Likewise.
35143         * doc/posix-functions/toupper_l.texi: Likewise.
35144         * doc/posix-functions/towctrans_l.texi: Likewise.
35145         * doc/posix-functions/towlower_l.texi: Likewise.
35146         * doc/posix-functions/towupper_l.texi: Likewise.
35147         * doc/posix-functions/wcscoll_l.texi: Likewise.
35148         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
35149         * doc/posix-functions/wctrans_l.texi: Likewise.
35150         * doc/posix-functions/wctype_l.texi: Likewise.
35151         * doc/glibc-functions/strptime_l.texi: Likewise.
35152         * doc/glibc-functions/strtod_l.texi: Likewise.
35153         * doc/glibc-functions/strtof_l.texi: Likewise.
35154         * doc/glibc-functions/strtol_l.texi: Likewise.
35155         * doc/glibc-functions/strtold_l.texi: Likewise.
35156         * doc/glibc-functions/strtoll_l.texi: Likewise.
35157         * doc/glibc-functions/strtoul_l.texi: Likewise.
35158         * doc/glibc-functions/strtoull_l.texi: Likewise.
35159         * doc/glibc-functions/wcsftime_l.texi: Likewise.
35160         * doc/glibc-functions/wcstod_l.texi: Likewise.
35161         * doc/glibc-functions/wcstof_l.texi: Likewise.
35162         * doc/glibc-functions/wcstol_l.texi: Likewise.
35163         * doc/glibc-functions/wcstold_l.texi: Likewise.
35164         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35165         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35166         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35167
35168 2009-11-24  Bruno Haible  <bruno@clisp.org>
35169
35170         duplocale: Fix logic bug.
35171         * lib/duplocale.c: Don't include <langinfo.h>.
35172         (_NL_LOCALE_NAME): Remove macro.
35173         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35174         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35175
35176 2009-11-23  Jim Meyering  <meyering@redhat.com>
35177
35178         test-update-copyright: don't hard-code /usr/bin/perl
35179         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35180         perl to print the current year.  Gilles Espinasse reported that
35181         the replaced use of perl was hard-coded as /usr/bin/perl.
35182
35183 2009-11-23  Bruno Haible  <bruno@clisp.org>
35184
35185         duplocale: Add support for glibc 2.3.x.
35186         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35187
35188 2009-11-22  Bruno Haible  <bruno@clisp.org>
35189
35190         vasnprintf: Tiny optimization.
35191         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35192         MacOS X.
35193
35194 2009-11-22  Bruno Haible  <bruno@clisp.org>
35195
35196         Tests for module 'duplocale'.
35197         * modules/duplocale-tests: New file.
35198         * tests/test-duplocale.c: New file.
35199
35200         New module 'duplocale'.
35201         * m4/duplocale.m4: New file.
35202         * lib/locale.in.h (duplocale): New declaration.
35203         * lib/duplocale.c: New file.
35204         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35205         gl_LOCALE_H_DEFAULTS): New macros.
35206         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35207         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35208         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35209         REPLACE_DUPLOCALE.
35210         * modules/duplocale: New file.
35211         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35212
35213 2009-11-22  Bruno Haible  <bruno@clisp.org>
35214
35215         * modules/locale-tests (configure.ac): Test for newlocale function.
35216         * tests/test-locale.c: When the system has extended locale functions,
35217         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35218
35219         locale: Make locale_t available when possible.
35220         * lib/locale.in.h: Include <xlocale.h> when it exists.
35221         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35222         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35223         * modules/locale (Depends-on): Add extensions.
35224         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35225         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35226
35227 2009-11-22  Bruno Haible  <bruno@clisp.org>
35228
35229         Add comments.
35230         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35231         invocation.
35232         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35233         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35234         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35235
35236 2009-11-22  Bruno Haible  <bruno@clisp.org>
35237
35238         error: account for the possibility of freopen (stdout).
35239         * lib/error.c: Include <unistd.h>.
35240         (flush_stdout): New function, extracted from error and error_at_line.
35241         Determine stdout's fd dynamically.
35242         (error, error_at_line): Invoke flush_stdout.
35243         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35244         * modules/error (Depends-on): Add unistd.
35245
35246 2009-11-22  Bruno Haible  <bruno@clisp.org>
35247
35248         diffseq: Add comment.
35249         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35250
35251 2009-11-22  Jim Meyering  <meyering@redhat.com>
35252
35253         c-stack: avoid defining an unused static function
35254         * lib/c-stack.c (find_stack_direction): Do not define this function
35255         when it will not be used.
35256
35257         diffseq: avoid spurious gcc warnings
35258         * lib/diffseq.h (IF_LINT2): Define.
35259         (compareseq): Use it to initialize two members of "part".
35260         This avoids two used-uninitialized warnings.
35261
35262 2009-11-21  Jim Meyering  <meyering@redhat.com>
35263
35264         c-stack: avoid "ignoring return value of `write'" warning
35265         * lib/c-stack.c: Include "ignore-value.h".
35266         (die): Explicitly ignore each write return value.
35267         * modules/c-stack (Depends-on): Add ignore-value.
35268
35269 2009-11-21  Bruno Haible  <bruno@clisp.org>
35270
35271         diffseq: reduce scope of variable 'best'.
35272         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35273         variable, earlier used for two different purposes.
35274
35275 2009-11-21  Jim Meyering  <meyering@redhat.com>
35276
35277         diffseq: remove useless assignment to "best"
35278         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35279         assignment.  At that point "best" is already guaranteed to be zero.
35280
35281 2009-11-20  Eric Blake  <ebb9@byu.net>
35282
35283         build: mention ftp redirector in release announcements
35284         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35285         values that used to come from cfg.mk; mention FTP redirect URL.
35286         * build-aux/announce-gen: Mention the mirror list.
35287         Suggested by Karl Berry.
35288
35289         nanosleep: improve port to mingw
35290         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35292         LIB_NANOSLEEP, but only when needed.
35293         * modules/select (Link): Document LIBSOCKET.
35294         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35295         enough.
35296
35297         nanosleep: work around cygwin bug
35298         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35299         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35300         bug.
35301         (getnow): Delete, not needed.
35302         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35303         LIB_CLOCK_GETTIME.
35304         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35305         clock-time, gettime.
35306         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35307         bug.
35308         * modules/nanosleep-tests: New test.
35309         * tests/test-nanosleep.c: New file.
35310
35311         sleep: work around cygwin bug
35312         * lib/sleep.c (rpl_sleep): Work around the bug.
35313         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35314         (gl_PREREQ_SLEEP): Delete unused macro.
35315         * modules/sleep (Depends-on): Add verify.
35316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35317         * modules/unistd (Makefile.am): Substitute witness.
35318         * lib/unistd.in.h (sleep): Update prototype.
35319         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35320         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35321         * modules/sleep-tests (Depends-on): Check for alarm.
35322
35323 2009-11-20  Jim Meyering  <meyering@redhat.com>
35324
35325         maint.mk: improve sc_prohibit_magic_number_exit
35326         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35327         so it does not match uses like System.exit(1).
35328         Add comments showing how to correct all offenders.
35329
35330 2009-11-19  Eric Blake  <ebb9@byu.net>
35331
35332         xalloc-die-tests: add missing library
35333         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35334
35335         test-xvasprintf: silence compiler warnings
35336         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35337         empty string from gcc.
35338
35339 2009-11-19  Jim Meyering  <meyering@redhat.com>
35340
35341         xfreopen: new module, from coreutils
35342         * modules/xfreopen: New module.
35343         * lib/xfreopen.c: New file.
35344         * lib/xfreopen.h: New file.
35345         * MODULES.html.sh (File stream based Input/Output"): Add it.
35346
35347 2009-11-19  Eric Blake  <ebb9@byu.net>
35348
35349         manywarnings: depend on warnings
35350         * modules/manywarnings (Depends-on): Add warnings.
35351
35352         build: avoid compiler warnings
35353         * lib/select.c (rpl_select): Delete unused variable.
35354         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35355
35356 2009-11-18  Eric Blake  <ebb9@byu.net>
35357
35358         tests: avoid false negative with --with-packager
35359         * tests/test-version-etc.sh: Discard packager information.
35360         * tests/test-argp-version-etc-1.sh: Likewise.
35361         Reported by Mike Frysinger.
35362
35363         utimens: fix regression on Solaris
35364         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35365         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35366         can only change fd timestamps via futimesat.  Instead, use an
35367         additional witness macro to avoid BSD bug.
35368         Reported by Jim Meyering.
35369
35370 2009-11-17  Eric Blake  <ebb9@byu.net>
35371
35372         usleep: use it to simplify tests
35373         * modules/stat-time-tests (Depends-on): Add usleep.
35374         (configure.ac): Drop usleep check.
35375         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35376         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35377         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35378         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35379         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35380         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35381         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35382         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35383         Likewise.
35384         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35385         * tests/test-lchown.h (nap): Likewise.
35386         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35387         * tests/test-stat-time.c (nap): Likewise.
35388         * tests/test-utimens-common.h (nap): Update comments.
35389
35390         usleep: new module
35391         * modules/usleep: New file.
35392         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35393         * lib/usleep.c (usleep): Likewise.
35394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35395         * modules/unistd (Makefile.am): Substitute witnesses.
35396         * lib/unistd.in.h (usleep): Add declaration.
35397         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35398         * MODULES.html.sh (Date and time): Likewise.
35399         * modules/usleep-tests (Depends-on): New test.
35400         * tests/test-usleep.c: New file.
35401
35402         chown: work around OpenBSD bug
35403         * lib/chown.c (rpl_chown): Work around the bug.
35404         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35405         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35406         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35407         * modules/chown (Depends-on): Add stdbool.
35408         * modules/lchown (Depends-on): Likewise.
35409         * doc/posix-functions/chown.texi (chown): Document the bug.
35410         * doc/posix-functions/lchown.texi (lchown): Likewise.
35411         * tests/test-lchown.h (test_chown): Relax test.
35412
35413         mkstemp: avoid conflict with C++ keyword template
35414         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35415         * lib/mkostemp.c (mkostemp): Likewise.
35416         * lib/mkostemps.c (mkostemps): Likewise.
35417         * lib/mkstemp.c (mkstemp): Likewise.
35418         * lib/mkstemps.c (mkstemps): Likewise.
35419
35420         xalloc-die-tests: optimize
35421         * tests/test-xalloc-die.sh: Reduce number of processes.
35422
35423 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35424
35425         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35426         patch from ludo@gnu.org (Ludovic Courtès).
35427
35428 2009-11-17  Jim Meyering  <meyering@redhat.com>
35429
35430         version-etc: use proper license string
35431         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35432         * modules/version-etc-fsf: Likewise.
35433
35434 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35435
35436         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35437         printed to stdout.  Deal with EOL differences.
35438
35439 2009-11-17  Eric Blake  <ebb9@byu.net>
35440
35441         unsetenv: work around Solaris bug
35442         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35443         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35444         Reported by Jim Meyering.
35445
35446         vasnprintf: avoid compiler warnings
35447         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35448         variables.
35449         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35450
35451 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35452
35453         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35454         settings since xalloc-die is no longer the self test,
35455         xalloc-die.sh is.
35456
35457 2009-11-17  Jim Meyering  <meyering@redhat.com>
35458
35459         test-xalloc-die.sh: make the code agree with the commit log
35460         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35461         at the end, just in case you happen to have a test-xalloc-die
35462         program in some other PATH directory.
35463
35464         test-xalloc-die.sh: fix a portability bug
35465         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35466         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35467         Otherwise, argv[0] (as often seen in diagnostics) would be too
35468         system-dependent, sometimes with, and sometimes without the leading "./".
35469
35470         version-etc-fsf: relax license to LGPLv3+
35471         * modules/version-etc-fsf (License): Relax license.
35472
35473 2009-11-16  Eric Blake  <ebb9@byu.net>
35474
35475         xalloc-die-tests: avoid printing null pointer
35476         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35477         shell script.
35478         * tests/test-xalloc-die.c (program_name): Declare.
35479         * tests/test-xalloc-die.sh (tmpfiles): New file.
35480
35481         setenv, unsetenv: work around various bugs
35482         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35483         (setenv) [HAVE_SETENV]: Work around bugs.
35484         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35485         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35486         for bugs.
35487         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35488         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35490         * modules/stdlib (Makefile.am): Update substitutions.
35491         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35492         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35493         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35494         * modules/setenv-tests: New test.
35495         * modules/unsetenv-tests: Likewise.
35496         * tests/test-setenv.c: New file.
35497         * tests/test-unsetenv.c: Likewise.
35498
35499 2009-11-16  Jim Meyering  <meyering@redhat.com>
35500
35501         version-etc: relax license to LGPLv3+
35502         * modules/version-etc (License): Relax license.
35503
35504         better AC_REQUIRE expanded-before-required-warning avoidance
35505         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35506         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35507         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35508         which is no longer needed.
35509
35510 2009-11-16  Eric Blake  <ebb9@byu.net>
35511
35512         test-freading: clean up temporary file
35513         * tests/test-freading.c (main): Remove file on success, and use
35514         ASSERT more liberally.
35515         Reported by Jim Meyering.
35516
35517 2009-11-16  Jim Meyering  <meyering@redhat.com>
35518
35519         avoid new AC_REQUIRE expanded-before-required warnings
35520         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35521         merely using it.
35522         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35523         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35524
35525 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35526
35527         * tests/test-xalloc-die.c: New file.
35528         * modules/xalloc-die-tests: New file.
35529         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35530         XFAIL_TESTS so it can be appended by modules.
35531
35532 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35533
35534         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35535         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35536
35537 2009-11-14  Eric Blake  <ebb9@byu.net>
35538
35539         fnmatch: avoid compiler warning
35540         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35541         to silence compiler warning about mismatch signedness in ?:.
35542         Reported by Robert Millan.
35543
35544         intprops: add double-inclusion guard
35545         * lib/intprops.h: Allow idempotent includes.
35546         Suggested by Bruce Korb.
35547
35548         openat: detect Solaris fchownat bug
35549         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35550         penalizing glibc chownat when only lchownat is broken.
35551         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35552         trailing slash bugs.
35553         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35554         * modules/openat-tests (Files): Include more files.
35555         (Depends-on): Add mgetgroups, sleep, stat-time.
35556         (configure.ac): Add additional checks.
35557         (Makefile.am): Build new test.
35558         * tests/test-fchownat.c: New file.
35559
35560         lchown: detect Solaris and FreeBSD bug
35561         * lib/lchown.c (rpl_lchown): Work around bug.
35562         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35564         * modules/unistd (Makefile.am): Populate it.
35565         * lib/unistd.in.h (lchown): Update declaration.
35566         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35567         * modules/lchown-tests: New file.
35568         * tests/test-lchown.h (test_lchown): Likewise.
35569         * tests/test-lchown.c (main): Likewise.
35570
35571         chown: detect Solaris and FreeBSD bug
35572         * lib/chown.c (rpl_chown): Work around bug.
35573         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35574         (gl_PREREQ_CHOWN): Delete.
35575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35576         * modules/unistd (Makefile.am): Populate it.
35577         * lib/unistd.in.h (chown): Update declaration.
35578         * lib/lchown.c (chown): Update client.
35579         * modules/lchown (Depends-on): Add lstat.
35580         * doc/posix-functions/chown.texi (chown): Document the bug.
35581         * doc/posix-functions/getgroups.texi (getgroups): Document
35582         getgroups pitfall.
35583         * modules/chown-tests: New file.
35584         * tests/test-chown.h (test_chown): Likewise.
35585         * tests/test-chown.c (main): Likewise.
35586
35587 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35588
35589         gnulib-tool: correctly detect absence of m4 directories
35590         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35591
35592 2009-11-14  Jim Meyering  <meyering@redhat.com>
35593
35594         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35595         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35596
35597 2009-11-14  John W. Eaton  <jwe@gnu.org>
35598
35599         strftime.h: wrap funtion declaration in extern "C" block
35600         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35601
35602 2009-11-13  Eric Blake  <ebb9@byu.net>
35603
35604         getgroups: avoid compiler warning
35605         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35606
35607         getgroups: work around FreeBSD bug
35608         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35609         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35610         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35611         * tests/test-getgroups.c (main): Fix buffer overrun.
35612
35613         getgroups: avoid compilation failure
35614         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35615         * modules/getgroups (Depends-on): Add stdint.
35616
35617 2009-11-13  Jim Meyering  <meyering@redhat.com>
35618
35619         test-getgroups: avoid compilation failure
35620         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35621
35622 2009-11-13  Eric Blake  <ebb9@byu.net>
35623
35624         mgetgroups: new module, taken from coreutils
35625         * modules/mgetgroups: New file.
35626         * lib/mgetgroups.h: Likewise.
35627         * lib/mgetgroups.c (mgetgroups): Likewise.
35628         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35629         * MODULES.html.sh (Users and groups): Mention it.
35630
35631         getgroups: don't expose GETGROUPS_T to user
35632         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35633         an element at a time if GETGROUPS_T is wrong size.
35634         * lib/getugroups.h (getugroups): Change signature.
35635         * lib/unistd.in.h (getgroups): Likewise.
35636         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35637         signature needs fixing.
35638         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35639         AC_TYPE_GETGROUPS.
35640         * modules/group-member (Depends-on): Add getgroups.
35641         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35642         (group_member): Rely on getgroups replacement.
35643         * lib/getugroups.c (getugroups): Use gid_t.
35644         * tests/test-getgroups.c (main): Likewise.
35645         * NEWS: Mention the signature change.
35646         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35647         problem with signature.
35648         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35649         GETGROUPS_T is still useful for setgroups.
35650
35651         getgroups, getugroups: provide stubs for mingw
35652         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35653         * lib/getugroups.c (getugroups): Likewise.
35654         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35655         function.  Modernize replacement scheme.
35656         (gl_PREREQ_GETGROUPS): Delete.
35657         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35658         * modules/getgroups (configure.ac): Declare witness.
35659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35660         * modules/unistd (Depends-on): Substitute witness.
35661         * lib/unistd.in.h (getgroups): Declare replacement.
35662
35663         getgroups: avoid calling exit
35664         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35665         drop xalloc.
35666         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35667         dependencies.
35668         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35669         exiting, in the rare case of malloc failure.
35670
35671         getgroups: fix logic error
35672         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35673         has more than 20 groups.
35674         * modules/getgroups-tests: New test.
35675         * tests/test-getgroups.c: New file.
35676
35677 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35678
35679         * tests/test-base64.c: Improve.
35680
35681 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35682
35683         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35684         Blake <ebb9@byu.net>.
35685
35686 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35687
35688         * tests/test-xvasprintf.c: Add %s%s related checks.
35689
35690 2009-11-12  Eric Blake  <ebb9@byu.net>
35691
35692         version-etc: match standards.texi style
35693         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35694         and use <> only for URLs.
35695
35696 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35697
35698         fts: do not fail on a submount during traversal
35699         * lib/fts.c (fts_build): Read the stat info again after opening
35700         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35701         Original report at http://bugzilla.redhat.com/501848.
35702
35703 2009-11-12  Jim Meyering  <meyering@redhat.com>
35704
35705         bootstrap: sync from coreutils
35706         * build-aux/bootstrap (bootstrap_epilogue): New function.
35707         Use git_modules_config in one more place.  This make bootstrap's
35708         --gnulib-srcdir option more useful for testing.
35709
35710         bootstrap: generalize autoheader check
35711         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35712         AC_CONFIG_HEADERS.
35713
35714 2009-11-11  Eric Blake  <ebb9@byu.net>
35715
35716         mkfifoat: use new modules for Solaris and BSD bugs
35717         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35718         * lib/mkfifoat.c (mknodat): Split...
35719         * lib/mknodat.c (mknodat): ...into new file.
35720         * modules/mkfifoat (Files): Ship new file.
35721         (Depends-on): Add mkfifo, mknod.
35722         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35723         (Depends-on): Add symlink.
35724         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35725         redundant with test_mkfifo.h.
35726         (do_mkfifoat, do_mknodat): New helpers.
35727
35728         mknod: new module
35729         * modules/mknod: New file.
35730         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35731         * lib/mknod.c (mknod): Likewise.
35732         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35733         defaults.
35734         * modules/sys_stat (Makefile.am): Substitute them.
35735         * lib/sys_stat.in.h (mknod): Declare replacement.
35736         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35737         Document it.
35738         * doc/posix-functions/mknod.texi (mknod): Likewise.
35739         * modules/mknod-tests: New test.
35740         * tests/test-mknod.c: Likewise.
35741
35742         mkfifo: new module
35743         * modules/mkfifo: New file.
35744         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35745         * lib/mkfifo.c (mkfifo): Likewise.
35746         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35747         defaults.
35748         * modules/sys_stat (Makefile.am): Substitute them.
35749         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35750         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35751         Document it.
35752         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35753         * modules/mkfifo-tests: New test.
35754         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35755         from test-mkfifoat.c.
35756         * tests/test-mkfifo.c: New file.
35757
35758         readlink: detect FreeBSD bug
35759         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35760         slash on symlink.
35761         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35762         * tests/test-readlink.h (test_readlink): Enhance test.
35763
35764         symlink: detect FreeBSD bug
35765         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35766         slash on symlink.
35767         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35768         * tests/test-symlink.h (test_symlink): Enhance test.
35769
35770 2009-11-10  Eric Blake  <ebb9@byu.net>
35771
35772         link: detect FreeBSD bug
35773         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35774         symlink.
35775         * doc/posix-functions/link.texi (link): Document the bug.
35776         * tests/test-link.h (test_link): Enhance test.
35777         * tests/test-linkat.c (main): Update caller.
35778
35779         unlink, remove: detect FreeBSD bug
35780         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35781         slash on symlink.
35782         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35783         * doc/posix-functions/remove.texi (remove): Likewise.
35784         * tests/test-unlink.h (test_unlink): Enhance test.
35785         * tests/test-remove.c (main): Likewise.
35786
35787 2009-11-09  Eric Blake  <ebb9@byu.net>
35788
35789         rename: detect FreeBSD bug
35790         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35791         slash on symlink.
35792         * modules/renameat-tests (Depends-on): Add filenamecat.
35793         * tests/test-rename.h (test_rename): Allow one more errno.
35794         * tests/test-renameat.c (main): Likewise.
35795         * doc/posix-functions/rename.texi (rename): Document the bug.
35796
35797         open: detect FreeBSD bug
35798         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35799         symlink.
35800         * doc/posix-functions/open.texi (open): Document the bug.
35801         * doc/posix-functions/utimes.texi (utimes): Likewise.
35802         * tests/test-open.h (test_open): Add parameters, and test symlink
35803         handling.
35804         * tests/test-open.c (main): Adjust caller.
35805         * tests/test-fcntl-safer.c (main): Likewise.
35806         * modules/open-tests (Depends-on): Add stdbool, symlink.
35807         * modules/fcntl-safer-tests (Depends-on): Likewise.
35808         * tests/test-openat.c (main): Add test-open tests.
35809
35810         stat: detect FreeBSD bug
35811         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35812         symlink.
35813         * doc/posix-functions/stat.texi (stat): Document the bug.
35814         * tests/test-stat.h (test_stat_func): Add argument.
35815         * tests/test-stat.c (main): Adjust caller.
35816         * tests/test-fstatat.c (main): Likewise.
35817         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35818         Reported by Jim Meyering.
35819
35820 2009-11-09  James Youngman  <jay@gnu.org>
35821
35822         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35823         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35824
35825 2009-11-08  Jim Meyering  <meyering@redhat.com>
35826
35827         utimens: remove invalid futimesat call
35828         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35829         It used the file descriptor of the target file as the DIR_FD
35830         parameter and NULL as the file name.  That caused failure with
35831         errno == EFAULT on FreeBSD-8.0-rc2
35832
35833 2009-11-07  Eric Blake  <ebb9@byu.net>
35834
35835         fflush, freadseek: use fseeko, not fseek
35836         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35837         (clear_ungetc_buffer): Avoid potential problems on large files.
35838         * lib/freadseek.c (freadseek): Likewise.
35839         * modules/freadseek (Depends-on): Add fseeko.
35840         * modules/fseek (configure.ac): Set a witness.
35841         * tests/test-fflush.c (main): Use fseeko.
35842         * tests/test-fpurge.c (fseek): Disable link warning.
35843         * tests/test-freadable.c (fseek): Likewise.
35844         * tests/test-freading.c (fseek): Likewise.
35845         * tests/test-fseeko.c (fseek): Likewise.
35846         * tests/test-ftell.c (fseek): Likewise.
35847         * tests/test-ftello.c (fseek): Likewise.
35848         * tests/test-fwritable.c (fseek): Likewise.
35849         * tests/test-fwriting.c (fseek): Likewise.
35850
35851 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35852
35853         * modules/memchr (Depends-on): Drop getpagesize dependency.
35854
35855 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35856
35857         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35858         Reported by Ludovic Courtès.
35859         * build-aux/pmccabe2html: Improve example usage.
35860         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35861
35862 2009-11-06  Jim Meyering  <meyering@redhat.com>
35863
35864         do-release-commit-and-tag: New module.
35865         Automate the release-commit and tag process.
35866         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35867         * modules/do-release-commit-and-tag: New file.
35868         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35869
35870 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35871
35872         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35873         because test-select.c uses inet_pton.
35874
35875 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35876
35877         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35878         GETADDRINFO_LIB.  Bump serial number.
35879         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35880         Suggested by Eric Blake <ebb9@byu.net>.
35881
35882 2009-11-05  Eric Blake  <ebb9@byu.net>
35883
35884         strtod: detect darwin bug
35885         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35886         Reported by Leo Davis.
35887
35888         freopen-safer: new module
35889         * modules/freopen-safer: New module.
35890         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35891         * lib/freopen-safer.c (freopen_safer): New file.
35892         * lib/stdio-safer.h (freopen_safer): New declaration.
35893         * lib/stdio--.h (freopen): New override.
35894         * MODULES.html.sh (File stream based Input/Output): Mention it.
35895         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35896         freopen-safer module.
35897         * doc/posix-functions/stderr.texi (stderr): Likewise.
35898         * doc/posix-functions/stdin.texi (stdin): Likewise.
35899         * doc/posix-functions/stdout.texi (stdout): Likewise.
35900         * modules/freopen-safer-tests: New test.
35901         * tests/test-reopen-safer.c: New file.
35902
35903 2009-11-05  Jim Meyering  <meyering@redhat.com>
35904
35905         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35906         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35907
35908 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35909
35910         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35911
35912 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35913
35914         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35915
35916 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35917
35918         Fix link error.
35919         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35920         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35921
35922 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35923
35924         * tests/test-func.c: Also test value of __func__.
35925
35926 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35927
35928         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35929         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35930
35931 2009-11-05  Bruno Haible  <bruno@clisp.org>
35932
35933         Fix link error.
35934         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35935         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35936         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35937
35938 2009-11-05  Bruno Haible  <bruno@clisp.org>
35939
35940         Tests for module 'inet_pton'.
35941         * modules/inet_pton-tests: New file.
35942         * tests/test-inet_pton.c: New file.
35943
35944 2009-11-05  Bruno Haible  <bruno@clisp.org>
35945
35946         Tests for module 'inet_ntop'.
35947         * modules/inet_ntop-tests: New file.
35948         * tests/test-inet_ntop.c: New file.
35949
35950 2009-11-04  Eric Blake  <ebb9@byu.net>
35951
35952         stdlib-safer: wrap all mkstemp variants
35953         * modules/mkostemp (configure.ac): Set witness.
35954         * modules/mkostemps (configure.ac): Likewise.
35955         * modules/mkstemps (configure.ac): Likewise.
35956         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35957         (mkstemps_safer): Wrap more functions.
35958         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35959         wrapping.
35960         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35961         (mkstemps_safer): Implement the wrappers.
35962
35963         mkstemps, mkostemps: new modules
35964         * modules/mkostemps: New module.
35965         * modules/mkstemps: Likewise.
35966         * lib/mkostemps.c (mkostemps): New file.
35967         * lib/mkstemps.c (mkstemps): Likewise.
35968         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35969         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35971         * modules/stdlib (Makefile.am): Substitute them.
35972         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35973         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35974         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35975         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35976         * MODULES.html.sh (File system functions): Mention them.
35977
35978         tempname: resync from glibc
35979         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35980         same values for __GT_FILE as glibc.  Abort even when assertions
35981         are disabled.
35982         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35983         match its value otherwise.  Allow idempotent inclusion.
35984         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35985         * lib/mkostemp.c (mkostemp): Likewise.
35986         * lib/mkstemp.c (mkstemp): Likewise.
35987         * lib/tmpfile.c (tmpfile): Likewise.
35988         * NEWS: Document this.
35989
35990         utimens: fix use of futimens on older Linux
35991         * lib/utimens.c (fdutimens): Use updated, rather than original,
35992         timespec to avoid bug in older Linux kernel.
35993         Reported by Simon Josefsson.
35994
35995 2009-11-04  Bruno Haible  <bruno@clisp.org>
35996
35997         Make num_processors more flexible and consistent.
35998         * lib/nproc.h (enum nproc_query): New type.
35999         (num_processors): Add a 'query' argument.
36000         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
36001         (num_processors): Add a 'query' argument. Test the value of the
36002         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
36003         mingw, count the number of CPUs available for the current process.
36004         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
36005         Check for sched_getaffinity and sched_getaffinity_np.
36006         * modules/nproc (Depends-on): Add c-ctype, extensions.
36007         * NEWS: Mention the change.
36008
36009 2009-11-03  Bruno Haible  <bruno@clisp.org>
36010
36011         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
36012
36013 2009-11-03  Jim Meyering  <meyering@redhat.com>
36014
36015         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
36016         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
36017         if it is defined.
36018
36019 2009-11-02  Eric Blake  <ebb9@byu.net>
36020
36021         mktime, timegm: share common declaration
36022         * lib/mktime-internal.h: New file.
36023         * lib/mktime.c: Use it rather than open-coding a declaration.
36024         * lib/timegm.c: Likewise.
36025         * modules/mktime (Files): Ship it.
36026         * modules/timegm (Files): Likewise.
36027         Suggested by Bruno Haible.
36028
36029         test-update-copyright: update test to match script changes
36030         * tests/test-update-copyright.sh: Avoid hard-coding perl
36031         location.  Don't update *.bak created by earlier runs.
36032
36033 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
36034             Simon Josefsson  <simon@josefsson.org>
36035             Bruno Haible  <bruno@clisp.org>
36036
36037         Fix link error on Solaris 8.
36038         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
36039         also in libnsl. Define also INET_PTON_LIB.
36040         * modules/inet_pton (Link): New section.
36041
36042 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36043             Bruno Haible  <bruno@clisp.org>
36044
36045         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
36046         * modules/inet_ntop (Link): New section.
36047         Reported by Boyan Kasarov <bkasarov@gmail.com>.
36048
36049 2009-11-02  Eric Blake  <ebb9@byu.net>
36050
36051         maint: avoid compiler warnings in m4 macros
36052         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
36053         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
36054
36055 2009-11-02  Simon Josefsson  <simon@josefsson.org>
36056
36057         * m4/pmccabe2html.m4: Remove file.
36058         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
36059         function.  Change maintainer.
36060         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
36061         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
36062         Courtès).
36063
36064 2009-10-31  Eric Blake  <ebb9@byu.net>
36065
36066         fseeko: fix m4 regression
36067         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
36068         regression from 2009-10-27.
36069         Reported by Ralf Wildenhues.
36070
36071 2009-10-31  Jim Meyering  <meyering@redhat.com>
36072
36073         inttostr: aesthetics and improved (compile-time) safety
36074         Define inttype_is_signed rather than inttype_is_unsigned,
36075         since the sole use is via "#if inttype_is_signed".
36076         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
36077         inttype_is_unsigned.
36078         * lib/offtostr.c (inttype_is_signed): Likewise.
36079         * lib/uinttostr.c (inttype_is_signed): Likewise.
36080         * lib/umaxtostr.c (inttype_is_signed): Likewise.
36081         * lib/inttostr.c (inttostr): Use verify to cross-check the
36082         inttype_is_signed value and the signedness of the actual type.
36083         * modules/inttostr (Depends-on): Add verify.
36084
36085 2009-10-30  Eric Blake  <ebb9@byu.net>
36086
36087         build: avoid compiler warnings
36088         * lib/fchmodat.c (lchmod): Mark unused variables.
36089         * lib/getopt.c (_getopt_initialize): Likewise.
36090         * lib/mktime.c (__mktime_internal): Provide prototype.
36091         * lib/inttostr.c (inttostr): Avoid compiler warning even with
36092         older gcc that do not understand #pragma GCC diagnostic.
36093         * lib/uinttostr.c (inttype_is_unsigned): Define.
36094         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
36095
36096 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
36097
36098         stat: fix compilation on AIX
36099         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
36100         only see struct stat64.
36101
36102 2009-10-30  Eric Blake  <ebb9@byu.net>
36103
36104         exclude: make more robust
36105         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
36106         rather than masking a coding bug.
36107         Suggested by Bruno Haible.
36108
36109 2009-10-30  Jim Meyering  <meyering@redhat.com>
36110
36111         perl scripts: remove #!/usr/bin/perl in favor of more portable...
36112         Rather than putting #!/usr/bin/perl on the first line,
36113         start with a variant of what's recommended by "man perlrun" that
36114         invokes the first "perl" program from your shell's search path.
36115         * build-aux/gitlog-to-changelog: Replace #!... as above.
36116         Add a "Local Variables" perl mode setting.
36117         Prompted by a patch from Ludovic Courtès.
36118         Improved by Eric Blake.
36119         * build-aux/useless-if-before-free: Likewise.
36120         * build-aux/announce-gen: Likewise.
36121         * build-aux/update-copyright: Likewise.
36122
36123 2009-10-29  Eric Blake  <ebb9@byu.net>
36124
36125         filenamecat-lgpl: adjust clients
36126         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
36127         filenamecat.
36128         * modules/renameat (Depends-on): Likewise.
36129
36130         filenamecat: split into filenamecat-lgpl
36131         * modules/filenamecat-lgpl: New module.
36132         * modules/filenamecat (Files): Move library-safe files into
36133         filenamecat-lgpl.
36134         (Depends-on): Add filenamecat-lgpl.
36135         (configure.ac): Declare witness.
36136         * lib/filenamecat.h (file_name_concat): Only declare when using
36137         GPL module.
36138         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
36139         Move...
36140         * lib/filenamecat-lgpl.c: ...into new file.
36141         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
36142         (gl_FILE_NAME_CONCAT): Use it.
36143         * MODULES.html.sh (File system functions): Mention new module.
36144
36145         argp: avoid memory leak
36146         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
36147         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
36148         base_name, since the latter malloc()s and can call exit().
36149         Leak introduced 2006-07-03.
36150
36151         dirname-lgpl: adjust clients that don't need full dirname
36152         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
36153         * modules/filenamecat (Depends-on): Likewise.
36154         * modules/linkat (Depends-on): Likewise.
36155         * modules/mkancesdirs (Depends-on): Likewise.
36156         * modules/mkdir (Depends-on): Likewise.
36157         * modules/openat (Depends-on): Likewise.
36158         * modules/savewd (Depends-on): Likewise.
36159         * modules/rename (Depends-on): Likewise.
36160         (License): Relax license.
36161         * modules/mkdir-tests (Depends-on): Drop progname.
36162         (Makefile.am): Delete unneeded LDADD.
36163         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36164
36165         dirname: split into dirname-lgpl
36166         * modules/dirname-lgpl: New module.
36167         * modules/dirname (Files): Move library-safe files into
36168         dirname-lgpl.
36169         (Depends-on): Add dirname-lgpl.
36170         (configure.ac): Declare witness.
36171         * modules/double-slash-root (License): Relax license.
36172         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36173         module.
36174         * lib/dirname.c (dir_len, mdir_name): Move...
36175         * lib/dirname-lgpl.c: ...into new file.
36176         * lib/basename.c (last_component, base_len): Move...
36177         * lib/basename-lgpl.c: ...into new file.
36178         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36179         (gl_DIRNAME): Use it.
36180         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36181         Mention new module.
36182         * modules/dirname-tests (Depends-on): Add progname.
36183         * tests/test-dirname.c (program_name): Delete.
36184
36185         mkdir: make safe for libraries
36186         * modules/mkdir (Depends-on): Drop xalloc.
36187         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36188         exit.
36189
36190         tests: avoid some compiler warnings
36191         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36192         literals.
36193         * tests/test-memchr.c (main): Avoid type mismatch.
36194         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36195         * tests/test-base64.c (main): Likewise.
36196         * tests/test-getdelim.c (main): Likewise.
36197         * tests/test-gethostname.c (main): Likewise.
36198         * tests/test-getline.c (main): Likewise.
36199         * tests/test-netinet_in.c (main): Likewise.
36200         * tests/test-select.c (open_server_socket, main): Likewise.
36201         * tests/test-select-stdin.c (main): Likewise.
36202         * tests/test-sockets.c (main): Likewise.
36203         * tests/test-strsignal.c (main): Likewise.
36204         * tests/test-sys_select.c (main): Likewise.
36205         * tests/test-sys_socket.c (main): Likewise.
36206         * tests/test-u64.c (main): Likewise.
36207         * tests/test-xfprintf-posix.c (main): Likewise.
36208         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36209
36210         sockets: avoid compiler warning
36211         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36212
36213         maint: detect usage(1) and other suspicious exits
36214         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36215
36216 2009-10-29  Jim Meyering  <meyering@redhat.com>
36217
36218         timespec: long-to-int truncation could make timespec_cmp malfunction
36219         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36220         a multiple of 2^32 nanoseconds as no difference.
36221
36222 2009-10-28  Jim Meyering  <meyering@redhat.com>
36223
36224         fprintftime: wrap macro code argument in "do {...} while(0)"
36225         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36226         cpy macro must be a statement that can be followed by a semicolon.
36227         Now that the else clause contains a comment and is hence longer
36228         than one line, I require curly braces.  That in turn requires
36229         that we wrap this code block in the standard do...while(0).
36230
36231         fprintftime: remove stray semicolon from previous change
36232         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36233
36234         fprintftime: avoid a warning about ignored fwrite return value
36235         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36236         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36237         that is unsafe.
36238         * modules/fprintftime (Depends-on): Add ignore-value.
36239
36240         exclude: avoid an unwarranted warning
36241         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36242
36243 2009-10-27  Eric Blake  <ebb9@byu.net>
36244
36245         fseek: avoid compilation failure when fflush is replaced
36246         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36247         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36248         module is in use.
36249         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36250         module is not in use; since REPLACE_FSEEK worked otherwise.
36251         (GNULIB_FTELLO): Likewise for ftell.
36252         Reported by Ian Beckwith and others.
36253
36254 2009-10-27  Bruno Haible  <bruno@clisp.org>
36255
36256         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36257         Reported by Jim Meyering.
36258
36259 2009-10-27  Jim Meyering  <jim@meyering.net>
36260             Bruno Haible  <bruno@clisp.org>
36261
36262         Avoid warning despite dropping the return value of fwrite.
36263         * lib/unicodeio.c: Include ignore-value.h.
36264         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36265         * modules/unicodeio (Depends-on): Add ignore-value.
36266
36267 2009-10-26  Eric Blake  <ebb9@byu.net>
36268
36269         areadlinkat: fix fallback path
36270         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36271         pointer and zero.
36272
36273 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36274
36275         Use a better IO block size for modern systems
36276         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36277         * lib/md2.c: Likewise.
36278         * lib/md4.c: Likewise.
36279         * lib/md5.c: Likewise.
36280         * lib/sha1.c: Likewise.
36281         * lib/sha256.c: Likewise.
36282         * lib/sha512.c: Likewise.
36283
36284 2009-10-22  Eric Blake  <ebb9@byu.net>
36285
36286         tests: avoid several compiler warnings
36287         * tests/test-getcwd.c (main): Avoid buffer underflow.
36288         * tests/test-getdate.c (main): String literals are not safe with
36289         putenv, so use setenv.  Declare unused argument.
36290         * modules/getdate-tests (Depends-on): Add setenv.
36291         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36292         problems with string literals in char *.
36293         * tests/test-hash.c (main): Avoid shadowing declaration.
36294         (insert_new): Treat string literals as char const *.
36295         * tests/test-getopt.h (test_getopt): Likewise.
36296         (getopt_loop): Alter types to minimize casting elsewhere.
36297         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36298         (test_getopt_long_posix): Likewise.
36299         (do_getopt_long): Add wrapper to minimize casting.
36300         * tests/test-atexit.c (clear_temp_file): Use void.
36301         * tests/test-areadlink-with-size.c (main): Declare unused
36302         arguments.
36303         * tests/test-areadlink.c (main): Likewise.
36304         * tests/test-areadlinkat-with-size.c (main): Likewise.
36305         * tests/test-areadlinkat.c (main): Likewise.
36306         * tests/test-canonicalize-lgpl.c (main): Likewise.
36307         * tests/test-canonicalize.c (main): Likewise.
36308         * tests/test-dirent-safer.c (main): Likewise.
36309         * tests/test-dirname.c (main): Likewise.
36310         * tests/test-dup2.c (main): Likewise.
36311         * tests/test-fchdir.c (main): Likewise.
36312         * tests/test-fcntl-h.c (main): Likewise.
36313         * tests/test-fcntl-safer.c (main): Likewise.
36314         * tests/test-fdopendir.c (main): Likewise.
36315         * tests/test-fdutimensat.c (main): Likewise.
36316         * tests/test-fflush.c (main): Likewise.
36317         * tests/test-filenamecat.c (main): Likewise.
36318         * tests/test-filevercmp.c (main): Likewise.
36319         * tests/test-fopen-safer.c (main): Likewise.
36320         * tests/test-fopen.c (main): Likewise.
36321         * tests/test-fpending.c (main): Likewise.
36322         * tests/test-fpurge.c (main): Likewise.
36323         * tests/test-freading.c (main): Likewise.
36324         * tests/test-fstatat.c (main): Likewise.
36325         * tests/test-fsync.c (main): Likewise.
36326         * tests/test-futimens.c (main): Likewise.
36327         * tests/test-getndelim2.c (main): Likewise.
36328         * tests/test-gettimeofday.c (main): Likewise.
36329         * tests/test-getopt.c (main): Likewise.
36330         * tests/test-i-ring.c (main): Likewise.
36331         * tests/test-inttypes.c (main): Likewise.
36332         * tests/test-link.c (main): Likewise.
36333         * tests/test-lstat.c (main): Likewise.
36334         * tests/test-math.c (main): Likewise.
36335         * tests/test-md5.c (main): Likewise.
36336         * tests/test-memchr2.c (main): Likewise.
36337         * tests/test-memrchr.c (main): Likewise.
36338         * tests/test-mkdir.c (main): Likewise.
36339         * tests/test-mkdirat.c (main): Likewise.
36340         * tests/test-mkfifoat.c (main): Likewise.
36341         * tests/test-open.c (main): Likewise.
36342         * tests/test-openat-safer.c (main): Likewise.
36343         * tests/test-openat.c (main): Likewise.
36344         * tests/test-quotearg.c (main): Likewise.
36345         * tests/test-rawmemchr.c (main): Likewise.
36346         * tests/test-readlink.c (main): Likewise.
36347         * tests/test-remove.c (main): Likewise.
36348         * tests/test-rename.c (main): Likewise.
36349         * tests/test-renameat.c (main): Likewise.
36350         * tests/test-rmdir.c (main): Likewise.
36351         * tests/test-sha1.c (main): Likewise.
36352         * tests/test-signal.c (main): Likewise.
36353         * tests/test-sigaction.c (main): Likewise.
36354         * tests/test-stat.c (main): Likewise.
36355         * tests/test-stat-time.c (main): Likewise.
36356         * tests/test-stddef.c (main): Likewise.
36357         * tests/test-stdint.c (main): Likewise.
36358         * tests/test-stdio.c (main): Likewise.
36359         * tests/test-stdlib.c (main): Likewise.
36360         * tests/test-strchrnul.c (main): Likewise.
36361         * tests/test-strerror.c (main): Likewise.
36362         * tests/test-string.c (main): Likewise.
36363         * tests/test-strtod.c (main): Likewise.
36364         * tests/test-strverscmp.c (main): Likewise.
36365         * tests/test-symlink.c (main): Likewise.
36366         * tests/test-symlinkat.c (main): Likewise.
36367         * tests/test-sys_stat.c (main): Likewise.
36368         * tests/test-sys_time.c (main): Likewise.
36369         * tests/test-time.c (main): Likewise.
36370         * tests/test-unistd.c (main): Likewise.
36371         * tests/test-unlink.c (main): Likewise.
36372         * tests/test-unlinkat.c (main): Likewise.
36373         * tests/test-utimens.c (main): Likewise.
36374         * tests/test-utimensat.c (main): Likewise.
36375         * tests/test-version-etc.c (main): Likewise.
36376         * tests/test-wchar.c (main): Likewise.
36377         * tests/test-wctype.c (main): Likewise.
36378         * tests/test-xprintf-posix.c (main): Likewise.
36379         * tests/test-posixtm.c (main): Likewise.
36380         (STREQ): Delete unused macro.
36381         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36382         shadowed variables.
36383         * tests/test-memchr.c (main): Likewise.
36384
36385 2009-10-21  Eric Blake  <ebb9@byu.net>
36386
36387         areadlinkat: avoid failure on older glibc
36388         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36389         rather than mis-comparing 0 against FUNC_RESULT of char*.
36390
36391 2009-10-21  Bruno Haible  <bruno@clisp.org>
36392
36393         * modules/stpncpy (License): Relicense under LGPLv2+.
36394         Reported by David Lutterkort <lutter@redhat.com>.
36395
36396 2009-10-20  Eric Blake  <ebb9@byu.net>
36397
36398         utimensat: work around Solaris 9 bug
36399         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36400         has trailing slash bugs.
36401         * tests/test-lutimens.h (test_lutimens): Enhance test.
36402         * tests/test-utimens.h (test_utimens): Likewise.
36403         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36404         * doc/posix-functions/utimes.texi (utimes): Likewise.
36405         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36406         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36407         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36408         * doc/posix-functions/futimens.texi (futimens): Likewise.
36409
36410         fdutimensat: new module
36411         * modules/fdutimensat: New file.
36412         * lib/fdutimensat.c (fdutimensat): Likewise.
36413         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36414         * MODULES.html.sh (File system functions): Mention module.
36415         * modules/fdutimensat-tests: New test.
36416         * tests/test-fdutimensat.c: Likewise.
36417
36418         doc: regenerate INSTALL
36419         * doc/INSTALL: Reflect recent autoconf update.
36420         * doc/INSTALL.ISO: Likewise.
36421         * doc/INSTALL.UTF-8: Likewise.
36422
36423 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36424
36425         acl: warn if ACL support is not detected
36426         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36427
36428 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36429
36430         * lib/nproc.h: Add extern "C" block for C++.
36431
36432 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36433             Bruno Haible  <bruno@clisp.org>
36434
36435         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36436         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36437         * doc/posix-functions/isalpha.texi: Likewise.
36438         * doc/posix-functions/isblank.texi: Likewise.
36439         * doc/posix-functions/iscntrl.texi: Likewise.
36440         * doc/posix-functions/isdigit.texi: Likewise.
36441         * doc/posix-functions/isgraph.texi: Likewise.
36442         * doc/posix-functions/islower.texi: Likewise.
36443         * doc/posix-functions/isprint.texi: Likewise.
36444         * doc/posix-functions/ispunct.texi: Likewise.
36445         * doc/posix-functions/isspace.texi: Likewise.
36446         * doc/posix-functions/isupper.texi: Likewise.
36447         * doc/posix-functions/isxdigit.texi: Likewise.
36448
36449 2009-10-18  Bruno Haible  <bruno@clisp.org>
36450
36451         Tests for module 'isblank'.
36452         * modules/isblank-tests: New file.
36453         * tests/test-isblank.c: New file.
36454
36455         New module 'isblank'.
36456         * lib/isblank.c: New file.
36457         * m4/isblank.m4: New file.
36458         * modules/isblank: New file.
36459         * doc/posix-functions/isblank.texi: Mention the new module.
36460
36461 2009-10-18  Bruno Haible  <bruno@clisp.org>
36462
36463         New module 'ctype'.
36464         * lib/ctype.in.h: New file.
36465         * m4/ctype.m4: New file.
36466         * modules/ctype: New file.
36467         * doc/posix-headers/ctype.texi: Mention the new module.
36468
36469 2009-10-18  Jim Meyering  <meyering@redhat.com>
36470
36471         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36472         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36473         right after its initialization, rather than farther down.
36474         Keeping these in close proximity makes it easier to ensure
36475         that each such variable is initialized.  E.g.,
36476
36477             LIB_CLOCK_GETTIME=
36478             AC_SUBST([LIB_CLOCK_GETTIME])
36479
36480         This change also increments these serial numbers.
36481         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36482         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36484
36485 2009-10-18  Bruno Haible  <bruno@clisp.org>
36486
36487         Don't let environment variables perturb build.
36488         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36489         (gl_PREREQ_GETHRXTIME): ... not here.
36490
36491 2009-10-18  Bruno Haible  <bruno@clisp.org>
36492
36493         Avoid symlink attack in localcharset module.
36494         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36495         (O_NOFOLLOW): Define fallback.
36496         (get_charset_aliases): Don't open the file if it is a symbolic link.
36497         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36498         gl_FCNTL_H.
36499         (gl_FCNTL_H): Require it.
36500         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36501         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36502         Reported by Fergal Glynn <fglynn@veracode.com>.
36503
36504 2009-10-18  Bruno Haible  <bruno@clisp.org>
36505
36506         Implement nproc for mingw.
36507         * lib/nproc.c: Include <windows.h>
36508         (num_processors): On native Windows platforms, try GetSystemInfo.
36509
36510 2009-10-18  Bruno Haible  <bruno@clisp.org>
36511
36512         Implement nproc for IRIX.
36513         * lib/nproc.c: Include <sys/sysmp.h>.
36514         (num_processors): On IRIX systems, try sysmp.
36515         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36516
36517 2009-10-18  Bruno Haible  <bruno@clisp.org>
36518
36519         Implement nproc for HP-UX.
36520         * lib/nproc.c: Include <sys/pstat.h>
36521         (num_processors): On HP-UX systems, try pstat_getdynamic.
36522         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36523         pstat_getdynamic.
36524
36525 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36526             Bruno Haible  <bruno@clisp.org>
36527
36528         Implement nproc for NetBSD, OpenBSD.
36529         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36530         (ARRAY_SIZE): New macro.
36531         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36532         * m4/nproc.m4: New file.
36533         * modules/nproc (Files): Add m4/nproc.m4.
36534         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36535         (Makefile.am): Instead, augment lib_SOURCES.
36536
36537 2009-10-18  Bruno Haible  <bruno@clisp.org>
36538
36539         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36540         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36541         sys/param.h.
36542
36543 2009-10-16  Eric Blake  <ebb9@byu.net>
36544
36545         utimensat: new module
36546         * modules/utimensat: New file.
36547         * lib/utimensat.c (utimensat): Likewise.
36548         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36549         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36550         so we can work around Linux bugs.
36551         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36552         * modules/sys_stat (Makefile.am): Substitute them.
36553         * lib/sys_stat.in.h (utimensat): Declare it.
36554         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36555         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36556         * modules/utimensat-tests: New test.
36557         * tests/test-utimensat.c: Likewise.
36558
36559         utimens: let lutimens work on non-symlinks
36560         * lib/utimens.c (lutimens): Fall back to utimens rather than
36561         failing with ENOSYS, when file is not a symlink.
36562         (utimens): Reduce redirection.
36563         * tests/test-lutimens.h (test_lutimens): Update test to cover
36564         non-symlinks.
36565         * tests/test-utimens.h (test_utimens): Update test to cover
36566         symlinks.
36567         * tests/test-utimens.c (main): Update caller.
36568
36569         utimens: cache whether utimensat syscall works
36570         * lib/utimens.c (utimensat_works_really): New cache variable.
36571         (fdutimens, lutimens): Use it to avoid failing syscall.
36572
36573         test-stat-time, test-utimens: improve portability
36574         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36575         ext4 on alpha, and for cygwin.
36576         * tests/test-utimens-common.h: New file.
36577         (nap): Factor delays into single function.
36578         * tests/test-lutimens.h (test_lutimens): Use new header.
36579         * tests/test-futimens.h (test_futimens): Likewise.
36580         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36581         timestamps to occur from same machine, as was done previously for
36582         test_utimens.
36583         * modules/utimens-tests (Files): Ship new file.
36584         * modules/futimens-tests (Files): Likewise.
36585         Reported in part by Jim Meyering.
36586
36587         sys_stat: sort replacement declarations
36588         * lib/sys_stat.in.h: Sort declarations.
36589         * lib/futimens.c (futimens): Fix typo.
36590
36591 2009-10-15  Jim Meyering  <meyering@redhat.com>
36592
36593         don't let environment settings perturb build
36594         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36595         could cause a configure-time and/or build-time malfunction.
36596         Typically, a configure-time function-in-library test is performed
36597         via code like this:
36598
36599           LIB_VAR=
36600           AC_SUBST([LIB_VAR])
36601           prefix_saved_LIBS=$LIBS
36602             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36603                        [test "$ac_cv_search_FUNC" = "none required" ||
36604                         LIB_VAR=$ac_cv_search_FUNC])
36605           LIBS=$prefix_saved_LIBS
36606
36607         However, in each of the files affected by this change, the LIB_VAR=
36608         initialization was omitted.  Thus, when set in the environment, its
36609         value would propagate into generated Makefiles when FUNC is not found
36610         in LIB_NAME.
36611         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36612         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36614
36615 2009-10-14  Eric Blake  <ebb9@byu.net>
36616
36617         fchdir: avoid infinite recursion in mingw
36618         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36619         recursing.
36620
36621         test-stat-time: port to mingw
36622         * tests/test-stat-time.c (force_unlink): Return a value.
36623         (test_ctime) [W32]: Fix compilation error.
36624         (nap): Don't call usleep with too large an argument.  Use
36625         force_unlink.
36626         * doc/pastposix-functions/usleep.texi (usleep): Document the
36627         portability issue.
36628
36629 2009-10-13  Jim Meyering  <meyering@redhat.com>
36630
36631         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36632         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36633         * modules/pipe-filter-ii: Likewise.
36634         * modules/sys_socket-tests: Likewise.
36635         * modules/tsearch-tests: Likewise.
36636         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36637         (check): Depend on it.
36638
36639 2009-10-12  Eric Blake  <ebb9@byu.net>
36640
36641         utimens-tests: port to NFS file systems
36642         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36643         comparisons to avoid spurious failures from timestamp drift
36644         between NFS machines.
36645
36646 2009-10-12  Eric Blake  <ebb9@byu.net>
36647
36648         stat-time-tests: minor cleanups
36649         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36650         * tests/test-stat-time.c (nap): Separate assignment from call.
36651         Suggested by Paolo Bonzini and Bruno Haible.
36652
36653         sys_stat: guarantee struct timespec
36654         * lib/sys_stat.in.h (includes): Always include <time.h>
36655         * modules/sys_stat (Depends-on): Add time.
36656         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36657         mode_t permission values.
36658         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36659         get at subsecond timestamps.
36660
36661 2009-10-10  Eric Blake  <ebb9@byu.net>
36662
36663         futimens: new module
36664         * modules/futimens: New file.
36665         * lib/futimens.c (futimens): Likewise.
36666         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36667         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36668         we can work around Linux bugs.
36669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36670         * modules/sys_stat (Makefile.am): Substitute them.
36671         * lib/sys_stat.in.h (futimens): Declare it.
36672         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36673         * doc/posix-functions/futimens.texi (futimens): Likewise.
36674         * modules/futimens-tests: New test.
36675         * tests/test-futimens.c: Likewise.
36676
36677         utimens: introduce fdutimens
36678         * lib/utimens.h (fdutimens): New prototype.
36679         * lib/utimens.c (gl_futimens): Move guts...
36680         (fdutimens): ...to new interface.
36681         * tests/test-utimens.c (do_fdutimens): Use it.
36682
36683         utimens: add UTIME_NOW and UTIME_OMIT support
36684         * lib/utimens.c (validate_timespec, update_timespec): New helper
36685         functions.
36686         (gl_futimens, lutimens): Use them.
36687         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36688         stdbool, sys_stat.
36689         (Link): Mention resulting library dependency.
36690         * modules/utimecmp (Link): Likewise.
36691         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36692         (Makefile.am): Pick up library dependency.
36693         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36694         definition.
36695         * tests/test-sys_stat.c: Test the definitions.
36696         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36697         * NEWS: Document library dependency.
36698
36699         utimecmp: support symlink timestamps
36700         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36701         hashing when possible.  Use pathconf when available.
36702         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36703         * modules/utimecmp (Depends-on): Add lstat.
36704
36705         utimens: add lutimens interface
36706         * lib/utimens.c (lutimens): New function.
36707         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36708         * lib/utimens.h (lutimens): Declare new interface.
36709         * tests/test-utimens.c (main): Enhance test.
36710         * tests/test-lutimens.h (test_lutimens): New file.
36711         * modules/utimens-tests (Files): Distribute it.
36712         (Depends-on): Add symlink.
36713         (configure.ac): Check for usleep.
36714
36715         utimens: validate futimens usage
36716         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36717         fewer syscalls on failure later on.  Avoid compiler warning on
36718         mingw.
36719         * modules/utimens (Depends-on): Add dup2.
36720
36721         utimens: add test
36722         * modules/utimens-tests: New test.
36723         * tests/test-utimens.h: New file.
36724         * tests/test-futimens.h: Likewise.
36725         * tests/test-utimens.c: Likewise.
36726
36727         doc: mention timestamp portability issues
36728         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36729         instead.
36730         * doc/posix-functions/utime.texi (utime): Likewise.
36731         * doc/posix-functions/utimes.texi (utimes): Likewise.
36732         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36733         instead.
36734         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36735         module.
36736         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36737         Mention weakness with symlink timestamps.
36738         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36739         to utimensat/futimens instead.
36740         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36741
36742         test-dup2: enhance test
36743         * tests/test-dup2.c (main): Also check AT_FDCWD.
36744
36745         test-stat-time: avoid more spurious failures
36746         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36747         xfs; and avoid race if the two timestamps cross quantization edge.
36748
36749         relocatable: prefer 'file system' over 'filesystem'
36750         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36751         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36752         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36753         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36754         * lib/relocatable.c (compute_curr_prefix): Likewise.
36755
36756 2009-10-10  Jim Meyering  <meyering@redhat.com>
36757
36758         stat-time-tests: check for the usleep function
36759         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36760
36761 2009-10-10  Bruno Haible  <bruno@clisp.org>
36762
36763         * modules/xnanosleep: Put the Link section after the Include section.
36764
36765 2009-10-09  Eric Blake  <ebb9@byu.net>
36766
36767         dup2: work around FreeBSD 6.1 bug
36768         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36769         * doc/posix-functions/dup2.texi (dup2): Document it.
36770         Reported by Nelson H. F. Beebe and Jim Meyering.
36771
36772         test-stat-time: port to buggy NFS clients
36773         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36774         (test_ctime): Also skip test if mtime and ctime are skewed.
36775
36776         maint: prefer 'file system' over 'filesystem'
36777         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36778         * doc/posix-functions/lstat.texi (lstat): Likewise.
36779         * lib/file-has-acl.c (file_has_acl): Likewise.
36780         * lib/fwriteerror.c [TEST]: Likewise.
36781         * tests/test-areadlink.h (test_areadlink): Likewise.
36782         * tests/test-areadlinkat-with-size.c (main): Likewise.
36783         * tests/test-areadlinkat.c (main): Likewise.
36784         * tests/test-canonicalize-lgpl.c (main): Likewise.
36785         * tests/test-canonicalize.c (main): Likewise.
36786         * tests/test-fstatat.c (main): Likewise.
36787         * tests/test-linkat.c (main): Likewise.
36788         * tests/test-lstat.h (test_lstat_func): Likewise.
36789         * tests/test-mkdir.h (test_mkdir): Likewise.
36790         * tests/test-readlink.h (test_readlink): Likewise.
36791         * tests/test-remove.c (main): Likewise.
36792         * tests/test-rename.h (test_rename): Likewise.
36793         * tests/test-renameat.c (main): Likewise.
36794         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36795         * tests/test-symlink.h (test_symlink): Likewise.
36796         * tests/test-symlinkat.c (main): Likewise.
36797         * tests/test-unlink.h (test_unlink_func): Likewise.
36798         * tests/test-unlinkat.c (main): Likewise.
36799
36800         maint: make realtime library usage explicit
36801         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36802         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36803         * modules/settime (Link): Likewise.
36804         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36805
36806         test-stat-time: speed up execution
36807         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36808         warning on mingw.
36809         (nap): New helper function.
36810         (prepare_test): Use it to reduce sleep time.
36811         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36812         execution.
36813         * modules/stat-time-tests (configure.ac): Check for usleep.
36814
36815 2009-10-09  Jim Meyering  <meyering@redhat.com>
36816
36817         selinux-h: always use getfilecon wrappers
36818         * lib/getfilecon.c: New file.
36819         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36820         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36821         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36822         (fgetfilecon): Provide a stub.
36823         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36824         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36825         file unconditionally.
36826         When <selinux/selinux.h> is found, arrange to use wrappers.
36827         * modules/selinux-h (Files): Add getfilecon.c.
36828         (Makefile.am): Substitute include-next-related bits
36829         into the now-always-generated selinux/selinux.h file.
36830         * doc/glibc-functions/lgetfilecon.texi: New file.
36831         * doc/glibc-functions/fgetfilecon.texi: New file.
36832         * doc/glibc-functions/getfilecon.texi: New file.
36833         * doc/glibc-functions/getfilecon-desc.texi: New file.
36834         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36835         which to pull in the new files.
36836         * MODULES.html.sh (Misc): Add selinux-h.
36837
36838 2009-10-08  Jim Meyering  <meyering@redhat.com>
36839
36840         unistd: fix comment typo
36841         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36842
36843 2009-10-08  Eric Blake  <ebb9@byu.net>
36844
36845         areadlink: use SIZE_MAX consistently
36846         * modules/areadlink (Depends-on): Add stdint.
36847         * modules/areadlink-with-size (Depends-on): Likewise.
36848         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36849         gives NULL; drop sys/types, since unistd gives size_t; and add
36850         stdint for SIZE_MAX.
36851         (SIZE_MAX): Rely on headers.
36852         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36853         and add stdint.
36854         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36855         (SIZE_MAX): Likewise.
36856         (INITIAL_BUF_SIZE): Turn into enum.
36857         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36858
36859 2009-10-08  Jim Meyering  <meyering@redhat.com>
36860
36861         areadlinkat: avoid compilation failure
36862         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36863         Fix typo in comment.
36864
36865 2009-10-07  Eric Blake  <ebb9@byu.net>
36866
36867         areadlinkat-with-size: new module
36868         * modules/areadlinkat-with-size: New module.
36869         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36870         * lib/areadlink.h (areadlinkat): Declare it.
36871         * MODULES.html.sh (File system functions): Mention it.
36872         * modules/areadlinkat-with-size-tests: New test.
36873         * tests/test-areadlinkat-with-size.c: New file.
36874
36875         xreadlinkat: new module
36876         * modules/xreadlinkat: New module.
36877         * lib/xreadlinkat.c (xreadlinkat): New file.
36878         * lib/xreadlink.h (xreadlinkat): Declare it.
36879         * MODULES.html.sh (File system functions): Mention it.
36880
36881         areadlinkat: new module
36882         * lib/at-func.c (FUNC_FAIL): New define.
36883         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36884         * modules/areadlinkat: New module.
36885         * lib/linkat.c (areadlinkat): Move...
36886         * lib/areadlinkat.c (areadlinkat): ...to new file.
36887         * lib/areadlink.h (areadlinkat): Declare it.
36888         * modules/linkat (Depends-on): Add areadlinkat.
36889         * MODULES.html.sh (File system functions): Mention it.
36890         * modules/areadlinkat-tests: New test.
36891         * tests/test-areadlinkat.c: New file.
36892
36893         areadlink, areadlink-with-size: add tests
36894         * modules/areadlink-tests: New test.
36895         * modules/areadlink-with-size-tests: Likewise.
36896         * tests/test-areadlink.h: New file.
36897         * tests/test-areadlink.c: Likewise.
36898         * tests/test-areadlink-with-size.c: Likewise.
36899
36900         maint: minor cleanups
36901         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36902         _UNUSED_PARAMETER_ instead.
36903         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36904         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36905         * modules/linkat-tests (Files): Distribute test-link.h.
36906
36907         openat, utimens: whitespace cleanup
36908         * lib/openat.c: Prefer space throughout, rather than mix of 8
36909         spaces vs. tabs.
36910         * lib/at-func.c: Likewise.
36911         * lib/utimens.c: Likewise.
36912
36913         openat: avoid using wrong fd
36914         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36915         working directory chooses same fd.
36916         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36917
36918         mkdir, mkdirat: fix cygwin 1.5.x bug
36919         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36920         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36921         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36922         bug.
36923         (gl_PREREQ_MKDIR): Delete unused macro.
36924         * modules/mkdir (Files): Track file rename.
36925         (configure.ac): Update macro name.
36926         * modules/openat (Depends-on): Add mkdir.
36927         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36928
36929         mkdir, mkdirat: add tests
36930         * modules/mkdir-tests: New test.
36931         * tests/test-mkdir.h: New file.
36932         * tests/test-mkdir.c: Likewise.
36933         * tests/test-mkdirat.c: Likewise.
36934         * modules/openat-tests (Files): Add new files.
36935         (Makefile.am): Run new test.
36936
36937 2009-10-06  Eric Blake  <ebb9@byu.net>
36938
36939         doc: tweak *at function documentation
36940         * doc/posix-functions/faccessat.texi (faccessat): Mention
36941         known issue with replacement.
36942         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36943         * doc/posix-functions/linkat.texi (linkat): Likewise.
36944         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36945         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36946         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36947         * doc/posix-functions/renameat.texi (renameat): Likewise.
36948         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36949
36950         openat: fix GNU/Hurd bug in unlinkat
36951         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36952         broken.
36953         * doc/posix-functions/unlink.texi (unlink): Document this.
36954         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36955
36956         fdopendir: fix GNU/Hurd bug
36957         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36958         allowing non-directory fds.
36959         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36960         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36961         * modules/dirent (Makefile.am): Substitute it.
36962         * lib/dirent.in.h (fdopendir): Declare replacement.
36963         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36964         * tests/test-fdopendir.c (main): Test something other than
36965         /dev/null, since on Hurd that behaves like a directory.
36966
36967         test-symlink: port to GNU/Hurd
36968         * tests/test-symlink.h (test_symlink): Relax expected errno.
36969
36970         doc: tweak more cygwin information
36971         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36972         now compatible with glibc.
36973         * doc/posix-functions/getopt.texi (getopt): Likewise.
36974
36975         getopt-gnu: add another test
36976         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36977         guarantee behavior relied on by m4.
36978         * tests/test-getopt.c (main): Use it.
36979         * modules/getopt-posix-tests (Depends-on): Add setenv.
36980         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36981
36982         getopt: fix compilation on darwin
36983         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36984         include.
36985         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36986         Reported by Ludovic Courtès.
36987
36988 2009-10-06  Bruno Haible  <bruno@clisp.org>
36989
36990         * modules/size_max (Description): Discourage its use.
36991         Reported by Simon Josefsson.
36992
36993 2009-10-06  Jim Meyering  <meyering@redhat.com>
36994
36995         linkat: avoid compilation failure
36996         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36997
36998 2009-10-05  Eric Blake  <ebb9@byu.net>
36999
37000         linkat: support Linux 2.6.17
37001         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
37002         linkat on Linux, but allow cache variable override.
37003         * lib/linkat.c (rpl_linkat): Define override.
37004         * modules/linkat (Depends-on): Add symlinkat.
37005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
37006         * modules/unistd (Makefile.am): Substitute it.
37007         * lib/unistd.in.h (linkat): Declare replacement.
37008         Reported by Pádraig Brady.
37009
37010         quotearg: port test to systems with C.UTF-8 locale
37011         * tests/test-quotearg.c (struct result_strings): Add another
37012         member, differentiating between C.ASCII and C.UTF-8 handling.
37013         (compare_strings): Add parameter.
37014         (main): Adjust all callers.
37015
37016         getopt: avoid clash with FreeBSD _getopt_internal
37017         * lib/getopt.in.h (_getopt_internal): Override the name.
37018         * lib/getopt_int.h (includes): Pick up any overrides.
37019         Reported by Reuben Thomas.
37020
37021         hash: allow C89 compilation
37022         * lib/hash.c (check_tuning): Move declaration before statement.
37023         Reported by Reuben Thomas.
37024
37025 2009-10-05  Karl Berry  <karl@gnu.org>
37026
37027         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
37028
37029 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
37030             Bruno Haible  <bruno@clisp.org>
37031
37032         * lib/uname.c (uname): Use a table-driven algorithm to compute
37033         Windows NT versions.
37034
37035 2009-10-04  Bruno Haible  <bruno@clisp.org>
37036
37037         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
37038         program_invocation_short_name.
37039         * modules/progname (configure.ac): Test for presence of
37040         program_invocation_short_name.
37041         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
37042
37043 2009-10-04  Bruno Haible  <bruno@clisp.org>
37044
37045         * lib/progname.c (set_program_name): Fix comment.
37046         Reported by Jim Meyering.
37047
37048 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37049             Bruno Haible  <bruno@clisp.org>
37050
37051         * lib/uname.c: Include <string.h>.
37052         (uname): Do only one call to GetVersionEx in the common case.
37053
37054 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
37055             Bruno Haible  <bruno@clisp.org>
37056
37057         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
37058         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
37059         (uname): Add support for Windows CE and various non-x86 CPU types.
37060
37061 2009-10-03  Bruno Haible  <bruno@clisp.org>
37062
37063         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
37064         invocation to tests/configure.ac.
37065         Reported by Ian Beckwith <ianb@erislabs.net>.
37066
37067 2009-10-02  Eric Blake  <ebb9@byu.net>
37068
37069         fchdir: avoid compiler warning
37070         * lib/fchdir.c (canonicalize_file_name)
37071         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
37072
37073         test-open: support mingw errno values
37074         * tests/test-open.h (test_open): Relax test.
37075         * tests/test-fopen.h (test_fopen): Likewise.
37076         * tests/test-openat-safer.c (main): Likewise.
37077
37078         open: fix opening directory on mingw
37079         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
37080
37081         test-open: on GNU/Hurd, /dev/null is a directory
37082         * tests/test-fopen.h (main): Rename...
37083         (test_fopen): ...to this.  Use a guaranteed non-directory when
37084         confirming open behavior on trailing slash.
37085         * tests/test-openat-safer.c (main): Likewise.
37086         * tests/test-open.h (main): Likewise....
37087         (test_open): ...to this.
37088         * tests/test-fopen.c (main): Adjust caller.
37089         * tests/test-fopen-safer.c (main): Likewise.
37090         * tests/test-open.c (main): Likewise.
37091         * tests/test-fcntl-safer.c (main): Likewise.
37092         Reported by Samuel Thibault.
37093
37094         rename, fchdir: don't ignore chdir failure
37095         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
37096         * lib/rename.c (rpl_rename) [W32]: Likewise.
37097         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
37098         an empty destination directory if source cannot be renamed,
37099         although there is still possibility for failure.
37100         * doc/posix-functions/rename.texi (rename): Document the race.
37101         Reported by Jim Meyering.
37102
37103         maint: cleanup whitespace in recent commits
37104         * lib/rename.c (rpl_rename): Remove tabs.
37105         * tests/test-link.h (test_link): Likewise.
37106         * lib/fchdir.c (get_name): Likewise.
37107         Reported by Jim Meyering.
37108
37109 2009-10-02  Ben Pfaff  <blp@gnu.org>
37110
37111         relocatable-prog-wrapper: Add missing dependency on
37112         double-slash-root.
37113         * modules/relocatable-prog-wrapper: Add dependency.
37114         Reported by Ian Beckwith <ianb@erislabs.net>.
37115
37116 2009-10-02  Eric Blake  <ebb9@byu.net>
37117
37118         renameat: fix Solaris bugs
37119         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
37120         needed fixing.
37121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
37122         * modules/stdio (Makefile.am): Substitute it.
37123         * lib/stdio.in.h (renameat): Declare replacement.
37124         * lib/renameat.c (rpl_renameat): Implement fix.
37125
37126         renameat: new module
37127         * modules/renameat: New file.
37128         * lib/renameat.c (renameat): Likewise.
37129         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
37130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37131         * modules/stdio (Makefile.am): Substitute them.
37132         * lib/stdio.in.h (renameat): Declare it.
37133         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37134         * doc/posix-functions/renameat.texi (renameat): Likewise.
37135         * modules/renameat-tests: New test.
37136         * tests/test-renameat.c: Likewise.
37137
37138         rename: fix mingw bugs
37139         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
37140         directory overwrite bugs.
37141
37142         rename: fix another cygwin 1.5 bug
37143         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
37144         checks.
37145         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
37146         unnecessary cygwin workarounds.  Also work around bug with moving
37147         full directory onto an empty one.
37148         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
37149
37150         rename-dest-slash: merge into rename module
37151         * modules/rename-dest-slash (Status): Mark obsolete.
37152         (Depends-on): Add rename.
37153         (Files): Let rename do it all.
37154         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
37155         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
37156         * m4/rename-dest-slash.m4: ...so this file can be deleted.
37157         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
37158         * lib/rename.c (rpl_rename): Update comments.
37159
37160         rename: fix cygwin 1.5.x bugs
37161         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37162         * lib/rename.c (rpl_rename): Work around them.
37163         * modules/rename (Depends-on): Add same-inode.
37164
37165         rename: fix Solaris 10 bug
37166         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37167         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37168         was the only bug.
37169
37170         rename: fix Solaris 9 bug
37171         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37172         on non-directory.  Avoid calling exit.
37173         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37174         strdup.
37175         * modules/rename-tests (Depends-on): Drop lstat.
37176         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37177         (gl_PREREQ_RENAME): Delete unused macro.
37178
37179         rename-dest-slash: fix NetBSD bug
37180         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37181         links.
37182         * modules/rename-dest-slash (Depends-on): Add same-inode.
37183
37184         rename-tests: new test, exposes several platform bugs
37185         * modules/rename-tests: New file.
37186         * tests/test-rename.h: Likewise.
37187         * tests/test-rename.c: Likewise.
37188         * doc/posix-functions/rename.texi (rename): Improve documentation,
37189         including bugs that will eventually be fixed in gnulib.
37190
37191 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37192
37193         * lib/uname.c: Include <stdlib.h>
37194         (uname): Assume version info is available.
37195
37196 2009-10-02  Jim Meyering  <meyering@redhat.com>
37197
37198         gnu-web-doc-update: correct --help output
37199         * build-aux/gnu-web-doc-update: Make --help output relevant.
37200
37201         gnu-web-doc-update: add standard options
37202         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37203
37204         gnu-web-doc-update: New module.
37205         Use this script to automatically update the on-line web documentation
37206         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37207         * modules/gnu-web-doc-update: New file, from coreutils.
37208         * build-aux/gnu-web-doc-update: New script.
37209
37210 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37211
37212         link: LoadLibrary is not needed.
37213         * lib/link.c: Use GetModuleHandle.
37214
37215 2009-10-01  Eric Blake  <ebb9@byu.net>
37216
37217         getopt: bump serial number
37218         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37219         change.
37220
37221         tests: tighten link, rmdir, and remove tests
37222         * tests/test-link.h (includes): No need to use <config.h> here.
37223         Clean up if directory hard link was created, otherwise test for
37224         trailing '.'.
37225         * tests/test-linkat.c (main): Simplify.
37226         * tests/test-remove.c (main): Enhance test for trailing '.'.
37227         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37228
37229 2009-10-01  Jim Meyering  <meyering@redhat.com>
37230
37231         maint.mk: requiring "make major" was annoying, for a "minor" release.
37232         What is intended is "stable", to contrast with alpha and beta,
37233         so require "make stable", not "make major".
37234         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37235         (get_tool_versions): Likewise.
37236         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37237
37238 2009-09-30  Ben Pfaff  <blp@gnu.org>
37239
37240         Fix broken build of replacement for Windows tmpfile().
37241         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37242         flags argument added along with the 'mkostemp' module.
37243
37244 2009-09-28  Bruno Haible  <bruno@clisp.org>
37245
37246         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37247         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37248         to 'remove_elt'.
37249         (gl_list_remove): Update.
37250         * lib/gl_list.c (gl_list_remove): Update.
37251         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37252         to 'remove_elt'.
37253         (gl_oset_remove): Update.
37254         * lib/gl_list.c (gl_oset_remove): Update.
37255         Reported by Eric Blake.
37256
37257 2009-09-28  Eric Blake  <ebb9@byu.net>
37258
37259         doc: mention yet more cygwin 1.7 status
37260         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37261         cygwin.
37262         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37263         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37264
37265         argp: fix test failure
37266         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37267         that are not upper-case.  Pass correct range to tolower.
37268
37269 2009-09-27  Jim Meyering  <meyering@redhat.com>
37270
37271         test-yesno: work around sparc-dash here-document infelicity
37272         Without this change, the literal \177 byte in a here document
37273         would make dash 0.5.5.1-3 access uninitialized memory.
37274         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37275         Instead, use a marker, "@", and filter through tr to create the desired
37276         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37277
37278 2009-09-27  Bruno Haible  <bruno@clisp.org>
37279
37280         Disable untested support for new flavours of ACLs on AIX.
37281         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37282         progress.
37283         * lib/set-mode-acl.c (qset_acl): Likewise.
37284
37285 2008-12-07  Bruno Haible  <bruno@clisp.org>
37286
37287         Add support for new flavours of ACLs on AIX. (Untested.)
37288         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37289         (file_has_acl): Add support for newer AIX.
37290         * lib/set-mode-acl.c (qset_acl): Likewise.
37291         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37292         Rainer Tammer <tammer@tammer.net>.
37293
37294 2009-09-26  Eric Blake  <ebb9@byu.net>
37295
37296         argp: fix compilation of getopt
37297         * lib/getopt.in.h (includes): Use different guard than glibc.
37298         Reported by Sergey Poznyakoff.
37299
37300         doc: mention more cygwin 1.7 status
37301         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37302         bug.
37303         * doc/posix-functions/execl.texi (execl): Likewise.
37304         * doc/posix-functions/execle.texi (execle): Likewise.
37305         * doc/posix-functions/execlp.texi (execlp): Likewise.
37306         * doc/posix-functions/execv.texi (execv): Likewise.
37307         * doc/posix-functions/execve.texi (execve): Likewise.
37308         * doc/posix-functions/execvp.texi (execvp): Likewise.
37309         * doc/glibc-functions/canonicalize_file_name.texi
37310         (canonicalize_file_name): Cygwin 1.7 now provides this.
37311         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37312         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37313         on AT_SYMLINK_NOFOLLOW.
37314
37315 2009-09-24  Eric Blake  <ebb9@byu.net>
37316
37317         test-linkat: make test more robust
37318         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37319
37320         getopt: fix inclusion guards for cygwin
37321         * modules/getopt-posix (Depends-on): Add include-next.
37322         (Makefile.am): Substitute more items in replacement header.
37323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37324         <getopt.h>.
37325         * lib/getopt.in.h (includes): Use split inclusion guard, and
37326         prefer <getopt.h> over include <unistd.h> when one is present.
37327         (option): Also override name of 'struct option'.
37328
37329         same-inode: revert prior change; it is not yet ready
37330         * NEWS: Undo mention of this change.
37331         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37332         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37333         * lib/cycle-check.c (cycle_check): Likewise.
37334         * lib/same.c (same_name): Likewise.
37335         * lib/at-func2.c (at_func2): Likewise.
37336
37337 2009-09-23  Eric Blake  <ebb9@byu.net>
37338
37339         linkat: new module
37340         * modules/linkat: New file.
37341         * lib/at-func2.c (at_func2): Likewise.
37342         * lib/linkat.c (linkat): Likewise.
37343         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37344         * lib/openat-priv.h (at_func2): Add declaration.
37345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37346         * modules/unistd (Makefile.am): Substitute them.
37347         * lib/unistd.in.h (linkat): Declare it.
37348         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37349         * doc/posix-functions/linkat.texi (linkat): Likewise.
37350         * doc/posix-functions/link.texi (link): Tweak wording.
37351         * tests/test-link.c (main): Move guts...
37352         * tests/test-link.h (test_link): ...into new file.
37353         * modules/linkat-tests: New test.
37354         * tests/test-linkat.c: Likewise.
37355         * modules/link-tests (Files): Ship new file.
37356         (Depends-on): Add stdbool.
37357
37358         dirname: add library-safe mdir_name
37359         * lib/dirname.h (mdir_name): New prototype.
37360         * lib/dirname.c (dir_name): Move guts...
37361         (mdir_name): ...to new function that avoids xalloc_die.
37362
37363         fchdir: another mingw fix
37364         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37365         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37366         on mingw (where it has not yet been ported), and make it optional
37367         elsewhere.
37368         (_gl_register_fd): Use it.
37369
37370         same-inode: make SAME_INODE tri-state, to port to mingw
37371         * NEWS: Mention this change.
37372         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37373         st_ino always being 0.
37374         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37375         * lib/cycle-check.c (cycle_check): Likewise.
37376         * lib/same.c (same_name): Likewise.
37377
37378         lstat: avoid mingw compilation error
37379         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37380         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37381         lstat ourselves.
37382         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37383         was adequate.
37384         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37385         the checks for lstat.
37386         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37387
37388         link: fix test failure on Solaris 9
37389         * lib/link.c (rpl_link): Don't assume link will catch bogus
37390         trailing slash on source.
37391
37392         test-symlinkat: enhance test
37393         * tests/test-readlink.c (main): Move guts...
37394         * tests/test-readlink.h (test_readlink): ...into new file.
37395         * tests/test-symlink.c (main): Move guts...
37396         * tests/test-symlink.h (test_symlink): ...into new file.
37397         * tests/test-symlinkat.c (main): Use new files for further
37398         coverage.
37399         (do_symlink, do_readlink): New helper functions.
37400         * modules/symlink-tests (Files): Ship new file.
37401         (Depends-on): Add stdbool.
37402         * modules/readlink-tests (Files): Ship new file.
37403         (Depends-on): Add stdbool.
37404         * modules/symlinkat-tests (Files): Use new files.
37405
37406 2009-09-23  Eric Blake  <ebb9@byu.net>
37407
37408         readlink: document portability issue with symlink length
37409         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37410         systems have bogus st_size on symlinks, and mention the
37411         areadlink-with-size module.
37412         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37413         * doc/posix-functions/readlink.texi (readlink): Mention the
37414         areadlink module, and ERANGE failure.
37415         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37416         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37417
37418         readlink: fix Solaris 9 bug with trailing slash
37419         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37420         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37421         * doc/posix-functions/readlink.texi (readlink): Document this.
37422         * modules/readlink-tests: New test.
37423         * tests/test-readlink.c: Likewise.
37424
37425         readlink: fix cygwin 1.5.x bug with return type
37426         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37427         * lib/unistd.in.h (readlink): Use ssize_t.
37428         * lib/readlink.c (readlink): Likewise.
37429         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37430         * modules/unistd (Makefile.am): Substitute it.
37431         * lib/unistd.in.h (readlink): Declare replacement.
37432         * doc/posix-functions/readlink.texi (readlink): Document this.
37433
37434         symlink: use throughout gnulib
37435         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37436         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37437         symlink is not used.
37438         * modules/symlinkat (Depends-on): Add symlink.
37439         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37440         * modules/canonicalize-tests (Depends-on): Likewise.
37441         * modules/lstat-tests (Depends-on): Likewise.
37442         * modules/openat-tests (Depends-on): Likewise.
37443         * modules/remove-tests (Depends-on): Likewise.
37444         * modules/rmdir-tests (Depends-on): Likewise.
37445         * modules/unlink-tests (Depends-on): Likewise.
37446         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37447         * tests/test-canonicalize.c (symlink): Likewise.
37448         * tests/test-fstatat.c (symlink): Likewise.
37449         * tests/test-lstat.c (symlink): Likewise.
37450         * tests/test-remove.c (symlink): Likewise.
37451         * tests/test-rmdir.c (symlink): Likewise.
37452         * tests/test-unlink.c (symlink): Likewise.
37453         * tests/test-unlinkat.c (symlink): Likewise.
37454
37455         symlink: new module, for Solaris 9 bug
37456         * modules/symlink: New file.
37457         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37458         * lib/symlink.c: Likewise.
37459         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37460         * modules/unistd (Makefile.am): Substitute them.
37461         * lib/unistd.in.h (symlink): Declare replacement.
37462         * MODULES.html.sh (File system functions): Mention it.
37463         * doc/posix-functions/symlink.texi (symlink): Likewise.
37464         * modules/symlink-tests: New test.
37465         * tests/test-symlink.c: Likewise.
37466
37467 2009-09-23  Bruno Haible  <bruno@clisp.org>
37468
37469         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37470         when needed.
37471         Test case: gnulib-tool --import --with-tests atexit inttypes.
37472         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37473
37474 2009-09-23  Bruno Haible  <bruno@clisp.org>
37475
37476         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37477         subcommand, not in a subshell.
37478
37479 2009-09-22  Eric Blake  <ebb9@byu.net>
37480
37481         unistd: sort replacement declarations
37482         * lib/unistd.in.h: Sort declarations.
37483
37484         open, openat: minor optimization
37485         * lib/open.c (open): If open succeeded, len is non-zero.
37486         * lib/openat.c (rpl_openat): Likewise.
37487
37488         link-follow: ensure correct result
37489         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37490         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37491         distinguish between possible failures.
37492
37493 2009-09-21  Eric Blake  <ebb9@byu.net>
37494
37495         fts: avoid compiler warning
37496         * lib/fts.c (dirent_inode_sort_may_be_useful)
37497         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37498
37499 2009-09-19  Bruno Haible  <bruno@clisp.org>
37500
37501         * lib/progreloc.c (canonicalize_file_name): New declaration.
37502
37503 2009-09-19  Eric Blake  <ebb9@byu.net>
37504
37505         link: fix quoting
37506         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37507
37508         openat: fix openat bugs on Solaris 9
37509         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37510         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37511         * modules/openat (Depends-on): Add open.
37512         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37513         * modules/fcntl-h (Makefile.am): Substitute it.
37514         * lib/fcntl.in.h (openat): Declare replacement.
37515         * doc/posix-functions/openat.texi (openat): Document this.
37516
37517         openat: move fstatat and unlinkat into correct files
37518         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37519         compiled.
37520         * lib/openat.c (fstatat, unlinkat): Move...
37521         * lib/fstatat.c (fstatat): ...into correct files.
37522         * lib/unlinkat.c (unlinkat): Likewise.
37523
37524         openat: fix unlinkat bugs on Solaris 9
37525         * lib/unlinkat.c (unlinkat): New file.
37526         * modules/openat (Depends-on): Add unlink.
37527         (Files): Distribute it.
37528         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37529         trailing slash behavior is broken.
37530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37531         * modules/unistd (Makefile.am): Substitute it.
37532         * lib/unistd.in.h (unlinkat): Declare replacement.
37533         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37534
37535         openat: fix fstatat bugs on Solaris 9
37536         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37537         stat.
37538         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37539
37540         test-unlinkat: enhance test, to expose Solaris 9 bug
37541         * tests/test-unlink.c (main): Factor guts...
37542         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37543         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37544         * tests/test-rmdir.c (main): Adjust caller.
37545         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37546         (unlinker): New helper function.
37547         (rmdirat): Enhance check.
37548         * modules/rmdir-tests (Depends-on): Add stdbool.
37549         * modules/unlink-tests (Depends-on): Likewise.
37550         (Files): Add test-unlink.h.
37551         * modules/openat-tests (Files): Likewise.
37552         (Depends-on): Add unlinkdir.
37553
37554         test-fstatat: new test, to expose Solaris 9 bugs
37555         * tests/test-stat.c (main): Factor guts...
37556         * tests/test-stat.h (test_stat_func): ...into new file.
37557         * tests/test-lstat.c (main): Factor guts...
37558         * tests/test-lstat.h (test_lstat_func): ...into new file.
37559         * tests/test-fstatat.c: New file.
37560         * modules/stat-tests (Files): Add test-stat.h.
37561         * modules/lstat-tests (Files): Add test-lstat.h.
37562         (Depends-on): Add stdbool.
37563         * modules/openat-tests (Depends-on): Add pathmax.
37564         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37565         (Makefile.am): Run new test.
37566
37567         remove: new module, for mingw and Solaris 9 bugs
37568         * modules/remove: New file.
37569         * lib/remove.c: Likewise.
37570         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37571         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37572         * modules/stdio (Makefile.am): Use them.
37573         * lib/stdio.in.h (remove): Declare replacement.
37574         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37575         * doc/posix-functions/remove.texi (remove): Likewise.
37576         * modules/remove-tests: New test.
37577         * tests/test-remove.c: Likewise.
37578
37579         unlink: new module, for Solaris 9 bug
37580         * modules/unlink: New file.
37581         * lib/unlink.c: Likewise.
37582         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37584         * modules/unistd (Makefile.am): Use them.
37585         * lib/unistd.in.h (stat): Declare replacement.
37586         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37587         * doc/posix-functions/unlink.texi (unlink): Likewise.
37588         * modules/unlink-tests: New test.
37589         * tests/test-unlink.c: Likewise.
37590
37591         lstat: fix Solaris 9 bug
37592         * lib/lstat.c (lstat): Also check for trailing slash on
37593         non-symlink, non-directories.  Use stat module to simplify logic.
37594         * doc/posix-functions/lstat.texi (lstat): Document it.
37595         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37596         (configure.ac): Check for symlink.
37597         * tests/test-lstat.c (main): Add more tests.
37598
37599         stat: add as dependency to other modules
37600         * modules/chown (Depends-on): Add stat.
37601         * modules/euidaccess (Depends-on): Likewise.
37602         * modules/fchdir (Depends-on): Likewise.
37603         * modules/isdir (Depends-on): Likewise.
37604         * modules/link (Depends-on): Likewise.
37605         * modules/lstat (Depends-on): Likewise.
37606         * modules/mkdir-p (Depends-on): Likewise.
37607         * modules/modechange (Depends-on): Likewise.
37608         * modules/open (Depends-on): Likewise.
37609         * modules/readlink (Depends-on): Likewise.
37610         * modules/same (Depends-on): Likewise.
37611
37612         stat: fix Solaris 9 bug
37613         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37614         slash.
37615         * lib/stat.c (rpl_stat): Work around it.
37616         * doc/posix-functions/stat.texi (stat): Update documentation.
37617
37618         stat: new module, for mingw bug
37619         * modules/stat: New file.
37620         * lib/stat.c: Likewise.
37621         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37622         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37623         * modules/sys_stat (Makefile.am): Use them.
37624         * lib/sys_stat.in.h (stat): Declare replacement.
37625         * lib/openat.c (fstatat): Deal with lstat and stat being function
37626         macros.
37627         * modules/openat (Depends-on): Add inline.
37628         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37629         * doc/posix-functions/stat.texi (stat): Likewise.
37630         * modules/stat-tests: New test.
37631         * tests/test-stat.c: Likewise.
37632
37633 2009-09-19  Jim Meyering  <meyering@redhat.com>
37634
37635         syntax-check: detect unnecessary inclusion of canonicalize.h
37636         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37637
37638 2009-09-19  Eric Blake  <ebb9@byu.net>
37639
37640         canonicalize-lgpl: adjust clients to use correct header
37641         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37642         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37643         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37644         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37645         * lib/progreloc.c (includes): Likewise.
37646
37647 2009-09-19  Jim Meyering  <meyering@redhat.com>
37648
37649         test-posixtm.c: correct a comment
37650         * tests/test-posixtm.c: Correct first-line comment.
37651         Spotted by Eric Blake.
37652
37653 2009-09-16  Jim Meyering  <meyering@redhat.com>
37654
37655         posixtm-tests: make T const-correct; add a test case
37656         * tests/test-posixtm.c (T): Declare const.
37657         Add a test for -(2^31+1).
37658         Remove useless can-succeed-only-in-2002 test.
37659
37660         posixtm-tests: adjust the sole failing test
37661         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37662         expected output matches what mktime now produces.  Cross-checked via
37663         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37664
37665         posixtm: move #ifdef'd tests into a new module
37666         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37667         * tests/test-posixtm.c: ... this new file.
37668         * modules/posixtm-tests: New module.
37669
37670 2009-09-19  Eric Blake  <ebb9@byu.net>
37671
37672         openat: simplify use of at-func.c
37673         * lib/at-func.c (includes): Include prerequisites here, to
37674         simplify requirements on client files.
37675         * lib/openat-priv.h: Add double-inclusion guard.
37676         * lib/faccessat.c (includes): Simplify.
37677         * lib/fchmodat.c (includes): Likewise.
37678         * lib/fchownat.c (includes): Likewise.
37679         * lib/mkdirat.c (includes): Likewise.
37680         * lib/mkfifoat.c (includes): Likewise.
37681         * lib/symlinkat.c (includes): Likewise.
37682
37683         openat: allow return of fd 0
37684         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37685         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37686         unistd-safer.
37687         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37688         <fcntl.h>; this module does not leak fds.
37689         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37690         must be allowed to return 0, leaving openat_safer to add the
37691         safety.
37692         (openat_permissive): Avoid writing to just-opened fd 2 if
37693         restoring the current directory fails.
37694         * lib/openat-die.c (openat_restore_fail): Add comment.
37695         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37696         (save_cwd): Guarantee safe fd, but without use of open_safer.
37697         * tests/test-openat.c: New test.
37698         * modules/openat-tests (Files, Makefile.am): Distribute and build
37699         new file.
37700
37701         relocatable-prog-wrapper: fix build
37702         * modules/relocatable-prog-wrapper (Files): Update name of
37703         canonicalize m4 file, broken on 2009-09-17.
37704         Reported by emad hajjar <aleppos@hotmail.com>.
37705
37706 2009-09-19  Bruno Haible  <bruno@clisp.org>
37707
37708         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37709         * lib/safe-alloc.c: Likewise.
37710         Reported by Ian Beckwith <ianb@erislabs.net>.
37711
37712 2009-09-18  Bruno Haible  <bruno@clisp.org>
37713
37714         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37715         Reported by <erobles@sensacd.com.mx>.
37716
37717 2009-09-17  Eric Blake  <ebb9@byu.net>
37718
37719         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37720         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37721         slashes when checking if last component is missing.
37722         * tests/test-canonicalize.c (main): Test this.
37723
37724         canonicalize, canonicalize-lgpl: honor // if distinct from /
37725         * modules/canonicalize (Files): Add double-slash-root.m4.
37726         * modules/canonicalize-lgpl (Files): Likewise.
37727         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37728         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37729         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37730         fallback definition.
37731         (canonicalize_filename_mode): Use it to protect //.
37732         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37733         (__realpath): Likewise.
37734         * tests/test-canonicalize.c (main): Test this.
37735         * tests/test-canonicalize-lgpl.c (main): Likewise.
37736         * modules/canonicalize-tests (Depends-on): Add same-inode.
37737         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37738
37739         canonicalize-lgpl: fix glibc bug with trailing slash
37740         * m4/canonicalize-lgpl.m4: Move contents...
37741         * m4/canonicalize.m4: ...here.
37742         (gl_CANONICALIZE_LGPL): Factor realpath check...
37743         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37744         glibc 2.3.5 bug, fixed 2005-04-27.
37745         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37746         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37747         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37748         * modules/canonicalize-lgpl (Files): Manage file rename.
37749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37750         * modules/stdlib (Makefile.am): Substitute witness.
37751         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37752         is needed.
37753         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37754         replacement is required.
37755         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37756         * doc/glibc-functions/canonicalize_file_name.texi
37757         (canonicalize_file_name): Document this.
37758         * doc/posix-functions/realpath.texi (realpath): Likewise.
37759
37760         canonicalize-lgpl: reject non-directory with trailing slash
37761         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37762         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37763         catches failures in glibc 2.3.5.
37764         * tests/test-canonicalize.c (main): Likewise.
37765
37766         canonicalize-lgpl: use native realpath if it works
37767         * lib/canonicalize-lgpl.c (realpath): Guard with
37768         FUNC_REALPATH_WORKS.
37769         * lib/stdlib.in.h (realpath): Make declaration optional based on
37770         HAVE_REALPATH.
37771         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37772         native realpath works.
37773         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37774         * modules/stdlib (Makefile.am): Substitute witness.
37775
37776         canonicalize, canonicalize-lgpl: use <stdlib.h>
37777         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37778         (Include): Mention <stdlib.h>.
37779         (configure.ac): Mention functions we provide.
37780         * modules/canonicalize (configure.ac): Likewise.
37781         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37782         realpath if canonicalize_file_name is missing.
37783         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37784         * modules/stdlib (Makefile.am): Substitute witnesses.
37785         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37786         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37787         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37788         * NEWS: Document this.
37789         * doc/glibc-functions/canonicalize_file_name.texi
37790         (canonicalize_file_name): Likewise.
37791         * doc/posix-functions/realpath.texi (realpath): Likewise.
37792         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37793
37794         test-canonicalize: consolidate into single C program
37795         * tests/test-canonicalize.sh: Delete; move setup into...
37796         * tests/test-canonicalize.c (main): ...the program, making it
37797         easier to run in debugger.  Add some tests.
37798         * modules/canonicalize-tests (Files): Remove unused file.
37799         (Depends-on): Add progname.
37800         (configure.ac, Makefile.am): Simplify.
37801
37802         test-canonicalize-lgpl: consolidate into single C program
37803         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37804         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37805         easier to run in debugger.  Add some tests.
37806         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37807         (configure.ac, Makefile.am): Simplify.
37808
37809         canonicalize: avoid resolvepath
37810         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37811         unnecessary checks.
37812         * lib/canonicalize.c (includes): Simplify.
37813         (canonicalize_file_name): Drop resolvepath implementation.
37814         * modules/canonicalize (Depends-on): Drop filenamecat.
37815
37816         canonicalize: don't lose errno
37817         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37818         over calls to free.
37819
37820         canonicalize: simplify errno handling
37821         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37822         assignment.
37823
37824         canonicalize, canonicalize-lgpl: update module dependencies
37825         * modules/canonicalize (Depends-on): Add extensions, lstat,
37826         pathmax, stdlib.
37827         (Files): Drop pathmax.h.
37828         (configure.ac): Adjust macro name.
37829         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37830         lstat, stdlib, sys_stat.
37831         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37832         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37833         extensions.
37834         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37835         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37836         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37837         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37838         declaration, if available.
37839         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37840         we can rely on the readlink module.
37841         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37842         (includes): Use <unistd.h> unconditionally.
37843
37844 2009-09-17  Eric Blake  <ebb9@byu.net>
37845
37846         maint: make Include sections of modules consistent
37847         * modules/alloca: Use only header name; no need to list #include.
37848         * modules/alloca-opt: Likewise.
37849         * modules/arpa_inet: Likewise.
37850         * modules/canon-host: Likewise.
37851         * modules/configmake: Likewise.
37852         * modules/dirent: Likewise.
37853         * modules/eealloc: Likewise.
37854         * modules/environ: Likewise.
37855         * modules/fchdir: Likewise.
37856         * modules/fcntl: Likewise.
37857         * modules/fcntl-h: Likewise.
37858         * modules/gethrxtime: Likewise.
37859         * modules/gettime: Likewise.
37860         * modules/ignore-value: Likewise.
37861         * modules/inet_ntop: Likewise.
37862         * modules/inet_pton: Likewise.
37863         * modules/inttypes: Likewise.
37864         * modules/isnand-nolibm: Likewise.
37865         * modules/isnanf-nolibm: Likewise.
37866         * modules/mbchar: Likewise.
37867         * modules/mbfile: Likewise.
37868         * modules/mbiter: Likewise.
37869         * modules/mbuiter: Likewise.
37870         * modules/netdb: Likewise.
37871         * modules/netinet_in: Likewise.
37872         * modules/nproc: Likewise.
37873         * modules/pagealign_alloc: Likewise.
37874         * modules/poll: Likewise.
37875         * modules/printf-frexp: Likewise.
37876         * modules/pthread: Likewise.
37877         * modules/putenv: Likewise.
37878         * modules/random_r: Likewise.
37879         * modules/relocatable-prog: Likewise.
37880         * modules/search: Likewise.
37881         * modules/select: Likewise.
37882         * modules/selinux-h: Likewise.
37883         * modules/settime: Likewise.
37884         * modules/signal: Likewise.
37885         * modules/size_max: Likewise.
37886         * modules/socklen: Likewise.
37887         * modules/ssize_t: Likewise.
37888         * modules/stdarg: Likewise.
37889         * modules/stdbool: Likewise.
37890         * modules/stddef: Likewise.
37891         * modules/stdint: Likewise.
37892         * modules/stdio: Likewise.
37893         * modules/stdlib: Likewise.
37894         * modules/string: Likewise.
37895         * modules/strings: Likewise.
37896         * modules/sys_file: Likewise.
37897         * modules/sys_ioctl: Likewise.
37898         * modules/sys_select: Likewise.
37899         * modules/sys_socket: Likewise.
37900         * modules/sys_stat: Likewise.
37901         * modules/sys_time: Likewise.
37902         * modules/sys_times: Likewise.
37903         * modules/sys_utsname: Likewise.
37904         * modules/sys_wait: Likewise.
37905         * modules/sysexits: Likewise.
37906         * modules/time: Likewise.
37907         * modules/times: Likewise.
37908         * modules/tmpfile: Likewise.
37909         * modules/trim: Likewise.
37910         * modules/unistd: Likewise.
37911         * modules/wchar: Likewise.
37912         * modules/wctype: Likewise.
37913
37914 2009-09-17  Bruno Haible  <bruno@clisp.org>
37915
37916         Make getdate.y compile on QNX and NetBSD 5 / i386.
37917         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37918         TIME_T_FITS_IN_LONG_INT.
37919         * lib/getdate.y (long_time_t): New type.
37920         (relative_time): Change type of 'seconds' field to long_time_t.
37921         (get_date): Update types of local variables. Check against overflow
37922         during conversion from long_time_t to time_t.
37923         Reported by Matt Kraai <kraai@ftbfs.org>
37924         and Hasso Tepper <hasso@netbsd.org>.
37925
37926 2009-09-17  Bruno Haible  <bruno@clisp.org>
37927
37928         * modules/COPYING: Update copyright years.
37929         * modules/README: Likeiwse.
37930         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37931         Reported by Ian Beckwith <ianb@erislabs.net>.
37932
37933 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37934
37935         * users.txt: Update references for gnuit package.
37936
37937 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37938
37939         * m4/getdelim.m4: Fix typo in copyright line.
37940
37941 2009-09-17  Bruno Haible  <bruno@clisp.org>
37942
37943         * lib/atoll.c: Use the standard header with GPL copyright.
37944         * lib/argz.in.h: Likewise.
37945         * lib/glob.c: Likewise.
37946         * lib/glob-libc.h: Likewise.
37947         * lib/random_r.c: Likewise.
37948         * lib/siglist.h: Likewise.
37949         * lib/strsignal.c: Likewise.
37950         Reported by Ian Beckwith <ianb@erislabs.net>.
37951
37952 2009-09-17  Eric Blake  <ebb9@byu.net>
37953
37954         rmdir: ensure correct dependency order
37955         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37956
37957 2009-09-17  Bruno Haible  <bruno@clisp.org>
37958
37959         Disable assertion that fails on NetBSD 5 / i386.
37960         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37961         Reported by Sam Steingold <sds@gnu.org>
37962         and Hasso Tepper <hasso@netbsd.org>.
37963
37964 2009-09-16  Eric Blake  <ebb9@byu.net>
37965
37966         unlinkdir: port to mingw
37967         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37968         on which no one can unlink a directory.
37969
37970         stdlib: sort witness names
37971         * modules/stdlib (Makefile.am): Sort replacements.
37972         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37973         * lib/stdlib.in.h: Likewise.
37974
37975         parse-duration-tests: avoid link failure
37976         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37977         LIBINTL.
37978         Reported by Tom G. Christensen.
37979
37980         openat-tests: ensure unlinkat behaves like rmdir
37981         * tests/test-rmdir.c (main): Factor guts...
37982         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37983         * modules/rmdir-tests (Files): Ship new file.
37984         * modules/openat-tests: New test.
37985         * tests/test-unlinkat.c: Likewise.
37986
37987         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37988         * modules/rmdir-errno (Status, Notice): Now obsolete.
37989
37990         rmdir: work around cygwin 1.5.x and mingw bugs
37991         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37992         * lib/rmdir.c (rmdir): Work around it.
37993         * modules/rmdir (Status, Notice): No longer obsolete.
37994         (Files): Add dos.m4.
37995         (Depends-on): Add unistd.
37996         (configure.ac): Set witnesses.
37997         (License): Relax to LGPLv2+.
37998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37999         * modules/unistd (Makefile.am): Substitute witnesses.
38000         * lib/unistd.in.h (rmdir): Declare replacement.
38001         * doc/posix-functions/rmdir.texi (rmdir): Document this.
38002         * modules/rmdir-tests: New tests.
38003         * tests/test-rmdir.c: Likewise.
38004
38005 2009-09-15  Eric Blake  <ebb9@byu.net>
38006
38007         fchdir: improve use of replacement functions
38008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
38009         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
38010         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
38011         REPLACE_CLOSEDIR.
38012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
38013         * modules/sys_stat (Makefile.am): Substitute correct witness.
38014         * modules/dirent (Makefile.am): Likewise.
38015         * modules/unistd (Makefile.am): Likewise.
38016         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
38017         * lib/unistd.in.h (dup): Likewise.
38018         * lib/sys_stat.in.h (fstat): Likewise.
38019
38020         maint: ignore gnulib-tool temp files
38021         * .gitignore: Ignore files created during gnulib-tool --test.
38022
38023 2009-09-13  Jim Meyering  <meyering@redhat.com>
38024
38025         posixtm: don't reject a time that specify "60" as the number of seconds
38026         * lib/posixtm.c (posixtime): The code to reject invalid dates
38027         would also reject a time specified with the .60 suffix.
38028         But POSIX allows that, in order to accommodate leap seconds.
38029         So don't reject it.
38030         (main): Adjust tests accordingly.
38031         * modules/posixtm (Depends-on): Add stpcpy.
38032
38033 2009-09-11  Jim Meyering  <meyering@redhat.com>
38034
38035         announce-gen: include [$release_type] in emitted Subject:
38036         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
38037         e.g., [stable] in the emitted Subject: line.
38038
38039 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38040
38041         Remove obsolete macros from several modules.
38042         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
38043         obsolete Autoconf macros with their modern counterparts.
38044         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
38045         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
38046         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
38047         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38048         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
38049         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38050         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
38051         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38052         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
38053         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
38054         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38055         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38056         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
38057         * m4/sockets.m4 (gl_SOCKETS): Likewise.
38058         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
38059         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
38060         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38061         * m4/time_r.m4 (gl_TIME_R): Likewise.
38062         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
38063         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
38064         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38065
38066         Fix copyright header in build-aux scripts.
38067         * build-aux/git-version-gen: Fix copyright header to match GPLv3
38068         recommendation.
38069         * build-aux/ncftpput-ftp: Likewise.
38070         * build-aux/update-copyright: Likewise.
38071
38072 2009-09-09  Eric Blake  <ebb9@byu.net>
38073
38074         test-link: allow Linux choice of errno
38075         * tests/test-link.c (main): Relax test for alternate error.
38076
38077         strndup: fix improper m4 caching
38078         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
38079         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
38080         (gl_PREREQ_STRNDUP): Delete.
38081         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
38082         * modules/string (Makefile.am): Substitute it.
38083         * lib/string.in.h (strndup): Modernize prototype.
38084
38085         getcwd: port to mingw
38086         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
38087         different from the POSIX assumptions made throughout the getcwd
38088         module; fortunately, the mingw getcwd does not need replacement.
38089         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
38090         * modules/getcwd-tests: New test.
38091         * tests/test-getcwd.c: Likewise.
38092
38093         link: fix platform bugs
38094         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
38095         * lib/link.c (link): Work around them.  Fix related mingw bug.
38096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
38097         * modules/unistd (Makefile.am): Substitute it.
38098         * lib/unistd.in.h (link): Declare replacement.
38099         * doc/posix-functions/link.texi (link): Document this.
38100         * modules/link (Depends-on): Add strdup-posix, sys_stat.
38101
38102         test-link: consolidate into single C program, test more cases
38103         * tests/test-link.sh: Delete.
38104         * tests/test-link.c: Test more error conditions.  Exposes bugs on
38105         at least Cygwin and Solaris.
38106         * modules/link-tests (Files): Remove unused file.
38107         (Depends-on): Add errno, sys_stat.
38108         (Makefile.am): Simplify.
38109
38110 2009-09-08  Bruno Haible  <bruno@clisp.org>
38111
38112         Work around towlower, towupper bug on mingw.
38113         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
38114         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
38115         * doc/posix-functions/towlower.texi: Mention the mingw bug.
38116         * doc/posix-functions/towupper.texi: Likewise.
38117         Reported by Eric Blake.
38118
38119 2009-09-08  Jim Meyering  <meyering@redhat.com>
38120
38121         build: don't try to run autoheader if we don't use it
38122         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
38123         is not used in configure.ac.
38124
38125 2009-09-08  Eric Blake  <ebb9@byu.net>
38126
38127         euidaccess: fix compilation error
38128         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
38129
38130         rawmemchr: relax license
38131         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
38132         okay.
38133         Reported by Jim Meyering.
38134
38135         mkfifoat: new module
38136         * modules/mkfifoat: New file.
38137         * lib/mkfifoat.c: Likewise.
38138         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
38139         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38140         * modules/sys_stat (Makefile.am): Use them.
38141         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
38142         * MODULES.html.sh (File system functions): Mention module.
38143         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38144         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38145         * modules/mkfifoat-tests: New test.
38146         * tests/test-mkfifoat.c: Likewise.
38147
38148         strchrnul: relax license
38149         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
38150         okay.
38151         Reported by Jim Meyering.
38152
38153 2009-09-08  Eric Blake  <ebb9@byu.net>
38154
38155         fstatat: fix compilation on Solaris
38156         * lib/fstatat.c (includes): Add fcntl.h.
38157         Reported by Pádraig Brady.
38158
38159 2009-09-07  Eric Blake  <ebb9@byu.net>
38160
38161         rename: modernize replacement
38162         * modules/rename (Depends-on): Add stdio.
38163         (configure.ac): Declare witness.
38164         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38165         stdio take care of replacement.
38166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38167         * modules/stdio (Makefile.am): Substitute them.
38168         * lib/stdio.in.h (rename): Declare replacement.
38169         * lib/rename.c (includes): Allow cross-compilation to non-windows
38170         machines.
38171         * doc/posix-functions/rename.texi (rename): Improve
38172         documentation.
38173
38174         stdio: sort witness names
38175         * modules/stdio (Makefile.am): Sort replacements.
38176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38177         * lib/stdio.in.h: Likewise.
38178
38179         getcwd: minor cleanups
38180         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38181         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38182
38183         openat: provide more convenience names
38184         * modules/faccessat (configure.ac): Add C witness.
38185         * lib/unistd.in.h (readlinkat): Fix typo.
38186         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38187         convenience wrappers.
38188         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38189         wrappers in syntax checks.
38190
38191 2009-09-06  Eric Blake  <ebb9@byu.net>
38192
38193         doc: fix comments in recent patches
38194         * lib/faccessat.c: Mention correct function.
38195         * lib/fchmodat.c: Likewise.
38196         * lib/fchownat.c: Likewise.
38197         * lib/symlinkat.c: Likewise.
38198         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38199         constants.
38200
38201         faccessat, symlinkat: continue cleanup of previous patch
38202         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38203         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38204         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38205         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38206         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38207         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38208         set.
38209
38210 2009-09-06  Bruno Haible  <bruno@clisp.org>
38211
38212         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38213         (fstatat): Declare if GNULIB_FSTATAT is set.
38214         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38215         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38216         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38217         * modules/fcntl-h (Files): Remove m4/openat.m4.
38218         * modules/sys_stat (Files): Remove m4/openat.m4.
38219         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38220         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38221         * modules/unistd (Files): Remove m4/openat.m4.
38222         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38223         GNULIB_OPENAT.
38224         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38225         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38226         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38227         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38228         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38229         gl_OPENAT_DEFAULTS.
38230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38231         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38232         Don't require gl_OPENAT_DEFAULTS.
38233         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38234         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38235         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38236         (gl_OPENAT_DEFAULTS): Remove macro.
38237
38238 2009-09-06  Bruno Haible  <bruno@clisp.org>
38239
38240         * modules/openat (configure.ac): Remove unneeded witness.
38241
38242 2009-09-06  Bruno Haible  <bruno@clisp.org>
38243
38244         Set errno to ENOSYS when a function is entirely unsupported.
38245         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38246         EOPNOTSUPP.
38247         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38248         * modules/chown (Depends-on): Remove errno.
38249
38250 2009-09-06  Bruno Haible  <bruno@clisp.org>
38251
38252         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38253
38254 2009-09-06  Bruno Haible  <bruno@clisp.org>
38255
38256         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38257
38258 2009-09-06  Ben Pfaff  <blp@gnu.org>
38259             Bruno Haible  <bruno@clisp.org>
38260
38261         Work around a glibc bug in strtok_r.
38262         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38263         Undefine if UNDEFINE_STRTOK_R is set.
38264         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38266         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38267         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38268         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38269         UNDEFINE_STRTOK_R.
38270         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38271
38272 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38273
38274         exclude: minor fix
38275         * lib/exclude.c: Include wctype.h
38276
38277 2009-09-06  Akim Demaille  <demaille@gostai.com>
38278
38279         bootstrap: improve error message
38280         * build-aux/bootstrap (find_tool): Upon failure, report the list
38281         of candidates.
38282         Honor the initial value of the envvar.
38283
38284 2009-09-05  Eric Blake  <ebb9@byu.net>
38285
38286         symlinkat: new module
38287         * modules/symlinkat: New file.
38288         * lib/symlinkat.c: Likewise.
38289         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38291         * modules/unistd (Makefile.am): Use them.
38292         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38293         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38294         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38295         * MODULES.html.sh (File system functions): Mention module.
38296         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38297         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38298         * modules/symlinkat-tests: New test.
38299         * tests/test-symlinkat.c: Likewise.
38300
38301         test-openat-safer: add more checks
38302         * tests/test-openat-safer.c (main): Check more code paths.
38303
38304 2009-09-05  Jim Meyering  <meyering@redhat.com>
38305
38306         syntax-check: detect unnecessary inclusion of openat.h
38307         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38308
38309 2009-09-05  Bruno Haible  <bruno@clisp.org>
38310
38311         Support towlower, towupper.
38312         * doc/posix-functions/towlower.texi: Mention module wctype.
38313         * doc/posix-functions/towupper.texi: Likewise.
38314         * lib/wctype.in.h (towlower, towupper): New functions.
38315         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38316         (ASSERT): New macro.
38317         (e): New variable.
38318         (main): Test also towlower, towupper. Test WEOF argument.
38319         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38320
38321 2009-09-05  Bruno Haible  <bruno@clisp.org>
38322
38323         Fix conversion behaviour when the input is invalid.
38324         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38325         mark occurring in first pass of indirect conversion.
38326         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38327         input.
38328         Found by clang's static analyzer.
38329
38330 2009-09-05  Bruno Haible  <bruno@clisp.org>
38331
38332         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38333         where direct conversion is possible.
38334
38335 2009-09-04  Eric Blake  <ebb9@byu.net>
38336
38337         openat: fail with ENOENT on empty name
38338         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38339         buffer.
38340
38341         link-follow: fix logic bug in prior patch
38342         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38343         reversed sense of yes and no in prior patch.  Avoid confusing
38344         compilation failure with desired semantics.
38345
38346         link-follow: accomodate mingw and cross-compilation
38347         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38348         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38349         cross-compilation results to -1, to make linkat easier to
38350         implement when cross-compiling.  Trivially support mingw.
38351         * modules/link-follow (configure.ac): Call new name.
38352         * NEWS: Mention this.
38353
38354 2009-09-03  Eric Blake  <ebb9@byu.net>
38355
38356         faccessat: compile replacement
38357         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38358         needed.
38359
38360         fts: fix compilation error
38361         * lib/fts.c (includes): Re-add "openat.h", for
38362         openat_needs_fchdir.
38363
38364         faccessat: new module
38365         * modules/faccessat: New file.
38366         * lib/faccessat.c: Likewise.
38367         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38369         * modules/unistd (Makefile.am): Use it.
38370         * lib/unistd.in.h (faccessat): Declare it.
38371         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38372         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38373         * MODULES.html.sh (File system functions): Mention it.
38374         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38375         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38376
38377         euidaccess: prefer POSIX over non-standard implementation
38378         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38379         * lib/euidaccess.c (euidaccess): Use it if available.
38380
38381         openat: make template easier to use
38382         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38383         AT_FUNC_F2 to be undefined.
38384         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38385         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38386         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38387         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38388         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38389         Likewise.
38390         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38391         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38392         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38393         Likewise.
38394
38395         openat: declare in POSIX headers
38396         * NEWS: Mention this.
38397         * modules/openat (configure.ac): Declare witnesses.
38398         (Depends-on): Add fcntl-h, sys_stat, unistd.
38399         (Include): Mention correct headers.
38400         * modules/fcntl-h (Depends-on): Add link-warning.
38401         (Files): Add openat.m4.
38402         (Makefile.am): Substitute witnesses.
38403         * modules/sys_stat (Files, Makefile.am): Likewise.
38404         * modules/unistd (Files, Makefile.am): Likewise.
38405         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38406         (gl_OPENAT_DEFAULTS): New macro.
38407         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38409         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38410         (SYS_STAT_H): Remove unused variable.
38411         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38412         * lib/fcntl--.h (includes): Remove unneeded header.
38413         * lib/openat-safer.c (includes): Likewise.
38414         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38415         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38416         appropriate headers.
38417         (__OPENAT_PREFIX): Delete.
38418         * lib/fcntl.in.h (openat): Provide declaration.
38419         (AT_FDCWD): Fix Solaris bug.
38420         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38421         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38422         * lib/fchmodat.c (includes):  Adjust to find declaration.
38423         * lib/fchownat.c (includes): Likewise.
38424         * lib/mkdirat.c (includes): Likewise.
38425         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38426         still visible.
38427
38428 2009-09-02  Eric Blake  <ebb9@byu.net>
38429
38430         errno: use consistently
38431         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38432         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38433         * lib/canonicalize.c (ELOOP): Likewise.
38434         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38435         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38436         * lib/lchown.c (EOPNOTSUPP): Likewise.
38437         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38438         * lib/savewd.c (ESTALE): Likewise.
38439         * lib/settime.c (ENOSYS): Likewise.
38440         * lib/utimens.c (ENOSYS): Likewise.
38441         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38442         * lib/chdir-safer.c (ELOOP): Likewise.
38443         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38444         * modules/c-stack (Depends-on): Add errno.
38445         * modules/canonicalize (Depends-on): Likewise.
38446         * modules/chdir-safer (Depends-on): Likewise.
38447         * modules/fdopendir (Depends-on): Likewise.
38448         * modules/inet_ntop (Depends-on): Likewise.
38449         * modules/inet_pton (Depends-on): Likewise.
38450         * modules/lchown (Depends-on): Likewise.
38451         * modules/openat (Depends-on): Likewise.
38452         * modules/savewd (Depends-on): Likewise.
38453         * modules/settime (Depends-on): Likewise.
38454         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38455
38456         fts: avoid leaking fds
38457         * modules/fts (Depends-on): Add cloexec.
38458         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38459         flag.
38460
38461         fts: make directory fds more robust
38462         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38463         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38464
38465         backupfile, chdir-long, fts, savedir: make safer
38466         * lib/backupfile.c (includes): Use "dirent--.h", since
38467         numbered_backup can write to stderr during readdir.
38468         * lib/savedir.c (includes): Likewise.
38469         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38470         emulation can write to stderr on failure.
38471         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38472         * lib/getcwd.c: Document why opendir_safer is unused.
38473         * lib/glob.c: Likewise.
38474         * lib/scandir.c: Likewise.
38475         * lib/openat-proc.c: Likewise, for open_safer.
38476         * modules/backupfile (Depends-on): Add dirent-safer.
38477         * modules/savedir (Depends-on): Likewise.
38478         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38479         * modules/chdir-long (Depends-on): Add openat-safer.
38480
38481         openat-safer: new module
38482         * modules/openat-safer: New file.
38483         * lib/openat-safer.c: Likewise.
38484         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38485         * lib/fcntl-safer.h (openat_safer): Declare.
38486         * lib/fcntl--.h (openat): Override.
38487         * MODULES.html.sh (File descriptor based I/O): Mention it.
38488         * lib/openat.h: Add double-inclusion guards.
38489         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38490         "fcntl--.h", so we can implement openat.
38491         * modules/openat-safer-tests: New test.
38492         * tests/test-openat-safer.c: New file.
38493
38494         dirent-safer: new module
38495         * modules/dirent-safer: New file.
38496         * lib/dirent--.h: Likewise.
38497         * lib/dirent-safer.h: Likewise.
38498         * lib/opendir-safer.c: Likewise.
38499         * m4/dirent-safer.m4: Likewise.
38500         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38501         * modules/dirent-safer-tests: New test.
38502         * tests/test-dirent-safer.c: New file.
38503         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38504
38505         fdopendir: optimize on mingw
38506         * lib/unistd.in.h (_gl_directory_name): New prototype.
38507         * lib/fchdir.c (_gl_directory_name): Implement it.
38508         (fchdir): Use it to simplify implementation.
38509         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38510         fchdir, when available, to avoid calling [f]chdir().
38511
38512         fdopendir: split into its own module
38513         * lib/openat.c (fdopendir): Move...
38514         * lib/fdopendir.c: ...into new file.
38515         * modules/fdopendir: New module.
38516         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38517         * modules/openat (Depends-on): Add fdopendir.
38518         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38519         fdopendir here.
38520         * modules/savedir (Depends-on): Only need fdopendir, not full
38521         openat.
38522         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38523         * lib/openat.h (fdopendir): Drop prototype.
38524         * lib/dirent.in.h (fdopendir): Provide prototype.
38525         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38526         * modules/dirent (Makefile.am): Substitute them.
38527         * MODULES.html.sh (File system functions): Mention it.
38528         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38529         * modules/fdopendir-tests: New file.
38530         * tests/test-fdopendir.c: Likewise.
38531
38532         fchdir: use more consistent macro convention
38533         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38534         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38535         REPLACE_FCHDIR, rather than relying on config.h macros.
38536         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38537         inside a single make-time REPLACE_FCHDIR block, rather than using
38538         the config.h FCHDIR_REPLACEMENT.
38539         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38540         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38541         Manage fstat replacement.
38542         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38543         REPLACE_FCHDIR.
38544         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38545         (Makefile.am): Substitute REPLACE_FCHDIR.
38546         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38547         FCHDIR_REPLACEMENT.
38548         * lib/dup-safer.c (dup_safer): Likewise.
38549         * lib/dup2.c (rpl_dup2): Likewise.
38550         * lib/dup3.c (rpl_dup3): Likewise.
38551         * lib/open.c (rpl_open): Likewise.
38552
38553         fchdir: simplify error handling, and support dup3
38554         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38555         stdbool, malloc-posix, realloc-posix.
38556         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38557         (ensure_dirs_slot): Return false on allocation failure.
38558         (rpl_dup2): Delete.
38559         (_gl_register_dup): New function.
38560         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38561         (_gl_register_fd): Close fd on allocation failure.
38562         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38563         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38564         prototype.
38565         (rpl_dup2_fchdir): Delete prototype.
38566         * lib/open.c (open): Update caller.
38567         * lib/dup2.c (dup2): Track fchdir metadata.
38568         * lib/dup3.c (dup3): Likewise.
38569         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38571
38572 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38573
38574         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38575         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38576         don't pass arguments to AC_OUTPUT.
38577
38578 2009-09-02  Bruno Haible  <bruno@clisp.org>
38579
38580         * modules/mkdtemp (License): Relicense under LGPLv2+.
38581         Reported by Paolo Bonzini.
38582
38583 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38584
38585         Replace uses of obsolete autoconf macros in Jim's modules.
38586         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38587         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38588         can evoke a warning from autoconf when run with -Wobsolete
38589         enabled.  They were declared obsolete for good reasons (see
38590         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38591         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38592         should not continue using the deprecated macros.
38593         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38594         obsolete Autoconf macros with modern counterparts.
38595         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38596         * m4/dos.m4 (gl_AC_DOS): Likewise.
38597         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38598         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38599         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38600         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38601         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38602         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38603         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38604         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38605         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38606         Likewise.
38607         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38608         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38609         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38610         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38611         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38612         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38613
38614 2009-09-01  Eric Blake  <ebb9@byu.net>
38615
38616         fchdir: fix off-by-one bug in previous patch
38617         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38618         (_gl_unregister_fd): Delete useless if.
38619
38620 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38621
38622         maint.mk: sort the list of syntax-check rules
38623         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38624         easier to get a sense of progress when the rules are run sequentially
38625         and take a long time.
38626
38627 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38628
38629         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38630         * modules/netinet_in: Likewise.
38631         * modules/sys_file: Likewise.
38632         * modules/sys_ioctl: Likewise.
38633         * modules/sys_select: Likewise.
38634         * modules/sys_socket: Likewise.
38635         * modules/sys_stat: Likewise.
38636         * modules/sys_time: Likewise.
38637         * modules/sys_times: Likewise.
38638         * modules/sys_utsname: Likewise.
38639         * modules/sys_wait: Likewise.
38640
38641 2009-09-01  Jim Meyering  <meyering@redhat.com>
38642
38643         fts: help ensure that return values are not ignored
38644         * lib/fts_.h (__GNUC_PREREQ): Define.
38645         (__attribute_warn_unused_result__): Define.
38646         (fts_children, fts_close, fts_open, fts_read): Declare with
38647         __attribute_warn_unused_result__.
38648
38649         fts: fts_close now fails also when closing a dir file descriptor fails
38650         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38651         and propagate to caller, along with errno.
38652
38653         announce-gen: correct formatting in --help output
38654         * build-aux/announce-gen (usage): Move the one-line description in
38655         --help output "up", to where it belongs, just after Usage:.
38656
38657 2009-08-31  Eric Blake  <ebb9@byu.net>
38658
38659         fchdir: port to mingw
38660         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38661         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38662         opened, then use a substitute.
38663         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38664         replacement.
38665         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38666         (_gl_register_fd): No need to check stat if open already filters
38667         all directories.
38668         (fchdir): Fix error condition to match POSIX.
38669         * modules/fchdir (Depends-on): Add sys_stat.
38670         * doc/posix-functions/open.texi (open): Document the limitation.
38671         * modules/fchdir-tests: New file.
38672         * tests/test-fchdir.c: Likewise.
38673
38674         canonicalize: allow cross-testing from cygwin to mingw
38675         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38676         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38677         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38678         Likewise.
38679         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38680         target does not support symlinks.
38681         * tests/test-canonicalize-lgpl.sh: Likewise.
38682
38683         chown: avoid compilation warning on mingw
38684         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38685         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38686         mingw.
38687         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38688         * modules/chown (Depends-on): Add errno.
38689
38690 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38691
38692         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38693         command.
38694
38695 2009-08-31  Jim Meyering  <meyering@redhat.com>
38696
38697         canonicalize: remove useless initialization
38698         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38699         initialization of local, "end".
38700
38701 2009-08-30  Bruno Haible  <bruno@clisp.org>
38702
38703         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38704         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38705         ENOSYS.
38706
38707 2009-08-30  Bruno Haible  <bruno@clisp.org>
38708
38709         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38710         /usr/xpg4/bin/tr when it exists.
38711         * tests/test-pipe-filter-gi1.sh: Likewise.
38712
38713 2009-08-30  Bruno Haible  <bruno@clisp.org>
38714
38715         Work around deficient /usr/bin/id program on Solaris.
38716         * tests/test-file-has-acl.sh (ID): New variable.
38717         * tests/test-set-mode-acl.sh (ID): Likewise.
38718         * tests/test-copy-acl.sh (ID): Likewise.
38719         * tests/test-copy-file.sh (ID): Likewise.
38720
38721 2009-08-30  Bruno Haible  <bruno@clisp.org>
38722
38723         New module 'xstriconveh'.
38724         * lib/xstriconveh.h: New file.
38725         * lib/xstriconveh.c: New file.
38726         * modules/xstriconveh: New file.
38727
38728 2009-08-30  Bruno Haible  <bruno@clisp.org>
38729
38730         Make it easier to use mem_cd_iconveh.
38731         * lib/striconveh.h (iconveh_t): New type.
38732         (iconveh_open, iconveh_close): New declarations.
38733         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38734         with a single 'const iconveh_t *' argument.
38735         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38736         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38737         with a single 'const iconveh_t *' argument.
38738         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38739         * tests/test-striconveh.c (main): Update.
38740         * NEWS: Mention the change.
38741
38742 2009-08-30  Bruno Haible  <bruno@clisp.org>
38743
38744         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38745         problem.
38746
38747 2009-08-30  Bruno Haible  <bruno@clisp.org>
38748
38749         Work around iconv_open problem on Solaris.
38750         * lib/iconv_open-solaris.gperf: New file.
38751         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38752         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38753         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38754         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38755         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38756         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38757
38758 2009-08-29  Jim Meyering  <meyering@redhat.com>
38759
38760         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38761         * top/maint.mk (cvs-check): Remove target; it was just an alias
38762         to the better-named vc-diff-check.
38763         (maintainer-distcheck): Remove rule.  It was used only from
38764         the (alpha/beta/major) target, and all of its commands but one
38765         were coreutils-specific.
38766         (vc-dist): Remove rule.
38767         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38768         Run vc-diff-check, not vc-dist.
38769         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38770
38771 2009-08-27  Bruno Haible  <bruno@clisp.org>
38772
38773         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38774         of 0.
38775
38776 2009-08-27  Bruno Haible  <bruno@clisp.org>
38777
38778         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38779         compilers.
38780         * doc/func.texi: Document the SunPRO C bug.
38781
38782 2009-08-27  Bruno Haible  <bruno@clisp.org>
38783
38784         Fix link error on Solaris.
38785         * tests/test-parse-duration.c (xstrdup): Remove function.
38786
38787 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38788
38789         ignore-value: handle pointer types, too
38790         * lib/ignore-value.h (__attribute__): Remove definition.
38791         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38792         of a more concise and more-often effective "(void) i" statement.
38793         (ignore_ptr): New function to suppress warnings from functions that
38794         return pointers, and to make it explicit that one function doesn't
38795         handle all cases.
38796
38797 2009-08-25  Bruno Haible  <bruno@clisp.org>
38798
38799         dup2: work around a Linux bug.
38800         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38801         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38802         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38803         Reported by Simon Josefsson.
38804
38805 2009-08-25  Jim Meyering  <meyering@redhat.com>
38806
38807         libguestfs uses gnulib
38808         * users.txt: Add libguestfs.
38809
38810 2009-08-24  Eric Blake  <ebb9@byu.net>
38811
38812         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38813         * lib/pipe2.c (includes): Add binary-io.h.
38814         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38815
38816 2009-08-24  Bruno Haible  <bruno@clisp.org>
38817
38818         Tolerate declared but missing accept4 syscall.
38819         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38820         available.
38821         * lib/sys_socket.in.h (accept4): If the function is already present,
38822         override it.
38823         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38824         * modules/accept4 (Makefile.am): Compile accept4.c always.
38825         Reported by Paolo Bonzini and Eric Blake.
38826
38827 2009-08-23  Bruno Haible  <bruno@clisp.org>
38828
38829         New module 'accept4'.
38830         * lib/sys_socket.in.h (accept4): New declaration.
38831         * lib/accept4.c: New file.
38832         * m4/accept4.m4: New file.
38833         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38834         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38835         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38836         HAVE_ACCEPT4.
38837         * modules/accept4: New file.
38838         * doc/glibc-functions/accept4.texi: Mention the new module.
38839
38840 2009-08-24  Jim Meyering  <meyering@redhat.com>
38841
38842         progname: also set global program_invocation_name, when possible
38843         Before this change, a libtool-enabled program that calls glibc's
38844         error function would report the program name as
38845         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38846         * modules/progname (configure.ac): Check for a declaration of
38847         program_invocation_name.
38848         * lib/progname.c:  Include <errno.h>.
38849         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38850         Set program_invocation_name.
38851
38852 2009-08-23  Bruno Haible  <bruno@clisp.org>
38853
38854         * lib/dup3.c: Include <string.h>.
38855
38856 2009-08-23  Bruno Haible  <bruno@clisp.org>
38857
38858         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38859         * lib/pipe2.c (pipe2): Likewise.
38860         Suggested by Eric Blake.
38861
38862 2009-08-23  Bruno Haible  <bruno@clisp.org>
38863
38864         Tolerate declared but missing dup3 syscall.
38865         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38866         * lib/unistd.in.h (dup3): If the function is already present,
38867         override it.
38868         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38869         * modules/dup3 (Makefile.am): Compile dup3.c always.
38870         Reported by Paolo Bonzini.
38871
38872 2009-08-23  Bruno Haible  <bruno@clisp.org>
38873
38874         Tolerate declared but missing pipe2 syscall.
38875         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38876         available.
38877         * lib/unistd.in.h (pipe2): If the function is already present,
38878         override it.
38879         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38880         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38881         Reported by Paolo Bonzini.
38882
38883 2009-08-23  Bruno Haible  <bruno@clisp.org>
38884
38885         * lib/pipe2.c (pipe2): Move #ifs inside function.
38886
38887 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38888
38889         quotearg: document limitations of quote_these_too
38890         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38891         those limitations are created.
38892         * lib/quotearg.h (set_char_quoting): Document that digits and
38893         letters that are special after backslash are not permitted.
38894         (quotearg_char): Cross-reference set_char_quoting documentation.
38895
38896 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38897
38898         quotearg: implement custom_quoting_style
38899         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38900         right_quote fields.
38901         (set_custom_quoting): New public function.
38902         (quotearg_buffer_restyled): Add left_quote and right_quote
38903         arguments, handle them very much like locale quoting, and update
38904         all uses.
38905         (quotearg_n_custom): New public function.
38906         (quotearg_n_custom_mem): New public function.
38907         (quotearg_custom): New public function.
38908         (quotearg_custom_mem): New public function.
38909         * lib/quotearg.h: Prototype and document new public functions.
38910         (enum quoting_style): For escape_quoting_style and
38911         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38912         ignored even though they're otherwise like c_quoting_style.
38913         Add custom_quoting_style member and document with comparison to
38914         clocale_quoting_style.
38915         * tests/test-quotearg.c (custom_quotes): New array.
38916         (custom_results): New array.
38917         (main): Extend to test custom quoting.
38918
38919 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38920
38921         quotearg: fix right quote escaping when it's in quote_these_too
38922         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38923         quote, be sure to prepend only one backslash.
38924         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38925         (main): Test it.
38926
38927 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38928
38929         quotearg-tests: test escaping of embedded locale quotes
38930         * tests/test-quotearg.c (struct result_strings): Add member for
38931         new input.
38932         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38933         (inputs): Add new input.
38934         (results_g): Add expected results.
38935         (flag_results): Likewise.
38936         (locale_results): Likewise.
38937         (compare_strings): Check those.
38938
38939 2009-08-23  Bruno Haible  <bruno@clisp.org>
38940
38941         Tests for module 'dup3'.
38942         * modules/dup3-tests: New file.
38943         * tests/test-dup3.c: New file.
38944
38945         New module 'dup3'.
38946         * lib/unistd.in.h (dup3): New declaration.
38947         * lib/dup3.c: New file.
38948         * m4/dup3.m4: New file.
38949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38950         HAVE_DUP3.
38951         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38952         * modules/dup3: New file.
38953         * doc/glibc-functions/dup3.texi: Mention the new module.
38954
38955 2009-08-23  Bruno Haible  <bruno@clisp.org>
38956
38957         Tweak the dup2 test.
38958         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38959         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38960         the test file is still empty. Fix argument order of lseek.
38961
38962 2009-08-23  Bruno Haible  <bruno@clisp.org>
38963
38964         Avoid test link errors when the modules getopt-gnu, gettext are used.
38965         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38966         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38967
38968 2009-08-23  Bruno Haible  <bruno@clisp.org>
38969
38970         Fix getdtablesize() on mingw.
38971         * lib/getdtablesize.c (getdtablesize): Implement differently.
38972         * lib/unistd.in.h (getdtablesize): Improve comment.
38973
38974 2009-08-23  Bruno Haible  <bruno@clisp.org>
38975
38976         New module 'mkostemp'.
38977         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38978         * lib/stdlib.in.h (mksotemp): New declaration.
38979         * lib/mkostemp.c: New file, from glibc with modifications.
38980         * lib/tempname.h (GT_FILE): Remove outdated comment.
38981         (gen_tempname): Add flags argument.
38982         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38983         (__GT_FILE): Map to 1.
38984         (small_open, large_open): Remove macros.
38985         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38986         * lib/mkstemp.c (mkstemp): Update.
38987         * lib/mkdtemp.c (mkdtemp): Likewise.
38988         * m4/mkostemp.m4: New file.
38989         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38990         HAVE_MKOSTEMP.
38991         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38992         HAVE_MKOSTEMP.
38993         * modules/mkostemp: New file, based on modules/mkstemp.
38994         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38995         * NEWS: Mention the change.
38996
38997 2009-08-23  Bruno Haible  <bruno@clisp.org>
38998
38999         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
39000         Reported by Eric Blake.
39001
39002 2009-08-23  Bruno Haible  <bruno@clisp.org>
39003
39004         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
39005         Reported by Eric Blake.
39006
39007 2009-08-23  Bruno Haible  <bruno@clisp.org>
39008
39009         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
39010         * modules/pipe2 (Depends-on): Likewise.
39011
39012 2009-08-23  Eric Blake  <ebb9@byu.net>
39013
39014         fcntl-h: add O_TTY_INIT support
39015         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
39016         * tests/test-fcntl-h.c (o): Test it.
39017         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39018
39019         fcntl-h: rename from fcntl, in preparation for fcntl(2)
39020         * modules/fcntl: Move <fcntl.h> header replacement...
39021         * modules/fcntl-h: ...to new name, so as not to collide with
39022         like-named function.
39023         * tests/test-fcntl.c: Rename...
39024         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
39025         * modules/fcntl-tests: Rename...
39026         * modules/fcntl-h-tests: ...to this.  Update test file name.
39027         * modules/chdir-long (Depends-on): Update clients.
39028         * modules/chdir-safer (Depends-on): Likewise.
39029         * modules/fcntl-safer (Depends-on): Likewise.
39030         * modules/fts (Depends-on): Likewise.
39031         * modules/mkancesdirs (Depends-on): Likewise.
39032         * modules/mkdir-p (Depends-on): Likewise.
39033         * modules/open (Depends-on): Likewise.
39034         * modules/savewd (Depends-on): Likewise.
39035         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
39036         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39037
39038 2009-08-22  Bruno Haible  <bruno@clisp.org>
39039
39040         * modules/binary-io (License): Relicense under LGPL.
39041         * modules/pipe2 (License): Likewise.
39042
39043 2009-08-22  Bruno Haible  <bruno@clisp.org>
39044
39045         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
39046         return value.
39047         * lib/pipe-filter-gi.c (filter_init): Likewise.
39048         Reported by Eric Blake.
39049
39050 2009-08-22  Bruno Haible  <bruno@clisp.org>
39051
39052         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
39053         * modules/pipe (Depends-on): Add pipe2.
39054
39055 2009-08-22  Bruno Haible  <bruno@clisp.org>
39056
39057         Tests for module 'pipe2'.
39058         * modules/pipe2-tests: New file.
39059         * tests/test-pipe2.c: New file.
39060
39061         New module 'pipe2'.
39062         * lib/unistd.in.h (pipe2): New declaration.
39063         * lib/pipe2.c: New file.
39064         * m4/pipe2.m4: New file.
39065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
39066         HAVE_PIPE2.
39067         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
39068         * modules/pipe2: New file.
39069         * doc/glibc-functions/pipe2.texi: Mention the new module.
39070
39071 2009-08-22  Bruno Haible  <bruno@clisp.org>
39072
39073         Reference some new glibc functions.
39074         * doc/glibc-functions/accept4.texi: New file.
39075         * doc/glibc-functions/dup3.texi: New file.
39076         * doc/glibc-functions/mkostemp.texi: New file.
39077         * doc/glibc-functions/pipe2.texi: New file.
39078         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
39079         (Glibc sys/socket.h): Refer to accept4.
39080         (Glibc unistd.h): Refer to dup3, pipe2.
39081         Reported by Eric Blake.
39082
39083 2009-08-22  Jim Meyering  <meyering@redhat.com>
39084             Bruno Haible  <bruno@clisp.org>
39085
39086         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
39087         This makes it so packages using automake-1.11's silent-rules option
39088         can print e.g., a single "GEN    configmake.h" line, rather than
39089         the 30+ statements that perform the job.  If you want to see the
39090         actual commands, you can still run "make V=1".
39091         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
39092         so that make output is abbreviated when those variables are defined
39093         appropriately.
39094         * modules/argz: Likewise.
39095         * modules/arpa_inet: Likewise.
39096         * modules/byteswap: Likewise.
39097         * modules/configmake: Likewise.
39098         * modules/dirent: Likewise.
39099         * modules/errno: Likewise.
39100         * modules/fcntl: Likewise.
39101         * modules/float: Likewise.
39102         * modules/fnmatch: Likewise.
39103         * modules/getopt-posix: Likewise.
39104         * modules/glob: Likewise.
39105         * modules/iconv_open: Likewise.
39106         * modules/inttypes: Likewise.
39107         * modules/localcharset: Likewise.
39108         * modules/locale: Likewise.
39109         * modules/math: Likewise.
39110         * modules/netdb: Likewise.
39111         * modules/netinet_in: Likewise.
39112         * modules/poll: Likewise.
39113         * modules/posix_spawnp-tests: Likewise.
39114         * modules/sched: Likewise.
39115         * modules/search: Likewise.
39116         * modules/selinux-h: Likewise.
39117         * modules/signal: Likewise.
39118         * modules/spawn: Likewise.
39119         * modules/stdarg: Likewise.
39120         * modules/stdbool: Likewise.
39121         * modules/stddef: Likewise.
39122         * modules/stdint: Likewise.
39123         * modules/stdio: Likewise.
39124         * modules/stdlib: Likewise.
39125         * modules/string: Likewise.
39126         * modules/strings: Likewise.
39127         * modules/sys_file: Likewise.
39128         * modules/sys_ioctl: Likewise.
39129         * modules/sys_select: Likewise.
39130         * modules/sys_socket: Likewise.
39131         * modules/sys_stat: Likewise.
39132         * modules/sys_time: Likewise.
39133         * modules/sys_times: Likewise.
39134         * modules/sys_utsname: Likewise.
39135         * modules/sys_wait: Likewise.
39136         * modules/sysexits: Likewise.
39137         * modules/time: Likewise.
39138         * modules/unistd: Likewise.
39139         * modules/wchar: Likewise.
39140         * modules/wctype: Likewise.
39141
39142 2009-08-22  Jim Meyering  <meyering@redhat.com>
39143
39144         announce-gen: detect write failure
39145         * build-aux/announce-gen: Add Coda at end.
39146         Remove equivalent-but-more-verbose block at top.
39147
39148 2009-08-19  Akim Demaille  <demaille@gostai.com>
39149
39150         bootstrap: --help to stdout.
39151         * bootstrap (usage): Don't send --help to stderr.
39152         Use a here doc instead of a long string.
39153
39154 2009-08-21  Eric Blake  <ebb9@byu.net>
39155
39156         test-popen-safer: split from test-popen
39157         * tests/test-popen.c (main): Move...
39158         * tests/test-popen.h: ...into new file.
39159         * tests/test-popen-safer2.c: New file.
39160         * modules/popen-tests (Files): Add test-popen.h.
39161         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39162         Suggested by Bruno Haible.
39163
39164         test-fcntl-safer: split from test-open
39165         * tests/test-open.c (main): Move...
39166         * tests/test-open.h: ...into new file.
39167         * tests/test-fcntl-safer.c: New file.
39168         * modules/open-tests (Files): Add test-open.h.
39169         * modules/fcntl-safer-tests: New file.
39170         Suggested by Bruno Haible.
39171
39172         test-fopen-safer: split from test-fopen
39173         * tests/test-fopen.c (main): Move...
39174         * tests/test-fopen.h: ...into new file.
39175         * tests/test-fopen-safer.c: New file.
39176         * modules/fopen-tests (Files): Add test-fopen.h.
39177         * modules/fopen-safer-tests: New file.
39178         Suggested by Bruno Haible.
39179
39180 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39181
39182         popen-safer: test O_CLOEXEC at run-time.
39183         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39184
39185 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39186
39187         fcntl: move more flags to the header
39188         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39189         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39190         * lib/fcntl.in.h: Do both things here.
39191
39192 2009-08-21  Jim Meyering  <meyering@redhat.com>
39193
39194         consistently remove $@-t before redirecting to it
39195         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39196         * modules/alloca-opt: Likewise.
39197         * modules/byteswap: Likewise.
39198         * modules/fnmatch: Likewise.
39199         * modules/getopt-posix: Likewise.
39200         * modules/glob: Likewise.
39201         * modules/poll: Likewise.
39202         * modules/posix_spawnp-tests: Likewise.
39203         * modules/sys_socket: Likewise.
39204         * modules/sysexits: Likewise.
39205
39206 2009-08-21  Eric Blake  <ebb9@byu.net>
39207
39208         popen: simplify access to original popen
39209         * lib/popen.c (rpl_popen): No need to worry about popen being a
39210         macro.
39211         Reported by Bruno Haible.
39212
39213 2009-08-20  Eric Blake  <ebb9@byu.net>
39214
39215         build: avoid some compiler warnings
39216         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39217         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39218         type.
39219         (new_exclude_segment, excluded_file_pattern_p)
39220         (excluded_file_name_p): Reduce scope.
39221         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39222         old-style declaration.
39223
39224 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39225
39226         * tests/test-exclude1.sh: Handle Windows EOL.
39227         * tests/test-exclude2.sh: Likewise.
39228         * tests/test-exclude3.sh: Likewise.
39229         * tests/test-exclude4.sh: Likewise.
39230         * tests/test-exclude5.sh: Likewise.
39231         * tests/test-exclude6.sh: Likewise.
39232         * tests/test-exclude7.sh: Likewise.
39233
39234 2009-08-19  Akim Demaille  <demaille@gostai.com>
39235
39236         bootstrap: find sha1sum when named gsha1sum.
39237         * bootstrap (find_tool): New.
39238         ($SHA1SUM): New.
39239         Use it.
39240
39241 2009-08-20  Jim Meyering  <meyering@redhat.com>
39242
39243         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39244         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39245         expression that converts "." in a file name to "\." in the resulting
39246         regexp.  Start with a dummy statement, so that prior shell variable
39247         definitions are expanded portably.  Reported by Simon Josefsson.
39248
39249 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39250
39251         Fix polling for writeability of a screen buffer.
39252         * lib/poll.c: Distinguish input and screen buffers for the
39253         Win32 implementation.
39254         * lib/select.c: Likewise.
39255
39256 2009-08-19  Eric Blake  <ebb9@byu.net>
39257
39258         popen-safer: prevent popen from clobbering std descriptors
39259         * modules/popen-safer: New file.
39260         * lib/popen-safer.c: Likewise.
39261         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39262         * lib/stdio--.h (popen): Provide override.
39263         * lib/stdio-safer.h (popen_safer): Provide declaration.
39264         * tests/test-popen.c (includes): Partially test this.
39265         * modules/popen-safer-tests: New file, for more tests.
39266         * tests/test-popen-safer.c: Likewise.
39267         * MODULES.html.sh (file stream based Input/Output): Mention it.
39268
39269         tests: test some of the *-safer modules
39270         * modules/fopen-safer (Depends-on): Add fopen.
39271         * modules/fcntl-safer (Depends-on): Add fcntl.
39272         * modules/stdlib-safer (Depends-on): Add stdlib.
39273         (configure.ac): Set indicator.
39274         * modules/unistd-safer (configure.ac): Likewise.
39275         * modules/tmpfile-safer (configure.ac): Likewise.
39276         (Depends-on): Add tmpfile.
39277         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39278         active.
39279         * tests/test-fopen.c (includes): Test safer versions when they are
39280         in use.
39281         * tests/test-open.c (includes): Likewise.
39282
39283         popen: fix cygwin 1.5 bug when stdin closed
39284         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39285         * modules/popen: New file.
39286         * modules/popen-tests: Likewise.
39287         * tests/test-popen.c: Likewise.
39288         * m4/popen.m4: Likewise.
39289         * lib/popen.c: Likewise.
39290         * lib/stdio.in.h (popen): New declaration.
39291         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39292         * modules/stdio (Makefile.am): Likewise.
39293         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39294
39295 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39296
39297         maint.mk: give full control over update-copyright exclusions
39298         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39299         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39300         (update-copyright): Don't force inclusion of top-level
39301         ChangeLog.  Don't force exclusion of all COPYING files, but make
39302         them the default exclusion instead.
39303
39304 2009-08-16  Bruno Haible  <bruno@clisp.org>
39305
39306         Fix test failures on Solaris 10.
39307         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39308         tests when Solaris iconv() is used.
39309         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39310         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39311         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39312         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39313         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39314
39315 2009-08-16  Bruno Haible  <bruno@clisp.org>
39316
39317         Fix test failures on Solaris 10.
39318         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39319         'tr' program and pass it as first argument.
39320         * tests/test-pipe-filter-gi1.sh: Likewise.
39321         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39322         program as first argument.
39323         * tests/test-pipe-filter-gi1.c (main): Likewise.
39324
39325 2009-08-16  Eric Blake  <ebb9@byu.net>
39326
39327         fpurge: fix previous commits
39328         * modules/fpurge (Makefile.am): Make replacement conditional,
39329         partially reverting 2007-04-29 change; missed in previous
39330         attempt.
39331         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39332         is missing.
39333
39334 2009-08-16  Bruno Haible  <bruno@clisp.org>
39335
39336         Clarify fpurge's effect on the file position.
39337         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39338         * tests/test-fpurge.c (main): Make a second pass for checking the file
39339         position.
39340
39341 2009-08-16  Bruno Haible  <bruno@clisp.org>
39342
39343         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39344         declaration of fpurge is missing.
39345         * tests/test-fpurge.c (main): Check that the file has not more contents
39346         than expected. Close the file before removing it.
39347
39348 2009-08-15  Eric Blake  <ebb9@byu.net>
39349
39350         fpurge: don't wrap working cygwin implementation
39351         * lib/fpurge.c (fpurge): Fix comment typo.
39352         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39353         1.7 to avoid replacement.
39354         * tests/test-fpurge.c (main): Enhance test.
39355
39356 2009-08-15  Eric Blake  <ebb9@byu.net>
39357         and Jim Meyering  <meyering@redhat.com>
39358
39359         test-update-copyright: skip if perl is insufficient
39360         * tests/test-update-copyright.sh: Failure to run maintainer tool
39361         should not cause testsuite failure on cygwin 1.5.
39362
39363 2009-08-14  Eric Blake  <ebb9@byu.net>
39364
39365         doc: mention more functions added in cygwin 1.7.0
39366         * doc/posix-headers/limits.texi (limits.h): Update for recent
39367         cygwin additions.
39368         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39369         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39370         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39371         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39372         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39373
39374 2009-08-14  Eric Blake  <ebb9@byu.net>
39375
39376         maint.mk: simplify update-copyright rule
39377         * top/maint.mk (update-copyright-local): Delete, and document how
39378         to do it in cfg.mk instead.
39379         (update-copyright-exclude-regexp): Delete, and document how to do
39380         it in .x-update-copyright instead.
39381         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39382         exclude ChangeLog.
39383
39384 2009-08-14  Bruno Haible  <bruno@clisp.org>
39385
39386         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39387
39388 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39389
39390         maint.mk: support update-copyright-env
39391         * top/maint.mk (update-copyright-env): Define place-holder.
39392         (update-copyright): Expand $(update-copyright-env) before
39393         invoking update-copyright.
39394
39395 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39396
39397         update-copyright: implement forced reformatting
39398         * build-aux/update-copyright: Implement and document
39399         UPDATE_COPYRIGHT_FORCE.
39400         * tests/test-update-copyright.sh: Test it.
39401
39402 2009-08-14  Eric Blake  <ebb9@byu.net>
39403         and Bruno Haible  <bruno@clisp.org>
39404
39405         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39406         * tests/test-locale.c: Revert previous patch related to NULL.
39407         * tests/test-stdio.c: Likewise.
39408         * tests/test-stdlib.c: Likewise.
39409         * tests/test-string.c: Likewise.
39410         * tests/test-unistd.c: Likewise.
39411         * modules/time-tests (Depends-on): Add verify.
39412         * modules/wchar-tests (Depends-on): Likewise.
39413         * tests/test-time.c: Test for NULL compliance.
39414         * tests/test-wchar.c: Likewise.
39415         * modules/locale (Depends-on): Add stddef.
39416         * modules/stdio (Depends-on): Likewise.
39417         * modules/stdlib (Depends-on): Likewise.
39418         * modules/string (Depends-on): Likewise.
39419         * modules/time (Depends-on): Likewise.
39420         * modules/unistd (Depends-on): Likewise.
39421         * modules/wchar (Depends-on): Likewise.
39422         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39423         * lib/stdlib.in.h (includes): Likewise.
39424         * lib/string.in.h (includes): Likewise.
39425         * lib/time.in.h (includes): Likewise.
39426         * lib/unistd.in.h (includes): Likewise.
39427         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39428         replaced.
39429         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39430         * m4/stddef_h.m4: New file.
39431         * modules/stddef: Likewise.
39432         * lib/stddef.in.h: Likewise.
39433         * modules/stddef-tests: Likewise.
39434         * tests/test-stddef.c: Likewise.
39435         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39436         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39437         * doc/posix-headers/locale.texi (locale.h): Likewise.
39438         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39439         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39440         * doc/posix-headers/string.texi (string.h): Likewise.
39441         * doc/posix-headers/time.texi (time.h): Likewise.
39442         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39443         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39444
39445 2009-08-14  Eric Blake  <ebb9@byu.net>
39446
39447         doc: improve git diff of texinfo files
39448         * .gitattributes: Add rule for *.texi files, with hint on how to
39449         use it.
39450         Copied from m4, and based on a report by Bruno Haible.
39451
39452 2009-08-14  Bruno Haible  <bruno@clisp.org>
39453
39454         Disable multithread support by default on Cygwin 1.5.x for real.
39455         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39456
39457 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39458
39459         update-copyright: much ado about intervals
39460         * build-aux/update-copyright: Implement and document
39461         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39462         of copyright year intervals.
39463         Also, document UPDATE_COPYRIGHT_YEAR.
39464         * tests/test-update-copyright.sh: Test it.
39465
39466         update-copyright: convert 2-digit to 4-digit years
39467         * build-aux/update-copyright: Implement and document.
39468         * tests/test-update-copyright.sh: Update.
39469
39470 2009-08-14  Jim Meyering  <meyering@redhat.com>
39471
39472         test-exclude: avoid coreutils "make check" failure
39473         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39474         just as in test-argmatch.c.
39475
39476 2009-08-13  Eric Blake  <ebb9@byu.net>
39477
39478         test-dup2: fix bad assumption
39479         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39480         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39481
39482         test-version-etc: fix CRLF portability issue
39483         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39484         recognize \r.
39485         * tests/test-argp-version-etc-1.sh: Likewise.
39486
39487         getopt: update client modules
39488         * modules/argp (Depends-on): Use getopt-gnu.
39489         * modules/git-merge-changelog (Depends-on): Likewise.
39490         * modules/long-options (Depends-on): Likewise.
39491         * modules/xstrtol (Depends-on): 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.  Don't fail on CRLF differences.  Rewrite to use
39497         multiple -e instead of multiple sed forks, suggested by Eric Blake
39498         <ebb9@byu.net>.
39499         * tests/test-argp-version-etc-1.sh: Likewise.
39500
39501 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39502
39503         * tests/test-version-etc.sh: Don't fail on different
39504         project/version.
39505
39506 2009-08-12  Bruno Haible  <bruno@clisp.org>
39507
39508         Tests for modules 'getopt-posix', 'getopt-gnu'.
39509         * modules/getopt-posix-tests: New file.
39510         * tests/test-getopt.c: New file.
39511         * tests/test-getopt.h: New file.
39512         * tests/test-getopt_long.h: New file.
39513
39514         New modules 'getopt-posix', 'getopt-gnu'.
39515         * modules/getopt-gnu: New file, renamed from modules/getopt.
39516         * modules/getopt-posix: New file.
39517         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39518         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39519         (gl_GETOPT): Remove macro.
39520         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39521         Disable the test against BSD systems that declare optreset. Test
39522         against mingw bug. Test against lack of support of optional arguments
39523         on many platforms.
39524         * doc/glibc-headers/getopt.texi: Update module name and list of
39525         relevant platforms.
39526         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39527         'getopt-gnu' and more portability problems.
39528         * NEWS: Mention the changes.
39529
39530 2009-08-12  Bruno Haible  <bruno@clisp.org>
39531
39532         Ensure that optarg etc. get declared by <unistd.h>.
39533         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39534         AC_USE_SYSTEM_EXTENSIONS.
39535         * modules/getopt (Depends-on): Add 'extensions'.
39536
39537 2009-08-12  Bruno Haible  <bruno@clisp.org>
39538
39539         Avoid test link errors.
39540         * modules/pipe-filter-ii-tests (Makefile.am): Define
39541         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39542         * modules/pipe-filter-gi-tests (Makefile.am): Define
39543         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39544         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39545
39546 2009-08-12  Bruno Haible  <bruno@clisp.org>
39547
39548         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39549         gl_GETOPT_SUBSTITUTE before.
39550         (gl_GETOPT): Use it.
39551         * m4/argp.m4 (gl_ARGP): Update.
39552         Reported by Sergey Poznyakoff.
39553
39554         * m4/getopt.m4: Reorder macros.
39555         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39556         (gl_GETOPT_SUBSTITUTE): Remove macro.
39557
39558 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39559
39560         Minor improvement in gitlog-to-changelog
39561
39562         * build-aux/gitlog-to-changelog: New option `--format' makes
39563         output format string configurable.
39564
39565 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39566
39567         Optimize exclude: use hash tables for non-wildcard patterns.
39568
39569         * lib/exclude.c: Include hash.h and mbuiter.h
39570         (struct exclude_pattern, exclude_segment): New data types.
39571         (struct exclude): Rewrite.
39572         (fnmatch_pattern_has_wildcards): New function.
39573         (new_exclude_segment, free_exclude_segment): New functions.
39574         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39575         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39576         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39577         * modules/exclude: Depend on hash and mbuiter.
39578
39579         * modules/exclude-tests: New file.
39580         * tests/test-exclude.c: New file.
39581         * tests/test-exclude1.sh: New file.
39582         * tests/test-exclude2.sh: New file.
39583         * tests/test-exclude3.sh: New file.
39584         * tests/test-exclude4.sh: New file.
39585         * tests/test-exclude5.sh: New file.
39586         * tests/test-exclude6.sh: New file.
39587         * tests/test-exclude7.sh: New file.
39588
39589 2009-08-12  Bruno Haible  <bruno@clisp.org>
39590
39591         Ensure that getopt() gets declared by <unistd.h>.
39592         * lib/unistd.in.h: Conditionally include getopt.h.
39593         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39594         Set GNULIB_UNISTD_H_GETOPT.
39595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39596         GNULIB_UNISTD_H_GETOPT.
39597         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39598
39599 2009-08-12  Bruno Haible  <bruno@clisp.org>
39600
39601         Clarify logic.
39602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39603         gl_replace_getopt instead of GETOPT_H.
39604
39605 2009-08-12  Bruno Haible  <bruno@clisp.org>
39606
39607         * m4/getopt.m4: Add comments.
39608
39609 2009-08-12  Bruno Haible  <bruno@clisp.org>
39610
39611         Disable multithread support by default on Cygwin 1.5.x.
39612         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39613         set gl_use_threads=no if not specified otherwise.
39614
39615 2009-08-11  Bruno Haible  <bruno@clisp.org>
39616
39617         Avoid compilation error on NetBSD 5.0.
39618         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39619         * tests/test-stdio.c: Likewise.
39620         * tests/test-stdlib.c: Likewise.
39621         * tests/test-string.c: Likewise.
39622         * tests/test-unistd.c: Likewise.
39623         Reported by Greg Troxel <gdt@ir.bbn.com>
39624         at <https://savannah.gnu.org/support/?106973>.
39625
39626 2009-08-11  Bruno Haible  <bruno@clisp.org>
39627
39628         * modules/dup2-tests (Depends-on): Remove close.
39629
39630         Undo 2009-07-19 commit.
39631         * modules/acl-tests (Depends-on): Remove close.
39632         * modules/binary-io-tests (Depends-on): Likewise.
39633         * modules/closein-tests (Depends-on): Likewise.
39634         * modules/flock-tests (Depends-on): Likewise.
39635         * modules/fsync-tests (Depends-on): Likewise.
39636         * modules/lseek-tests (Depends-on): Likewise.
39637         * modules/pipe-tests (Depends-on): Likewise.
39638         * modules/posix_spawn-tests (Depends-on): Likewise.
39639         * modules/posix_spawnp-tests (Depends-on): Likewise.
39640         * modules/stat-time-tests (Depends-on): Likewise.
39641         * modules/yesno-tests (Depends-on): Likewise.
39642
39643 2009-08-10  Bruno Haible  <bruno@clisp.org>
39644
39645         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39646
39647 2009-08-10  Bruno Haible  <bruno@clisp.org>
39648
39649         Fix a gcc warning.
39650         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39651
39652 2009-08-10  Bruno Haible  <bruno@clisp.org>
39653
39654         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39655         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39656         not only the first time.
39657         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39658         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39659         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39660         is 1, not only the the first time.
39661
39662 2009-08-10  Bruno Haible  <bruno@clisp.org>
39663
39664         Make it possible to use module 'gethostname' without module 'close'.
39665         * lib/unistd.in.h (close): Evoke a link error only if
39666         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39668         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39669         * modules/unistd (Makefile.am): Substitute
39670         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39671         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39672         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39673         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39674         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39675         * modules/sys_ioctl (Makefile.am): Substitute
39676         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39677         * modules/socket (configure.ac): On native Windows, set
39678         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39679         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39680         Reported by Sam Steingold <sds@gnu.org>.
39681
39682 2009-08-10  Bruno Haible  <bruno@clisp.org>
39683
39684         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39685         * modules/ioctl (configure.ac): Likewise.
39686
39687 2009-08-10  Bruno Haible  <bruno@clisp.org>
39688
39689         Avoid collision between gnulib wrapper and libintl wrapper.
39690         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39691         already defined in intl/printf.c.
39692         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39693         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39694
39695 2009-08-09  Bruno Haible  <bruno@clisp.org>
39696
39697         Make <sys/select.h> really self-contained, also on Solaris 10.
39698         * lib/sys_select.in.h: Include <string.h>.
39699         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39700         Solaris 10 problem.
39701         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39702         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39703         Reported by Jim Meyering.
39704
39705 2009-08-09  Bruno Haible  <bruno@clisp.org>
39706
39707         Avoid warnings from 'aclocal' that are due to a use of macro name
39708         AM_XGETTEXT_OPTION that is not defined in automake.
39709         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39710         automake.
39711         * modules/error (configure.ac): Likewise.
39712         * modules/propername (configure.ac): Likewise.
39713         * modules/vasprintf (configure.ac): Likewise.
39714         * modules/verror (configure.ac): Likewise.
39715         * modules/xprintf (configure.ac): Likewise.
39716         * modules/xvasprintf (configure.ac): Likewise.
39717
39718 2009-08-08  Bruno Haible  <bruno@clisp.org>
39719
39720         Avoid compilation error in C++ mode.
39721         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39722         Reported by Sam Steingold <sds@gnu.org>.
39723
39724 2009-08-08  Bruno Haible  <bruno@clisp.org>
39725
39726         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39727         for the various Unix platforms.
39728         * doc/posix-headers/limits.texi: Update platforms list regarding
39729         HOST_NAME_MAX.
39730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39731
39732 2009-08-07  Jim Meyering  <meyering@redhat.com>
39733
39734         selinux-at: fix typo in a comment
39735         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39736         Spotted by Paolo Bonzini.
39737
39738         selinux-at: remove redundant m4 code, add documentation
39739         * modules/selinux-at (configure.ac): Remove redundant code.
39740         LIB_SELINUX is already set via the dependent module, selinux-h.
39741         (Include): Add quotes around selinux-at.h.
39742         * lib/selinux-at.h: Add documentation.
39743         Reported by Bruno Haible in
39744         http://marc.info/?l=gnulib-bug&m=124958988300749
39745
39746 2009-08-07  Bruno Haible  <bruno@clisp.org>
39747
39748         Avoid link error on MacOS X 10.3 and 10.4.
39749         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39750         on non-ELF systems.
39751         * lib/argp-pv.c (argp_program_version): Likewise.
39752         Reported by Simon Josefsson.
39753
39754 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39755
39756         * tests/test-version-etc.sh: Use $EXEEXT.
39757
39758 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39759
39760         update-copyright: update documentation to point to maint.mk
39761         * build-aux/update-copyright: Here.
39762
39763 2009-08-06  Jim Meyering  <meyering@redhat.com>
39764
39765         maint.mk: support update-copyright-local
39766         * top/maint.mk (update-copyright-local): Define place-holder.
39767         (update-copyright): Depend on $(update-copyright-local).
39768
39769 2009-08-06  Jim Meyering  <meyering@redhat.com>
39770
39771         selinux-at: new module
39772         Initially written for coreutils, this module will soon be
39773         used by findutils, too.
39774         * MODULES.html.sh [Misc]: Add selinux-at.
39775         * lib/selinux-at.h: New file, from coreutils.
39776         * lib/selinux-at.c: Likewise.
39777         * modules/selinux-at: Likewise.
39778         (License): Change from LGPL to GPL, since it depends
39779         on the GPL'd openat module.
39780
39781         doc: update README
39782         * README: Remove references to cogito.
39783         Remove cvs-repo-updating instructions from 2007.
39784         Don't imply that CVS is better if you have limited disk space.
39785
39786 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39787
39788         update-copyright: support C-style comments
39789         * build-aux/update-copyright: Implement and document.
39790         * tests/test-update-copyright.sh: Test.
39791
39792 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39793
39794         update-copyright: support omitted "(C)"
39795         * build-aux/update-copyright: Implement and document.  Also,
39796         allow variable whitespace before "(C)".
39797         * tests/test-update-copyright.sh: Test.
39798
39799 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39800
39801         update-copyright: don't trip on non-FSF copyright statements
39802         * build-aux/update-copyright: Fix so that the first correctly
39803         formatted FSF copyright statement is recognized no matter what
39804         appears before it.  Update documentation.
39805         * tests/test-update-copyright.sh: Test that.
39806
39807 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39808
39809         update-copyright: clean up code a little
39810         * build-aux/update-copyright: Append "_re" to the name of any
39811         variable holding a regular expression.
39812         Replace "old" and "new" with "stmt" in variable names.
39813         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39814         handled correctly.
39815         Format code more consistently.
39816
39817 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39818
39819         update-copyright-tests: improve portability
39820         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39821         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39822
39823 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39824
39825         update-copyright: support @copyright{} and &copy;
39826         * build-aux/update-copyright: Implement and document.
39827         * tests/test-update-copyright.sh: Test.
39828
39829 2009-08-04  Jim Meyering  <meyering@redhat.com>
39830
39831         update-copyright-tests: correctly test EOL=\r\n handling
39832         * tests/test-update-copyright.sh: Put \r at the end of some lines
39833         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39834
39835         maint.mk: make update-copyright exclusion list more configurable
39836         * top/maint.mk (update-copyright): Default to excluding COPYING,
39837         but allow an override, in case someone does want to update that file.
39838
39839         maint.mk: don't update copyright date in COPYING
39840         * top/maint.mk (update-copyright): Exclude COPYING.
39841
39842         maint.mk: add a copyright-updating rule
39843         * top/maint.mk (update-copyright): New rule.
39844         Derived from coreutils/Makefile.am.
39845
39846         update-copyright: rename some variables
39847         * build-aux/update-copyright: Rename a few variables for clarity.
39848         Tweak syntax.  List Joel E. Denny as coauthor.
39849
39850 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39851
39852         update-copyright: fix bug for 2-digit last year and add tests
39853         * build-aux/update-copyright: Fix bug.
39854         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39855         specified.
39856         * modules/update-copyright-tests: New
39857         * tests/test-update-copyright.sh: New.
39858
39859 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39860
39861         update-copyright: handle leading tabs in line prefix
39862         * build-aux/update-copyright: Count leading tabs as 8 spaces
39863         when computing margin.  This helps with the formatting of
39864         ChangeLogs, for example.
39865         Fix documentation a little.
39866
39867 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39868
39869         update-copyright: support EOL=\r\n
39870         * build-aux/update-copyright: Implement that.
39871
39872 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39873
39874         update-copyright: automatically format copyright statements
39875         * build-aux/update-copyright: Implement that.
39876         Also, be a little more predictable and safer by always failing
39877         when the full copyright format is not perfectly recognized as an
39878         unbroken whole.  Discussed at
39879         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39880         Rewrite documentation.
39881
39882 2009-08-03  Bruno Haible  <bruno@clisp.org>
39883
39884         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39885
39886 2009-08-02  Bruno Haible  <bruno@clisp.org>
39887
39888         Tests for module 'uname'.
39889         * modules/uname-tests: New file.
39890         * tests/test-uname.c: New file.
39891
39892         New module 'uname'.
39893         * lib/uname.c: New file.
39894         * m4/uname.m4: New file.
39895         * modules/uname: New file.
39896         * doc/posix-functions/uname.texi: Mention the new module.
39897
39898 2009-08-02  Bruno Haible  <bruno@clisp.org>
39899
39900         Tests for module 'sys_utsname'.
39901         * modules/sys_utsname-tests: New file.
39902         * tests/test-sys_utsname.c: New file.
39903
39904         New module 'sys_utsname'.
39905         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39906         * m4/sys_utsname_h.m4: New file.
39907         * modules/sys_utsname: New file.
39908         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39909
39910 2009-08-02  Bruno Haible  <bruno@clisp.org>
39911
39912         Implicitly initialize the sockets library.
39913         * lib/gethostname.c: Include sockets.h.
39914         (rpl_gethostname): Invoke gl_sockets_startup.
39915         * lib/socket.c: Include sockets.h.
39916         (rpl_socket): Invoke gl_sockets_startup.
39917         * modules/gethostname (Depends-on): Add sockets.
39918         * modules/socket (Depends-on): Likewise.
39919         * tests/test-poll.c: Don't include sockets.h.
39920         (main): Don't invoke gl_sockets_startup.
39921         * tests/test-select.c: Don't include sockets.h.
39922         (main): Don't invoke gl_sockets_startup.
39923
39924 2009-08-02  Bruno Haible  <bruno@clisp.org>
39925
39926         Allow multiple calls to gl_sockets_startup.
39927         * lib/sockets.c (initialized_sockets_version): New variable.
39928         (gl_sockets_startup): Do nothing if already called for this or a higher
39929         version.
39930         (gl_sockets_cleanup): Reset initialized_sockets_version.
39931
39932 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39933
39934         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39935         different project/version.
39936
39937 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39938             Bruno Haible  <bruno@clisp.org>
39939
39940         Tests for module 'pipe-filter-gi'.
39941         * modules/pipe-filter-gi-tests: New file.
39942         * tests/test-pipe-filter-gi1.sh: New file.
39943         * tests/test-pipe-filter-gi1.c: New file.
39944         * tests/test-pipe-filter-gi2.sh: New file.
39945         * tests/test-pipe-filter-gi2-main.c: New file.
39946         * tests/test-pipe-filter-gi2-child.c: New file.
39947
39948         New module 'pipe-filter-gi'.
39949         * lib/pipe-filter-gi.c: New file.
39950         * modules/pipe-filter-gi: New file.
39951
39952 2009-08-02  Bruno Haible  <bruno@clisp.org>
39953             Paolo Bonzini  <bonzini@gnu.org>
39954
39955         Tests for module 'pipe-filter-ii'.
39956         * modules/pipe-filter-ii-tests: New file.
39957         * tests/test-pipe-filter-ii1.sh: New file.
39958         * tests/test-pipe-filter-ii1.c: New file.
39959         * tests/test-pipe-filter-ii2.sh: New file.
39960         * tests/test-pipe-filter-ii2-main.c: New file.
39961         * tests/test-pipe-filter-ii2-child.c: New file.
39962
39963         New module 'pipe-filter-ii'.
39964         * lib/pipe-filter.h: New file.
39965         * lib/pipe-filter-ii.c: New file.
39966         * lib/pipe-filter-aux.h: New file.
39967         * modules/pipe-filter-ii: New file.
39968
39969 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39970
39971         * lib/gc-libgcrypt.c: Change copyright to FSF.
39972         * lib/gc-gnulib.c: Likewise.
39973
39974 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39975
39976         * lib/gethostname.c: Include limits.h.
39977
39978 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39979             Bruno Haible  <bruno@clisp.org>
39980
39981         Ensure HOST_NAME_MAX as part of the gethostname module.
39982         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39983         define also HOST_NAME_MAX.
39984         * tests/test-gethostname.c: Include <limits.h>.
39985         (main): Check also HOST_NAME_MAX.
39986         * doc/posix-headers/limits.texi: Document the mingw problem.
39987
39988 2009-08-02  Bruno Haible  <bruno@clisp.org>
39989
39990         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39991         Add comments.
39992
39993 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39994
39995         * lib/gethostname.c: Add Windows wrapper.
39996         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39997         * modules/gethostname: Depend on sys_socket & errno, for also
39998         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39999         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
40000
40001 2009-07-31  Jim Meyering  <meyering@redhat.com>
40002
40003         getloadavg: fix symbol name in comment
40004         * lib/getloadavg.c: Correct a typo I introduced when adding
40005         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
40006         Matt Kraai spotted the problem.
40007
40008 2009-07-29  Matt Kraai  <mkraai@beckman.com>
40009
40010         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
40011         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
40012         code also if ! defined N_NAME_POINTER.
40013         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
40014         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
40015         but the n_name member is a 12-byte array.
40016
40017 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
40018
40019         update-copyright: generalize comment handling
40020         * build-aux/update-copyright: Handle copyright statements
40021         within more comment styles.
40022         Document usage.
40023         Report any file with an external copyright holder or parse failure.
40024
40025 2009-07-29  Jim Meyering  <meyering@redhat.com>
40026
40027         mktime: correct setting of REPLACE_MKTIME
40028         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
40029
40030         update-copyright: new module
40031         * modules/update-copyright: New file.
40032         * build-aux/update-copyright: New file.
40033         * MODULES.html.sh (maint+release support): Add update-copyright.
40034
40035 2009-07-27  Bruno Haible  <bruno@clisp.org>
40036
40037         Fix compilation error when <ctime> is used and mktime is replaced.
40038         * lib/time.in.h (mktime): New declaration.
40039         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
40040         REPLACE_MKTIME instead of defining mktime in config.h.
40041         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
40042         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
40043         Reported by Ross McFarland <rwmcfa1@neces.com>.
40044
40045 2009-07-27  Bruno Haible  <bruno@clisp.org>
40046
40047         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
40048         Reported by Matt Kraai <mkraai@beckman.com>.
40049
40050 2009-07-25  Jim Meyering  <meyering@redhat.com>
40051
40052         maint.mk: avoid warnings about missing files
40053         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
40054         diagnostic when .prev-version does not exist.
40055         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
40056         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
40057         nonexistent cfg.mk.
40058         Suggestions from Simon Josefsson.
40059
40060 2009-07-25  Bruno Haible  <bruno@clisp.org>
40061
40062         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
40063         defined as macros. Needed on QNX 6.4.1.
40064         Reported by Matt Kraai <mkraai@beckman.com>.
40065
40066 2009-07-23  Jim Meyering  <meyering@redhat.com>
40067
40068         maint.mk: invoke "make dist" with a working value of XZ_OPT
40069         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
40070
40071 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
40072
40073         Make fseeko.c compile on QNX.
40074         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
40075
40076 2009-07-22  Peter Simons  <simons@cryp.to>
40077
40078         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
40079         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
40080         * lib/md4.h: Likewise.
40081         * lib/md5.h: Likewise.
40082         * lib/sha1.h: Likewise.
40083         * lib/sha256.h: Likewise.
40084         * lib/sha512.h: Likewise.
40085
40086         tests-sha1: don't assign literal string to 'char *' variable
40087         * tests/test-sha1.c (main): Declare locals with "const" to match
40088         attributes of the right hand side.
40089
40090 2009-07-21  Eric Blake  <ebb9@byu.net>
40091
40092         dup2: fix more mingw problems
40093         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
40094         fd to itself.
40095         * doc/posix-functions/dup2.texi (dup2): Document the bug.
40096         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
40097         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
40098         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
40099         care of mingw bugs.
40100
40101 2009-07-21  Jim Meyering  <meyering@redhat.com>
40102
40103         vc-list-files: avoid failure when /bin/sh is dash
40104         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
40105         On some Debian based systems, /bin/sh is a symlink to dash, and running
40106         this command would omit the "/" following each 'tests' prefix:
40107           dash -x build-aux/vc-list-files -C . tests
40108         That is because bash and dash work differently:
40109           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
40110           bash ok
40111           dash odd
40112
40113 2009-07-21  Eric Blake  <ebb9@byu.net>
40114
40115         dup2-tests: test previous patch
40116         * modules/dup2-tests: New file.
40117         * tests/test-dup2.c: Likewise.
40118         * tests/test-open.c (main): Avoid unspecified behavior.
40119         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
40120         test.
40121
40122         dup2: work around mingw and cygwin 1.5 bug
40123         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
40124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40125         * modules/unistd (Makefile.am): Substitute it.
40126         * lib/unistd.in.h (dup2): Declare the replacement.
40127         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
40128         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
40129         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
40130         * modules/execute (Depends-on): Add dup2.
40131         * modules/fseterr (Depends-on): Likewise.
40132         * modules/pipe (Depends-on): Likewise.
40133         * modules/posix_spawn-internal (Depends-on): Likewise.
40134
40135 2009-07-21  Bruno Haible  <bruno@clisp.org>
40136
40137         * modules/.gitattributes: New file.
40138
40139 2009-07-20  Bruno Haible  <bruno@clisp.org>
40140
40141         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
40142         (main): Use it.
40143
40144 2009-07-20  Eric Blake  <ebb9@byu.net>
40145
40146         test-pipe: make a bit more robust.
40147         * tests/test-pipe.c (myerr): Allow error messages regardless of
40148         what we do to stderr.
40149         (test_pipe): Rearrange to avoid deadlock.
40150         (child_main): Try a larger read, to ensure we avoided deadlock.
40151         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
40152         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
40153         if misused.
40154
40155 2009-07-19  Jim Meyering  <meyering@redhat.com>
40156
40157         fts: avoid false-positive cycle-detection
40158         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
40159         for each new command line argument.
40160
40161 2009-07-19  Bruno Haible  <bruno@clisp.org>
40162
40163         Fix build error on mingw with the modules sys_select and unistd.
40164         * modules/acl-tests (Depends-on): Add close.
40165         * modules/binary-io-tests (Depends-on): Likewise.
40166         * modules/closein-tests (Depends-on): Likewise.
40167         * modules/flock-tests (Depends-on): Likewise.
40168         * modules/fsync-tests (Depends-on): Likewise.
40169         * modules/lseek-tests (Depends-on): Likewise.
40170         * modules/pipe-tests (Depends-on): Likewise.
40171         * modules/posix_spawn-tests (Depends-on): Likewise.
40172         * modules/posix_spawnp-tests (Depends-on): Likewise.
40173         * modules/stat-time-tests (Depends-on): Likewise.
40174         * modules/yesno-tests (Depends-on): Likewise.
40175
40176 2009-07-19  Bruno Haible  <bruno@clisp.org>
40177
40178         Unify conditionals.
40179         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40180         macros, not at the compiler macros.
40181         * lib/pipe.c: Likewise.
40182         * lib/execute.c: Likewise.
40183         * lib/spawni.c: Likewise.
40184
40185 2009-07-19  Bruno Haible  <bruno@clisp.org>
40186
40187         Fix handling of closed stdin/stdout/stderr on mingw.
40188         * lib/w32spawn.h: Include unistd.h.
40189         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40190         file descriptor with O_NOINHERIT flag.
40191         (fd_safer_noinherit): New function, based on fd-safer.c.
40192         (dup_safer_noinherit): New function, based on dup-safer.c.
40193         (undup_safer_noinherit): New function.
40194         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40195         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40196         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40197         instead of fd_safer.
40198         * tests/test-pipe.c: Include <windows.h>.
40199         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40200         result.
40201
40202         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40203         from main.
40204         (test_pipe): Pass an extra argument for disambiguation.
40205         (main): Invoke parent_main or child_main.
40206
40207         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40208         consistently.
40209
40210 2009-07-18  Eric Blake  <ebb9@byu.net>
40211
40212         test-pipe: fix mingw build
40213         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40214
40215 2009-07-18  Bruno Haible  <bruno@clisp.org>
40216
40217         * modules/pipe-tests (Makefile.am): Fix typo.
40218
40219 2009-07-18  Eric Blake  <ebb9@byu.net>
40220
40221         error: fix mingw build
40222         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40223         Reported by Bruno Haible.
40224
40225         error: avoid undefined use of stdout
40226         * lib/error.c (error, error_at_line): Check that fd 1 is open
40227         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40228         is handling faults and the close_stdout module wants to report the
40229         detection of closed stdout as an error.
40230
40231 2009-07-17  Eric Blake  <ebb9@byu.net>
40232
40233         pipe: be robust in face of closed fds
40234         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40235         should cause child to misbehave.
40236         * modules/pipe-tests: New module.
40237         * tests/test-pipe.c: New file.
40238         * tests/test-pipe.sh: New file.
40239         Reported by Akim Demaille.
40240
40241 2009-07-14  Bruno Haible  <bruno@clisp.org>
40242
40243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40244         Reported by anonymous kc.
40245
40246 2009-07-07  Jim Meyering  <meyering@redhat.com>
40247
40248         maint.mk: don't look for translatable strings in *.m4 or *.mk
40249         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40250         when searching for translatable strings.
40251
40252 2009-07-05  Jim Meyering  <meyering@redhat.com>
40253
40254         remove superfluous parentheses in STREQ definition
40255         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40256         * lib/getugroups.c (STREQ): Likewise.
40257         * lib/fnmatch.c (STREQ): Likewise.
40258         Spotted by Bruno Haible.
40259
40260 2009-07-04  Jim Meyering  <meyering@redhat.com>
40261
40262         argv-iter: new module
40263         * MODULES.html.sh: Add argv-iter.
40264         * lib/argv-iter.c, lib/argv-iter.h: New files.
40265         * modules/argv-iter: New file.
40266         * modules/argv-iter-tests: New file.
40267         * tests/test-argv-iter.c: Test it.
40268
40269 2009-07-04  Bruno Haible  <bruno@clisp.org>
40270
40271         Fix assertion.
40272         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40273         contains more exact copies of a given entry than file2, leave the extra
40274         copies unpaired rather than aborting.
40275         Reported by Eric Blake.
40276
40277 2009-07-02  Bruno Haible  <bruno@clisp.org>
40278
40279         Speedup git-merge-changelog for git cherry-pick.
40280         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40281         (entries_mapping_get): New function, extracted from compute_mapping.
40282         (entries_mapping_reverse_get): New function.
40283         (compute_mapping): Add a 'full' argument. Return the result in a
40284         'struct entries_mapping'.
40285         (main): Update. Access the mappings through entries_mapping_get.
40286         Reported by Eric Blake.
40287
40288 2009-07-02  Bruno Haible  <bruno@clisp.org>
40289
40290         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40291         best_i.
40292
40293 2009-07-02  Bruno Haible  <bruno@clisp.org>
40294
40295         Speed up approximate search for matching ChangeLog entries.
40296         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40297         argument. Call fstrcmp_bounded instead of fstrcmp.
40298         (compute_mapping, try_split_merged_entry, main): Update callers.
40299
40300 2009-07-02  Bruno Haible  <bruno@clisp.org>
40301
40302         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40303
40304 2009-06-30  Bruno Haible  <bruno@clisp.org>
40305
40306         Reduce the number of uc_is_cased calls.
40307         * lib/unicase.h (casing_suffix_context_t): Add
40308         'first_char_except_ignorable' field.
40309         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40310         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40311         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40312         Update initializer.
40313         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40314         case-ignorable characters.
40315         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40316         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40317         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40318         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40319         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40320
40321 2009-06-30  Bruno Haible  <bruno@clisp.org>
40322
40323         Tests for module 'unicase/ignorable'.
40324         * modules/unicase/ignorable-tests: New file.
40325         * tests/unicase/test-ignorable.c: New file, generated by
40326         gen-uni-tables.
40327
40328         Tests for module 'unicase/cased'.
40329         * modules/unicase/cased-tests: New file.
40330         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40331         * tests/unicase/test-predicate-part1.h: New file, derived from
40332         tests/unictype/test-predicate-part1.h.
40333         * tests/unicase/test-predicate-part2.h: New file, same as
40334         tests/unictype/test-predicate-part2.h.
40335
40336         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40337         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40338         (output_casing_properties): New function.
40339         (main): Call it.
40340         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40341         * lib/unicase/cased.c: Include unictype/bitmap.h.
40342         (uc_is_cased): Define through a bitmap lookup.
40343         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40344         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40345         (uc_is_case_ignorable): Define through a bitmap lookup.
40346         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40347         lib/unictype/bitmap.h.
40348         (Depends-on): Add inline. Clean up.
40349         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40350         lib/unictype/bitmap.h.
40351         (Depends-on): Add inline. Clean up.
40352         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40353         recognition.
40354         * tests/unicase/test-u16-tolower.c (main): Likewise.
40355         * tests/unicase/test-u32-tolower.c (main): Likewise.
40356
40357 2009-06-30  Bruno Haible  <bruno@clisp.org>
40358
40359         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40360         * lib/unicase/u16-casemap.c: Likewise.
40361         * lib/unicase/u32-casemap.c: Likewise.
40362
40363 2009-06-29  Bruno Haible  <bruno@clisp.org>
40364
40365         Define u32_casefold as a wrapper around u32_ct_casefold.
40366         * lib/unicase/u32-casefold.c: Update.
40367         * modules/unicase/u32-casefold (Depends-on): Add
40368         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40369         unicase/empty-suffix-context. Clean up.
40370
40371         Define u16_casefold as a wrapper around u16_ct_casefold.
40372         * lib/unicase/u16-casefold.c: Update.
40373         * modules/unicase/u16-casefold (Depends-on): Add
40374         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40375         unicase/empty-suffix-context. Clean up.
40376
40377         Define u8_casefold as a wrapper around u8_ct_casefold.
40378         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40379         * lib/unicase/u8-casefold.c: Update.
40380         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40381         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40382
40383         Define u32_totitle as a wrapper around u32_ct_totitle.
40384         * lib/unicase/u32-totitle.c: Update.
40385         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40386         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40387
40388         Define u16_totitle as a wrapper around u16_ct_totitle.
40389         * lib/unicase/u16-totitle.c: Update.
40390         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40391         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40392
40393         Define u8_totitle as a wrapper around u8_ct_totitle.
40394         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40395         functions.
40396         (FUNC): Delegate to U_CT_TOTITLE.
40397         * lib/unicase/u8-totitle.c: Update.
40398         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40399         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40400
40401         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40402         invocation.
40403         * modules/unicase/u32-tolower (Depends-on): Add
40404         unicase/empty-prefix-context, unicase/empty-suffix-context.
40405
40406         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40407         invocation.
40408         * modules/unicase/u16-tolower (Depends-on): Add
40409         unicase/empty-prefix-context, unicase/empty-suffix-context.
40410
40411         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40412         * modules/unicase/u8-tolower (Depends-on): Add
40413         unicase/empty-prefix-context, unicase/empty-suffix-context.
40414
40415         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40416         invocation.
40417         * modules/unicase/u32-toupper (Depends-on): Add
40418         unicase/empty-prefix-context, unicase/empty-suffix-context.
40419
40420         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40421         invocation.
40422         * modules/unicase/u16-toupper (Depends-on): Add
40423         unicase/empty-prefix-context, unicase/empty-suffix-context.
40424
40425         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40426         * modules/unicase/u8-toupper (Depends-on): Add
40427         unicase/empty-prefix-context, unicase/empty-suffix-context.
40428
40429         New module 'unicase/u32-ct-casefold'.
40430         * lib/unicase/u32-ct-casefold.c: New file.
40431         * modules/unicase/u32-ct-casefold: New file.
40432
40433         New module 'unicase/u16-ct-casefold'.
40434         * lib/unicase/u16-ct-casefold.c: New file.
40435         * modules/unicase/u16-ct-casefold: New file.
40436
40437         New module 'unicase/u8-ct-casefold'.
40438         * lib/unicase/u8-ct-casefold.c: New file.
40439         * lib/unicase/u-ct-casefold.h: New file, derived from
40440         lib/unicase/u-casefold.h.
40441         * modules/unicase/u8-ct-casefold: New file.
40442
40443         New module 'unicase/u32-ct-totitle'.
40444         * lib/unicase/u32-ct-totitle.c: New file.
40445         * modules/unicase/u32-ct-totitle: New file.
40446
40447         New module 'unicase/u16-ct-totitle'.
40448         * lib/unicase/u16-ct-totitle.c: New file.
40449         * modules/unicase/u16-ct-totitle: New file.
40450
40451         New module 'unicase/u8-ct-totitle'.
40452         * lib/unicase/u8-ct-totitle.c: New file.
40453         * lib/unicase/u-ct-totitle.h: New file, derived from
40454         lib/unicase/u-totitle.h.
40455         * modules/unicase/u8-ct-totitle: New file.
40456
40457         New module 'unicase/u32-ct-tolower'.
40458         * lib/unicase/u32-ct-tolower.c: New file.
40459         * modules/unicase/u32-ct-tolower: New file.
40460
40461         New module 'unicase/u16-ct-tolower'.
40462         * lib/unicase/u16-ct-tolower.c: New file.
40463         * modules/unicase/u16-ct-tolower: New file.
40464
40465         New module 'unicase/u8-ct-tolower'.
40466         * lib/unicase/u8-ct-tolower.c: New file.
40467         * modules/unicase/u8-ct-tolower: New file.
40468
40469         New module 'unicase/u32-ct-toupper'.
40470         * lib/unicase/u32-ct-toupper.c: New file.
40471         * modules/unicase/u32-ct-toupper: New file.
40472
40473         New module 'unicase/u16-ct-toupper'.
40474         * lib/unicase/u16-ct-toupper.c: New file.
40475         * modules/unicase/u16-ct-toupper: New file.
40476
40477         New module 'unicase/u8-ct-toupper'.
40478         * lib/unicase/u8-ct-toupper.c: New file.
40479         * modules/unicase/u8-ct-toupper: New file.
40480
40481         Add context arguments to u*_casemap functions.
40482         * lib/unicase/unicasemap.h: Include unicase.h.
40483         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40484         suffix_context arguments.
40485         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40486         functions.
40487         (FUNC): Add prefix_context and suffix_context arguments. Use
40488         uc_is_cased and uc_is_case_ignorable.
40489         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40490         * lib/unicase/u16-casemap.c: Likewise.
40491         * lib/unicase/u32-casemap.c: Likewise.
40492         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40493         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40494         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40495         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40496         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40497         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40498
40499         New module 'unicase/u32-suffix-context'.
40500         * lib/unicase/u32-suffix-context.c: New file.
40501         * modules/unicase/u32-suffix-context: New file.
40502
40503         New module 'unicase/u16-suffix-context'.
40504         * lib/unicase/u16-suffix-context.c: New file.
40505         * modules/unicase/u16-suffix-context: New file.
40506
40507         New module 'unicase/u8-suffix-context'.
40508         * lib/unicase/u8-suffix-context.c: New file.
40509         * lib/unicase/u-suffix-context.h: New file.
40510         * modules/unicase/u8-suffix-context: New file.
40511
40512         New module 'unicase/empty-suffix-context'.
40513         * lib/unicase/empty-suffix-context.c: New file.
40514         * modules/unicase/empty-suffix-context: New file.
40515
40516         New module 'unicase/u32-prefix-context'.
40517         * lib/unicase/u32-prefix-context.c: New file.
40518         * modules/unicase/u32-prefix-context: New file.
40519
40520         New module 'unicase/u16-prefix-context'.
40521         * lib/unicase/u16-prefix-context.c: New file.
40522         * modules/unicase/u16-prefix-context: New file.
40523
40524         New module 'unicase/u8-prefix-context'.
40525         * lib/unicase/u8-prefix-context.c: New file.
40526         * lib/unicase/u-prefix-context.h: New file.
40527         * lib/unicase/context.h: New file.
40528         * modules/unicase/u8-prefix-context: New file.
40529
40530         New module 'unicase/empty-prefix-context'.
40531         * lib/unicase/empty-prefix-context.c: New file.
40532         * modules/unicase/empty-prefix-context: New file.
40533
40534         New module 'unicase/ignorable'.
40535         * lib/unicase/ignorable.c: New file.
40536         * modules/unicase/ignorable: New file.
40537
40538         New module 'unicase/cased'.
40539         * lib/unicase/caseprop.h: New file.
40540         * lib/unicase/cased.c: New file.
40541         * modules/unicase/cased: New file.
40542
40543         New functions for case mapping of substrings.
40544         * lib/unicase.h (casing_prefix_context_t): New type.
40545         (unicase_empty_prefix_context): New variable.
40546         (u8_casing_prefix_context, u16_casing_prefix_context,
40547         u32_casing_prefix_context, u8_casing_prefixes_context,
40548         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40549         declarations.
40550         (casing_suffix_context_t): New type.
40551         (unicase_empty_suffix_context): New variable.
40552         (u8_casing_suffix_context, u16_casing_suffix_context,
40553         u32_casing_suffix_context, u8_casing_suffixes_context,
40554         u16_casing_suffixes_context, u32_casing_suffixes_context,
40555         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40556         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40557         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40558         declarations.
40559
40560 2009-06-28  Jim Meyering  <meyering@redhat.com>
40561
40562         boostrap: indent only with spaces
40563         * build-aux/bootstrap: Indent only with spaces, never TABs.
40564
40565         bootstrap: split long lines
40566         * build-aux/bootstrap: Keep line length < 80.
40567
40568         bootstrap: sync from coreutils
40569         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40570         just as autoreconf does.  Verify a list of prerequisite
40571         package-name,version-number pairs if defined in bootstrap.conf.
40572         Refer to README-prereq, if prerequisites are not satisfied.
40573
40574 2009-06-27  Eric Blake  <ebb9@byu.net>
40575
40576         tests: add test for bogus NULL definition
40577         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40578         * tests/test-stdlib.c: Likewise.
40579         * tests/test-string.c: Likewise.
40580         * tests/test-locale.c: Likewise.
40581         * tests/test-unistd.c: Likewise.
40582         * modules/stdio-tests (Depends-on): Add verify.
40583         * modules/stdlib-tests (Depends-on): Likewise.
40584         * modules/string-tests (Depends-on): Likewise.
40585         * modules/locale-tests (Depends-on): Likewise.
40586         * modules/unistd-tests (Depends-on): Likewise.
40587
40588 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40589
40590         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40591         self-explaining comment.
40592         * m4/selinux-selinux-h: Update serial.
40593         (gl_LIBSELINUX): New macro, adding a warning for missing development
40594         packages to code extracted from...
40595         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40596         Add warning for missing development packages here, too.
40597
40598 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40599
40600         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40601
40602 2009-06-25  Eric Blake  <ebb9@byu.net>
40603
40604         version-etc: fix regression
40605         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40606         gcc.
40607         (version_etc): Use it, to catch bugs with trailing NULL.
40608         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40609         (version_etc_va): Fix logic bug.
40610         * modules/version-etc-tests: Add test.
40611         * tests/test-version-etc.c: New file.
40612         * tests/test-version-etc.sh: Likewise.
40613
40614 2009-06-25  Sam Steingold  <sds@gnu.org>
40615
40616         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40617         mbtowc declaration.
40618
40619 2009-06-25  Eric Blake  <ebb9@byu.net>
40620
40621         fpurge: migrate into <stdio.h>
40622         * lib/fpurge.h: Delete...
40623         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40624         * lib/fpurge.c (fpurge): Change declaring header.
40625         * modules/fpurge (Files): Drop deleted file.
40626         (Depends-on): Add stdio.
40627         (configure.ac): Set witness.
40628         * modules/stdio (Makefile.am): Support fpurge macros.
40629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40630         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40631         * lib/fflush.c: Update client.
40632         * tests/test-fpurge.c: Likewise.
40633         * NEWS: Mention the change.
40634
40635 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40636
40637         * lib/argp-version-etc.c (program_authors): Add const
40638         qualifier.
40639         * lib/version-etc.c: Fix typos in the comments.
40640         * modules/argp-version-etc: Depends on version-etc.
40641
40642 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40643
40644         argp-version-etc: new module.
40645
40646         * lib/argp-version-etc.c: New file.
40647         * lib/argp-version-etc.h: New file.
40648         * modules/argp-version-etc: New file.
40649         * modules/argp-version-etc-tests: New file.
40650         * tests/test-argp-version-etc.c: New test.
40651         * tests/test-argp-version-etc-1.sh: New test.
40652
40653 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40654
40655         Provide additional interfaces and documentation for version-etc
40656         module.
40657
40658         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40659         interfaces.
40660         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40661         prototypes.
40662
40663 2009-06-24  Bruno Haible  <bruno@clisp.org>
40664
40665         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40666         HAVE_LIB${NAME} macro.
40667         Reported by Sam Steingold <sds@gnu.org>.
40668
40669 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40670
40671         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40672         needed.
40673
40674 2009-06-21  Bruno Haible  <bruno@clisp.org>
40675
40676         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40677         work.
40678         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40679         together with LIB${NAME}, LTLIB${NAME}.
40680         Reported by Sam Steingold <sds@gnu.org>.
40681
40682 2009-06-20  Jim Meyering  <meyering@redhat.com>
40683
40684         tests: make sc_require_test_exit_idiom more generic
40685         * top/maint.mk (Exit_witness_file): New overridable variable.
40686         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40687         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40688
40689 2009-06-19  Jim Meyering  <meyering@redhat.com>
40690
40691         hash: reverse order of src/dst parameters in an internal interface
40692         * lib/hash.c (transfer_entries): Reverse order of parameters to
40693         put DST before SRC.  Adjust callers.
40694
40695         tests: test-hash: avoid wholesale duplication
40696         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40697         Instead, use a loop and add a single conditional.
40698
40699         tests: test-hash: allow seed selection via a command line argument
40700         * tests/test-hash.c (get_seed): New function.
40701         (main): Use it.
40702
40703 2009-06-19  Eric Blake  <ebb9@byu.net>
40704
40705         hash: avoid memory leak on allocation failure
40706         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40707         failure.  Factor repeated algorithm...
40708         (transfer_entries): ...into new helper routine.
40709         (hash_delete): React to hash_rehash return value.
40710
40711         hash: reduce memory pressure in hash_rehash no-op case
40712         * lib/hash.c (next_prime): Avoid overflow.
40713         (hash_initialize): Factor bucket size computation...
40714         (compute_bucket_size): ...into new helper function.
40715         (hash_rehash): Use new function and open coding to reduce memory
40716         pressure, and avoid a memory leak in USE_OBSTACK code.
40717         Reported by Jim Meyering.
40718
40719 2009-06-18  Eric Blake  <ebb9@byu.net>
40720
40721         hash: make rotation more obvious
40722         * modules/hash (Depends-on): Add bitrotate and stdint.
40723         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40724         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40725         (SIZE_MAX): Rely on headers for definition.
40726         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40727         (raw_hasher): Use rotr_sz.
40728         Suggested by Jim Meyering.
40729
40730         hash: fix memory leak in last patch
40731         * lib/hash.c (hash_rehash): Avoid memory leak.
40732
40733         hash: avoid no-op rehashing
40734         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40735
40736         hash: provide default callback functions
40737         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40738         (hash_initialize): Use them as defaults.
40739         * tests/test-hash.c (main): Test this.
40740
40741         hash: minor optimization
40742         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40743         when possible.
40744         (hash_initialize): Document this promise.
40745         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40746         * tests/test-hash.c (hash_compare_strings): Test this.
40747
40748 2009-06-18  Bruno Haible  <bruno@clisp.org>
40749
40750         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40751         going to be replaced anyway.
40752
40753 2009-06-18  Bruno Haible  <bruno@clisp.org>
40754
40755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40756         in one place.
40757         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40758         be replaced anyway.
40759
40760 2009-06-18  Eric Blake  <ebb9@byu.net>
40761
40762         hash: check for resize before insertion
40763         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40764         threshold before insertion, so that a pathological hash_rehash
40765         that fills every bucket can still trigger another rehash.
40766
40767 2009-06-18  Jim Meyering  <meyering@redhat.com>
40768
40769         hash-tests: add a loop around the small tests
40770         * tests/test-hash.c (main): Repeat small tests with selected
40771         small initial table sizes.
40772
40773 2009-06-17  Eric Blake  <ebb9@byu.net>
40774
40775         hash: minor cleanups
40776         * lib/hash.h (hash_entry): Make opaque, by moving...
40777         * lib/hash.c (hash_entry): ...here.
40778         (hash_insert): Clarify restrictions on what can be inserted.
40779         (hash_get_next): Clarify when it is safe to remove an element
40780         during traversal.
40781         (check_tuning): Skip verification when tuning is known safe.
40782         (hash_initialize): Clarify restrictions on tuning.
40783
40784 2009-06-17  Jim Meyering  <jim@meyering.net>
40785         and Eric Blake  <ebb9@byu.net>
40786
40787         hash-tests: new module
40788         * modules/hash-tests: New file.
40789         * tests/test-hash.c: New file.
40790
40791 2009-06-17  Eric Blake  <ebb9@byu.net>
40792
40793         strstr-simple: document new module
40794         * MODULES.html.sh: Document new module.
40795
40796         strstr, strcasestr: replace on platforms with broken memchr
40797         * modules/strstr: Split into...
40798         * modules/strstr-simple: ...new module that does not care about
40799         performance, but does care about glibc bug.
40800         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40801         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40802         if platform memchr is broken, per Debian bug 521737.
40803         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40804         memchr.
40805         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40806         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40807         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40808         * modules/mountlist (Depends-on): Add strstr-simple.
40809         * modules/gen-uni-tables (Depends-on): Likewise.
40810         * modules/argz (Depends-on): Add strstr.
40811
40812 2009-06-17  Bruno Haible  <bruno@clisp.org>
40813
40814         * modules/posix_spawn-internal (Depends-on): Add errno.
40815
40816 2009-06-17  Bruno Haible  <bruno@clisp.org>
40817
40818         Define missing ESTALE on Interix 3.5.
40819         * lib/errno.in.h (ESTALE): Assign a value if missing.
40820         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40821         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40822         missing.
40823         * doc/posix-headers/errno.texi: Mention the Interix bug.
40824         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40825
40826 2009-06-15  Eric Blake  <ebb9@byu.net>
40827
40828         memchr, memchr2: add valgrind exception
40829         * lib/memchr.valgrind: New file.
40830         * lib/memchr2.valgrind: New file.
40831         * modules/memchr (Files): Distribute valgrind file.
40832         * modules/memchr2 (Files): Likewise.
40833
40834         docs: memchr is no longer obsolete
40835         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40836         * lib/string.in.h (memchr): Simplify logic.
40837
40838 2009-06-14  Jim Meyering  <meyering@redhat.com>
40839
40840         link-follow: fix the "checking..." message to not mention trailing slash
40841         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40842         never considered trailing slashes.
40843
40844 2009-06-14  Bruno Haible  <bruno@clisp.org>
40845
40846         * m4/memchr.m4: Mention also the bug on IA-64.
40847         * doc/posix-functions/memchr.texi: Likewise.
40848
40849 2009-06-12  Eric Blake  <ebb9@byu.net>
40850
40851         memchr: detect broken x86_64 and alpha implementations
40852         * modules/memchr-tests (Depends-on): Move mmap detection...
40853         * modules/memchr (Depends-on): ...here.
40854         (configure.ac): Set indicator.
40855         * lib/string.in.h (memchr): Declare replacement.
40856         * modules/string (Makefile.am): Trigger replacement.
40857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40858         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40859         bugs.
40860         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40861         * modules/getpagesize (License): Relax license.
40862
40863 2009-06-11  Bruno Haible  <bruno@clisp.org>
40864
40865         * lib/idpriv.h: Add more references.
40866
40867 2009-06-08  Bruno Haible  <bruno@clisp.org>
40868
40869         Tests for module 'idpriv-droptemp'.
40870         * modules/idpriv-droptemp-tests: New file.
40871         * tests/test-idpriv-droptemp.sh: New file.
40872         * tests/test-idpriv-droptemp.su.sh: New file.
40873         * tests/test-idpriv-droptemp.c: New file.
40874
40875         New module 'idpriv-droptemp'.
40876         * lib/idpriv-droptemp.c: New file.
40877         * modules/idpriv-droptemp: New file.
40878
40879 2009-06-08  Bruno Haible  <bruno@clisp.org>
40880
40881         Tests for module 'idpriv-drop'.
40882         * modules/idpriv-drop-tests: New file.
40883         * tests/test-idpriv-drop.sh: New file.
40884         * tests/test-idpriv-drop.su.sh: New file.
40885         * tests/test-idpriv-drop.c: New file.
40886
40887         New module 'idpriv-drop'.
40888         * lib/idpriv.h: New file.
40889         * lib-idpriv-drop.c: New file.
40890         * m4/idpriv.m4: New file.
40891         * modules/idpriv-drop: New file.
40892
40893 2009-06-08  Bruno Haible  <bruno@clisp.org>
40894
40895         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40896         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40897         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40898         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40899         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40900         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40901         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40902
40903 2009-06-08  Eric Blake  <ebb9@byu.net>
40904
40905         test-strstr: use memory fence, when possible
40906         * tests/test-strstr.c (main): Use memory fence, in order to be
40907         more likely to trigger Debian bug 521737.
40908         * modules/strstr-tests (Files): Pull in additional files.
40909
40910         memchr: no longer obsolete, for wider field testing
40911         * modules/memchr (Status, Notice): Delete, this module is no
40912         longer obsolete.
40913         * modules/vasnprintf (Depends-on): Add memchr.
40914
40915 2009-06-07  Jim Meyering  <meyering@redhat.com>
40916
40917         hash: declare some functions with the warn_unused_result attribute
40918         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40919
40920 2009-06-07  Bruno Haible  <bruno@clisp.org>
40921
40922         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40923         Reported by Eric Blake.
40924
40925 2009-06-06  Eric Blake  <ebb9@byu.net>
40926
40927         test-alignof: fix typo with long double
40928         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40929         compiler error.
40930
40931 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40932
40933         Escape non-texinfo { and }s.
40934         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40935         markup error.
40936
40937 2009-06-04  Jim Meyering  <meyering@redhat.com>
40938
40939         gitlog-to-changelog: don't infloop on an empty commit log
40940         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40941         Reported by Boris Petersen <transacid@centerim.org>.
40942
40943 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40944
40945         version-etc: extend for packagers
40946         Add three new configure options, intended for packagers:
40947           --with-packager="packager name"
40948           --with-packager-version="packager-specific version"
40949           --with-packager-bug-reports="packager bug reporting"
40950         An example with coreutils:
40951           $ ./configure \
40952             --with-packager=Gentoo \
40953             --with-packager-bug-report=http://bugs.gentoo.org/ \
40954             --with-packager-version="patchset 1.6"
40955           $ ./src/ls --version | head -n2
40956           ls (GNU coreutils) 7.1-dirty
40957           Packaged by Gentoo (patchset 1.6)
40958         Note that the bug reporting info via --help doesn't show up because
40959         coreutils uses its own custom emit_bug_reporting_address() implementation
40960         in src/system.h.  If it didn't, it'd look like:
40961           $ ./src/ls --help | tail -n4
40962           Report bugs to <bug-coreutils@gnu.org>.
40963           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40964           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40965           General help using GNU software: <http://www.gnu.org/gethelp/>.
40966         * lib/version-etc.c: Print new information, if provided.
40967         * m4/version-etc.m4: New file.
40968         * modules/version-etc (Files): Add m4/version-etc.m4.
40969         (configure.ac): Add gl_VERSION_ETC.
40970
40971 2009-05-31  Bruno Haible  <bruno@clisp.org>
40972
40973         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40974         and 'int64_t'.
40975         * modules/alignof-tests (Dependencies): Add stdint.
40976         Reported by Eric Blake.
40977
40978 2009-05-31  Bruno Haible  <bruno@clisp.org>
40979
40980         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40981         restriction due to compiler bugs.
40982         Reported by Eric Blake.
40983
40984 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40985             Bruno Haible  <bruno@clisp.org>
40986
40987         Fix test-alignof failure.
40988         * lib/alignof.h (alignof_slot): New macro.
40989         (alignof_type): New macro, with the same semantics as the previous
40990         'alignof'.
40991         (alignof): Alias to alignof_slot.
40992         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40993         check that the results are usable as constant expressions.
40994
40995 2009-05-31  Bruno Haible  <bruno@clisp.org>
40996
40997         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40998         * tests/test-memchr.c (main): Check that memchr does not read past the
40999         first occurrence of the byte.
41000         * tests/test-strstr.c (main): Update comment.
41001         Suggested by Eric Blake.
41002
41003 2009-05-30  Bruno Haible  <bruno@clisp.org>
41004
41005         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
41006         detail how to use dumpbin.
41007         Reported by David Byron <dbyron@dbyron.com>.
41008
41009 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41010
41011         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
41012
41013 2009-06-02  Simon Josefsson  <simon@josefsson.org>
41014
41015         * m4/manywarnings.m4: Add GCC 4.4 warnings.
41016
41017 2009-05-28  Bruno Haible  <bruno@clisp.org>
41018
41019         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
41020         build-aux/ files.
41021
41022 2009-05-28  Simon Josefsson  <simon@josefsson.org>
41023
41024         * gnulib-tool (func_import): Transform license on build-aux/ files too.
41025
41026 2009-05-27  Simon Josefsson  <simon@josefsson.org>
41027
41028         * gnulib-tool (sed_transform_main_lib_file)
41029         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
41030         regexps.
41031
41032 2009-05-26  Simon Josefsson  <simon@josefsson.org>
41033
41034         * tests/test-strstr.c: Add another self-test.
41035         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
41036         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
41037
41038 2009-05-23  Bruno Haible  <bruno@clisp.org>
41039
41040         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
41041         change.
41042
41043 2009-05-21  Bruno Haible  <bruno@clisp.org>
41044
41045         Simplify use of mode_t varargs.
41046         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
41047         uses 'mode_t' or 'int'.
41048         * lib/openat.c (openat): Likewise.
41049         * lib/open-safer.c (open_safer): Likewise.
41050         * m4/mode_t.m4: New file.
41051         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
41052         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
41053         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
41054         * modules/open (Files): Add m4/mode_t.m4.
41055         * modules/openat (Files): Likewise.
41056         * modules/fcntl-safer (Files): Likewise.
41057         Suggested by Eric Blake.
41058
41059 2009-05-21  Pádraig Brady  <P@draigbrady.com>
41060
41061         * doc/glibc-functions/fallocate.texi: New file.
41062         * doc/gnulib.texi: Include it.
41063
41064 2009-05-21  Eric Blake  <ebb9@byu.net>
41065             Bruno Haible  <bruno@clisp.org>
41066
41067         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
41068         invocations.
41069         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41070
41071 2009-05-21  Eric Blake  <ebb9@byu.net>
41072             Bruno Haible  <bruno@clisp.org>
41073
41074         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
41075         include_next. Fix of 2008-11-20 commit.
41076         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
41077         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
41078         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
41079         NEXT_MATH_H.
41080         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
41081         instead of NEXT_MATH_H.
41082
41083 2009-05-21  Bruno Haible  <bruno@clisp.org>
41084
41085         Avoid redefinition warnings for SIZE_MAX.
41086         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
41087         Reported by Simon Josefsson.
41088
41089 2009-05-21  Bruno Haible  <bruno@clisp.org>
41090
41091         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
41092         AC_CACHE_VAL.
41093
41094 2009-05-20  Bruno Haible  <bruno@clisp.org>
41095
41096         Make zeroptr.h work on mingw.
41097         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
41098         mprotect.
41099         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
41100         * modules/memchr2-tests (configure.ac): Likewise.
41101         * modules/memcmp-tests (configure.ac): Likewise.
41102         * modules/memmem-tests (configure.ac): Likewise.
41103         * modules/memrchr-tests (configure.ac): Likewise.
41104         Reported by Simon Josefsson.
41105
41106 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41107
41108         * tests/test-glob.c: Include string.h for strcmp prototype.
41109
41110 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41111
41112         * modules/getdelim (Depends-on): Add explicit stdint, although it
41113         was implicitly already pulled in via realloc-posix.
41114         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
41115
41116 2009-05-20  Simon Josefsson  <simon@josefsson.org>
41117
41118         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
41119         G. Christensen" <tgc@jupiterrise.com>.
41120         * m4/sys_socket_h.m4: Check for sa_family_t.
41121         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
41122         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
41123         * tests/test-sys_socket.c: Check that sa_family_t works.
41124
41125 2009-05-18  Eric Blake  <ebb9@byu.net>
41126
41127         maint.mk: allow gnulib_dir in VPATH build
41128         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
41129
41130 2009-05-15  Jim Meyering  <meyering@redhat.com>
41131
41132         maint.mk: Give gnulib_dir a default definition.
41133         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
41134         Thus, most packages no longer need to specify this variable in cfg.mk
41135
41136 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
41137
41138         rename.m4: fix typos that would make non-mingw cross-configure fail
41139         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
41140
41141 2009-05-13  Eric Blake  <ebb9@byu.net>
41142
41143         mmap-anon: avoid out-of-order autoconf expansion
41144         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
41145         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
41146         * modules/memchr-tests (Depends-on): Add extensions.
41147         * modules/memchr2-tests (Depends-on): Add extensions.
41148         * modules/memcmp-tests (Depends-on): Add extensions.
41149         * modules/memmem-tests (Depends-on): Add extensions.
41150         * modules/memrchr-tests (Depends-on): Add extensions.
41151
41152 2009-05-13  Bruno Haible  <bruno@clisp.org>
41153
41154         Make some tests ISO C 99 compliant.
41155         * tests/zerosize-ptr.h: New file.
41156         * tests/test-memchr.c: Include zerosize-ptr.h.
41157         (main): Use a zero-size object pointer instead of NULL.
41158         * tests/test-memchr2.c: Include zerosize-ptr.h.
41159         (main): Use a zero-size object pointer instead of NULL.
41160         * tests/test-memcmp.c: Include zerosize-ptr.h.
41161         (main): Use a zero-size object pointer instead of NULL.
41162         * tests/test-memmem.c: Include zerosize-ptr.h.
41163         (main): Use a zero-size object pointer instead of NULL.
41164         * tests/test-memrchr.c: Include zerosize-ptr.h.
41165         (main): Use a zero-size object pointer instead of NULL.
41166         * modules/memchr-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/memchr2-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/memcmp-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         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41179         m4/mmap-anon.m4.
41180         (Depends-on): Add getpagesize.
41181         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41182         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41183         m4/mmap-anon.m4.
41184         (Depends-on): Add getpagesize.
41185         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41186
41187 2009-05-12  Bruno Haible  <bruno@clisp.org>
41188
41189         Tests for module 'alignof'.
41190         * modules/alignof-tests: New file.
41191         * tests/test-alignof.c: New file.
41192
41193 2009-05-12  Bruno Haible  <bruno@clisp.org>
41194
41195         Fix alignof macro.
41196         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41197         vendor compilers that are always correct.
41198
41199 2009-05-12  Bruno Haible  <bruno@clisp.org>
41200
41201         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41202         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41203         not whether its fully works.
41204
41205 2009-05-12  Bruno Haible  <bruno@clisp.org>
41206
41207         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41208
41209 2009-05-12  Jim Meyering  <meyering@redhat.com>
41210
41211         * top/maint.mk: Adjust backslash alignment.
41212
41213 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41214
41215         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41216
41217 2009-05-11  Eric Blake  <ebb9@byu.net>
41218
41219         argp: avoid undefined behavior
41220         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41221         macros.
41222
41223 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41224
41225         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41226         user.name to prevent git commit from complaining.
41227
41228 2009-05-10  Bruno Haible  <bruno@clisp.org>
41229
41230         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41231         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41232         it rewrites every file name only once.
41233         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41234
41235 2009-05-08  Bruno Haible  <bruno@clisp.org>
41236
41237         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41238         instead of 'max'.
41239
41240 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41241
41242         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41243         sockaddr_storage test.
41244
41245 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41246
41247         * modules/sys_socket (Makefile.am): Substitute
41248         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41249         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41250         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41251         * tests/test-sys_socket.c: Check sockaddr_storage.
41252
41253 2009-05-08  Bruno Haible  <bruno@clisp.org>
41254
41255         New module 'alignof'.
41256         * lib/alignof.h: New file.
41257         * modules/alignof: New file.
41258
41259 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41260             Bruno Haible  <bruno@clisp.org>
41261
41262         Fix test-file-has-acl on FreeBSD.
41263         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41264         mask is implicitly added.
41265         * tests/test-file-has-acl.c: Include <signal.h>.
41266         (main): Terminate the test after 5 seconds.
41267         * modules/acl-tests (configure.ac): Check for alarm function.
41268
41269 2009-05-04  Bruno Haible  <bruno@clisp.org>
41270
41271         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41272         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41273         * modules/errno (configure.ac): Drop AC_REQUIRE.
41274         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41275         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41276
41277 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41278
41279         * modules/glob-tests: New module.
41280         * tests/test-glob.c: Add.
41281
41282 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41283
41284         * modules/fnmatch-tests: New module.
41285         * tests/test-fnmatch.c: Add.
41286
41287 2009-05-04  Eric Blake  <ebb9@byu.net>
41288
41289         maint: make the new no-submodule-changes rule VPATH-safe
41290         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41291
41292 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41293             Bruno Haible  <bruno@clisp.org>
41294
41295         acl: Fix infinite loop on FreeBSD.
41296         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41297         of return value from acl_get_entry.
41298         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41299         Likewise.
41300
41301 2009-05-03  Bruno Haible  <bruno@clisp.org>
41302
41303         * lib/acl-internal.h (acl_entries): Clarify return value.
41304         * lib/acl_entries.c (acl_entries): Likewise.
41305
41306 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41307
41308         Bug fix in acl module.
41309         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41310
41311 2009-05-03  Bruno Haible  <bruno@clisp.org>
41312
41313         Create gperf-generated file in the source dir, not in the build dir.
41314         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41315         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41316         * modules/unicase/locale-language (unicase/locale-languages.h):
41317         Likewise.
41318         * modules/unicase/special-casing (unicase/special-casing-table.h):
41319         Likewise.
41320         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41321         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41322         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41323         Reported by Ralf Wildenhues.
41324
41325 2009-05-03  Bruno Haible  <bruno@clisp.org>
41326
41327         * modules/fnmatch (Description, configure.ac): Taken from
41328         fnmatch-posix.
41329         * modules/fnmatch-posix: Turn into a symbolic reference to the
41330         'fnmatch' module, and deprecate.
41331         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41332
41333 2009-05-03  Bruno Haible  <bruno@clisp.org>
41334
41335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41336         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41337         Reported by Ralf Wildenhues.
41338
41339 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41340
41341         * m4/fnmatch.m4: Fix fnmatch re-define.
41342
41343 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41344
41345         priv-set: new module and tests; adapt write-any-file
41346         * lib/priv-set.c: New file.
41347         * lib/priv-set.h: New file.
41348         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41349         * lib/write-any-file.c: Simplify by using priv-set module.
41350         * m4/priv-set.m4: New file.
41351         * modules/priv-set: New file.
41352         * modules/unlinkdir: Add dependency on priv-set module.
41353         * modules/write-any-file: Likewise.
41354
41355         Tests for module 'priv-set'.
41356         * modules/priv-set-tests: New file.
41357         * tests/test-priv-set.c: New file.
41358
41359 2009-05-03  Jim Meyering  <meyering@redhat.com>
41360             Bruno Haible  <bruno@clisp.org>
41361
41362         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41363         use the converted UTF-8 variant of the name instead.
41364
41365 2009-05-03  Jim Meyering  <meyering@redhat.com>
41366
41367         tests: tighten some getdate tests
41368         * tests/test-getdate.c (main): Tighten tests: require equality,
41369         not just greater than.  Set TZ envvar to UTC0.
41370
41371 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41372
41373         getdate: correctly interpret "next monday" when run on a Monday
41374         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41375         that e.g., "next tues" (when run on a tuesday) results in a date
41376         that is one week in the future, and not today's date.
41377         I.e., add a week when the wday is the same as the current one.
41378         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41379         and earlier by Martin Bernreuther and Jan Minář.
41380         * tests/test-getdate.c (main): Check that "next DAY" is always in
41381         the future and that "last DAY" is always in the past.
41382
41383 2009-05-02  Jim Meyering  <meyering@redhat.com>
41384
41385         build: ensure that a release build fails when a submodule is unclean
41386         * top/maint.mk (no-submodule-changes): New rule.
41387         (alpha beta major): Depend on it.
41388
41389 2009-05-02  Bruno Haible  <bruno@clisp.org>
41390
41391         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41392         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41393         shell variable gl_fnmatch_required to detect which variant is
41394         requested.
41395         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41396         gl_FUNC_FNMATCH_POSIX.
41397         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41398         exclude fnmatch-posix.
41399
41400 2009-05-02  Bruno Haible  <bruno@clisp.org>
41401
41402         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41403         * modules/mbsrtowcs (License): Change to LGPLv2+.
41404         * modules/strnlen1 (License): Likewise.
41405         Reported by Simon Josefsson.
41406
41407 2009-05-02  Bruno Haible  <bruno@clisp.org>
41408
41409         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41410         "cross".
41411         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41412         gnulib-tool was called with option --source-base=lib.
41413
41414 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41415
41416         Use automake *-local hooks without commands, for extensibility.
41417         * modules/localcharset (Makefile.am): Rename install-exec-local
41418         rule to install-exec-localcharset, and make it a prerequisite of
41419         install-exec-local.  Likewise, rename the uninstall-local rule to
41420         uninstall-localcharset, and make it a prerequisite of the former.
41421
41422 2009-05-01  Bruno Haible  <bruno@clisp.org>
41423
41424         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41425         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41426         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41428         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41429         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41430         m4/locale-zh.m4, m4/codeset.m4.
41431
41432         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41433         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41434         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41435         m4/locale-zh.m4.
41436
41437         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41438         REPLACE_WCRTOMB if mbstate_t must be replaced.
41439         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41440         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41441
41442 2009-05-01  Bruno Haible  <bruno@clisp.org>
41443
41444         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41445         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41446         dngettext, dcngettext, textdomain, bindtextdomain,
41447         bind_textdomain_codeset): Undefine before redefining.
41448
41449 2009-04-30  Bruno Haible  <bruno@clisp.org>
41450
41451         Fix bug introduced on 2009-04-25.
41452         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41453         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41454         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41455         is defined.
41456         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41457         is defined.
41458         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41459         is defined.
41460         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41461
41462 2009-04-28  Bruno Haible  <bruno@clisp.org>
41463
41464         Comment tweaks.
41465         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41466         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41467         * lib/unicase.h (u*_casexfrm): Likewise.
41468         Reported by Paolo Bonzini.
41469
41470 2009-04-28  Bruno Haible  <bruno@clisp.org>
41471
41472         Fix a compilation error.
41473         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41474         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41475         Reported by Jim Meyering.
41476
41477 2009-04-27  Bruno Haible  <bruno@clisp.org>
41478
41479         New module 'libunistring'.
41480         * modules/libunistring: New file.
41481         * m4/libunistring.m4: New file.
41482         * MODULES.html.sh (Unicode string functions): Add it.
41483
41484 2009-04-27  Eric Blake  <ebb9@byu.net>
41485
41486         maint.mk: allow package-specific header to provide <config.h>
41487         * top/maint.mk (sc_require_config_h): New variable.
41488         (sc_require_config_h, sc_require_config_h_first): Use it.
41489
41490 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41491
41492         * top/maint.mk (sc_avoid_if_before_free): Except
41493         useless-if-before-free script.
41494
41495 2009-04-27  Eric Blake  <ebb9@byu.net>
41496
41497         maintainer-makefile: depend on all required helper scripts
41498         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41499         useless-if-before-free.
41500         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41501         version, rather than assuming gnulib checkout is available.
41502         Reported by Simen Josefsson.
41503
41504 2009-04-26  Bruno Haible  <bruno@clisp.org>
41505
41506         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41507         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41508         "../" or "..".
41509
41510 2009-04-26  Bruno Haible  <bruno@clisp.org>
41511
41512         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41513         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41514         AC_LIB_HAVE_LINKFLAGS.
41515
41516 2009-04-26  Bruno Haible  <bruno@clisp.org>
41517
41518         Simplify calling convention of u*_conv_from_encoding.
41519         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41520         u32_conv_from_encoding): Expect a resultbuf argument and return the
41521         result directly as a pointer.
41522         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41523         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41524         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41525         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41526         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41527         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41528         Update.
41529         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41530         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41531         * lib/vasnprintf.c (VASNPRINTF): Update.
41532         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41533         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41534         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41535         * NEWS: Mention the change.
41536
41537 2009-04-26  Bruno Haible  <bruno@clisp.org>
41538
41539         Simplify calling convention of u*_conv_to_encoding.
41540         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41541         u32_conv_to_encoding): Expect a resultbuf argument and return the
41542         result directly as a pointer.
41543         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41544         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41545         freeing scaled_offsets if mem_iconveha failed.
41546         * lib/unicase/u-casexfrm.h (FUNC): Update.
41547         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41548         * lib/vasnprintf.c (VASNPRINTF): Update.
41549         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41550         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41551         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41552         * NEWS: Mention the change.
41553
41554 2009-04-26  Bruno Haible  <bruno@clisp.org>
41555
41556         Avoid test failures on AIX and OSF/1.
41557         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41558         malloc(0).
41559         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41560         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41561         Likewise.
41562         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41563         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41564         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41565         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41566         * doc/posix-functions/malloc.texi: Document the portability problem
41567         related to malloc(0).
41568
41569 2009-04-26  Bruno Haible  <bruno@clisp.org>
41570
41571         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41572         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41573         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41574
41575 2009-04-25  Bruno Haible  <bruno@clisp.org>
41576
41577         Avoid link error when creating a namespace clean library.
41578         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41579         as macro with arguments if already defined as an alias.
41580         * lib/signbitf.c (gl_signbitf): Don't undefine.
41581         * lib/signbitd.c (gl_signbitd): Don't undefine.
41582         * lib/signbitl.c (gl_signbitl): Don't undefine.
41583
41584 2009-04-25  Jim Meyering  <meyering@redhat.com>
41585
41586         vc-list-files: fix another quoting bug
41587         * build-aux/vc-list-files: Avoid sed backslash expansion
41588         of pathological directory names.
41589
41590 2009-04-25  Eric Blake  <ebb9@byu.net>
41591
41592         vc-list-files: fix shell quoting error
41593         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41594         timestamp.
41595
41596 2009-04-25  Jim Meyering  <meyering@redhat.com>
41597
41598         vc-list-files: restore lost functionality with subdir argument
41599         * build-aux/vc-list-files: When given a non-"." sub-directory
41600         argument, substitute the $dir/ prefix back onto each resulting name.
41601         Otherwise, coreutils' root_tests check would fail.
41602
41603 2009-04-24  Eric Blake  <ebb9@byu.net>
41604
41605         vc-list-files: ignore git symlinks
41606         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41607         than ls-files, to ignore git symlinks.
41608
41609         maint.mk: import improvements from m4
41610         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41611         (move_if_change): Delete unused macro.
41612         (news-date-check, vc-diff-check): Support VPATH builds.
41613         (announcement): Likewise.  Split --bootstrap-tools list...
41614         (boostrap-tools): ...into separate list, which can be overridden
41615         in cfg.mk.
41616         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41617         requiring dependency on useless-if-before-free module.
41618         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41619         Support VPATH builds.
41620
41621 2009-04-24  Jim Meyering  <meyering@redhat.com>
41622
41623         maint.mk: remove coreutils-specific rules and variables
41624         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41625         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41626         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41627
41628         maint.mk: remove obsolete rule
41629         * top/maint.mk (rel-check): Remove rule.
41630         (WGET, WGETFLAGS): Remove now-unused variables.
41631
41632 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41633
41634         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41635         consistency.
41636
41637         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41638         '$(PATH_SEPARATOR)' instead of ':'.
41639
41640 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41641
41642         * lib/getopt1.c (main): Use 'const' for static array.
41643
41644 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41645
41646         * top/maint.mk: Sync with coreutils.
41647         * NEWS: Explain incompatibilities.
41648
41649 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41650             Bruno Haible  <bruno@clisp.org>
41651
41652         Fix cross-compilation results.
41653         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41654         statement, as third argument of AC_TRY_RUN.
41655         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41656         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41657         Likewise.
41658         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41659         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41660         Likewise.
41661         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41662         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41663         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41664
41665 2009-04-20  Bruno Haible  <bruno@clisp.org>
41666
41667         Avoid test failure on mingw.
41668         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41669
41670 2009-04-20  Bruno Haible  <bruno@clisp.org>
41671
41672         Avoid compilation error on mingw.
41673         * modules/localename-tests (Depends-on): Add locale.
41674
41675 2009-04-19  Bruno Haible  <bruno@clisp.org>
41676
41677         Support for building a shared library on Windows platforms.
41678         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41679         (main): Test the presence of UNINORM_NFC here.
41680         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41681         (main): Test the presence of UNINORM_NFD here.
41682         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41683         (main): Test the presence of UNINORM_NFKC here.
41684         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41685         (main): Test the presence of UNINORM_NFKD here.
41686
41687 2009-04-19  Bruno Haible  <bruno@clisp.org>
41688
41689         Avoid a compiler warning.
41690         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41691         Change type of variable 'sequence'.
41692
41693 2009-04-19  Bruno Haible  <bruno@clisp.org>
41694
41695         * modules/configmake (Makefile.am): When the contents of configmake.h
41696         does not change, arrange to preserve its modification time.
41697
41698 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41699
41700         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41701         gettext domain.
41702
41703 2009-04-16  Jim Meyering  <meyering@redhat.com>
41704
41705         useless-if-before-free: improve conversion code
41706         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41707         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41708
41709 2009-04-14  Bruno Haible  <bruno@clisp.org>
41710
41711         * modules/fcntl (Depends-on): Add extensions.
41712         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41713
41714 2009-04-12  Ben Pfaff  <blp@gnu.org>
41715
41716         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41717         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41718
41719 2009-03-20  Ben Pfaff  <blp@gnu.org>
41720
41721         Make rename replace existing destinations on Windows.
41722         * m4/rename.m4: Add test for Mingw.
41723         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41724         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41725         * doc/posix-functions/rename.texi: Document.
41726
41727 2009-04-10  Bruno Haible  <bruno@clisp.org>
41728
41729         New include file "iconveh.h".
41730         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41731         * lib/striconveh.h: Include it.
41732         (enum iconv_ilseq_handler): Remove definition.
41733         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41734         striconveh.h.
41735         * lib/striconveha.c: Include striconveh.h.
41736         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41737         * modules/striconveh (Files): Add lib/iconveh.h.
41738         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41739         lib/striconveh.h.
41740
41741 2009-04-10  Bruno Haible  <bruno@clisp.org>
41742
41743         * lib/uniconv.h: Update comment.
41744
41745 2009-04-10  Bruno Haible  <bruno@clisp.org>
41746
41747         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41748         always.
41749         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41750         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41751         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41752         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41753         "unistring-notinline.h", so that the function gets defined always.
41754         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41755         * lib/unistr/u8-uctomb.c: Likewise.
41756         * lib/unistr/u16-mbtouc.c: Likewise.
41757         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41758         * lib/unistr/u16-uctomb.c: Likewise.
41759         * lib/unistr/u32-mbtouc.c: Likewise.
41760         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41761         * lib/unistr/u32-uctomb.c: Likewise.
41762
41763 2009-04-10  Bruno Haible  <bruno@clisp.org>
41764
41765         Mark 'utime' obsolete.
41766         * modules/utime (Status, Notice): New sections.
41767         Suggested by Jim Meyering.
41768
41769         Fix cross-compile guess for utime test.
41770         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41771         autoconf.
41772         * doc/posix-functions/utime.texi: Give more precisions.
41773         Reported by Jan <ipif@ymail.com>.
41774
41775 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41776
41777         filevercmp: correct today's change
41778         * lib/filevercmp.c: Also handle coreutils' test inputs.
41779         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41780
41781         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41782         for reporting it.
41783         * lib/filevercmp.c: Special handle for "", "." and "..".
41784         * tests/test-filevercmp.c: Enlarge the set suite.
41785
41786 2009-04-07  Jim Meyering  <meyering@redhat.com>
41787
41788         useless-if-before-free: show how to remove braced useless free, too
41789         * build-aux/useless-if-before-free: still only in a comment, though.
41790
41791 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41792
41793         maint.mk: import changes to syntax-check macros from coreutils
41794         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41795         Use them in the relevant macros.
41796
41797 2009-04-06  Bruno Haible  <bruno@clisp.org>
41798
41799         Fix unportable use of bit-fields.
41800         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41801         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41802         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41803
41804 2009-04-06  Bruno Haible  <bruno@clisp.org>
41805
41806         Avoid test failures on AIX and OSF/1.
41807         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41808         that malloc(0) = NULL.
41809         * tests/unicase/test-u8-tolower.c (check): Likewise.
41810         * tests/unicase/test-u8-totitle.c (check): Likewise.
41811         * tests/unicase/test-u8-toupper.c (check): Likewise.
41812         * tests/unicase/test-u16-casefold.c (check): Likewise.
41813         * tests/unicase/test-u16-tolower.c (check): Likewise.
41814         * tests/unicase/test-u16-totitle.c (check): Likewise.
41815         * tests/unicase/test-u16-toupper.c (check): Likewise.
41816         * tests/unicase/test-u32-casefold.c (check): Likewise.
41817         * tests/unicase/test-u32-tolower.c (check): Likewise.
41818         * tests/unicase/test-u32-totitle.c (check): Likewise.
41819         * tests/unicase/test-u32-toupper.c (check): Likewise.
41820         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41821         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41822         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41823         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41824         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41825         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41826         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41827         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41828         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41829         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41830         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41831         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41832
41833 2009-04-05  Bruno Haible  <bruno@clisp.org>
41834
41835         Work around an autoconf limitation.
41836         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41837         comment line if it would be longer than 3 KB.
41838
41839 2009-04-05  Bruno Haible  <bruno@clisp.org>
41840
41841         Avoid test failure with libiconv-1.13.
41842         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41843         of the expected test results.
41844
41845 2009-04-05  Bruno Haible  <bruno@clisp.org>
41846
41847         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41848         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41849         that it should be installed.
41850
41851 2009-04-05  Bruno Haible  <bruno@clisp.org>
41852
41853         * gnulib-tool: New option --copy-file.
41854         (func_usage): Document it.
41855         (func_dest_tmpfilename): Moved out of func_import.
41856         (func_add_file, func_update_file): New functions, extracted from
41857         func_import.
41858         (func_import): Update.
41859
41860 2009-04-05  Karl Berry  <karl@gnu.org>
41861
41862         * README: prominently mention gnulib-tool.
41863         Rearrange sections so getting the code is near the top.
41864
41865 2009-04-05  Bruno Haible  <bruno@clisp.org>
41866
41867         * lib/unicase.h: Mention u*_cmp2.
41868         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41869         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41870         * lib/unicase/ulc-casecmp.c: Likewise.
41871         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41872         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41873         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41874         unistr/u8-cmp.
41875         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41876         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41877         unistr/u16-cmp.
41878         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41879         unistr/u32-cmp.
41880
41881         * lib/uninorm.h: Mention u*_cmp2.
41882         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41883         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41884         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41885         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41886         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41887         unistr/u8-cmp.
41888         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41889         unistr/u16-cmp.
41890         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41891         unistr/u32-cmp.
41892
41893         New module 'unistr/u32-cmp2'.
41894         * lib/unistr/u32-cmp2.c: New file.
41895         * modules/unistr/u32-cmp2: New file.
41896
41897         New module 'unistr/u16-cmp2'.
41898         * lib/unistr/u16-cmp2.c: New file.
41899         * modules/unistr/u16-cmp2: New file.
41900
41901         New module 'unistr/u8-cmp2'.
41902         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41903         * lib/unistr/u8-cmp2.c: New file.
41904         * lib/unistr/u-cmp2.h: New file.
41905         * modules/unistr/u8-cmp2: New file.
41906
41907 2009-04-05  Bruno Haible  <bruno@clisp.org>
41908
41909         * lib/unictype.h (uc_property_is_valid): New macro.
41910         * tests/unictype/test-pr_byname.c (main): Use it.
41911
41912         * lib/unistr.h: Doc fixes.
41913         * lib/uniconv.h: Doc fixes.
41914         * lib/unictype.h: Doc fixes.
41915
41916 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41917
41918         Port coreutils 7.2 to Solaris 8.
41919
41920         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41921         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41922         for Solaris 8.  This is a bit of a hack, as it means it's the
41923         caller's responsibility to add -lnsl if needed, but most likely it
41924         won't be needed since only getaddrinfo uses this and getaddrinfo
41925         isn't needed on Solaris 8.
41926
41927         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41928         problem to Solaris 8 encountered with coreutils 7.2, which
41929         resulted in a message "fnmatch.c:292: warning: passing argument 4
41930         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41931         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41932
41933 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41934
41935         * m4/ld-version-script.m4: Add FIXME comment.
41936
41937 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41938
41939         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41940         SOVERSION variable.
41941
41942 2009-04-02  Bruno Haible  <bruno@clisp.org>
41943
41944         * Makefile (info, html, dvi, pdf): Combine the rules.
41945         Suggested by Jim Meyering.
41946
41947 2009-04-01  Bruno Haible  <bruno@clisp.org>
41948
41949         * Makefile (info, html, dvi, pdf): New targets.
41950         Reported by Reuben Thomas <rrt@sc3d.org>.
41951
41952 2009-04-01  Bruno Haible  <bruno@clisp.org>
41953
41954         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41955         can be put into PATH.
41956         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41957
41958 2009-04-01  Bruno Haible  <bruno@clisp.org>
41959
41960         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41961
41962 2009-04-01  Bruno Haible  <bruno@clisp.org>
41963
41964         Rename module 'visibility'.
41965         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41966         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41967         * doc/gnulib.texi: Update.
41968         * MODULES.html.sh (Misc): Update.
41969         * NEWS: Mention the change.
41970
41971 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41972
41973         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41974         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41975         Eric Blake <ebb9@byu.net> for review.
41976         * MODULES.html.sh: Add lib-msvc-compat.
41977         * doc/gnulib.texi: Link to new section.
41978         * m4/ld-output-def.m4: New file.
41979         * doc/ld-output-def.texi: New file.
41980
41981 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41982
41983         Rename ld-version-script to lib-symbol-versions.  Suggested by
41984         Bruno Haible <bruno@clisp.org>.
41985         * modules/ld-version-script: Renamed to lib-symbol-versions.
41986         * doc/ld-version-script.texi: Fix module name.
41987         * MODULES.html.sh: Add lib-symbol-versions.
41988
41989 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41990
41991         * modules/u64-tests: New file.
41992         * tests/test-u64.c: New file.
41993
41994 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41995
41996         * MODULES.html.sh: Mention u64.
41997         * modules/u64: New module.
41998         * modules/crypto/sha512: Depend on u64 module instead of providing
41999         u64.h.
42000
42001 2009-03-27  Eric Blake  <ebb9@byu.net>
42002
42003         test-strerror: make debugging EAI_SYSTEM easier
42004         * modules/getaddrinfo-tests (Depends-on): Add strerror.
42005         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
42006         failure was EAI_SYSTEM.
42007
42008 2009-03-25  Bruno Haible  <bruno@clisp.org>
42009
42010         Fix a problem with --enable-relocatable on Solaris 7.
42011         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
42012         since 2008-02-24.
42013
42014 2009-03-25  Eric Blake  <ebb9@byu.net>
42015
42016         test-sockets: avoid gcc warning
42017         * tests/test-sockets.c (main): Silence compiler warning.
42018
42019 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
42020
42021         New modules nproc, pthread, contributed by Glen Lenker.
42022
42023         * MODULES.html.sh: Add pthread, nproc.
42024         * lib/nproc.c: New file.
42025         * lib/nproc.h: New file.
42026         * lib/pthread.in.h: New file.
42027         * m4/pthread.m4: New file.
42028         * modules/nproc: New file.
42029         * modules/pthread: New file.
42030
42031 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42032
42033         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
42034         New variable.
42035
42036 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
42037
42038         filevercmp: handle simple~ and numbered.~3~ backup suffixes
42039         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
42040         * tests/test-filevercmp.c: Add tests for backup suffixes.
42041
42042 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42043
42044         * modules/stdlib (Depends-on): Add stdint, needed when defining
42045         struct random_data on, for example, HP-UX 10.20.  Reported by
42046         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42047
42048 2009-03-24  Simon Josefsson  <simon@josefsson.org>
42049
42050         * lib/readline.c (readline): Call fflush on stdout after printing
42051         prompt.
42052
42053 2009-03-20  Bruno Haible  <bruno@clisp.org>
42054
42055         Remove dependency from 'close' module to -lws2_32 on native Windows.
42056         * lib/close-hook.h: New file.
42057         * lib/close-hook.c: New file.
42058         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
42059         w32sock.h.
42060         (_gl_close_fd_maybe_socket): Remove function.
42061         (rpl_close): Invoke execute_all_close_hooks instead of
42062         _gl_close_fd_maybe_socket.
42063         * lib/sockets.c: Include close-hook.h, w32sock.h.
42064         (close_fd_maybe_socket): New function, essentially from lib/close.c.
42065         (close_sockets_hook): New variable.
42066         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
42067         (gl_sockets_cleanup): Unregister it.
42068         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
42069         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
42070         * modules/close-hook: New file.
42071         * modules/close (Files): Remove lib/w32sock.h.
42072         (Depends-on): Add close-hook.
42073         (Link): Remove section.
42074         * modules/sockets (Files): Add lib/w32sock.h.
42075         (Depends-on): Add close-hook.
42076         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
42077         invocation.
42078         * NEWS: Mention that LIB_CLOSE is gone.
42079
42080 2009-03-23  Eric Blake  <ebb9@byu.net>
42081
42082         signal-tests: test previous patch
42083         * tests/test-signal.c: New file.
42084         * modules/signal-tests: Likewise.
42085
42086         signal.h: always support 'volatile sig_atomic_t'
42087         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
42088         (gl_SIGNAL_H_DEFAULTS): Add a default.
42089         * modules/signal (Makefile.am): Substitute if needed.
42090         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
42091         users can blindly add volatile.
42092         * doc/posix-headers/signal.texi (signal.h): Document it.
42093         Reported by Matthew Woehlke.
42094
42095 2009-03-23  Jim Meyering  <meyering@redhat.com>
42096
42097         pathmax: PATH_MAX: use pathconf only when available
42098         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
42099         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
42100         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
42101         This avoids a link failure in a PSP cross-compilation environment
42102         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
42103
42104         * lib/vasnprintf.c (divide): Fix typo in comment.
42105
42106 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42107
42108         * gnulib-tool (func_filter_filelist): Fix comment.
42109
42110 2009-03-20  Bruno Haible  <bruno@clisp.org>
42111
42112         Make sockets.h self-contained.
42113         * lib/sockets.c: Include sockets.h first.
42114         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
42115
42116 2009-03-19  Eric Blake  <ebb9@byu.net>
42117
42118         doc: mention more functions added in cygwin 1.7.0
42119         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
42120         addition.
42121         * doc/posix-functions/log2f.texi: Likewise.
42122
42123 2009-03-19  Jim Meyering  <meyering@redhat.com>
42124
42125         fsusage: avoid syntax error due to statement-before-declaration
42126         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
42127         after all declarations.  Reported by Matthew Woehlke in
42128         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
42129
42130 2009-03-18  Eric Blake  <ebb9@byu.net>
42131
42132         build-aux/compile: sync from automake
42133         * build-aux/compile: New file, from automake.
42134         * config/srclist.txt: Mention build-aux/compile.
42135
42136 2009-03-17  Bruno Haible  <bruno@clisp.org>
42137
42138         * lib/git-merge-changelog.c: Fix typo in comment.
42139         Reported by Reuben Thomas <rrt@sc3d.org>.
42140
42141 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
42142
42143         * m4/regex.m4: update and improve help for
42144         --without-included-regex.
42145
42146 2009-03-17  Simon Josefsson  <simon@josefsson.org>
42147
42148         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
42149         failure on missing include files.
42150
42151 2009-03-17  Eric Blake  <ebb9@byu.net>
42152
42153         doc: mention more functions added in cygwin 1.7.0
42154         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
42155         addition.
42156         * doc/posix-functions/fwscanf.texi: Likewise.
42157         * doc/posix-functions/swprintf.texi: Likewise.
42158         * doc/posix-functions/swscanf.texi: Likewise.
42159         * doc/posix-functions/vfwprintf.texi: Likewise.
42160         * doc/posix-functions/vfwscanf.texi: Likewise.
42161         * doc/posix-functions/vswprintf.texi: Likewise.
42162         * doc/posix-functions/vswscanf.texi: Likewise.
42163         * doc/posix-functions/vwprintf.texi: Likewise.
42164         * doc/posix-functions/vwscanf.texi: Likewise.
42165         * doc/posix-functions/wcscasecmp.texi: Likewise.
42166         * doc/posix-functions/wcsdup.texi: Likewise.
42167         * doc/posix-functions/wcsftime.texi: Likewise.
42168         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42169         * doc/posix-functions/wprintf.texi: Likewise.
42170         * doc/posix-functions/wscanf.texi: Likewise.
42171         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42172
42173 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42174
42175         maint.mk: really add $(AM_MAKEFLAGS)
42176         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42177         was inadvertently omitted in the last commit.
42178         Spotted by Bruno Haible.
42179
42180         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42181         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42182         $(AM_MAKEFLAGS)' rather than plain `make'.
42183
42184         gnulib-tool: execute $MAKE not make
42185         * gnulib-tool: Default $MAKE to 'make'.
42186         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42187         than make.  Initialize $MAKE in the do-autobuild script.
42188
42189         gnulib-tool: use $MAKE not make in generated files
42190         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42191         make, in generated files.  Initialize $MAKE in the do-autobuild
42192         script.
42193
42194         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42195
42196         GNUmakefile: disable parallelism only for multiple, recursive targets
42197         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42198         additions in the Makefile.
42199         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42200         by Automake.
42201         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42202         are listed on the command line and at least one of them is
42203         listed in $(ALL_RECURSIVE_TARGETS).
42204
42205 2009-03-14  Bruno Haible  <bruno@clisp.org>
42206
42207         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42208         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42209         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42210         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42211         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42212         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42213         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42214         unistr/u8-uctomb.
42215         * modules/unistr/u8-strchr (Depends-on): Likewise.
42216         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42217         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42218         unistr/u16-uctomb.
42219         * modules/unistr/u16-strchr (Depends-on): Likewise.
42220         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42221
42222 2009-03-12  Bruno Haible  <bruno@clisp.org>
42223
42224         Work around select() bug on Interix 3.5.
42225         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42226         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42227         * m4/select.m4: New file.
42228         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42229         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42230         * modules/select (Files): Add m4/select.m4.
42231         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42232         * modules/nanosleep (Depends-on): Add select.
42233         * modules/poll (Depends-on): Likewise.
42234         * doc/posix-functions/select.texi: Mention the Interix bug.
42235         Reported by Markus Duft <mduft@gentoo.org>.
42236
42237         * lib/select.c: Renamed from lib/winsock-select.c.
42238         * modules/select (Files): Add lib/select.c, remove
42239         lib/winsock-select.c.
42240         (configure.ac): Update.
42241
42242 2009-03-12  Jim Meyering  <meyering@redhat.com>
42243
42244         avoid gcc warnings about unused macro definitions
42245         * lib/readtokens.c (STREQ): Remove unused definition.
42246         * lib/xmalloc.c (SIZE_MAX): Likewise.
42247         * lib/openat-die.c (N_): Likewise.
42248         * lib/mountlist.c (SIZE_MAX): Remove definition.
42249         Instead, include <stdint.h>.
42250         * lib/readutmp.c: Likewise.
42251         * modules/readutmp (Depends-on): Add stdint.
42252         * modules/mountlist (Depends-on): Add stdint.
42253         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42254
42255 2009-03-10  Bruno Haible  <bruno@clisp.org>
42256
42257         Tests for module 'mbmemcasecoll'.
42258         * modules/mbmemcasecoll-tests: New file.
42259         * tests/test-mbmemcasecoll1.sh: New file.
42260         * tests/test-mbmemcasecoll2.sh: New file.
42261         * tests/test-mbmemcasecoll3.sh: New file.
42262         * tests/test-mbmemcasecoll.c: New file.
42263
42264         New module 'mbmemcasecoll'.
42265         * lib/mbmemcasecoll.h: New file.
42266         * lib/mbmemcasecoll.c: New file.
42267         * modules/mbmemcasecoll: New file.
42268
42269         * tests/test-mbmemcasecmp.h: New file, extracted from
42270         tests/test-mbmemcasecmp.c.
42271         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42272         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42273         (main): Update.
42274         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42275
42276 2009-03-09  Bruno Haible  <bruno@clisp.org>
42277
42278         Tests for module 'mbmemcasecmp'.
42279         * modules/mbmemcasecmp-tests: New file.
42280         * tests/test-mbmemcasecmp1.sh: New file.
42281         * tests/test-mbmemcasecmp2.sh: New file.
42282         * tests/test-mbmemcasecmp3.sh: New file.
42283         * tests/test-mbmemcasecmp.c: New file.
42284
42285         New module 'mbmemcasecmp'.
42286         * lib/mbmemcasecmp.h: New file.
42287         * lib/mbmemcasecmp.c: New file.
42288         * modules/mbmemcasecmp: New file.
42289
42290 2009-03-09  Bruno Haible  <bruno@clisp.org>
42291
42292         Tests for module 'unicase/ulc-casecoll'.
42293         * modules/unicase/ulc-casecoll-tests: New file.
42294         * tests/unicase/test-ulc-casecoll1.sh: New file.
42295         * tests/unicase/test-ulc-casecoll2.sh: New file.
42296         * tests/unicase/test-ulc-casecoll.c: New file.
42297
42298         New module 'unicase/ulc-casecoll'.
42299         * lib/unicase.h (ulc_casecoll): New declaration.
42300         * lib/unicase/ulc-casecoll.c: New file.
42301         * modules/unicase/ulc-casecoll: New file.
42302
42303         New module 'unicase/ulc-casexfrm'.
42304         * lib/unicase.h (ulc_casexfrm): New declaration.
42305         * lib/unicase/ulc-casexfrm.c: New file.
42306         * modules/unicase/ulc-casexfrm: New file.
42307
42308 2009-03-09  Bruno Haible  <bruno@clisp.org>
42309
42310         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42311         invocations.
42312
42313         * m4/mbscasecmp.m4: Remove file.
42314         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42315         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42316
42317         * m4/mbscasestr.m4: Remove file.
42318         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42319         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42320
42321         * m4/mbschr.m4: Remove file.
42322         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42323         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42324
42325         * m4/mbscspn.m4: Remove file.
42326         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42327         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42328
42329         * m4/mbslen.m4: Remove file.
42330         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42331         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42332
42333         * m4/mbsncasecmp.m4: Remove file.
42334         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42335         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42336
42337         * m4/mbsnlen.m4: Remove file.
42338         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42339         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42340
42341         * m4/mbspbrk.m4: Remove file.
42342         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42343         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42344
42345         * m4/mbspcasecmp.m4: Remove file.
42346         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42347         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42348
42349         * m4/mbsrchr.m4: Remove file.
42350         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42351         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42352
42353         * m4/mbssep.m4: Remove file.
42354         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42355         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42356
42357         * m4/mbsspn.m4: Remove file.
42358         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42359         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42360
42361         * m4/mbsstr.m4: Remove file.
42362         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42363         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42364
42365         * m4/mbstok_r.m4: Remove file.
42366         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42367         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42368
42369         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42370
42371         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42372         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42373
42374         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42375
42376 2009-03-08  Bruno Haible  <bruno@clisp.org>
42377
42378         Tests for module 'unicase/ulc-casecmp'.
42379         * modules/unicase/ulc-casecmp-tests: New file.
42380         * tests/unicase/test-ulc-casecmp1.sh: New file.
42381         * tests/unicase/test-ulc-casecmp2.sh: New file.
42382         * tests/unicase/test-ulc-casecmp.c: New file.
42383
42384         New module 'unicase/ulc-casecmp'.
42385         * lib/unicase.h (ulc_casecmp): New declaration.
42386         * lib/unicase/ulc-casecmp.c: New file.
42387         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42388         'const SRC_UNIT *'.
42389         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42390         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42391         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42392         * modules/unicase/ulc-casecmp: New file.
42393
42394         Tests for module 'unicase/u32-is-cased'.
42395         * modules/unicase/u32-is-cased-tests: New file.
42396         * tests/unicase/test-u32-is-cased.c: New file.
42397
42398         Tests for module 'unicase/u16-is-cased'.
42399         * modules/unicase/u16-is-cased-tests: New file.
42400         * tests/unicase/test-u16-is-cased.c: New file.
42401
42402         Tests for module 'unicase/u8-is-cased'.
42403         * modules/unicase/u8-is-cased-tests: New file.
42404         * tests/unicase/test-u8-is-cased.c: New file.
42405         * tests/unicase/test-is-cased.h: New file.
42406
42407         New module 'unicase/u32-is-cased'.
42408         * lib/unicase/u32-is-cased.c: New file.
42409         * modules/unicase/u32-is-cased: New file.
42410
42411         New module 'unicase/u16-is-cased'.
42412         * lib/unicase/u16-is-cased.c: New file.
42413         * modules/unicase/u16-is-cased: New file.
42414
42415         New module 'unicase/u8-is-cased'.
42416         * lib/unicase/u8-is-cased.c: New file.
42417         * lib/unicase/u-is-cased.h: New file.
42418         * modules/unicase/u8-is-cased: New file.
42419
42420         Tests for module 'unicase/u32-is-casefolded'.
42421         * modules/unicase/u32-is-casefolded-tests: New file.
42422         * tests/unicase/test-u32-is-casefolded.c: New file.
42423
42424         Tests for module 'unicase/u16-is-casefolded'.
42425         * modules/unicase/u16-is-casefolded-tests: New file.
42426         * tests/unicase/test-u16-is-casefolded.c: New file.
42427
42428         Tests for module 'unicase/u8-is-casefolded'.
42429         * modules/unicase/u8-is-casefolded-tests: New file.
42430         * tests/unicase/test-u8-is-casefolded.c: New file.
42431         * tests/unicase/test-is-casefolded.h: New file.
42432
42433         New module 'unicase/u32-is-casefolded'.
42434         * lib/unicase/u32-is-casefolded.c: New file.
42435         * modules/unicase/u32-is-casefolded: New file.
42436
42437         New module 'unicase/u16-is-casefolded'.
42438         * lib/unicase/u16-is-casefolded.c: New file.
42439         * modules/unicase/u16-is-casefolded: New file.
42440
42441         New module 'unicase/u8-is-casefolded'.
42442         * lib/unicase/u8-is-casefolded.c: New file.
42443         * modules/unicase/u8-is-casefolded: New file.
42444
42445         Tests for module 'unicase/u32-is-titlecase'.
42446         * modules/unicase/u32-is-titlecase-tests: New file.
42447         * tests/unicase/test-u32-is-titlecase.c: New file.
42448
42449         Tests for module 'unicase/u16-is-titlecase'.
42450         * modules/unicase/u16-is-titlecase-tests: New file.
42451         * tests/unicase/test-u16-is-titlecase.c: New file.
42452
42453         Tests for module 'unicase/u8-is-titlecase'.
42454         * modules/unicase/u8-is-titlecase-tests: New file.
42455         * tests/unicase/test-u8-is-titlecase.c: New file.
42456         * tests/unicase/test-is-titlecase.h: New file.
42457
42458         New module 'unicase/u32-is-titlecase'.
42459         * lib/unicase/u32-is-titlecase.c: New file.
42460         * modules/unicase/u32-is-titlecase: New file.
42461
42462         New module 'unicase/u16-is-titlecase'.
42463         * lib/unicase/u16-is-titlecase.c: New file.
42464         * modules/unicase/u16-is-titlecase: New file.
42465
42466         New module 'unicase/u8-is-titlecase'.
42467         * lib/unicase/u8-is-titlecase.c: New file.
42468         * modules/unicase/u8-is-titlecase: New file.
42469
42470         Tests for module 'unicase/u32-is-lowercase'.
42471         * modules/unicase/u32-is-lowercase-tests: New file.
42472         * tests/unicase/test-u32-is-lowercase.c: New file.
42473
42474         Tests for module 'unicase/u16-is-lowercase'.
42475         * modules/unicase/u16-is-lowercase-tests: New file.
42476         * tests/unicase/test-u16-is-lowercase.c: New file.
42477
42478         Tests for module 'unicase/u8-is-lowercase'.
42479         * modules/unicase/u8-is-lowercase-tests: New file.
42480         * tests/unicase/test-u8-is-lowercase.c: New file.
42481         * tests/unicase/test-is-lowercase.h: New file.
42482
42483         New module 'unicase/u32-is-lowercase'.
42484         * lib/unicase/u32-is-lowercase.c: New file.
42485         * modules/unicase/u32-is-lowercase: New file.
42486
42487         New module 'unicase/u16-is-lowercase'.
42488         * lib/unicase/u16-is-lowercase.c: New file.
42489         * modules/unicase/u16-is-lowercase: New file.
42490
42491         New module 'unicase/u8-is-lowercase'.
42492         * lib/unicase/u8-is-lowercase.c: New file.
42493         * modules/unicase/u8-is-lowercase: New file.
42494
42495         Tests for module 'unicase/u32-is-uppercase'.
42496         * modules/unicase/u32-is-uppercase-tests: New file.
42497         * tests/unicase/test-u32-is-uppercase.c: New file.
42498
42499         Tests for module 'unicase/u16-is-uppercase'.
42500         * modules/unicase/u16-is-uppercase-tests: New file.
42501         * tests/unicase/test-u16-is-uppercase.c: New file.
42502
42503         Tests for module 'unicase/u8-is-uppercase'.
42504         * modules/unicase/u8-is-uppercase-tests: New file.
42505         * tests/unicase/test-u8-is-uppercase.c: New file.
42506         * tests/unicase/test-is-uppercase.h: New file.
42507
42508         New module 'unicase/u32-is-uppercase'.
42509         * lib/unicase/u32-is-uppercase.c: New file.
42510         * modules/unicase/u32-is-uppercase: New file.
42511
42512         New module 'unicase/u16-is-uppercase'.
42513         * lib/unicase/u16-is-uppercase.c: New file.
42514         * modules/unicase/u16-is-uppercase: New file.
42515
42516         New module 'unicase/u8-is-uppercase'.
42517         * lib/unicase/u8-is-uppercase.c: New file.
42518         * modules/unicase/u8-is-uppercase: New file.
42519
42520         New module 'unicase/u32-is-invariant'.
42521         * lib/unicase/u32-is-invariant.c: New file.
42522         * modules/unicase/u32-is-invariant: New file.
42523
42524         New module 'unicase/u16-is-invariant'.
42525         * lib/unicase/u16-is-invariant.c: New file.
42526         * modules/unicase/u16-is-invariant: New file.
42527
42528         New module 'unicase/u8-is-invariant'.
42529         * lib/unicase/u8-is-invariant.c: New file.
42530         * lib/unicase/invariant.h: New file.
42531         * lib/unicase/u-is-invariant.h: New file.
42532         * modules/unicase/u8-is-invariant: New file.
42533
42534         Tests for module 'unicase/u32-casecoll'.
42535         * modules/unicase/u32-casecoll-tests: New file.
42536         * tests/unicase/test-u32-casecoll.c: New file.
42537
42538         Tests for module 'unicase/u16-casecoll'.
42539         * modules/unicase/u16-casecoll-tests: New file.
42540         * tests/unicase/test-u16-casecoll.c: New file.
42541
42542         Tests for module 'unicase/u8-casecoll'.
42543         * modules/unicase/u8-casecoll-tests: New file.
42544         * tests/unicase/test-u8-casecoll.c: New file.
42545
42546         New module 'unicase/u32-casecoll'.
42547         * lib/unicase/u32-casecoll.c: New file.
42548         * modules/unicase/u32-casecoll: New file.
42549
42550         New module 'unicase/u16-casecoll'.
42551         * lib/unicase/u16-casecoll.c: New file.
42552         * modules/unicase/u16-casecoll: New file.
42553
42554         New module 'unicase/u8-casecoll'.
42555         * lib/unicase/u8-casecoll.c: New file.
42556         * lib/unicase/u-casecoll.h: New file.
42557         * modules/unicase/u8-casecoll: New file.
42558
42559         New module 'unicase/u32-casexfrm'.
42560         * lib/unicase/u32-casexfrm.c: New file.
42561         * modules/unicase/u32-casexfrm: New file.
42562
42563         New module 'unicase/u16-casexfrm'.
42564         * lib/unicase/u16-casexfrm.c: New file.
42565         * modules/unicase/u16-casexfrm: New file.
42566
42567         New module 'unicase/u8-casexfrm'.
42568         * lib/unicase/u8-casexfrm.c: New file.
42569         * lib/unicase/u-casexfrm.h: New file.
42570         * modules/unicase/u8-casexfrm: New file.
42571
42572         Tests for module 'unicase/u32-casecmp'.
42573         * modules/unicase/u32-casecmp-tests: New file.
42574         * tests/unicase/test-u32-casecmp.c: New file.
42575
42576         Tests for module 'unicase/u16-casecmp'.
42577         * modules/unicase/u16-casecmp-tests: New file.
42578         * tests/unicase/test-u16-casecmp.c: New file.
42579
42580         Tests for module 'unicase/u8-casecmp'.
42581         * modules/unicase/u8-casecmp-tests: New file.
42582         * tests/unicase/test-u8-casecmp.c: New file.
42583         * tests/unicase/test-casecmp.h: New file.
42584
42585         New module 'unicase/u32-casecmp'.
42586         * lib/unicase/u32-casecmp.c: New file.
42587         * modules/unicase/u32-casecmp: New file.
42588
42589         New module 'unicase/u16-casecmp'.
42590         * lib/unicase/u16-casecmp.c: New file.
42591         * modules/unicase/u16-casecmp: New file.
42592
42593         New module 'unicase/u8-casecmp'.
42594         * lib/unicase/u8-casecmp.c: New file.
42595         * lib/unicase/u-casecmp.h: New file.
42596         * modules/unicase/u8-casecmp: New file.
42597
42598         Tests for module 'unicase/u32-casefold'.
42599         * modules/unicase/u32-casefold-tests: New file.
42600         * tests/unicase/test-u32-casefold.c: New file.
42601
42602         Tests for module 'unicase/u16-casefold'.
42603         * modules/unicase/u16-casefold-tests: New file.
42604         * tests/unicase/test-u16-casefold.c: New file.
42605
42606         Tests for module 'unicase/u8-casefold'.
42607         * modules/unicase/u8-casefold-tests: New file.
42608         * tests/unicase/test-u8-casefold.c: New file.
42609
42610         New module 'unicase/u32-casefold'.
42611         * lib/unicase/u32-casefold.c: New file.
42612         * modules/unicase/u32-casefold: New file.
42613
42614         New module 'unicase/u16-casefold'.
42615         * lib/unicase/u16-casefold.c: New file.
42616         * modules/unicase/u16-casefold: New file.
42617
42618         New module 'unicase/u8-casefold'.
42619         * lib/unicase/u8-casefold.c: New file.
42620         * lib/unicase/u-casefold.h: New file.
42621         * modules/unicase/u8-casefold: New file.
42622
42623         New module 'unicase/tocasefold'.
42624         * lib/unicase/casefold.h: New file.
42625         * lib/unicase/tocasefold.c: New file.
42626         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42627         * modules/unicase/tocasefold: New file.
42628
42629         Tests for module 'unicase/u32-totitle'.
42630         * modules/unicase/u32-totitle-tests: New file.
42631         * tests/unicase/test-u32-totitle.c: New file.
42632
42633         Tests for module 'unicase/u16-totitle'.
42634         * modules/unicase/u16-totitle-tests: New file.
42635         * tests/unicase/test-u16-totitle.c: New file.
42636
42637         Tests for module 'unicase/u8-totitle'.
42638         * modules/unicase/u8-totitle-tests: New file.
42639         * tests/unicase/test-u8-totitle.c: New file.
42640
42641         New module 'unicase/u32-totitle'.
42642         * lib/unicase/u32-totitle.c: New file.
42643         * modules/unicase/u32-totitle: New file.
42644
42645         New module 'unicase/u16-totitle'.
42646         * lib/unicase/u16-totitle.c: New file.
42647         * modules/unicase/u16-totitle: New file.
42648
42649         New module 'unicase/u8-totitle'.
42650         * lib/unicase/u8-totitle.c: New file.
42651         * lib/unicase/u-totitle.h: New file.
42652         * modules/unicase/u8-totitle: New file.
42653
42654         Tests for module 'unicase/u32-tolower'.
42655         * modules/unicase/u32-tolower-tests: New file.
42656         * tests/unicase/test-u32-tolower.c: New file.
42657
42658         Tests for module 'unicase/u16-tolower'.
42659         * modules/unicase/u16-tolower-tests: New file.
42660         * tests/unicase/test-u16-tolower.c: New file.
42661
42662         Tests for module 'unicase/u8-tolower'.
42663         * modules/unicase/u8-tolower-tests: New file.
42664         * tests/unicase/test-u8-tolower.c: New file.
42665
42666         New module 'unicase/u32-tolower'.
42667         * lib/unicase/u32-tolower.c: New file.
42668         * modules/unicase/u32-tolower: New file.
42669
42670         New module 'unicase/u16-tolower'.
42671         * lib/unicase/u16-tolower.c: New file.
42672         * modules/unicase/u16-tolower: New file.
42673
42674         New module 'unicase/u8-tolower'.
42675         * lib/unicase/u8-tolower.c: New file.
42676         * modules/unicase/u8-tolower: New file.
42677
42678         Tests for module 'unicase/u32-toupper'.
42679         * modules/unicase/u32-toupper-tests: New file.
42680         * tests/unicase/test-u32-toupper.c: New file.
42681
42682         Tests for module 'unicase/u16-toupper'.
42683         * modules/unicase/u16-toupper-tests: New file.
42684         * tests/unicase/test-u16-toupper.c: New file.
42685
42686         Tests for module 'unicase/u8-toupper'.
42687         * modules/unicase/u8-toupper-tests: New file.
42688         * tests/unicase/test-u8-toupper.c: New file.
42689
42690         New module 'unicase/u32-toupper'.
42691         * lib/unicase/u32-toupper.c: New file.
42692         * modules/unicase/u32-toupper: New file.
42693
42694         New module 'unicase/u16-toupper'.
42695         * lib/unicase/u16-toupper.c: New file.
42696         * modules/unicase/u16-toupper: New file.
42697
42698         New module 'unicase/u8-toupper'.
42699         * lib/unicase/u8-toupper.c: New file.
42700         * modules/unicase/u8-toupper: New file.
42701
42702         New module 'unicase/u32-casemap'.
42703         * lib/unicase/u32-casemap.c: New file.
42704         * modules/unicase/u32-casemap: New file.
42705
42706         New module 'unicase/u16-casemap'.
42707         * lib/unicase/u16-casemap.c: New file.
42708         * modules/unicase/u16-casemap: New file.
42709
42710         New module 'unicase/u8-casemap'.
42711         * lib/unicase/unicasemap.h: New file.
42712         * lib/unicase/u8-casemap.c: New file.
42713         * lib/unicase/u-casemap.h: New file.
42714         * modules/unicase/u8-casemap: New file.
42715
42716         New module 'unicase/special-casing'.
42717         * lib/unicase/special-casing.h: New file.
42718         * lib/unicase/special-casing.c: New file.
42719         * lib/unicase/special-casing-table.gperf: New file, generated by
42720         gen-uni-tables.c.
42721         * modules/unicase/special-casing: New file.
42722
42723         Tests for module 'unicase/locale-language'.
42724         * modules/unicase/locale-language-tests: New file.
42725         * tests/unicase/test-locale-language.sh: New file.
42726         * tests/unicase/test-locale-language.c: New file.
42727
42728         New module 'unicase/locale-language'.
42729         * lib/unicase/locale-language.c: New file.
42730         * lib/unicase/locale-languages.gperf: New file.
42731         * modules/unicase/locale-language: New file.
42732
42733         Generate more tables for case conversion and case folding.
42734         * lib/gen-uni-tables.c (SCC_*): New enum items.
42735         (struct special_casing_rule): New type.
42736         (casing_rules, num_casing_rules, allocated_casing_rules): New
42737         variables.
42738         (add_casing_rule, fill_casing_rules): New functions.
42739         (struct casefold_rule): New type.
42740         (casefolding_rules, num_casefolding_rules,
42741         allocated_casefolding_rules): New variables.
42742         (fill_casefolding_rules): New function.
42743         (unicode_casefold): New variable.
42744         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42745         sort_casing_rules, output_casing_rules): New functions.
42746         (main): Accept to more arguments: SpecialCasing.txt and
42747         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42748         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42749         Output mapping for casefolding.
42750
42751         * lib/unicase.h: Include stdbool.h, uninorm.h.
42752         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42753         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42754         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42755         arguments.
42756         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42757         resultp arguments.
42758         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42759         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42760         resultp arguments.
42761         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42762         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42763         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42764         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42765         declarations.
42766         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42767
42768 2009-03-08  Bruno Haible  <bruno@clisp.org>
42769
42770         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42771         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42772         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42773         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42774
42775 2009-03-07  Bruno Haible  <bruno@clisp.org>
42776
42777         Adjust u*_normcmp, u*_normcoll API.
42778         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42779         u16_normcoll, u32_normcoll): Change failure conventions.
42780         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42781         errno and return -1.
42782         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42783
42784 2009-03-07  Bruno Haible  <bruno@clisp.org>
42785
42786         Tests for module 'uninorm/u32-normcoll'.
42787         * modules/uninorm/u32-normcoll-tests: New file.
42788         * tests/uninorm/test-u32-normcoll.c: New file.
42789
42790         Tests for module 'uninorm/u16-normcoll'.
42791         * modules/uninorm/u16-normcoll-tests: New file.
42792         * tests/uninorm/test-u16-normcoll.c: New file.
42793
42794         Tests for module 'uninorm/u8-normcoll'.
42795         * modules/uninorm/u8-normcoll-tests: New file.
42796         * tests/uninorm/test-u8-normcoll.c: New file.
42797
42798 2009-03-07  Bruno Haible  <bruno@clisp.org>
42799
42800         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42801         tests/uninorm/test-u32-normcmp.c.
42802         * tests/uninorm/test-u32-normcmp.c: Include it.
42803         (test_nonascii): New function, extracted from main. Add some more
42804         tests.
42805         (main): Invoke test_ascii and test_nonascii.
42806         * modules/uninorm/u32-normcmp-tests (Files): Add
42807         tests/uninorm/test-u32-normcmp.h.
42808         (Depends-on): Remove uninorm/u32-normcmp.
42809
42810         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42811         tests/uninorm/test-u16-normcmp.c.
42812         * tests/uninorm/test-u16-normcmp.c: Include it.
42813         (test_nonascii): New function, extracted from main. Add some more
42814         tests.
42815         (main): Invoke test_ascii and test_nonascii.
42816         * modules/uninorm/u16-normcmp-tests (Files): Add
42817         tests/uninorm/test-u16-normcmp.h.
42818         (Depends-on): Remove uninorm/u16-normcmp.
42819
42820         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42821         tests/uninorm/test-u8-normcmp.c.
42822         * tests/uninorm/test-u8-normcmp.c: Include it.
42823         (test_nonascii): New function, extracted from main. Add some more
42824         tests.
42825         (main): Invoke test_ascii and test_nonascii.
42826         * modules/uninorm/u8-normcmp-tests (Files): Add
42827         tests/uninorm/test-u8-normcmp.h.
42828         (Depends-on): Remove uninorm/u8-normcmp.
42829
42830 2009-03-07  Bruno Haible  <bruno@clisp.org>
42831
42832         New module 'uninorm/u32-normcoll'.
42833         * lib/uninorm/u32-normcoll.c: New file.
42834         * modules/uninorm/u32-normcoll: New file.
42835
42836         New module 'uninorm/u16-normcoll'.
42837         * lib/uninorm/u16-normcoll.c: New file.
42838         * modules/uninorm/u16-normcoll: New file.
42839
42840         New module 'uninorm/u8-normcoll'.
42841         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42842         declarations.
42843         * lib/uninorm/u8-normcoll.c: New file.
42844         * lib/uninorm/u-normcoll.h: New file.
42845         * modules/uninorm/u8-normcoll: New file.
42846
42847         New module 'uninorm/u32-normxfrm'.
42848         * lib/uninorm/u32-normxfrm.c: New file.
42849         * modules/uninorm/u32-normxfrm: New file.
42850
42851         New module 'uninorm/u16-normxfrm'.
42852         * lib/uninorm/u16-normxfrm.c: New file.
42853         * modules/uninorm/u16-normxfrm: New file.
42854
42855         New module 'uninorm/u8-normxfrm'.
42856         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42857         declarations.
42858         * lib/uninorm/u8-normxfrm.c: New file.
42859         * lib/uninorm/u-normxfrm.h: New file.
42860         * modules/uninorm/u8-normxfrm: New file.
42861
42862 2009-03-07  Bruno Haible  <bruno@clisp.org>
42863
42864         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42865         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42866         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42867
42868 2009-03-07  Bruno Haible  <bruno@clisp.org>
42869
42870         New module 'memxfrm'.
42871         * lib/memxfrm.h: New file.
42872         * lib/memxfrm.c: New file.
42873         * modules/memxfrm: New file.
42874
42875 2009-03-07  Bruno Haible  <bruno@clisp.org>
42876
42877         New module 'memcmp2'.
42878         * lib/memcmp2.h: New file.
42879         * lib/memcmp2.c: New file.
42880         * modules/memcmp2: New file.
42881
42882 2009-03-07  Bruno Haible  <bruno@clisp.org>
42883
42884         Tests for module 'uninorm/decomposing-form'.
42885         * modules/uninorm/decomposing-form-tests: New file.
42886         * tests/uninorm/test-decomposing-form.c: New file.
42887
42888         New module 'uninorm/decomposing-form'.
42889         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42890         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42891         Add 'decomposing_variant' field.
42892         * lib/uninorm/decomposing-form.c: New file.
42893         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42894         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42895         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42896         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42897         * modules/uninorm/decomposing-form: New file.
42898         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42899         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42900
42901 2009-03-07  Bruno Haible  <bruno@clisp.org>
42902
42903         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42904         strings.
42905
42906 2009-03-06  Bruno Haible  <bruno@clisp.org>
42907
42908         Tests for module 'uninorm/u32-normcmp'.
42909         * tests/uninorm/test-u32-normcmp.c: New file.
42910         * modules/uninorm/u32-normcmp-tests: New file.
42911
42912         Tests for module 'uninorm/u16-normcmp'.
42913         * tests/uninorm/test-u16-normcmp.c: New file.
42914         * modules/uninorm/u16-normcmp-tests: New file.
42915
42916         Tests for module 'uninorm/u8-normcmp'.
42917         * tests/uninorm/test-u8-normcmp.c: New file.
42918         * modules/uninorm/u8-normcmp-tests: New file.
42919
42920         New module 'uninorm/u32-normcmp'.
42921         * lib/uninorm/u32-normcmp.c: New file.
42922         * modules/uninorm/u32-normcmp: New file.
42923
42924         New module 'uninorm/u16-normcmp'.
42925         * lib/uninorm/u16-normcmp.c: New file.
42926         * modules/uninorm/u16-normcmp: New file.
42927
42928         New module 'uninorm/u8-normcmp'.
42929         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42930         declarations.
42931         * lib/uninorm/u8-normcmp.c: New file.
42932         * lib/uninorm/u-normcmp.h: New file.
42933         * modules/uninorm/u8-normcmp: New file.
42934
42935 2009-03-06  Bruno Haible  <bruno@clisp.org>
42936
42937         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42938         Reported by Eric Blake.
42939
42940 2009-03-06  Eric Blake  <ebb9@byu.net>
42941             Bruno Haible  <bruno@clisp.org>
42942
42943         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42944         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42945         condition.
42946         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42947         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42948         condition.
42949         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42950
42951 2009-03-06  Eric Blake  <ebb9@byu.net>
42952
42953         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42954         to avoid compiler warnings.
42955         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42956
42957 2009-03-05  Bruno Haible  <bruno@clisp.org>
42958
42959         * tests/test-ftell.c (main): Disable test beyond end of file on
42960         FreeMiNT.
42961         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42962
42963 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42964
42965         * lib/filevercmp.c: Move hidden files up in ordering.
42966         * tests/test-filevercmp.c: Add tests for hidden files.
42967
42968 2009-03-04  Bruno Haible  <bruno@clisp.org>
42969
42970         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42971         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42972         AM_CFLAGS.
42973         Reported by Simon Josefsson.
42974
42975 2009-03-03  Bruno Haible  <bruno@clisp.org>
42976
42977         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42978         Reported by Simon Josefsson.
42979
42980         * doc/ld-version-script.texi: Update node reference.
42981
42982 2009-03-03  Bruno Haible  <bruno@clisp.org>
42983
42984         * modules/visibility (License): Change to 'unlimited'.
42985         Suggested by Simon Josefsson.
42986
42987 2009-03-03  Jim Meyering  <meyering@redhat.com>
42988
42989         unlinkdir: cannot_unlink_dir may modify process state
42990         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42991         it's neither thread-safe nor appropriate for use in a library.
42992
42993 2009-03-03  Eric Blake  <ebb9@byu.net>
42994
42995         test-closein: silence test under Darwin
42996         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42997         care if it dies from EPIPE or EBADF.
42998
42999 2009-03-03  Bruno Haible  <bruno@clisp.org>
43000
43001         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
43002         earlier.
43003         * doc/visibility.texi: Fix @node and @section.
43004
43005 2009-03-03  Simon Josefsson  <simon@josefsson.org>
43006
43007         * doc/gnulib.texi: Link to sections for ld version script and
43008         visibility.
43009         * doc/visibility.texi: Add @node and @section.
43010         * modules/ld-version-script: New module.
43011         * m4/ld-version-script.m4: New file.
43012         * doc/ld-version-script.texi: New file.
43013
43014 2009-03-02  David Lutterkort  <lutter@redhat.com>
43015
43016         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
43017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43018
43019 2009-03-02  Bruno Haible  <bruno@clisp.org>
43020
43021         * doc/visibility.texi: Mention libtool's -export-symbols option.
43022
43023 2009-03-02  Jim Meyering  <meyering@redhat.com>
43024
43025         announce-gen: new option: --no-print-checksums
43026         * build-aux/announce-gen (usage): Describe it.
43027         (print_checksums): Print a newline here, not in the [*] footnote.
43028         (main): Honor it.
43029
43030 2009-03-01  Bruno Haible  <bruno@clisp.org>
43031
43032         Use socklen_t in the native Windows replacements prototypes.
43033         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
43034         instead of 'int'.
43035         * lib/getsockopt.c (rpl_getsockopt): Likewise.
43036         * lib/setsockopt.c (rpl_setsockopt): Likewise.
43037         * modules/getsockopt (Depends-on): Add socklen.
43038         * modules/setsockopt (Depends-on): Add socklen.
43039
43040 2009-03-01  Bruno Haible  <bruno@clisp.org>
43041
43042         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
43043         least 4.2.
43044
43045 2009-03-01  Eric Blake  <ebb9@byu.net>
43046             Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
43049         error messages.
43050         * lib/wait-process.c (wait_subprocess): Omit error message about
43051         deadly signal sent to the child of termsigp != NULL.
43052
43053 2009-03-01  Eric Blake  <ebb9@byu.net>
43054
43055         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
43056
43057 2009-03-01  Bruno Haible  <bruno@clisp.org>
43058
43059         Avoid a gcc warning.
43060         * tests/test-sched.c (b): Make global.
43061         Reported by Eric Blake.
43062
43063 2009-01-19  Martin Lambers  <marlam@marlam.de>
43064
43065         Provide POSIX semantics for socket timeout options on W32.
43066         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
43067         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
43068         * modules/setsockopt: Depend on sys_time module for struct timeval.
43069         * modules/getsockopt: Depend on sys_time module for struct timeval.
43070
43071 2009-03-01  Simon Josefsson  <simon@josefsson.org>
43072
43073         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
43074         __USE_GNU, for consistency with netdb.in.h.
43075         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43076
43077 2009-03-01  Bruno Haible  <bruno@clisp.org>
43078
43079         More support for FreeMiNT.
43080         * lib/fseeko.c (rpl_fseeko): Complete last commit.
43081         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43082
43083 2009-03-01  Bruno Haible  <bruno@clisp.org>
43084
43085         More support for FreeMiNT.
43086         * lib/fpurge.c (fpurge): Correct last commit.
43087         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43088
43089 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43090
43091         Fix unportable awk script in vc-list-files.
43092         * build-aux/vc-list-files: In the replacement awk script, use
43093         substr with a second argument of 1, not zero.
43094         Report by Simon Josefsson.
43095
43096 2009-02-28  Bruno Haible  <bruno@clisp.org>
43097
43098         More support for FreeMiNT.
43099         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
43100         to FreeMiNT today.
43101         * lib/fwriting.c (fwriting): Likewise.
43102         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
43103
43104 2009-02-28  Bruno Haible  <bruno@clisp.org>
43105
43106         * tests/test-freadseek.c (main): Disable test beyond end of file on
43107         FreeMiNT.
43108         * tests/test-ftello.c (main): Likewise.
43109         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
43110
43111 2009-02-28  Bruno Haible  <bruno@clisp.org>
43112
43113         Add tentative support for FreeMiNT.
43114         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
43115         * lib/fpurge.c (fpurge): Likewise.
43116         * lib/freadable.c (freadable): Likewise.
43117         * lib/freading.c (freading): Likewise.
43118         * lib/freadptr.c (freadptr): Likewise.
43119         * lib/freadseek.c (freadptrinc): Likewise.
43120         * lib/fseeko.c (rpl_fseeko): Likewise.
43121         * lib/fseterr.c (fseterr): Likewise.
43122         * lib/fwritable.c (fwritable): Likewise.
43123         * lib/fwriting.c (fwriting): Likewise.
43124         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
43125         Hourihane.
43126         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43127
43128 2009-02-28  Bruno Haible  <bruno@clisp.org>
43129
43130         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
43131         SIGCHLD.
43132         Reported by Jim Meyering.
43133
43134 2009-02-28  Bruno Haible  <bruno@clisp.org>
43135
43136         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
43137         Mention the results of these tests on various platforms.
43138         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
43139         order.
43140         * doc/posix-functions/printf.texi: Likewise.
43141         * doc/posix-functions/snprintf.texi: Likewise.
43142         * doc/posix-functions/sprintf.texi: Likewise.
43143         * doc/posix-functions/vfprintf.texi: Likewise.
43144         * doc/posix-functions/vprintf.texi: Likewise.
43145         * doc/posix-functions/vsnprintf.texi: Likewise.
43146         * doc/posix-functions/vsprintf.texi: Likewise.
43147         * doc/glibc-functions/obstack_printf.texi: Likewise.
43148         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
43149
43150 2009-02-28  Bruno Haible  <bruno@clisp.org>
43151
43152         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
43153         Reported by Loïc Minier <lool@dooz.org>.
43154
43155 2009-02-27  Bruno Haible  <bruno@clisp.org>
43156
43157         * gnulib-tool (func_import): Make the sed expression used to create the
43158         sed script for updating the .gitignore file POSIX compliant.
43159         Reported by Eric Blake.
43160
43161 2009-02-27  Bruno Haible  <bruno@clisp.org>
43162
43163         * gnulib-tool (sed): Don't alias as "sed --posix".
43164         Reported by Eric Blake.
43165
43166 2009-02-27  Bruno Haible  <bruno@clisp.org>
43167
43168         Avoid test link errors.
43169         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43170         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43171         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43172         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43174
43175 2009-02-27  Bruno Haible  <bruno@clisp.org>
43176
43177         Avoid spurious "(cached)" in configure output.
43178         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43179         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43180         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43181         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43182         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43183         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43184         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43185         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43186         Reported by Eric Blake.
43187
43188 2009-02-27  Eric Blake  <ebb9@byu.net>
43189
43190         printf: fix regression in previous patch
43191         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43192
43193 2009-02-27  Bruno Haible  <bruno@clisp.org>
43194
43195         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43196         value.
43197         * lib/stdint.in.h: Likewise.
43198         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43199
43200 2009-02-27  Eric Blake  <ebb9@byu.net>
43201
43202         doc: mention more functions added in cygwin 1.7.0
43203         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43204         addition.
43205         * doc/posix-functions/open_wmemstream.texi: Likewise.
43206         * doc/posix-functions/wcsnlen.texi: Likewise.
43207         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43208         * doc/posix-functions/wcstod.texi: Likewise.
43209         * doc/posix-functions/wcstof.texi: Likewise.
43210         * doc/posix-functions/wcstoimax.texi: Likewise.
43211         * doc/posix-functions/wcstok.texi: Likewise.
43212         * doc/posix-functions/wcstoumax.texi: Likewise.
43213
43214         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43215         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43216         * doc/posix-functions/fprintf.texi: Update.
43217         * doc/posix-functions/printf.texi: Update.
43218         * doc/posix-functions/snprintf.texi: Update.
43219         * doc/posix-functions/sprintf.texi: Update.
43220         * doc/posix-functions/vfprintf.texi: Update.
43221         * doc/posix-functions/vprintf.texi: Update.
43222         * doc/posix-functions/vsnprintf.texi: Update.
43223         * doc/posix-functions/vsprintf.texi: Update.
43224         * doc/glibc-functions/obstack_printf.texi: Update.
43225         * doc/glibc-functions/obstack_vprintf.texi: Update.
43226
43227 2009-02-26  Eric Blake  <ebb9@byu.net>
43228
43229         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43230         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43231         compilation bug by using runtime conversion.
43232         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43233         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43234         * modules/ceill-tests (Files): Use nan.h.
43235         * modules/floorl-tests (Files): Likewise.
43236         * modules/frexpl-tests (Files): Likewise.
43237         * modules/isnanl-tests (Files): Likewise.
43238         * modules/ldexpl-tests (Files): Likewise.
43239         * modules/roundl-tests (Files): Likewise.
43240         * modules/truncl-tests (Files): Likewise.
43241         * tests/test-ceill.c (main): Use a working NaN.
43242         * tests/test-floorl.c (main): Likewise.
43243         * tests/test-frexpl.c (main): Likewise.
43244         * tests/test-isnan.c (test_long_double): Likewise.
43245         * tests/test-isnanl.h (main): Likewise.
43246         * tests/test-ldexpl.h (main): Likewise.
43247         * tests/test-roundl.h (main): Likewise.
43248         * tests/test-truncl.h (main): Likewise.
43249         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43250
43251 2009-02-26  Eric Blake  <ebb9@byu.net>
43252             Bruno Haible  <bruno@clisp.org>
43253
43254         Work around a *printf bug with %ls on Solaris.
43255         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43256         precision is specified, sprintf stops converting the wide string
43257         argument when the number of bytes that have been produced by this
43258         conversion equals or exceeds the precision.
43259         * doc/posix-functions/fprintf.texi: Update.
43260         * doc/posix-functions/printf.texi: Update.
43261         * doc/posix-functions/snprintf.texi: Update.
43262         * doc/posix-functions/sprintf.texi: Update.
43263         * doc/posix-functions/vfprintf.texi: Update.
43264         * doc/posix-functions/vprintf.texi: Update.
43265         * doc/posix-functions/vsnprintf.texi: Update.
43266         * doc/posix-functions/vsprintf.texi: Update.
43267         * doc/glibc-functions/obstack_printf.texi: Update.
43268         * doc/glibc-functions/obstack_vprintf.texi: Update.
43269
43270 2009-02-26  Eric Blake  <ebb9@byu.net>
43271
43272         stdlib: favor compiler check of random.h
43273         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43274         to avoid an ObjC random.h installed by Swarm.
43275
43276 2009-02-26  Bruno Haible  <bruno@clisp.org>
43277
43278         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43279         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43280         Reported by Gary V. Vaughan <gary@gnu.org>.
43281
43282 2009-02-26  Bruno Haible  <bruno@clisp.org>
43283
43284         Fix *printf behaviour regarding the %ls directive.
43285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43286         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43287         NEED_PRINTF_DIRECTIVE_LS.
43288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43289         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43290         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43291         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43292         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43293         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43294         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43295         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43296         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43297         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43299         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43300         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43302         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43303         * doc/posix-functions/fprintf.texi: Update.
43304         * doc/posix-functions/printf.texi: Update.
43305         * doc/posix-functions/snprintf.texi: Update.
43306         * doc/posix-functions/sprintf.texi: Update.
43307         * doc/posix-functions/vfprintf.texi: Update.
43308         * doc/posix-functions/vprintf.texi: Update.
43309         * doc/posix-functions/vsnprintf.texi: Update.
43310         * doc/posix-functions/vsprintf.texi: Update.
43311         * doc/glibc-functions/obstack_printf.texi: Update.
43312         * doc/glibc-functions/obstack_vprintf.texi: Update.
43313         Reported by Eric Blake.
43314
43315 2009-02-25  Bruno Haible  <bruno@clisp.org>
43316
43317         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43318         with known value.
43319         Reported by Gary V. Vaughan <gary@gnu.org>.
43320
43321 2009-02-25  Bruno Haible  <bruno@clisp.org>
43322
43323         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43324         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43325         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43326         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43327         Reported by Gary V. Vaughan <gary@gnu.org>.
43328
43329 2009-02-25  Bruno Haible  <bruno@clisp.org>
43330
43331         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43332         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43333         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43334         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43335         Reported by Gary V. Vaughan <gary@gnu.org>.
43336
43337 2009-02-25  Eric Blake  <ebb9@byu.net>
43338
43339         tests: skip fseek/ftell tests if ungetc is broken
43340         * m4/ungetc.m4: New file.
43341         * modules/fseek-tests: Split test, so ungetc dependency is
43342         separate from rest of test.
43343         * modules/fseeko-tests: Likewise.
43344         * modules/ftell-tests: Likewise.
43345         * modules/ftello-tests: Likewise.
43346         * tests/test-fseek.c (main): Isolate ungetc dependency.
43347         * tests/test-fseeko.c (main): Likewise.
43348         * tests/test-ftell.c (main): Likewise.
43349         * tests/test-ftello.c (main): Likewise.
43350         * tests/test-fseek2.sh: New file.
43351         * tests/test-fseeko2.sh: Likewise.
43352         * tests/test-ftell2.sh: Likewise.
43353         * tests/test-ftello2.sh: Likewise.
43354
43355 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43356
43357         test-getaddrinfo: fix usage of skip return code 77
43358         * tests/test-gettaddrinfo.c: Return skip code 77 only
43359         for first occurance of skip (4x77 is not 77)
43360
43361 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43362
43363         strtod: avoid C99 decl-after-statement
43364         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43365
43366 2009-02-24  Eric Blake  <ebb9@byu.net>
43367
43368         strtod: detect HP-UX 11.31 bug
43369         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43370         Reported by Gary V. Vaughan.
43371
43372 2009-02-23  Bruno Haible  <bruno@clisp.org>
43373
43374         Fix invalid read past end of memory block.
43375         * lib/vasnprintf.c (DCHAR_SET): Define.
43376         (local_wcslen): Define only when needed.
43377         (local_strnlen, local_wcsnlen): New functions.
43378         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43379         directives that involve a conversion ourselves.
43380         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43381         wcsnlen, mbrtowc, wcrtomb.
43382         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43383         * tests/test-vasprintf-posix.c (test_function): Likewise.
43384         * tests/test-snprintf-posix.h (test_function): Likewise.
43385         * tests/test-sprintf-posix.h (test_function): Likewise.
43386         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43387
43388 2009-02-22  Bruno Haible  <bruno@clisp.org>
43389
43390         Implement new clarified decomposition of Hangul syllables.
43391         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43392         of type LTV, return only a pairwise decomposition.
43393         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43394         Likewise.
43395         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43396         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43397         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43398
43399 2009-02-22  Bruno Haible  <bruno@clisp.org>
43400
43401         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43402         zero-length results and shrink excess allocated memory.
43403         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43404         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43405         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43406         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43407         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43408         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43409         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43410         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43411         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43412         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43413         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43414         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43415
43416 2009-02-21  Bruno Haible  <bruno@clisp.org>
43417
43418         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43419         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43420         spaces after a period. Put a space between a macro name and its
43421         argument list. Trivial rewordings.
43422         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43423         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43424         (main): Return 0 explicitly.
43425
43426 2009-02-21  Bruno Haible  <bruno@clisp.org>
43427
43428         Tests for module 'uninorm/filter'.
43429         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43430         * modules/uninorm/filter-tests: New file.
43431
43432         New module 'uninorm/filter'.
43433         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43434         uninorm_filter_flush, uninorm_filter_free): New declarations.
43435         * lib/uninorm/uninorm-filter.c: New file.
43436         * modules/uninorm/filter: New file.
43437
43438 2009-02-21  Bruno Haible  <bruno@clisp.org>
43439
43440         Tests for module 'uninorm/nfkc'.
43441         * tests/uninorm/test-nfkc.c: New file.
43442         * tests/uninorm/test-u8-nfkc.c: New file.
43443         * tests/uninorm/test-u16-nfkc.c: New file.
43444         * tests/uninorm/test-u32-nfkc.c: New file.
43445         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43446         * tests/uninorm/test-u32-nfkc-big.c: New file.
43447         * modules/uninorm/nfkc-tests: New file.
43448
43449         New module 'uninorm/nfkc'.
43450         * lib/uninorm/nfkc.c: New file.
43451         * modules/uninorm/nfkc: New file.
43452
43453         Tests for module 'uninorm/nfkd'.
43454         * tests/uninorm/test-nfkd.c: New file.
43455         * tests/uninorm/test-u8-nfkd.c: New file.
43456         * tests/uninorm/test-u16-nfkd.c: New file.
43457         * tests/uninorm/test-u32-nfkd.c: New file.
43458         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43459         * tests/uninorm/test-u32-nfkd-big.c: New file.
43460         * modules/uninorm/nfkd-tests: New file.
43461
43462         New module 'uninorm/nfkd'.
43463         * lib/uninorm/nfkd.c: New file.
43464         * modules/uninorm/nfkd: New file.
43465
43466         Tests for module 'uninorm/nfc'.
43467         * tests/uninorm/test-nfc.c: New file.
43468         * tests/uninorm/test-u8-nfc.c: New file.
43469         * tests/uninorm/test-u16-nfc.c: New file.
43470         * tests/uninorm/test-u32-nfc.c: New file.
43471         * tests/uninorm/test-u32-nfc-big.sh: New file.
43472         * tests/uninorm/test-u32-nfc-big.c: New file.
43473         * modules/uninorm/nfc-tests: New file.
43474
43475         New module 'uninorm/nfc'.
43476         * lib/uninorm/nfc.c: New file.
43477         * modules/uninorm/nfc: New file.
43478
43479         Tests for module 'uninorm/nfd'.
43480         * tests/uninorm/test-nfd.c: New file.
43481         * tests/uninorm/test-u8-nfd.c: New file.
43482         * tests/uninorm/test-u16-nfd.c: New file.
43483         * tests/uninorm/test-u32-nfd.c: New file.
43484         * tests/uninorm/test-u32-nfd-big.sh: New file.
43485         * tests/uninorm/test-u32-nfd-big.c: New file.
43486         * tests/uninorm/test-u32-normalize-big.h: New file.
43487         * tests/uninorm/test-u32-normalize-big.c: New file.
43488         * tests/uninorm/NormalizationTest.txt: New file, created from
43489         Unicode 5.1.0 NormalizationTest.txt.
43490         * modules/uninorm/nfd-tests: New file.
43491
43492         New module 'uninorm/nfd'.
43493         * lib/uninorm/nfd.c: New file.
43494         * modules/uninorm/nfd: New file.
43495
43496         New module 'uninorm/u32-normalize'.
43497         * lib/uninorm/u32-normalize.c: New file.
43498         * modules/uninorm/u32-normalize: New file.
43499
43500         New module 'uninorm/u16-normalize'.
43501         * lib/uninorm/u16-normalize.c: New file.
43502         * modules/uninorm/u16-normalize: New file.
43503
43504         New module 'uninorm/u8-normalize'.
43505         * lib/uninorm/u8-normalize.c: New file.
43506         * lib/uninorm/normalize-internal.h: New file.
43507         * lib/uninorm/u-normalize-internal.h: New file.
43508         * modules/uninorm/u8-normalize: New file.
43509
43510         New module 'uninorm/decompose-internal'.
43511         * lib/uninorm/decompose-internal.c: New file.
43512         * modules/uninorm/decompose-internal: New file.
43513
43514         Tests for module 'uninorm/composition'.
43515         * tests/uninorm/test-composition.c: New file.
43516         * modules/uninorm/composition-tests: New file.
43517
43518         New module 'uninorm/composition'.
43519         * lib/uninorm/composition.c: New file.
43520         * lib/uninorm/composition-table.gperf: New file, generated by
43521         gen-uni-tables.
43522         * modules/uninorm/composition: New file.
43523
43524         Tests for module 'uninorm/compat-decomposition'.
43525         * tests/uninorm/test-compat-decomposition.c: New file.
43526         * modules/uninorm/compat-decomposition-tests: New file.
43527
43528         New module 'uninorm/compat-decomposition'.
43529         * lib/uninorm/decompose-internal.h: New file.
43530         * lib/uninorm/compat-decomposition.c: New file.
43531         * modules/uninorm/compat-decomposition: New file.
43532
43533         Tests for module 'uninorm/canonical-decomposition'.
43534         * tests/uninorm/test-canonical-decomposition.c: New file.
43535         * modules/uninorm/canonical-decomposition-tests: New file.
43536
43537         New module 'uninorm/canonical-decomposition'.
43538         * lib/uninorm/canonical-decomposition.c: New file.
43539         * modules/uninorm/canonical-decomposition: New file.
43540
43541         Tests for module 'uninorm/decomposition'.
43542         * tests/uninorm/test-decomposition.c: New file.
43543         * modules/uninorm/decomposition-tests: New file.
43544
43545         New module 'uninorm/decomposition'.
43546         * lib/uninorm/decomposition.c: New file.
43547         * modules/uninorm/decomposition: New file.
43548
43549         New module 'uninorm/decomposition-table'.
43550         * lib/uninorm/decomposition-table.h: New file.
43551         * lib/uninorm/decomposition-table.c: New file.
43552         * lib/uninorm/decomposition-table1.h: New file, generated by
43553         gen-uni-tables.
43554         * lib/uninorm/decomposition-table2.h: New file, generated by
43555         gen-uni-tables.
43556         * modules/uninorm/decomposition-table: New file.
43557
43558         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43559         (UC_DECOMP_*): New enumeration items.
43560         (get_decomposition): New function.
43561         (struct decomp_table): New type.
43562         (output_decomposition, output_decomposition_tables): New functions.
43563         (unicode_composition_exclusions): New variable.
43564         (fill_composition_exclusions, debug_output_composition_tables): New
43565         functions.
43566         (main): Accept one more argument. Invoke fill_composition_exclusions.
43567         Output decomposition and composition tables.
43568
43569         New module 'uninorm/base'.
43570         * lib/uninorm.h: New file.
43571         * lib/unictype.h: Update comment.
43572         * modules/uninorm/base: New file.
43573
43574 2009-02-21  David Lutterkort  <lutter@redhat.com>
43575
43576         Tests for module 'safe-alloc'.
43577         * tests/test-safe-alloc.c: New file.
43578         * modules/safe-alloc-tests: New file.
43579
43580         New module 'safe-alloc'.
43581         * lib/safe-alloc.h: New file.
43582         * lib/safe-alloc.c: New file.
43583         * m4/safe-alloc.m4: New file.
43584         * modules/safe-alloc: New file.
43585         * doc/safe-alloc.texi: New file.
43586         * doc/gnulib.texi: Include it.
43587         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43588         safe-alloc.
43589
43590 2009-02-18  Bruno Haible  <bruno@clisp.org>
43591
43592         Fix link error on non-glibc systems.
43593         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43594         variable.
43595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43596
43597 2009-02-18  Jim Meyering  <meyering@redhat.com>
43598
43599         fts: avoid used-uninitialized error due to recent change
43600         * lib/fts.c (fts_read): Guard uses of the new member,
43601         parent->fts_n_dirs_remaining, since it's not relevant for
43602         the parent of a directory specified on the command-line.
43603
43604 2009-02-17  James Youngman  <jay@gnu.org>
43605             Bruno Haible  <bruno@clisp.org>
43606
43607         * m4/include_next.m4: Reformulate comment.
43608
43609 2009-02-16  Jim Meyering  <meyering@redhat.com>
43610
43611         fts: add #if guards so that the fts_lgpl module still builds
43612         * lib/fts.c: Guard just-added hash-table-using parts with
43613         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43614         Reported by Simon Josefsson.
43615
43616 2009-02-15  Bruno Haible  <bruno@clisp.org>
43617
43618         * modules/array-mergesort-tests: New file.
43619         * tests/test-array-mergesort.c: New file.
43620
43621         New module 'array-mergesort'.
43622         * modules/array-mergesort: New file.
43623         * lib/array-mergesort.h: New file.
43624
43625 2009-02-15  Bruno Haible  <bruno@clisp.org>
43626
43627         Fix 2009-02-07 commit.
43628         * lib/gen-uni-tables.c (output_predicate, output_category,
43629         output_combclass, output_bidi_category, output_decimal_digit,
43630         output_digit, output_numeric, output_mirror, output_scripts,
43631         output_ident_category, output_simple_mapping): Fix format directives.
43632         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43633
43634 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43635
43636         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43637         fixes are available from IBM.
43638
43639 2009-02-13  Jim Meyering  <meyering@redhat.com>
43640
43641         fts: arrange not to stat non-directories in more cases
43642         This makes GNU find (when it doesn't need to stat each file)
43643         *much* more efficient at traversing reiserfs file systems.
43644         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43645         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43646         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43647         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43648         (leaf_optimization_applies): New function.
43649         (LCO_hash, LCO_compare): New helper functions.
43650         (link_count_optimize_ok): New function.
43651         (fts_stat): Initialize new member (if dir).
43652         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43653         we've just stat'ed a directory.  Skip the stat call when possible.
43654         ---
43655         Note this AFS-related exchange:
43656         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43657         and note find's pioctl call in find/fstype.c.
43658         But that is necessary only if you want to enable the
43659         optimization for AFS, and for now, I don't.
43660
43661         fts: move a function definition "up" (no semantic change)
43662         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43663         "up" to precede upcoming use of a related function.
43664
43665 2009-02-11  Jim Meyering  <meyering@redhat.com>
43666
43667         fts: correct internal computation of nlinks (optimization-related)
43668         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43669         whether the current entry is a directory, so don't test it.
43670
43671 2009-02-10  Bruno Haible  <bruno@clisp.org>
43672
43673         Tests for module 'uniwbrk/ulc-wordbreaks'.
43674         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43675         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43676         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43677
43678         Tests for module 'uniwbrk/u32-wordbreaks'.
43679         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43680         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43681
43682         Tests for module 'uniwbrk/u16-wordbreaks'.
43683         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43684         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43685
43686         Tests for module 'uniwbrk/u8-wordbreaks'.
43687         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43688         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43689
43690 2009-02-10  Bruno Haible  <bruno@clisp.org>
43691
43692         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43693         property.
43694         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43695         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43696         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43697
43698 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43699
43700         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43701         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43702
43703 2009-02-10  Bruno Haible  <bruno@clisp.org>
43704
43705         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43706         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43707         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43708         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43709         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43710         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43711
43712 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43713
43714         * lib/sockets.h (gl_fd_to_handle): New function.
43715
43716         * tests/test-sockets.c: Call gl_fd_to_handle.
43717
43718 2009-02-09  Bruno Haible  <bruno@clisp.org>
43719
43720         * doc/havelib.texi: Document the conventions on bi-arch systems.
43721
43722 2009-02-08  Bruno Haible  <bruno@clisp.org>
43723
43724         Document the AC_LIB_LINKFLAGS macro.
43725         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43726         * doc/gnulib.texi: Include it.
43727
43728 2009-02-08  Bruno Haible  <bruno@clisp.org>
43729
43730         Fix wrong order of sections, compared to TOC.
43731         * doc/gnulib.texi: Include relocatable-maint.texi after the
43732         "Regular expressions" node, not before.
43733
43734 2009-02-08  Bruno Haible  <bruno@clisp.org>
43735
43736         Tests for module 'unicase/totitle'.
43737         * modules/unicase/totitle-tests: New file.
43738
43739         Tests for module 'unicase/tolower'.
43740         * modules/unicase/tolower-tests: New file.
43741
43742         Tests for module 'unicase/toupper'.
43743         * modules/unicase/toupper-tests: New file.
43744         * tests/unicase/test-mapping-part1.h: New file.
43745         * tests/unicase/test-mapping-part2.h: New file.
43746
43747         New module 'unicase/totitle'.
43748         * modules/unicase/totitle: New file.
43749         * lib/unicase/totitle.c: New file.
43750
43751         New module 'unicase/tolower'.
43752         * modules/unicase/tolower: New file.
43753         * lib/unicase/tolower.c: New file.
43754
43755         New module 'unicase/toupper'.
43756         * modules/unicase/toupper: New file.
43757         * lib/unicase/toupper.c: New file.
43758         * lib/unicase/simple-mapping.h: New file.
43759
43760         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43761         (mapping_table): New structure.
43762         (output_simple_mapping): New function.
43763         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43764         * modules/gen-uni-tables (Description): Update.
43765         * lib/unicase/toupper.h: New file, automatically generated by
43766         gen-uni-tables.
43767         * lib/unicase/tolower.h: New file, automatically generated by
43768         gen-uni-tables.
43769         * lib/unicase/totitle.h: New file, automatically generated by
43770         gen-uni-tables.
43771         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43772         gen-uni-tables.
43773         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43774         gen-uni-tables.
43775         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43776         gen-uni-tables.
43777
43778         New module 'unicase/base'.
43779         * modules/unicase/base: New file.
43780         * lib/unicase.h: New file.
43781
43782 2009-02-08  Bruno Haible  <bruno@clisp.org>
43783
43784         New module 'uniwbrk/ulc-wordbreaks'.
43785         * modules/uniwbrk/ulc-wordbreaks: New file.
43786         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43787
43788         New module 'uniwbrk/u32-wordbreaks'.
43789         * modules/uniwbrk/u32-wordbreaks: New file.
43790         * lib/uniwbrk/u32-wordbreaks.c: New file.
43791
43792         New module 'uniwbrk/u16-wordbreaks'.
43793         * modules/uniwbrk/u16-wordbreaks: New file.
43794         * lib/uniwbrk/u16-wordbreaks.c: New file.
43795
43796         New module 'uniwbrk/u8-wordbreaks'.
43797         * modules/uniwbrk/u8-wordbreaks: New file.
43798         * lib/uniwbrk/u8-wordbreaks.c: New file.
43799         * lib/uniwbrk/u-wordbreaks.h: New file.
43800
43801         New module 'uniwbrk/table'.
43802         * modules/uniwbrk/table: New file.
43803         * lib/uniwbrk/wbrktable.h: New file.
43804         * lib/uniwbrk/wbrktable.c: New file.
43805
43806         New module 'uniwbrk/wordbreak-property'.
43807         * modules/uniwbrk/wordbreak-property: New file.
43808         * lib/uniwbrk/wordbreak-property.c: New file.
43809
43810         * lib/gen-uni-tables.c (WBP_*): New enum items.
43811         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43812         (unicode_org_wbp): New variable.
43813         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43814         New functions.
43815         (wbp_table): New structure.
43816         (output_wbp, output_wbrk_tables): New functions.
43817         (main): Accept additional argument. Invoke fill_org_wbp,
43818         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43819         output_wbrk_tables.
43820         * modules/gen-uni-tables (Description): Update.
43821         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43822         gen-uni-tables.
43823
43824         New module 'uniwbrk/base'.
43825         * modules/uniwbrk/base: New file.
43826         * lib/uniwbrk.h: New file.
43827
43828 2009-02-08  Bruno Haible  <bruno@clisp.org>
43829
43830         Update to Unicode 5.1.0.
43831         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43832         U+2185..U+2188.
43833         (is_property_default_ignorable_code_point): Don't include characters
43834         of category Cc or Cs and not-a-characters.
43835         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43836         U+0D79, U+109E, U+109F, U+A60C.
43837         * lib/unictype/bidi_of.h: Regenerated.
43838         * lib/unictype/blocks.h: Regenerated.
43839         * lib/unictype/categ_C.h: Regenerated.
43840         * lib/unictype/categ_Cf.h: Regenerated.
43841         * lib/unictype/categ_Cn.h: Regenerated.
43842         * lib/unictype/categ_L.h: Regenerated.
43843         * lib/unictype/categ_Ll.h: Regenerated.
43844         * lib/unictype/categ_Lm.h: Regenerated.
43845         * lib/unictype/categ_Lo.h: Regenerated.
43846         * lib/unictype/categ_Lu.h: Regenerated.
43847         * lib/unictype/categ_M.h: Regenerated.
43848         * lib/unictype/categ_Mc.h: Regenerated.
43849         * lib/unictype/categ_Me.h: Regenerated.
43850         * lib/unictype/categ_Mn.h: Regenerated.
43851         * lib/unictype/categ_N.h: Regenerated.
43852         * lib/unictype/categ_Nd.h: Regenerated.
43853         * lib/unictype/categ_Nl.h: Regenerated.
43854         * lib/unictype/categ_No.h: Regenerated.
43855         * lib/unictype/categ_P.h: Regenerated.
43856         * lib/unictype/categ_Pd.h: Regenerated.
43857         * lib/unictype/categ_Pe.h: Regenerated.
43858         * lib/unictype/categ_Pf.h: Regenerated.
43859         * lib/unictype/categ_Pi.h: Regenerated.
43860         * lib/unictype/categ_Po.h: Regenerated.
43861         * lib/unictype/categ_Ps.h: Regenerated.
43862         * lib/unictype/categ_S.h: Regenerated.
43863         * lib/unictype/categ_Sk.h: Regenerated.
43864         * lib/unictype/categ_Sm.h: Regenerated.
43865         * lib/unictype/categ_So.h: Regenerated.
43866         * lib/unictype/categ_of.h: Regenerated.
43867         * lib/unictype/combining.h: Regenerated.
43868         * lib/unictype/ctype_alnum.h: Regenerated.
43869         * lib/unictype/ctype_alpha.h: Regenerated.
43870         * lib/unictype/ctype_graph.h: Regenerated.
43871         * lib/unictype/ctype_lower.h: Regenerated.
43872         * lib/unictype/ctype_print.h: Regenerated.
43873         * lib/unictype/ctype_punct.h: Regenerated.
43874         * lib/unictype/ctype_upper.h: Regenerated.
43875         * lib/unictype/decdigit.h: Regenerated.
43876         * lib/unictype/digit.h: Regenerated.
43877         * lib/unictype/mirror.h: Regenerated.
43878         * lib/unictype/numeric.h: Regenerated.
43879         * lib/unictype/pr_alphabetic.h: Regenerated.
43880         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43881         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43882         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43883         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43884         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43885         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43886         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43887         * lib/unictype/pr_combining.h: Regenerated.
43888         * lib/unictype/pr_dash.h: Regenerated.
43889         * lib/unictype/pr_decimal_digit.h: Regenerated.
43890         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43891         * lib/unictype/pr_deprecated.h: Regenerated.
43892         * lib/unictype/pr_diacritic.h: Regenerated.
43893         * lib/unictype/pr_extender.h: Regenerated.
43894         * lib/unictype/pr_format_control.h: Regenerated.
43895         * lib/unictype/pr_grapheme_base.h: Regenerated.
43896         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43897         * lib/unictype/pr_grapheme_link.h: Regenerated.
43898         * lib/unictype/pr_id_continue.h: Regenerated.
43899         * lib/unictype/pr_id_start.h: Regenerated.
43900         * lib/unictype/pr_ideographic.h: Regenerated.
43901         * lib/unictype/pr_ignorable_control.h: Regenerated.
43902         * lib/unictype/pr_lowercase.h: Regenerated.
43903         * lib/unictype/pr_math.h: Regenerated.
43904         * lib/unictype/pr_numeric.h: Regenerated.
43905         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43906         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43907         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43908         * lib/unictype/pr_other_id_continue.h: Regenerated.
43909         * lib/unictype/pr_other_lowercase.h: Regenerated.
43910         * lib/unictype/pr_other_math.h: Regenerated.
43911         * lib/unictype/pr_punctuation.h: Regenerated.
43912         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43913         * lib/unictype/pr_soft_dotted.h: Regenerated.
43914         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43915         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43916         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43917         * lib/unictype/pr_uppercase.h: Regenerated.
43918         * lib/unictype/pr_xid_continue.h: Regenerated.
43919         * lib/unictype/pr_xid_start.h: Regenerated.
43920         * lib/unictype/pr_zero_width.h: Regenerated.
43921         * lib/unictype/scripts.h: Regenerated.
43922         * lib/unictype/scripts_byname.gperf: Regenerated.
43923         * lib/unictype/sy_java_ident.h: Regenerated.
43924         * lib/unilbrk/lbrkprop1.h: Regenerated.
43925         * lib/unilbrk/lbrkprop2.h: Regenerated.
43926         * tests/unictype/test-categ_C.c: Regenerated.
43927         * tests/unictype/test-categ_Cf.c: Regenerated.
43928         * tests/unictype/test-categ_Cn.c: Regenerated.
43929         * tests/unictype/test-categ_L.c: Regenerated.
43930         * tests/unictype/test-categ_Ll.c: Regenerated.
43931         * tests/unictype/test-categ_Lm.c: Regenerated.
43932         * tests/unictype/test-categ_Lo.c: Regenerated.
43933         * tests/unictype/test-categ_Lu.c: Regenerated.
43934         * tests/unictype/test-categ_M.c: Regenerated.
43935         * tests/unictype/test-categ_Mc.c: Regenerated.
43936         * tests/unictype/test-categ_Me.c: Regenerated.
43937         * tests/unictype/test-categ_Mn.c: Regenerated.
43938         * tests/unictype/test-categ_N.c: Regenerated.
43939         * tests/unictype/test-categ_Nd.c: Regenerated.
43940         * tests/unictype/test-categ_Nl.c: Regenerated.
43941         * tests/unictype/test-categ_No.c: Regenerated.
43942         * tests/unictype/test-categ_P.c: Regenerated.
43943         * tests/unictype/test-categ_Pd.c: Regenerated.
43944         * tests/unictype/test-categ_Pe.c: Regenerated.
43945         * tests/unictype/test-categ_Pf.c: Regenerated.
43946         * tests/unictype/test-categ_Pi.c: Regenerated.
43947         * tests/unictype/test-categ_Po.c: Regenerated.
43948         * tests/unictype/test-categ_Ps.c: Regenerated.
43949         * tests/unictype/test-categ_S.c: Regenerated.
43950         * tests/unictype/test-categ_Sk.c: Regenerated.
43951         * tests/unictype/test-categ_Sm.c: Regenerated.
43952         * tests/unictype/test-categ_So.c: Regenerated.
43953         * tests/unictype/test-ctype_alnum.c: Regenerated.
43954         * tests/unictype/test-ctype_alpha.c: Regenerated.
43955         * tests/unictype/test-ctype_graph.c: Regenerated.
43956         * tests/unictype/test-ctype_lower.c: Regenerated.
43957         * tests/unictype/test-ctype_print.c: Regenerated.
43958         * tests/unictype/test-ctype_punct.c: Regenerated.
43959         * tests/unictype/test-ctype_upper.c: Regenerated.
43960         * tests/unictype/test-decdigit.h: Regenerated.
43961         * tests/unictype/test-digit.h: Regenerated.
43962         * tests/unictype/test-numeric.h: Regenerated.
43963         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43964         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43965         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43966         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43967         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43968         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43969         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43970         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43971         * tests/unictype/test-pr_combining.c: Regenerated.
43972         * tests/unictype/test-pr_dash.c: Regenerated.
43973         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43974         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43975         * tests/unictype/test-pr_deprecated.c: Regenerated.
43976         * tests/unictype/test-pr_diacritic.c: Regenerated.
43977         * tests/unictype/test-pr_extender.c: Regenerated.
43978         * tests/unictype/test-pr_format_control.c: Regenerated.
43979         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43980         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43981         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43982         * tests/unictype/test-pr_id_continue.c: Regenerated.
43983         * tests/unictype/test-pr_id_start.c: Regenerated.
43984         * tests/unictype/test-pr_ideographic.c: Regenerated.
43985         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43986         * tests/unictype/test-pr_lowercase.c: Regenerated.
43987         * tests/unictype/test-pr_math.c: Regenerated.
43988         * tests/unictype/test-pr_numeric.c: Regenerated.
43989         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43990         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43991         Regenerated.
43992         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43993         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43994         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43995         * tests/unictype/test-pr_other_math.c: Regenerated.
43996         * tests/unictype/test-pr_punctuation.c: Regenerated.
43997         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43998         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43999         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
44000         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
44001         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
44002         * tests/unictype/test-pr_uppercase.c: Regenerated.
44003         * tests/unictype/test-pr_xid_continue.c: Regenerated.
44004         * tests/unictype/test-pr_xid_start.c: Regenerated.
44005         * tests/unictype/test-pr_zero_width.c: Regenerated.
44006
44007         Update to Unicode 5.1.0.
44008         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
44009         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
44010         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
44011         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
44012         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
44013         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
44014         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
44015         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
44016         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
44017         (nonspacing_table_ind): Update.
44018         * tests/uniwidth/test-uc_width2.sh: Update expected result.
44019
44020         Update to Unicode 5.1.0.
44021         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
44022         code transform.
44023         * lib/uniname/uniname.c (unicode_character_name,
44024         unicode_name_character): Add the range 0x1Fxxx to the code transform.
44025         * lib/uniname/uninames.h: Regenerated.
44026         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
44027
44028 2009-02-07  Bruno Haible  <bruno@clisp.org>
44029
44030         Merge gen-ctype and gen-lbrk into a single program.
44031         * lib/gen-uni-tables.c: New file, incorporating
44032         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
44033         Add directory prefixes to the names of the generated files.
44034         * lib/unictype/gen-ctype.c: Remove file.
44035         * lib/unilbrk/gen-lbrk.c: Remove file.
44036         * modules/gen-uni-tables: New file.
44037         * modules/unictype/gen-ctype: Remove file.
44038         * modules/unilbrk/gen-lbrk: Remove file.
44039
44040 2009-02-07  Bruno Haible  <bruno@clisp.org>
44041
44042         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
44043
44044         New module 'unistr/u32-strcoll'.
44045         * modules/unistr/u32-strcoll: New file.
44046         * lib/unistr/u32-strcoll.c: New file.
44047
44048         New module 'unistr/u16-strcoll'.
44049         * modules/unistr/u16-strcoll: New file.
44050         * lib/unistr/u16-strcoll.c: New file.
44051
44052         New module 'unistr/u8-strcoll'.
44053         * modules/unistr/u8-strcoll: New file.
44054         * lib/unistr/u8-strcoll.c: New file.
44055         * lib/unistr/u-strcoll.h: New file.
44056
44057 2009-02-07  Bruno Haible  <bruno@clisp.org>
44058
44059         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
44060         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44061         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
44062         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
44063         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
44064         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
44065
44066 2009-02-07  Bruno Haible  <bruno@clisp.org>
44067
44068         Make 64-bit clean.
44069         * lib/unictype/gen-ctype.c (output_predicate, output_category,
44070         output_combclass, output_bidi_category, output_decimal_digit,
44071         output_digit, output_numeric, output_mirror, output_scripts,
44072         output_ident_category): Use proper width specifier in format strings.
44073
44074 2009-02-07  Bruno Haible  <bruno@clisp.org>
44075
44076         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
44077         failure behaviour.
44078
44079 2009-02-07  Jim Meyering  <meyering@redhat.com>
44080
44081         regex: avoid compilation failure with upcoming gcc-4.4
44082         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
44083         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
44084         "... error: integer overflow in preprocessor expression".
44085
44086 2009-02-05  Ben Pfaff  <blp@gnu.org>
44087
44088         Fix link errors on Windows when close module is used.
44089         * modules/close: Add $(LIB_CLOSE) to Link section.
44090         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
44091         $(LIB_CLOSE) on Windows.
44092
44093 2009-02-05  Jim Meyering  <meyering@redhat.com>
44094
44095         still avoid unused-parameter warnings, but do it cleanly
44096         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
44097         (get_fs_usage): Cast to void instead.
44098         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
44099         (dev_from_mount_options, read_file_system_list): Cast to void.
44100         Prompted by Bruno Haible.
44101
44102 2009-02-04  Jim Meyering  <meyering@redhat.com>
44103
44104         fsusage.c: correct copyright year
44105         * lib/fsusage.c: Reflect year in which the change is pushed into
44106
44107         avoid misc. warnings
44108         * lib/fsusage.c (UNUSED_PARAM): Define.
44109         (get_fs_usage): Mark parameter "disk" as unused.
44110         * lib/getugroups.c (getgrent): Use "void" in prototype.
44111         * lib/mountlist.c: Mark unused parameters.
44112         (read_file_system_list): Declare a local with "const".
44113         * lib/nanosleep.c (getnow): Declare static.
44114         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
44115
44116         dirfd: set errno upon failure
44117         * lib/dirfd.c: Include <errno.h>.
44118         Set errno to ENOTSUP when returning -1.
44119         * modules/dirfd (Depends-on): Add errno.
44120         Suggested by John Kodis <kodis@comcast.net>.
44121
44122 2009-02-01  Bruno Haible  <bruno@clisp.org>
44123
44124         Don't assume sizeof (long) >= sizeof (void *).
44125         * lib/memcmp.c: Include stdint.h.
44126         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
44127         srcp2 to 'const byte *'.
44128         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
44129         types to uintptr_t.
44130         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
44131         * modules/memcmp (Depends-on): Add stdint.
44132         Reported by Ozkan Sezer <sezeroz@gmail.com>.
44133
44134 2009-01-30  Eric Blake  <ebb9@byu.net>
44135
44136         fix more require-before-expand issues
44137         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
44138         expand, AC_PROG_AWK.
44139         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
44140
44141 2009-01-28  Eric Blake  <ebb9@byu.net>
44142
44143         version-etc: use consistent URL formatting
44144         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
44145         Improve formatting.  Use fputs for string without %.
44146
44147 2009-01-28  Jim Meyering  <meyering@redhat.com>
44148
44149         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
44150         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
44151         "underquoted definition of NAME" from autoconf-2.59.
44152
44153 2009-01-28  Bruno Haible  <bruno@clisp.org>
44154
44155         * doc/gnulib.texi: Add "Obsolete modules" to index.
44156
44157 2009-01-28  Jim Meyering  <meyering@redhat.com>
44158
44159         useless-if-before-free: recognize more variants
44160         * build-aux/useless-if-before-free: Also recognize e.g.,
44161         if (NULL != p) free (p);
44162
44163 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44164
44165         test-getaddrinfo: skip (don't fail) this test when there's no network
44166         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44167         on the presumption that it means you lack network access.
44168
44169 2009-01-26  Jim Meyering  <meyering@redhat.com>
44170
44171         fflush: avoid warnings on modern systems
44172         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44173         pos and result, into scopes where they're used.
44174
44175 2009-01-26  Eric Blake  <ebb9@byu.net>
44176
44177         Silence warning reintroduced by recent extensions patch.
44178         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44179         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44180         autoconf.
44181
44182         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44183         * m4/00gnulib.m4: New file.
44184         * gnulib-tool (func_get_filelist): Always use it.
44185         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44186         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44187
44188 2009-01-25  Bruno Haible  <bruno@clisp.org>
44189
44190         Make test-quotearg work on MacOS X and AIX.
44191         * tests/test-quotearg.sh: New file.
44192         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44193         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44194         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44195         include <libintl.h>.
44196         (fake_locale): Remove variable.
44197         (gettext, dgettext, dcgettext): Remove functions.
44198         (main): Instead of setting a fake locale, set a real locale. Call
44199         textdomain and bindtextdomain.
44200         * modules/quotearg-tests (Files): Add the new files.
44201         (Depends-on): Add gettext, setenv, unsetenv.
44202         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44203         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44204         Augment TESTS_ENVIRONMENT.
44205
44206 2009-01-25  Bruno Haible  <bruno@clisp.org>
44207
44208         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44209         fr_FR.ISO8859-1 locale on MacOS X.
44210         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44211         ja_JP.eucJP locale on MacOS X.
44212         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44213         zh_CN.GB18030 locale on MacOS X.
44214
44215 2009-01-25  Bruno Haible  <bruno@clisp.org>
44216
44217         Avoid link errors on MacOS X 10.3.
44218         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44219         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44220
44221 2009-01-25  Bruno Haible  <bruno@clisp.org>
44222
44223         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44224         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44225         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44226         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44227         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
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         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44233         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44234         * modules/execute (Files): Remove m4/posix_spawn.m4.
44235         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44236         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44237         posix_spawnattr_init, posix_spawnattr_setsigmask,
44238         posix_spawnattr_setflags, posix_spawnattr_destroy.
44239
44240 2009-01-25  Bruno Haible  <bruno@clisp.org>
44241
44242         * lib/glthread/threadlib.c: Include <stdlib.h>.
44243
44244 2009-01-25  Bruno Haible  <bruno@clisp.org>
44245
44246         * lib/glthread/threadlib.c (dummy): New declaration.
44247
44248 2009-01-25  Bruno Haible  <bruno@clisp.org>
44249
44250         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44251         multibyte characters also for the GB18030 encoding. Don't crash when
44252         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44253
44254 2009-01-25  Bruno Haible  <bruno@clisp.org>
44255
44256         Avoid redefining 'struct random_data' on OSF/1 5.1.
44257         * lib/stdlib.in.h: Include <random.h> if it exists.
44258         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44259         HAVE_RANDOM_H. Include <random.h> when testing whether
44260         'struct random_data' exists.
44261         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44262
44263 2009-01-25  Bruno Haible  <bruno@clisp.org>
44264
44265         Don't install charset.alias on MacOS X >= 10.3.
44266         * lib/localcharset.c (DARWIN7): New macro.
44267         (get_charset_aliases): Hardcode the result for Darwin7.
44268         * modules/localcharset (install-exec-local): Don't install
44269         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44270
44271 2009-01-25  Bruno Haible  <bruno@clisp.org>
44272
44273         Don't install charset.alias on mingw and Cygwin.
44274         * modules/localcharset (install-exec-local): Don't install
44275         charset.alias on mingw and Cygwin, if the file does not yet exist.
44276         The result for these platforms is hardcoded in localcharset.c.
44277
44278 2009-01-25  Bruno Haible  <bruno@clisp.org>
44279
44280         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44281         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44282         before requiring AC_USE_SYSTEM_EXTENSIONS.
44283
44284 2009-01-25  Jim Meyering  <meyering@redhat.com>
44285
44286         c-strtod: avoid warnings
44287         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44288         "assignment discards qualifiers from pointer target type" warnings.
44289
44290 2009-01-24  Bruno Haible  <bruno@clisp.org>
44291
44292         Add support for non-UTF-8 locales on MacOS X.
44293         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44294         canonical encodings. For Darwin 7 and newer, don't map traditional
44295         encodings to UTF-8.
44296         Reported by Vincent Lefevre <vincent@vinc17.org>
44297         at <http://savannah.gnu.org/bugs/?25235>.
44298
44299 2009-01-24  Bruno Haible  <bruno@clisp.org>
44300
44301         * doc/gnulib.texi (Obsolete modules): New section.
44302         Reported by Mike Frysinger <vapier@gentoo.org>.
44303
44304 2009-01-24  Bruno Haible  <bruno@clisp.org>
44305
44306         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44307         (%.dvi): New rule.
44308
44309 2009-01-24  Bruno Haible  <bruno@clisp.org>
44310
44311         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44312         Reported by Eric Blake.
44313
44314 2009-01-24  Bruno Haible  <bruno@clisp.org>
44315
44316         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44317         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44318         Reported by Gary V. Vaughan <gary@gnu.org>.
44319
44320 2009-01-24  Bruno Haible  <bruno@clisp.org>
44321
44322         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44323
44324 2009-01-23  Bruno Haible  <bruno@clisp.org>
44325
44326         Make c-strtod, c-strtold usable in libraries.
44327         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44328         (C_STRTOD): Call strdup instead of xstrdup.
44329         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44330         * modules/c-strtold (Depends-on): Likewise.
44331         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44332         * NEWS: Mention the change.
44333         Reported by Michael Gold <mgold@ncf.ca>.
44334
44335 2009-01-23  Jim Meyering  <meyering@redhat.com>
44336
44337         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44338         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44339         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44340
44341 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44342
44343         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44344         GNU CoreUtils.
44345         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44346         * modules/version-etc (Description): Update.
44347
44348 2009-01-22  Bruno Haible  <bruno@clisp.org>
44349
44350         Cache the C locale object.
44351         * lib/c-strtod.c (c_locale_cache): New variable.
44352         (c_locale): New function.
44353         (C_STRTOD): Use it, and don't call freelocale.
44354         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44355         Suggested by Paolo Bonzini.
44356
44357 2009-01-21  Bruno Haible  <bruno@clisp.org>
44358
44359         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44360         conditions other than overflow.
44361
44362 2009-01-21  Bruno Haible  <bruno@clisp.org>
44363
44364         * lib/c-strtod.c: Include errno.h.
44365         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44366         value from STRTOD_L and STRTOD.
44367
44368 2009-01-21  Bruno Haible  <bruno@clisp.org>
44369         and Jim Meyering  <meyering@redhat.com>
44370
44371         nanosleep: skip configure test (fail it) for apple universal builds
44372         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44373         universal builds, assume that nanosleep does not work.
44374         * modules/nanosleep (Depends-on): Add multiarch.
44375
44376         mktime: skip configure test (fail it) for apple universal builds
44377         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44378         universal builds, assume that mktime does not work.
44379         * modules/mktime (Depends-on): Add multiarch.
44380
44381 2009-01-21  Eric Blake  <ebb9@byu.net>
44382
44383         multiarch: avoid expand-before-require warning
44384         * modules/multiarch (configure.ac): Require, rather than expand,
44385         gl_MULTIARCH.
44386         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44387         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44388         enforce that all clients require it.  Partial reversion of
44389         2008-12-29 patch.
44390
44391         error: avoid expand-before-require warning
44392         * modules/errno (configure.ac): Require, rather than expand,
44393         gl_HEADER_ERRNO_H.
44394         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44395         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44396         enforce that all clients require it.
44397
44398         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44399         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44400         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44401         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44402
44403 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44404
44405         Revert:
44406         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44407
44408         regex: do not depend on obsolete modules.
44409         * modules/regex: Remove memcmp and memmove.
44410
44411 2009-01-20  Bruno Haible  <bruno@clisp.org>
44412
44413         Make the 'link' module link on Windows NT 4.
44414         * lib/link.c (_WIN32_WINNT): Don't define.
44415         (CreateHardLinkFuncType): New type.
44416         (CreateHardLinkFunc, initialized): New variables.
44417         (initialize): New function.
44418         (link): Invoke CreateHardLink indirectly through the function pointer.
44419
44420 2009-01-20  Bruno Haible  <bruno@clisp.org>
44421
44422         Fix compilation failure on mingw.
44423         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44424
44425 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44426
44427         * doc/c-strtod.texi: Mention a couple of restrictions.
44428
44429 2009-01-20  Jim Meyering  <meyering@redhat.com>
44430
44431         gettimeofday: move more declarations out of functions
44432         * lib/gettimeofday.c: Move extern declarations of tzset and
44433         gmtime out of containing functions.  Prompted by Bruno Haible.
44434
44435 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44436
44437         regex: do not depend on obsolete modules.
44438         * modules/regex: Remove memcmp and memmove.
44439
44440 2009-01-19  Bruno Haible  <bruno@clisp.org>
44441
44442         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44443         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44444         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44445         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44446         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44447
44448 2009-01-19  Bruno Haible  <bruno@clisp.org>
44449
44450         * tests/test-link.c: Include <errno.h>.
44451         (main): Exit with code 77 when a hard link cannot be created due to
44452         the file system.
44453         * tests/test-link.sh: Skip test when a hard link cannot be created due
44454         to the file system.
44455         Suggested by Eric Blake.
44456
44457 2009-01-19  Martin Lambers  <marlam@marlam.de>
44458
44459         * modules/link-tests: New file.
44460         * tests/test-link.sh: New file.
44461         * tests/test-link.c: New file.
44462
44463 2009-01-19  Eric Blake  <ebb9@byu.net>
44464
44465         doc: mention another function added in cygwin 1.7.0
44466         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44467         Another new function in cygwin 1.7.
44468
44469 2009-01-19  Bruno Haible  <bruno@clisp.org>
44470
44471         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44472         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44473         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44474         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44475         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44476         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44477         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44478         * m4/md4.m4 (gl_MD4): Likewise.
44479         * m4/md5.m4 (gl_MD5): Likewise.
44480         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44481         * m4/sha1.m4 (gl_SHA1): Likewise.
44482         * m4/sha256.m4 (gl_SHA256): Likewise.
44483         * m4/sha512.m4 (gl_SHA512): Likewise.
44484
44485 2009-01-19  Bruno Haible  <bruno@clisp.org>
44486
44487         * modules/uniname/uniname-tests (Depends-on): Add progname.
44488         * tests/uniname/test-uninames.c: Include progname.h.
44489         (main): Call set_program_name.
44490
44491         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44492         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44493         (main): Call set_program_name.
44494
44495         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44496         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44497         (main): Call set_program_name.
44498
44499         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44500         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44501         (main): Call set_program_name.
44502
44503         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44504         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44505         (main): Call set_program_name.
44506
44507         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44508         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44509         (main): Call set_program_name.
44510
44511         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44512         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44513         (main): Call set_program_name.
44514
44515         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44516         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44517         (main): Call set_program_name.
44518
44519         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44520         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44521         (main): Call set_program_name.
44522
44523 2009-01-19  Eric Blake  <ebb9@byu.net>
44524
44525         test-unistd: test previous patch
44526         * tests/test-unistd.c: Test *_FILENO macros.
44527
44528         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44529         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44530         Guarantee a definition.
44531         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44532         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44533         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44534         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44535         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44536         Likewise.
44537         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44538         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44539         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44540         Likewise.
44541         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44542         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44543         (STDERR_FILENO): Likewise.
44544         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44545         (STDERR_FILENO): Likewise.
44546         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44547         (STDERR_FILENO): Likewise.
44548         Reported by Elbert Pol.
44549
44550 2009-01-19  Eric Blake  <ebb9@byu.net>
44551
44552         doc: mention more functions added in cygwin 1.7.0
44553         * doc/posix-functions/abort.texi (abort): Update wording related
44554         to cygwin.
44555         * doc/posix-functions/daylight.texi (daylight): Likewise.
44556         * doc/posix-functions/optarg.texi (optarg): Likewise.
44557         * doc/posix-functions/optarg.texi (opterr): Likewise.
44558         * doc/posix-functions/optarg.texi (optind): Likewise.
44559         * doc/posix-functions/optarg.texi (optopt): Likewise.
44560         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44561         worked in 1.5.x, and was withdrawn in 1.7.
44562         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44563         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44564         cygwin versions.
44565         * doc/posix-functions/perror.texi (perror): Likewise.
44566         * doc/posix-functions/printf.texi (printf): Likewise.
44567         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44568         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44569         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44570         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44571         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44572         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44573         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44574         Likewise.
44575         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44576         Likewise.
44577         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44578         this function.
44579         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44580         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44581         Likewise.
44582         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44583         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44584         * doc/posix-functions/confstr.texi (confstr): Likewise.
44585         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44586         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44587         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44588         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44589         * doc/posix-functions/fputws.texi (fputws): Likewise.
44590         * doc/posix-functions/fwide.texi (fwide): Likewise.
44591         * doc/posix-functions/getwc.texi (getwc): Likewise.
44592         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44593         * doc/posix-functions/putwc.texi (putwc): Likewise.
44594         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44595         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44596         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44597         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44598         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44599         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44600         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44601         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44602         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44603         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44604         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44605
44606 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44607
44608         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44609         * lib/ioctl.c: Include <sys/ioctl.h>.
44610
44611 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44612
44613         * modules/getdate-tests (Depends-on): Add progname.
44614         * tests/test-getdate.c: Use progname module, to avoid link errors
44615         on non-glibc systems.
44616
44617 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44618
44619         * modules/filenamecat-tests (Depends-on): Add progname.
44620         * modules/fstrcmp-tests (Depends-on): Likewise.
44621
44622         * tests/test-filenamecat.c: Use progname module, to avoid link
44623         errors on non-glibc systems.
44624         * tests/test-fstrcmp.c: Likewise.
44625
44626 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44627
44628         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44629         * lib/gettimeofday.c: Move extern declaration out of function.
44630
44631 2009-01-18  Bruno Haible  <bruno@clisp.org>
44632
44633         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44634         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44635         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44636
44637 2009-01-18  Bruno Haible  <bruno@clisp.org>
44638
44639         * lib/strftime.c (MEMPCPY): Remove unused macro.
44640         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44641
44642 2009-01-18  Martin Lambers  <marlam@marlam.de>
44643
44644         New module 'link'.
44645         * lib/unistd.in.h (link): New declaration.
44646         * lib/link.c: New file.
44647         * m4/link.m4: New file.
44648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44649         HAVE_LINK.
44650         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44651         * modules/link: New file.
44652         * doc/posix-functions/link.texi: Mention the new module.
44653
44654 2009-01-18  Bruno Haible  <bruno@clisp.org>
44655
44656         * tests/test-avltree_list.c (main): Call set_program_name.
44657         * tests/test-avltree_oset.c (main): Likewise.
44658         * tests/test-obstack-printf.c: Include progname.h.
44659         (main): Call set_program_name.
44660         * tests/test-quotearg.c: Include progname.h.
44661         (main): Call set_program_name.
44662         * tests/test-xmemdup0.c: Include progname.h.
44663         (main): Call set_program_name.
44664
44665 2009-01-18  Bruno Haible  <bruno@clisp.org>
44666
44667         New module 'alphasort'.
44668         * lib/dirent.in.h (alphasort): New declaration.
44669         * lib/alphasort.c: New file, from glibc with modifications.
44670         * m4/alphasort.m4: New file.
44671         * modules/alphasort: New file.
44672         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44673         HAVE_ALPHASORT.
44674         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44675         HAVE_ALPHASORT.
44676         * doc/posix-functions/alphasort.texi: Mention the new module and the
44677         portability problems.
44678
44679 2009-01-18  Bruno Haible  <bruno@clisp.org>
44680
44681         New module 'scandir'.
44682         * lib/dirent.in.h (scandir): New declaration.
44683         * lib/scandir.c: New file, from glibc with modifications.
44684         * m4/scandir.m4: New file.
44685         * modules/scandir: New file.
44686         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44687         HAVE_SCANDIR.
44688         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44689         HAVE_SCANDIR.
44690         * doc/posix-functions/scandir.texi: Mention the new module and the
44691         portability problems.
44692
44693 2009-01-17  Bruno Haible  <bruno@clisp.org>
44694
44695         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44696         Update documentation.
44697         (func_remove_suffix): Escape all dots in the suffix. Update
44698         documentation.
44699         (func_filter_filelist): Update documentation.
44700         Reported by Ralf Wildenhues.
44701
44702 2009-01-17  Bruno Haible  <bruno@clisp.org>
44703
44704         * modules/dprintf-posix-tests: New file.
44705         * tests/test-dprintf-posix.sh: New file.
44706         * tests/test-dprintf-posix.c: New file.
44707
44708         New modules 'dprintf', 'dprintf-posix'.
44709         * lib/stdio.in.h (dprintf): New declaration.
44710         * lib/dprintf.c: New file.
44711         * m4/dprintf.m4: New file.
44712         * m4/dprintf-posix.m4: New file.
44713         * modules/dprintf: New file.
44714         * modules/dprintf-posix: New file.
44715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44716         HAVE_DPRINTF, REPLACE_DPRINTF.
44717         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44718         HAVE_DPRINTF, REPLACE_DPRINTF.
44719         * doc/posix-functions/dprintf.texi: Mention the new modules.
44720
44721 2009-01-17  Bruno Haible  <bruno@clisp.org>
44722
44723         * modules/vdprintf-posix-tests: New file.
44724         * tests/test-vdprintf-posix.sh: New file.
44725         * tests/test-vdprintf-posix.c: New file.
44726
44727         New modules 'vdprintf', 'vdprintf-posix'.
44728         * lib/stdio.in.h (vdprintf): New declaration.
44729         * lib/vdprintf.c: New file.
44730         * m4/vdprintf.m4: New file.
44731         * m4/vdprintf-posix.m4: New file.
44732         * modules/vdprintf: New file.
44733         * modules/vdprintf-posix: New file.
44734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44735         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44736         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44737         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44738         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44739
44740 2009-01-17  Bruno Haible  <bruno@clisp.org>
44741
44742         Fix replacement of fopen on mingw.
44743         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44744         mingw.
44745
44746 2009-01-17  Bruno Haible  <bruno@clisp.org>
44747
44748         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44749         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44750
44751 2009-01-17  Bruno Haible  <bruno@clisp.org>
44752
44753         Avoid test-fflush2.sh failure on mingw.
44754         * tests/test-fflush2.c: Include binary-io.h.
44755         (main): Put standard input into binary mode.
44756         * modules/fflush-tests (Depends-on): Add binary-io.
44757
44758 2009-01-17  Bruno Haible  <bruno@clisp.org>
44759
44760         * lib/wchar.in.h: In another particular situation, include only the
44761         system's <wchar.h> file.
44762         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44763         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44764         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44765
44766 2009-01-17  Bruno Haible  <bruno@clisp.org>
44767
44768         Support for stripping executables in --enable-relocatable.
44769         * build-aux/install-reloc: Expect one more argument, or an environment
44770         variable RELOC_STRIP_PROG. If set, strip the destination program and
44771         its wrapper.
44772         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44773         RELOC_STRIP_PROG.
44774         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44775         to set RELOCATABLE_STRIP.
44776         * NEWS: Mention the new Makefile requirement.
44777
44778 2009-01-17  Bruno Haible  <bruno@clisp.org>
44779
44780         * build-aux/install-reloc: Remove debugging information left over by
44781         C compiler on MacOS X.
44782
44783 2009-01-17  Bruno Haible  <bruno@clisp.org>
44784
44785         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44786         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44787         _NSGetExecutablePath.
44788
44789 2009-01-16  Jim Meyering  <meyering@redhat.com>
44790
44791         strerror: avoid warnings about discarding "const"
44792         * lib/strerror.c (rpl_strerror): Instead of returning a const
44793         string from each and every "case", use a variable, and add a single
44794         cast after the switch.
44795
44796 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44797
44798         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44799
44800 2009-01-16  Bruno Haible  <bruno@clisp.org>
44801
44802         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44803         array initializer syntax that also works in C++ mode.
44804         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44805
44806 2009-01-16  Jim Meyering  <meyering@redhat.com>
44807
44808         poll: suppress a warning
44809         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44810         to ignore "...unsigned expression < 0 is always false" warnings.
44811
44812 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44813
44814         poll: remove declarations of unused variables
44815         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44816         sockbuf and optlen.
44817
44818 2009-01-15  Bruno Haible  <bruno@clisp.org>
44819
44820         Make fflush-after-ungetc POSIX compliant on BSD systems.
44821         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44822         (clear_ungetc_buffer): Implement also for other systems.
44823         (rpl_fflush): On glibc systems, invoke
44824         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44825         clear_ungetc_buffer after fetching the stream's position, not before.
44826
44827 2009-01-15  Bruno Haible  <bruno@clisp.org>
44828
44829         Make fflush-after-ungetc POSIX compliant on glibc systems.
44830         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44831         after ungetc.
44832         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44833         (rpl_fflush): On glibc systems, simply call the system's fflush
44834         function after clearing the ungetc buffer.
44835         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44836         Instead, lseek only to the end of file, then use the system's fseeko
44837         for the rest. On glibc systems, reset the EOF indicator bit.
44838
44839 2009-01-15  Jim Meyering  <meyering@redhat.com>
44840
44841         openmp.m4: revert quote-adding change, for portability to older autoconf
44842         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44843         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44844         Simon Josefsson noticed the problem when using autoconf-2.61.
44845
44846 2009-01-15  Bruno Haible  <bruno@clisp.org>
44847
44848         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44849         * tests/test-fflush2.c (ASSERT): Always fail.
44850         (main): Add two tests for fflush() after ungetc(), taking into account
44851         the Austin Group's clarification.
44852         Suggested by Eric Blake.
44853
44854 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44855
44856         mktime.m4: remove K&R-style function prototypes
44857         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44858         for the Sun C++ compiler.
44859
44860 2009-01-14  Bruno Haible  <bruno@clisp.org>
44861
44862         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44863         while including <wchar.h>.
44864         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44865         the system's <wchar.h> file.
44866         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44867
44868 2009-01-14  Bruno Haible  <bruno@clisp.org>
44869
44870         * m4/csharp.m4: Don't mention gettext on the serial number line.
44871         * m4/csharpexec.m4: Likewise.
44872         * m4/eaccess.m4: Likewise.
44873         * m4/javaexec.m4: Likewise.
44874         * m4/sig_atomic_t.m4: Likewise.
44875         * m4/tmpdir.m4: Likewise.
44876         * m4/intldir.m4: Bump gettext version.
44877         * m4/lib-ld.m4: Likewise.
44878
44879 2009-01-14  Bruno Haible  <bruno@clisp.org>
44880
44881         * lib/progname.c (set_program_name): Add more comments.
44882         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44883
44884 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44885
44886         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44887         were sys/stat.h does not define it.
44888
44889 2009-01-14  Jim Meyering  <meyering@redhat.com>
44890
44891         many *.m4 files: improve m4 quoting
44892         99% of this change was performed by running the following commands:
44893         git ls-files | grep '\.m4$' | xargs perl -pi \
44894           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44895           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44896           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44897           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44898         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44899         The remainder were to add Copyright dates, increment serial numbers,
44900         undo some changes in comments, exclude m4/intl.m4, and add quotes
44901         around the "1" in ",1" where the unusual spacing prohibited the
44902         above regexps from doing the job.  For more details, see
44903         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44904         * m4/acl.m4: Modified.
44905         * m4/afs.m4: Likewise.
44906         * m4/alloca.m4: Likewise.
44907         * m4/argp.m4: Likewise.
44908         * m4/argz.m4: Likewise.
44909         * m4/atexit.m4: Likewise.
44910         * m4/bison-i18n.m4: Likewise.
44911         * m4/bison.m4: Likewise.
44912         * m4/byteswap.m4: Likewise.
44913         * m4/c-stack.m4: Likewise.
44914         * m4/c-strtod.m4: Likewise.
44915         * m4/calloc.m4: Likewise.
44916         * m4/canonicalize-lgpl.m4: Likewise.
44917         * m4/chown.m4: Likewise.
44918         * m4/clock_time.m4: Likewise.
44919         * m4/codeset.m4: Likewise.
44920         * m4/copy-file.m4: Likewise.
44921         * m4/csharp.m4: Likewise.
44922         * m4/csharpcomp.m4: Likewise.
44923         * m4/csharpexec.m4: Likewise.
44924         * m4/d-ino.m4: Likewise.
44925         * m4/d-type.m4: Likewise.
44926         * m4/dirfd.m4: Likewise.
44927         * m4/double-slash-root.m4: Likewise.
44928         * m4/eaccess.m4: Likewise.
44929         * m4/eealloc.m4: Likewise.
44930         * m4/environ.m4: Likewise.
44931         * m4/errno_h.m4: Likewise.
44932         * m4/euidaccess.m4: Likewise.
44933         * m4/execute.m4: Likewise.
44934         * m4/fatal-signal.m4: Likewise.
44935         * m4/fchdir.m4: Likewise.
44936         * m4/fcntl_h.m4: Likewise.
44937         * m4/fileblocks.m4: Likewise.
44938         * m4/filenamecat.m4: Likewise.
44939         * m4/findprog.m4: Likewise.
44940         * m4/flexmember.m4: Likewise.
44941         * m4/fnmatch.m4: Likewise.
44942         * m4/fopen.m4: Likewise.
44943         * m4/fpending.m4: Likewise.
44944         * m4/fprintf-posix.m4: Likewise.
44945         * m4/free.m4: Likewise.
44946         * m4/frexp.m4: Likewise.
44947         * m4/frexpl.m4: Likewise.
44948         * m4/fsusage.m4: Likewise.
44949         * m4/ftruncate.m4: Likewise.
44950         * m4/gc-camellia.m4: Likewise.
44951         * m4/gc-random.m4: Likewise.
44952         * m4/gc.m4: Likewise.
44953         * m4/getaddrinfo.m4: Likewise.
44954         * m4/getcwd-abort-bug.m4: Likewise.
44955         * m4/getcwd-path-max.m4: Likewise.
44956         * m4/getdate.m4: Likewise.
44957         * m4/getdomainname.m4: Likewise.
44958         * m4/getgroups.m4: Likewise.
44959         * m4/gethostname.m4: Likewise.
44960         * m4/gethrxtime.m4: Likewise.
44961         * m4/getline.m4: Likewise.
44962         * m4/getloadavg.m4: Likewise.
44963         * m4/getndelim2.m4: Likewise.
44964         * m4/getpass.m4: Likewise.
44965         * m4/gettext.m4: Likewise.
44966         * m4/gettime.m4: Likewise.
44967         * m4/gettimeofday.m4: Likewise.
44968         * m4/gnulib-common.m4: Likewise.
44969         * m4/group-member.m4: Likewise.
44970         * m4/host-os.m4: Likewise.
44971         * m4/iconv.m4: Likewise.
44972         * m4/iconv_open.m4: Likewise.
44973         * m4/inet_ntop.m4: Likewise.
44974         * m4/inet_pton.m4: Likewise.
44975         * m4/inline.m4: Likewise.
44976         * m4/intldir.m4: Likewise.
44977         * m4/intlmacosx.m4: Likewise.
44978         * m4/intmax.m4: Likewise.
44979         * m4/intmax_t.m4: Likewise.
44980         * m4/inttypes.m4: Likewise.
44981         * m4/inttypes_h.m4: Likewise.
44982         * m4/inttypes-pri.m4: Likewise.
44983         * m4/isapipe.m4: Likewise.
44984         * m4/isnand.m4: Likewise.
44985         * m4/isnanf.m4: Likewise.
44986         * m4/isnanl.m4: Likewise.
44987         * m4/javacomp.m4: Likewise.
44988         * m4/javaexec.m4: Likewise.
44989         * m4/jm-winsz1.m4: Likewise.
44990         * m4/jm-winsz2.m4: Likewise.
44991         * m4/lchown.m4: Likewise.
44992         * m4/lcmessage.m4: Likewise.
44993         * m4/ldexpl.m4: Likewise.
44994         * m4/lib-ld.m4: Likewise.
44995         * m4/lib-link.m4: Likewise.
44996         * m4/libsigsegv.m4: Likewise.
44997         * m4/link-follow.m4: Likewise.
44998         * m4/localcharset.m4: Likewise.
44999         * m4/locale-fr.m4: Likewise.
45000         * m4/locale-ja.m4: Likewise.
45001         * m4/locale-tr.m4: Likewise.
45002         * m4/locale-zh.m4: Likewise.
45003         * m4/lock.m4: Likewise.
45004         * m4/longlong.m4: Likewise.
45005         * m4/ls-mntd-fs.m4: Likewise.
45006         * m4/lstat.m4: Likewise.
45007         * m4/malloc.m4: Likewise.
45008         * m4/mathl.m4: Likewise.
45009         * m4/mbrtowc.m4: Likewise.
45010         * m4/mbstate_t.m4: Likewise.
45011         * m4/mbswidth.m4: Likewise.
45012         * m4/memchr.m4: Likewise.
45013         * m4/memcmp.m4: Likewise.
45014         * m4/memcpy.m4: Likewise.
45015         * m4/memmem.m4: Likewise.
45016         * m4/memmove.m4: Likewise.
45017         * m4/mempcpy.m4: Likewise.
45018         * m4/memrchr.m4: Likewise.
45019         * m4/memset.m4: Likewise.
45020         * m4/minmax.m4: Likewise.
45021         * m4/mkdir-slash.m4: Likewise.
45022         * m4/mkdtemp.m4: Likewise.
45023         * m4/mktime.m4: Likewise.
45024         * m4/mmap-anon.m4: Likewise.
45025         * m4/mountlist.m4: Likewise.
45026         * m4/nanosleep.m4: Likewise.
45027         * m4/nls.m4: Likewise.
45028         * m4/nocrash.m4: Likewise.
45029         * m4/open.m4: Likewise.
45030         * m4/openat.m4: Likewise.
45031         * m4/openmp.m4: Likewise.
45032         * m4/pathmax.m4: Likewise.
45033         * m4/perl.m4: Likewise.
45034         * m4/physmem.m4: Likewise.
45035         * m4/pipe.m4: Likewise.
45036         * m4/po.m4: Likewise.
45037         * m4/poll.m4: Likewise.
45038         * m4/posixtm.m4: Likewise.
45039         * m4/posixver.m4: Likewise.
45040         * m4/printf-frexp.m4: Likewise.
45041         * m4/printf-frexpl.m4: Likewise.
45042         * m4/printf-posix.m4: Likewise.
45043         * m4/printf-posix-rpl.m4: Likewise.
45044         * m4/printf.m4: Likewise.
45045         * m4/progtest.m4: Likewise.
45046         * m4/putenv.m4: Likewise.
45047         * m4/readline.m4: Likewise.
45048         * m4/readlink.m4: Likewise.
45049         * m4/readutmp.m4: Likewise.
45050         * m4/realloc.m4: Likewise.
45051         * m4/regex.m4: Likewise.
45052         * m4/relocatable.m4: Likewise.
45053         * m4/relocatable-lib.m4: Likewise.
45054         * m4/rename-dest-slash.m4: Likewise.
45055         * m4/rename.m4: Likewise.
45056         * m4/rmdir-errno.m4: Likewise.
45057         * m4/rmdir.m4: Likewise.
45058         * m4/roundf.m4: Likewise.
45059         * m4/roundl.m4: Likewise.
45060         * m4/rpmatch.m4: Likewise.
45061         * m4/save-cwd.m4: Likewise.
45062         * m4/selinux-selinux-h.m4: Likewise.
45063         * m4/setenv.m4: Likewise.
45064         * m4/settime.m4: Likewise.
45065         * m4/sig2str.m4: Likewise.
45066         * m4/sig_atomic_t.m4: Likewise.
45067         * m4/signalblocking.m4: Likewise.
45068         * m4/signbit.m4: Likewise.
45069         * m4/sigpipe.m4: Likewise.
45070         * m4/sockets.m4: Likewise.
45071         * m4/sockpfaf.m4: Likewise.
45072         * m4/st_dm_mode.m4: Likewise.
45073         * m4/stat-time.m4: Likewise.
45074         * m4/stdbool.m4: Likewise.
45075         * m4/stdint.m4: Likewise.
45076         * m4/stdint_h.m4: Likewise.
45077         * m4/stpcpy.m4: Likewise.
45078         * m4/stpncpy.m4: Likewise.
45079         * m4/strcase.m4: Likewise.
45080         * m4/strchrnul.m4: Likewise.
45081         * m4/strcspn.m4: Likewise.
45082         * m4/strdup.m4: Likewise.
45083         * m4/strftime.m4: Likewise.
45084         * m4/strndup.m4: Likewise.
45085         * m4/strnlen.m4: Likewise.
45086         * m4/strpbrk.m4: Likewise.
45087         * m4/strptime.m4: Likewise.
45088         * m4/strsep.m4: Likewise.
45089         * m4/strtod.m4: Likewise.
45090         * m4/strtoimax.m4: Likewise.
45091         * m4/strtok_r.m4: Likewise.
45092         * m4/strtol.m4: Likewise.
45093         * m4/strtoll.m4: Likewise.
45094         * m4/strtoul.m4: Likewise.
45095         * m4/strtoull.m4: Likewise.
45096         * m4/strtoumax.m4: Likewise.
45097         * m4/strverscmp.m4: Likewise.
45098         * m4/threadlib.m4: Likewise.
45099         * m4/timegm.m4: Likewise.
45100         * m4/tm_gmtoff.m4: Likewise.
45101         * m4/tmpdir.m4: Likewise.
45102         * m4/tmpfile.m4: Likewise.
45103         * m4/tzset.m4: Likewise.
45104         * m4/uintmax_t.m4: Likewise.
45105         * m4/unlinkdir.m4: Likewise.
45106         * m4/unlocked-io.m4: Likewise.
45107         * m4/uptime.m4: Likewise.
45108         * m4/userspec.m4: Likewise.
45109         * m4/utimbuf.m4: Likewise.
45110         * m4/utime.m4: Likewise.
45111         * m4/utimes-null.m4: Likewise.
45112         * m4/utimes.m4: Likewise.
45113         * m4/vararrays.m4: Likewise.
45114         * m4/vasnprintf.m4: Likewise.
45115         * m4/vfprintf-posix.m4: Likewise.
45116         * m4/vprintf-posix.m4: Likewise.
45117         * m4/wait-process.m4: Likewise.
45118         * m4/wchar_t.m4: Likewise.
45119         * m4/wint_t.m4: Likewise.
45120         * m4/write-any-file.m4: Likewise.
45121         * m4/yield.m4: Likewise.
45122
45123 2009-01-13  Bruno Haible  <bruno@clisp.org>
45124
45125         Avoid test-copy-file.sh failures when ACL support insufficient.
45126         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
45127         TESTS_ENVIRONMENT.
45128         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
45129         Reported by Jim Meyering.
45130
45131 2009-01-13  Bruno Haible  <bruno@clisp.org>
45132
45133         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
45134         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
45135         * modules/unistdio/u8-printf-parse (Files): Likewise.
45136         * modules/unistdio/u32-printf-parse (Files): Likewise.
45137         * modules/unistdio/ulc-printf-parse (Files): Likewise.
45138
45139 2009-01-13  Simon Josefsson  <simon@josefsson.org>
45140
45141         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
45142         and m4/inttypes_h.m4 too.
45143
45144 2009-01-12  Eric Blake  <ebb9@byu.net>
45145
45146         tests: IRIX 6.2 cc can't compile -0.0 into .data
45147         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
45148         rather than at compile-time.
45149         * tests/test-floorl.c (minus_zero): Likewise.
45150         * tests/test-frexpl.c (minus_zero): Likewise.
45151         * tests/test-isnan.c (minus_zerol): Likewise.
45152         * tests/test-isnanl.h (minus_zero): Likewise.
45153         * tests/test-ldexpl.c (minus_zero): Likewise.
45154         * tests/test-roundl.c (minus_zero): Likewise.
45155         * tests/test-signbit.c (minus_zerol): Likewise.
45156         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45157         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45158         * tests/test-truncl.c (minus_zero): Likewise.
45159         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45160         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45161         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45162
45163 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45164
45165         regex: fix glibc bug 9697
45166         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45167         handling.
45168
45169 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45170
45171         regex: fix glibc bug 697
45172         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45173         being NULL also if there are no backreferences.
45174
45175 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45176
45177         regex: merge glibc changes
45178         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45179         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45180         re_string_skip_chars, re_string_reconstruct): Likewise.
45181         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45182
45183 2009-01-07  Jim Meyering  <meyering@redhat.com>
45184
45185         poll: filter through cppi
45186         * lib/poll.c: Indent cpp directives to reflect nesting.
45187
45188 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45189
45190         poll: don't return uninitialized
45191         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45192
45193 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45194
45195         avoid compile failure on AIX 6.1
45196         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45197         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45198
45199 2009-01-04  Jim Meyering  <meyering@redhat.com>
45200
45201         remove duplicate inclusion of <stdio.h>
45202         * tests/test-fprintf-posix.c: Likewise.
45203         * tests/test-printf-posix.c: Likewise.
45204         * tests/test-snprintf-posix.c: Likewise.
45205         * tests/test-sprintf-posix.c: Likewise.
45206         * tests/test-vasprintf-posix.c: Likewise.
45207         * tests/test-vfprintf-posix.c: Likewise.
45208         * tests/test-vprintf-posix.c: Likewise.
45209         * tests/test-vsnprintf-posix.c: Likewise.
45210         * tests/test-vsprintf-posix.c: Likewise.
45211
45212 2009-01-03  Jim Meyering  <meyering@redhat.com>
45213
45214         gnulib-tool: fix sed-based filtering
45215         * gnulib-tool (func_filter_filelist): Remove extra backslash
45216         in sed_fff_filter definition.
45217
45218 2009-01-02  Jim Meyering  <meyering@redhat.com>
45219
45220         strftime: avoid compilation failure on Solaris 2.6
45221         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45222         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45223         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45224         be available.  Reported by Tom G. Christensen.  Details in
45225         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45226
45227 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45228             Bruno Haible  <bruno@clisp.org>
45229
45230         Speed up gnulib-tool by doing more string processing through shell
45231         built-ins.
45232         * gnulib-tool (fast_func_append): New variable.
45233         (func_remove_prefix, func_remove_suffix): New functions.
45234         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45235         (func_filter_filelist): New function.
45236         (func_get_dependencies): Use func_remove_suffix instead of sed.
45237         (func_get_automake_snippet): Use func_filter_filelist instead of a
45238         subshell and sed invocation.
45239
45240 2009-01-01  Bruno Haible  <bruno@clisp.org>
45241
45242         Fix a security bug.
45243         * gnulib-tool (func_import, import, update): Don't allow the characters
45244         '"', '$', '`', '\' in macro arguments that become part of commands that
45245         are evaluated.
45246
45247 2009-01-01  Bruno Haible  <bruno@clisp.org>
45248
45249         * gnulib-tool (func_reset_sigpipe): Add more comments.
45250
45251 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45252
45253         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45254         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45255         already know the answer.
45256
45257 2009-01-01  Jim Meyering  <meyering@redhat.com>
45258
45259         * lib/version-etc.c (version_etc_va): Update copyright year.
45260
45261 2008-12-30  Bruno Haible  <bruno@clisp.org>
45262
45263         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45264         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45265         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45266
45267 2008-12-29  Eric Blake  <ebb9@byu.net>
45268
45269         multiarch: avoid autoconf AC_REQUIRE bug
45270         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45271         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45272         2.63 and older.
45273         Reported by Bruno Haible, and analyzed in
45274         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45275
45276 2008-12-29  Bruno Haible  <bruno@clisp.org>
45277
45278         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45279         files in subdirectories correctly.
45280         Reported by Ralf Wildenhues.
45281
45282 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45283
45284         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45285         rather than 'join FILE -', for Solaris join.
45286
45287 2008-12-29  Bruno Haible  <bruno@clisp.org>
45288
45289         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45290         quoting.
45291         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45292         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45293         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45294         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45295         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45296         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45297         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45298         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45299         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45300         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45301         * m4/nls.m4 (AM_NLS): Likewise.
45302         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45303         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45304         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45305         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45306         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45307         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45308         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45309         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45310         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45311         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45312         * m4/xsize.m4 (gl_XSIZE): Likewise.
45313         Suggested by Jim Meyering.
45314
45315 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45316
45317         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45318         * lib/parse-duration.c: use a switch instead of cascading if's.
45319
45320 2008-12-29  Eric Blake  <ebb9@byu.net>
45321
45322         wchar.h: supply WEOF on Irix 5.3
45323         * lib/wchar.in.h (wint_t): Also supply WEOF.
45324         * lib/wctype.in.h (wint_t): Likewise.
45325         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45326         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45327         Reported by Tom G. Christensen.
45328
45329 2008-12-26  Bruno Haible  <bruno@clisp.org>
45330
45331         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45332         i486, i586, i686.
45333
45334 2008-12-26  Bruno Haible  <bruno@clisp.org>
45335
45336         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45337
45338 2008-12-26  Bruno Haible  <bruno@clisp.org>
45339
45340         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45341         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45342         not __STDC_CONSTANT_MACROS.
45343         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45344
45345 2008-12-25  Bruno Haible  <bruno@clisp.org>
45346
45347         Add support for universal builds to vasnprintf.
45348         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45349         universal builds, guess no.
45350         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45351         * modules/vasprintf-posix (Depends-on): Likewise.
45352         * modules/fprintf-posix (Depends-on): Likewise.
45353         * modules/vfprintf-posix (Depends-on): Likewise.
45354         * modules/snprintf-posix (Depends-on): Likewise.
45355         * modules/vsnprintf-posix (Depends-on): Likewise.
45356         * modules/sprintf-posix (Depends-on): Likewise.
45357         * modules/vsprintf-posix (Depends-on): Likewise.
45358         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45359         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45360         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45361         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45362         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45363         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45364         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45365
45366         Add support for universal builds to <inttypes.h>.
45367         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45368         _SCNu64_PREFIX): In Apple
45369         universal builds, define directly, using _LP64.
45370         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45371         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45372         * modules/inttypes (Depends-on): Add multiarch.
45373         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45374
45375         Add support for universal builds to <stdint.h>.
45376         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45377         universal builds, define directly, using _LP64.
45378         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45379         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45380         and size_t.
45381         * modules/stdint (Depends-on): Add multiarch.
45382         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45383
45384         New module 'multiarch'.
45385         * modules/multiarch: New file.
45386         * m4/multiarch.m4: New file.
45387
45388 2008-12-25  Bruno Haible  <bruno@clisp.org>
45389
45390         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45391
45392 2008-12-25  Bruno Haible  <bruno@clisp.org>
45393
45394         * modules/btowc (License): Relicense under LGPLv2+.
45395         * modules/mbsinit (License): Likewise.
45396         * modules/mbrtowc (License): Likewise.
45397         * modules/wcrtomb (License): Likewise.
45398         * modules/streq (License): Likewise.
45399         Reported by David Lutterkort <lutter@redhat.com>.
45400
45401 2008-12-23  Bruno Haible  <bruno@clisp.org>
45402
45403         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45404
45405 2008-12-23  Bruno Haible  <bruno@clisp.org>
45406
45407         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45408         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45409         GETADDRINFO_LIB, not in LIBS.
45410         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45411         * modules/canon-host (Link): Likewise.
45412         * NEWS: Mention the change.
45413         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45414         GETADDRINFO_LIB.
45415
45416 2008-12-22  Bruno Haible  <bruno@clisp.org>
45417
45418         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45419         * doc/posix-functions/iswalpha_l.texi: Likewise.
45420         * doc/posix-functions/iswblank_l.texi: Likewise.
45421         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45422         * doc/posix-functions/iswctype_l.texi: Likewise.
45423         * doc/posix-functions/iswdigit_l.texi: Likewise.
45424         * doc/posix-functions/iswgraph_l.texi: Likewise.
45425         * doc/posix-functions/iswlower_l.texi: Likewise.
45426         * doc/posix-functions/iswprint_l.texi: Likewise.
45427         * doc/posix-functions/iswpunct_l.texi: Likewise.
45428         * doc/posix-functions/iswspace_l.texi: Likewise.
45429         * doc/posix-functions/iswupper_l.texi: Likewise.
45430         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45431         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45432         * doc/posix-functions/open_wmemstream.texi: Likewise.
45433         * doc/posix-functions/swscanf.texi: Likewise.
45434         * doc/posix-functions/towctrans_l.texi: Likewise.
45435         * doc/posix-functions/towlower.texi: Likewise.
45436         * doc/posix-functions/towlower_l.texi: Likewise.
45437         * doc/posix-functions/towupper.texi: Likewise.
45438         * doc/posix-functions/towupper_l.texi: Likewise.
45439         * doc/posix-functions/vfwprintf.texi: Likewise.
45440         * doc/posix-functions/vfwscanf.texi: Likewise.
45441         * doc/posix-functions/vswscanf.texi: Likewise.
45442         * doc/posix-functions/vwprintf.texi: Likewise.
45443         * doc/posix-functions/vwscanf.texi: Likewise.
45444         * doc/posix-functions/wcpcpy.texi: Likewise.
45445         * doc/posix-functions/wcpncpy.texi: Likewise.
45446         * doc/posix-functions/wcscasecmp.texi: Likewise.
45447         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45448         * doc/posix-functions/wcscoll_l.texi: Likewise.
45449         * doc/posix-functions/wcsdup.texi: Likewise.
45450         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45451         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45452         * doc/posix-functions/wcsnlen.texi: Likewise.
45453         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45454         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45455         * doc/posix-functions/wctrans_l.texi: Likewise.
45456         * doc/posix-functions/wctype_l.texi: Likewise.
45457         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45458         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45459         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45460         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45461         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45462         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45463         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45464         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45465         * doc/glibc-functions/wcschrnul.texi: Likewise.
45466         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45467         * doc/glibc-functions/wcstod_l.texi: Likewise.
45468         * doc/glibc-functions/wcstof_l.texi: Likewise.
45469         * doc/glibc-functions/wcstol_l.texi: Likewise.
45470         * doc/glibc-functions/wcstold_l.texi: Likewise.
45471         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45472         * doc/glibc-functions/wcstoq.texi: Likewise.
45473         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45474         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45475         * doc/glibc-functions/wcstouq.texi: Likewise.
45476         * doc/glibc-functions/wmempcpy.texi: Likewise.
45477
45478 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45479             Eric Blake  <ebb9@byu.net>
45480             Paolo Bonzini  <bonzini@gnu.org>
45481             Bruno Haible  <bruno@clisp.org>
45482
45483         Make c-stack work on Haiku.
45484         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45485         (c_stack_action): Use SA_ONSTACK flag.
45486
45487 2008-12-22  Bruno Haible  <bruno@clisp.org>
45488
45489         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45490
45491 2008-12-22  Bruno Haible  <bruno@clisp.org>
45492
45493         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45494         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45495         being overridden.
45496         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45497         New macros.
45498         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45500         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45501         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45502
45503 2008-12-22  Bruno Haible  <bruno@clisp.org>
45504
45505         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45506         from test code.
45507
45508 2008-12-22  Eric Blake  <ebb9@byu.net>
45509
45510         Avoid gcc warnings on cygwin.
45511         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45512         Avoid unused variable.
45513         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45514         Likewise.
45515
45516 2008-12-22  Bruno Haible  <bruno@clisp.org>
45517
45518         Remove HAVE_MBRTOWC conditionals.
45519         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45520         (mbscasecmp): Assume mbrtowc function.
45521         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45522         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45523         * lib/mbschr.c: Include mbuiter.h unconditionally.
45524         (mbschr): Assume mbrtowc function.
45525         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45526         (mbscspn): Assume mbrtowc function.
45527         * lib/mbslen.c: Include mbuiter.h unconditionally.
45528         (mbslen): Assume mbrtowc function.
45529         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45530         (mbsncasecmp): Assume mbrtowc function.
45531         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45532         (mbsnlen): Assume mbrtowc function.
45533         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45534         (mbspbrk): Assume mbrtowc function.
45535         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45536         (mbspcasecmp): Assume mbrtowc function.
45537         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45538         (mbsrchr): Assume mbrtowc function.
45539         * lib/mbssep.c: Include mbuiter.h unconditionally.
45540         (mbssep): Assume mbrtowc function.
45541         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45542         (mbsspn): Assume mbrtowc function.
45543         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45544         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45545         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45546         (mbstok_r): Assume mbrtowc function.
45547         * lib/propername.c: Include mbuiter.h unconditionally.
45548         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45549         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45550         (trim2): Assume mbrtowc function.
45551         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45552         (mbsnwidth): Assume mbrtowc function.
45553         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45554         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45555         fallback definitions.
45556         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45557
45558 2008-12-22  Bruno Haible  <bruno@clisp.org>
45559
45560         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45561
45562 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45563
45564         * modules/regex: Request emulations for the mb*/wc* functions we need.
45565         * m4/regex.m4: Don't look for those functions here.
45566         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45567
45568 2008-12-22  Bruno Haible  <bruno@clisp.org>
45569
45570         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45571
45572 2008-12-21  Bruno Haible  <bruno@clisp.org>
45573
45574         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45575         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45576         (Include): Remove conditionalization.
45577         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45578         (Include): Remove conditionalization.
45579         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45580         (Include): Remove conditionalization.
45581         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45582         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45583         * NEWS: Mention the change.
45584         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45585         via Sergey Poznyakoff <gray@gnu.org.ua>.
45586
45587 2008-12-21  Bruno Haible  <bruno@clisp.org>
45588
45589         * MODULES.html.sh (Extended multibyte and wide character utilities
45590         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45591         wcrtomb, wcsrtombs.
45592         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45593         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45594         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45595         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45596
45597 2008-12-21  Bruno Haible  <bruno@clisp.org>
45598
45599         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45600
45601 2008-12-21  Bruno Haible  <bruno@clisp.org>
45602
45603         * modules/wcsnrtombs-tests: New file.
45604         * tests/test-wcsnrtombs1.sh: New file.
45605         * tests/test-wcsnrtombs2.sh: New file.
45606         * tests/test-wcsnrtombs3.sh: New file.
45607         * tests/test-wcsnrtombs4.sh: New file.
45608         * tests/test-wcsnrtombs.c: New file.
45609
45610         New module 'wcsnrtombs'.
45611         * lib/wchar.in.h (wcsnrtombs): New declaration.
45612         * lib/wcsnrtombs.c: New file.
45613         * lib/wcsrtombs-state.c: New file.
45614         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45615         (internal_state): Remove variable.
45616         * m4/wcsnrtombs.m4: New file.
45617         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45618         compilation units.
45619         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45620         HAVE_WCSNRTOMBS.
45621         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45622         HAVE_WCSNRTOMBS.
45623         * modules/wcsnrtombs: New file.
45624         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45625         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45626
45627 2008-12-21  Bruno Haible  <bruno@clisp.org>
45628
45629         * modules/wcsrtombs-tests: New file.
45630         * tests/test-wcsrtombs1.sh: New file.
45631         * tests/test-wcsrtombs2.sh: New file.
45632         * tests/test-wcsrtombs3.sh: New file.
45633         * tests/test-wcsrtombs4.sh: New file.
45634         * tests/test-wcsrtombs.c: New file.
45635
45636         New module 'wcsrtombs'.
45637         * lib/wchar.in.h (wcsrtombs): New declaration.
45638         * lib/wcsrtombs.c: New file.
45639         * m4/wcsrtombs.m4: New file.
45640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45641         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45642         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45643         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45644         * modules/wcsrtombs: New file.
45645         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45646         bugs.
45647
45648 2008-12-21  Bruno Haible  <bruno@clisp.org>
45649
45650         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45651         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45652         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45653         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45654         if not correct.
45655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45656         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45657         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45658         m4/locale-zh.m4, m4/codeset.m4.
45659         * doc/posix-functions/wcrtomb.texi: Document the bug.
45660
45661 2008-12-21  Bruno Haible  <bruno@clisp.org>
45662
45663         Work around a btowc() bug on IRIX 6.5.
45664         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45665         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45666         REPLACE_WTOBC if not.
45667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45668         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45669         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45670
45671 2008-12-21  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/wcrtomb-tests: New file.
45674         * tests/test-wcrtomb.sh: New file.
45675         * tests/test-wcrtomb.c: New file.
45676
45677         New module 'wcrtomb'.
45678         * lib/wchar.in.h (wcrtomb): New declaration.
45679         * lib/wcrtomb.c: New file.
45680         * m4/wcrtomb.m4: New file.
45681         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45682         HAVE_WCRTOMB.
45683         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45684         HAVE_WCRTOMB.
45685         * modules/wcrtomb: New file.
45686         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45687
45688 2008-12-21  Bruno Haible  <bruno@clisp.org>
45689
45690         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45691         * modules/mbsrtowcs (Files): Likewise.
45692         * modules/wctob (Files): Likewise.
45693         * modules/c-strcase-tests (Files): Likewise.
45694         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45695         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45696         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45697         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45698         * modules/vasnprintf-posix-tests (Files): Likewise.
45699
45700 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45701
45702         gitlog-to-changelog: pass all command-line arguments to git-log
45703         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45704         it is sometimes convenient to filter the commits in various ways.
45705         gitlog-to-changelog only allows --since to specify a start date,
45706         but git-log itself supports many other filtering mechanisms.
45707         At the moment, I want to filter by branch name.  Rather than
45708         adding a --branch option to gitlog-to-changelog, it seems more
45709         flexible to simply pass all options directly to git-log and let
45710         git do the work.  Notice that this effectively makes --since a
45711         redundant option for gitlog-to-changelog, but removing it would
45712         require current usage to change since calls would then require
45713         an additional '--'.
45714
45715 2008-12-21  Bruno Haible  <bruno@clisp.org>
45716
45717         * modules/mbsnrtowcs-tests: New file.
45718         * tests/test-mbsnrtowcs1.sh: New file.
45719         * tests/test-mbsnrtowcs2.sh: New file.
45720         * tests/test-mbsnrtowcs3.sh: New file.
45721         * tests/test-mbsnrtowcs4.sh: New file.
45722         * tests/test-mbsnrtowcs.c: New file.
45723
45724         New module 'mbsnrtowcs'.
45725         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45726         * lib/mbsnrtowcs.c: New file.
45727         * lib/mbsrtowcs-state.c: New file.
45728         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45729         (internal_state): Remove variable.
45730         * m4/mbsnrtowcs.m4: New file.
45731         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45732         compilation units.
45733         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45734         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45735         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45736         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45737         * modules/mbsnrtowcs: New file.
45738         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45739         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45740         portability problem.
45741
45742 2008-12-21  Bruno Haible  <bruno@clisp.org>
45743
45744         Work around mbsrtowcs bug.
45745         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45746         (gl_FUNC_MBSRTOWCS): Invoke it.
45747         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45748         m4/locale-zh.m4.
45749         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45750
45751 2008-12-21  Bruno Haible  <bruno@clisp.org>
45752
45753         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45754
45755 2008-12-21  Bruno Haible  <bruno@clisp.org>
45756
45757         Update doc for AIX.
45758         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45759         16-bit wchar_t type.
45760         * doc/posix-functions/btowc.texi: Likewise.
45761         * doc/posix-functions/fgetwc.texi: Likewise.
45762         * doc/posix-functions/fgetws.texi: Likewise.
45763         * doc/posix-functions/fputwc.texi: Likewise.
45764         * doc/posix-functions/fputws.texi: Likewise.
45765         * doc/posix-functions/fwide.texi: Likewise.
45766         * doc/posix-functions/fwprintf.texi: Likewise.
45767         * doc/posix-functions/fwscanf.texi: Likewise.
45768         * doc/posix-functions/getwchar.texi: Likewise.
45769         * doc/posix-functions/getwc.texi: Likewise.
45770         * doc/posix-functions/iswalnum.texi: Likewise.
45771         * doc/posix-functions/iswalpha.texi: Likewise.
45772         * doc/posix-functions/iswblank.texi: Likewise.
45773         * doc/posix-functions/iswcntrl.texi: Likewise.
45774         * doc/posix-functions/iswctype.texi: Likewise.
45775         * doc/posix-functions/iswdigit.texi: Likewise.
45776         * doc/posix-functions/iswgraph.texi: Likewise.
45777         * doc/posix-functions/iswlower.texi: Likewise.
45778         * doc/posix-functions/iswprint.texi: Likewise.
45779         * doc/posix-functions/iswpunct.texi: Likewise.
45780         * doc/posix-functions/iswspace.texi: Likewise.
45781         * doc/posix-functions/iswupper.texi: Likewise.
45782         * doc/posix-functions/iswxdigit.texi: Likewise.
45783         * doc/posix-functions/mbrtowc.texi: Likewise.
45784         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45785         * doc/posix-functions/mbstowcs.texi: Likewise.
45786         * doc/posix-functions/mbtowc.texi: Likewise.
45787         * doc/posix-functions/putwchar.texi: Likewise.
45788         * doc/posix-functions/putwc.texi: Likewise.
45789         * doc/posix-functions/swprintf.texi: Likewise.
45790         * doc/posix-functions/tolower.texi: Likewise.
45791         * doc/posix-functions/toupper.texi: Likewise.
45792         * doc/posix-functions/towctrans.texi: Likewise.
45793         * doc/posix-functions/ungetwc.texi: Likewise.
45794         * doc/posix-functions/vswprintf.texi: Likewise.
45795         * doc/posix-functions/wcrtomb.texi: Likewise.
45796         * doc/posix-functions/wcscat.texi: Likewise.
45797         * doc/posix-functions/wcschr.texi: Likewise.
45798         * doc/posix-functions/wcscmp.texi: Likewise.
45799         * doc/posix-functions/wcscoll.texi: Likewise.
45800         * doc/posix-functions/wcscpy.texi: Likewise.
45801         * doc/posix-functions/wcscspn.texi: Likewise.
45802         * doc/posix-functions/wcsftime.texi: Likewise.
45803         * doc/posix-functions/wcslen.texi: Likewise.
45804         * doc/posix-functions/wcsncat.texi: Likewise.
45805         * doc/posix-functions/wcsncmp.texi: Likewise.
45806         * doc/posix-functions/wcsncpy.texi: Likewise.
45807         * doc/posix-functions/wcspbrk.texi: Likewise.
45808         * doc/posix-functions/wcsrchr.texi: Likewise.
45809         * doc/posix-functions/wcsrtombs.texi: Likewise.
45810         * doc/posix-functions/wcsspn.texi: Likewise.
45811         * doc/posix-functions/wcsstr.texi: Likewise.
45812         * doc/posix-functions/wcstod.texi: Likewise.
45813         * doc/posix-functions/wcstof.texi: Likewise.
45814         * doc/posix-functions/wcstoimax.texi: Likewise.
45815         * doc/posix-functions/wcstok.texi: Likewise.
45816         * doc/posix-functions/wcstold.texi: Likewise.
45817         * doc/posix-functions/wcstoll.texi: Likewise.
45818         * doc/posix-functions/wcstol.texi: Likewise.
45819         * doc/posix-functions/wcstombs.texi: Likewise.
45820         * doc/posix-functions/wcstoull.texi: Likewise.
45821         * doc/posix-functions/wcstoul.texi: Likewise.
45822         * doc/posix-functions/wcstoumax.texi: Likewise.
45823         * doc/posix-functions/wcswidth.texi: Likewise.
45824         * doc/posix-functions/wcsxfrm.texi: Likewise.
45825         * doc/posix-functions/wctob.texi: Likewise.
45826         * doc/posix-functions/wctomb.texi: Likewise.
45827         * doc/posix-functions/wctrans.texi: Likewise.
45828         * doc/posix-functions/wctype.texi: Likewise.
45829         * doc/posix-functions/wcwidth.texi: Likewise.
45830         * doc/posix-functions/wmemchr.texi: Likewise.
45831         * doc/posix-functions/wmemcmp.texi: Likewise.
45832         * doc/posix-functions/wmemcpy.texi: Likewise.
45833         * doc/posix-functions/wmemmove.texi: Likewise.
45834         * doc/posix-functions/wmemset.texi: Likewise.
45835         * doc/posix-functions/wprintf.texi: Likewise.
45836         * doc/posix-functions/wscanf.texi: Likewise.
45837
45838 2008-12-21  Bruno Haible  <bruno@clisp.org>
45839
45840         Update doc for HP-UX 11.11.
45841         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45842         in HP-UX version 11.00, not in all versions of HP-UX 11.
45843         * doc/posix-functions/fwide.texi: Likewise.
45844         * doc/posix-functions/fwprintf.texi: Likewise.
45845         * doc/posix-functions/fwscanf.texi: Likewise.
45846         * doc/posix-functions/inet_ntop.texi: Likewise.
45847         * doc/posix-functions/inet_pton.texi: Likewise.
45848         * doc/posix-functions/mbrlen.texi: Likewise.
45849         * doc/posix-functions/mbrtowc.texi: Likewise.
45850         * doc/posix-functions/mbsinit.texi: Likewise.
45851         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45852         * doc/posix-functions/swprintf.texi: Likewise.
45853         * doc/posix-functions/swscanf.texi: Likewise.
45854         * doc/posix-functions/towctrans.texi: Likewise.
45855         * doc/posix-functions/vfwprintf.texi: Likewise.
45856         * doc/posix-functions/vswprintf.texi: Likewise.
45857         * doc/posix-functions/vwprintf.texi: Likewise.
45858         * doc/posix-functions/wcrtomb.texi: Likewise.
45859         * doc/posix-functions/wcsrtombs.texi: Likewise.
45860         * doc/posix-functions/wcsstr.texi: Likewise.
45861         * doc/posix-functions/wctob.texi: Likewise.
45862         * doc/posix-functions/wctrans.texi: Likewise.
45863         * doc/posix-functions/wmemchr.texi: Likewise.
45864         * doc/posix-functions/wmemcmp.texi: Likewise.
45865         * doc/posix-functions/wmemcpy.texi: Likewise.
45866         * doc/posix-functions/wmemmove.texi: Likewise.
45867         * doc/posix-functions/wmemset.texi: Likewise.
45868         * doc/posix-functions/wprintf.texi: Likewise.
45869         * doc/posix-functions/wscanf.texi: Likewise.
45870
45871 2008-12-21  Bruno Haible  <bruno@clisp.org>
45872
45873         Work around a portability problem.
45874         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45875         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45876
45877 2008-12-20  Bruno Haible  <bruno@clisp.org>
45878
45879         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45880         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45881         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45882         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45883         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45884
45885         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45886         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45887         set.
45888         (GNULIB_defined_mbstate_t): New macro.
45889         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45890         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45891         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45892         reuses the system's mbrtowc function but works around the bugs.
45893         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45894         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45895         macros.
45896         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45897         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45898         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45899         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45900         REPLACE_MBSINIT if mbsinit needs to be overridden.
45901         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45902         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45903         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45904         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45905         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45906         m4/locale-zh.m4.
45907         (Depends): Add mbsinit.
45908         * modules/mbsinit (Depends): Add mbrtowc.
45909         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45910
45911 2008-12-20  Bruno Haible  <bruno@clisp.org>
45912
45913         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45914         so that there are no conversion errors on AIX.
45915         * tests/test-mbsrtowcs.c (main): LIkewise.
45916
45917 2008-12-20  Bruno Haible  <bruno@clisp.org>
45918
45919         Work around wctob bug on Solaris <= 9.
45920         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45921         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45923         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45924         * modules/wctob (Files): Add m4/locale-fr.m4.
45925         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45926
45927 2008-12-20  Bruno Haible  <bruno@clisp.org>
45928
45929         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45930         /dev/null.
45931         * tests/test-select-in.sh: Likewise.
45932         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45933
45934 2008-12-20  Bruno Haible  <bruno@clisp.org>
45935
45936         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45937         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45938         Cygwin 1.5.x.
45939
45940 2008-12-20  Bruno Haible  <bruno@clisp.org>
45941
45942         Ensure mbstate_t is defined on HP-UX 11.11.
45943         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45944         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45945         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45946         AC_USE_SYSTEM_EXTENSIONS.
45947         * modules/fnmatch (Depends-on): Add extensions.
45948         * modules/mbrlen (Depends-on): Likewise.
45949         * modules/mbrtowc (Depends-on): Likewise.
45950         * modules/mbsinit (Depends-on): Likewise.
45951         * modules/mbsrtowcs (Depends-on): Likewise.
45952         * modules/mbswidth (Depends-on): Likewise.
45953         * modules/quotearg (Depends-on): Likewise.
45954         * modules/strftime (Depends-on): Likewise.
45955
45956 2008-12-20  Bruno Haible  <bruno@clisp.org>
45957
45958         Ensure wctob is declared on IRIX 6.5.
45959         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45960         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45961         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45962         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45963         of HAVE_WCTOB.
45964         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45965         HAVE_WCTOB.
45966         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45967
45968 2008-12-19  Bruno Haible  <bruno@clisp.org>
45969
45970         * modules/mbsrtowcs-tests: New file.
45971         * tests/test-mbsrtowcs1.sh: New file.
45972         * tests/test-mbsrtowcs2.sh: New file.
45973         * tests/test-mbsrtowcs3.sh: New file.
45974         * tests/test-mbsrtowcs4.sh: New file.
45975         * tests/test-mbsrtowcs.c: New file.
45976
45977         New module 'mbsrtowcs'.
45978         * lib/wchar.in.h (mbsrtowcs): New declaration.
45979         * lib/mbsrtowcs.c: New file.
45980         * m4/mbsrtowcs.m4: New file.
45981         * modules/mbsrtowcs: New file.
45982         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45983         HAVE_MBSRTOWCS.
45984         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45985         HAVE_MBSRTOWCS.
45986         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45987
45988 2008-12-19  Bruno Haible  <bruno@clisp.org>
45989
45990         New module 'mbrlen'.
45991         * lib/wchar.in.h (mbrlen): New declaration.
45992         * lib/mbrlen.c: New file.
45993         * m4/mbrlen.m4: New file.
45994         * modules/mbrlen: New file.
45995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45996         HAVE_MBRLEN.
45997         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45998         HAVE_MBRLEN.
45999         * doc/posix-functions/mbrlen.texi: Document the new module.
46000
46001 2008-12-19  Bruno Haible  <bruno@clisp.org>
46002
46003         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
46004         * modules/mbrtowc (Depends-on): Add verify.
46005         Suggested by Paul Eggert.
46006
46007 2008-12-18  Bruno Haible  <bruno@clisp.org>
46008
46009         * modules/mbsinit-tests: New file.
46010         * tests/test-mbsinit.sh: New file.
46011         * tests/test-mbsinit.c: New file.
46012
46013 2008-12-18  Bruno Haible  <bruno@clisp.org>
46014
46015         * modules/mbrtowc-tests: New file.
46016         * tests/test-mbrtowc1.sh: New file.
46017         * tests/test-mbrtowc2.sh: New file.
46018         * tests/test-mbrtowc3.sh: New file.
46019         * tests/test-mbrtowc4.sh: New file.
46020         * tests/test-mbrtowc.c: New file.
46021
46022         New module 'mbrtowc'.
46023         * lib/wchar.in.h (mbstate_t): Override when the system does not have
46024         mbsinit and mbrtowc.
46025         (mbrtowc): New declaration.
46026         * lib/mbrtowc.c: New file.
46027         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
46028         * modules/mbrtowc: New file.
46029         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
46030         HAVE_MBRTOWC.
46031         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
46032         HAVE_MBRTOWC.
46033         * doc/posix-functions/mbrtowc.texi: Document the new module.
46034
46035 2008-12-18  Bruno Haible  <bruno@clisp.org>
46036
46037         New module 'wctob'.
46038         * lib/wchar.in.h (wctob): New declaration.
46039         * lib/wctob.c: New file.
46040         * m4/wctob.m4: New file.
46041         * modules/wctob: New file.
46042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
46043         HAVE_WCTOB.
46044         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
46045         * doc/posix-functions/wctob.texi: Document the new module.
46046
46047 2008-12-18  Bruno Haible  <bruno@clisp.org>
46048
46049         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
46050         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
46051
46052 2008-12-18  Simon Josefsson  <simon@josefsson.org>
46053
46054         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
46055         G. Christensen" <tgc@jupiterrise.com>.
46056
46057         * lib/flock.c: Need to include errno.h.  Reported by "Tom
46058         G. Christensen" <tgc@jupiterrise.com>.
46059
46060         * lib/flock.c: Need to include string.h.  Reported by "Tom
46061         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
46062         <ebb9@byu.net>.
46063
46064 2008-12-18  Bruno Haible  <bruno@clisp.org>
46065
46066         * m4/locale-ja.m4: New file, from GNU gettext.
46067
46068 2008-12-17  Bruno Haible  <bruno@clisp.org>
46069
46070         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
46071         Suggested by Eric Blake.
46072
46073 2008-12-17  Bruno Haible  <bruno@clisp.org>
46074
46075         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
46076
46077 2008-12-17  Bruno Haible  <bruno@clisp.org>
46078
46079         * lib/mbsinit.c: Include verify.h. Verify an assumption.
46080         * modules/mbsinit (Depends-on): Add verify.
46081         Suggested by Paul Eggert.
46082
46083 2008-12-17  Bruno Haible  <bruno@clisp.org>
46084
46085         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
46086         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
46087         gl_FUNC_MBRTOWC.
46088         * m4/mbiter.m4 (gl_MBITER): LIkewise.
46089         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
46090         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
46091         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
46092         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
46093         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
46094         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
46095         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
46096         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
46097         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
46098         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
46099         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
46100         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
46101         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
46102         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
46103         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46104         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
46105         * modules/trim (configure.ac): Likewise.
46106
46107 2008-12-17  Bruno Haible  <bruno@clisp.org>
46108
46109         * modules/btowc-tests: New file.
46110         * tests/test-btowc1.sh: New file.
46111         * tests/test-btowc2.sh: New file.
46112         * tests/test-btowc.c: New file.
46113
46114         New module 'btowc'.
46115         * lib/wchar.in.h (btowc): New declaration.
46116         * lib/btowc.c: New file.
46117         * m4/btowc.m4: New file.
46118         * modules/btowc: New file.
46119         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
46120         HAVE_BTOWC.
46121         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
46122         * doc/posix-functions/btowc.texi: Document the new module.
46123
46124 2008-12-17  Bruno Haible  <bruno@clisp.org>
46125
46126         New module 'mbsinit'.
46127         * lib/wchar.in.h (mbsinit): New declaration.
46128         * lib/mbsinit.c: New file.
46129         * m4/mbsinit.m4: New file.
46130         * modules/mbsinit: New file.
46131         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
46132         HAVE_MBSINIT.
46133         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
46134         HAVE_MBSINIT.
46135         * doc/posix-functions/mbsinit.texi: Document the new module.
46136
46137 2008-12-16  Bruno Haible  <bruno@clisp.org>
46138
46139         * lib/unistd.in.h: Add comment.
46140         * tests/test-environ.c: Don't include <stdlib.h>.
46141
46142 2008-12-16  Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/parse-duration.h (parse_duration): Document return value
46145         convention.
46146         * lib/parse-duration.c: Include specification header first. Add
46147         comments.
46148         (_): Remove macro.
46149         (parse_year_month_day, parse_hour_minute_second): Move side effects
46150         outside of strchr call.
46151         (parse_non_iso8601): Move side effects outside of isspace call.
46152         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
46153         call.
46154
46155 2008-12-16  Bruno Haible  <bruno@clisp.org>
46156
46157         * tests/test-parse-duration.sh: Produce no output when the test
46158         succeeds.
46159
46160 2008-12-16  Bruno Haible  <bruno@clisp.org>
46161
46162         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46163         expressions.
46164
46165 2008-12-15  Bruno Haible  <bruno@clisp.org>
46166
46167         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46168         * doc/glibc-functions/flistxattr.texi: Likewise.
46169         * doc/glibc-functions/fopencookie.texi: Likewise.
46170         * doc/glibc-functions/fremovexattr.texi: Likewise.
46171         * doc/glibc-functions/fsetxattr.texi: Likewise.
46172         * doc/glibc-functions/getxattr.texi: Likewise.
46173         * doc/glibc-functions/lgetxattr.texi: Likewise.
46174         * doc/glibc-functions/listxattr.texi: Likewise.
46175         * doc/glibc-functions/llistxattr.texi: Likewise.
46176         * doc/glibc-functions/lremovexattr.texi: Likewise.
46177         * doc/glibc-functions/lsetxattr.texi: Likewise.
46178         * doc/glibc-functions/removexattr.texi: Likewise.
46179         * doc/glibc-functions/setxattr.texi: Likewise.
46180         * doc/posix-functions/open_memstream.texi: Likewise.
46181
46182 2008-12-15  Eric Blake  <ebb9@byu.net>
46183
46184         Update doc for cygwin 1.7.
46185         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46186         functions.
46187         * doc/posix-functions/fchmodat.texi: Likewise.
46188         * doc/posix-functions/fchownat.texi: Likewise.
46189         * doc/posix-functions/fdopendir.texi: Likewise.
46190         * doc/posix-functions/fmemopen.texi: Likewise.
46191         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46192         * doc/posix-functions/fstatat.texi: Likewise.
46193         * doc/posix-functions/futimens.texi: Likewise.
46194         * doc/posix-functions/gai_strerror.texi: Likewise.
46195         * doc/posix-functions/getaddrinfo.texi: Likewise.
46196         * doc/posix-functions/getnameinfo.texi: Likewise.
46197         * doc/posix-functions/if_freenameindex.texi: Likewise.
46198         * doc/posix-functions/if_indextoname.texi: Likewise.
46199         * doc/posix-functions/if_nameindex.texi: Likewise.
46200         * doc/posix-functions/if_nametoindex.texi: Likewise.
46201         * doc/posix-functions/insque.texi: Likewise.
46202         * doc/posix-functions/linkat.texi: Likewise.
46203         * doc/posix-functions/llrint.texi: Likewise.
46204         * doc/posix-functions/llrintf.texi: Likewise.
46205         * doc/posix-functions/llrintl.texi: Likewise.
46206         * doc/posix-functions/lockf.texi: Likewise.
46207         * doc/posix-functions/lrintl.texi: Likewise.
46208         * doc/posix-functions/mkdirat.texi: Likewise.
46209         * doc/posix-functions/mkfifoat.texi: Likewise.
46210         * doc/posix-functions/mknodat.texi: Likewise.
46211         * doc/posix-functions/mq_close.texi: Likewise.
46212         * doc/posix-functions/mq_getattr.texi: Likewise.
46213         * doc/posix-functions/mq_notify.texi: Likewise.
46214         * doc/posix-functions/mq_open.texi: Likewise.
46215         * doc/posix-functions/mq_receive.texi: Likewise.
46216         * doc/posix-functions/mq_send.texi: Likewise.
46217         * doc/posix-functions/mq_setattr.texi: Likewise.
46218         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46219         * doc/posix-functions/mq_timedsend.texi: Likewise.
46220         * doc/posix-functions/mq_unlink.texi: Likewise.
46221         * doc/posix-functions/open_memstream.texi: Likewise.
46222         * doc/posix-functions/openat.texi: Likewise.
46223         * doc/posix-functions/posix_fadvise.texi: Likewise.
46224         * doc/posix-functions/posix_fallocate.texi: Likewise.
46225         * doc/posix-functions/posix_madvise.texi: Likewise.
46226         * doc/posix-functions/posix_memalign.texi: Likewise.
46227         * doc/posix-functions/posix_openpt.texi: Likewise.
46228         * doc/posix-functions/readlinkat.texi: Likewise.
46229         * doc/posix-functions/remque.texi: Likewise.
46230         * doc/posix-functions/renameat.texi: Likewise.
46231         * doc/posix-functions/rintl.texi: Likewise.
46232         * doc/posix-functions/sem_unlink.texi: Likewise.
46233         * doc/posix-functions/shm_open.texi: Likewise.
46234         * doc/posix-functions/shm_unlink.texi: Likewise.
46235         * doc/posix-functions/signgam.texi: Likewise.
46236         * doc/posix-functions/sigset.texi: Likewise.
46237         * doc/posix-functions/stpcpy.texi: Likewise.
46238         * doc/posix-functions/stpncpy.texi: Likewise.
46239         * doc/posix-functions/strerror.texi: Likewise.
46240         * doc/posix-functions/strtod.texi: Likewise.
46241         * doc/posix-functions/symlinkat.texi: Likewise.
46242         * doc/posix-functions/unlinkat.texi: Likewise.
46243         * doc/posix-functions/utimensat.texi: Likewise.
46244         * doc/glibc-functions/bindresvport.texi: Likewise.
46245         * doc/glibc-functions/dn_expand.texi: Likewise.
46246         * doc/glibc-functions/exp10.texi: Likewise.
46247         * doc/glibc-functions/exp10f.texi: Likewise.
46248         * doc/glibc-functions/fgetxattr.texi: Likewise.
46249         * doc/glibc-functions/flistxattr.texi: Likewise.
46250         * doc/glibc-functions/fopencookie.texi: Likewise.
46251         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46252         * doc/glibc-functions/fremovexattr.texi: Likewise.
46253         * doc/glibc-functions/fsetxattr.texi: Likewise.
46254         * doc/glibc-functions/getifaddrs.texi: Likewise.
46255         * doc/glibc-functions/getxattr.texi: Likewise.
46256         * doc/glibc-functions/lgetxattr.texi: Likewise.
46257         * doc/glibc-functions/listxattr.texi: Likewise.
46258         * doc/glibc-functions/llistxattr.texi: Likewise.
46259         * doc/glibc-functions/lremovexattr.texi: Likewise.
46260         * doc/glibc-functions/lsetxattr.texi: Likewise.
46261         * doc/glibc-functions/pow10.texi: Likewise.
46262         * doc/glibc-functions/pow10f.texi: Likewise.
46263         * doc/glibc-functions/rcmd_af.texi: Likewise.
46264         * doc/glibc-functions/removexattr.texi: Likewise.
46265         * doc/glibc-functions/res_init.texi: Likewise.
46266         * doc/glibc-functions/res_mkquery.texi: Likewise.
46267         * doc/glibc-functions/res_query.texi: Likewise.
46268         * doc/glibc-functions/res_querydomain.texi: Likewise.
46269         * doc/glibc-functions/res_send.texi: Likewise.
46270         * doc/glibc-functions/rresvport_af.texi: Likewise.
46271         * doc/glibc-functions/setxattr.texi: Likewise.
46272         * doc/glibc-functions/strcasestr.texi: Likewise.
46273
46274 2008-12-15  Bruno Haible  <bruno@clisp.org>
46275
46276         Fix compilation error on OSF/1 4.0.
46277         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46278         <sys/time.h>, simply delegate to the system header.
46279         Reported by Daniel Richard G. <oss@teragram.com>.
46280
46281 2008-12-15  Bruno Haible  <bruno@clisp.org>
46282
46283         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46284         * doc/posix-functions/fchmodat.texi: Likewise.
46285         * doc/posix-functions/fchownat.texi: Likewise.
46286         * doc/posix-functions/fdopendir.texi: Likewise.
46287         * doc/posix-functions/fstatat.texi: Likewise.
46288         * doc/posix-functions/mkdirat.texi: Likewise.
46289         * doc/posix-functions/unlinkat.texi: Likewise.
46290
46291 2008-12-14  Bruno Haible  <bruno@clisp.org>
46292
46293         Update doc for POSIX:2008.
46294         * doc/posix-functions/faccessat.texi: New file.
46295         * doc/posix-functions/fchmodat.texi: New file.
46296         * doc/posix-functions/fchownat.texi: New file.
46297         * doc/posix-functions/fdopendir.texi: New file.
46298         * doc/posix-functions/fstatat.texi: New file.
46299         * doc/posix-functions/futimens.texi: New file.
46300         * doc/posix-functions/linkat.texi: New file.
46301         * doc/posix-functions/mkdirat.texi: New file.
46302         * doc/posix-functions/mkfifoat.texi: New file.
46303         * doc/posix-functions/mknodat.texi: New file.
46304         * doc/posix-functions/open_wmemstream.texi: New file.
46305         * doc/posix-functions/openat.texi: New file.
46306         * doc/posix-functions/psiginfo.texi: New file.
46307         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46308         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46309         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46310         * doc/posix-functions/readlinkat.texi: New file.
46311         * doc/posix-functions/renameat.texi: New file.
46312         * doc/posix-functions/strerror_l.texi: New file.
46313         * doc/posix-functions/symlinkat.texi: New file.
46314         * doc/posix-functions/unlinkat.texi: New file.
46315         * doc/posix-functions/utimensat.texi: New file.
46316         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46317
46318 2008-12-14  Bruno Haible  <bruno@clisp.org>
46319
46320         Update doc for POSIX:2008.
46321         * doc/posix-functions/alphasort.texi: Renamed from
46322         doc/glibc-functions/alphasort.texi.
46323         * doc/posix-functions/dirfd.texi: Renamed from
46324         doc/glibc-functions/dirfd.texi.
46325         * doc/posix-functions/dprintf.texi: Renamed from
46326         doc/glibc-functions/dprintf.texi.
46327         * doc/posix-functions/duplocale.texi: Renamed from
46328         doc/glibc-functions/duplocale.texi.
46329         * doc/posix-functions/fexecve.texi: Renamed from
46330         doc/glibc-functions/fexecve.texi.
46331         * doc/posix-functions/fmemopen.texi: Renamed from
46332         doc/glibc-functions/fmemopen.texi.
46333         * doc/posix-functions/freelocale.texi: Renamed from
46334         doc/glibc-functions/freelocale.texi.
46335         * doc/posix-functions/getdate_err.texi: Renamed from
46336         doc/glibc-functions/getdate_err.texi.
46337         * doc/posix-functions/isalnum_l.texi: Renamed from
46338         doc/glibc-functions/isalnum_l.texi.
46339         * doc/posix-functions/isalpha_l.texi: Renamed from
46340         doc/glibc-functions/isalpha_l.texi.
46341         * doc/posix-functions/isblank_l.texi: Renamed from
46342         doc/glibc-functions/isblank_l.texi.
46343         * doc/posix-functions/iscntrl_l.texi: Renamed from
46344         doc/glibc-functions/iscntrl_l.texi.
46345         * doc/posix-functions/isdigit_l.texi: Renamed from
46346         doc/glibc-functions/isdigit_l.texi.
46347         * doc/posix-functions/isgraph_l.texi: Renamed from
46348         doc/glibc-functions/isgraph_l.texi.
46349         * doc/posix-functions/islower_l.texi: Renamed from
46350         doc/glibc-functions/islower_l.texi.
46351         * doc/posix-functions/isprint_l.texi: Renamed from
46352         doc/glibc-functions/isprint_l.texi.
46353         * doc/posix-functions/ispunct_l.texi: Renamed from
46354         doc/glibc-functions/ispunct_l.texi.
46355         * doc/posix-functions/isspace_l.texi: Renamed from
46356         doc/glibc-functions/isspace_l.texi.
46357         * doc/posix-functions/isupper_l.texi: Renamed from
46358         doc/glibc-functions/isupper_l.texi.
46359         * doc/posix-functions/iswalnum_l.texi: Renamed from
46360         doc/glibc-functions/iswalnum_l.texi.
46361         * doc/posix-functions/iswalpha_l.texi: Renamed from
46362         doc/glibc-functions/iswalpha_l.texi.
46363         * doc/posix-functions/iswblank_l.texi: Renamed from
46364         doc/glibc-functions/iswblank_l.texi.
46365         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46366         doc/glibc-functions/iswcntrl_l.texi.
46367         * doc/posix-functions/iswctype_l.texi: Renamed from
46368         doc/glibc-functions/iswctype_l.texi.
46369         * doc/posix-functions/iswdigit_l.texi: Renamed from
46370         doc/glibc-functions/iswdigit_l.texi.
46371         * doc/posix-functions/iswgraph_l.texi: Renamed from
46372         doc/glibc-functions/iswgraph_l.texi.
46373         * doc/posix-functions/iswlower_l.texi: Renamed from
46374         doc/glibc-functions/iswlower_l.texi.
46375         * doc/posix-functions/iswprint_l.texi: Renamed from
46376         doc/glibc-functions/iswprint_l.texi.
46377         * doc/posix-functions/iswpunct_l.texi: Renamed from
46378         doc/glibc-functions/iswpunct_l.texi.
46379         * doc/posix-functions/iswspace_l.texi: Renamed from
46380         doc/glibc-functions/iswspace_l.texi.
46381         * doc/posix-functions/iswupper_l.texi: Renamed from
46382         doc/glibc-functions/iswupper_l.texi.
46383         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46384         doc/glibc-functions/iswxdigit_l.texi.
46385         * doc/posix-functions/isxdigit_l.texi: Renamed from
46386         doc/glibc-functions/isxdigit_l.texi.
46387         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46388         doc/glibc-functions/mbsnrtowcs.texi.
46389         * doc/posix-functions/mkdtemp.texi: Renamed from
46390         doc/glibc-functions/mkdtemp.texi.
46391         * doc/posix-functions/newlocale.texi: Renamed from
46392         doc/glibc-functions/newlocale.texi.
46393         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46394         doc/glibc-functions/nl_langinfo_l.texi.
46395         * doc/posix-functions/open_memstream.texi: Renamed from
46396         doc/glibc-functions/open_memstream.texi.
46397         * doc/posix-functions/opterr.texi: Renamed from
46398         doc/glibc-functions/opterr.texi.
46399         * doc/posix-functions/optind.texi: Renamed from
46400         doc/glibc-functions/optind.texi.
46401         * doc/posix-functions/optopt.texi: Renamed from
46402         doc/glibc-functions/optopt.texi.
46403         * doc/posix-functions/psignal.texi: Renamed from
46404         doc/glibc-functions/psignal.texi.
46405         * doc/posix-functions/scandir.texi: Renamed from
46406         doc/glibc-functions/scandir.texi.
46407         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46408         doc/glibc-functions/sched_get_priority_min.texi.
46409         * doc/posix-functions/signgam.texi: Renamed from
46410         doc/glibc-functions/signgam.texi.
46411         * doc/posix-functions/stpcpy.texi: Renamed from
46412         doc/glibc-functions/stpcpy.texi.
46413         * doc/posix-functions/stpncpy.texi: Renamed from
46414         doc/glibc-functions/stpncpy.texi.
46415         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46416         doc/glibc-functions/strcasecmp_l.texi.
46417         * doc/posix-functions/strcoll_l.texi: Renamed from
46418         doc/glibc-functions/strcoll_l.texi.
46419         * doc/posix-functions/strfmon_l.texi: Renamed from
46420         doc/glibc-functions/strfmon_l.texi.
46421         * doc/posix-functions/strftime_l.texi: Renamed from
46422         doc/glibc-functions/strftime_l.texi.
46423         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46424         doc/glibc-functions/strncasecmp_l.texi.
46425         * doc/posix-functions/strndup.texi: Renamed from
46426         doc/glibc-functions/strndup.texi.
46427         * doc/posix-functions/strnlen.texi: Renamed from
46428         doc/glibc-functions/strnlen.texi.
46429         * doc/posix-functions/strsignal.texi: Renamed from
46430         doc/glibc-functions/strsignal.texi.
46431         * doc/posix-functions/strxfrm_l.texi: Renamed from
46432         doc/glibc-functions/strxfrm_l.texi.
46433         * doc/posix-functions/timer_gettime.texi: Renamed from
46434         doc/glibc-functions/timer_gettime.texi.
46435         * doc/posix-functions/tolower_l.texi: Renamed from
46436         doc/glibc-functions/tolower_l.texi.
46437         * doc/posix-functions/toupper_l.texi: Renamed from
46438         doc/glibc-functions/toupper_l.texi.
46439         * doc/posix-functions/towctrans_l.texi: Renamed from
46440         doc/glibc-functions/towctrans_l.texi.
46441         * doc/posix-functions/towlower_l.texi: Renamed from
46442         doc/glibc-functions/towlower_l.texi.
46443         * doc/posix-functions/towupper_l.texi: Renamed from
46444         doc/glibc-functions/towupper_l.texi.
46445         * doc/posix-functions/uselocale.texi: Renamed from
46446         doc/glibc-functions/uselocale.texi.
46447         * doc/posix-functions/vdprintf.texi: Renamed from
46448         doc/glibc-functions/vdprintf.texi.
46449         * doc/posix-functions/wcpcpy.texi:
46450         Renamed from doc/glibc-functions/wcpcpy.texi.
46451         * doc/posix-functions/wcpncpy.texi: Renamed from
46452         doc/glibc-functions/wcpncpy.texi.
46453         * doc/posix-functions/wcscasecmp.texi: Renamed from
46454         doc/glibc-functions/wcscasecmp.texi.
46455         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46456         doc/glibc-functions/wcscasecmp_l.texi.
46457         * doc/posix-functions/wcscoll_l.texi: Renamed from
46458         doc/glibc-functions/wcscoll_l.texi.
46459         * doc/posix-functions/wcsdup.texi: Renamed from
46460         doc/glibc-functions/wcsdup.texi.
46461         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46462         doc/glibc-functions/wcsncasecmp.texi.
46463         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46464         doc/glibc-functions/wcsncasecmp_l.texi.
46465         * doc/posix-functions/wcsnlen.texi: Renamed from
46466         doc/glibc-functions/wcsnlen.texi.
46467         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46468         doc/glibc-functions/wcsnrtombs.texi.
46469         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46470         doc/glibc-functions/wcsxfrm_l.texi.
46471         * doc/posix-functions/wctrans_l.texi: Renamed from
46472         doc/glibc-functions/wctrans_l.texi.
46473         * doc/posix-functions/wctype_l.texi: Renamed from
46474         doc/glibc-functions/wctype_l.texi.
46475         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46476         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46477         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46478         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46479         these subsections.
46480         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46481         Remove sections.
46482
46483 2008-12-14  Bruno Haible  <bruno@clisp.org>
46484
46485         Update doc for POSIX:2008.
46486         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46487
46488 2008-12-14  Bruno Haible  <bruno@clisp.org>
46489
46490         Update doc for POSIX:2008.
46491         * doc/pastposix-functions/bcmp.texi: Renamed from
46492         doc/posix-functions/bcmp.texi.
46493         * doc/pastposix-functions/bcopy.texi: Renamed from
46494         doc/posix-functions/bcopy.texi.
46495         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46496         doc/posix-functions/bsd_signal.texi.
46497         * doc/pastposix-functions/bzero.texi: Renamed from
46498         doc/posix-functions/bzero.texi.
46499         * doc/pastposix-functions/ecvt.texi: Renamed from
46500         doc/posix-functions/ecvt.texi.
46501         * doc/pastposix-functions/fcvt.texi: Renamed from
46502         doc/posix-functions/fcvt.texi.
46503         * doc/pastposix-functions/ftime.texi: Renamed from
46504         doc/posix-functions/ftime.texi.
46505         * doc/pastposix-functions/gcvt.texi: Renamed from
46506         doc/posix-functions/gcvt.texi.
46507         * doc/pastposix-functions/getcontext.texi: Renamed from
46508         doc/posix-functions/getcontext.texi.
46509         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46510         doc/posix-functions/gethostbyaddr.texi.
46511         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46512         doc/posix-functions/gethostbyname.texi.
46513         * doc/pastposix-functions/getwd.texi: Renamed from
46514         doc/posix-functions/getwd.texi.
46515         * doc/pastposix-functions/h_errno.texi: Renamed from
46516         doc/posix-functions/h_errno.texi.
46517         * doc/pastposix-functions/index.texi: Renamed from
46518         doc/posix-functions/index.texi.
46519         * doc/pastposix-functions/makecontext.texi: Renamed from
46520         doc/posix-functions/makecontext.texi.
46521         * doc/pastposix-functions/mktemp.texi: Renamed from
46522         doc/posix-functions/mktemp.texi.
46523         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46524         doc/posix-functions/pthread_attr_getstackaddr.texi.
46525         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46526         doc/posix-functions/pthread_attr_setstackaddr.texi.
46527         * doc/pastposix-functions/rindex.texi: Renamed from
46528         doc/posix-functions/rindex.texi.
46529         * doc/pastposix-functions/scalb.texi: Renamed from
46530         doc/posix-functions/scalb.texi.
46531         * doc/pastposix-functions/setcontext.texi: Renamed from
46532         doc/posix-functions/setcontext.texi.
46533         * doc/pastposix-functions/swapcontext.texi: Renamed from
46534         doc/posix-functions/swapcontext.texi.
46535         * doc/pastposix-functions/ualarm.texi: Renamed from
46536         doc/posix-functions/ualarm.texi.
46537         * doc/pastposix-functions/usleep.texi: Renamed from
46538         doc/posix-functions/usleep.texi.
46539         * doc/pastposix-functions/vfork.texi: Renamed from
46540         doc/posix-functions/vfork.texi.
46541         * doc/pastposix-functions/wcswcs.texi: Renamed from
46542         doc/posix-functions/wcswcs.texi.
46543         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46544         (Function Substitutes): Update.
46545
46546 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46547
46548         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46549         m4/strerror.m4.
46550
46551 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46552             Bruno Haible  <bruno@clisp.org>
46553
46554         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46555
46556 2008-12-13  Bruno Haible  <bruno@clisp.org>
46557
46558         * modules/strtoull (Depends-on): Remove unistd.
46559
46560 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46561
46562         * modules/strtoull (Depends-on): Add stdlib.
46563
46564 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46565
46566         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46567
46568 2008-12-10  Jim Meyering  <meyering@redhat.com>
46569
46570         gl_ASSERT: don't say assertions are disabled when they're not
46571         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46572         "checking whether to enable assertions... no", when they are in
46573         fact enabled.  This is solely a bug in the output of configure.
46574         In spite of saying "no", NDEBUG was not defined in that case.
46575         Also, as noted by Eric Blake, leave assertions enabled upon
46576         --enable-assert=INVALID.
46577
46578 2008-12-10  Bruno Haible  <bruno@clisp.org>
46579
46580         Change MODULES.html to refer to POSIX:2008 where possible.
46581         * MODULES.html.sh (POSIX2008_URL): New variable.
46582         (posix_headers): Remove sys/timeb, ucontext.
46583         (posix2001_headers): New variable.
46584         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46585         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46586         index, makecontext, mktemp, pthread_attr_getstackaddr,
46587         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46588         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46589         (posix2001_functions): New variable.
46590         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46591         otherwise.
46592
46593 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46594
46595         add missing include to parse-duration.c
46596         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46597         * modules/parse-duration (Depends-on): Add xalloc.
46598
46599         fix sed script reading maint.mk
46600         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46601         (syntax-check-rules): Use it.
46602
46603 2008-12-09  Bruno Haible  <bruno@clisp.org>
46604
46605         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46606         MacOS X 10.4/PowerPC.
46607         Reported by Simon Josefsson.
46608
46609 2008-12-08  Jim Meyering  <meyering@redhat.com>
46610
46611         work around mingw's lack of some S_IF definitions
46612         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46613         Reported by Simon Josefsson.
46614
46615 2008-12-08  Bruno Haible  <bruno@clisp.org>
46616
46617         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46618         applied to variables. Needed on MacOS X 10.4/PowerPC.
46619         Reported by Simon Josefsson.
46620
46621 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46622         and Eric Blake  <ebb9@byu.net>
46623
46624         assert: honor --enable-assert
46625         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46626         order to honor --enable-assert, rather than treating it as a
46627         synonym for --disable-assert.
46628
46629 2008-12-08  Jim Meyering  <meyering@redhat.com>
46630
46631         * lib/posixtm.c: Remove now-useless declaration of mktime.
46632
46633         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46634
46635 2008-12-07  Bruno Haible  <bruno@clisp.org>
46636
46637         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46638         test_once): Mark functions as static.
46639         * tests/test-tls.c (test_tls): Likewise.
46640
46641 2008-12-07  Bruno Haible  <bruno@clisp.org>
46642
46643         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46644         iconv_register_autodetect.
46645
46646 2008-12-07  Jim Meyering  <meyering@redhat.com>
46647
46648         posixtm.c: avoid a warning
46649         * lib/posixtm.c (posixtime): Don't initialize tm0.
46650         It's no longer needed to placate gcc4's -Wuninitialized,
46651         and the attempt to placate would elicit a new warning.
46652
46653         unicodeio.c: mark unused parameters
46654         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46655         (fallback_failure_callback): Likewise.
46656
46657 2008-12-07  Bruno Haible  <bruno@clisp.org>
46658
46659         * gnulib-tool (func_create_testdir): When building the tests
46660         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46661         Reported by Simon Josefsson.
46662
46663 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46664
46665         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46666
46667 2008-12-06  Bruno Haible  <bruno@clisp.org>
46668
46669         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46670         Suggested by Eric Blake.
46671
46672 2008-12-06  Bruno Haible  <bruno@clisp.org>
46673
46674         Fix a c-stack test failure on MacOS X.
46675         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46676         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46677         handler for SIGBUS as well.
46678         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46679         install a signal handler for SIGBUS as well.
46680         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46681
46682 2008-12-06  Bruno Haible  <bruno@clisp.org>
46683
46684         Advocacy documentation.
46685         * doc/gnulib-intro.texi (Benefits): New section.
46686         * doc/gnulib.texi: Update.
46687
46688 2008-12-06  Bruno Haible  <bruno@clisp.org>
46689
46690         Document the 'manywarnings' module.
46691         * doc/manywarnings.texi: New file.
46692         * doc/gnulib.texi: Include it.
46693
46694 2008-12-05  Eric Blake  <ebb9@byu.net>
46695
46696         tests: silence some gcc warnings
46697         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46698         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46699         type mismatches.
46700
46701 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46702             Bruno Haible  <bruno@clisp.org>
46703
46704         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46705
46706 2008-11-29  Jim Meyering  <meyering@redhat.com>
46707
46708         unicodeio.c: mark unused parameters
46709         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46710         (fallback_failure_callback): Likewise.
46711
46712         fts: fix a thinko
46713         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46714         (set_stat_type): Return S_IF*-valued "type" directly.
46715         Prompted by James Youngman's spotting a related bug.
46716         Confirmed by further testing through find.
46717
46718         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46719         * lib/fts.c (D_TYPE): Define.
46720         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46721         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46722         (s_ifmt_shift_bits): New function.
46723         (set_stat_type): New function.
46724         (fts_build): When not calling fts_stat, call set_stat_type
46725         to propagate dirent.d_type info to fts_read caller.
46726         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46727         fts_statp->st_mode type information may be valid.
46728
46729 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46730
46731         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46732         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46733         <sds@gnu.org>.
46734
46735 2008-11-20  Bruno Haible  <bruno@clisp.org>
46736
46737         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46738         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46739         INCLUDE_NEXT.
46740         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46741         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46742         * modules/math (Makefile.am): Substitute
46743         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46744         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46745
46746 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46747             Bruno Haible  <bruno@clisp.org>
46748
46749         * lib/stdint.in.h: Define all type macros so that their expansion is
46750         a single typedef'ed token. Fixes a compilation failure in Boost which
46751         does "using ::int8_t;".
46752
46753 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46754
46755         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46756         gl_MANYWARN_ALL_GCC.
46757         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46758         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46759         * modules/manywarnings: New file.
46760         * MODULES.html.sh: Mention manywarnings module.
46761
46762 2008-11-18  Bruno Haible  <bruno@clisp.org>
46763
46764         * doc/gnulib-tool.texi (Unit tests): New section.
46765
46766 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46767
46768         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46769         paths like 'lib/po/foo.po'.
46770
46771 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46772
46773         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46774         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46775
46776 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46777
46778         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46779         parameter works.
46780
46781 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46782
46783         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46784
46785 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46786
46787         * modules/parse-duration-tests: New file.
46788         * tests/test-parse-duration.sh: New file.
46789         * tests/test-parse-duration.c: New file.
46790
46791         New module 'parse-duration'.
46792         * lib/parse-duration.h: New file.
46793         * lib/parse-duration.c: New file.
46794         * modules/parse-duration: New file.
46795
46796 2008-11-17  Bruno Haible  <bruno@clisp.org>
46797
46798         * tests/test-select-out.sh: Comment out the first pipe test.
46799         Reported by Simon Josefsson.
46800
46801 2008-11-17  Bruno Haible  <bruno@clisp.org>
46802
46803         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46804         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46805         gl_HOSTENT.
46806
46807 2008-11-17  Bruno Haible  <bruno@clisp.org>
46808
46809         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46810         -lnetwork and -lnet. Needed for Haiku and BeOS.
46811
46812 2008-11-16  Bruno Haible  <bruno@clisp.org>
46813
46814         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46815
46816 2008-11-16  Bruno Haible  <bruno@clisp.org>
46817
46818         Avoid test failure on Haiku.
46819         * tests/test-fsync.c: Include <errno.h>.
46820         (main): Don't require that fsync (0) fails.
46821
46822 2008-11-15  Bruno Haible  <bruno@clisp.org>
46823
46824         New module 'hostent'.
46825         * modules/hostent: New file.
46826         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46827
46828 2008-11-15  Bruno Haible  <bruno@clisp.org>
46829
46830         New module 'servent'.
46831         * modules/servent: New file.
46832         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46833
46834 2008-11-15  Bruno Haible  <bruno@clisp.org>
46835
46836         Avoid generating same test program with two different rules.
46837         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46838         test-frexp to test-frexp-nolibm.
46839         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46840         test-frexpl to test-frexpl-nolibm.
46841
46842 2008-11-15  Bruno Haible  <bruno@clisp.org>
46843
46844         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46845         $(FREXPL_LIBM).
46846
46847 2008-11-15  Bruno Haible  <bruno@clisp.org>
46848
46849         * lib/netdb.in.h: Activate the definitions also when the system's
46850         <netdb.h> has 'struct addrinfo'.
46851         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46852         EAI_OVERFLOW or AI_NUMERICSERV.
46853         * doc/posix-headers/netdb.texi: Document the problem.
46854
46855 2008-11-15  Bruno Haible  <bruno@clisp.org>
46856
46857         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46858
46859         Make the 'sched' module work on platforms where <sched.h> exists but
46860         is incomplete (such as Haiku).
46861         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46862         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46863         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46864         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46865         HAVE_STRUCT_SCHED_PARAM.
46866         * modules/sched (Depends-on): Add include_next.
46867         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46868         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46869         * doc/posix-headers/sched.texi: Document the issue.
46870
46871 2008-11-13  Jim Meyering  <meyering@redhat.com>
46872
46873         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46874         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46875         test would fail due to the difference in the Report bugs to ...
46876         line.  The expected address is empty, "<>", while the actual
46877         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46878
46879 2008-11-12  Bruno Haible  <bruno@clisp.org>
46880
46881         lstat: don't compile lstat.c on systems lacking lstat
46882         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46883         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46884         Reported by Daniel P. Berrange via Jim Meyering.
46885
46886 2008-11-12  Jim Meyering  <meyering@redhat.com>
46887
46888         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46889
46890 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46891
46892         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46893         instead.
46894
46895 2008-11-12  Bruno Haible  <bruno@clisp.org>
46896
46897         * lib/unicodeio.c: Include unistr.h.
46898         (utf8_wctomb): Remove function.
46899         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46900
46901 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46902
46903         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46904         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46905         <bruno@clisp.org>.
46906         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46907
46908 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46909
46910         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46911         * doc/gnulib.texi: Add section for warnings.
46912
46913 2008-11-11  Bruno Haible  <bruno@clisp.org>
46914
46915         * lib/sockets.h: Add a comment.
46916
46917 2008-11-11  Karl Berry  <karl@gnu.org>
46918
46919         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46920
46921 2008-11-11  Eric Blake  <ebb9@byu.net>
46922
46923         fdl.texi: avoid git symlinks
46924         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46925
46926 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46927
46928         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46929
46930 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46931
46932         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46933         (gl_WARN_ADD): Substitute $2 if literal.
46934
46935 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46936
46937         * m4/warning.m4: Remove.
46938
46939 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46940
46941         * m4/warnings.m4: Almost complete rewrite. :-)
46942
46943 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46944
46945         * modules/warnings: New module.
46946         * m4/warnings.m4: New file.
46947         * MODULES.html.sh: Mention warnings module.
46948         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46949         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46950
46951 2008-11-10  Eric Blake  <ebb9@byu.net>
46952
46953         fdl.texi: make a symlink to the latest version
46954         * doc/standards.texi: Revert today's earlier change.
46955         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46956         * doc/fdl.texi: ...and replace this with a symlink to the newer
46957         fdl-1.3.texi.
46958
46959 2008-11-10  Bruno Haible  <bruno@clisp.org>
46960
46961         * tests/test-select-fd.c (main): Accept the result file name as fourth
46962         argument.
46963         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46964         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46965
46966 2008-11-10  Bruno Haible  <bruno@clisp.org>
46967
46968         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46969         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46970         as autoconf-substituted macros.
46971         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46972         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46973         gl_NETDB_H_DEFAULTS. Set these variables.
46974         * modules/netdb (Makefile.am): Substitute these variables.
46975
46976 2008-11-10  Eric Blake  <ebb9@byu.net>
46977
46978         standards.texi: include correct file for FDL 1.3
46979         * doc/standards.texi (GNU Free Documentation License): Change
46980         include file to pull in FDL 1.3, not 1.2.
46981
46982         fdl.texi: revert accidental change to license
46983         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46984
46985 2008-11-10  Bruno Haible  <bruno@clisp.org>
46986
46987         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46988         cross-compiling guesses also when the native compile gives no result.
46989
46990 2008-11-10  Bruno Haible  <bruno@clisp.org>
46991
46992         * lib/spawni.c (__spawni): Force variable into the stack.
46993
46994 2008-11-10  Bruno Haible  <bruno@clisp.org>
46995
46996         Add support for Haiku.
46997         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46998         glibc and BeOS, but also on Haiku.
46999         * lib/fpurge.c (fpurge): Likewise.
47000         * lib/freadable.c (freadable): Likewise.
47001         * lib/freadahead.c (freadahead): Likewise.
47002         * lib/freading.c (freading): Likewise.
47003         * lib/freadptr.c (freadptr): Likewise.
47004         * lib/freadseek.c (freadptrinc): Likewise.
47005         * lib/fseeko.c (rpl_fseeko): Likewise.
47006         * lib/fseterr.c (fseterr): Likewise.
47007         * lib/fwritable.c (fwritable): Likewise.
47008         * lib/fwriting.c (fwriting): Likewise.
47009         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
47010
47011 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47012
47013         * lib/config.charset: Treat Haiku like BeOS.
47014
47015 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
47016
47017         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
47018         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
47019
47020 2008-11-08  Bruno Haible  <bruno@clisp.org>
47021
47022         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
47023         AC_CACHE_CHECK.
47024
47025 2008-11-08  Bruno Haible  <bruno@clisp.org>
47026
47027         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
47028
47029 2008-11-08  Bruno Haible  <bruno@clisp.org>
47030
47031         * tests/test-select-fd.c: New file.
47032         * tests/test-select-in.sh: New file.
47033         * tests/test-select-out.sh: New file.
47034         * tests/test-select-stdin.c: New file.
47035         * modules/select-tests (Files): Add the new files.
47036         (Depends-on): Add gettimeofday.
47037         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
47038         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
47039         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
47040
47041 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
47042             Bruno Haible  <bruno@clisp.org>
47043
47044         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
47045
47046 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
47047
47048         * build-aux/pmccabe2html: Added support for C++ source files.
47049
47050 2008-11-05  Ben Pfaff  <blp@gnu.org>
47051
47052         Fix lib/close.c build on Windows.
47053         * modules/close (Files): Add lib/w32sock.h.
47054
47055 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
47056
47057         Accept Bison's NEWS format.
47058         * build-aux/announce-gen (print_news_deltas): Tweak
47059         $re_prefix.
47060
47061 2008-11-04  Bruno Haible  <bruno@clisp.org>
47062
47063         * modules/random_r (Maintainer): Add glibc.
47064
47065 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47066
47067         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
47068         by karl@freefriends.org (Karl Berry).
47069         * doc/alloca.texi: Likewise.
47070         * doc/c-ctype.texi: Likewise.
47071         * doc/c-strcase.texi: Likewise.
47072         * doc/c-strcaseeq.texi: Likewise.
47073         * doc/c-strcasestr.texi: Likewise.
47074         * doc/c-strstr.texi: Likewise.
47075         * doc/c-strtod.texi: Likewise.
47076         * doc/c-strtold.texi: Likewise.
47077         * doc/ctime.texi: Likewise.
47078         * doc/error.texi: Likewise.
47079         * doc/fdl.texi: Likewise.
47080         * doc/gcd.texi: Likewise.
47081         * doc/getdate.texi: Likewise.
47082         * doc/gnulib-intro.texi: Likewise.
47083         * doc/gnulib-tool.texi: Likewise.
47084         * doc/gnulib.texi: Likewise.
47085         * doc/inet_ntoa.texi: Likewise.
47086         * doc/maintain.texi: Likewise.
47087         * doc/make-stds.texi: Likewise.
47088         * doc/quote.texi: Likewise.
47089         * doc/regexprops-generic.texi: Likewise.
47090         * doc/standards.texi: Likewise.
47091         * doc/verify.texi: Likewise.
47092         * doc/visibility.texi: Likewise.
47093         * doc/gnulib.texi (GNU Free Documentation License): Include
47094         fdl-1.3.texi instead of fdl.texi.
47095
47096 2008-11-04  Simon Josefsson  <simon@josefsson.org>
47097
47098         * doc/fdl-1.3.texi: New file, from
47099         <http://www.gnu.org/licenses/fdl-1.3.texi>.
47100         * modules/fdl-1.3: Add.
47101         * MODULES.html.sh: Add fdl-1.3.
47102
47103 2008-11-03  Bruno Haible  <bruno@clisp.org>
47104
47105         Make determination of absolute name of header file work with AIX xlc.
47106         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
47107         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
47108         preprocessing.
47109         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47110         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47111
47112 2008-11-03  Simon Josefsson  <simon@josefsson.org>
47113
47114         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
47115         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
47116         <ludo@gnu.org>.
47117
47118 2008-11-02  Bruno Haible  <bruno@clisp.org>
47119
47120         Mark 'strpbrk' obsolete.
47121         * modules/strpbrk (Status, Notice): New sections.
47122         * modules/strtok_r (Depends-on): Add strpbrk.
47123
47124 2008-11-02  Bruno Haible  <bruno@clisp.org>
47125
47126         Mark 'strdup' obsolete.
47127         * modules/strdup (Status, Notice): New sections.
47128         * modules/findprog (Depends-on): Add strdup.
47129         * modules/getaddrinfo (Depends-on): Likewise.
47130         * modules/localename (Depends-on): Likewise.
47131         * modules/relocatable-lib (Depends-on): Likewise.
47132         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
47133         * modules/relocatable-prog (Depends-on): Likewise.
47134         * modules/trim (Depends-on): Likewise.
47135         * modules/unictype/gen-ctype (Depends-on): Likewise.
47136         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47137
47138 2008-11-02  Bruno Haible  <bruno@clisp.org>
47139
47140         Mark 'strcspn' obsolete.
47141         * modules/strcspn (Status, Notice): New sections.
47142
47143 2008-11-02  Bruno Haible  <bruno@clisp.org>
47144
47145         Mark 'rmdir' obsolete.
47146         * modules/rmdir (Status, Notice): New sections.
47147         * modules/clean-temp (Depends-on): Add rmdir.
47148         * modules/openat (Depends-on): Likewise.
47149
47150 2008-11-02  Bruno Haible  <bruno@clisp.org>
47151
47152         Mark 'raise' obsolete.
47153         * modules/raise (Status, Notice): New sections.
47154         (Include): Specify <signal.h>.
47155         * modules/stdio (Depends-on): Add raise.
47156         * modules/write (Depends-on): Likewise.
47157
47158 2008-11-02  Bruno Haible  <bruno@clisp.org>
47159
47160         Mark 'memset' obsolete.
47161         * modules/memset (Status, Notice): New sections.
47162
47163 2008-11-02  Bruno Haible  <bruno@clisp.org>
47164
47165         Mark 'memmove' obsolete.
47166         * modules/memmove (Status, Notice): New sections.
47167         * modules/argp (Depends-on): Add memmove.
47168         * modules/argz (Depends-on): Likewise.
47169         * modules/canonicalize (Depends-on): Likewise.
47170         * modules/canonicalize-lgpl (Depends-on): Likewise.
47171         * modules/fts (Depends-on): Likewise.
47172         * modules/getcwd (Depends-on): Likewise.
47173         * modules/human (Depends-on): Likewise.
47174         * modules/regex (Depends-on): Likewise.
47175         * modules/striconveh (Depends-on): Likewise.
47176         * modules/trim (Depends-on): Likewise.
47177         * modules/unistr/u8-move (Depends-on): Likewise.
47178         * modules/unistr/u16-move (Depends-on): Likewise.
47179         * modules/unistr/u32-move (Depends-on): Likewise.
47180
47181 2008-11-02  Bruno Haible  <bruno@clisp.org>
47182
47183         Mark 'memcpy' obsolete.
47184         * modules/memcpy (Status, Notice): New sections.
47185
47186 2008-11-02  Bruno Haible  <bruno@clisp.org>
47187
47188         Mark 'memcmp' obsolete.
47189         * modules/memcmp (Status, Notice): New sections.
47190         * modules/argmatch (Depends-on): Add memchr.
47191         * modules/backupfile (Depends-on): Likewise.
47192         * modules/c-strcasestr (Depends-on): Likewise.
47193         * modules/crypto/des (Depends-on): Likewise.
47194         * modules/csharpcomp (Depends-on): Likewise.
47195         * modules/fnmatch (Depends-on): Likewise.
47196         * modules/git-merge-changelog (Depends-on): Likewise.
47197         * modules/isnand (Depends-on): Likewise.
47198         * modules/isnand-nolibm (Depends-on): Likewise.
47199         * modules/isnanf (Depends-on): Likewise.
47200         * modules/isnanf-nolibm (Depends-on): Likewise.
47201         * modules/isnanl (Depends-on): Likewise.
47202         * modules/isnanl-nolibm (Depends-on): Likewise.
47203         * modules/mbchar (Depends-on): Likewise.
47204         * modules/memcoll (Depends-on): Likewise.
47205         * modules/quotearg (Depends-on): Likewise.
47206         * modules/regex (Depends-on): Likewise.
47207         * modules/relocatable-prog (Depends-on): Likewise.
47208         * modules/same (Depends-on): Likewise.
47209         * modules/signbit (Depends-on): Likewise.
47210         * modules/strcasestr-simple (Depends-on): Likewise.
47211         * modules/unictype/gen-ctype (Depends-on): Likewise.
47212         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47213         * modules/uniname/uniname (Depends-on): Likewise.
47214         * modules/unistr/u8-cmp (Depends-on): Likewise.
47215
47216 2008-11-02  Bruno Haible  <bruno@clisp.org>
47217
47218         Mark 'memchr' obsolete.
47219         * modules/memchr (Status, Notice): New sections.
47220         * modules/argp (Depends-on): Add memchr.
47221         * modules/base64 (Depends-on): Likewise.
47222         * modules/c-strcasestr (Depends-on): Likewise.
47223         * modules/chdir-long (Depends-on): Likewise.
47224         * modules/fnmatch (Depends-on): Likewise.
47225         * modules/getsubopt (Depends-on): Likewise.
47226         * modules/git-merge-changelog (Depends-on): Likewise.
47227         * modules/glob (Depends-on): Likewise.
47228         * modules/strcasestr-simple (Depends-on): Likewise.
47229         * modules/strnlen (Depends-on): Likewise.
47230
47231 2008-11-02  Bruno Haible  <bruno@clisp.org>
47232
47233         Mark 'atexit' obsolete.
47234         * modules/atexit (Status, Notice): New sections.
47235         * modules/chdir-long (Depends-on): Add atexit.
47236         * modules/wait-process (Depends-on): Likewise.
47237
47238 2008-11-02  Bruno Haible  <bruno@clisp.org>
47239
47240         * gnulib-tool: New option --with-obsolete.
47241         (func_usage): Document it.
47242         (func_modules_transitive_closure): Drop obsolete dependencies if
47243         incobsolete is not true.
47244         (func_import): Read and save the incobsolete variable to the cache.
47245
47246 2008-11-02  Bruno Haible  <bruno@clisp.org>
47247
47248         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47249         * gnulib-tool: New option --extract-status.
47250         (func_usage): Document it.
47251         (sed_extract_prog): Recognize it.
47252         (func_get_status): New function.
47253
47254 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47255
47256         * modules/sockets (License): Change from LGPL to LGPLv2+.
47257
47258 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47259
47260         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47261
47262 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47263
47264         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47265         Mention times and sys_times.
47266         * modules/sys_times, modules/sys_times-tests: New modules.
47267         * modules/times, modules/times-tests: Likewise
47268         * m4/sys_times_h.m4: New file.
47269         * lib/sys_times.in.h: Likewise
47270         * lib/times.c: Likewise.
47271         * tests/test-sys_times.c: Likewise.
47272         * tests/test-times.c: Likewise.
47273         * doc/posix-headers/sys_times.texi: Update.
47274         * doc/posix-functions/times.texi: Update.
47275
47276 2008-10-28  Jim Meyering  <meyering@redhat.com>
47277
47278         * modules/tempname (Depends-on): Add lstat.
47279
47280         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47281
47282 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47283
47284         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47285         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47286         using idiom used elsewhere in gnulib.
47287
47288 2008-10-27  Jim Meyering  <meyering@redhat.com>
47289
47290         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47291
47292 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47293
47294         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47295         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47296         programs.
47297         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47298
47299 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47300
47301         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47302
47303 2008-10-27  Bruno Haible  <bruno@clisp.org>
47304
47305         * tests/test-lstat.c: Include <stdio.h>.
47306
47307 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47308
47309         * modules/lstat-tests: New module.
47310         * tests/test-lstat.c: New file.
47311
47312 2008-10-26  Jim Meyering  <meyering@redhat.com>
47313
47314         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47315
47316 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47317             Bruno Haible  <bruno@clisp.org>
47318
47319         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47320         * modules/configmake (Include): Add a note that the include must come
47321         after all system headers.
47322         * lib/javaversion.c: Include configmake.h after all other includes.
47323
47324 2008-10-26  Bruno Haible  <bruno@clisp.org>
47325
47326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47327         HAVE_STRUCT_RANDOM_DATA to 1.
47328         (gl_STDLIB_H): Simplify.
47329
47330 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47331
47332         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47333         substitute HAVE_STRUCT_RANDOM_DATA.
47334         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47335         random_data.
47336         * modules/stdlib (Makefile.am): Substitute
47337         HAVE_STRUCT_RANDOM_DATA.
47338
47339 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47340
47341         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47342         * doc/gnulib-intro.texi (Copyright): Likewise.
47343
47344 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47345
47346         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47347         findings.
47348
47349 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47350             Bruno Haible  <bruno@clisp.org>
47351
47352         * lib/unistd.in.h: Include <winsock2.h>.
47353         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47354         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47355         Provide dummy declarations.
47356         (gethostname): Override.
47357         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47358         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47359         gl_PREREQ_SYS_H_WINSOCK2.
47360         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47361         * doc/posix-functions/gethostname.texi: More details.
47362
47363 2008-10-25  Bruno Haible  <bruno@clisp.org>
47364
47365         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47366         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47367         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47368
47369         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47370         here ...
47371         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47372         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47373         gl_UNISTD_H_DEFAULTS.
47374
47375 2008-10-25  Eric Blake  <ebb9@byu.net>
47376
47377         signbit: avoid spurious compiler failure
47378         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47379         declarations inside function.
47380
47381 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47382             Bruno Haible  <bruno@clisp.org>
47383
47384         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47385         * modules/random_r (Depends-on): Add stdint.
47386
47387 2008-10-24  Bruno Haible  <bruno@clisp.org>
47388
47389         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47390         Eggert.
47391         * modules/strerror (License): Likewise.
47392
47393 2008-10-24  Jim Meyering  <meyering@redhat.com>
47394
47395         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47396         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47397
47398 2008-10-24  Eric Blake  <ebb9@byu.net>
47399
47400         getgroups: fix compilation when getgroups is available
47401         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47402         but with <config.h> override of getgroups disabled.
47403
47404 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47405
47406         * doc/gnulib.texi (Header files): Add note about C++ problems.
47407         Explained by Bruno Haible <bruno@clisp.org>.
47408
47409 2008-10-23  Bruno Haible  <bruno@clisp.org>
47410
47411         Define a dummy SA_NODEFER macro on Interix.
47412         * lib/signal.in.h (SA_NODEFER): Define fallback.
47413         Reported by Aleksey Cheusov <cheusov@tut.by> via
47414         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47415
47416 2008-10-23  Bruno Haible  <bruno@clisp.org>
47417
47418         * modules/freadahead (License): Change to LGPLv2+.
47419         Suggested by Simon Josefsson.
47420
47421 2008-10-23  Jim Meyering  <meyering@redhat.com>
47422
47423         random_r: new module
47424         * modules/random_r: New file.
47425         * m4/random_r.m4: New file.
47426         * lib/random_r.c: New file, from glibc.
47427         * modules/random_r-tests: New file.
47428         * tests/test-random_r.c: New file.
47429         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47430          Declare.
47431         (RAND_MAX): Define.
47432         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47433         * modules/stdlib: Substitute them, too.
47434         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47435         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47436         * doc/glibc-functions/random_r.texi: Likewise.
47437         * doc/glibc-functions/setstate_r.texi: Likewise.
47438         * doc/glibc-functions/srandom_r.texi: Likewise.
47439         * config/srclist.txt: Mention it.
47440
47441 2008-10-23  David Lutterkort  <lutter@redhat.com>
47442
47443         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47444         link requirement
47445
47446 2008-10-23  Jim Meyering  <meyering@redhat.com>
47447
47448         selinux-h: mark parameters of stub functions as intentionally unused
47449         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47450         * lib/se-context.in.h: Likewise.
47451
47452 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47453
47454         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47455
47456 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47457
47458         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47459
47460 2008-10-22  Eric Blake  <ebb9@byu.net>
47461
47462         glthread/thread: avoid compiler warning
47463         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47464         Add unreachable abort to silence compiler.
47465
47466 2008-10-22  Eric Blake  <ebb9@byu.net>
47467
47468         netdb: also supply struct addrinfo for cygwin 1.5.x
47469         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47470         older cygwin.
47471         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47472         cygwin.
47473         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47474
47475 2008-10-22  Bruno Haible  <bruno@clisp.org>
47476
47477         * users.txt: Update entry about pspp.
47478
47479 2008-10-21  Bruno Haible  <bruno@clisp.org>
47480
47481         Simplification.
47482         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47483         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47484
47485         Simplification.
47486         * lib/ioctl.c (ioctl): Don't undefine.
47487         * lib/socket.c (socket): Don't undefine.
47488
47489         Remove unused module indicator macros.
47490         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47491         GNULIB_$1 as a C macro.
47492
47493         * doc/posix-functions/close.texi: Undo last change.
47494         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47495         Windows platforms.
47496
47497 2008-10-21  Bruno Haible  <bruno@clisp.org>
47498
47499         Add gethostname() declaration to <unistd.h>.
47500         * lib/unistd.in.h (gethostname): New declaration.
47501         * lib/gethostname.c: Include <unistd.h>.
47502         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47503         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47505         and HAVE_GETHOSTNAME.
47506         * modules/gethostname (Depends-on): Add unistd.
47507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47508         (Include): Specify <unistd.h>.
47509         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47510         HAVE_GETHOSTNAME.
47511         * tests/test-gethostname.c: Include <unistd.h> first.
47512
47513 2008-10-21  Bruno Haible  <bruno@clisp.org>
47514
47515         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47516         * modules/select-tests (Depends-on): Likewise.
47517         Reported by Simon Josefsson.
47518
47519 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47520
47521         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47522         * lib/accept.c: New file, based on winsock.c.
47523         * lib/bind.c: New file, based on winsock.c.
47524         * lib/connect.c: New file, based on winsock.c.
47525         * lib/getpeername.c: New file, based on winsock.c.
47526         * lib/getsockname.c: New file, based on winsock.c.
47527         * lib/getsockopt.c: New file, based on winsock.c.
47528         * lib/ioctl.c: New file, based on winsock.c.
47529         * lib/listen.c: New file, based on winsock.c.
47530         * lib/recv.c: New file, based on winsock.c.
47531         * lib/recvfrom.c: New file, based on winsock.c.
47532         * lib/send.c: New file, based on winsock.c.
47533         * lib/sendto.c: New file, based on winsock.c.
47534         * lib/setsockopt.c: New file, based on winsock.c.
47535         * lib/shutdown.c: New file, based on winsock.c.
47536         * lib/socket.c: New file, based on winsock.c.
47537         * lib/w32sock.h: New file, based on winsock.c.
47538         * lib/winsock.c: Remove file.
47539         * modules/accept: Likewise.
47540         * modules/bind: Likewise.
47541         * modules/connect: Likewise.
47542         * modules/getpeername: Likewise.
47543         * modules/getsockname: Likewise.
47544         * modules/getsockopt: Likewise.
47545         * modules/ioctl: Likewise.
47546         * modules/listen: Likewise.
47547         * modules/recv: Likewise.
47548         * modules/recvfrom: Likewise.
47549         * modules/send: Likewise.
47550         * modules/sendto: Likewise.
47551         * modules/setsockopt: Likewise.
47552         * modules/shutdown: Likewise.
47553         * modules/socket: Use socket.c instead of winsock.c.
47554         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47555         * doc/posix-functions/accept.texi: Doc fix.
47556         * doc/posix-functions/bind.texi: Doc fix.
47557         * doc/posix-functions/close.texi: Doc fix.
47558         * doc/posix-functions/connect.texi: Doc fix.
47559         * doc/posix-functions/getpeername.texi: Doc fix.
47560         * doc/posix-functions/getsockname.texi: Doc fix.
47561         * doc/posix-functions/getsockopt.texi: Doc fix.
47562         * doc/posix-functions/ioctl.texi: Doc fix.
47563         * doc/posix-functions/listen.texi: Doc fix.
47564         * doc/posix-functions/recv.texi: Doc fix.
47565         * doc/posix-functions/recvfrom.texi: Doc fix.
47566         * doc/posix-functions/send.texi: Doc fix.
47567         * doc/posix-functions/sendto.texi: Doc fix.
47568         * doc/posix-functions/setsockopt.texi: Doc fix.
47569         * doc/posix-functions/shutdown.texi: Doc fix.
47570         * doc/posix-functions/socket.texi: Doc fix.
47571
47572 2008-10-20  Bruno Haible  <bruno@clisp.org>
47573
47574         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47575         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47576         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47577         as an alias for SIGABRT.
47578         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47579         (sigaction): Map it to SIGABRT.
47580         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47581
47582 2008-10-20  Bruno Haible  <bruno@clisp.org>
47583
47584         * lib/fts.c: Don't include lstat.h.
47585         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47586
47587         Move the lstat() declaration to <sys/stat.h>.
47588         * lib/lstat.h: Remove file.
47589         * lib/sys_stat.in.h: Add special invocation convention.
47590         (lstat): New declaration.
47591         * lib/lstat.c (orig_lstat): New function.
47592         (rpl_lstat): Use orig_lstat instead of lstat.
47593         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47594         AC_C_INLINE. Set REPLACE_LSTAT.
47595         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47596         and REPLACE_LSTAT.
47597         * modules/lstat (Files): Remove lib/lstat.h.
47598         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47599         (Include): Specify <sys/stat.h> instead of lstat.h.
47600         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47601         REPLACE_LSTAT.
47602         * NEWS: Mention the change.
47603
47604 2008-10-20  Bruno Haible  <bruno@clisp.org>
47605
47606         * modules/posix_spawn-tests: New file.
47607         * tests/test-posix_spawn3.c: New file.
47608
47609 2008-10-20  Bruno Haible  <bruno@clisp.org>
47610
47611         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47612         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47613         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47614         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47615         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47616
47617 2008-10-20  Bruno Haible  <bruno@clisp.org>
47618
47619         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47620         of posix_spawn on AIX 5.3.
47621
47622 2008-10-20  Bruno Haible  <bruno@clisp.org>
47623
47624         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47625
47626 2008-10-20  Bruno Haible  <bruno@clisp.org>
47627
47628         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47629         of AC_LANG_PROGRAM.
47630
47631 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47632
47633         * lib/netdb.in.h: Don't define GNU specific constants until they
47634         are supported or needed.  Reported by Bruno Haible
47635         <bruno@clisp.org>.
47636
47637 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47638
47639         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47640
47641 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47642
47643         * lib/getaddrinfo.h: Remove file.
47644         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47645         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47646         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47647         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47648         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47649         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47650         * tests/test-getaddrinfo.c: Likewise.
47651         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47652         * NEWS: Mention change.
47653
47654 2008-10-19  Bruno Haible  <bruno@clisp.org>
47655
47656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47657
47658 2008-10-19  Bruno Haible  <bruno@clisp.org>
47659
47660         * lib/wait-process.c: Include simply <sys/wait.h>.
47661         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47662         WIFSTOPPED): Remove fallback definitions.
47663         * modules/wait-process (Depends-on): Add sys_wait.
47664
47665         New module 'sys_wait'.
47666         * modules/sys_wait: New file.
47667         * lib/sys_wait.in.h: New file, partially copied from
47668         lib/wait-process.c.
47669         * m4/sys_wait_h.m4: New file.
47670         * doc/posix-headers/sys_wait.texi: Mention the new module.
47671
47672 2008-10-19  Bruno Haible  <bruno@clisp.org>
47673
47674         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47675
47676 2008-10-19  Bruno Haible  <bruno@clisp.org>
47677
47678         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47679         * lib/wait-process.c (WAIT_T): Remove type.
47680         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47681         (wait_subprocess): Update.
47682
47683 2008-10-19  Bruno Haible  <bruno@clisp.org>
47684
47685         New module 'atoll'.
47686         * modules/atoll: New file.
47687         * lib/stdlib.in.h (atoll): New declaration.
47688         * lib/atoll.c: New file, from glibc with modifications.
47689         * m4/atoll.m4: New file.
47690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47691         HAVE_ATOLL.
47692         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47693         * doc/posix-functions/atoll.texi: Mention the new module.
47694
47695 2008-10-19  Bruno Haible  <bruno@clisp.org>
47696
47697         Add strtoull() declaration to <stdlib.h>.
47698         * lib/stdlib.in.h (strtoull): New declaration.
47699         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47700         Set HAVE_STRTOULL.
47701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47702         HAVE_STRTOULL.
47703         * modules/strtoull (Depends-on): Add stdlib.
47704         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47705         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47706         HAVE_STRTOULL.
47707
47708 2008-10-19  Bruno Haible  <bruno@clisp.org>
47709
47710         Add strtoll() declaration to <stdlib.h>.
47711         * lib/stdlib.in.h (strtoll): New declaration.
47712         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47713         Set HAVE_STRTOLL.
47714         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47715         HAVE_STRTOLL.
47716         * modules/strtoll (Depends-on): Add stdlib.
47717         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47718         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47719
47720 2008-10-19  Bruno Haible  <bruno@clisp.org>
47721
47722         * modules/bcopy (Depends-on): Add strings.
47723         (Include): Specify <strings.h>.
47724
47725 2008-10-19  Bruno Haible  <bruno@clisp.org>
47726
47727         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47728
47729 2008-10-19  Bruno Haible  <bruno@clisp.org>
47730
47731         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47732         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47733         mingw.
47734
47735 2008-10-19  Bruno Haible  <bruno@clisp.org>
47736
47737         * lib/atanl.c: Don't include isnanl.h.
47738         * lib/cosl.c: Likewise.
47739         * lib/ldexpl.c: Likewise.
47740         * lib/logl.c: Likewise.
47741         * lib/sinl.c: Likewise.
47742         * lib/sqrtl.c: Likewise.
47743         * lib/tanl.c: Likewise.
47744
47745         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47746         * lib/isnanf.h: Remove file.
47747         * lib/isnand.h: Remove file.
47748         * lib/isnanl.h: Remove file.
47749         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47750         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47751         macros.
47752         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47753         HAVE_ISNANF, don't define it as a C macro.
47754         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47755         HAVE_ISNAND, don't define it as a C macro.
47756         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47757         HAVE_ISNANL, don't define it as a C macro.
47758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47759         HAVE_ISNAN[FDL].
47760         * modules/isnanf (Files): Remove lib/isnanf.h.
47761         (Depends-on): Add math.
47762         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47763         (Include): Specify <math.h> instead of isnanf.h.
47764         * modules/isnand (Files): Remove lib/isnand.h.
47765         (Depends-on): Add math.
47766         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47767         (Include): Specify <math.h> instead of isnand.h.
47768         * modules/isnanl (Files): Remove lib/isnanl.h.
47769         (Depends-on): Add math.
47770         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47771         (Include): Specify <math.h> instead of isnanl.h.
47772         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47773         HAVE_ISNAN[FDL].
47774         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47775         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47776         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47777         * NEWS: Mention the change.
47778
47779 2008-10-18  Bruno Haible  <bruno@clisp.org>
47780
47781         Add getusershell(), setusershell(), endusershell() declarations to
47782         <unistd.h>.
47783         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47784         declarations.
47785         * lib/getusershell.c: Include unistd.h.
47786         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47787         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47788         HAVE_GETUSERSHELL.
47789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47790         and HAVE_GETUSERSHELL.
47791         * modules/getusershell (Depends-on): Add unistd, extensions.
47792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47793         (Include): Specify <unistd.h>.
47794         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47795         HAVE_GETUSERSHELL.
47796
47797 2008-10-18  Bruno Haible  <bruno@clisp.org>
47798
47799         Add a getloadavg() declaration to <stdlib.h>.
47800         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47801         getloadavg declaration.
47802         (getloadavg): New declaration.
47803         * lib/getloadavg.c: Include <stdlib.h> first.
47804         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47805         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47806         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47808         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47809         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47810         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47811         (Include): Specify <stdlib.h>.
47812         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47813         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47814
47815 2008-10-18  Bruno Haible  <bruno@clisp.org>
47816
47817         * lib/dirchownmod.c: Don't include lchmod.h.
47818
47819         Move the lchmod() declaration to <sys/stat.h>.
47820         * lib/lchmod.h: Remove file.
47821         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47822         (lchmod): New declaration, moved here from lib/lchown.h.
47823         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47824         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47825         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47826         and HAVE_LCHMOD.
47827         * modules/lchmod (Files): Remove lib/lchmod.h.
47828         (Depends-on): Add sys_stat, extensions.
47829         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47830         (Include): Specify <sys/stat.h> instead of lchmod.h.
47831         * modules/sys_stat (Depends-on): Add link-warning.
47832         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47833         definition of GL_LINK_WARNING.
47834         * NEWS: Mention the change.
47835
47836 2008-10-18  Bruno Haible  <bruno@clisp.org>
47837
47838         * lib/fchdir.c: Don't include dirfd.h.
47839         * lib/fts.c: Likewise.
47840         * lib/getcwd.c: Likewise.
47841         * lib/glob.c: Likewise.
47842
47843         Move the dirfd() declaration to <dirent.h>.
47844         * lib/dirfd.h: Remove file.
47845         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47846         (dirfd): New declaration.
47847         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47848         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47849         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47850         HAVE_DECL_DIRFD.
47851         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47852         HAVE_DECL_DIRFD.
47853         * modules/dirfd (Files): Remove lib/dirfd.h.
47854         (Depends-on): Add dirent, extensions.
47855         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47856         (Include): Specify <dirent.h> instead of dirfd.h.
47857         * modules/dirent (Depends-on): Add link-warning.
47858         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47859         definition of GL_LINK_WARNING.
47860         * NEWS: Mention the change.
47861
47862 2008-10-18  Bruno Haible  <bruno@clisp.org>
47863
47864         Move the euidaccess() declaration to <unistd.h>.
47865         * lib/euidaccess.h: Remove file.
47866         * lib/unistd.in.h (euidaccess): New declaration.
47867         * lib/euidaccess.c: Don't include euidaccess.h.
47868         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47869         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47871         and HAVE_EUIDACCESS.
47872         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47873         (Depends-on): Add unistd.
47874         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47875         (Include): Specify <unistd.h> instead of euidaccess.h.
47876         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47877         HAVE_EUIDACCESS.
47878         * NEWS: Mention the change.
47879
47880 2008-10-18  Bruno Haible  <bruno@clisp.org>
47881
47882         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47883
47884         Move the getdomainname() declaration to <unistd.h>.
47885         * lib/getdomainname.h: Remove file.
47886         * lib/unistd.in.h (getdomainname): New declaration.
47887         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47888         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47889         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47890         HAVE_GETDOMAINNAME.
47891         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47892         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47893         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47894         (Depends-on): Add unistd, extensions.
47895         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47896         (Includes): Specify <unistd.h> instead of getdomainname.h.
47897         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47898         HAVE_GETDOMAINNAME.
47899         * NEWS: Mention the change.
47900
47901 2008-10-18  Bruno Haible  <bruno@clisp.org>
47902
47903         * modules/dirent: New file.
47904         * m4/dirent_h.m4: New file.
47905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47906         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47907         * modules/fchdir (Files): Remove lib/dirent.in.h.
47908         (Depends-on): Add dirent.
47909         (Makefile.am): Move rules to modules/dirent.
47910         * doc/posix-headers/dirent.texi: Mention the new module.
47911
47912 2008-10-18  Bruno Haible  <bruno@clisp.org>
47913
47914         Avoid -Wunused-parameter warnings in public gnulib header files.
47915         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47916         macro.
47917         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47918
47919 2008-10-18  Bruno Haible  <bruno@clisp.org>
47920
47921         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47922         * doc/glibc-functions/error.texi: Mention the module 'error'.
47923         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47924         * doc/glibc-functions/getdomainname.texi: Mention the module
47925         'getdomainname'.
47926         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47927         * doc/glibc-functions/getpagesize.texi: Mention the module
47928         'getpagesize'.
47929         * doc/glibc-functions/getusershell.texi: Mention the module
47930         'getusershell'.
47931         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47932         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47933         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47934         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47935         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47936         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47937         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47938         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47939         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47940         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47941         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47942         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47943         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47944         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47945
47946 2008-10-17  Bruno Haible  <bruno@clisp.org>
47947
47948         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47949         HP-UX and IRIX, use -0.0L.
47950         * tests/test-ceill.c (minus_zero): Likewise.
47951         * tests/test-floorl.c (minus_zero): Likewise.
47952         * tests/test-frexpl.c (minus_zero): Likewise.
47953         * tests/test-isnan.c (minus_zerol): Likewise.
47954         * tests/test-isnanl.h (minus_zero): Likewise.
47955         * tests/test-ldexpl.c (minus_zero): Likewise.
47956         * tests/test-roundl.c (minus_zero): Likewise.
47957         * tests/test-signbit.c (minus_zerol): Likewise.
47958         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47959         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47960         * tests/test-truncl.c (minus_zero): Likewise.
47961         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47962         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47963         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47964         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47965
47966 2008-10-17  Bruno Haible  <bruno@clisp.org>
47967
47968         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47969         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47970         that it gets activated only for gcc >= 3.0.
47971         * lib/dirent.in.h: Likewise.
47972         * lib/errno.in.h: Likewise.
47973         * lib/fcntl.in.h: Likewise.
47974         * lib/float.in.h: Likewise.
47975         * lib/iconv.in.h: Likewise.
47976         * lib/inttypes.in.h: Likewise.
47977         * lib/locale.in.h: Likewise.
47978         * lib/math.in.h: Likewise.
47979         * lib/netdb.in.h: Likewise.
47980         * lib/netinet_in.in.h: Likewise.
47981         * lib/search.in.h: Likewise.
47982         * lib/signal.in.h: Likewise.
47983         * lib/spawn.in.h: Likewise.
47984         * lib/stdarg.in.h: Likewise.
47985         * lib/stdint.in.h: Likewise.
47986         * lib/stdio.in.h: Likewise.
47987         * lib/stdlib.in.h: Likewise.
47988         * lib/string.in.h: Likewise.
47989         * lib/strings.in.h: Likewise.
47990         * lib/sys_file.in.h: Likewise.
47991         * lib/sys_ioctl.in.h: Likewise.
47992         * lib/sys_select.in.h: Likewise.
47993         * lib/sys_socket.in.h: Likewise.
47994         * lib/sys_stat.in.h: Likewise.
47995         * lib/sys_time.in.h: Likewise.
47996         * lib/sysexits.in.h: Likewise.
47997         * lib/time.in.h: Likewise.
47998         * lib/unistd.in.h: Likewise.
47999         * lib/wchar.in.h: Likewise.
48000         * lib/wctype.in.h: Likewise.
48001         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48002
48003 2008-10-17  Jim Meyering  <meyering@redhat.com>
48004
48005         ignore-value: don't depend on inline module
48006         * modules/ignore-value (Depends-on): Remove 'inline'.
48007         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
48008         Suggestion from Bruno Haible.
48009
48010 2008-10-17  Bruno Haible  <bruno@clisp.org>
48011
48012         New implementation of condition variables for Win32.
48013         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
48014         (gl_linked_waitqueue_t): New type.
48015         (gl_cond_t): Use it.
48016         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
48017         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
48018         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
48019         (glthread_cond_init_func, glthread_cond_wait_func,
48020         glthread_cond_timedwait_func, glthread_cond_signal_func,
48021         glthread_cond_broadcast_func, glthread_cond_destroy_func):
48022         Reimplemented on the basis of gl_linked_waitqueue_t.
48023         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
48024         gl_waitqueue_t.
48025         (gl_rwlock_t): Update.
48026         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
48027
48028 2008-10-17  Simon Josefsson  <simon@josefsson.org>
48029
48030         * modules/recvfrom (Depends-on): Add dependency on getpeername.
48031         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48032
48033 2008-10-17  Jim Meyering  <meyering@redhat.com>
48034
48035         ignore-value: new module
48036         * modules/ignore-value: New file.
48037         * lib/ignore-value.h: New file.
48038         * MODULES.html.sh (Compiler warning management): New section,
48039         just for this module.  More to come.
48040
48041 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48042
48043         open-safer.c: avoid 'signed and unsigned in conditional...' warning
48044         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
48045         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
48046
48047 2008-10-16  Jim Meyering  <meyering@redhat.com>
48048
48049         openat-die.c: avoid 'no previous prototype' warning
48050         * lib/openat-die.c: Include "openat.h".
48051         Reported by Reuben Thomas <rrt@sc3d.org>.
48052
48053 2008-10-16  Simon Josefsson  <simon@josefsson.org>
48054
48055         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
48056         * lib/netdb.in.h: Fix typo.
48057         Reported by Bruno Haible  <bruno@clisp.org>
48058
48059         * lib/netdb.in.h: Include sys/socket.h for platforms without
48060         netdb.h, to get structures like hostent on MinGW.
48061         * modules/netdb (Depends-on): Add sys_socket.
48062
48063 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48064
48065         * modules/netdb, modules/netdb-tests: New file.
48066         * m4/netdb_h.m4: New file.
48067         * lib/netdb.in.h: Add, currently just an empty file pending
48068         definitions.
48069         * tests/test-netdb.c: New file.
48070         * doc/posix-headers/netdb.texi: Mention that we replace it if
48071         needed.
48072         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48073         netdb.
48074
48075 2008-10-15  Simon Josefsson  <simon@josefsson.org>
48076
48077         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
48078         with code.
48079
48080 2008-10-13  Bruno Haible  <bruno@clisp.org>
48081
48082         * lib/glthread/cond.c (glthread_cond_wait_func,
48083         glthread_cond_timedwait_func): Add a comment.
48084
48085 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48086
48087         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
48088         * tests/test-select.c: Likewise,
48089
48090 2008-10-13  Bruno Haible  <bruno@clisp.org>
48091
48092         * lib/glthread/cond.c (glthread_cond_wait_func,
48093         glthread_cond_timedwait_func): Fix variable name.
48094         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48095
48096 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
48097
48098         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
48099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
48100         struct sockaddr.sa_len.
48101         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
48102
48103 2008-10-13  Simon Josefsson  <simon@josefsson.org>
48104
48105         * build-aux/pmccabe2html: Add css and css_url parameters.
48106
48107 2008-10-12  Bruno Haible  <bruno@clisp.org>
48108
48109         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
48110         calling aclx_get.
48111         Reported by Rainer Tammer <tammer@tammer.net>.
48112
48113 2008-10-12  Bruno Haible  <bruno@clisp.org>
48114
48115         Use msvcrt aware primitives for creation/termination of Win32 threads.
48116         * lib/glthread/thread.c: Include <process.h>.
48117         (glthread_create_func): Use _beginthreadex instead of CreateThread.
48118         (wrapper_func): Update signature.
48119         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
48120
48121 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
48122             Bruno Haible  <bruno@clisp.org>
48123
48124         Provide a Win32 implementation of the 'cond' module.
48125         * lib/glthread/cond.h [USE_WIN32]: New implementation.
48126         * lib/glthread/cond.c (glthread_cond_init_func,
48127         glthread_cond_wait_func, glthread_cond_timedwait_func,
48128         glthread_cond_signal_func, glthread_cond_broadcast_func,
48129         glthread_cond_destroy_func) [USE_WIN32]: New functions.
48130         * modules/cond (Dependencies): Add gettimeofday.
48131
48132 2008-10-11  Bruno Haible  <bruno@clisp.org>
48133
48134         Make sleep work on older versions of mingw.
48135         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
48136         only whether it exists.
48137         * doc/posix-functions/sleep.texi: Mention the problem with older
48138         versions of mingw.
48139
48140 2008-10-11  Bruno Haible  <bruno@clisp.org>
48141
48142         New module 'shutdown'.
48143         * modules/shutdown: New file.
48144         * lib/sys_socket.in.h (shutdown): New declaration.
48145         * lib/winsock.c (shutdown): New function.
48146         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
48147         GNULIB_SHUTDOWN.
48148         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
48149         * doc/posix-functions/shutdown.texi: Document the new module.
48150
48151 2008-10-11  Jim Meyering  <meyering@redhat.com>
48152
48153         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
48154
48155 2008-10-11  Bruno Haible  <bruno@clisp.org>
48156
48157         New module 'fclose'.
48158         * modules/fclose: New file.
48159         * lib/stdio.in.h (fclose): New declaration.
48160         * lib/fclose.c: New file.
48161         * m4/fclose.m4: New file.
48162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48163         REPLACE_FCLOSE.
48164         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48165         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48166         REPLACE_FCLOSE.
48167         * modules/close (Depends-on): fclose.
48168         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48169
48170 2008-10-11  Bruno Haible  <bruno@clisp.org>
48171
48172         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48173         set errno and don't call _close.
48174
48175 2008-10-10  Bruno Haible  <bruno@clisp.org>
48176
48177         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48178         ACL, not afterwards. Fixes test failure on Cygwin.
48179
48180 2008-10-09  Ben Pfaff  <blp@gnu.org>
48181
48182         * build-aux/announce-gen: Fix gnulib version related part of usage
48183         message.  Die with a useful error message if no tarballs are
48184         found.
48185
48186 2008-10-10  Jim Meyering  <meyering@redhat.com>
48187
48188         bootstrap: use git's --depth=N option only if it's supported
48189         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48190         recognize the --depth option.  Reported by Pádraig Brady.
48191
48192 2008-10-09  Bruno Haible  <bruno@clisp.org>
48193
48194         New module 'ioctl'.
48195         * modules/ioctl: New file.
48196         * lib/sys_socket.in.h (ioctl): Remove declaration.
48197         * lib/winsock.c: Include <sys/ioctl.h>.
48198         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48199         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48200         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48201         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48202         * doc/posix-functions/ioctl.texi: Mention the new module.
48203
48204 2008-10-09  Bruno Haible  <bruno@clisp.org>
48205
48206         New module 'sys_ioctl'.
48207         * lib/sys_ioctl.in.h: New file.
48208         * m4/sys_ioctl_h.m4: New file.
48209         * modules/sys_ioctl: New file.
48210         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48211
48212 2008-10-09  Bruno Haible  <bruno@clisp.org>
48213
48214         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48215         * lib/winsock.c: Include <stdarg.h>.
48216         (rpl_ioctl): Change to second argument 'int' and then varargs.
48217
48218 2008-10-09  Bruno Haible  <bruno@clisp.org>
48219
48220         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48221         when the sys_socket module is present and the system has <winsock2.h>.
48222
48223 2008-10-09  Bruno Haible  <bruno@clisp.org>
48224
48225         * doc/posix-functions/close.texi: Mention module 'close' instead of
48226         module 'sys_socket'.
48227
48228 2008-10-09  Bruno Haible  <bruno@clisp.org>
48229
48230         * doc/glibc-headers/sys_ioctl.texi: New file.
48231         * doc/gnulib.texi: Include it.
48232
48233 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48234             Bruno Haible  <bruno@clisp.org>
48235
48236         Combine the two replacements of 'close'.
48237         * lib/sys_socket.in.h (close): Define to a reminder to include
48238         <unistd.h>.
48239         (_gl_close_fd_maybe_socket): New declaration.
48240         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48241         * lib/winsock.c (close): Remove undefinition.
48242         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48243         needed for the gnulib module 'close'.
48244         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48245         define to an error symbol or to a warning, if suitable.
48246         * lib/close.c: Include <sys/socket.h>.
48247         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48248         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48249         UNISTD_H_HAVE_WINSOCK2_H.
48250         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48252         UNISTD_H_HAVE_WINSOCK2_H.
48253         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48254         (configure.ac): Set a module indicator.
48255         (Makefile.am): Substitute GNULIB_CLOSE.
48256         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48257         * modules/poll-tests (Depends-on): Add close.
48258         * modules/select-tests (Depends-on): Likewise.
48259
48260 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48261             Bruno Haible  <bruno@clisp.org>
48262
48263         New module 'close'.
48264         * modules/close: New file.
48265         * lib/unistd.in.h (close): Move declaration out of the
48266         FCHDIR_REPLACEMENT scope.
48267         (_gl_unregister_fd): New declaration.
48268         * lib/close.c: New file.
48269         * lib/fchdir.c (rpl_close): Remove function.
48270         * m4/close.m4: New file.
48271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48272         close.
48273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48274         REPLACE_CLOSE.
48275         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48276         REPLACE_CLOSE.
48277         * modules/fchdir (Depends-on): Add close.
48278
48279 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48280             Bruno Haible  <bruno@clisp.org>
48281
48282         * lib/fcntl.in.h (open): Simplify conditionals.
48283         (_gl_register_fd): New declaration.
48284         * lib/fchdir.c (rpl_open): Remove function.
48285         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48286         also.
48287         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48289         open.
48290
48291 2008-10-09  Jim Meyering  <meyering@redhat.com>
48292
48293         GNUmakefile: use the more name-space-friendly "_version"
48294         * top/GNUmakefile (_dummy): Update.
48295         (_version): Rename from "version".
48296
48297 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48298             Bruno Haible  <bruno@clisp.org>
48299
48300         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48301         rpl_close.
48302         (_gl_register_fd): New function, extracted from rpl_open.
48303         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48304         (rpl_open, rpl_opendir): Use _gl_register_fd.
48305
48306 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48307
48308         Fix organization of 'open' replacement.
48309         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48310         (gl_FUNC_OPEN): Use it.
48311         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48312
48313 2008-10-08  Bruno Haible  <bruno@clisp.org>
48314
48315         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48316
48317 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48318
48319         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48320         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48321         listen).
48322
48323 2008-10-08  Eric Blake  <ebb9@byu.net>
48324
48325         GNUmakefile: add 'make version' target
48326         * top/GNUmakefile (_curr-ver): Split version update rules...
48327         (version): ...into a target.
48328
48329 2008-10-07  Bruno Haible  <bruno@clisp.org>
48330
48331         Use a more portable replacement expression for -0.0L.
48332         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48333         instead of -0.0L. Fix m4 quotation.
48334
48335         * tests/test-signbit.c: Include <float.h>.
48336         (minus_zero): New variable.
48337         (test_signbitl): Use minus_zero instead of -zero.
48338         * modules/signbit-tests (Depends-on): Add float.
48339
48340         * tests/test-ceill.c: Include <float.h>.
48341         (zero): Remove variable.
48342         (minus_zero): New variable.
48343         (main): Use minus_zero instead of -zero.
48344         * modules/ceill-tests (Depends-on): Add float.
48345
48346         * tests/test-floorl.c: Include <float.h>.
48347         (zero): Remove variable.
48348         (minus_zero): New variable.
48349         (main): Use minus_zero instead of -zero.
48350         * modules/floorl-tests (Depends-on): Add float.
48351
48352         * tests/test-roundl.c: Include <float.h>.
48353         (zero): Remove variable.
48354         (minus_zero): New variable.
48355         (main): Use minus_zero instead of -zero.
48356         * modules/roundl-tests (Depends-on): Add float.
48357
48358         * tests/test-truncl.c: Include <float.h>.
48359         (zero): Remove variable.
48360         (minus_zero): New variable.
48361         (main): Use minus_zero instead of -zero.
48362         * modules/truncl-tests (Depends-on): Add float.
48363
48364         * tests/test-frexpl.c (zero): Remove variable.
48365         (minus_zero): New variable.
48366         (main): Use minus_zero instead of -zero.
48367         * modules/frexpl-tests (Depends-on): Add float.
48368
48369         * tests/test-isnan.c (zerol): Remove variable.
48370         (minus_zerol): New variable.
48371         (test_long_double): Use minus_zerol instead of -zerol.
48372         * modules/isnan-tests (Depends-on): Add float.
48373
48374         * tests/test-isnanl.h (zero): Remove variable.
48375         (minus_zero): New variable.
48376         (main): Use minus_zero instead of -zero.
48377         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48378         * modules/isnanl-tests (Depends-on): Add float.
48379
48380         * tests/test-ldexpl.c (zero): Remove variable.
48381         (minus_zero): New variable.
48382         (main): Use minus_zero instead of -zero.
48383         * modules/ldexpl-tests (Depends-on): Add float.
48384
48385         * tests/test-snprintf-posix.h (zerol): Remove variable.
48386         (minus_zerol): New variable.
48387         (test_function): Use minus_zerol instead of -zerol.
48388         * modules/snprintf-posix-tests (Depends-on): Add float.
48389         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48390
48391         * tests/test-sprintf-posix.h (zerol): Remove variable.
48392         (minus_zerol): New variable.
48393         (test_function): Use minus_zerol instead of -zerol.
48394         * modules/sprintf-posix-tests (Depends-on): Add float.
48395         * modules/vsprintf-posix-tests (Depends-on): Add float.
48396
48397         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48398         (minus_zerol): New variable.
48399         (test_function): Use minus_zerol instead of -zerol.
48400         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48401
48402         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48403         (minus_zerol): New variable.
48404         (test_function): Use minus_zerol instead of -zerol.
48405         * modules/vasprintf-posix-tests (Depends-on): Add float.
48406
48407 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48408
48409         * MODULES.html.sh (Support for building documentation): Mention
48410         pmccabe2html.  Sort entries.
48411
48412         Add pmccabe2html module, from gnupdf.
48413         * build-aux/pmccabe.css: New file.
48414         * build-aux/pmccabe2html: New file.
48415         * m4/pmccabe2html.m4: New file.
48416         * modules/pmccabe2html: New file.
48417
48418 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48419
48420         flock: new module
48421         * MODULES.html.sh: Add to list of modules.
48422         * lib/flock.c: flock implementation for Windows and Unix systems
48423         which have fcntl.
48424         * doc/glibc-functions/flock.texi: Update documentation.
48425         * lib/sys_file.in.h: <sys/file.h> header file.
48426         * m4/flock.m4: M4 macros.
48427         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48428         * modules/flock: flock module.
48429         * modules/flock-tests: flock tests module.
48430         * modules/sys_file: sys/file.h module.
48431         * tests/test-flock.c: test suite for flock.
48432
48433 2008-10-06  Jim Meyering  <meyering@redhat.com>
48434
48435         bootstrap: check for LT_INIT more portably still ;-)
48436         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48437         Spotted by Bruno Haible.
48438
48439 2008-10-06  Eric Blake  <ebb9@byu.net>
48440
48441         test-signbit: avoid tripping Irix cc bug on -0.0L
48442         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48443         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48444         entire testsuite consistent and avoids an Irix 6.2 bug.
48445
48446 2008-10-05  Bruno Haible  <bruno@clisp.org>
48447             Jim Meyering  <jim@meyering.net>
48448
48449         Add an option for ignoring EPIPE during close_stdout.
48450         * lib/closeout.h: Include <stdbool.h>.
48451         (close_stdout_set_ignore_EPIPE): New declaration.
48452         * lib/closeout.c: Include <stdbool.h>.
48453         (ignore_EPIPE): New variable.
48454         (close_stdout_set_ignore_EPIPE): New function.
48455         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48456         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48457         failure.
48458         * modules/closeout (Depends-on): Add stdbool.
48459
48460 2008-10-05  Bruno Haible  <bruno@clisp.org>
48461
48462         * modules/accept: New file.
48463         * modules/bind: New file.
48464         * modules/connect: New file.
48465         * modules/getpeername: New file.
48466         * modules/getsockname: New file.
48467         * modules/getsockopt: New file.
48468         * modules/listen: New file.
48469         * modules/recv: New file.
48470         * modules/recvfrom: New file.
48471         * modules/send: New file.
48472         * modules/sendto: New file.
48473         * modules/setsockopt: New file.
48474         * modules/socket: New file.
48475         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48476         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48477         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48478         the particular module is requested. Add a link warning when the
48479         particular module is not requested.
48480         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48481         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48482         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48483         the particular module is requested.
48484         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48485         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48486         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48487         * modules/sys_socket (Depends-on): Add link-warning.
48488         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48489         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48490         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48491         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48492         GL_LINK_WARNING.
48493         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48494         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48495         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48496         * doc/posix-functions/getpeername.texi: Mention the new module
48497         'getpeername'.
48498         * doc/posix-functions/getsockname.texi: Mention the new module
48499         'getsockname'.
48500         * doc/posix-functions/getsockopt.texi: Mention the new module
48501         'getsockopt'.
48502         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48503         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48504         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48505         * doc/posix-functions/send.texi: Mention the new module 'send'.
48506         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48507         * doc/posix-functions/setsockopt.texi: Mention the new module
48508         'setsockopt'.
48509         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48510         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48511         listen, connect, accept.
48512         * modules/select-tests (Depends-on): Likewise.
48513
48514 2008-10-05  Bruno Haible  <bruno@clisp.org>
48515
48516         * lib/winsock.c (strerror): Remove unused #undef.
48517         (rpl_close): Remove unused local variable.
48518
48519         * modules/sys_socket (Depends-on); Add errno.
48520
48521 2008-10-05  Bruno Haible  <bruno@clisp.org>
48522
48523         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48524         (select): Add a link warning when the 'select' module is not used.
48525         * modules/sys_select (Depends-on): Add link-warning.
48526         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48527         Suggested by Paolo Bonzini.
48528
48529 2008-10-05  Jim Meyering  <meyering@redhat.com>
48530
48531         bootstrap: check for LT_INIT more portably
48532         * build-aux/bootstrap: Avoid using grep -E, since it's not
48533         portable enough.  Suggestion from Bruno Haible.
48534
48535 2008-10-05  Bruno Haible  <bruno@clisp.org>
48536
48537         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48538         as being fixed by gnulib.
48539
48540 2008-10-05  Bruno Haible  <bruno@clisp.org>
48541
48542         * modules/select-tests: New file, mostly copied from
48543         modules/sys_select-tests.
48544         * tests/test-select.c: New file, mostly copied from
48545         tests/test-sys_select.c.
48546         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48547         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48548         (Makefile.am): Remove test_sys_select_LDADD.
48549
48550         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48551         to an undefined symbol, for an error message.
48552         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48553         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48554         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48555         winsock-select.c here.
48556         * modules/sys_select (Files): Remove lib/winsock-select.c.
48557         (Depends-on): Remove alloca.
48558         (Makefile.am): Substitute GNULIB_SELECT.
48559         * modules/select: New file.
48560         * doc/posix-functions/select.texi: Update.
48561
48562 2008-10-05  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48565         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48566         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48567         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48568         getdtablesize.
48569         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48570         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48571
48572 2008-10-05  Bruno Haible  <bruno@clisp.org>
48573
48574         * modules/getdtablesize-tests: New file.
48575         * tests/test-getdtablesize.c: New file.
48576
48577         New module 'getdtablesize'.
48578         * lib/unistd.in.h (getdtablesize): New declaration.
48579         * lib/getdtablesize.c: New file.
48580         * m4/getdtablesize.m4: New file.
48581         * modules/getdtablesize: New file.
48582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48583         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48584         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48585         HAVE_GETDTABLESIZE.
48586         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48587
48588 2008-10-05  Bruno Haible  <bruno@clisp.org>
48589
48590         * modules/sched (Makefile.am): Fix typo.
48591         Reported by Simon Josefsson.
48592
48593 2008-10-05  Jim Meyering  <meyering@redhat.com>
48594
48595         bootstrap: check for LT_INIT, too
48596         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48597         are deprecated.  Suggestion from Ralf Wildenhues.
48598
48599 2008-10-05  Bruno Haible  <bruno@clisp.org>
48600
48601         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48602         overriding them by ours.
48603         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48604
48605 2008-10-05  Jim Meyering  <meyering@redhat.com>
48606
48607         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48608         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48609         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48610
48611 2008-10-04  Bruno Haible  <bruno@clisp.org>
48612
48613         * modules/dup2 (License): Change to LGPLv2+.
48614         * modules/sleep (License): Likewise.
48615         * modules/perror (License): Likewise.
48616         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48617         Blake.
48618         * modules/signal (License): Likewise.
48619         * modules/sigprocmask (License): Likewise.
48620         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48621         Meyering.
48622
48623 2008-10-04  Bruno Haible  <bruno@clisp.org>
48624
48625         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48626         Reported by Rainer Tammer <tammer@tammer.net>.
48627
48628 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48629             Bruno Haible  <bruno@clisp.org>
48630
48631         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48632         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48633         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48634
48635 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48636
48637         filevercmp: new module
48638         * lib/filevercmp.h: New function filevercmp comparing version strings.
48639         * lib/filevercmp.c: Implementation of filevercmp function.
48640         * modules/filevercmp: Module metadata.
48641         * tests/test-filevercmp.c: Unit test for new module.
48642         * modules/filevercmp-tests: Unit test metadata.
48643         * MODULES.html.sh: Add filevercmp module.
48644
48645 2008-10-03  Bruno Haible  <bruno@clisp.org>
48646
48647         * lib/c-ctype.h: Add comment.
48648         Reported by Jim Meyering.
48649
48650 2008-10-02  Bruno Haible  <bruno@clisp.org>
48651
48652         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48653
48654 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48655
48656         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48657         name of bootstrap.conf accordingly.
48658
48659 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48660
48661         * build-aux/bootstrap: Install git-merge-changelog configuration
48662         items into .gitconfig if needed.
48663
48664 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48665
48666         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48667         git repository, and initialize/update it accordingly.
48668
48669 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48670
48671         * modules/fsync-tests: New file.
48672         * tests/test-fsync.c: New file.
48673
48674         New module 'fsync'.
48675         * lib/fsync.c: New file.
48676         * m4/fsync.m4: New file.
48677         * modules/fsync: New file.
48678         * lib/unistd.in.h (fsync): New declaration.
48679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48680         GNULIB_FSYNC and HAVE_FSYNC.
48681         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48682         * MODULES.html.sh (posix_functions): Add fsync.
48683         * doc/posix-functions/fsync.texi: Mention the new module.
48684
48685 2008-10-02  Jim Meyering  <meyering@redhat.com>
48686
48687         fts.c: sync with similar code from coreutils' remove.c
48688         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48689         Guard also with "#if defined __linux__", since for now at least,
48690         this code is Linux-kernel-specific.
48691
48692 2008-10-02  Jim Meyering  <meyering@redhat.com>
48693
48694         fts: bug fixes
48695         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48696         Include <sys/vfs.h>, not <sys/statfs.h>.
48697
48698         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48699         Include <sys/vfs.h>, not <sys/statfs.h>.
48700
48701 2008-10-01  Bruno Haible  <bruno@clisp.org>
48702
48703         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48704         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48705         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48706         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48707         * doc/posix-functions/posix_spawnp.texi: Likewise.
48708         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48709         whether posix_spawn actually works.
48710         * m4/pipe.m4 (gl_PIPE): Likewise.
48711         * modules/execute (Files): Add m4/posix_spawn.m4.
48712         * modules/pipe (Files): Add m4/posix_spawn.m4.
48713         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48714
48715 2008-10-01  Jim Meyering  <meyering@redhat.com>
48716
48717         remove trailing spaces
48718         * NEWS: Likewise.
48719         * lib/poll.c (poll): Likewise.
48720         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48721         * lib/winsock.c (rpl_close): Likewise.
48722         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48723         * modules/yield: Likewise.
48724         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48725         * tests/test-sys_select.c (connect_to_socket): Likewise.
48726
48727         fts.c: adjust a new interface to be more generally useful
48728         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48729         (fts_build): Adjust caller.
48730
48731 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48732
48733         * modules/cond-tests: New file.
48734         * tests/test-cond.c: New file.
48735
48736 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48737             Bruno Haible  <bruno@clisp.org>
48738
48739         * modules/cond (Dependencies): Add errno, time.
48740         * lib/glthread/cond.h: Include <time.h>.
48741         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48742         across platforms.
48743
48744 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48745             Bruno Haible  <bruno@clisp.org>
48746
48747         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48748
48749 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48750             Bruno Haible  <bruno@clisp.org>
48751
48752         * modules/tls-tests (Depends-on): Add thread, yield.
48753         (configure.ac): Remove all checks.
48754         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48755         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48756         gl_thread_self): Remove definitions. Include glthread/thread.h and
48757         glthread/yield.h instead.
48758         (test_tls): Pass an additional NULL argument to gl_thread_join.
48759
48760 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48761             Bruno Haible  <bruno@clisp.org>
48762
48763         * modules/lock-tests (Depends-on): Add thread, yield.
48764         (configure.ac): Remove all checks.
48765         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48766         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48767         gl_thread_self): Remove definitions. Include glthread/thread.h and
48768         glthread/yield.h instead.
48769         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48770         additional NULL argument to gl_thread_join.
48771
48772 2008-09-30  Bruno Haible  <bruno@clisp.org>
48773
48774         Fix the Win32 implementation of the 'thread' module.
48775         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48776         pointer type.
48777         (gl_thread_self): Invoke gl_thread_self_func.
48778         (gl_thread_self_func): New declaration.
48779         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48780         (do_init_self_key, init_self_key): New functions.
48781         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48782         Remove some fields.
48783         (running_threads, running_lock): Remove variables.
48784         (get_current_thread_handle): New function.
48785         (gl_thread_self_func, wrapper_func, glthread_create_func,
48786         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48787         simplified.
48788
48789 2008-09-30  Bruno Haible  <bruno@clisp.org>
48790
48791         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48792         files.
48793
48794 2008-09-30  Jim Meyering  <meyering@redhat.com>
48795
48796         fts.m4: correct the test for statfs.f_type
48797         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48798         when checking for statfs.f_type.
48799
48800 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48801
48802         tests: avoid some compiler warnings
48803         * tests/test-memchr.c (main): Pass NULL indirectly.
48804         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48805
48806 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48807
48808         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48809         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48810         exactly specified dayshifts.
48811         (dayshift): New rule.
48812         (rel): Add dayshift.
48813         (relative_time_table) [tomorrow, yesterday, today, now]:
48814         Use tDAY_SHIFT in place of tDAY_UNIT.
48815         * tests/test-getdate.c: Add tests for now-disallowed countable
48816         dayshifts, e.g., "4 yesterday ago".
48817
48818 2008-09-29  Bruno Haible  <bruno@clisp.org>
48819
48820         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48821         * tests/test-posix_spawn1.in.sh: Renamed from
48822         tests/test-posix_spawn.in.sh.
48823         * tests/test-posix_spawn2.c: New file.
48824         * tests/test-posix_spawn2.in.sh: New file.
48825         * modules/posix_spawnp-tests (Files): Update.
48826         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48827
48828 2008-09-29  Bruno Haible  <bruno@clisp.org>
48829
48830         Propagate effects of putenv/setenv/unsetenv to child processes.
48831         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48832         * lib/pipe.c (create_pipe): Likewise.
48833
48834 2008-09-29  Bruno Haible  <bruno@clisp.org>
48835
48836         Enable use of shell scripts as executables in mingw.
48837         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48838         run the program as a shell script.
48839         * lib/pipe.c (create_pipe): Likewise.
48840         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48841         resulting array.
48842
48843 2008-09-29  Eric Blake  <ebb9@byu.net>
48844
48845         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48846
48847 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48848
48849         * doc/posix-functions/accept.texi: Update mingw problems.
48850         * doc/posix-functions/bind.texi: Update mingw problems.
48851         * doc/posix-functions/close.texi: Update mingw problems.
48852         * doc/posix-functions/connect.texi: Update mingw problems.
48853         * doc/posix-functions/getpeername.texi: Update mingw problems.
48854         * doc/posix-functions/getsockname.texi: Update mingw problems.
48855         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48856         * doc/posix-functions/ioctl.texi: Update mingw problems.
48857         * doc/posix-functions/listen.texi: Update mingw problems.
48858         * doc/posix-functions/recv.texi: Update mingw problems.
48859         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48860         * doc/posix-functions/select.texi: Update mingw problems.
48861         * doc/posix-functions/send.texi: Update mingw problems.
48862         * doc/posix-functions/sendto.texi: Update mingw problems.
48863         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48864         * doc/posix-functions/socket.texi: Update mingw problems.
48865
48866 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48867             Bruno Haible  <bruno@clisp.org>
48868
48869         * lib/sys_select.in.h: Include sys/time.h.
48870         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48871         * modules/sys_select: Depend on sys_time.
48872         * tests/test-sys_select.c: Test that sys/select.h defines struct
48873         timeval fully.
48874
48875 2008-09-29  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48878         * lib/sys_select.in.h: Likewise.
48879
48880 2008-09-29  Bruno Haible  <bruno@clisp.org>
48881
48882         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48883
48884 2008-09-29  Bruno Haible  <bruno@clisp.org>
48885
48886         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48887         Set LIBSOCKET instead of augmenting LIBS.
48888         * modules/sockets (Link): New section.
48889         * modules/sockets-tests (test_sockets_LDADD): New variable.
48890         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48891         * modules/poll-tests (test_poll_LDADD): New variable.
48892         * NEWS: Document the change.
48893
48894 2008-09-29  Bruno Haible  <bruno@clisp.org>
48895
48896         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48897         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48898         ARPA_INET_H directly.
48899         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48900
48901 2008-09-28  Bruno Haible  <bruno@clisp.org>
48902
48903         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48904         from gl_HEADER_SYS_SOCKET.
48905         (gl_HEADER_SYS_SOCKET): Invoke it.
48906         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48907
48908 2008-09-28  Bruno Haible  <bruno@clisp.org>
48909
48910         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48911         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48912         Needed on OSF/1 4.0.
48913
48914 2008-09-28  Bruno Haible  <bruno@clisp.org>
48915
48916         Override open more carefully.
48917         * lib/open.c (orig_open): New function.
48918         (rpl_open): Use orig_open instead of open.
48919         * lib/fcntl.in.h: Add special invocation convention.
48920         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48921         (gl_FUNC_OPEN): Invoke it.
48922
48923         Override freopen more carefully.
48924         * lib/freopen.c (orig_freopen): New function.
48925         (rpl_freopen): Use orig_freopen instead of freopen.
48926         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48927         (gl_FUNC_FREOPEN): Invoke it.
48928
48929         Override fopen more carefully.
48930         * lib/fopen.c (orig_fopen): New function.
48931         (rpl_fopen): Use orig_fopen instead of fopen.
48932         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48933         (gl_FUNC_FOPEN): Invoke it.
48934         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48935
48936 2008-09-28  Bruno Haible  <bruno@clisp.org>
48937
48938         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48939         SIGPIPE.
48940
48941 2008-09-28  Bruno Haible  <bruno@clisp.org>
48942
48943         * tests/test-sigaction.c (handler, main): Disable the check whether
48944         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48945         glibc systems with LinuxThreads.
48946
48947 2008-09-28  Bruno Haible  <bruno@clisp.org>
48948
48949         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48950
48951         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48952         with AIX xlc.
48953         * lib/fcntl.in.h (open): Likewise.
48954         Reported by Rainer Tammer <tammer@tammer.net>.
48955
48956 2008-09-28  Bruno Haible  <bruno@clisp.org>
48957
48958         * modules/posix_spawnp-tests: New file.
48959         * tests/test-posix_spawn.c: New file.
48960         * tests/test-posix_spawn.in.sh: New file.
48961
48962         New module 'posix_spawnp'.
48963         * modules/posix_spawnp: New file.
48964         * lib/spawnp.c: New file, from GNU libc with modifications.
48965         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48966
48967         New module 'posix_spawn'.
48968         * modules/posix_spawn: New file.
48969         * lib/spawn.c: New file, from GNU libc with modifications.
48970         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48971
48972         New module 'posix_spawnattr_destroy'.
48973         * modules/posix_spawnattr_destroy: New file.
48974         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48975         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48976         module.
48977
48978         New module 'posix_spawnattr_setsigmask'.
48979         * modules/posix_spawnattr_setsigmask: New file.
48980         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48981         modifications.
48982         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48983         new module.
48984
48985         New module 'posix_spawnattr_getsigmask'.
48986         * modules/posix_spawnattr_getsigmask: New file.
48987         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48988         modifications.
48989         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48990         new module.
48991
48992         New module 'posix_spawnattr_setsigdefault'.
48993         * modules/posix_spawnattr_setsigdefault: New file.
48994         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48995         modifications.
48996         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48997         new module.
48998
48999         New module 'posix_spawnattr_getsigdefault'.
49000         * modules/posix_spawnattr_getsigdefault: New file.
49001         * lib/spawnattr_getdefault.c: New file, from GNU libc with
49002         modifications.
49003         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
49004         new module.
49005
49006         New module 'posix_spawnattr_setschedpolicy'.
49007         * modules/posix_spawnattr_setschedpolicy: New file.
49008         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
49009         modifications.
49010         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
49011         new module.
49012
49013         New module 'posix_spawnattr_getschedpolicy'.
49014         * modules/posix_spawnattr_getschedpolicy: New file.
49015         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
49016         modifications.
49017         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
49018         new module.
49019
49020         New module 'posix_spawnattr_setschedparam'.
49021         * modules/posix_spawnattr_setschedparam: New file.
49022         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
49023         modifications.
49024         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
49025         new module.
49026
49027         New module 'posix_spawnattr_getschedparam'.
49028         * modules/posix_spawnattr_getschedparam: New file.
49029         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
49030         modifications.
49031         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
49032         new module.
49033
49034         New module 'posix_spawnattr_setpgroup'.
49035         * modules/posix_spawnattr_setpgroup: New file.
49036         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
49037         modifications.
49038         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
49039         module.
49040
49041         New module 'posix_spawnattr_getpgroup'.
49042         * modules/posix_spawnattr_getpgroup: New file.
49043         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
49044         modifications.
49045         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
49046         module.
49047
49048         New module 'posix_spawnattr_setflags'.
49049         * modules/posix_spawnattr_setflags: New file.
49050         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
49051         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
49052         module.
49053
49054         New module 'posix_spawnattr_getflags'.
49055         * modules/posix_spawnattr_getflags: New file.
49056         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
49057         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
49058         module.
49059
49060         New module 'posix_spawnattr_init'.
49061         * modules/posix_spawnattr_init: New file.
49062         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
49063         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
49064         module.
49065
49066         New module 'posix_spawn_file_actions_destroy'.
49067         * modules/posix_spawn_file_actions_destroy: New file.
49068         * lib/spawn_faction_destroy.c: New file, from GNU libc with
49069         modifications.
49070         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
49071         the new module.
49072
49073         New module 'posix_spawn_file_actions_addopen'.
49074         * modules/posix_spawn_file_actions_addopen: New file.
49075         * lib/spawn_faction_addopen.c: New file, from GNU libc with
49076         modifications.
49077         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
49078         the new module.
49079
49080         New module 'posix_spawn_file_actions_adddup2'.
49081         * modules/posix_spawn_file_actions_adddup2: New file.
49082         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
49083         modifications.
49084         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
49085         the new module.
49086
49087         New module 'posix_spawn_file_actions_addclose'.
49088         * modules/posix_spawn_file_actions_addclose: New file.
49089         * lib/spawn_faction_addclose.c: New file, from GNU libc with
49090         modifications.
49091         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
49092         the new module.
49093
49094         New module 'posix_spawn_file_actions_init'.
49095         * modules/posix_spawn_file_actions_init: New file.
49096         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
49097         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
49098         new module.
49099
49100         New module 'posix_spawn-internal'.
49101         * modules/posix_spawn-internal: New file.
49102         * lib/spawn_int.h: New file, from GNU libc with modifications.
49103         * lib/spawni.c: New file, from GNU libc with modifications.
49104         * m4/posix_spawn.m4: New file.
49105
49106         New module 'spawn'.
49107         * modules/spawn: New file.
49108         * lib/spawn.in.h: New file, from GNU libc with modifications.
49109         * m4/spawn_h.m4: New file.
49110         * doc/posix-headers/spawn.texi: Mention the new module.
49111
49112 2008-09-28  Bruno Haible  <bruno@clisp.org>
49113
49114         * modules/sched-tests: New file.
49115         * tests/test-sched.c: New file.
49116
49117         New module 'sched'.
49118         * modules/sched: New file.
49119         * lib/sched.in.h: New file.
49120         * m4/sched_h.m4: New file.
49121         * doc/posix-headers/sched.texi: Mention the new module.
49122
49123 2008-09-27  Eric Blake  <ebb9@byu.net>
49124
49125         Fix previous patch, and tweak references to $0.
49126         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
49127         (func_version, func_gnulib_dir): Don't call this program
49128         gnulib-tool.
49129         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
49130         with using $0 in function.
49131         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
49132         (func_fatal_error): Reuse the name the user invoked us with.
49133
49134 2008-09-27  Bruno Haible  <bruno@clisp.org>
49135
49136         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
49137         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
49138         (gl_ICONV_H): Not here.
49139         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
49140         instead of assigning ICONV_H directly.
49141
49142         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
49143         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
49144         WCHAR_H directly.
49145
49146 2008-09-27  Bruno Haible  <bruno@clisp.org>
49147
49148         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
49149         * modules/arpa_inet (Depends-on): Add link-warning.
49150         (Makefile.am): Insert the definition of GL_LINK-WARNING.
49151         * modules/unistd (Makefile.am): Likewise.
49152
49153 2008-09-26  Bruno Haible  <bruno@clisp.org>
49154
49155         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
49156         variables.
49157         (func_version): Essentially copied from gnulib-tool.
49158         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
49159         func_readlink): Copied from gnulib-tool.
49160
49161 2008-09-26  Bruno Haible  <bruno@clisp.org>
49162
49163         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49164         invoking git-version-gen.
49165
49166 2008-09-26  Bruno Haible  <bruno@clisp.org>
49167
49168         * posix-modules: Update to directory names changed on 2008-01-19.
49169         Remove commas in output before splitting into words. No more need to
49170         avoid 'ftruncate' since 2007-02-19.
49171
49172 2008-09-26  Bruno Haible  <bruno@clisp.org>
49173
49174         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49175
49176 2008-09-26  Bruno Haible  <bruno@clisp.org>
49177
49178         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49179         * modules/fwriteerror (Depends-on): Add errno.
49180
49181 2008-09-26  Bruno Haible  <bruno@clisp.org>
49182
49183         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49184         * tests/test-vc-list-files-cvs.sh: Likewise.
49185
49186 2008-09-26  Bruno Haible  <bruno@clisp.org>
49187
49188         * doc/posix-headers/sys_resource.texi: Reorder items.
49189
49190 2008-09-26  Jim Meyering  <meyering@redhat.com>
49191
49192         fts: tweak inode comparison function
49193         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49194         inode numbers, as documented.
49195
49196         fts: sort dirent entries on inode number before traversing
49197         This avoids a quadratic, seek-related performance penalty when
49198         operating on a directory containing many entries (measurable at 10k;
49199         3.5 hours at 2 million entries with a cold cache) on certain types
49200         of file systems, including ext3 and ext4, but not tmpfs.
49201         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49202         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49203         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49204         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49205         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49206         (fts_build): Set the stat.st_ino member from D_INO.
49207         If it is likely to be useful, sort dirent entries on inode number.
49208
49209         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49210         and the struct statfs.f_type member.
49211         * modules/fts (Depends-on): Add d-ino.
49212
49213 2008-09-26  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/sigpipe-die (Depends-on): Add sigpipe.
49216
49217         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49218         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49219         and GNULIB_STDIO_H_SIGPIPE are set.
49220         * lib/stdio-write.c: New file.
49221         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49222         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49223         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49224         REPLACE_STDIO_WRITE_FUNCS.
49225         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49226         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49227         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49228         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49229         * modules/stdio (Files): Add lib/stdio-write.c.
49230         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49231         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49232         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49233         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49234         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49235         REPLACE_FPRINTF_POSIX.
49236         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49237         REPLACE_PRINTF_POSIX.
49238         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49239         REPLACE_VFPRINTF_POSIX.
49240         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49241         REPLACE_VPRINTF_POSIX.
49242         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49243         SIGPIPE issue.
49244         * doc/posix-functions/fputc.texi: Likewise.
49245         * doc/posix-functions/fputs.texi: Likewise.
49246         * doc/posix-functions/fwrite.texi: Likewise.
49247         * doc/posix-functions/printf.texi: Likewise.
49248         * doc/posix-functions/putc.texi: Likewise.
49249         * doc/posix-functions/putchar.texi: Likewise.
49250         * doc/posix-functions/puts.texi: Likewise.
49251         * doc/posix-functions/vfprintf.texi: Likewise.
49252         * doc/posix-functions/vprintf.texi: Likewise.
49253
49254         * modules/safe-write (Depends-on): Add write.
49255
49256         * modules/sigpipe-tests: New file.
49257         * tests/test-sigpipe.c: New file.
49258         * tests/test-sigpipe.sh: New file.
49259
49260         * modules/write: New file.
49261         * lib/unistd.in.h: Include <sys/types.h>.
49262         (write): New declaration.
49263         * lib/write.c: New file.
49264         * m4/write.m4: New file.
49265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49266         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49267         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49268         GNULIB_WRITE, REPLACE_WRITE.
49269         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49270         and the SIGPIPE issue.
49271
49272         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49273         (raise): New declaration.
49274         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49275         (ext_signal): New function.
49276         (rpl_raise): New function.
49277         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49278         GNULIB_SIGNAL_H_SIGPIPE.
49279         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49280         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49281
49282         * modules/sigpipe: New file.
49283         * m4/sigpipe.m4: New file.
49284
49285 2008-09-25  Derek Price  <derek@ximbiot.com>
49286             Bruno Haible  <bruno@clisp.org>
49287
49288         * gnulib-tool (func_import): Report all license incompatibilities, not
49289         just the first one.
49290
49291 2008-09-25  Bruno Haible  <bruno@clisp.org>
49292
49293         * gnulib-tool (func_import): When computing the edits, consider not
49294         only the Makefile.ams that exist but also those that will be generated.
49295
49296 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49297
49298         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49299         fixes gnulib-tool --test warning about duplicate dependency.
49300
49301 2008-09-25  Bruno Haible  <bruno@clisp.org>
49302
49303         * gnulib-tool: Don't ask the user to perform edits in the generated
49304         Makefile.ams.
49305         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49306         apply to the Makefile.am being generated.
49307         (func_emit_tests_Makefile_am): Execute edits that apply to the
49308         Makefile.am being generated.
49309         (func_import): Setup list of Makefile.am edits before emitting the
49310         Makefile.ams, not at the end.
49311         (func_create_testdir): Update.
49312         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49313
49314 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49315
49316         * gnulib-tool (func_import): Store the --tests-base option in the
49317         comment in gnulib-cache.m4.
49318
49319 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49320
49321         * NEWS: Document increased portability that sys_select now provides.
49322
49323         * lib/sys_select.in.h: Install select wrapper.
49324         * lib/sys_socket.in.h: Use more descriptive name when there is no
49325         select wrapper.
49326         * lib/winsock-select.c: New.
49327         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49328         Require gl_HEADER_SYS_SOCKET.
49329         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49330         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49331         * tests/test-sys_select.c: Add functional tests.
49332
49333 2008-09-24  Eric Blake  <ebb9@byu.net>
49334
49335         open, fopen: close fd leak in last patch
49336         * lib/open.c (rpl_open): Close fd before returning error.
49337         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49338         * doc/posix-functions/open.texi (open): Document that Irix also
49339         has the bug.
49340         * doc/posix-functions/fopen.texi (fopen): Likewise.
49341         Reported by Paolo Bonzini.
49342
49343 2008-09-24  Bruno Haible  <bruno@clisp.org>
49344
49345         Ensure that a filename ending in a slash cannot be used to access a
49346         non-directory.
49347         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49348         to check whether it's really a directory.
49349         * lib/fopen.c: Include fcntl.h, unistd.h.
49350         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49351         and fdopen().
49352         * modules/fopen (Depends-on): Add unistd.
49353         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49354         * tests/test-fopen.c (main): Likewise.
49355         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49356         * doc/posix-functions/fopen.texi: Likewise.
49357         Reported by Eric Blake.
49358
49359 2008-09-23  Eric Blake  <ebb9@byu.net>
49360
49361         c-stack: avoid compiler optimizations when provoking overflow
49362         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49363         recursion harder to optimize, to ensure a stack overflow occurs.
49364         * tests/test-c-stack.c (recurse): Likewise.
49365         Borrowed from libsigsegv.
49366
49367         c-stack: work around Irix sigaltstack bug
49368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49369         whether sigaltstack uses wrong end of stack_t (copied in part from
49370         libsigsegv).
49371         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49372         Irix bug, without requiring an over-allocation.
49373         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49374         bug.
49375
49376         fopen: document mingw bug on directories
49377         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49378         not allowing a stream visiting a directory, even though reading
49379         from such a stream is not portable.
49380
49381 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49382
49383         * lib/poll.c: Rewrite.
49384         * modules/poll: Depend on alloca.
49385
49386 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49387
49388         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49389         instead define prototypes for a full set of wrappers.  Ensure
49390         that Cygwin does not use the compatibility code, which is only
49391         for MinGW.
49392         * lib/winsock.c: New.
49393         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49394         * modules/sys_socket: Add lib/winsock.c.
49395
49396         * modules/poll-tests: Add errno and perror.
49397         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49398
49399 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49400
49401         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49402
49403 2008-09-23  Bruno Haible  <bruno@clisp.org>
49404
49405         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49406         * doc/glibc-functions/*: Likewise.
49407
49408 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49409
49410         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49411         success.
49412
49413 2008-09-22  Eric Blake  <ebb9@byu.net>
49414             Bruno Haible  <bruno@clisp.org>
49415
49416         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49417         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49418         supply %A but mishandle pseudo-NaN.
49419         Reported by Simon Josefsson.
49420
49421 2008-09-21  Bruno Haible  <bruno@clisp.org>
49422
49423         * tests/test-lock.c (main): Tweak skip message.
49424         * tests/test-tls.c (main): Likewise.
49425
49426 2008-09-21  Bruno Haible  <bruno@clisp.org>
49427
49428         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49429         whether 'struct sigaction' has sa_sigaction here...
49430         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49431         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49432
49433 2008-09-21  Bruno Haible  <bruno@clisp.org>
49434
49435         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49436         section.
49437         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49438         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49439         the new section.
49440         (Support for obsolete systems lacking POSIX:2001): New section.
49441         (String handling <string.h>): Move strdup to the new section.
49442         Suggested by Simon Josefsson and Paolo Bonzini.
49443
49444 2008-09-21  Bruno Haible  <bruno@clisp.org>
49445
49446         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49447         exponents in %e and %g results on 'long double'. Needed for mingw's
49448         improved *printf functions.
49449         * tests/test-vasprintf-posix.c (test_function): Likewise.
49450         * tests/test-snprintf-posix.h (test_function): Likewise.
49451         * tests/test-sprintf-posix.h (test_function): Likewise.
49452         Reported by Eric Blake.
49453
49454 2008-09-21  Bruno Haible  <bruno@clisp.org>
49455
49456         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49457         * tests/test-sprintf-posix.h (test_function): Likewise.
49458
49459 2008-09-21  Bruno Haible  <bruno@clisp.org>
49460
49461         * modules/getpass (Depends-on): Add strdup-posix.
49462
49463         New module 'strdup-posix'.
49464         * modules/strdup-posix: New file.
49465         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49466         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49468         REPLACE_STRDUP.
49469         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49470         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49471         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49472         strdup-posix.
49473
49474         * modules/strdup (Depends-on): Remove malloc-posix.
49475
49476 2008-09-20  Bruno Haible  <bruno@clisp.org>
49477
49478         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49479         Wildenhues.
49480
49481 2008-09-20  Bruno Haible  <bruno@clisp.org>
49482
49483         Ensure that wint_t gets defined on IRIX 5.3.
49484         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49485         * lib/wctype.in.h (wint_t): Likewise.
49486         (__wctype_wint_t): Remove type.
49487         (isw*): Use wint_t instead of __wctype_wint_t.
49488         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49489         * modules/wchar (Files): Add m4/wint_t.m4.
49490         (Makefile.am): Substitute HAVE_WINT_T.
49491         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49492         * tests/test-wctype.c: Check that wint_t is defined.
49493         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49494         * doc/posix-headers/wctype.texi: Likewise.
49495         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49496
49497 2008-09-18  Bruno Haible  <bruno@clisp.org>
49498
49499         * gnulib-tool (func_exit): Update comment.
49500
49501 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49502
49503         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49504         assumes strdup exists and does not depend on strdup to return
49505         ENOMEM on out of memory conditions.
49506
49507 2008-09-18  Bruno Haible  <bruno@clisp.org>
49508
49509         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49510         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49511         digits for the exponent.
49512
49513 2008-09-18  Jim Meyering  <meyering@redhat.com>
49514             Bruno Haible  <bruno@clisp.org>
49515
49516         * lib/vasnprintf.c (decimal_point_char): Define also if
49517         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49518
49519 2008-09-16  Bruno Haible  <bruno@clisp.org>
49520         and Eric Blake  <ebb9@byu.net>
49521
49522         vasnprintf: support Irix 5.3
49523         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49524         that mishandle long double infinity.
49525         Reported by Tom G. Christensen.
49526
49527 2008-09-16  Bruno Haible  <bruno@clisp.org>
49528
49529         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49530         Solaris 9.
49531         * doc/glibc-functions/alphasort.texi: Likewise.
49532         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49533
49534 2008-09-16  Jim Meyering  <meyering@redhat.com>
49535
49536         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49537         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49538         a umask modification leak out of a subshell.  Otherwise, the
49539         opensolaris /bin/sh would be accepted and thus cause unwarranted
49540         failures in the coreutils test suite.
49541
49542 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49543
49544         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49545         to succeed.
49546
49547 2008-09-16  Jim Meyering  <meyering@redhat.com>
49548
49549         avoid spurious test failure when library is built without ACL support
49550         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49551         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49552         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49553         * tests/test-copy-acl.sh: Likewise.
49554
49555 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49556
49557         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49558         based on character occurrence counts.
49559
49560 2008-09-15  Eric Blake  <ebb9@byu.net>
49561
49562         tests: avoid some compiler warnings
49563         * tests/test-memchr.c (main): Pass NULL indirectly.
49564         * tests/test-closein.c (main): Avoid unused variable.
49565
49566 2008-09-15  Bruno Haible  <bruno@clisp.org>
49567
49568         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49569         are missing on OpenBSD 4.0 individually.
49570         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49571
49572 2008-09-15  Bruno Haible  <bruno@clisp.org>
49573
49574         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49575         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49576         * doc/posix-functions/perror.texi: Likewise.
49577         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49578         is missing.
49579         Reported by Eric Blake.
49580
49581         * lib/errno.in.h: Use replacement values >= 2000.
49582         Reported by Eric Blake.
49583
49584 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49585
49586         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49587         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49588         limit.
49589         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49590         compareseq was aborted.
49591
49592 2008-09-14  Bruno Haible  <bruno@clisp.org>
49593
49594         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49595         yvec_edit_count.
49596         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49597         (fstrcmp_bounded): Simplify result computation accordingly.
49598
49599 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49600
49601         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49602         (fstrcmp): Define in terms of fstrcmp_bounded.
49603         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49604         lower_bound argument.
49605         Return quickly if the result is certainly < lower_bound.
49606         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49607
49608 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49609
49610         * lib/diffseq.h (EARLY_ABORT): New macro.
49611         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49612         evaluates to true.
49613
49614 2008-09-14  Bruno Haible  <bruno@clisp.org>
49615
49616         * modules/perror-tests: New file.
49617         * tests/test-perror.sh: New file.
49618         * tests/test-perror.c: New file.
49619
49620         New module 'perror'.
49621         * lib/stdio.in.h (perror): New declaration.
49622         * lib/perror.c: New file.
49623         * m4/perror.m4: New file.
49624         * modules/perror: New file.
49625         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49626         * doc/posix-functions/perror.texi: Mention the perror module.
49627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49628         REPLACE_PERROR.
49629         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49630         REPLACE_PERROR.
49631
49632 2008-09-14  Bruno Haible  <bruno@clisp.org>
49633
49634         * modules/stdio (Makefile.am): Reorder to match the order in
49635         lib/stdio.in.h.
49636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49637
49638 2008-09-13  Bruno Haible  <bruno@clisp.org>
49639
49640         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49641
49642 2008-09-13  Bruno Haible  <bruno@clisp.org>
49643
49644         Extend strerror to cover the added errno values.
49645         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49646         (rpl_strerror): Provide error messages for the added errno values and
49647         for the WSA* values.
49648         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49649         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49650         strerror.
49651         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49652         * modules/strerror (Depends-on): Add errno.
49653         * doc/posix-functions/strerror.texi: Document the change.
49654         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49655         and EOVERFLOW.
49656
49657 2008-09-13  Bruno Haible  <bruno@clisp.org>
49658
49659         * modules/EOVERFLOW: Remove file.
49660         * m4/eoverflow.m4: Remove file.
49661         * modules/EOVERFLOW-tests: Remove file.
49662         * tests/test-EOVERFLOW.c: Remove file.
49663         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49664         * modules/ftell (Depends-on): Likewise.
49665         * modules/getdelim (Depends-on): Likewise.
49666         * modules/getugroups (Depends-on): Likewise.
49667         * modules/poll (Depends-on): Likewise.
49668         * modules/snprintf (Depends-on): Likewise.
49669         * modules/sprintf-posix (Depends-on): Likewise.
49670         * modules/vasnprintf (Depends-on): Likewise.
49671         * modules/vasprintf (Depends-on): Likewise.
49672         * modules/vfprintf-posix (Depends-on): Likewise.
49673         * modules/vsnprintf (Depends-on): Likewise.
49674         * modules/vsprintf-posix (Depends-on): Likewise.
49675         * modules/xvasprintf (Depends-on): Likewise.
49676         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49677         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49678         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49679         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49680         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49681         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49682         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49683         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49684         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49685         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49686         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49687         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49688         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49689         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49690         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49691         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49692         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49693         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49694         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49695         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49696         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49697         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49698         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49699         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49700         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49701         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49702         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49703         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49704         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49705         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49706         * MODULES.html.sh: Remove EOVERFLOW.
49707         * NEWS: Mention the change.
49708
49709 2008-09-13  Bruno Haible  <bruno@clisp.org>
49710
49711         * modules/errno-tests: New file.
49712         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49713
49714         * lib/errno.in.h: New file.
49715         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49716         * modules/errno: New file.
49717         * doc/posix-headers/errno.texi: Update documentation.
49718         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49719
49720 2008-09-13  Bruno Haible  <bruno@clisp.org>
49721
49722         * tests/test-poll.c: Use #if for native Windows, rather than testing
49723         __MSVCRT__.
49724
49725 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49726             Bruno Haible  <bruno@clisp.org>
49727
49728         * lib/glob.c: Don't include <pwd.h> on native Windows.
49729         (WINDOWS32): New macro.
49730         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49731
49732 2008-09-13  Bruno Haible  <bruno@clisp.org>
49733
49734         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49735         (ETIMEDOUT): Remove macro.
49736         (glthread_cond_timedwait_multithreaded): New declaration.
49737         (glthread_cond_timedwait): Use it.
49738         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49739         (glthread_cond_timedwait_multithreaded): New function.
49740
49741 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49742
49743         * modules/poll-tests: Do not check for io.h.
49744         * tests/test-poll.c: Check for __MSVCRT__ instead.
49745
49746 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49747
49748         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49749         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49750         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49751
49752 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49753
49754         * modules/poll-tests: New.
49755         * tests/test-poll.c: New.
49756
49757 2008-09-12  Eric Blake  <ebb9@byu.net>
49758
49759         frexp: test for NetBSD failure on -0.0
49760         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49761         not all, bugs from NetBSD 3.0 have been fixed.
49762         * doc/posix-functions/frexp.texi (frexp): Document bug.
49763         Reported by Thomas Klausner.
49764
49765         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49766         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49767         literal -0.0.
49768         Reported by Jonathan C. Patschke <jp@centtech.com>.
49769
49770 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49771
49772         * lib/glthread/cond.h: Use dummy implementation also if
49773         USE_WIN32_THREADS.
49774
49775 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49776
49777         * modules/fnmatch-posix (License): Change to LGPLv2+.
49778         * modules/fnmatch-gnu (License): Likewise.
49779
49780 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49781
49782         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49783
49784 2008-09-11  Jim Meyering  <meyering@redhat.com>
49785
49786         * users.txt: Add gtk-vnc.
49787
49788 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49789
49790         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49791         rotate amounts.
49792
49793         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49794         required for 16-bit and 8-bit rotates.
49795         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49796         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49797         UINT8_MAX instead of hard-coded constants.
49798         Suggested by Paul Eggert.
49799
49800 2008-09-07  Bruno Haible  <bruno@clisp.org>
49801
49802         * tests/test-striconveh.c (main): Check behaviour when converting from
49803         UTF-7.
49804
49805         Make striconveh work better with stateful encodings.
49806         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49807         that iconv does not increment the inptr when returning -1/EINVAL.
49808
49809 2008-09-07  Bruno Haible  <bruno@clisp.org>
49810
49811         * build-aux/config.rpath: Update according to libtool-2.2.6.
49812         * build-aux/config.libpath: Likewise.
49813
49814 2008-09-06  Bruno Haible  <bruno@clisp.org>
49815
49816         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49817         * lib/freadptr.c (freadptr): Likewise.
49818         * lib/freadseek.c (freadptrinc): Likewise.
49819         Reported by Simon Josefsson.
49820
49821 2008-09-06  Bruno Haible  <bruno@clisp.org>
49822
49823         * modules/freadptr (License): Change to LGPLv2+.
49824         * modules/freadseek (License): Likewise.
49825         Suggested by Eric Blake.
49826
49827         * modules/memchr2 (License): Change to LGPLv2+.
49828         Approved by Eric Blake.
49829
49830 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49831             Bruno Haible  <bruno@clisp.org>
49832
49833         Make gnulib-tool work with native 'sed' on AIX.
49834         * gnulib-tool (sed_noop): New variable.
49835         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49836         func_add_or_update, func_create_testdir): Use it to initialize sed
49837         script variables.
49838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49839
49840 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49841             Bruno Haible  <bruno@clisp.org>
49842
49843         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49844         also works after #include directives.
49845
49846 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49847
49848         getdate.y: reject an out-of-range timezone value
49849         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49850         the range [-24...+24].  When specified with only one or two digits,
49851         * tests/test-getdate.c: Tests for the fix.
49852         * doc/getdate.texi: Document this change.
49853
49854 2008-09-03  Bruno Haible  <bruno@clisp.org>
49855
49856         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49857
49858 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49859
49860         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49861         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49862         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49863         Blake <ebb9@byu.net>.
49864
49865         * tests/test-bitrotate.c: Add more test vectors.
49866
49867 2008-09-02  Eric Blake  <ebb9@byu.net>
49868
49869         vasnprintf-posix: handle large precision via %.*d
49870         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49871         when handling it ourselves.
49872         * tests/test-vasnprintf-posix.c (test_function): Add test.
49873         * tests/test-snprintf-posix.h (test_function): Likewise.
49874         * tests/test-sprintf-posix.h (test_function): Likewise.
49875         * tests/test-vasprintf-posix.c (test_function): Likewise.
49876         Reported by Alain Guibert.
49877
49878 2008-09-01  Eric Blake  <ebb9@byu.net>
49879
49880         c-stack: make configure-time check more robust
49881         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49882         successful sigaction call.
49883         Reported by Tom G. Christensen.
49884
49885 2008-09-01  Bruno Haible  <bruno@clisp.org>
49886
49887         New module 'findprog-lgpl'.
49888         * modules/findprog-lgpl: New file.
49889         * lib/findprog-lgpl.c: New file.
49890         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49891         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49892         to decide whether to use strdup or xstrdup, concatenated_filename or
49893         xconcatenated_filename.
49894
49895 2008-09-01  Bruno Haible  <bruno@clisp.org>
49896
49897         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49898         'xconcat-filename' (GPL).
49899         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49900         (License): Change to LGPLv2+.
49901         * modules/xconcat-filename: New file.
49902         * lib/concat-filename.h (concatenated_filename): Change specification.
49903         (xconcatenated_filename): New declaration.
49904         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49905         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49906         memory situations.
49907         * lib/xconcat-filename.c: New file.
49908         * NEWS: Mention the change.
49909         * lib/findprog.c: Include concat-filename.h, not filename.h.
49910         (find_in_path): Use xconcatenated_filename instead of
49911         concatenated_filename.
49912         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49913         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49914         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49915         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49916         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49917         instead of concatenated_filename.
49918         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49919         (execute_java_class): Use xconcatenated_filename instead of
49920         concatenated_filename.
49921         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49922         * modules/javacomp (Depends-on): Likewise.
49923         * modules/javaexec (Depends-on): Likewise.
49924
49925 2008-09-01  Bruno Haible  <bruno@clisp.org>
49926
49927         Split module 'filename' into 'filename' and 'concat-filename'.
49928         * modules/filename: Keep only lib/filename.h.
49929         (License): Change to LGPLv2+.
49930         * modules/concat-filename: New file, extracted from modules/filename.
49931         * lib/filename.h (concatenated_filename): Remove declaration.
49932         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49933         * lib/concat-filename.c: Include concat-filename.h.
49934         * NEWS: Mention the change.
49935
49936 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49937
49938         * lib/bitrotate.h (rotl8, rotr8): Add.
49939
49940         * modules/bitrotate (configure.ac): Need
49941         AC_REQUIRE([AC_C_INLINE]).
49942         (Description): Mention stdint.h.  Reported by Bruno Haible
49943         <bruno@clisp.org>.
49944
49945         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49946         Paolo Bonzini <bonzini@gnu.org>.
49947
49948 2008-08-31  Bruno Haible  <bruno@clisp.org>
49949
49950         Assume Solaris specific bi-arch conventions on Solaris systems.
49951         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49952         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49953         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49954         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49955         like acl_libdirstem.
49956         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49957         acl_libdirstem.
49958         * NEWS: Mention the change.
49959         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49960
49961 2008-08-31  Jim Meyering  <meyering@redhat.com>
49962
49963         * lib/strftime.h: Add comments describing the two added arguments.
49964
49965         remove duplicate #include directives
49966         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49967         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49968
49969 2008-08-31  Bruno Haible  <bruno@clisp.org>
49970
49971         New module 'sigpipe-die'.
49972         * modules/sigpipe-die: New file.
49973         * lib/sigpipe-die.h: New file.
49974         * lib/sigpipe-die.c: New file.
49975         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49976
49977 2008-08-31  Bruno Haible  <bruno@clisp.org>
49978
49979         Don't override previously installed signal handlers.
49980         * lib/fatal-signal.c (saved_sigactions): New variable.
49981         (uninstall_handlers): Reset the signal to the saved handler, not
49982         to SIG_DFL (except when ignored).
49983         (install_handlers): Save the previous handlers.
49984
49985 2008-08-30  Bruno Haible  <bruno@clisp.org>
49986
49987         * gnulib-tool (func_reset_sigpipe): New function.
49988         (func_get_automake_snippet, func_modules_transitive_closure,
49989         func_import): Invoke it before a join command that reads from stdin,
49990         to avoid "echo: write error: Broken pipe" error messages on stderr.
49991         Reported by Sam Steingold <sds@gnu.org>.
49992
49993 2008-08-30  Bruno Haible  <bruno@clisp.org>
49994
49995         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49996         Code copied from m4/open.m4.
49997         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49998         access and the filename ends in a slash. Code copied from lib/open.c.
49999         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
50000         * tests/test-fopen.c (main): Check against bug with trailing slash.
50001
50002 2008-08-29  Bruno Haible  <bruno@clisp.org>
50003
50004         Avoid some "gcc -pedantic" warnings.
50005         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
50006         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
50007         * lib/dirent.in.h: Likewise.
50008         * lib/fcntl.in.h: Likewise.
50009         * lib/float.in.h: Likewise.
50010         * lib/iconv.in.h: Likewise.
50011         * lib/inttypes.in.h: Likewise.
50012         * lib/locale.in.h: Likewise.
50013         * lib/math.in.h: Likewise.
50014         * lib/netinet_in.in.h: Likewise.
50015         * lib/search.in.h: Likewise.
50016         * lib/signal.in.h: Likewise.
50017         * lib/stdarg.in.h: Likewise.
50018         * lib/stdint.in.h: Likewise.
50019         * lib/stdio.in.h: Likewise.
50020         * lib/stdlib.in.h: Likewise.
50021         * lib/string.in.h: Likewise.
50022         * lib/strings.in.h: Likewise.
50023         * lib/sys_select.in.h: Likewise.
50024         * lib/sys_socket.in.h: Likewise.
50025         * lib/sys_stat.in.h: Likewise.
50026         * lib/sys_time.in.h: Likewise.
50027         * lib/sysexits.in.h: Likewise.
50028         * lib/time.in.h: Likewise.
50029         * lib/unistd.in.h: Likewise.
50030         * lib/wchar.in.h: Likewise.
50031         * lib/wctype.in.h: Likewise.
50032         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
50033         * modules/fchdir (Makefile.am): Likewise.
50034         * modules/fcntl (Makefile.am): Likewise.
50035         * modules/float (Makefile.am): Likewise.
50036         * modules/iconv_open (Makefile.am): Likewise.
50037         * modules/inttypes (Makefile.am): Likewise.
50038         * modules/locale (Makefile.am): Likewise.
50039         * modules/math (Makefile.am): Likewise.
50040         * modules/netinet_in (Makefile.am): Likewise.
50041         * modules/search (Makefile.am): Likewise.
50042         * modules/signal (Makefile.am): Likewise.
50043         * modules/stdarg (Makefile.am): Likewise.
50044         * modules/stdint (Makefile.am): Likewise.
50045         * modules/stdio (Makefile.am): Likewise.
50046         * modules/stdlib (Makefile.am): Likewise.
50047         * modules/string (Makefile.am): Likewise.
50048         * modules/strings (Makefile.am): Likewise.
50049         * modules/sys_select (Makefile.am): Likewise.
50050         * modules/sys_socket (Makefile.am): Likewise.
50051         * modules/sys_stat (Makefile.am): Likewise.
50052         * modules/sys_time (Makefile.am): Likewise.
50053         * modules/sysexits (Makefile.am): Likewise.
50054         * modules/time (Makefile.am): Likewise.
50055         * modules/unistd (Makefile.am): Likewise.
50056         * modules/wchar (Makefile.am): Likewise.
50057         * modules/wctype (Makefile.am): Likewise.
50058         Reported by Reuben Thomas <rrt@sc3d.org>.
50059
50060 2008-08-29  Bruno Haible  <bruno@clisp.org>
50061
50062         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
50063         any more.
50064
50065 2008-08-29  Simon Josefsson  <simon@josefsson.org>
50066
50067         * MODULES.html.sh (Misc): Add bitrotate.
50068
50069         * modules/bitrotate: New file.
50070
50071         * lib/bitrotate.h: New file.
50072
50073         * modules/bitrotate-tests: New file.
50074
50075         * tests/test-bitrotate.c: New file.
50076
50077         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
50078         on the bitrotate module.
50079
50080         * lib/arctwo.c: Use new bitrotate module.
50081
50082 2008-08-29  Jim Meyering  <meyering@redhat.com>
50083
50084         bootstrap: merge changes from coreutils
50085         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
50086         of copied files.  Remove a kludge, now that this is fixed.
50087         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
50088         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
50089         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
50090
50091 2008-08-29  Bruno Haible  <bruno@clisp.org>
50092
50093         * MODULES.html.sh: Remove --cvs-urls option.
50094
50095 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
50096
50097         maint.mk: adjust to file name change
50098         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
50099
50100 2008-08-28  Jim Meyering  <meyering@redhat.com>
50101
50102         * modules/getndelim2 (License): Relicense to LGPLv2+.
50103         Approved by Richard Stallman for the version of 1995, and by
50104         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
50105
50106 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
50107
50108         * lib/getdelim.c (flockfile, funlockfile): Make all of them
50109         dummy if one is not available.  Do not touch them if
50110         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
50111         (getc_maybe_unlocked): New.
50112         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
50113
50114 2008-08-26  Eric Blake  <ebb9@byu.net>
50115
50116         doc/INSTALL: resync from autoconf
50117         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
50118         (INSTALL_PRELUDE): Delete; this is done more efficiently by
50119         moving...
50120         * install.texi [!autoconf]: ...here.  Resync from autoconf.
50121         * INSTALL: Regenerate.
50122         * INSTALL.ISO: New file.
50123         * INSTALL.UTF-8: Likewise.
50124
50125 2008-08-26  Jim Meyering  <meyering@redhat.com>
50126
50127         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
50128         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
50129         these definitions conditional, so that they may be overridden, too.
50130
50131 2008-08-26  Bruno Haible  <bruno@clisp.org>
50132
50133         Generate INSTALL file variants with prettier quotes.
50134         * doc/Makefile (INSTALL_PRELUDE): New macro.
50135         (INSTALL): Use it.
50136         (INSTALL.ISO, INSTALL.UTF-8): New rules.
50137
50138 2008-08-26  Bruno Haible  <bruno@clisp.org>
50139
50140         Run makeinfo in an English locale.
50141         * doc/Makefile (MAKEINFO): New variable.
50142
50143 2008-08-26  Bruno Haible  <bruno@clisp.org>
50144
50145         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
50146         Suggested by Eric Blake.
50147
50148 2008-08-25  Bruno Haible  <bruno@clisp.org>
50149
50150         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
50151
50152 2008-08-25  Eric Blake  <ebb9@byu.net>
50153
50154         c-stack: test that stack overflow can be caught
50155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
50156         that platform allows handling stack overflow; at least OS/2 EMX
50157         has sigaltstack, but crashes before transferring control to
50158         handler on stack overflow.
50159         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
50160         check for HAVE_STACK_OVERFLOW_HANDLING.
50161         Reported by Elbert Pol.
50162
50163 2008-08-25  Bruno Haible  <bruno@clisp.org>
50164
50165         * doc/posix-functions/strftime.texi: Fix description of strftime
50166         module.
50167
50168 2008-08-24  Bruno Haible  <bruno@clisp.org>
50169
50170         * tests/uniwidth/test-uc_width2.c: New file.
50171         * tests/uniwidth/test-uc_width2.sh: New file.
50172         * modules/uniwidth/width-tests (Files): Add the new files.
50173         (TESTS): Add uniwidth/test-uc_width2.sh.
50174         (TESTS_ENVIRONMENT): New variable.
50175         (check_PROGRAMS): Add test-uc_width2.
50176         (test_uc_width2_SOURCES): New variable.
50177
50178         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50179         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50180         not 0x00AB.
50181         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50182
50183 2008-08-22  Eric Blake  <ebb9@byu.net>
50184
50185         test-lock, test-tls: mention why a test is skipped
50186         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50187         skipped.
50188         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50189
50190         count-one-bits: relax license
50191         * modules/count-one-bits (License): Relicense to LGPLv2+.
50192         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50193
50194 2008-08-22  Andreas Schwab  <schwab@suse.de>
50195
50196         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50197         Remove spurious space in assignment.
50198
50199 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50200
50201         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50202         Paul Eggert <eggert@CS.UCLA.EDU>.
50203
50204 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50205
50206         * modules/gettext: Add m4/threadlib.m4.
50207
50208 2008-08-19  Eric Blake  <ebb9@byu.net>
50209
50210         test-c-stack: fix compilation failure on FreeBSD 5.0
50211         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50212         headers before <sys/resource.h>.
50213         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50214         the bug.
50215         Reported by Nelson H. F. Beebe.
50216
50217         strverscmp: migrate from "strverscmp.h" to <string.h>
50218         * modules/string (Makefile.am): Add new hooks.
50219         * modules/strverscmp (Files): Remove strverscmp.h.
50220         (Depends-on): Add string.
50221         (configure.ac): Add indicator.
50222         (Include): Mention new header.
50223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50224         defaults.
50225         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50226         results.
50227         * lib/strverscmp.h: Delete.
50228         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50229         * tests/test-strverscmp.c (includes): Adjust client.
50230         * lib/check-version.c (includes): Likewise.
50231         * NEWS: Document the change.
50232
50233         strverscmp: add unit test
50234         * modules/strverscmp-tests: New file.
50235         * tests/test-strverscmp.c: Likewise.
50236
50237 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50238
50239         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50240         regarding Windows crypto stuff, from Mono.
50241
50242 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50243
50244         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50245         if present, for intel RND.  Return error on failures.
50246
50247 2008-08-18  Ben Pfaff  <blp@gnu.org>
50248
50249         gitlog-to-changelog: give better diagnostic for failed pipe-open
50250         * build-aux/gitlog-to-changelog: Improve error message: suggest
50251         that the version of Git may be too old.
50252
50253 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50254
50255         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50256         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50257
50258 2008-08-18  Bruno Haible  <bruno@clisp.org>
50259
50260         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50261         pthread_in_use().
50262
50263 2008-08-18  Bruno Haible  <bruno@clisp.org>
50264
50265         * lib/glthread/threadlib.c: Include <pthread.h>.
50266
50267 2008-08-18  Bruno Haible  <bruno@clisp.org>
50268
50269         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50270         glthread_recursive_lock_* macros.
50271         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50272         Fix syntax error.
50273
50274 2008-08-18  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/glthread/thread.c: Avoid forcing a context switch right after
50277         thread creation.
50278
50279 2008-08-17  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50282         * lib/glthread/thread.h: Provide Win32 specific implementation.
50283         * modules/thread (Files): Add lib/glthread/thread.c.
50284         (Depends-on): Add lock.
50285         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50286
50287 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50288
50289         New module 'yield'.
50290         * modules/yield: New file.
50291         * lib/glthread/yield.h: New file.
50292         * m4/yield.m4: New file.
50293         * MODULES.html.sh (Multithreading): Add yield.
50294
50295 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50296
50297         New module 'thread'.
50298         * modules/thread: New file.
50299         * lib/glthread/thread.h: New file.
50300         * m4/thread.m4: New file.
50301         * MODULES.html.sh (Multithreading): Add thread.
50302
50303 2008-08-17  Bruno Haible  <bruno@clisp.org>
50304
50305         * lib/glthread/lock.h: Include <stdlib.h> always.
50306         * lib/glthread/tls.h: Likewise.
50307         * lib/glthread/cond.h: Likewise.
50308
50309 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50310
50311         New module 'cond'.
50312         * modules/cond: New file.
50313         * lib/glthread/cond.h: New file.
50314         * lib/glthread/cond.c: New file.
50315         * m4/cond.m4: New file.
50316         * MODULES.html.sh (Multithreading): Add cond.
50317
50318 2008-08-16  Eric Blake  <ebb9@byu.net>
50319
50320         c-stack: fix regression on Irix 5.3 from 2008-06-21
50321         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50322         sa_sigaction...
50323         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50324         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50325         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50326         * modules/signal (Makefile.am): Use the value.
50327         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50328         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50329         * doc/posix-headers/signal.texi (signal.h): Document this
50330         portability issue.
50331         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50332         Reported by Tom G. Christensen.
50333
50334 2008-08-17  Bruno Haible  <bruno@clisp.org>
50335
50336         New module 'threadlib'.
50337         * modules/threadlib: New file.
50338         * lib/glthread/threadlib.c: New file, extracted from
50339         lib/glthread/lock.c.
50340         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50341         functions.
50342         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50343         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50344         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50345         macros.
50346         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50347         (gl_DISABLE_THREADS): Remove macro.
50348         * modules/lock (Files): Remove build-aux/config.rpath.
50349         (Depends-on): Remove havelib. Add threadlib.
50350         (configure.ac-early): Remove section.
50351         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50352         * modules/tls (Depends-on): Remove lock. Add threadlib.
50353         (Link): New section, copied from threadlib.
50354         * MODULES.html.sh (Multithreading): Add threadlib.
50355
50356 2008-08-14  Bruno Haible  <bruno@clisp.org>
50357
50358         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50359         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50360         glthread_rwlock_unlock, glthread_rwlock_destroy,
50361         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50362         glthread_recursive_lock_destroy): Define as macros always.
50363         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50364         glthread_lock_lock.
50365         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50366         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50367         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50368         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50369         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50370         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50371         (glthread_recursive_lock_lock_func): Renamed from
50372         glthread_recursive_lock_lock.
50373         (glthread_recursive_lock_unlock_func): Renamed from
50374         glthread_recursive_lock_unlock.
50375         (glthread_recursive_lock_destroy_func): Renamed from
50376         glthread_recursive_lock_destroy.
50377
50378 2008-08-14  Bruno Haible  <bruno@clisp.org>
50379
50380         * lib/glthread/lock.h: Renamed from lib/lock.h.
50381         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50382         * lib/glthread/tls.h: Renamed from lib/tls.h.
50383         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50384         * lib/fstrcmp.c: Update includes.
50385         * lib/strsignal.c: Update includes.
50386         * modules/lock (Files, Makefile.am): Update.
50387         (Include): Change to "glthread/lock.h".
50388         * modules/tls (Files, Makefile.am): Update.
50389         (Include): Change to "glthread/tls.h".
50390         * tests/test-lock.c: Update includes.
50391         * tests/test-tls.c: Update includes.
50392         * NEWS: Mention the renamed header files.
50393
50394 2008-08-11  Jim Meyering  <meyering@redhat.com>
50395
50396         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50397
50398 2008-08-11  Eric Blake  <ebb9@byu.net>
50399
50400         test-c-stack: avoid C99-ism
50401         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50402         before statement.
50403         Reported by Alain Guibert.
50404
50405 2008-08-10  Jim Meyering  <meyering@redhat.com>
50406
50407         ensure that return value of uinttostr et al are not ignored
50408         * lib/inttostr.h (__GNUC_PREREQ): Define.
50409         (__attribute_warn_unused_result__): Define.
50410         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50411
50412 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50413
50414         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50415         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50416
50417 2008-08-07  Jim Meyering  <meyering@redhat.com>
50418
50419         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50420
50421         * modules/mkstemp (License): Relicense under LGPLv2+.
50422         * modules/tempname (License): Likewise.
50423
50424 2008-08-06  Bruno Haible  <bruno@clisp.org>
50425
50426         * lib/poll.c (poll): Further micro-optimization.
50427
50428 2008-08-06  Jim Meyering  <meyering@redhat.com>
50429
50430         inet_pton.c: use locale-independent tolower
50431         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50432         (inet_pton6): Use c_tolower rather than tolower.
50433         * modules/inet_pton (Depends-on): Add c-ctype.
50434
50435 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50436
50437         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50438         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50439
50440 2008-08-06  Jim Meyering  <meyering@redhat.com>
50441
50442         * modules/inet_pton (License): Relicense under LGPLv2+.
50443
50444 2008-08-03  Bruno Haible  <bruno@clisp.org>
50445
50446         Additional non-aborting API for lock and tls.
50447         * lib/lock.h: Include <errno.h>.
50448         (glthread_lock_init): New macro/function.
50449         (gl_lock_init): Define as wrapper around glthread_lock_init.
50450         (glthread_lock_lock): New macro/function.
50451         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50452         (glthread_lock_unlock): New macro/function.
50453         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50454         (glthread_lock_destroy): New macro/function.
50455         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50456         (glthread_rwlock_init): New macro/function.
50457         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50458         (glthread_rwlock_rdlock): New macro/function.
50459         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50460         (glthread_rwlock_wrlock): New macro/function.
50461         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50462         (glthread_rwlock_unlock): New macro/function.
50463         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50464         (glthread_rwlock_destroy): New macro/function.
50465         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50466         (glthread_recursive_lock_init): New macro/function.
50467         (gl_recursive_lock_init): Define as wrapper around
50468         glthread_recursive_lock_init.
50469         (glthread_recursive_lock_lock): New macro/function.
50470         (gl_recursive_lock_lock): Define as wrapper around
50471         glthread_recursive_lock_lock.
50472         (glthread_recursive_lock_unlock): New macro/function.
50473         (gl_recursive_lock_unlock): Define as wrapper around
50474         glthread_recursive_lock_unlock.
50475         (glthread_recursive_lock_destroy): New macro/function.
50476         (gl_recursive_lock_destroy): Define as wrapper around
50477         glthread_recursive_lock_destroy.
50478         (glthread_once): New macro/function.
50479         (gl_once): Define as wrapper around glthread_once.
50480         Update function declarations.
50481         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50482         glthread_rwlock_init. Return error code.
50483         (glthread_rwlock_rdlock_multithreaded): Renamed from
50484         glthread_rwlock_rdlock. Return error code.
50485         (glthread_rwlock_wrlock_multithreaded): Renamed from
50486         glthread_rwlock_wrlock. Return error code.
50487         (glthread_rwlock_unlock_multithreaded): Renamed from
50488         glthread_rwlock_unlock. Return error code.
50489         (glthread_rwlock_destroy_multithreaded): Renamed from
50490         glthread_rwlock_destroy. Return error code.
50491         (glthread_recursive_lock_init_multithreaded): Renamed from
50492         glthread_recursive_lock_init. Return error code.
50493         (glthread_recursive_lock_lock_multithreaded): Renamed from
50494         glthread_recursive_lock_lock. Return error code.
50495         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50496         glthread_recursive_lock_unlock. Return error code.
50497         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50498         glthread_recursive_lock_destroy. Return error code.
50499         (glthread_once_call): Make static.
50500         (glthread_once_multithreaded): Renamed from glthread_once.
50501         * lib/tls.h: Include <errno.h>.
50502         (glthread_tls_key_init): New macro/function.
50503         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50504         (glthread_tls_set): New macro/function.
50505         (gl_tls_set): Define as wrapper around glthread_tls_set.
50506         (glthread_tls_key_destroy): New macro/function.
50507         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50508         Update function declarations.
50509         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50510         glthread_tls_get.
50511         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50512
50513 2008-08-04  Eric Blake  <ebb9@byu.net>
50514
50515         gnumakefile: use space, not TAB, outside of targets
50516         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50517
50518 2008-08-02  Jim Meyering  <meyering@redhat.com>
50519
50520         getdate.y: avoid locale-dependent date parsing failure
50521         In Turkish locales, getdate would fail to recognize keywords
50522         containing a lowercase "i".  The solution is not to rely on
50523         locale-sensitive case-conversion.
50524         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50525         (lookup_word): Use c_toupper in place of toupper.
50526         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50527         Reported by Vefa Bicakci <bicave@superonline.com> in
50528         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50529         * modules/getdate (Depends-on): Add c-ctype.
50530
50531 2008-08-02  Bruno Haible  <bruno@clisp.org>
50532
50533         * gnulib-tool (func_import): When updating or creating a .gitignore
50534         file, prepend each added line with a slash, and ignore leading slashes
50535         from the existing lines.
50536         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50537
50538 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50539
50540         Portability fix for GNU make 3.79.1.
50541         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50542         versions do not understand.
50543
50544 2008-08-01  Bruno Haible  <bruno@clisp.org>
50545
50546         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50547         * tests/test-isnanf.h (zero): New variable.
50548         (main): Avoid literal -0.0f.
50549         * tests/test-isnand.h (zero): New variable.
50550         (main): Avoid literal -0.0.
50551         * tests/test-isnanl.h (zero): New variable.
50552         (main): Avoid literal -0.0L.
50553         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50554         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50555         -0.0, -0.0L.
50556         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50557         (test_signbitd): Avoid literal -0.0.
50558         (test_signbitl): Avoid literal -0.0L.
50559         * tests/test-ceilf1.c (zero): New variable.
50560         (main): Avoid literal -0.0f.
50561         * tests/test-ceill.c (zero): New variable.
50562         (main): Avoid literal -0.0L.
50563         * tests/test-floorf1.c (zero): New variable.
50564         (main): Avoid literal -0.0f.
50565         * tests/test-floorl.c (zero): New variable.
50566         (main): Avoid literal -0.0L.
50567         * tests/test-roundf1.c (zero): New variable.
50568         (main): Avoid literal -0.0f.
50569         * tests/test-round1.c (zero): New variable.
50570         (main): Avoid literal -0.0.
50571         * tests/test-roundl.c (zero): New variable.
50572         (main): Avoid literal -0.0L.
50573         * tests/test-truncf1.c (zero): New variable.
50574         (main): Avoid literal -0.0f.
50575         * tests/test-trunc1.c (zero): New variable.
50576         (main): Avoid literal -0.0.
50577         * tests/test-truncl.c (zero): New variable.
50578         (main): Avoid literal -0.0L.
50579         * tests/test-frexp.c (zero): New variable.
50580         (main): Avoid literal -0.0.
50581         * tests/test-frexpl.c (zero): New variable.
50582         (main): Avoid literal -0.0L.
50583         * tests/test-ldexpl.c (zero): New variable.
50584         (main): Avoid literal -0.0L.
50585         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50586         (zerod, zerol): New variables.
50587         (test_function): Avoid literals -0.0, -0.0L.
50588         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50589         (zerod, zerol): New variables.
50590         (test_function): Avoid literals -0.0, -0.0L.
50591         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50592         (zerod, zerol): New variables.
50593         (test_function): Avoid literals -0.0, -0.0L.
50594         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50595         (zerod, zerol): New variables.
50596         (test_function): Avoid literals -0.0, -0.0L.
50597         * tests/test-strtod.c (zero): New variable.
50598         (main): Avoid literal -0.0.
50599         Reported by Jonathan C. Patschke <jp@centtech.com>.
50600
50601 2008-07-31  Jim Meyering  <meyering@redhat.com>
50602
50603         sha256.h: correct definition of SHA224_DIGEST_SIZE
50604         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50605         Reported by Paulie Pena IV <paulie4@gmail.com>.
50606         Define as 224 / 8, rather than as a literal.
50607         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50608         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50609         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50610
50611 2008-07-31  Bruno Haible  <bruno@clisp.org>
50612
50613         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50614         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50615         Reported by Jonathan Patschke <jp@centtech.com>.
50616
50617 2008-07-31  Bruno Haible  <bruno@clisp.org>
50618
50619         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50620         Reported by Paolo Bonzini <bonzini@gnu.org>.
50621
50622 2008-07-30  Eric Blake  <ebb9@byu.net>
50623
50624         test-strtod: allow compilation without -lm
50625         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50626         Reported by Dennis Clarke <blastwave@gmail.com>.
50627
50628 2008-07-28  Jim Meyering  <meyering@redhat.com>
50629
50630         bootstrap: work also when there are no .po files in po/
50631         * build-aux/bootstrap (update_po_files): Complete the change
50632         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50633
50634 2008-07-27  Jim Meyering  <meyering@redhat.com>
50635
50636         * users.txt: Add zile.
50637
50638 2008-07-26  Ben Pfaff  <blp@gnu.org>
50639
50640         Add missing dependencies on new m4/exponent[fdl].m4 files.
50641         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50642         * modules/isnand-nolibm: Add m4/exponentd.m4.
50643         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50644         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50645         m4/isnan[fdl].m4, because the macros actually used moved.
50646         Reported by Jim Meyering.
50647
50648 2008-07-14  Ben Pfaff  <blp@gnu.org>
50649
50650         Add isinf module.
50651         * lib/isinf.c: New file.
50652         * lib/math.in.h: Define isinf macro if we have decided to replace
50653         it.
50654         * m4/isinf.m4: New file.
50655         * m4/math_h.m4: Initialize and substitute variables for isinf
50656         module.
50657         * modules/isinf: New file.
50658         * modules/isinf-tests: New file.
50659         * modules/math: Add substitutions for new module.
50660         * tests/test-isinf.c: New file.
50661         * doc/posix-functions/isinf.texi: Mention new module.
50662         * MODULES.html.sh: Mention new module.
50663
50664 2008-07-14  Ben Pfaff  <blp@gnu.org>
50665
50666         Factor out some macros for use by additional modules.
50667         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50668         exponentf.m4.
50669         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50670         exponentd.m4.
50671         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50672         file exponentl.m4.
50673         * m4/exponentf.m4: New file.
50674         * m4/exponentd.m4: New file.
50675         * m4/exponentl.m4: New file.
50676         * modules/isnanf: Use new file m4/exponentf.m4.
50677         * modules/isnand: Use new file m4/exponentd.m4.
50678         * modules/isnanl: Use new file m4/exponentl.m4.
50679
50680 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50681
50682         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50683         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50684         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50685         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50686
50687         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50688         readlink on platforms without PATH_MAX.
50689
50690 2008-07-21  Eric Blake  <ebb9@byu.net>
50691
50692         Warn, not fail, on stale version.
50693         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50694
50695         Don't allow installation with stale devel version number.
50696         * top/GNUmakefile (_is-install-target): New macro.
50697         (_curr-ver): Forbid installation with stale version number.
50698
50699 2008-07-20  Bruno Haible  <bruno@clisp.org>
50700
50701         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50702         TESTS_ENVIRONMENT.
50703         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50704
50705 2008-07-20  Bruno Haible  <bruno@clisp.org>
50706
50707         * lib/c-stack.h (c_stack_action): Add documentation.
50708         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50709
50710 2008-07-20  Bruno Haible  <bruno@clisp.org>
50711
50712         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50713         * modules/readlink (License): Likewise.
50714
50715 2008-07-17  Eric Blake  <ebb9@byu.net>
50716
50717         * modules/c-stack (Link): Fix typo.
50718
50719         Make c-stack use libsigsegv, when available.
50720         * modules/c-stack (Depends-on): Add libsigsegv.
50721         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50722         needed.
50723         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50724         (segv_handler, overflow_handler, c_stack_action)
50725         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50726         implementation when libsigsegv is available, but only when using
50727         the library is necessary.
50728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50729         comment, explaining why XSI check fails on Linux.
50730         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50731         * tests/test-c-stack2.sh: Tweak skip message.
50732         * NEWS: Document new link-time requirements.
50733
50734 2008-07-16  Eric Blake  <ebb9@byu.net>
50735
50736         c-stack: Expose false positives when not using libsigsegv.
50737         * modules/c-stack-tests (Files): Expand test.
50738         * tests/test-c-stack.c (main): Add means to conditionally trigger
50739         non-overflow SIGSEGV.
50740         * tests/test-c-stack2.sh: New file.
50741
50742 2008-07-14  Bruno Haible  <bruno@clisp.org>
50743
50744         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50745         Reported by Eric Blake.
50746
50747 2008-07-14  Sam Steingold  <sds@gnu.org>
50748             Bruno Haible  <bruno@clisp.org>
50749
50750         New module libsigsegv.
50751         * modules/libsigsegv: New file.
50752         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50753         modifications.
50754         * MODULES.html.sh (Signal handling): New section.
50755
50756 2008-07-14  Bruno Haible  <bruno@clisp.org>
50757
50758         * modules/unictype/ctype-* (Description): Add the word "function".
50759         Improves the resulting doc in MODULES.html.
50760
50761 2008-07-12  Ben Pfaff  <blp@gnu.org>
50762
50763         Add longlong module.
50764         * modules/longlong: New file.
50765
50766 2008-07-12  Bruno Haible  <bruno@clisp.org>
50767
50768         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50769         to empty.
50770
50771 2008-07-10  Ben Pfaff  <blp@gnu.org>
50772
50773         Add isnan module.
50774         * doc/posix-functions/isnan.texi: Mention new module.
50775         * lib/math.in.h: Define isnan macro if we have decided to replace
50776         it.
50777         * m4/isnan.m4: New file.
50778         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50779         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50780         also.
50781         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50782         redundancy.
50783         * m4/math_h.m4: Initialize and substitute variables for isnan
50784         module.
50785         * modules/isnan: New file.
50786         * modules/isnan-tests: New file.
50787         * modules/math: Add substitutions for new module.
50788         * tests/test-isnan.c: New file.
50789         * MODULES.html.sh: Mention new module.
50790
50791 2008-07-10  Ben Pfaff  <blp@gnu.org>
50792
50793         Add isnanf module.
50794         * lib/isnanf.m4: New file.
50795         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50796         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50797         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50798         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50799         * modules/isnanf: New file.
50800         * modules/isnanf-tests: New file.
50801         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50802         files.
50803         * tests/test-isnanf-nolibm.c: factored most of its contents into
50804         new file tests/test-isnanf.h.
50805         * tests/test-isnanf.h: New file.
50806         * tests/test-isnanf.c: New file.
50807         * MODULES.html.sh: Mention new module.
50808         * doc/glibc-functions/isnanf.texi: Mention new module.
50809
50810 2008-07-10  Ben Pfaff  <blp@gnu.org>
50811
50812         Add isnand module.
50813         * lib/isnand.h: New file.
50814         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50815         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50816         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50817         functionality also.
50818         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50819         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50820         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50821         * modules/isnand: New file.
50822         * modules/isnand-tests: New file.
50823         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50824         files.
50825         * tests/test-isnand-nolibm.c: factored most of its contents into
50826         new file tests/test-isnand.h.
50827         * tests/test-isnand.h: New file.
50828         * tests/test-isnand.c: New file.
50829         * MODULES.html.sh: Mention new module.
50830
50831 2008-07-10  Ben Pfaff  <blp@gnu.org>
50832
50833         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50834         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50835         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50836         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50837         * modules/isnanf-nolibm: Update references to renamed files.
50838         * modules/isnand-nolibm: Likewise.
50839         * modules/isnanf-nolibm-tests: Likewise.
50840         * modules/isnand-nolibm-tests: Likewise.
50841         * lib/frexp.c: Likewise.
50842         * lib/isfinite.c: Likewise.
50843         * lib/signbitd.c: Likewise.
50844         * lib/signbitf.c: Likewise.
50845         * lib/vasnprintf.c: Likewise.
50846         * tests/test-ceilf1.c: Likewise.
50847         * tests/test-ceilf2.c: Likewise.
50848         * tests/test-floorf1.c: Likewise.
50849         * tests/test-floorf2.c: Likewise.
50850         * tests/test-frexp.c: Likewise.
50851         * tests/test-round1.c: Likewise.
50852         * tests/test-round2.c: Likewise.
50853         * tests/test-roundf1.c: Likewise.
50854         * tests/test-strtod.c: Likewise.
50855         * tests/test-trunc1.c: Likewise.
50856         * tests/test-trunc2.c: Likewise.
50857         * tests/test-truncf1.c: Likewise.
50858         * tests/test-truncf2.c: Likewise.
50859         * NEWS: Mention the renamed header files.
50860
50861 2008-07-11  Jim Meyering  <meyering@redhat.com>
50862
50863         vc-list-files: make the last-resort awk code more portable
50864         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50865         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50866         does not support it.
50867
50868 2008-07-10  Eric Blake  <ebb9@byu.net>
50869
50870         Work with tar's bootstrap.
50871         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50872         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50873         an m4 comment.
50874
50875 2008-07-09  Jim Meyering  <meyering@redhat.com>
50876
50877         posix-shell.m4: fix typo that made this test malfunction
50878         * m4/posix-shell.m4: Remove capitalization in variable name.
50879
50880 2008-07-08  Bruno Haible  <bruno@clisp.org>
50881
50882         * m4/onceonly.m4: Update comments.
50883         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50884
50885 2008-07-04  Jim Meyering  <meyering@redhat.com>
50886
50887         * users.txt: Add vc-dwim.
50888         (bison, coreutils): Use the gitweb URL.
50889
50890 2008-07-03  Jim Meyering  <meyering@redhat.com>
50891
50892         * users.txt: Add libffcall.  From Sam Steingold.
50893
50894 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50895
50896         getdate.y: do not ignore TZ with relative day, month or year offset
50897         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50898         relative-date-handling, since otherwise, the latter would clobber the
50899         sole output (an updated Start value) of the tz-handling block.
50900         * tests/test-getdate.c: Tests for the fix
50901
50902 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50903
50904         Recognize 'foo_LIBRARIES += libgnu.a'.
50905         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50906         makefile snippet has already specified an installation location,
50907         also using '+='.
50908
50909 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50910
50911         getdate.y: factor out common actions
50912         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50913         Use them in place of open-coded actions.
50914
50915 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50916
50917         Add self-test for getdate module.
50918         * modules/getdate-tests: New file.
50919         * tests/test-getdate.c: New file.
50920
50921 2008-06-29  Bruno Haible  <bruno@clisp.org>
50922
50923         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50924         .gitignore.
50925         Reported by Sylvain Beucler <beuc@beuc.net>.
50926
50927 2008-06-29  Bruno Haible  <bruno@clisp.org>
50928
50929         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50930         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50931
50932 2008-06-29  Bruno Haible  <bruno@clisp.org>
50933
50934         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50935         EXTRA_DIST.
50936         Reported by Sylvain Beucler <beuc@beuc.net>.
50937
50938 2008-06-26  Jim Meyering  <meyering@redhat.com>
50939
50940         make several modules depend on the "open" module
50941         This provides slightly increased consistency when opening-for-write
50942         the name of a non-directory spelled with a trailing slash.
50943         * modules/chdir-safer: Likewise.
50944         * modules/chown: Likewise.
50945         * modules/clean-temp: Likewise.
50946         * modules/copy-file: Likewise.
50947         * modules/fchdir: Likewise.
50948         * modules/fcntl-safer: Likewise.
50949         * modules/pipe: Likewise.
50950         * modules/utime: Likewise.
50951         Prompted by Eric Blake and Bruno Haible.
50952
50953 2008-06-24  Andreas Schwab  <schwab@suse.de>
50954
50955         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50956         literals can be used as initializers for global variables.
50957
50958 2008-06-23  Eric Blake  <ebb9@byu.net>
50959
50960         Make gnulib-cache.m4 easier to diff.
50961         * gnulib-tool (func_import): Allow newlines when reading cached
50962         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50963
50964 2008-06-23  Bruno Haible  <bruno@clisp.org>
50965
50966         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50967         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50968         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50969         m4/signalblocking.m4.
50970         (gl_PREREQ_SIGACTION): Don't invoke it.
50971         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50972         gl_PREREQ_SIG_HANDLER_H.
50973         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50974         Don't check for sigaction here.
50975
50976 2008-06-23  Bruno Haible  <bruno@clisp.org>
50977
50978         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50979         (install_handlers): Don't set the SA_RESETHAND flag.
50980
50981 2008-06-23  Bruno Haible  <bruno@clisp.org>
50982
50983         * m4/sigaction.m4: Comment fixes.
50984         * lib/signal.in.h: Likewise.
50985
50986 2008-06-23  Eric Blake  <ebb9@byu.net>
50987
50988         Fix typo.
50989         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50990
50991         Avoid SA_ namespace.
50992         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50993         Reported by Ralf Wildenhues.
50994
50995         Avoid test failure due to SA_RESTORER.
50996         * tests/test-sigaction.c (SA_MASK): New macro.
50997         (main): Avoid failing due to extension flags being set.
50998         Reported by Jim Meyering.
50999
51000         Revert use of sig-handler.h in sigprocmask.c.
51001         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
51002         it requires the existence of struct sigaction.
51003         * lib/sigprocmask.c (handler_t): Restore typedef.
51004         (rpl_signal, old_handlers): Use local type.
51005
51006 2008-06-22  Bruno Haible  <bruno@clisp.org>
51007
51008         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
51009         conditionally.
51010         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51011
51012 2008-06-22  Bruno Haible  <bruno@clisp.org>
51013
51014         * doc/posix-functions/siginterrupt.texi: Move note.
51015
51016         * lib/signal.in.h (SA_RESTART): New macro.
51017         * lib/sigaction.c: Update comment.
51018
51019         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
51020
51021         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
51022         (gl_PREREQ_SIGPROCMASK): Invoke it.
51023         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
51024
51025         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
51026
51027         * lib/sigprocmask.c: Update a comment.
51028
51029 2008-06-21  Eric Blake  <ebb9@byu.net>
51030
51031         Use sigaction module rather than signal().
51032         * modules/c-stack (Depends-on): Add sigaction.
51033         * modules/fatal-signal (Depends-on): Likewise.
51034         * modules/nanosleep (Depends-on): Likewise.
51035         * modules/sigprocmask (Files): Add sig-handler.h.
51036         * modules/sigaction (Files): Likewise.
51037         * lib/sig-handler.h (get_handler): New file, suggested by Paul
51038         Eggert.
51039         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
51040         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
51041         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
51042         (init_fatal_signals): Likewise.
51043         * lib/nanosleep.c (rpl_nanosleep): Likewise.
51044         (siginterrupt): Delete fallback.
51045         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
51046         instead.
51047         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
51048         siginterrupt.
51049
51050         New module sigaction, for mingw.
51051         * modules/sigaction: New module...
51052         * modules/sigaction-tests: ...and its test.
51053         * m4/sigaction.m4: New file.
51054         * lib/sigaction.c: Likewise.
51055         * tests/test-sigaction.c: Likewise.
51056         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
51057         * modules/signal (Makefile.am): Likewise.
51058         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
51059         needed.
51060         * doc/posix-headers/signal.texi (signal.h): Mention provided
51061         types.
51062         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
51063         that sigaction is preferable.
51064         * doc/posix-functions/sigaction.texi (sigaction): Mention new
51065         module.
51066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51067         sigaction.
51068
51069         Improve robustness of sigprocmask by overriding signal.
51070         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
51071         is in use.
51072         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
51073         (SIGKILL, SIGSTOP): Provide fallbacks.
51074         (rpl_signal): Implement.
51075         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
51076         signal can be called inside handlers.
51077
51078         Fix nanosleep module on mingw.
51079         * modules/nanosleep (Depends-on): Add sys_select.
51080         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
51081
51082         Fix licensing of sigprocmask.
51083         * modules/raise (License): Relicense as LGPL.
51084
51085 2008-06-21  Bruno Haible  <bruno@clisp.org>
51086
51087         * lib/propername.c (proper_name_utf8): Don't use the transliterated
51088         result if it contains question marks.
51089         Reported by Michael Geng <linux@michaelgeng.de>.
51090
51091 2008-06-19  Bruno Haible  <bruno@clisp.org>
51092
51093         Fix CVS-ism.
51094         * doc/gnulib.texi: Include updated-stamp.texi.
51095         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
51096         (updated-stamp.texi): New rule.
51097         (gnulib.info): Depend on it.
51098         * doc/.gitignore: Add updated-stamp.texi.
51099         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
51100
51101 2008-06-19  Bruno Haible  <bruno@clisp.org>
51102
51103         * doc/Makefile (gnulib.info): Update and simplify dependencies.
51104         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51105
51106 2008-06-19  Eric Blake  <ebb9@byu.net>
51107
51108         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
51109         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
51110         Reported by Stepan Kasal.
51111
51112 2008-06-18  Bruno Haible  <bruno@clisp.org>
51113
51114         * lib/fatal-signal.c (init_fatal_signals): Add comment.
51115         Reported by Eric Blake.
51116
51117 2008-06-18  Eric Blake  <ebb9@byu.net>
51118
51119         Work around cygwin 1.5.25 strsignal bug.
51120         * tests/test-strsignal.c: Allow for const char *.
51121         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
51122
51123 2008-06-18  Simon Josefsson  <simon@josefsson.org>
51124
51125         * users.txt: Update URL to article and add author/date
51126         information.
51127
51128 2008-06-17  Bruno Haible  <bruno@clisp.org>
51129
51130         New macro gl_DISABLE_THREADS.
51131         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
51132         if the user did not pass --enable-threads or --disable-threads option.
51133         (gl_DISABLE_THREADS): New macro.
51134         Reported by Eric Blake <ebb9@byu.net>.
51135
51136 2008-06-17  Bruno Haible  <bruno@clisp.org>
51137
51138         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
51139         when the macro ignores it.
51140         Based on a patch by Eric Blake <ebb9@byu.net>.
51141
51142 2008-06-17  Bruno Haible  <bruno@clisp.org>
51143
51144         * modules/tls (License): Change to LGPLv2+.
51145         Reported by Eric Blake.
51146
51147 2008-06-17  Eric Blake  <ebb9@byu.net>
51148
51149         Simplify c-stack prerequisites.
51150         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
51151         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
51152         no longer requires <ucontext.h> to exist.  Optimize setrlimit
51153         check.
51154         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
51155         <sys/resource.h>.
51156
51157         Move c-stack test into testsuite.
51158         * modules/c-stack-tests: New file.
51159         * lib/c-stack.c [DEBUG]: Move test program...
51160         * tests/test-c-stack.c: ...into this new file.  Skip rather than
51161         fail test if sigaltstack is lacking.
51162         * tests/test-c-stack.sh: New driver file.
51163
51164 2008-06-16  Eric Blake  <ebb9@byu.net>
51165
51166         Use raise module consistently.
51167         * modules/fatal-signal (Depends-on): Add raise.
51168         * modules/sigprocmask (Depends-on): Likewise.
51169         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51170         * lib/sigprocmask.c (sigprocmask): Likewise.
51171         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51172         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51173
51174         Fix compliance bug in sigpending.
51175         * lib/sigprocmask.c (sigpending): Return pending array via
51176         parameter, not return value.
51177
51178 2008-06-14  Eric Blake  <ebb9@byu.net>
51179
51180         Improve obstack-printf test code.
51181         * tests/test-obstack-printf.c (test_function): Fix comment, and
51182         simplify usage of obstack_* in macros.  Add a test for coverage.
51183         Reported by Bruno Haible.
51184
51185 2008-06-14  Bruno Haible  <bruno@clisp.org>
51186
51187         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51188         array size as a constant, not as a const variable.
51189         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51190         AC_USE_SYSTEM_EXTENSIONS.
51191         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51192         Test whether the obstack_printf function actually exists.
51193         * modules/obstack-printf (Depends-on): Add extensions.
51194         (Include): Remove obstack.h.
51195         * modules/obstack-printf-posix (Depends-on): Add extensions.
51196         (Include): Remove obstack.h.
51197
51198 2008-06-13  Eric Blake  <ebb9@byu.net>
51199
51200         Add obstack-printf and obstack-printf-posix modules.
51201         * modules/obstack-printf: New file.
51202         * modules/obstack-printf-posix: Likewise.
51203         * MODULES.html.sh (Misc): Mention them.
51204         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51205         Likewise.
51206         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51207         Likewise.
51208         * modules/stdio (Makefile.am): Accomodate new modules.
51209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51210         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51211         Declare.
51212         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51213         functions.
51214         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51215         (gl_REPLACE_OBSTACK_PRINTF): New macros
51216         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51217         * tests/test-obstack-printf.c: New file.
51218         * modules/obstack-printf-tests: Likewise.
51219         * modules/obstack-printf-posix-tests: Likewise.
51220
51221 2008-06-11  Bruno Haible  <bruno@clisp.org>
51222
51223         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51224         * lib/open.c: Include errno.h.
51225         (open): Fail when attempting to write to a file that has a trailing
51226         slash.
51227         * tests/test-open.c (main): Test against trailing slash bug.
51228         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51229
51230 2008-06-10  Bruno Haible  <bruno@clisp.org>
51231
51232         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51233         for $? to work inside the trap command, with various /bin/sh-s.
51234         * tests/test-vc-list-files-cvs.sh: Likewise.
51235
51236 2008-06-10  Bruno Haible  <bruno@clisp.org>
51237
51238         * lib/acl-internal.h: Don't include gettext.h here.
51239         * lib/set-mode-acl.c: Include gettext.h here.
51240         * lib/copy-acl.c: Likewise.
51241
51242 2008-06-10  Bruno Haible  <bruno@clisp.org>
51243
51244         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51245         * lib/wait-process.c (wait_subprocess): Likewise.
51246         * lib/execute.h (execute): Add termsigp argument.
51247         * lib/execute.c (execute): Likewise.
51248         * lib/csharpcomp.c (compile_csharp_using_pnet,
51249         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51250         * lib/csharpexec.c (execute_csharp_using_pnet,
51251         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51252         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51253         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51254         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51255         is_jikes_present): Update.
51256         * lib/javaexec.c (execute_java_class): Update.
51257         * lib/javaversion.c (execute_and_read_line): Update.
51258         * NEWS: Document the changes.
51259         Reported by Eric Blake.
51260
51261 2008-06-10  Eric Blake  <ebb9@byu.net>
51262
51263         Add missing include.
51264         * tests/test-strstr.c (includes): Add <signal.h>.
51265         * tests/test-strcasestr.c (includes): Likewise.
51266         * tests/test-memmem.c (includes): Likewise.
51267
51268 2008-06-10  Bruno Haible  <bruno@clisp.org>
51269
51270         * lib/wait-process.c (wait_subprocess): Add an assertion.
51271
51272 2008-06-10  Bruno Haible  <bruno@clisp.org>
51273
51274         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51275
51276 2008-06-10  Bruno Haible  <bruno@clisp.org>
51277
51278         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51279         using alarm().
51280         * tests/test-strcasestr.c (main): Likewise.
51281         * tests/test-strstr.c (main): Likewise.
51282
51283 2008-06-09  Bruno Haible  <bruno@clisp.org>
51284
51285         Work around the Solaris 10 ACE ACLs ABI change.
51286         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51287         declare if ACL_NO_TRIVIAL is present.
51288         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51289         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51290         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51291         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51292         define if ACL_NO_TRIVIAL is present.
51293         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51294         and use the current ABI.
51295         (file_has_acl): Use same #if condition as elsewhere.
51296         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51297         in use, and use the current ABI.
51298         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51299         Reported by Jim Meyering.
51300
51301 2008-06-09  Eric Blake  <ebb9@byu.net>
51302
51303         Work around environments that (stupidly) ignore SIGALRM.
51304         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51305         before using alarm().
51306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51308         Reported by Ian Beckwith <ianb@erislabs.net>.
51309
51310         Produce autobuild blurb earlier in log.
51311         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51312
51313 2008-06-09  Jim Meyering  <meyering@redhat.com>
51314         and OndÅ™ej Vašík  <ovasik@redhat.com>
51315
51316         utimens.c: correct kernel bug work-around
51317         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51318         failure, not success, and the kernel bug we're trying to work
51319         around affects not just the utimensat call, but also the fallback
51320         futimens call.
51321         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51322         not success.
51323         [HAVE_FUTIMENS]: Use the same work-around, here.
51324
51325 2008-06-09  Jim Meyering  <meyering@redhat.com>
51326
51327         add more guards around definition of ACE_-related code
51328         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51329         ALLOW and ACE_OWNER are also defined.
51330
51331 2008-06-08  Bruno Haible  <bruno@clisp.org>
51332
51333         * lib/acl-internal.h: Add me as co-author.
51334         * lib/file-has-acl.c: Likewise.
51335         * lib/set-mode-acl.c: Likewise.
51336         * lib/copy-acl.c: Likewise.
51337
51338 2008-06-08  Bruno Haible  <bruno@clisp.org>
51339
51340         Add support for AIX ACLs.
51341         * lib/acl-internal.h (acl_nontrivial): New declaration.
51342         * lib/file-has-acl.c (acl_nontrivial): New function.
51343         (file_has_acl): Add implementation using AIX 4 ACL API.
51344         * lib/set-mode-acl.c (qset_acl): Likewise.
51345         * lib/copy-acl.c (qcopy_acl): Likewise.
51346
51347 2008-06-08  Bruno Haible  <bruno@clisp.org>
51348
51349         Add support for HP-UX ACLs.
51350         * lib/acl-internal.h (acl_nontrivial): New declaration.
51351         * lib/file-has-acl.c (acl_nontrivial): New function.
51352         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51353         * lib/set-mode-acl.c (qset_acl): Likewise.
51354         * lib/copy-acl.c (qcopy_acl): Likewise.
51355
51356 2008-06-08  Bruno Haible  <bruno@clisp.org>
51357
51358         Add support for Cygwin ACLs.
51359         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51360         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51361         the chmod_or_fchmod call.
51362         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51363
51364 2008-06-08  Bruno Haible  <bruno@clisp.org>
51365
51366         Fix bug with setuid modes in Solaris 10+ code.
51367         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51368         succeeded, when the mode contains some special bits.
51369
51370 2008-06-08  Bruno Haible  <bruno@clisp.org>
51371
51372         Add support for Solaris 7..10 ACLs.
51373         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51374         declarations.
51375         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51376         functions.
51377         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51378         * lib/set-mode-acl.c (qset_acl): Likewise.
51379         * lib/copy-acl.c (qcopy_acl): Likewise.
51380
51381 2008-06-08  Bruno Haible  <bruno@clisp.org>
51382
51383         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51384         declaration.
51385         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51386         (acl_access_nontrivial): Remove MacOS X case.
51387         (file_has_acl): Use acl_extended_nontrivial.
51388         * lib/copy-acl.c (qcopy_acl): Likewise.
51389
51390 2008-06-08  Bruno Haible  <bruno@clisp.org>
51391
51392         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51393
51394 2008-06-08  Jim Meyering  <meyering@redhat.com>
51395
51396         * modules/acl (Maintainer): Add Bruno Haible.
51397
51398 2008-06-07  Bruno Haible  <bruno@clisp.org>
51399
51400         Improve support for Tru64 ACLs.
51401         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51402         ACL on OSF/1.
51403
51404 2008-06-07  Bruno Haible  <bruno@clisp.org>
51405
51406         Add support for MacOS X ACLs.
51407         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51408         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51409         * lib/set-mode-acl.c (qset_acl): Likewise.
51410         * lib/copy-acl.c (qcopy_acl): Likewise.
51411
51412 2008-06-07  Bruno Haible  <bruno@clisp.org>
51413
51414         Fix memory leak introduced on 2008-05-22.
51415         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51416         use.
51417
51418 2008-06-07  Bruno Haible  <bruno@clisp.org>
51419
51420         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51421         to construct an empty ACL.
51422
51423 2008-06-07  Bruno Haible  <bruno@clisp.org>
51424
51425         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51426         precisely.
51427         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51428
51429 2008-06-07  Bruno Haible  <bruno@clisp.org>
51430
51431         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51432         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51433
51434 2008-06-07  Bruno Haible  <bruno@clisp.org>
51435
51436         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51437         regardless of POSIX.
51438         * doc/posix-functions/_longjmp.texi: Likewise.
51439         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51440         SystemV platform in this case.
51441
51442 2008-06-06  Eric Blake  <ebb9@byu.net>
51443
51444         Document abort() bugs.
51445         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51446
51447         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51448         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51449         sigsetjmp.
51450         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51451         siglongjmp, but only as a macro.
51452         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51453         is obsolete.
51454         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51455
51456         Tweak documentation to cover cygwin argz bugs.
51457         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51458         argz bug fix; no code change needed since no cygwin releases
51459         occurred between the last fix and the bug being tested.
51460         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51461         module and recently fixed cygwin bugs.
51462         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51463         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51464         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51465         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51466         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51467         Likewise.
51468         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51469         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51470         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51471         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51472         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51473         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51474         Likewise.
51475
51476         Avoid gcc warning on cygwin.
51477         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51478         !ACL_NO_TRIVIAL]: Avoid unused variable.
51479
51480 2008-06-05  Eric Blake  <ebb9@byu.net>
51481
51482         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51483         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51484         git-version-gen fails to come up with a version.
51485         Reported by Simon Josefsson.
51486
51487 2008-06-05  Jim Meyering  <meyering@redhat.com>
51488             Paul Eggert  <eggert@cs.ucla.edu>
51489
51490         utimens.c: work around a probable Linux kernel bug
51491         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51492         appears to be a kernel bug that causes utimensat to return 280
51493         instead of 0, indicating success.
51494
51495 2008-06-04  Bruno Haible  <bruno@clisp.org>
51496
51497         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51498         2008-06-01 commit.
51499
51500 2008-06-04  Bruno Haible  <bruno@clisp.org>
51501
51502         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51503         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51504         (file_has_acl): Use it. Save errno afterwards.
51505         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51506
51507 2008-06-03  Bruno Haible  <bruno@clisp.org>
51508
51509         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51510         draft code. Simplify #ifs.
51511         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51512         Put Solaris code after POSIX-draft code. Fix comments regarding
51513         Solaris 10, HP-UX. Mention Cygwin.
51514         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51515
51516 2008-06-03  Eric Blake  <ebb9@byu.net>
51517
51518         Provide fallback for older kernels.
51519         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51520         Provide runtime fallback if kernel lacks support.
51521         Reported by Mike Frysinger.
51522
51523 2008-06-02  Bruno Haible  <bruno@clisp.org>
51524
51525         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51526         it exists.
51527
51528 2008-06-02  Bruno Haible  <bruno@clisp.org>
51529
51530         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51531         * lib/copy-acl.c (qcopy_acl): Update comment.
51532
51533 2008-06-02  Bruno Haible  <bruno@clisp.org>
51534
51535         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51536         like ACL APIs.
51537
51538 2008-06-02  Bruno Haible  <bruno@clisp.org>
51539
51540         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51541         * tests/test-set-mode-acl.sh: Likewise.
51542         * tests/test-copy-acl.sh: Likewise.
51543         * tests/test-copy-file.sh: Likewise.
51544
51545 2008-06-02  Bruno Haible  <bruno@clisp.org>
51546
51547         * tests/test-file-has-acl.sh: Remove unused code.
51548
51549 2008-06-01  Bruno Haible  <bruno@clisp.org>
51550
51551         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51552         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51553         messages.
51554         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51555
51556 2008-06-01  Bruno Haible  <bruno@clisp.org>
51557
51558         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51559         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51560         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51561         APIs.
51562         * modules/acl-tests (configure.ac): Remove tests now contained in
51563         m4/acl.m4.
51564
51565 2008-06-02  Jim Meyering  <meyering@redhat.com>
51566
51567         announce-gen: use a better key-server host name
51568         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51569         it may be more consistently reliable.  Suggested by Werner Koch
51570         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51571
51572 2008-06-01  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51575         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51576
51577 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51578
51579         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51580
51581 2008-06-01  Bruno Haible  <bruno@clisp.org>
51582
51583         New ACL tests.
51584         * tests/test-file-has-acl.sh: New file.
51585         * tests/test-file-has-acl.c: New file.
51586         * tests/test-set-mode-acl.sh: New file.
51587         * tests/test-set-mode-acl.c: New file.
51588         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51589         * tests/test-copy-acl.c: New file.
51590         * modules/acl-tests: New file, based on modules/copy-file-tests.
51591         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51592         (Depends-on): Add acl-tests.
51593         (configure.ac): Remove checks.
51594         (Makefile.am): Don't create test-sameacls program here any more.
51595
51596 2008-06-01  Bruno Haible  <bruno@clisp.org>
51597
51598         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51599         * tests/test-sameacls.c: Include progname.h.
51600         (main): Invoke set_program_name. Portability fixes for MacOS X,
51601         Solaris, HP-UX.
51602
51603 2008-06-01  Bruno Haible  <bruno@clisp.org>
51604
51605         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51606         function.
51607         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51608
51609 2008-06-01  Bruno Haible  <bruno@clisp.org>
51610
51611         * modules/rpmatch (Depends-on): Add strdup.
51612
51613 2008-06-01  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/pipe.c: Include unistd-safer.h.
51616         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51617         * modules/pipe (Depends-on): Add unistd-safer.
51618
51619 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51620
51621         * modules/autobuild (configure.ac): Call AB_INIT.
51622
51623 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51624
51625         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51626         Suggested by Bruno Haible <bruno@clisp.org>.
51627
51628 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51629
51630         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51631         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51632         <bruno@clisp.org>.
51633
51634 2008-05-29  Eric Blake  <ebb9@byu.net>
51635
51636         Prefer new POSIX 200x interfaces over futimesat.
51637         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51638         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51639         when available.
51640         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51641
51642 2008-05-28  Bruno Haible  <bruno@clisp.org>
51643
51644         * modules/stpcpy (License): Change to LGPLv2+.
51645         Requested by David Lutterkort <dlutter@redhat.com>.
51646
51647 2008-05-27  Bruno Haible  <bruno@clisp.org>
51648
51649         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51650         current mingw.
51651         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51652
51653 2008-05-27  Bruno Haible  <bruno@clisp.org>
51654
51655         * modules/iconv_open (Link): New section, from module 'iconv'.
51656         * modules/striconv (Link): Likewise.
51657         * modules/striconveh (Link): Likewise.
51658         * modules/xstriconv (Link): Likewise.
51659         * modules/unicodeio (Link): Likewise.
51660         * modules/propername (Link): Likewise.
51661         Reported by Jim Meyering.
51662
51663 2008-05-26  Jim Meyering  <meyering@redhat.com>
51664
51665         sha256: do not artificially restrict buffer length to be < 2^32
51666         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51667         uint32_t to size_t.
51668         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51669         to match.
51670
51671         avoid unaligned access errors, e.g., on sparc
51672         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51673         direct access through a possibly-unaligned uint64* pointer.
51674         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51675         direct access through a possibly-unaligned uint32* pointer.
51676         Prompted by this patch from Tom "spot" Callaway:
51677         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51678
51679         sha512.c: fix typo in comment
51680         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51681
51682 2008-05-25  Bruno Haible  <bruno@clisp.org>
51683
51684         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51685         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51686         (Makefile.am): Update lib_SOURCES.
51687
51688 2008-05-25  Bruno Haible  <bruno@clisp.org>
51689
51690         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51691
51692 2008-05-25  Jim Meyering  <meyering@redhat.com>
51693
51694         useless-if-before-free: freed expr may have white-space differences
51695         * build-aux/useless-if-before-free: Recognize cases in which the
51696         freed expression differs from the tested one in embedded white
51697         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51698         $1 was used, so we can't make any regexp shy.  Improved tests now
51699         detect this.
51700
51701         useless-if-before-free: accept white space in the expression.
51702         * build-aux/useless-if-before-free: For now, any white space
51703         in the expression must be identical in the free argument.
51704
51705         useless-if-before-free: efficiency tweak
51706         * build-aux/useless-if-before-free: Make the expression-matching
51707         regexp "shy".
51708         Make the *outer* regexp shy, not the expr-matching one.
51709
51710         update code-in-comment to accept cast of free arg
51711         * build-aux/useless-if-before-free: Update regexp.
51712
51713 2008-05-25  Bruno Haible  <bruno@clisp.org>
51714
51715         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51716         * modules/copy-file-tests (Files, Makefile.am): Update.
51717         * tests/test-copy-file.c (func_test_copy): Update.
51718
51719 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51720
51721         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51722
51723 2008-05-23  Bruno Haible  <bruno@clisp.org>
51724
51725         Improve support for ACLs on OSF/1.
51726         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51727         Remove fallback for unknown flavors of ACLs.
51728
51729 2008-05-22  Bruno Haible  <bruno@clisp.org>
51730
51731         Add support for ACLs on OSF/1.
51732         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51733         replacements.
51734         (acl_free_text): New macro fallback.
51735         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51736         acl_free.
51737         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51738         acl_free_text function. Require AC_C_INLINE.
51739
51740 2008-05-22  Bruno Haible  <bruno@clisp.org>
51741
51742         Make copy_acl work on MacOS X 10.5.
51743         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51744         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51745         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51746         If MODE_INSIDE_ACL, don't assume that every system has the same text
51747         representation for ACLs as FreeBSD.
51748         * lib/copy-acl.c (copy_acl): Add support for platforms with
51749         !MODE_INSIDE_ACL.
51750         * lib/file-has-acl.c (file_has_acl): Likewise.
51751         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51752         FreeBSD, MacOS X, or IRIX, respectively.
51753
51754 2008-05-22  Bruno Haible  <bruno@clisp.org>
51755
51756         * lib/acl.h: Don't include <sys/acl.h>.
51757         (GETACLCNT): Move fallback to lib/acl-internal.h.
51758         * lib/acl-internal.h: Include <sys/acl.h> here.
51759         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51760
51761 2008-05-22  Bruno Haible  <bruno@clisp.org>
51762
51763         Split off copy_acl function to separate file.
51764         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51765         * lib/acl.c (copy_acl): Moved function to separate file.
51766         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51767         * modules/acl (Files): Add lib/copy-acl.c.
51768         (Makefiles.am): Augment lib_SOURCES.
51769
51770 2008-05-22  Bruno Haible  <bruno@clisp.org>
51771
51772         * modules/copy-file-tests: New file.
51773         * tests/test-copy-file.sh: New file.
51774         * tests/test-copy-file.c: New file.
51775         * tests/test-copy-file-sameacls.c: New file.
51776
51777 2008-05-22  Eric Blake  <ebb9@byu.net>
51778
51779         Avoid gcc warning.
51780         * tests/test-memcmp.c (main): Pass NULL indirectly.
51781
51782 2008-05-21  Bruno Haible  <bruno@clisp.org>
51783
51784         Add reference doc about ACLs.
51785         * doc/acl-resources.txt: New file.
51786         * doc/acl-cygwin.txt: New file.
51787
51788 2008-05-21  Bruno Haible  <bruno@clisp.org>
51789
51790         Avoid one more warning from gcc.
51791         * lib/vasnprintf.c (IF_LINT): Update comments.
51792         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51793
51794 2008-05-21  Jim Meyering  <meyering@redhat.com>
51795
51796         avoid a warning from gcc
51797         * lib/vasnprintf.c (IF_LINT): Define.
51798         (scale10_round_decimal_long_double):
51799         Use it to avoid a "may be used uninitialized" warning.
51800         (scale10_round_decimal_double): Likewise.
51801
51802 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51803
51804         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51805         declared.
51806
51807 2008-05-20  Bruno Haible  <bruno@clisp.org>
51808
51809         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51810         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51811
51812 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51813
51814         * modules/memcmp-tests: New file.
51815         * tests/test-memcmp.c: New file.
51816
51817 2008-05-19  Bruno Haible  <bruno@clisp.org>
51818
51819         * modules/propername (Notice, configure.ac): Put quoted "..." into
51820         --keyword option.
51821         * lib/propername.h: Update comments accordingly.
51822         Reported by Eric Blake.
51823
51824 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51825
51826         * modules/getpass-gnu (Depends-on): Add fseeko.
51827
51828 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51829
51830         * modules/base64-tests: New file.
51831
51832 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51833
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         * lib/base64.c (base64_decode_ctx): If a decode context structure
51843         was passed in use it to ignore newlines.  If a context structure
51844         was _not_ passed in, continue to treat newlines as garbage (this
51845         is the historical behavior).  Formerly base64_decode.
51846         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51847         takes a decode context structure.
51848         * lib/base64.h (base64_decode): Macro for four-argument calls.
51849         (base64_decode_alloc): Likewise.
51850
51851 2008-05-19  Jim Meyering  <meyering@redhat.com>
51852
51853         avoid a warning from gcc
51854         * lib/trim.c (IF_LINT): Define.
51855         (trim2): Use it to avoid a "may be used uninitialized" warning.
51856
51857         Fix doc typo.
51858         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51859
51860 2008-05-19  Bruno Haible  <bruno@clisp.org>
51861
51862         * doc/glibc-functions/getpass.texi: Document limits of other
51863         implementations.
51864
51865 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51866             Bruno Haible <bruno@clisp.org>
51867
51868         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51869
51870 2008-05-18  Bruno Haible  <bruno@clisp.org>
51871
51872         * modules/propername: New file, from GNU gettext.
51873         * lib/propername.h: New file, from GNU gettext.
51874         * lib/propername.c: New file, from GNU gettext.
51875         * MODULES.html.sh (Internationalization functions): Add propername.
51876
51877 2008-05-16  Jim Meyering  <meyering@redhat.com>
51878             Bruno Haible  <bruno@clisp.org>
51879
51880         Avoid some warnings from "gcc -Wshadow".
51881         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51882
51883 2008-05-15  Eric Blake  <ebb9@byu.net>
51884
51885         Extend previous patch to cygwin 1.7.0.
51886         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51887         fast implementation in cygwin >= 1.7.0.
51888         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51889         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51890
51891 2008-05-15  Bruno Haible  <bruno@clisp.org>
51892
51893         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51894         implementation in glibc >= 2.9.
51895         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51897
51898 2008-05-15  Bruno Haible  <bruno@clisp.org>
51899
51900         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51901         (Unicode string functions): Add unilbrk/*.
51902         Reported by Karl Berry.
51903
51904 2008-05-15  Eric Blake  <ebb9@byu.net>
51905
51906         Fix violation of <stdbool.h> replacement in regex.
51907         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51908         * lib/regexec.c (re_search_internal): Likewise.
51909         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51910
51911 2008-05-15  Jim Meyering  <meyering@redhat.com>
51912
51913         avoid distracting test output when git or cvs is not found
51914         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51915         * tests/test-vc-list-files-git.sh: Likewise.
51916
51917 2008-05-15  Eric Blake  <ebb9@byu.net>
51918
51919         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51920         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51921         glibc version.
51922         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51923         * doc/posix-functions/strstr.texi (strstr): Likewise.
51924         * lib/str-two-way.h (MAX): Sychronize with glibc.
51925
51926 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51927
51928         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51929         opr.ctx_type.
51930         (calc_first): Initialize constraint field.
51931         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51932         Fix grammar.
51933         (duplicate_node): Merge constraint field for all node types.
51934         (calc_eclosure_iter): Look at constraint field for all node types.
51935         * lib/regex_internal.c (create_cd_newstate): Don't look at
51936         opr.ctx_type.
51937
51938 2008-05-14  Bruno Haible  <bruno@clisp.org>
51939
51940         Help GCC to do better code generation.
51941         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51942         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51943         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51944         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51945         Declare with attribute 'malloc' if supported.
51946
51947 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51948
51949         use "echo STR|wc -c" rather than unportable "expr length STR"
51950         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51951         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51952
51953 2008-05-14  Jim Meyering  <meyering@redhat.com>
51954
51955         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51956         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51957         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51958         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51959         via Collin Lasse.
51960
51961 2008-05-14  Eric Blake  <ebb9@byu.net>
51962
51963         Avoid quadratic growth in gl_LIBSOURCES.
51964         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51965         Suggested by Bruno Haible.
51966
51967         Test xmemdup0.
51968         * modules/xmemdup0-tests: New file.
51969         * tests/test-xmemdup0.c: Likewise.
51970
51971 2008-05-13  Eric Blake  <ebb9@byu.net>
51972
51973         Split xmemdup0 into its own module.
51974         * modules/xmemdup0: New file.
51975         * lib/xmemdup0.h: Likewise.
51976         * lib/xmemdup0.c: Likewise.
51977         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51978         * lib/xalloc.h (xmemdup0): Remove.
51979         * lib/xmalloc.c (xmemdup0): Likewise.
51980
51981 2008-05-13  Eric Blake  <ebb9@byu.net>
51982             Bruno Haible  <bruno@clisp.org>
51983
51984         Reduce number of forks required during autoconf.
51985         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51986         and gl_LIBSOURCES_DIR.
51987         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51988         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51989         m4_syscmd per file.
51990         <m4_foreach_w>: Move...
51991         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51992
51993 2008-05-13  Eric Blake  <ebb9@byu.net>
51994
51995         * gnulib-tool: Fix various comment typos.
51996
51997 2008-05-12  Bruno Haible  <bruno@clisp.org>
51998
51999         Tailor the linebreaking algorithm.
52000         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
52001
52002 2008-05-12  Bruno Haible  <bruno@clisp.org>
52003
52004         Update to Unicode 5.0.0.
52005         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52006         LBP_JV, LBP_JT. Redistribute values.
52007         (unilbrk_table): Change size.
52008         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
52009         Unicode TR#14 rev. 22.
52010         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
52011         LBP_JV, LBP_JT. Redistribute values.
52012         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
52013         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
52014         Update.
52015         * lib/unilbrk/lbrkprop1.h: Regenerated.
52016         * lib/unilbrk/lbrkprop2.h: Regenerated.
52017         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
52018         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
52019         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
52020         Likewise.
52021         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
52022         Likewise.
52023         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
52024         result.
52025         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
52026         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
52027         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
52028         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
52029         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
52030         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
52031
52032 2008-05-11  Bruno Haible  <bruno@clisp.org>
52033
52034         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
52035
52036 2008-05-11  Bruno Haible  <bruno@clisp.org>
52037
52038         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
52039         * modules/unilbrk/gen-lbrk: New file.
52040
52041 2008-05-11  Bruno Haible  <bruno@clisp.org>
52042
52043         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
52044         * m4/sha512.m4 (gl_SHA512): Likewise.
52045
52046 2008-05-11  Jim Meyering  <meyering@redhat.com>
52047
52048         New modules: crypto/sha256, crypto/sha512 (from coreutils)
52049         * modules/crypto/sha256: New file.
52050         * modules/crypto/sha512: Likewise.
52051         * lib/sha256.c: Likewise.
52052         * lib/sha256.h: Likewise.
52053         * lib/sha512.c: Likewise.
52054         * lib/sha512.h: Likewise.
52055         * lib/u64.h: Likewise.
52056         * m4/sha256.m4: Likewise.
52057         * m4/sha512.m4: Likewise.
52058         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
52059
52060 2008-05-10  Bruno Haible  <bruno@clisp.org>
52061
52062         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
52063         (Input/Output <stdio.h>): Add xprintf.
52064         (Signal handling <signal.h>): Add strsignal.
52065         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
52066         (Core language properties): Add func.
52067         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
52068         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
52069         strings.
52070         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
52071         (Input/output): New section.
52072         (File system functions): Add openat-die, stat-macros.
52073         (Networking functions): Add sockets.
52074         (Unicode string functions): Add unictype/*.
52075         (Support for building libraries and executables): Add gperf.
52076         (Support for building documentation): Add agpl-3.0.
52077         (Misc): Add nocrash.
52078
52079 2008-05-10  Bruno Haible  <bruno@clisp.org>
52080
52081         * modules/unictype/gen-ctype: New file.
52082
52083 2008-05-10  Jim Meyering  <meyering@redhat.com>
52084
52085         Make chdir-safer.c more efficient on a system with no symlinks.
52086         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
52087         also if ELOOP is zero.  Suggested by Bruno Haible.
52088
52089         Make chdir-safer.c slightly safer.
52090         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
52091         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
52092
52093         Avoid compile failure on systems without ELOOP (like mingw).
52094         * lib/chdir-safer.c (ELOOP): Define if not already defined.
52095         Reported by Bruno Haible.
52096
52097 2008-05-10  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
52100         (is_utf8_encoding): Use a case-insensitive comparison.
52101         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
52102         streq.
52103
52104 2008-05-10  Bruno Haible  <bruno@clisp.org>
52105
52106         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
52107         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
52108         * lib/unilbrk/ulc-common.h (iconv_string_length,
52109         iconv_string_keeping_offsets): Remove declarations.
52110         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
52111         Don't include <iconv.h>, streq.h, xsize.h.
52112         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
52113         conversion.
52114         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
52115         <iconv.h>, streq.h, xsize.h.
52116         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
52117         conversion.
52118         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
52119         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
52120         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
52121         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
52122
52123 2008-05-10  Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
52126         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
52127
52128         * modules/unilbrk/u32-width-linebreaks-tests: New file.
52129         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
52130
52131         * modules/unilbrk/u16-width-linebreaks-tests: New file.
52132         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
52133
52134         * modules/unilbrk/u8-width-linebreaks-tests: New file.
52135         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
52136
52137         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
52138         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
52139
52140         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
52141         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
52142
52143         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
52144         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
52145
52146         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
52147         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
52148
52149 2008-05-10  Bruno Haible  <bruno@clisp.org>
52150
52151         Split up 'linebreak' module.
52152         * lib/unilbrk.h: New file, based on lib/linebreak.h.
52153         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
52154         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
52155         modifications.
52156         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
52157         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
52158         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
52159         lib/linebreak.c.
52160         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
52161         lib/linebreak.c.
52162         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52163         lib/linebreak.c.
52164         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52165         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52166         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52167         lib/linebreak.c.
52168         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52169         lib/linebreak.c.
52170         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52171         lib/linebreak.c.
52172         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52173         lib/linebreak.c.
52174         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52175         lib/linebreak.c.
52176         * modules/unilbrk/base: New file.
52177         * modules/unilbrk/tables: New file.
52178         * modules/unilbrk/u8-possible-linebreaks: New file.
52179         * modules/unilbrk/u16-possible-linebreaks: New file.
52180         * modules/unilbrk/u32-possible-linebreaks: New file.
52181         * modules/unilbrk/ulc-common: New file.
52182         * modules/unilbrk/ulc-possible-linebreaks: New file.
52183         * modules/unilbrk/u8-width-linebreaks: New file.
52184         * modules/unilbrk/u16-width-linebreaks: New file.
52185         * modules/unilbrk/u32-width-linebreaks: New file.
52186         * modules/unilbrk/ulc-width-linebreaks: New file.
52187         * lib/linebreak.h: Remove file.
52188         * lib/linebreak.c: Remove file.
52189         * m4/linebreak.m4: Remove file.
52190         * modules/linebreak: Remove file.
52191         * NEWS: Mention the changes.
52192
52193 2008-05-09  Eric Blake  <ebb9@byu.net>
52194
52195         Add xmemdup0.
52196         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52197         implementation.
52198         * lib/xmalloc.c (xmemdup0): New C implementation.
52199
52200 2008-05-08  Bruno Haible  <bruno@clisp.org>
52201
52202         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52203
52204 2008-05-07  Eric Blake  <ebb9@byu.net>
52205
52206         Support cross-compilation of <wctype.h>.
52207         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52208         AC_CACHE_CHECK.
52209
52210 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52211
52212         * build-aux/vc-list-files: Add support for bzr.
52213
52214 2008-05-03  Jim Meyering  <meyering@redhat.com>
52215
52216         avoid failed assertion with tight malloc
52217         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52218
52219 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52220
52221         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52222         are needed from arpa/inet.h.
52223         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52224         Reported by Bruno Haible.
52225
52226 2008-05-02  Jim Meyering  <meyering@redhat.com>
52227
52228         avoid compilation error on FreeBSD 6
52229         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52230
52231 2008-05-01  Jim Meyering  <meyering@redhat.com>
52232
52233         useless-if-before-free: correct --help's exit status description
52234         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52235         for one or more matches, etc.  Reported by Bruno Haible.
52236
52237         vc-list-files: make the stand-alone gnulib test work
52238         * modules/vc-list-files-tests (configure.ac):
52239         Define and AC_SUBST abs_aux_dir.
52240         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52241         $(abs_top_srcdir) to each script and having each of them
52242         duplicate the work of setting PATH, set PATH here, using
52243         the new variable, abs_aux_dir instead.
52244         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52245         * tests/test-vc-list-files-git.sh: Likewise.
52246         Reported by Bruno Haible.
52247
52248 2008-05-01  Bruno Haible  <bruno@clisp.org>
52249
52250         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52251         reallocation. Rename 'done' to 'found_delimiter'.
52252
52253 2008-05-01  Jim Meyering  <meyering@redhat.com>
52254
52255         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52256         * build-aux/vc-list-files: Use `...`, not $(...).
52257
52258 2008-04-30  Jim Meyering  <meyering@redhat.com>
52259
52260         add tests for vc-list-files
52261         * modules/vc-list-files-tests: New module.
52262         * tests/test-vc-list-files-cvs.sh: New file.
52263         * tests/test-vc-list-files-git.sh: New file.
52264
52265         avoid a warning from gcc
52266         * lib/getndelim2.c (IF_LINT): Define.
52267         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52268
52269         vc-list-files: work properly with build-aux/cvsu, too
52270         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52271         to all cvs-based clauses.
52272
52273         vc-list-files: work properly in the CVS+awk case, too
52274         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52275
52276         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52277         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52278         take more than one file argument, so .  Add quotes, just in case $dir
52279         ever contains a shell meta-character.  Prompted by Soren Hansen in
52280         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52281
52282 2008-04-29  Eric Blake  <ebb9@byu.net>
52283
52284         Optimize getndelim2 to use block operations when possible.
52285         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52286         freadseek, and memchr2.
52287         * lib/getndelim2.c (getndelim2): Use them for block reads.
52288
52289 2008-04-29  Bruno Haible  <bruno@clisp.org>
52290
52291         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52292         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52293         * modules/inet_ntop (Depends-on): Add extensions.
52294         * modules/inet_pton (Depends-on): Likewise.
52295         Reported by Simon Josefsson.
52296
52297 2008-04-29  Jim Meyering  <meyering@redhat.com>
52298
52299         When the is more than one match in a block, match all of them.
52300         * build-aux/useless-if-before-free: Iterate through each block
52301         until there are no more matches.
52302
52303         Fix broken useless-if-before-free script.
52304         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52305         the expression to match cast of argument to free-like function.
52306
52307 2008-04-29  Eric Blake  <ebb9@byu.net>
52308
52309         Use new header.
52310         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52311
52312 2008-04-29  Jim Meyering  <meyering@redhat.com>
52313
52314         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52315         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52316         by gnulib to exist and to declare e.g., inet_ntop.
52317         Don't include "inet_ntop.h", now removed.
52318
52319         * m4/arpa_inet_h.m4: Remove trailing blanks.
52320
52321 2008-04-29  Eric Blake  <ebb9@byu.net>
52322
52323         Silence valgrind on safe reads beyond potential array bounds.
52324         * lib/rawmemchr.valgrind: New file.
52325         * lib/strchrnul.valgrind: Likewise.
52326         * modules/rawmemchr (Files): Distribute new file.
52327         * modules/strchrnul (Files): Likewise.
52328         Suggested by Bruno Haible.
52329
52330 2008-04-29  Bruno Haible  <bruno@clisp.org>
52331
52332         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52333         (inet_ntop, inet_pton): Change portability warning's wording.
52334         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52335         Invoke gl_CHECK_NEXT_HEADERS.
52336         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52337         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52338         set ARPA_INET_H.
52339         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52340         * modules/arpa_inet (Description): No longer only for systems that
52341         lack it.
52342         (Depends-on): Add include_next.
52343         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52344         HAVE_ARPA_INET_H.
52345
52346 2008-04-29  Jim Meyering  <meyering@redhat.com>
52347
52348         * modules/mkdir (License): Re-license as LGPLv2+.
52349
52350 2008-04-29  Bruno Haible  <bruno@clisp.org>
52351
52352         * modules/rawmemchr (Maintainer): Set to Eric.
52353         * modules/strchrnul (Maintainer): Likewise.
52354
52355 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52356
52357         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52358         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52359
52360         * modules/arpa_inet (arpa/inet.h): Use them.
52361
52362 2008-04-28  Eric Blake  <ebb9@byu.net>
52363
52364         Test getndelim2.
52365         * modules/getndelim2-tests: New file.
52366         * tests/test-getndelim2.c: Likewise.
52367         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52368         stream.
52369         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52370
52371         * MODULES.html.sh: Document new module.
52372
52373 2008-04-20  Bruno Haible  <bruno@clisp.org>
52374
52375         * lib/c-stack.c (die): Use raise.
52376         * modules/c-stack (Depends-on): Add raise.
52377
52378 2008-04-28  Bruno Haible  <bruno@clisp.org>
52379
52380         Expect rpmatch to be declared.
52381         * lib/yesno.c (rpmatch): Remove declaration.
52382
52383         Declare rpmatch.
52384         * lib/stdlib.in.h (rpmatch): New declaration.
52385         * lib/rpmatch.c: Include <stdlib.h> first.
52386         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52387         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52389         HAVE_RPMATCH.
52390         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52391         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52392         (Include): Set to <stdlib.h>.
52393         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52394         HAVE_RPMATCH.
52395         * NEWS: Document the change.
52396
52397 2008-04-28  Bruno Haible  <bruno@clisp.org>
52398
52399         Change rpmatch to use nl_langinfo when appropriate.
52400         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52401         (N_): New macro.
52402         (localized_pattern): New function/macro.
52403         (try): Remove match, nomatch arguments. Copy the pattern into safe
52404         memory before caching it.
52405         (rpmatch): Use localized_pattern. Add translator comments.
52406         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52407         Suggested by Eric Blake.
52408         * modules/rpmatch (Depends-on): Add stdbool.
52409
52410 2008-04-28  Eric Blake  <ebb9@byu.net>
52411
52412         Add rawmemchr module, matching glibc.
52413         * modules/string (Makefile.am): New indicator.
52414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52415         * lib/string.in.h (rawmemchr): Declare when appropriate.
52416         * modules/rawmemchr: New file.
52417         * m4/rawmemchr.m4: Likewise.
52418         * lib/rawmemchr.c: Likewise.
52419         * modules/rawmemchr-tests: Likewise.
52420         * tests/test-rawmemchr.c: Likewise.
52421         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52422         module.
52423         * modules/strchrnul (Depends-on): Add rawmemchr.
52424         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52425
52426         Whitespace cleanup.
52427         * tests/test-strchrnul.c: Reindent.
52428         * lib/strchrnul.c: Likewise.
52429
52430         Optimize and test strchrnul.
52431         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52432         * modules/strchrnul-tests: New file.
52433         * tests/test-strchrnul.c: Likewise.
52434
52435         Remove intprops dependency.
52436         * modules/memchr (Depends-on): Remove intprops.
52437         * modules/memrchr (Depends-on): Likewise.
52438         * modules/memchr2 (Depends-on): Likewise.
52439         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52440         * lib/memrchr.c (__memrchr): Likewise.
52441         * lib/memrchr2.c (memchr2): Likewise.
52442         Reported by Simon Josefsson.
52443
52444 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52445
52446         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52447         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52448
52449 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52450
52451         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52452
52453         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52454
52455         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52456
52457         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52458         declarations.
52459         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52460
52461         * m4/inet_pton.m4: Don't check for header files.
52462
52463         * m4/inet_ntop.m4: Don't check for header files.
52464
52465 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52466
52467         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52468         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52469         trigger for cygwin).
52470         Reported by Bruno Haible  <bruno@clisp.org>.
52471
52472 2008-04-28  Bruno Haible  <bruno@clisp.org>
52473
52474         * doc/posix-functions/strdup.texi: Mention mingw problem.
52475
52476 2008-04-27  Bruno Haible  <bruno@clisp.org>
52477
52478         * modules/stat-time-tests (Depends-on): Add sleep.
52479         * tests/test-stat-time.c (force_unlink): New function.
52480         (cleanup): Use it.
52481         (test_mtime): Remove the ctime related tests.
52482         (test_ctime): New function, containing the ctime related tests.
52483         (main): Call test_ctime, except on native Windows platforms.
52484
52485 2008-04-27  Bruno Haible  <bruno@clisp.org>
52486
52487         * lib/rpmatch.c (rpmatch): Add some comments.
52488         Reported by James Youngman <jay@gnu.org>.
52489
52490 2008-04-27  Bruno Haible  <bruno@clisp.org>
52491
52492         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52493         quiet NaNs.
52494
52495 2008-04-27  Bruno Haible  <bruno@clisp.org>
52496
52497         Make test-yesno.sh work on mingw.
52498         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52499         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52500         (main): Set stdin to binary mode.
52501         * modules/yesno-tests (Depends-on): Add binary-io.
52502
52503 2008-04-27  Bruno Haible  <bruno@clisp.org>
52504
52505         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52506         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52507         argument that lie outside the IEEE 854 domain.
52508         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52509         (gl_ISFINITE): Use it.
52510         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52511
52512 2008-04-27  Bruno Haible  <bruno@clisp.org>
52513
52514         Allow local renaming in config.h.
52515         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52516
52517 2008-04-27  Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/memchr.c (__memchr): Change type of 'i'.
52520         * lib/memchr2.c (memchr2): Likewise.
52521
52522 2008-04-26  Eric Blake  <ebb9@byu.net>
52523         and Bruno Haible  <bruno@clisp.org>
52524
52525         Optimize and test memrchr.
52526         * modules/memrchr (Depends-on): Add intprops.
52527         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52528         * modules/memrchr-tests: New file.
52529         * tests/test-memrchr.c: New file.
52530
52531 2008-04-26  Bruno Haible  <bruno@clisp.org>
52532
52533         Add tentative support for DragonFly BSD.
52534         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52535         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52536         fp.
52537         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52538         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52539         * lib/fpurge.c (fpurge): Likewise.
52540         * lib/freadable.c (freaadable): Likewise.
52541         * lib/freadahead.c (freadahead): Likewise.
52542         * lib/freading.c (freading): Likewise.
52543         * lib/freadptr.c (freadptr): Likewise.
52544         * lib/freadseek.c (freadptrinc): Likewise.
52545         * lib/fseeko.c (fseeko): Likewise.
52546         * lib/fseterr.c (fseterr): Likewise.
52547         * lib/fwritable.c (fwritable): Likewise.
52548         * lib/fwriting.c (fwriting): Likewise.
52549
52550 2008-04-26  Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/stdio-impl.h: New file.
52553         * lib/fbufmode.c: Include stdio-impl.h.
52554         (fbufmode): Use fp_, remove redundant #defines.
52555         * lib/fflush.c: Include stdio-impl.h.
52556         (clear_ungetc_buffer): Remove redundant #defines.
52557         * lib/fpurge.c: Include stdio-impl.h.
52558         (fpurge): Remove redundant #defines.
52559         * lib/freadable.c: Include stdio-impl.h.
52560         (freadable): Remove redundant #defines.
52561         * lib/freadahead.c: Include stdio-impl.h.
52562         (freadahead): Remove redundant #defines.
52563         * lib/freading.c: Include stdio-impl.h.
52564         (freading): Remove redundant #defines.
52565         * lib/freadptr.c: Include stdio-impl.h.
52566         (freadptr): Remove redundant #defines.
52567         * lib/freadseek.c: Include stdio-impl.h.
52568         (freadptrinc): Remove redundant #defines.
52569         * lib/fseeko.c: Include stdio-impl.h.
52570         (rpl_fseeko): Remove redundant #defines.
52571         * lib/fseterr.c: Include stdio-impl.h.
52572         (fseterr): Remove redundant #defines.
52573         * lib/fwritable.c: Include stdio-impl.h.
52574         (fwritable: Remove redundant #defines.
52575         * lib/fwriting.c: Include stdio-impl.h.
52576         (fwriting): Remove redundant #defines.
52577         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52578         * modules/fflush (Files): Likewise.
52579         * modules/fpurge (Files): Likewise.
52580         * modules/freadable (Files): Likewise.
52581         * modules/freadahead (Files): Likewise.
52582         * modules/freading (Files): Likewise.
52583         * modules/freadptr (Files): Likewise.
52584         * modules/freadseek (Files): Likewise.
52585         * modules/fseeko (Files): Likewise.
52586         * modules/fseterr (Files): Likewise.
52587         * modules/fwritable (Files): Likewise.
52588         * modules/fwriting (Files): Likewise.
52589
52590 2008-04-26  Bruno Haible  <bruno@clisp.org>
52591
52592         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52593         restore_seek_optimization, update_fpos_cache): New functions, extracted
52594         from rpl_fflush.
52595         (rpl_fflush): Use them.
52596         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52597         (gl_REPLACE_FFLUSH): Use it.
52598
52599 2008-04-26  Bruno Haible  <bruno@clisp.org>
52600
52601         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52602         on Solaris.
52603         * tests/test-xstrtoimax.sh: Likewise.
52604         * tests/test-xstrtoumax.sh: Likewise.
52605         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52606
52607 2008-04-26  Bruno Haible  <bruno@clisp.org>
52608
52609         * modules/memchr-tests: New file.
52610         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52611
52612 2008-04-26  Eric Blake  <ebb9@byu.net>
52613             Bruno Haible  <bruno@clisp.org>
52614
52615         * lib/memchr.c: Include intprops.h.
52616         (__memchr): Optimize parallel detection of matching bytes. Rename local
52617         variables. Add explanatory comments.
52618
52619 2008-04-26  Bruno Haible  <bruno@clisp.org>
52620
52621         Fix module 'memchr', broken since 2000-10-28.
52622         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52623
52624 2008-04-26  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52627         comments.
52628
52629 2008-04-25  Eric Blake  <ebb9@byu.net>
52630
52631         Use native fstatat on cygwin 1.7.0.
52632         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52633         first.
52634
52635 2008-04-23  Eric Blake  <ebb9@byu.net>
52636
52637         Improve memchr2 performance.
52638         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52639         NUL bytes.
52640         * modules/memchr2 (Depends-on): Use intprops.h.
52641
52642 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52643
52644         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52645         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52646         <blp@cs.stanford.edu>.
52647
52648 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52649
52650         * lib/arpa_inet.in.h: New file.
52651
52652         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52653         (Makefile.am): Sed in substitute header file.
52654
52655         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52656         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52657
52658         * modules/inet_ntop (configure.ac): Use
52659         gl_ARPA_INET_MODULE_INDICATOR.
52660
52661         * modules/inet_pton (configure.ac): Use
52662         gl_ARPA_INET_MODULE_INDICATOR.
52663
52664 2008-04-22  Jim Meyering  <meyering@redhat.com>
52665
52666         * modules/verify (License): Re-license as LGPLv2+.
52667
52668 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52669
52670         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52671         parameter to void* as per POSIX standard (MinGW uses char*).
52672
52673 2008-04-21  Bruno Haible  <bruno@clisp.org>
52674
52675         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52676         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52677         Define to replacements if REPLACE_ISWCNTRL is 1.
52678         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52679         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52680         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52681         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52682         what it fixes.
52683         * doc/posix-functions/iswalpha.texi: Likewise.
52684         * doc/posix-functions/iswblank.texi: Likewise.
52685         * doc/posix-functions/iswcntrl.texi: Likewise.
52686         * doc/posix-functions/iswdigit.texi: Likewise.
52687         * doc/posix-functions/iswgraph.texi: Likewise.
52688         * doc/posix-functions/iswlower.texi: Likewise.
52689         * doc/posix-functions/iswprint.texi: Likewise.
52690         * doc/posix-functions/iswpunct.texi: Likewise.
52691         * doc/posix-functions/iswspace.texi: Likewise.
52692         * doc/posix-functions/iswupper.texi: Likewise.
52693         * doc/posix-functions/iswxdigit.texi: Likewise.
52694         Reported by Alain Guibert.
52695
52696 2008-04-21  Bruno Haible  <bruno@clisp.org>
52697
52698         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52699         Patch by Alain Guibert.
52700
52701 2008-04-21  Bruno Haible  <bruno@clisp.org>
52702
52703         Fix test failures on mingw.
52704         * tests/test-xstrtol.c (print_no_progname): New function.
52705         (main): Install it in error_print_progname hook.
52706         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52707         * tests/test-xstrtoimax.sh: Likewise.
52708         * tests/test-xstrtoumax.sh: Likewise.
52709
52710 2008-04-21  Bruno Haible  <bruno@clisp.org>
52711
52712         Fix test failure on mingw.
52713         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52714
52715 2008-04-21  Bruno Haible  <bruno@clisp.org>
52716
52717         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52718         Actually assign a value.
52719
52720 2008-04-20  Bruno Haible  <bruno@clisp.org>
52721
52722         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52723         take 2.
52724         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52725         'canonicalize-lgpl' module is also used.
52726         * lib/canonicalize-lgpl.c: Undo last change.
52727         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52728
52729 2008-04-20  Bruno Haible  <bruno@clisp.org>
52730
52731         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52732         config.h. Provide _mkdir based fallback for mingw.
52733         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52734         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52735         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52736         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52737         rather than defining mkdir in config.h.
52738         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52739         (gl_SYS_STAT_H_DEFAULTS): New macro.
52740         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52741         HAVE_IO_H any more.
52742         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52743         HAVE_DECL_MKDIR and HAVE_IO_H.
52744
52745 2008-04-20  Bruno Haible  <bruno@clisp.org>
52746
52747         * lib/isapipe.c: Port to native Windows platforms.
52748
52749 2008-04-20  Bruno Haible  <bruno@clisp.org>
52750
52751         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52752
52753 2008-04-21  Eric Blake  <ebb9@byu.net>
52754
52755         Work around preprocessors that don't handle UINTMAX_MAX.
52756         * lib/memchr2.c (memchr2): Avoid embedded #if.
52757         Reported by Alain Guibert, fix suggested by Bruno Haible.
52758
52759 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52760
52761         * doc/posix-functions/strftime.texi (strftime): Explain better
52762         Windows incompatibility.  Suggested by Micah Cowan
52763         <micah@cowan.name>.
52764
52765 2008-04-20  Bruno Haible  <bruno@clisp.org>
52766
52767         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52768         unistr/u8-mblen.
52769
52770 2008-04-20  Bruno Haible  <bruno@clisp.org>
52771
52772         Fix test failure on platforms with non-GNU iconv.
52773         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52774         (U_TO_U8): Use it, rather than u16_to_u8.
52775         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52776         units at the end of the input string.
52777         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52778
52779 2008-04-20  Bruno Haible  <bruno@clisp.org>
52780
52781         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52782         when the resulting length is 0.
52783         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52784
52785 2008-04-20  Bruno Haible  <bruno@clisp.org>
52786
52787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52788         works.
52789         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52790
52791 2008-04-20  Bruno Haible  <bruno@clisp.org>
52792
52793         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52794         * modules/tsearch-tests (configure.ac): Test for initstate function.
52795
52796 2008-04-20  Bruno Haible  <bruno@clisp.org>
52797
52798         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52799         for nlink_t if missing.
52800         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52801
52802 2008-04-19  Bruno Haible  <bruno@clisp.org>
52803
52804         Work around snprintf bug on Linux libc5.
52805         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52806         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52807         gl_SNPRINTF_SIZE1.
52808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52809         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52810         that test failed.
52811         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52812         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52813         * modules/snprintf (Files): Add m4/printf.m4.
52814         * modules/vsnprintf (Files): Likewise.
52815         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52816         * doc/posix-functions/vsnprintf.texi: Likewise.
52817
52818 2008-04-19  Bruno Haible  <bruno@clisp.org>
52819
52820         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52821         from 0.0058 to less than 10^-7.
52822
52823 2008-04-19  Bruno Haible  <bruno@clisp.org>
52824
52825         Fix rounding when a precision is given.
52826         * lib/vasnprintf.c (is_borderline): New function.
52827         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52828         9...9x.
52829         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52830         %e, %g.
52831         * tests/test-vasprintf-posix.c (test_function): Likewise.
52832         * tests/test-snprintf-posix.h (test_function): Likewise.
52833         * tests/test-sprintf-posix.h (test_function): Likewise.
52834         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52835         * tests/test-printf-posix.h (test_function): Likewise.
52836         * tests/test-printf-posix.output: Update.
52837         Reported by John Darrington <john@darrington.wattle.id.au> via
52838         Ben Pfaff <blp@cs.stanford.edu>.
52839
52840 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52841
52842         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52843         Suggested by Bruno Haible <bruno@clisp.org>.
52844
52845 2008-04-17  Bruno Haible  <bruno@clisp.org>
52846
52847         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52848         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52849         implementation.
52850         Patch by Bruce Merry <bmerry@gmail.com>.
52851
52852 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52853
52854         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52855         doesn't work under Windows.
52856
52857 2008-04-16  Bruno Haible  <bruno@clisp.org>
52858
52859         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52860         New macros.
52861         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52862         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52863         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52864         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52865         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52866         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52867         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52868         macros.
52869         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52870         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52871         Northern Sotho, Uighur.
52872
52873 2008-04-16  Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52876         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52877         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52878         Reported by Daniel Bergström <daniel@octocode.com>.
52879
52880 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52881             Bruno Haible  <bruno@clisp.org>
52882
52883         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52884         function.
52885         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52886         New functions, mostly extracted from gl_locale_name_default.
52887         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52888
52889 2008-04-16  Eric Blake  <ebb9@byu.net>
52890
52891         Adjust strtod detection to catch glibc 2.7 bug.
52892         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52893         Reported by John Gatewood Ham.
52894
52895 2008-04-16  Bruno Haible  <bruno@clisp.org>
52896
52897         Add tentative support for Linux libc5.
52898         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52899         * lib/fpurge.c (fpurge): Likewise.
52900         * lib/freadable.c (freadable): Likewise.
52901         * lib/freadahead.c (freadahead): Likewise.
52902         * lib/freading.c (freading): Likewise.
52903         * lib/freadptr.c (freadptr): Likewise.
52904         * lib/freadseek.c (freadptrinc): Likewise.
52905         * lib/fseeko.c (rpl_fseeko): Likewise.
52906         * lib/fseterr.c (fseterr): Likewise.
52907         * lib/fwritable.c (fwritable): Likewise.
52908         * lib/fwriting.c (fwriting): Likewise.
52909         Reported by Alain Guibert <alguibert+bts@free.fr>.
52910
52911 2008-04-15  Bruno Haible  <bruno@clisp.org>
52912
52913         * modules/mathl (configure.ac): Define module indicator.
52914
52915 2008-04-15  Bruno Haible  <bruno@clisp.org>
52916
52917         * lib/logl.c (logl): Remove unused variables.
52918
52919 2008-04-15  Bruno Haible  <bruno@clisp.org>
52920
52921         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52922         fails.
52923
52924 2008-04-15  Bruno Haible  <bruno@clisp.org>
52925
52926         * lib/trim.c (trim2): Fix argument of isspace() macro.
52927
52928 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52929
52930         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52931         to 0.
52932         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52933
52934 2008-04-14  Bruno Haible  <bruno@clisp.org>
52935
52936         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52937         AC_LANG_PROGRAM argument.
52938         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52939         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52940         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52941         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52942         * m4/math_h.m4 (gl_MATH_H): Likewise.
52943         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52944         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52945         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52946         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52947         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52948         * m4/regex.m4 (gl_REGEX): Likewise.
52949         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52950         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52952         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52953         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52954         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52955         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52956         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52957
52958 2008-04-14  Jim Meyering  <meyering@redhat.com>
52959
52960         test-strtod: fix typos: s/abs/fabs/
52961         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52962
52963 2008-04-13  Bruno Haible  <bruno@clisp.org>
52964
52965         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52966         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52967         module is also used and while not building the reloc-wrapper.
52968
52969 2008-04-13  Bruno Haible  <bruno@clisp.org>
52970
52971         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52972
52973 2008-04-13  Bruno Haible  <bruno@clisp.org>
52974
52975         Fix AIX compilation failure introduced on 2008-04-02.
52976         * tests/test-frexp.c (exp): Undefine before redefining.
52977         * tests/test-frexpl.c (exp): Likewise.
52978
52979 2008-04-13  Bruno Haible  <bruno@clisp.org>
52980
52981         Work around a HP-UX stdio bug.
52982         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52983         * tests/test-ftello.c (main): Likewise.
52984         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52985         * doc/posix-functions/ftello.texi: Likewise.
52986
52987 2008-04-13  Bruno Haible  <bruno@clisp.org>
52988
52989         Make test-signbit pass on HP-UX/hppa.
52990         * tests/test-signbit.c (minus_zerol): New variable.
52991         (test_signbitl): Use it.
52992
52993 2008-04-13  Bruno Haible  <bruno@clisp.org>
52994
52995         Make truncl work on OSF/1 4.0.
52996         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52997         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52998         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
53000         HAVE_DECL_TRUNCL.
53001         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
53002         HAVE_DECL_TRUNCL.
53003         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
53004
53005 2008-04-13  Bruno Haible  <bruno@clisp.org>
53006
53007         * lib/unictype.h: Remove trailing comma from enumeration definitions.
53008
53009 2008-04-13  Bruno Haible  <bruno@clisp.org>
53010
53011         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
53012         expression, so as to avoid HP-UX 11 cc compiler bug.
53013
53014 2008-04-13  Bruno Haible  <bruno@clisp.org>
53015
53016         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
53017
53018 2008-04-13  Bruno Haible  <bruno@clisp.org>
53019
53020         * lib/git-merge-changelog.c: Remove empty declaration outside of
53021         functions.
53022
53023 2008-04-13  Bruno Haible  <bruno@clisp.org>
53024
53025         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
53026
53027 2008-04-13  Bruno Haible  <bruno@clisp.org>
53028
53029         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
53030         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
53031         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
53032         also if it exists but lacks definitions of the SHUT_* macros.
53033         * modules/sys_socket (Description): Update.
53034         Reported by Elbert Pol <e.pol@chello.nl>.
53035
53036 2008-04-13  Bruno Haible  <bruno@clisp.org>
53037
53038         * lib/localcharset.c (OS2): Don't redefine if already defined.
53039         Reported by Elbert Pol <e.pol@chello.nl>.
53040
53041 2008-04-13  Bruno Haible  <bruno@clisp.org>
53042
53043         * lib/binary-io.h [__EMX__]: Include <io.h>.
53044         Reported by Elbert Pol <e.pol@chello.nl>.
53045
53046 2008-04-12  Bruno Haible  <bruno@clisp.org>
53047
53048         * lib/fpucw.h: Enable the definitions also for x86_64.
53049         Needed for NetBSD/x86_64.
53050         Reported by Thomas Klausner <tk@giga.or.at>.
53051
53052 2008-04-12  Bruno Haible  <bruno@clisp.org>
53053
53054         * tests/test-strtod.c: Include isnand.h.
53055         (main): Use isnand instead of isnan.
53056         Reported by Jim Meyering.
53057
53058 2008-04-12  Bruno Haible  <bruno@clisp.org>
53059
53060         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
53061         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53062
53063 2008-04-12  Jim Meyering  <meyering@redhat.com>
53064
53065         * m4/math_h.m4 (gl_MATH_H): Fix typos.
53066
53067 2008-04-12  Bruno Haible  <bruno@clisp.org>
53068
53069         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
53070         Reported by Elbert Pol <e.pol@chello.nl>.
53071
53072 2008-04-12  Eric Blake  <ebb9@byu.net>
53073
53074         Work around Solaris 10 math.h bug.
53075         * m4/math_h.m4 (gl_MATH_H): Check for bug.
53076         (gl_MATH_H_DEFAULTS): Set up default.
53077         * modules/math (Makefile.am): Replace new indicators.
53078         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
53079         * tests/test-math.c (main): Test this.
53080         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
53081         * doc/posix-headers/math.texi (math.h): Mention bug.
53082         Reported by Nelson H. F. Beebe and Jim Meyering.
53083
53084 2008-04-11  Bruno Haible  <bruno@clisp.org>
53085
53086         Adapt to future versions of Apple GCC.
53087         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
53088         Reported by Peter O'Gorman <peter@pogma.com>.
53089
53090 2008-04-11  Bruno Haible  <bruno@clisp.org>
53091
53092         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
53093
53094 2008-04-11  Bruno Haible  <bruno@clisp.org>
53095
53096         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
53097
53098         * modules/getaddrinfo-tests (Makefile.am): Define
53099         test_getaddrinfo_LDADD.
53100
53101 2008-04-11  Bruno Haible  <bruno@clisp.org>
53102
53103         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
53104         (init): Fix syntax error.
53105         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
53106         is declared.
53107
53108 2008-04-11  Bruno Haible  <bruno@clisp.org>
53109
53110         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
53111         * modules/glob (Depends-on): Add stdbool.
53112
53113 2008-04-11  Bruno Haible  <bruno@clisp.org>
53114
53115         * lib/trim.c: Include <string.h>.
53116
53117 2008-04-11  Eric Blake  <ebb9@byu.net>
53118
53119         Avoid compile failure on OS/2.
53120         * lib/regex_internal.h (internal_function): Disable optimization
53121         on OS/2 (__EMX__), where it caused compiler error.
53122         Reported by Elbert Pol.
53123
53124 2008-04-11  Bruno Haible  <bruno@clisp.org>
53125
53126         Flush the standard error stream before aborting. Needed on mingw.
53127         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
53128         * tests/test-array_list.c (ASSERT): Likewise.
53129         * tests/test-array_oset.c (ASSERT): Likewise.
53130         * tests/test-avltree_list.c (ASSERT): Likewise.
53131         * tests/test-avltree_oset.c (ASSERT): Likewise.
53132         * tests/test-avltreehash_list.c (ASSERT): Likewise.
53133         * tests/test-binary-io.c (ASSERT): Likewise.
53134         * tests/test-byteswap.c (ASSERT): Likewise.
53135         * tests/test-c-ctype.c (ASSERT): Likewise.
53136         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
53137         * tests/test-c-strcasestr.c (ASSERT): Likewise.
53138         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
53139         * tests/test-c-strstr.c (ASSERT): Likewise.
53140         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
53141         * tests/test-canonicalize.c (ASSERT): Likewise.
53142         * tests/test-carray_list.c (ASSERT): Likewise.
53143         * tests/test-ceilf1.c (ASSERT): Likewise.
53144         * tests/test-ceilf2.c (ASSERT): Likewise.
53145         * tests/test-ceill.c (ASSERT): Likewise.
53146         * tests/test-count-one-bits.c (ASSERT): Likewise.
53147         * tests/test-fbufmode.c (ASSERT): Likewise.
53148         * tests/test-fflush2.c (ASSERT): Likewise.
53149         * tests/test-floorf1.c (ASSERT): Likewise.
53150         * tests/test-floorf2.c (ASSERT): Likewise.
53151         * tests/test-floorl.c (ASSERT): Likewise.
53152         * tests/test-fopen.c (ASSERT): Likewise.
53153         * tests/test-fpending.c (ASSERT): Likewise.
53154         * tests/test-fprintf-posix.c (ASSERT): Likewise.
53155         * tests/test-fpurge.c (ASSERT): Likewise.
53156         * tests/test-freadable.c (ASSERT): Likewise.
53157         * tests/test-freadahead.c (ASSERT): Likewise.
53158         * tests/test-freading.c (ASSERT): Likewise.
53159         * tests/test-freadptr.c (ASSERT): Likewise.
53160         * tests/test-freadptr2.c (ASSERT): Likewise.
53161         * tests/test-freadseek.c (ASSERT): Likewise.
53162         * tests/test-freopen.c (ASSERT): Likewise.
53163         * tests/test-frexp.c (ASSERT): Likewise.
53164         * tests/test-frexpl.c (ASSERT): Likewise.
53165         * tests/test-fseek.c (ASSERT): Likewise.
53166         * tests/test-fseeko.c (ASSERT): Likewise.
53167         * tests/test-fstrcmp.c (ASSERT): Likewise.
53168         * tests/test-ftell.c (ASSERT): Likewise.
53169         * tests/test-ftello.c (ASSERT): Likewise.
53170         * tests/test-func.c (ASSERT): Likewise.
53171         * tests/test-fwritable.c (ASSERT): Likewise.
53172         * tests/test-fwriting.c (ASSERT): Likewise.
53173         * tests/test-getdelim.c (ASSERT): Likewise.
53174         * tests/test-getline.c (ASSERT): Likewise.
53175         * tests/test-i-ring.c (ASSERT): Likewise.
53176         * tests/test-iconv-utf.c (ASSERT): Likewise.
53177         * tests/test-iconv.c (ASSERT): Likewise.
53178         * tests/test-isfinite.c (ASSERT): Likewise.
53179         * tests/test-isnand.c (ASSERT): Likewise.
53180         * tests/test-isnanf.c (ASSERT): Likewise.
53181         * tests/test-isnanl.h (ASSERT): Likewise.
53182         * tests/test-ldexpl.c (ASSERT): Likewise.
53183         * tests/test-linked_list.c (ASSERT): Likewise.
53184         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53185         * tests/test-localename.c (ASSERT): Likewise.
53186         * tests/test-lseek.c (ASSERT): Likewise.
53187         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53188         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53189         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53190         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53191         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53192         * tests/test-mbschr.c (ASSERT): Likewise.
53193         * tests/test-mbscspn.c (ASSERT): Likewise.
53194         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53195         * tests/test-mbspbrk.c (ASSERT): Likewise.
53196         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53197         * tests/test-mbsrchr.c (ASSERT): Likewise.
53198         * tests/test-mbsspn.c (ASSERT): Likewise.
53199         * tests/test-mbsstr1.c (ASSERT): Likewise.
53200         * tests/test-mbsstr2.c (ASSERT): Likewise.
53201         * tests/test-mbsstr3.c (ASSERT): Likewise.
53202         * tests/test-memchr2.c (ASSERT): Likewise.
53203         * tests/test-memmem.c (ASSERT): Likewise.
53204         * tests/test-open.c (ASSERT): Likewise.
53205         * tests/test-printf-frexp.c (ASSERT): Likewise.
53206         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53207         * tests/test-printf-posix.c (ASSERT): Likewise.
53208         * tests/test-quotearg.c (ASSERT): Likewise.
53209         * tests/test-rbtree_list.c (ASSERT): Likewise.
53210         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53211         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53212         * tests/test-round1.c (ASSERT): Likewise.
53213         * tests/test-roundf1.c (ASSERT): Likewise.
53214         * tests/test-roundl.c (ASSERT): Likewise.
53215         * tests/test-signbit.c (ASSERT): Likewise.
53216         * tests/test-sleep.c (ASSERT): Likewise.
53217         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53218         * tests/test-snprintf.c (ASSERT): Likewise.
53219         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53220         * tests/test-stat-time.c (ASSERT): Likewise.
53221         * tests/test-strcasestr.c (ASSERT): Likewise.
53222         * tests/test-strerror.c (ASSERT): Likewise.
53223         * tests/test-striconv.c (ASSERT): Likewise.
53224         * tests/test-striconveh.c (ASSERT): Likewise.
53225         * tests/test-striconveha.c (ASSERT): Likewise.
53226         * tests/test-strsignal.c (ASSERT): Likewise.
53227         * tests/test-strstr.c (ASSERT): Likewise.
53228         * tests/test-strtod.c (ASSERT): Likewise.
53229         * tests/test-trunc1.c (ASSERT): Likewise.
53230         * tests/test-trunc2.c (ASSERT): Likewise.
53231         * tests/test-truncf1.c (ASSERT): Likewise.
53232         * tests/test-truncf2.c (ASSERT): Likewise.
53233         * tests/test-truncl.c (ASSERT): Likewise.
53234         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53235         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53236         * tests/test-vasnprintf.c (ASSERT): Likewise.
53237         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53238         * tests/test-vasprintf.c (ASSERT): Likewise.
53239         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53240         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53241         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53242         * tests/test-vsnprintf.c (ASSERT): Likewise.
53243         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53244         * tests/test-wcwidth.c (ASSERT): Likewise.
53245         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53246         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53247         * tests/test-xvasprintf.c (ASSERT): Likewise.
53248         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53249         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53250         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53251         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53252         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53253         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53254         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53255         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53256         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53257         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53258         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53259         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53260         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53261         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53262         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53263         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53264         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53265         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53266         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53267         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53268         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53269         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53270         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53271         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53272         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53273         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53274         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53275         * tests/unictype/test-combining.c (ASSERT): Likewise.
53276         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53277         * tests/unictype/test-digit.c (ASSERT): Likewise.
53278         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53279         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53280         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53281         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53282         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53283         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53284         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53285         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53286         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53287         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53288         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53289         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53290         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53291         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53292         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53293         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53294         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53295         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53296         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53297         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53298         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53299         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53300         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53301         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53302         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53303         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53304         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53305         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53306         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53307         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53308         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53309         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53310         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53311         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53312         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53313         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53314         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53315         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53316         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53317         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53318         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53319         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53320         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53321         Reported by Eric Blake.
53322
53323 2008-04-11  Bruno Haible  <bruno@clisp.org>
53324
53325         * lib/wchar.in.h: Tweak comment.
53326
53327 2008-04-11  Bruno Haible  <bruno@clisp.org>
53328
53329         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53330         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53331         gl_COMMON.
53332         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53333
53334 2008-04-11  Bruno Haible  <bruno@clisp.org>
53335
53336         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53337
53338 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53339
53340         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53341         of attempting to use non-existing /dev/*random.  Based on patch
53342         from Adam Strzelecki <ono@java.pl> in
53343         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53344
53345 2008-04-08  Bruno Haible  <bruno@clisp.org>
53346
53347         Add tentative support for emx+gcc.
53348         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53349         * lib/fpurge.c (fpurge): Likewise.
53350         * lib/freadable.c (freadable): Likewise.
53351         * lib/freadahead.c (freadahead): Likewise.
53352         * lib/freading.c (freading): Likewise.
53353         * lib/freadptr.c (freadptr): Likewise.
53354         * lib/freadseek.c (freadptrinc): Likewise.
53355         * lib/fseeko.c (rpl_fseeko): Likewise.
53356         * lib/fseterr.c (fseterr): Likewise.
53357         * lib/fwritable.c (fwritable): Likewise.
53358         * lib/fwriting.c (fwriting): Likewise.
53359         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53360
53361 2008-04-09  Eric Blake  <ebb9@byu.net>
53362
53363         Avoid some autoconf warnings.
53364         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53365         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53366         * m4/afs.m4 (gl_AFS): Likewise.
53367         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53368         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53369         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53370         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53371         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53372         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53373         (AC_CHECK_DECLS_ONCE): Likewise.
53374         Rename file...
53375         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53376         gnulib-tool requires autoconf 2.59 or better.
53377         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53378
53379 2008-04-08  Eric Blake  <ebb9@byu.net>
53380
53381         Use 'git describe --match' if present (added in git 1.5.5).
53382         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53383         if possible.
53384
53385 2008-04-08  Bruno Haible  <bruno@clisp.org>
53386
53387         Add tentative support for OpenServer.
53388         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53389         _ptr, _cnt.
53390         * lib/fpurge.c (fpurge): Likewise.
53391         * lib/freadable.c (freadable): Likewise.
53392         * lib/freadahead.c (freadahead): Likewise.
53393         * lib/freading.c (freading): Likewise.
53394         * lib/freadptr.c (freadptr): Likewise.
53395         * lib/freadseek.c (freadptrinc): Likewise.
53396         * lib/fseeko.c (rpl_fseeko): Likewise.
53397         * lib/fseterr.c (fseterr): Likewise.
53398         * lib/fwritable.c (fwritable): Likewise.
53399         * lib/fwriting.c (fwriting): Likewise.
53400         Reported by Roger Cornelius <rac@tenzing.org> and
53401         Brian K. White <brian@aljex.com>.
53402
53403 2008-04-06  Jim Meyering  <meyering@redhat.com>
53404
53405         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53406
53407 2008-04-06  Bruno Haible  <bruno@clisp.org>
53408
53409         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53410         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53411         * tests/test-printf-posix.sh: Likewise.
53412         * tests/test-vfprintf-posix.sh: Likewise.
53413         * tests/test-vprintf-posix.sh: Likewise.
53414         * tests/test-xprintf-posix.sh: Likewise.
53415
53416 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53417
53418         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53419         hide error from 'ls', needed on OS/2.
53420         Report by Elbert Pol <elbert.pol@gmail.com>.
53421
53422 2008-04-04  Eric Blake  <ebb9@byu.net>
53423
53424         Make test-fseeko.c failures meaningful.
53425         * tests/test-fseeko.c: Print line number on failure.
53426         * tests/test-fseek.c: Likewise.
53427         Reported by Nelson H. F. Beebe.
53428
53429         Improve strtod bug detection check.
53430         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53431         required for Solaris 10.
53432         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53433
53434 2008-04-04  Bruno Haible  <bruno@clisp.org>
53435
53436         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53437         by m4/setenv.m4.
53438
53439 2008-04-03  Eric Blake  <ebb9@byu.net>
53440
53441         Ensure sane .version contents.
53442         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53443         version string.
53444         * build-aux/git-version-gen: Improve documentation.
53445
53446         Make GNU make output nicer.
53447         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53448         MAKECMDGOALS to enforce message for all command line targets.  Set
53449         srcdir for use in maint.mk.
53450
53451         Another maintainer tweak.
53452         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53453         a target that regenerates version.
53454
53455 2008-04-03  Jim Meyering  <meyering@redhat.com>
53456
53457         vc-list-files: don't cause coreutils "make po-check" failure
53458         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53459
53460 2008-04-03  Eric Blake  <ebb9@byu.net>
53461
53462         Allow VPATH usage of vc-list-files.
53463         * build-aux/vc-list-files (scriptversion): Add timestamp.
53464         (options): Add --help, --version, -C.
53465         (CVS): Support installed cvsu.
53466
53467 2008-04-02  Bruno Haible  <bruno@clisp.org>
53468
53469         Avoid some "statement with no effect" warnings from gcc.
53470         * tests/test-wctype.c (main): Explicitly ignore unused values.
53471         Reported by Jim Meyering.
53472
53473 2008-04-02  Jim Meyering  <meyering@redhat.com>
53474
53475         Avoid some warnings from "gcc -Wshadow".
53476         * tests/test-frexp.c (exp): Define to a different identifier.
53477         * tests/test-frexpl.c (exp): Likewise.
53478
53479 2008-04-03  Jim Meyering  <meyering@redhat.com>
53480
53481         bootstrap: remove dangling *.[ch] symlinks from lib
53482         * build-aux/bootstrap [dangling symlink removal]: Move find's
53483         -depth option to precede all others, to avoid a warning.
53484         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53485
53486 2008-04-02  Bruno Haible  <bruno@clisp.org>
53487
53488         Avoid some warnings from "gcc -Wshadow".
53489         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53490         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53491         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53492         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53493         Reported by Jim Meyering.
53494
53495 2008-04-01  Bruno Haible  <bruno@clisp.org>
53496
53497         Fix test to work on IRIX 6.5 with cc.
53498         * tests/test-math.c (numeric_equal): New function.
53499         (main): Use it.
53500
53501 2008-04-01  Bruno Haible  <bruno@clisp.org>
53502
53503         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53504
53505 2008-04-01  Bruno Haible  <bruno@clisp.org>
53506
53507         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53508         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53509         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53510         (Depends-on): Remove math.
53511
53512         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53513         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53514         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53515         (Depends-on): Remove math.
53516
53517         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53518         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53519         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53520         (Depends-on): Remove math.
53521         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53522         (Depends-on): Remove math.
53523
53524         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53525         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53526         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53527         (Depends-on): Remove math.
53528         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53529         (Depends-on): Remove math.
53530
53531         * tests/test-round1.c: Include nan.h.
53532         (main): Use NaNd instead of NAN.
53533         * modules/round-tests (Files): Add tests/nan.h.
53534
53535         * tests/test-trunc1.c: Include nan.h.
53536         (main): Use NaNd instead of NAN.
53537         * modules/trunc-tests (Files): Add tests/nan.h.
53538
53539         * tests/test-roundf1.c: Include nan.h.
53540         (main): Use NaNf instead of NAN.
53541         * modules/roundf-tests (Files): Add tests/nan.h.
53542
53543         * tests/test-truncf1.c: Include nan.h.
53544         (main): Use NaNf instead of NAN.
53545         * modules/truncf-tests (Files): Add tests/nan.h.
53546
53547         * tests/test-ceilf1.c: Include nan.h.
53548         (main): Use NaNf instead of NAN.
53549         * modules/ceilf-tests (Files): Add tests/nan.h.
53550
53551         * tests/test-floorf1.c: Include nan.h.
53552         (main): Use NaNf instead of NAN.
53553         * modules/floorf-tests (Files): Add tests/nan.h.
53554
53555         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53556         (main): Use NaNf instead of NAN.
53557         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53558
53559         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53560         (main): Use NaNd instead of NAN.
53561         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53562
53563         * tests/test-frexp.c: Include nan.h.
53564         (main): Use NaNd instead of NAN.
53565         * modules/frexp-tests (Files): Add tests/nan.h.
53566
53567         * lib/isnan.c: Don't include <math.h>.
53568         (FUNC): Don't use NAN macro.
53569         * modules/isnand-nolibm (Depends-on): Remove math.
53570         * modules/isnanf-nolibm (Depends-on): Remove math.
53571         * modules/isnanl (Depends-on): Remove math.
53572         * modules/isnanl-nolibm (Depends-on): Remove math.
53573
53574         * tests/nan.h: New file.
53575
53576 2008-04-01  Eric Blake  <ebb9@byu.net>
53577
53578         Fix typos.
53579         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53580         values to be the right type.
53581
53582         For now, cater to gnulib strtod inaccuracies.
53583         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53584         fractional results.  While not as nice from a QoI perspective, it
53585         is a quicker patch than correctly implementing decimal to binary
53586         rounding.
53587
53588 2008-03-31  Eric Blake  <ebb9@byu.net>
53589
53590         Guarantee a definition of NAN.
53591         * lib/math.in.h (NAN): Define if missing.
53592         * tests/test-math.c (main): Test it.
53593         * doc/posix-headers/math.texi (math.h): Document this.
53594         * lib/isnan.c (rpl_isnand): Use it.
53595         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53596         * tests/test-floorf1.c (NaN): Likewise.
53597         * tests/test-frexp.c (NaN): Likewise.
53598         * tests/test-isnand.c (NaN): Likewise.
53599         * tests/test-isnanf.c (NaN): Likewise.
53600         * tests/test-round1.c (NaN): Likewise.
53601         * tests/test-roundf1.c (NaN): Likewise.
53602         * tests/test-snprintf-posix.h (NaN): Likewise.
53603         * tests/test-sprintf-posix.h (NaN): Likewise.
53604         * tests/test-trunc1.c (NaN): Likewise.
53605         * tests/test-truncf1.c (NaN): Likewise.
53606         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53607         * tests/test-vasprintf-posix.c (NaN): Likewise.
53608         * modules/isnand-nolibm (Depends-on): Add math.
53609         * modules/isnanf-nolibm (Depends-on): Likewise.
53610         * modules/isnanl (Depends-on): Likewise.
53611         * modules/isnanl-nolibm (Depends-on): Likewise.
53612         * modules/snprintf-posix-tests (Depends-on): Likewise.
53613         * modules/sprintf-posix-tests (Depends-on): Likewise.
53614         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53615         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53616         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53617         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53618
53619 2008-03-31  Bruno Haible  <bruno@clisp.org>
53620
53621         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53622         * doc/posix-functions/strtod.texi: Likewise.
53623
53624 2008-03-31  Bruno Haible  <bruno@clisp.org>
53625
53626         * tests/test-strtod.c (main): Don't use C99 syntax.
53627
53628 2008-03-31  Bruno Haible  <bruno@clisp.org>
53629
53630         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53631         Reported by Eric Blake.
53632
53633 2008-03-31  Jim Meyering  <meyering@redhat.com>
53634
53635         Don't compare actual signbit return values.
53636         * tests/test-strtod.c (main): Rather, compare only their
53637         zero/non-zero nature.
53638
53639 2008-03-31  Eric Blake  <ebb9@byu.net>
53640
53641         More strtod documentation.
53642         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53643         failures as distinct bugs.
53644
53645 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53646
53647         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53648         Problem reported by Erik Benada in
53649         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53650
53651 2008-03-30  Bruno Haible  <bruno@clisp.org>
53652
53653         * tests/test-strtod.c: Add comments about which assertion fails on which
53654         platform.
53655         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53656
53657 2008-03-30  Eric Blake  <ebb9@byu.net>
53658
53659         Test signbit behavior on zeros.
53660         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53661         (test_signbitd, test_signbitl): Likewise.
53662
53663         More strtod touchups.
53664         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53665         sign of negative underflow, for now.  Use .5, not .1.
53666         * doc/posix-functions/strtod.texi (strtod): Mention these
53667         limitations.
53668         Reported by Jim Meyering.
53669
53670 2008-03-30  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53673         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53674
53675 2008-03-30  Bruno Haible  <bruno@clisp.org>
53676
53677         Avoid failure when attempting to return empty iconv results on some
53678         platforms.
53679         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53680         allocation, don't report ENOMEM when the resulting string is empty.
53681
53682 2008-03-30  Bruno Haible  <bruno@clisp.org>
53683
53684         Fix buffer overrun.
53685         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53686         Don't consider the width for tmp_length. Check count against tmp_length
53687         before doing the padding. Ensure enough allocation during padding.
53688
53689 2008-03-30  Eric Blake  <ebb9@byu.net>
53690
53691         strtod touchups.
53692         * lib/strtod.c (strtod): Avoid compiler warnings.
53693         Reported by Jim Meyering.
53694
53695 2008-03-30  Bruno Haible  <bruno@clisp.org>
53696
53697         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53698         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53699         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53700         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53701         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53702         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53703         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53704         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53705
53706         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53707         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53708         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53709         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53710         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53711         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53712         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53713         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53714
53715         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53716         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53717         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53718         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53719         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53720         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53721         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53722         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53723
53724         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53725         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53726
53727         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53728         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53729
53730         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53731         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53732
53733         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53734         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53735         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53736
53737         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53738         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53739         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53740
53741         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53742         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53743         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53744
53745         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53746         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53747         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53748
53749         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53750         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53752         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53753         (Depends-on): Add EOVERFLOW.
53754         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53755         (Depends-on): Add EOVERFLOW.
53756         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53757         (Depends-on): Add EOVERFLOW.
53758         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53759         (Depends-on): Add EOVERFLOW.
53760         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53761         (Depends-on): Add EOVERFLOW.
53762         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53763         (Depends-on): Add EOVERFLOW.
53764         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53765         (Depends-on): Add EOVERFLOW.
53766         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53767         (Depends-on): Add EOVERFLOW.
53768
53769         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53770         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53771         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53772
53773         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53774         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53775         * modules/snprintf (Depends-on): Add EOVERFLOW.
53776
53777         * lib/poll.c (EOVERFLOW): Remove fallback.
53778         * modules/poll (Depends-on): Add EOVERFLOW.
53779
53780         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53781         * modules/getugroups (Depends-on): Add EOVERFLOW.
53782
53783         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53784         * modules/getdelim (Depends-on): Add EOVERFLOW.
53785
53786         * lib/ftell.c (EOVERFLOW): Remove fallback.
53787         * modules/ftell (Depends-on): Add EOVERFLOW.
53788
53789         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53790         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53791         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53792
53793         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53794
53795         * modules/EOVERFLOW-tests: New file.
53796         * tests/test-EOVERFLOW.c: New file.
53797
53798         * modules/EOVERFLOW: New file.
53799         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53800
53801 2008-03-30  Bruno Haible  <bruno@clisp.org>
53802
53803         Fix bug introduced on 2007-06-10.
53804         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53805         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53806
53807 2008-03-30  Bruno Haible  <bruno@clisp.org>
53808
53809         Improve freadseek's efficiency after ungetc.
53810         * lib/freadseek.c: Include freadahead.h.
53811         (freadptrinc): New function, extracted from freadseek.
53812         (freadseek): Use it in a loop. Use freadahead to determine the number
53813         of loop iterations.
53814         * modules/freadseek (Depends-on): Add freadahead.
53815         (configure.ac): Require AC_C_INLINE.
53816
53817 2008-03-30  Bruno Haible  <bruno@clisp.org>
53818
53819         * lib/freadseek.c (freadseek): Don't ignore the return value of
53820         freadptr.
53821
53822 2008-03-29  Eric Blake  <ebb9@byu.net>
53823
53824         Add hex float support.
53825         * modules/strtod (Depends-on): Add c-ctype.
53826         (Link): Mention POW_LIB.
53827         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53828         whitespace between 'e' and exponent.
53829         * tests/test-strtod.c (main): Enable hex float tests.
53830         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53831         now provides.
53832
53833         Document various strtod bugs, with some fixes.
53834         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53835         "-0x", "inf", "nan", and hex constants.
53836         * doc/posix-functions/atof.texi (atof): Likewise.
53837         * modules/stdlib (Makefile.am): Support strtod.
53838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53839         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53840         detect additional strtod bugs.
53841         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53842         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53843         bool where appropriate.  Parse 'inf' and 'nan'.
53844         * tests/test-strtod.c: New file.
53845         * modules/strtod (Depends-on): Add stdbool, stdlib.
53846         (configure.ac): Turn on module indicator.
53847         * modules/strtod-tests: New module.
53848
53849 2008-03-29  Eric Blake  <ebb9@byu.net>
53850
53851         Fix ftell on mingw.
53852         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53853         * modules/ftell-tests (Depends-on): Add binary-io.
53854         * modules/ftello-tests (Depends-on): Likewise.
53855         * tests/test-ftell.c (main): Enhance test to cover behavior after
53856         ungetc.  Enforce binary mode.
53857         * tests/test-ftello.c (main): Likewise.
53858
53859         Pass test-freadseek on cygwin.
53860         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53861         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53862         ungetc buffer.
53863
53864         * tests/test-fflush2.c (main): Fix typo.
53865
53866 2008-03-29  Bruno Haible  <bruno@clisp.org>
53867
53868         * tests/test-fflush2.c (main): Temporarily disable the contents of
53869         this test.
53870         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53871         Reported by Eric Blake.
53872
53873 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53874
53875         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53876         (GC_SHA224_DIGEST_SIZE): Add.
53877
53878         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53879         (gc_hash_digest_length): Likewise.
53880         (gc_hash_buffer): Likewise.
53881
53882 2008-03-25  Bruno Haible  <bruno@clisp.org>
53883
53884         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53885         detail which gettext release to use.
53886         Reported by Simon Josefsson.
53887
53888 2008-03-26  Jim Meyering  <meyering@redhat.com>
53889
53890         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53891         * modules/gnumakefile (clean-GNUmakefile): Also, use
53892         test ... && ... || : syntax rather than if-then ... fi.
53893
53894         gnumakefile: Don't double-quote-expand $(VPATH) value.
53895         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53896
53897 2008-03-24  Eric Blake  <ebb9@byu.net>
53898
53899         Alter GNUmakefile to install into top directory.
53900         * modules/maintainer-makefile: Split, and add dependency...
53901         * modules/gnumakefile: to this new module.
53902         * build-aux/GNUmakefile: Move...
53903         * top/GNUmakefile: ...here.
53904         * build-aux/maint.mk: Move...
53905         * top/maint.mk: ...here.
53906         * MODULES.html.sh (Support for maintaining...): Document new
53907         module.
53908
53909 2008-03-23  Bruno Haible  <bruno@clisp.org>
53910
53911         * gnulib-tool: New options --vc-files, --no-vc-files.
53912         (func_usage): Document them.
53913         (vc_files): New variable.
53914         (func_import): Consider vc_files.
53915         (func_create_testdir): Set vc_files to empty.
53916         Suggested by Jim Meyering and Karl Berry.
53917
53918 2008-03-23  Bruno Haible  <bruno@clisp.org>
53919
53920         Fix regex compilation error on HP-UX 11.
53921         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53922         * modules/regex (Files): Add m4/mbstate_t.m4.
53923         Reported by Ton Voon <ton.voon@altinity.com>.
53924
53925 2008-03-23  Bruno Haible  <bruno@clisp.org>
53926
53927         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53928
53929 2008-03-23  Eric Blake  <ebb9@byu.net>
53930             Bruno Haible  <bruno@clisp.org>
53931
53932         Install files from top/ in the destination directory.
53933         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53934         augmentation also for the files from top/.
53935         (func_import, func_create_testdir): Rewrite file names:
53936         top/filename -> filename.
53937
53938 2008-03-23  Bruno Haible  <bruno@clisp.org>
53939
53940         Tweak "gnulib --version" output.
53941         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53942
53943 2008-03-23  Bruno Haible  <bruno@clisp.org>
53944
53945         Tweak "gnulib --version" output.
53946         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53947         rather than contents of ChangeLog, when possible.
53948
53949 2008-03-21  Eric Blake  <ebb9@byu.net>
53950
53951         More --version tweaks.
53952         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53953         date of last ChangeLog entry.
53954
53955 2008-03-21  Jim Meyering  <meyering@redhat.com>
53956
53957         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53958
53959 2008-03-20  Eric Blake  <ebb9@byu.net>
53960
53961         VPATH fix.
53962         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53963
53964 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53965
53966         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53967         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53968
53969 2008-03-20  Eric Blake  <ebb9@byu.net>
53970
53971         Sync GNUmakefile with coreutils.
53972         * build-aux/GNUmakefile (have-Makefile): Rename...
53973         (_have-Makefile): ...to this, for namespace consideration.
53974         (GNUmakefile.cfg): Include, if present.
53975         (_autoreconf): Define a default.
53976         (_is-dist-target): New rule for rebuilds to pick up intra-release
53977         version.
53978         (maint-cfg.mk): Rename...
53979         (cfg.mk): ...to this.
53980
53981 2008-03-18  Jim Meyering  <meyering@redhat.com>
53982
53983         New script and module: mktempd
53984         * MODULES.html.sh (maint+release support): Add mktempd.
53985         * build-aux/mktempd: New file.
53986         * modules/mktempd: New file.
53987
53988 2008-03-15  Jim Meyering  <meyering@redhat.com>
53989
53990         Undo last change.
53991         * lib/sha1.c, lib/md5.c: 63 != ~63.
53992         Reported by Andreas Schwab.
53993
53994         sha1.c, md5.c: Hoist a redundant expression.
53995         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53996         "ctx->buflen" only once, before calling *_process_block.
53997         * lib/md5.c (md5_process_bytes): Likewise.
53998
53999 2008-03-14  Eric Blake  <ebb9@byu.net>
54000
54001         Bump copyright year in files generated by gnulib-tool.
54002         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
54003         gnulib-tool, rather than hard-coding it.
54004
54005         Fix 'gnulib-tool --version' output to work with git.
54006         * gnulib-tool (func_gnulib_dir): New function, extracted from...
54007         (startup): ...here.
54008         (func_version): Use it to invoke git-version-gen, rather than
54009         relying on CVS keyword expansion.  Modernize wording.
54010         (cvsdatestamp, last_checkin_date, version): Kill unused
54011         variables.
54012
54013 2008-03-12  Jim Meyering  <meyering@redhat.com>
54014
54015         Recognize optional cast of the argument to free.
54016         * build-aux/useless-if-before-free: Update regexps.
54017
54018         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
54019
54020 2008-03-11  Bruno Haible  <bruno@clisp.org>
54021
54022         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
54023         by a single package.
54024         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
54025         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
54026         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
54027         Reported by Sam Steingold <sds@gnu.org>.
54028
54029 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
54030
54031         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
54032         repositories.
54033
54034 2008-03-11  Bruno Haible  <bruno@clisp.org>
54035
54036         Avoid conflicts between local macro definitions.
54037         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
54038         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
54039
54040 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
54041             Bruno Haible  <bruno@clisp.org>
54042
54043         Make va_copy work with some version of xlc on AIX 5.1.
54044         * lib/stdarg.in.h: New file.
54045         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
54046         On AIX, use a <stdarg.h> file substitute.
54047         * modules/stdarg (Files): Add lib/stdarg.in.h.
54048         (Depends-on): Add include_next.
54049         (Makefile.am): Build a stdarg.h substitute if requested.
54050         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
54051
54052 2008-03-10  Bruno Haible  <bruno@clisp.org>
54053
54054         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
54055         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54056         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54057
54058 2008-03-10  Bruno Haible  <bruno@clisp.org>
54059
54060         * modules/stdlib (Depends-on): Add include_next, remove
54061         absolute-header.
54062
54063 2008-03-09  Bruno Haible  <bruno@clisp.org>
54064
54065         * lib/freadahead.h (freadahead): Document more precisely.
54066         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
54067         the sum of both buffer sizes.
54068         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
54069         * NEWS: Document the change.
54070
54071 2008-03-09  Bruno Haible  <bruno@clisp.org>
54072
54073         Extend freadptr to return also the buffer size.
54074         * lib/freadptr.h (freadptr): Add sizep argument.
54075         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
54076         (freadptr): Add sizep argument. Determine buffer size like freadahead
54077         does.
54078         * tests/test-freadptr.c: Don't include freadahead.h.
54079         (main): Adapt for new calling convention of freadptr.
54080         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
54081         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
54082         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
54083         tests/test-freadptr2.sh.
54084         (Depends): Remove freadahead.
54085         (TESTS): Add test-freadptr2.sh.
54086         (check_PROGRAMS): Add test-freadptr2.
54087
54088 2008-03-09  Bruno Haible  <bruno@clisp.org>
54089
54090         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
54091         Report and solution by Simon Josefsson.
54092
54093 2008-03-06  Bruno Haible  <bruno@clisp.org>
54094
54095         Make fflush after ungetc work on BSD platforms.
54096         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
54097         * tests/test-fflush2.c: New file.
54098         * tests/test-fflush2.sh: New file.
54099         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
54100         tests/test-fflush2.c.
54101         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
54102         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
54103
54104 2008-03-06  Eric Blake  <ebb9@byu.net>
54105
54106         Likewise for ftello.
54107         * modules/ftello (Dependencies): Add extensions.
54108         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
54109
54110 2008-03-06  Bruno Haible  <bruno@clisp.org>
54111
54112         * modules/fseeko (Dependencies): Add extensions.
54113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
54114         Needed on glibc systems.
54115
54116 2008-03-06  Bruno Haible  <bruno@clisp.org>
54117
54118         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
54119         email address.
54120         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54121
54122 2008-03-06  Bruno Haible  <bruno@clisp.org>
54123
54124         * users.txt: Add libgnupdf.
54125
54126 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
54127
54128         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
54129         (Header File Substitutes, Function Substitutes,
54130         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
54131         (Build robot for gnulib): Fix typo.
54132
54133 2008-03-06  Bruno Haible  <bruno@clisp.org>
54134
54135         * doc/gnulib-tool.texi (VCS Issues): Small updates.
54136         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54137
54138 2008-03-06  Bruno Haible  <bruno@clisp.org>
54139
54140         * doc/func.texi: New file, extracted from doc/gnulib.texi.
54141         * doc/gnulib.texi: Include it.
54142
54143 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54144
54145         * modules/func (License): Change license to unlimited; there was
54146         no LGPL parts in the module anyway.
54147
54148 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54149
54150         * modules/__func__: Renamed to modules/func.
54151         * modules/__func__-tests: Renamed to modules/func-tests.
54152         * tests/test-__func__.c: Renamed to tests/test-func.c.
54153         * m4/__func__.m4: Renamed to m4/func.m4.
54154         * doc/gnulib.texi (__func__): Section renamed to func.
54155         Suggested by Eric Blake <ebb9@byu.net>.
54156
54157 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54158
54159         * doc/gnulib.texi (__func__): Use C99 terminology when talking
54160         about __func__.  Make example self-contained.  Suggested by Eric
54161         Blake <ebb9@byu.net>.
54162
54163         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54164         Suggested by Eric Blake <ebb9@byu.net>.
54165
54166 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54167
54168         * modules/__func__: New file.
54169         * modules/__func__-tests: New file.
54170         * tests/test-__func__.c: New file.
54171         * m4/__func__.m4: New file.
54172         * doc/gnulib.texi (__func__): Document __func__ module.
54173
54174 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54175
54176         * modules/byteswap (License): Re-license as LGPLv2+.
54177
54178 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54179
54180         * doc/Makefile: Add pdf target.
54181
54182 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54183
54184         * modules/inline (License): Use 'unlimited', since there are only
54185         *.m4 files in this module.
54186
54187 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54188             Bruno Haible  <bruno@clisp.org>
54189
54190         Add support for HP C 7.1 on OpenVMS 8.3.
54191         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54192
54193 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54194
54195         Update VMS specifics.
54196         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54197
54198 2008-03-02  Jim Meyering  <meyering@redhat.com>
54199
54200         Remove the last dependency on the "free" module.
54201         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54202         Reported by Bob Proulx.
54203
54204         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54205
54206         Remove useless "if" tests before free.  Deprecate "free" module.
54207         * doc/posix-functions/free.texi: Mention that this
54208         module is no longer useful.
54209         * modules/free (Notice): Say this module is obsolete.
54210         * modules/readutmp (Depends-on): Remove free.
54211         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54212         * lib/putenv.c (putenv): Likewise.
54213         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54214         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54215         * tests/test-c-strcasestr.c (main): Likewise.
54216         * tests/test-c-strstr.c (main): Likewise.
54217         * tests/test-mbscasestr1.c (main): Likewise.
54218         * tests/test-mbscasestr2.c (main): Likewise.
54219         * tests/test-mbsstr1.c (main): Likewise.
54220         * tests/test-mbsstr2.c (main): Likewise.
54221         * tests/test-memmem.c (main): Likewise.
54222         * tests/test-strcasestr.c (main): Likewise.
54223         * tests/test-striconv.c (main): Likewise.
54224         * tests/test-striconveh.c (main): Likewise.
54225         * tests/test-striconveha.c (main): Likewise.
54226         * tests/test-strstr.c (main): Likewise.
54227
54228         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54229
54230         bootstrap: sync from coreutils again
54231         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54232
54233 2008-03-01  Jim Meyering  <meyering@redhat.com>
54234
54235         bootstrap: sync from coreutils
54236         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54237         also when the target doesn't exist.
54238
54239 2008-03-01  Eric Blake  <ebb9@byu.net>
54240
54241         Fix bugs in last patch.
54242         * lib/memchr2.c (memchr2): Fix typo.
54243         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54244         extension.
54245         Reported by Bruce Korb.
54246
54247         New module 'memchr2'.
54248         * modules/memchr2: New file.
54249         * modules/memchr2-tests: Likewise.
54250         * lib/memchr2.h: Likewise.
54251         * lib/memchr2.c: Likewise, based on memchr.c.
54252         * tests/test-memchr2.c: New test.
54253         * MODULES.html.sh (String handling): Add memchr2.
54254
54255 2008-02-29  Bruno Haible  <bruno@clisp.org>
54256
54257         * modules/freadseek-tests: New file.
54258         * tests/test-freadseek.sh: New file.
54259         * tests/test-freadseek.c: New file.
54260
54261         New module 'freadseek'.
54262         * modules/freadseek: New file.
54263         * lib/freadseek.h: New file.
54264         * lib/freadseek.c: New file.
54265         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54266
54267 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54268
54269         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54270         wydawca.
54271
54272         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54273         program_invocation_name and program_invocation_short_name are
54274         present.
54275
54276 2008-02-28  Bruno Haible  <bruno@clisp.org>
54277
54278         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54279         * tests/test-freadptr.sh: Also test non-seekable stdin.
54280
54281 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54282
54283         * build-aux/bootstrap (source_base, m4_base)
54284         (doc_base, tests_base): New variables.
54285         (gnulib_tool_options): Do not hardcode base directories, use
54286         the above variables instead.
54287
54288 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54289
54290         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54291
54292 2008-02-28  Bruno Haible  <bruno@clisp.org>
54293
54294         * modules/freadptr-tests: New file.
54295         * tests/test-freadptr.sh: New file.
54296         * tests/test-freadptr.c: New file.
54297
54298         New module 'freadptr'.
54299         * modules/freadptr: New file.
54300         * lib/freadptr.h: New file.
54301         * lib/freadptr.c: New file.
54302         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54303
54304 2008-02-26  Karl Berry  <karl@freefriends.org>
54305
54306         Sync from Libtool:
54307         * libltdl/argz.c (argz_add, argz_count): New functions.
54308         * libltdl/argz.in.h: Declare them.
54309         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54310
54311 2008-02-22  Bruno Haible  <bruno@clisp.org>
54312
54313         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54314         is a pointer type.  Needed for HP-UX 10.
54315         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54316         * doc/posix-functions/gmtime_r.texi: Likewise.
54317         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54318
54319 2008-02-24  Bruno Haible  <bruno@clisp.org>
54320
54321         * modules/environ-tests: New file.
54322         * tests/test-environ.c: New file.
54323
54324         New module 'environ'.
54325         * modules/environ: New file.
54326         * lib/unistd.in.h (environ): New declaration.
54327         * m4/environ.m4: New file.
54328         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54329         after use.
54330         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54331         HAVE_DECL_ENVIRON.
54332         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54333         HAVE_DECL_ENVIRON.
54334         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54335         wrong claim that 'environ' is missing on some systems.
54336         * modules/execute (Depends-on): Add environ.
54337         * lib/execute.c (environ): Remove fallback declaration.
54338         * modules/pipe (Depends-on): Add environ.
54339         * lib/pipe.c (environ): Remove fallback declaration.
54340         * modules/setenv (Depends-on): Add environ.
54341         * lib/setenv.c (environ): Remove fallback declaration.
54342         * modules/unsetenv (Depends-on): Add environ.
54343         * lib/unsetenv.c (environ): Remove fallback declaration.
54344         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54345         m4/environ.m4.
54346         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54347         (gl_PREREQ_UNSETENV): Likewise.
54348
54349 2008-02-24  Bruno Haible  <bruno@clisp.org>
54350
54351         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54352
54353 2008-02-20  Bob Proulx  <bob@proulx.com>
54354
54355         Enable use of older two part flavor 'git describe'.
54356         * build-aux/git-version-gen: If using the older two part flavor of
54357         git version then recreate the third part now present in the
54358         newer three part flavor of git describe.
54359
54360 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54361
54362         * lib/fts.c (fts_build): Typo correction to comment.
54363
54364 2008-02-17  Bruno Haible  <bruno@clisp.org>
54365
54366         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54367         generating no-op conflicts.
54368
54369 2008-02-17  Bruno Haible  <bruno@clisp.org>
54370
54371         Speed up by 10%.
54372         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54373         result_entries, rather than an index-based loop.
54374
54375 2008-02-17  Bruno Haible  <bruno@clisp.org>
54376
54377         Speed up by 25%.
54378         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54379         'hashcode_cached'.
54380         (entry_create): New function.
54381         (entry_hashcode): Use the cached hashcode if possible.
54382         (read_changelog_file, try_split_merged_entry): Use entry_create.
54383
54384 2008-02-17  Bruno Haible  <bruno@clisp.org>
54385
54386         Speed up from O(n^2) to O(n) for long ChangeLog files.
54387         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54388         (read_changelog_file): Change implementation of entries_reversed list
54389         to rbtreehash.
54390         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54391
54392 2008-02-17  Bruno Haible  <bruno@clisp.org>
54393
54394         New option --split-merged-entry.
54395         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54396         (find_paragraph_end, try_split_merged_entry): New functions.
54397         (long_options): Add option --split-merged-entry.
54398         (usage): Document option --split-merged-entry.
54399         (main): Implement option --split-merged-entry.
54400         Reported by Eric Blake.
54401
54402 2008-02-17  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/git-merge-changelog.c: Include c-strstr.h.
54405         (main): Support the "git pull --rebase" situation.
54406         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54407         Reported by Eric Blake.
54408
54409 2008-02-16  Eric Blake  <ebb9@byu.net>
54410
54411         Avoid doubling \ in common case of "c-maybe" quoting style.
54412         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54413         eliding outer quotes.
54414         * lib/quotearg.h: Document this.
54415         * tests/test-quotearg.c (result_strings, inputs, results_g)
54416         (flag_results, locale_results): Test it by adding a new string to
54417         each test group.
54418         (compare_strings): Test new string.
54419
54420 2008-02-13  Eric Blake  <ebb9@byu.net>
54421
54422         Avoid trigraph quoting in default output.
54423         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54424         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54425         unless explicitly requested.
54426         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54427
54428 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54429
54430         Don't rely on signed integer overflowing to negative value.
54431         * lib/getugroups.c (getugroups): Include <limits.h>.
54432         Instead, compare against INT_MAX, and increment only if the test passes.
54433
54434 2008-02-13  Jim Meyering  <meyering@redhat.com>
54435         and Eric Blake  <ebb9@byu.net>
54436
54437         Avoid shadowing warning and compile errors on Linux.
54438         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54439         forwarding macros on Linux.
54440         (dcgettext): Define a stub, for Linux.
54441         (results_g, main): Avoid warnings.
54442
54443 2008-02-12  Eric Blake  <ebb9@byu.net>
54444
54445         Silence warning in last patch.
54446         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54447
54448         Quotearg part 4: add tests, fix c-maybe colon quoting.
54449         * lib/quotearg.h: Improve documentation.
54450         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54451         escapes when adding outer quotes.  When quoting trigraphs, use
54452         valid C notation.  When quoting NUL, omit extra characters if next
54453         character is not digit.  Alter prototype.
54454         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54455         callers.
54456         * modules/quotearg-tests: New module.
54457         * tests/test-quotearg.c: New test.
54458
54459 2008-02-07  Eric Blake  <ebb9@byu.net>
54460
54461         Quotearg part 3: add flag to control outer quote elision.
54462         * lib/quotearg.h (c_maybe_quoting_style): New style.
54463         (enum quoting_flags): Better documentation of flags.
54464         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54465         c-maybe style.
54466         (quotearg_buffer_restyled): Handle new flag to elide outer
54467         quotes.
54468
54469         Quotearg part 2: add flag that can control NUL elision.
54470         * lib/quotearg.h (set_quoting_flags): New prototype.
54471         * lib/quotearg.c (struct quoting_options): Add flag field.
54472         (set_quoting_flags): New function.
54473         (quotearg_buffer_restyled): Add flags parameter.
54474         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54475         (quotearg_n_options): Set the flag, since length cannot be
54476         returned.
54477         (quoting_options_from_style): Default flags correctly.
54478
54479         Quotearg part 1: more wrappers, restore quotearg_char state.
54480         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54481         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54482         (quotearg_colon_mem): New wrappers.
54483         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54484         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54485         functions.
54486         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54487         (quotearg_colon_mem): New functions.
54488
54489 2008-02-11  Bruno Haible  <bruno@clisp.org>
54490
54491         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54492         library in the current directory: it does not work with parallel make.
54493         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54494
54495 2008-02-11  Bruno Haible  <bruno@clisp.org>
54496
54497         * .gitattributes: New file.
54498
54499 2008-02-11  Jim Meyering  <meyering@redhat.com>
54500
54501         useless-if-before-free: Fix reversed exit values.
54502         * build-aux/useless-if-before-free: Use correct values
54503         for EXIT_MATCH and EXIT_NO_MATCH.
54504
54505         * build-aux/useless-if-before-free: Close stdout carefully.
54506
54507 2008-02-10  Bruno Haible  <bruno@clisp.org>
54508
54509         New module 'git-merge-changelog'.
54510         * modules/git-merge-changelog: New file.
54511         * lib/git-merge-changelog.c: New file.
54512
54513 2008-02-10  Jim Meyering  <meyering@redhat.com>
54514
54515         useless-if-before-free: New option: --list (-l).
54516
54517         useless-if-before-free: Don't exit immediately upon open failure.
54518         * build-aux/useless-if-before-free: Exit 2 for errors.
54519         Upon failure to open a file, don't exit immediately.
54520         Rather, just warn and continue with any remaining files.
54521
54522 2008-02-10  Bruno Haible  <bruno@clisp.org>
54523
54524         New abstract list operation 'node_set_value'.
54525         * lib/gl_list.h (gl_list_node_set_value): New function.
54526         (struct gl_list_implementation): New field node_set_value.
54527         * lib/gl_list.c (gl_list_node_set_value): New function.
54528         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54529         (gl_array_list_implementation): Update.
54530         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54531         (gl_carray_list_implementation): Update.
54532         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54533         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54534         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54535         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54536         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54537         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54538         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54539         Update.
54540         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54541         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54542         (gl_sublist_list_implementation): Update.
54543
54544 2008-02-10  Bruno Haible  <bruno@clisp.org>
54545
54546         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54547         Needed when ELEMENT is #defined to 'some_type *'.
54548
54549 2008-02-10  Jim Meyering  <meyering@redhat.com>
54550
54551         New script and module: useless-if-before-free
54552         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54553         * build-aux/useless-if-before-free: New file.
54554         * modules/useless-if-before-free: New file.
54555
54556         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54557
54558         xstrtol_error: Fix typo.
54559         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54560         s/exit_failure/exit_status/.
54561
54562 2008-02-09  Jim Meyering  <meyering@redhat.com>
54563
54564         New script and module: gitlog-to-changelog
54565         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54566         * modules/gitlog-to-changelog: New file.
54567         * build-aux/gitlog-to-changelog: New file.
54568
54569 2008-02-08  Jim Meyering  <meyering@redhat.com>
54570
54571         Avoid two "parameter unused" warnings.
54572         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54573         Mark "st" as used.
54574
54575         Use "git COMMAND", not "git-COMMAND".
54576         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54577         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54578         * build-aux/git-version-gen: Use "git status", not "git-status".
54579
54580 2008-02-07  Bruno Haible  <bruno@clisp.org>
54581
54582         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54583         Avoids a crash on Windows Vista.
54584         Reported by Adam Strzelecki <ono@java.pl> via
54585         Simon Josefsson <simon@josefsson.org>.
54586
54587 2008-02-06  Bruno Haible  <bruno@clisp.org>
54588
54589         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54590         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54591         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54593         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54594         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54595         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54596         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54597         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54598         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54599         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54600         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54601         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54602         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54603         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54604         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54605         left-adjust flag.
54606         * tests/test-snprintf-posix.h (test_function): Likewise.
54607         * tests/test-sprintf-posix.h (test_function): Likewise.
54608         * tests/test-vasprintf-posix.c (test_function): Likewise.
54609         * doc/posix-functions/fprintf.texi: Update.
54610         * doc/posix-functions/printf.texi: Update.
54611         * doc/posix-functions/snprintf.texi: Update.
54612         * doc/posix-functions/sprintf.texi: Update.
54613         * doc/posix-functions/vfprintf.texi: Update.
54614         * doc/posix-functions/vprintf.texi: Update.
54615         * doc/posix-functions/vsnprintf.texi: Update.
54616         * doc/posix-functions/vsprintf.texi: Update.
54617         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54618
54619 2008-02-06  Bruno Haible  <bruno@clisp.org>
54620
54621         Fix bug introduced on 2008-01-26.
54622         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54623
54624 2008-02-06  Bruno Haible  <bruno@clisp.org>
54625
54626         Fix bug introduced on 2007-06-10.
54627         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54628         !NEED_PRINTF_FLAG_ZERO.
54629
54630 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54631
54632         getloadavg: use libperfstat on AIX5
54633         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54634
54635 2008-02-03  Bruno Haible  <bruno@clisp.org>
54636
54637         * lib/diffseq.h: Add comments about required #includes.
54638         Reported by Michael Biggs <gnulib@doubleplum.net>.
54639
54640 2008-02-01  Bruno Haible  <bruno@clisp.org>
54641
54642         * users.txt: Add gnuit.
54643
54644 2008-01-31  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/md4.c (set_uint32): Mark as inline.
54647         * lib/md5.c (set_uint32): Likewise.
54648         * lib/sha1.c (set_uint32): Likewise.
54649         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54650         * m4/md5.m4 (gl_MD5): Likewise.
54651         * m4/sha1.m4 (gl_SHA1): Likewise.
54652
54653 2008-01-31  Jim Meyering  <meyering@redhat.com>
54654
54655         Use "sizeof VAR", rather than a literal "4".
54656         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54657         * lib/md4.c (md4_read_ctx): Likewise.
54658         * lib/sha1.c (sha1_read_ctx): Likewise.
54659
54660 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54661
54662         * tests/test-sha1.c: New file, based on test-md5.c.
54663
54664         * modules/crypto/sha1-tests: New file.
54665
54666 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54667
54668         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54669
54670 2008-01-31  Jim Meyering  <meyering@redhat.com>
54671
54672         Prefer "sizeof v" over the equivalent "4".
54673         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54674         * lib/md5.c (set_uint32): Likewise.
54675         * lib/sha1.c (set_uint32): Likewise.
54676
54677 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54678
54679         * lib/sha1.c (set_uint32): Mark function as static.
54680
54681 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54682
54683         md2: clarify comments to say that alignment is not required.
54684         * lib/md2.h: Remove warning about alignment in comment.
54685         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54686         never been required.
54687
54688 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54689
54690         md4: adapt alignment constraint fix from sha1.
54691         * lib/md4.c (set_uint32): New function, from sha1.c
54692         (md4_read_ctx): Use it.
54693         (md4_finish_ctx): Doc fix.
54694         * lib/md4.h: Doc fix.
54695
54696 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54697
54698         md5: adapt alignment constraint fix from sha1.
54699         * lib/md5.c (set_uint32): New function, from sha1.c
54700         (md5_read_ctx): Use it.
54701         (md5_finish_ctx): Doc fix.
54702         * lib/md5.h: Doc fix.
54703
54704 2008-01-30  Peter Palfrader  <weasel@debian.org>
54705
54706         sha1: remove the result buffer alignment constraint
54707         * lib/sha1.c (set_uint32): New function.
54708         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54709         constraint.
54710         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54711         * lib/sha1.h: Likewise.
54712
54713 2008-01-30  Andreas Schwab  <schwab@suse.de>
54714             Bruno Haible  <bruno@clisp.org>
54715
54716         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54717         correct definition of LDBL_MIN_EXP.
54718
54719 2008-01-30  Karl Berry  <karl@gnu.org>
54720
54721         * config/srclist-update: try to preserve x bit on updates.
54722         * config/srclistvars.sh: update for karl.
54723
54724 2008-01-29  Jim Meyering  <meyering@redhat.com>
54725
54726         vasnprintf.c: Avoid warning about unused label
54727         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54728         "overflow" label definition and associated code with the
54729         same cpp condition that guards the sole use of that label.
54730
54731 2008-01-26  Bruno Haible  <bruno@clisp.org>
54732
54733         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54734         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54735         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54736         * lib/isnanl-nolibm.h (isnanl): Likewise.
54737         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54738
54739 2008-01-26  Bruno Haible  <bruno@clisp.org>
54740
54741         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54742         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54743
54744 2008-01-26  Bruno Haible  <bruno@clisp.org>
54745
54746         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54747         GCC >= 4.0 built-in.
54748         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54749
54750 2008-01-26  Bruno Haible  <bruno@clisp.org>
54751
54752         Rename isnan, applicable to 'double' only, to isnand.
54753         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54754         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54755         (configure.ac): Update.
54756         (Include): Replace "isnan.h" with "isnand.h".
54757         * m4/isnand.m4: Renamed from m4/isnan.m4.
54758         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54759         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54760         instead of isnan.c.
54761         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54762         instead of HAVE_ISNAN_IN_LIBC.
54763         (isnand): Renamed from isnan.
54764         * lib/isnand.c: New file.
54765         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54766         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54767         (Makefile.am): Update.
54768         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54769         Include isnand.h instead of isnan.h.
54770         (main): Test isnand instead of isnan.
54771         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54772         isnan-nolibm.
54773         * modules/frexp (Depends-on): Likewise.
54774         * modules/frexp-tests (Depends-on): Likewise.
54775         * modules/frexp-nolibm (Depends-on): Likewise.
54776         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54777         * modules/isfinite (Depends-on): Likewise.
54778         * modules/round-tests (Depends-on): Likewise.
54779         * modules/signbit (Depends-on): Likewise.
54780         * modules/signbit-tests (Depends-on): Likewise.
54781         * modules/snprintf-posix (Depends-on): Likewise.
54782         * modules/sprintf-posix (Depends-on): Likewise.
54783         * modules/trunc-tests (Depends-on): Likewise.
54784         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54785         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54786         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54787         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54788         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54789         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54790         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54791         * modules/vasnprintf-posix (Depends-on): Likewise.
54792         * modules/vasprintf-posix (Depends-on): Likewise.
54793         * modules/vfprintf-posix (Depends-on): Likewise.
54794         * modules/vsnprintf-posix (Depends-on): Likewise.
54795         * modules/vsprintf-posix (Depends-on): Likewise.
54796         * lib/frexp.c: Include isnand.h instead of isnan.h.
54797         (ISNAN): Set to isnand instead of isnan.
54798         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54799         (gl_isfinited): Use isnand instead of isnan.
54800         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54801         (gl_signbitd): Use isnand instead of isnan.
54802         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54803         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54804         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54805         (main): Use isnand instead of isnan.
54806         * tests/test-round1.c: Include isnand.h.
54807         (main): Use isnand instead of isnan.
54808         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54809         (ISNAN): Set to isnand instead of isnan.
54810         * tests/test-trunc1.c: Include isnand.h.
54811         (main): Use isnand instead of isnan.
54812         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54813         (equal): Use isnand instead of isnan.
54814         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54815         isnand-nolibm.
54816         * NEWS: Mention the change.
54817
54818 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54819             Bruno Haible  <bruno@clisp.org>
54820
54821         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54822         the GCC builtins for signbits are present and set
54823         REPLACE_SIGNBIT_USING_GCC if so.
54824         * lib/math.in.h (signbit): Define using GCC builtins if
54825         REPLACE_SIGNBIT_USING_GCC is set.
54826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54827         REPLACE_SIGNBIT_USING_GCC.
54828         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54829
54830 2008-01-25  Jim Meyering  <meyering@redhat.com>
54831
54832         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54833         * lib/poll.c: Include <config.h>, not "config.h".
54834         * tests/test-getaddrinfo.c: Likewise.
54835
54836 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54837
54838         * modules/sockets-tests: New file.
54839
54840 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54841
54842         * modules/sockets: New module, can be used to call WSA_Startup and
54843         WSA_Cleanup when needed.
54844
54845         * lib/sockets.h, lib/sockets.c: New files.
54846
54847         * m4/sockets.m4: New file.
54848
54849         * tests/test-sockets.c: New file.
54850
54851 2008-01-19  Bruno Haible  <bruno@clisp.org>
54852
54853         * doc/posix-headers: Renamed from doc/headers.
54854         * doc/posix-functions: Renamed from doc/functions.
54855         * doc/gnulib.texi: Update.
54856
54857 2008-01-19  Bruno Haible  <bruno@clisp.org>
54858
54859         * doc/glibc-functions/strcasestr.texi: Include contents of
54860         doc/functions/strcasestr.texi, fixing the list of platforms.
54861         * doc/functions/strcasestr.texi: Remove file.
54862
54863 2008-01-19  Bruno Haible  <bruno@clisp.org>
54864
54865         * doc/glibc-functions/memmem.texi: Include contents of
54866         doc/functions/memmem.texi.
54867         * doc/functions/memmem.texi: Remove file.
54868
54869 2008-01-18  Bruno Haible  <bruno@clisp.org>
54870
54871         * doc/glibc-functions/*.texi: New files.
54872         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54873         to use the new files.
54874
54875 2008-01-17  Bruno Haible  <bruno@clisp.org>
54876
54877         * tests/test-gethostname.c (main): Fix printf statement.
54878
54879 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54880
54881         * modules/gethostname-tests: New file.
54882
54883         * tests/test-gethostname.c: New file.
54884
54885 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54886
54887         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54888         used by the UNAME case.  Reported by Bruno Haible
54889         <bruno@clisp.org>.
54890
54891 2008-01-17  Eric Blake  <ebb9@byu.net>
54892
54893         Convert c-strcasestr to be more efficient.
54894         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54895         (Depends-on): Add c-strcase, remove malloca, strnlen.
54896         * tests/test-c-strcasestr.c (main): Enhance test.
54897         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54898
54899 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54900
54901         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54902         Use it in creating po/Makevars.
54903
54904 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54905
54906         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54907         Applications that requires it should initialize libgcrypt
54908         manually.
54909
54910 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54911
54912         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54913
54914 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         Fix problem with getdate on mingw32 reported by Simon Josefsson
54917         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54918         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54919         tzname", when deciding whether to declare tzname.
54920         * lib/strftime.c (tzname): Likewise.
54921
54922 2008-01-15  Bruno Haible  <bruno@clisp.org>
54923
54924         Work around a MacOS X 10.5 bug in frexpl().
54925         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54926         * doc/functions/frexpl.texi: Document the bug.
54927         Reported by Elias Pipping <pipping@gentoo.org>.
54928
54929 2008-01-14  Eric Blake  <ebb9@byu.net>
54930
54931         Touch up previous patch.
54932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54933         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54934
54935         Convert strcasestr module to use Two-Way algorithm.
54936         * modules/strcasestr-simple: New module, based on the old
54937         strcasestr, but with Two-Way rather than KMP.
54938         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54939         * lib/string.in.h (rpl_strcasestr): Declare.
54940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54941         performance.
54942         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54943         * modules/string (Makefile.am): Support strcasestr.
54944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54945         * modules/strcasestr-tests (Depends-on): Check for alarm.
54946         * tests/test-strcasestr.c: Augment test.
54947         * lib/str-two-way.h: Clean up stray macro.
54948         * NEWS: Document new module.
54949         * MODULES.html.sh (string handling): Likewise.
54950         * doc/functions/strcasestr.texi: New file.
54951         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54952         here, since it is not a POSIX function.
54953
54954 2008-01-14  Colin Watson  <cjwatson@debian.org>
54955             Bruno Haible  <bruno@clisp.org>
54956
54957         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54958         works fine; if not, set REPLACE_STRSIGNAL.
54959         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54960         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54961         REPLACE_STRSIGNAL.
54962         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54963         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54964         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54965
54966 2008-01-14  Bruno Haible  <bruno@clisp.org>
54967
54968         * modules/strsignal (Include): Change to <string.h>.
54969
54970 2008-01-14  Colin Watson  <cjwatson@debian.org>
54971
54972         * modules/argp (Notice): Add a notice recommending to change
54973         XGETTEXT_OPTIONS.
54974         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54975
54976 2008-01-13  Colin Watson  <cjwatson@debian.org>
54977
54978         * modules/strsignal-tests: New file.
54979         * tests/test-strsignal.c: New file.
54980
54981         * lib/strsignal.c: New file, from glibc with modifications.
54982         * lib/siglist.h: New file, from glibc with modifications.
54983         * lib/string.in.h (strsignal): New declaration.
54984         * m4/strsignal.m4: New file.
54985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54986         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54987         * modules/strsignal: New file.
54988         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54989         HAVE_DECL_STRSIGNAL.
54990
54991 2008-01-13  Bruno Haible  <bruno@clisp.org>
54992
54993         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54994         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54995         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54996         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54997
54998 2008-01-13  Bruno Haible  <bruno@clisp.org>
54999
55000         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
55001         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
55002         * lib/argp.h (__attribute__): Likewise.
55003         * lib/c-stack.c (__attribute__): Likewise.
55004         * lib/error.h (__attribute__): Likewise.
55005         * lib/fts.c (__attribute__): Likewise.
55006         * lib/openat.h (__attribute__): Likewise.
55007         * lib/stdio.in.h (__attribute__): Likewise.
55008         * lib/string.in.h (__attribute__): Likewise.
55009         * lib/utimens.c (__attribute__): Likewise.
55010         * lib/vasnprintf.h (__attribute__): Likewise.
55011         * lib/xalloc.h (__attribute__): Likewise.
55012         * lib/xprintf.h (__attribute__): Likewise.
55013         * lib/xstrtol.h (__attribute__): Likewise.
55014         * lib/xvasprintf.h (__attribute__): Likewise.
55015
55016 2008-01-12  Bruno Haible  <bruno@clisp.org>
55017
55018         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
55019         * doc/glibc-headers/a.out.texi: New file.
55020         * doc/glibc-headers/aliases.texi: New file.
55021         * doc/glibc-headers/alloca.texi: New file.
55022         * doc/glibc-headers/ar.texi: New file.
55023         * doc/glibc-headers/argp.texi: New file.
55024         * doc/glibc-headers/argz.texi: New file.
55025         * doc/glibc-headers/byteswap.texi: New file.
55026         * doc/glibc-headers/crypt.texi: New file.
55027         * doc/glibc-headers/endian.texi: New file.
55028         * doc/glibc-headers/envz.texi: New file.
55029         * doc/glibc-headers/err.texi: New file.
55030         * doc/glibc-headers/error.texi: New file.
55031         * doc/glibc-headers/execinfo.texi: New file.
55032         * doc/glibc-headers/fpu_control.texi: New file.
55033         * doc/glibc-headers/fstab.texi: New file.
55034         * doc/glibc-headers/fts.texi: New file.
55035         * doc/glibc-headers/getopt.texi: New file.
55036         * doc/glibc-headers/ieee754.texi: New file.
55037         * doc/glibc-headers/ifaddrs.texi: New file.
55038         * doc/glibc-headers/libintl.texi: New file.
55039         * doc/glibc-headers/mcheck.texi: New file.
55040         * doc/glibc-headers/mntent.texi: New file.
55041         * doc/glibc-headers/obstack.texi: New file.
55042         * doc/glibc-headers/paths.texi: New file.
55043         * doc/glibc-headers/printf.texi: New file.
55044         * doc/glibc-headers/pty.texi: New file.
55045         * doc/glibc-headers/resolv.texi: New file.
55046         * doc/glibc-headers/shadow.texi: New file.
55047         * doc/glibc-headers/sysexits.texi: New file.
55048         * doc/glibc-headers/ttyent.texi: New file.
55049
55050 2008-01-12  Jim Meyering  <meyering@redhat.com>
55051
55052         announce-gen: emit Gnulib's git-based version string.
55053         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
55054         New option --gnulib-version=V, where V is expected to be
55055         the output of running git describe in the gnulib directory.
55056         (get_tool_versions): Request feedback on xdelta.  I suspect it's
55057         not useful, and plan to stop publishing an xdelta file with each
55058         coreutils release.
55059
55060         * build-aux/announce-gen: Also check for lzma-compressed files.
55061
55062 2008-01-11  Bruno Haible  <bruno@clisp.org>
55063
55064         * tests/test-memmem.c (main): Increase maximum allowed time.
55065         * tests/test-strstr.c (main): Likewise.
55066
55067 2008-01-11  Bruno Haible  <bruno@clisp.org>
55068
55069         * doc/functions/memmem.texi: Add more precisions about platforms.
55070         * doc/functions/strstr.texi: Likewise.
55071
55072 2008-01-10  Eric Blake  <ebb9@byu.net>
55073
55074         * m4/strstr.m4: Delete cruft from copy-n-paste.
55075         Reported by Bruno Haible.
55076
55077 2008-01-10  Bruno Haible  <bruno@clisp.org>
55078
55079         Make c-strstr rely on strstr.
55080         * lib/c-strstr.c: Don't include str-kmp.h.
55081         (c_strstr): Define in terms of strstr.
55082         * modules/c-strstr (Files): Remove lib/str-kmp.h.
55083         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
55084
55085 2008-01-10  Bruno Haible  <bruno@clisp.org>
55086
55087         * doc/gnulib.texi (String Functions in C Locale): New section.
55088         * doc/c-ctype.texi: New file.
55089         * doc/c-strcase.texi: New file.
55090         * doc/c-strcaseeq.texi: New file.
55091         * doc/c-strcasestr.texi: New file.
55092         * doc/c-strstr.texi: New file.
55093         * doc/c-strtod.texi: New file.
55094         * doc/c-strtold.texi: New file.
55095
55096 2008-01-10  Eric Blake  <ebb9@byu.net>
55097
55098         * lib/relocatable.h: Fix a comment.
55099
55100 2008-01-10  Eric Blake  <ebb9@byu.net>
55101
55102         Share two-way algorithm.
55103         * lib/str-two-way.h: New file, merged from...
55104         * lib/memmem.c: ...here...
55105         * lib/strstr.c: ...and here.
55106         * modules/memmem (Files): Use it.
55107         * modules/strstr (Files): Likewise.
55108
55109         Avoid quadratic strstr implementations.
55110         * lib/strstr.c: New file.
55111         * m4/strstr.m4: Likewise.
55112         * modules/strstr: Likewise.
55113         * modules/strstr-tests: Likewise.
55114         * tests/test-strstr.c: Likewise.
55115         * lib/string.in.h (rpl_strstr): Declare.
55116         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
55117         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
55118         * modules/string (Makefile.am): Likewise.
55119         * MODULES.html.sh (string handling): Mention new module.
55120         * doc/functions/strstr.texi (strstr): Document the bug.
55121
55122 2008-01-10  Bruno Haible  <bruno@clisp.org>
55123
55124         * lib/relocatable.h (relocate): State whether result is freshly
55125         allocated or not.
55126         * lib/relocatable.c (relocate): Return a freshly allocated string
55127         instead of a pointer to a privately held string.
55128         Reported by Sylvain Beucler <beuc@gnu.org>.
55129
55130 2008-01-10  Colin Watson  <cjwatson@debian.org>
55131
55132         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
55133         s/S_ISNLK/S_ISLNK/.
55134
55135 2008-01-09  Bruno Haible  <bruno@clisp.org>
55136
55137         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
55138         and other files.
55139         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
55140         if it's only a guess.
55141         * modules/memmem: Simplify by depending on memmem-simple.
55142
55143 2008-01-09  Bruno Haible  <bruno@clisp.org>
55144
55145         Work around OpenBSD 4.0 tdelete() bug.
55146         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
55147         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
55148         macros and don't redefine the enum values.
55149         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
55150         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
55151         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
55152
55153 2008-01-09  Bruno Haible  <bruno@clisp.org>
55154
55155         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
55156         (main): Don't perform the tests if setlocale did not install a UTF-8
55157         locale. Needed on OpenBSD 4.0.
55158         * modules/wcwidth-tests (Depends-on): Add localcharset.
55159
55160 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
55161
55162         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55163         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55164         * NEWS: announce this.
55165         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55166
55167 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55168         and Eric Blake  <ebb9@byu.net>
55169
55170         Add memmem-simple module.
55171         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55172         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55173         * modules/memmem-simple: New file.
55174         * modules/memmem (Description): Tweak.
55175         * MODULES.html.sh (string handling): Mention new module.
55176         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55177         addressed by memmem-simple.
55178         * NEWS: Document the difference.
55179
55180 2008-01-09  Eric Blake  <ebb9@byu.net>
55181
55182         Give gcc some memmem optimization hints.
55183         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55184         (strcasestr): Declare as pure.
55185         * modules/memmem (Maintainer): Claim my implementation.
55186
55187 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55188
55189         Support AIX 6.1 and higher.
55190         * build-aux/config.libpath: Likewise.
55191         * build-aux/config.rpath: Likewise.
55192
55193 2008-01-08  Jim Meyering  <meyering@redhat.com>
55194             Bruno Haible  <bruno@clisp.org>
55195
55196         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55197         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55198         Reported by Peter Fales in
55199         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55200
55201 2008-01-08  Bruno Haible  <bruno@clisp.org>
55202
55203         * modules/unictype/category-of (Depends-on): Add
55204         unictype/category-none.
55205         * modules/unictype/category-and-tests (Depends-on): Add
55206         unictype/category-{L,N,Lu,Nd}.
55207         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55208         * modules/unictype/category-or-tests (Depends-on): Add
55209         unictype/category-{L,N}.
55210         * modules/unictype/category-name-tests (Depends-on): Add
55211         unictype/category-{Z,Nl}.
55212         Reported by Simon Josefsson.
55213
55214 2008-01-08  Bruno Haible  <bruno@clisp.org>
55215
55216         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55217         convention better.
55218         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55219         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55220         Reported by Peter Miller <millerp@canb.auug.org.au>.
55221
55222 2008-01-08  Eric Blake  <ebb9@byu.net>
55223
55224         Rewrite memmem to guarantee linear complexity without malloc.
55225         * lib/memmem.c (memmem): Use Two-Way rather than
55226         Knuth-Morris-Pratt, to allow O(1) space usage.
55227         (critical_factorization, two_way_short_needle)
55228         (two_way_long_needle): New functions.
55229         (knuth_morris_pratt): Delete.
55230         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55231         Add stdint.
55232         * tests/test-memmem.c (main): Add tests for periodic needle and
55233         sublinear performance.
55234         * doc/functions/memmem.texi (memmem): Document other deficiencies
55235         in cygwin and older glibc.
55236
55237 2008-01-08  Bruno Haible  <bruno@clisp.org>
55238
55239         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55240         augmentation.
55241
55242 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55243
55244         Add a configure time option: --disable-acl.
55245         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55246         AC_ARG_ENABLE(acl).
55247
55248 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55249
55250         * tests/test-localename.c: Don't include obsolete "setenv.h".
55251
55252         * modules/localename-tests (Depends-on): Need unsetenv.
55253
55254 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55255
55256         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55257
55258 2008-01-06  Colin Watson  <cjwatson@debian.org>
55259
55260         * users.txt: Add man-db.
55261
55262 2008-01-07  Bruno Haible  <bruno@clisp.org>
55263
55264         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55265         previous section name.
55266
55267 2008-01-07  Bruno Haible  <bruno@clisp.org>
55268
55269         * lib/progname.c (set_program_name): Don't strip off a leading
55270         "lt-" prefix outside a .libs directory.
55271         Suggested by Paul Eggert.
55272
55273 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55274             Bruno Haible  <bruno@clisp.org>
55275
55276         Improve memory cleanup in 'relocatable' module.
55277         * lib/relocatable.h (compute_curr_prefix): Change return type to
55278         'char *'.
55279         * lib/relocatable.c (compute_curr_prefix): Change return type to
55280         'char *'. Free curr_installdir after use.
55281         (relocate): Free curr_prefix_better after use.
55282         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55283
55284 2008-01-01  Bruno Haible  <bruno@clisp.org>
55285
55286         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55287         failure on older glibc systems.
55288         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55289
55290 2008-01-05  Eric Blake  <ebb9@byu.net>
55291
55292         Avoid quadratic system memmem.
55293         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55294         Reported by Ralf Wildenhues.
55295
55296         Fix memmem test for mingw.
55297         * modules/memmem-tests (configure.ac): Check for alarm.
55298         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55299         it.
55300         * doc/functions/memmem.texi: New file.
55301         * doc/gnulib.texi (Function Substitutes): Add memmem.
55302         Reported by Bruno Haible.
55303
55304 2008-01-04  Bruno Haible  <bruno@clisp.org>
55305
55306         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55307         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55308         gl_HEADER_STRING_H_DEFAULTS.
55309
55310 2008-01-04  Eric Blake  <ebb9@byu.net>
55311
55312         Shorten duration of memmem test.
55313         * tests/test-memmem.c (main): Use alarm to declare failure if test
55314         is taking too long.
55315         Reported by Ralf Wildenhues.
55316
55317 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55318
55319         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55320         string, needed by strerror.
55321
55322 2008-01-03  Colin Watson  <cjwatson@debian.org>
55323             Bruno Haible  <bruno@clisp.org>
55324
55325         * doc/gnulib-tool.texi (Localization): New section.
55326
55327 2008-01-02  Bruno Haible  <bruno@clisp.org>
55328
55329         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55330         variables to 'unsigned char *' type.
55331         Reported by Paul Eggert.
55332
55333 2008-01-02  Jim Meyering  <jim@meyering.net>
55334
55335         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55336
55337 2007-12-31  Jim Meyering  <jim@meyering.net>
55338
55339         Avoid use of private FTS type name.
55340         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55341
55342 2007-12-30  Karl Berry  <karl@gnu.org>
55343
55344         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55345         work around defect in Texinfo and/or the standalone Info browser.
55346
55347 2007-12-30  Bruno Haible  <bruno@clisp.org>
55348
55349         Unify 5 copies of the KMP code.
55350         * lib/str-kmp.h: New file.
55351         * lib/c-strcasestr.c: Include str-kmp.h.
55352         (knuth_morris_pratt): Remove function.
55353         (c_strcasestr): Update.
55354         * lib/c-strstr.c: Include str-kmp.h.
55355         (knuth_morris_pratt): Remove function.
55356         (c_strcasestr): Update.
55357         * lib/mbscasestr.c: Include str-kmp.h.
55358         (knuth_morris_pratt_unibyte): Remove function.
55359         * lib/mbsstr.c: Include str-kmp.h.
55360         (knuth_morris_pratt_unibyte): Remove function.
55361         * lib/strcasestr.c: Include str-kmp.h.
55362         (knuth_morris_pratt): Remove function.
55363         (strcasestr): Update.
55364         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55365         * modules/c-strstr (Files): Likewise.
55366         * modules/mbscasestr (Files): Likewise.
55367         * modules/mbsstr (Files): Likewise.
55368         * modules/strcasestr (Files): Likewise.
55369         Suggested by Paul Eggert.
55370
55371 2007-12-30  Bruno Haible  <bruno@clisp.org>
55372
55373         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55374         defined.
55375
55376 2007-12-30  Bruno Haible  <bruno@clisp.org>
55377
55378         * lib/xmalloca.h: Include xalloc.h.
55379         (xnmalloca): New macro.
55380
55381 2007-12-30  Bruno Haible  <bruno@clisp.org>
55382
55383         * lib/malloca.h (nmalloca): New macro.
55384         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55385         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55386         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55387         knuth_morris_pratt_multibyte): Likewise.
55388         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55389         knuth_morris_pratt_multibyte): Likewise.
55390         * lib/memmem.c (knuth_morris_pratt): Likewise.
55391         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55392
55393 2007-12-25  Bruno Haible  <bruno@clisp.org>
55394
55395         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55396         * lib/glob.c: Don't include openat.h.
55397         (link_exists2_p): Add back the code that deals with the
55398         !GLOB_ALTDIRFUNC case.
55399         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55400         let it do the filename concatenation.
55401         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55402         * modules/glob (Depends-on): Remove openat.
55403
55404 2007-12-31  Bruno Haible  <bruno@clisp.org>
55405
55406         * modules/dirfd (License): Change to LGPLv2+.
55407         Approved by Jim Meyering.
55408
55409 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55410
55411         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55412         when multiplying M by sizeof (size_t).
55413
55414 2007-12-10  Martin Lambers  <marlam@marlam.de>
55415
55416         Override getpagesize on mingw.
55417         * lib/getpagesize.c: New file.
55418         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55419         * modules/getpagesize (Files): Add lib/getpagesize.c.
55420         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55422         REPLACE_GETPAGESIZE.
55423         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55424
55425 2007-12-25  Bruno Haible  <bruno@clisp.org>
55426
55427         * modules/localcharset (Notice): New field.
55428         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55429         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55430
55431 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55432             Bruno Haible  <bruno@clisp.org>
55433
55434         Avoid using the syntax symbol() in formatted documentation.
55435         * MODULES.html.sh (func_module): When replacing symbol() with a
55436         hyperlink, remove the parentheses. Show an error if some remain.
55437         Recognize and render the '...' syntax.
55438         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55439         Rework. Add paragraph about GCC's inlining.
55440         * doc/alloca.texi: Likewise.
55441         * doc/error.texi: Remove parentheses from symbol reference.
55442         * doc/gnulib-intro.texi: Likewise.
55443         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55444         * modules/fnmatch (Description): Reword to say "the ... function".
55445         * modules/full-read (Description): Likewise.
55446         * modules/full-write (Description): Likewise.
55447         * modules/safe-read (Description): Likewise.
55448         * modules/safe-write (Description): Likewise.
55449         * modules/strchrnul (Description): Likewise.
55450         * modules/trim (Description): Likewise.
55451         * modules/error (Description): Remove parentheses from symbol
55452         references.
55453         * modules/verror (Description): Likewise.
55454         Reported by Karl Berry.
55455
55456 2007-12-25  Bruno Haible  <bruno@clisp.org>
55457
55458         Fixup after 2007-10-16 commit.
55459         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55460
55461 2007-12-24  Bruno Haible  <bruno@clisp.org>
55462
55463         Make --enable-relocatable work with DESTDIR.
55464         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55465         to compute installdir from destprog.
55466         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55467         also set the RELOC_DESTDIR variable.
55468         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55469
55470 2007-12-24  Bruno Haible  <bruno@clisp.org>
55471
55472         Fix link error due to xalloc_die().
55473         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55474         of xreadlink.
55475         * lib/relocwrapper.c: Update comments.
55476         * build-aux/install-reloc: Remove xreadlink.c from file list.
55477         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55478         xreadlink.c.
55479         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55480
55481 2007-12-24  Bruno Haible  <bruno@clisp.org>
55482
55483         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55484         * lib/setenv.h: Remove file.
55485         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55486         lib/setenv.h.
55487         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55488         (Depends-on): Add stdlib.
55489         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55490         gl_FUNC_UNSETENV.
55491         (Include): Replace setenv.h with <stdlib.h>.
55492         * modules/unsetenv: New file.
55493         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55494         * lib/unsetenv.c: Include <stdlib.h> first.
55495         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55496         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55497         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55498         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55499         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55500         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55502         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55503         * doc/functions/unsetenv.texi: Update.
55504         * modules/xsetenv (Depends-on): Add unsetenv.
55505         * modules/getdate (Depends-on): Likewise.
55506         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55507         * lib/xsetenv.c: Don't include setenv.h.
55508         * lib/getdate.y: Likewise.
55509         * lib/relocwrapper.c: Likewise.
55510         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55511         (Depends-on): Add stdlib.
55512         * NEWS: Mention the changes.
55513         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55514
55515 2007-12-23  Bruno Haible  <bruno@clisp.org>
55516
55517         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55518         indentation.
55519
55520 2007-12-23  Bruno Haible  <bruno@clisp.org>
55521
55522         * lib/c-strcasestr.c: Add more comments.
55523         * lib/c-strstr.c: Likewise.
55524         * lib/mbscasestr.c: Likewise.
55525         * lib/mbsstr.c: Likewise.
55526         * lib/strcasestr.c: Likewise.
55527         * lib/memmem.c: Likewise.
55528
55529 2007-12-23  Bruno Haible  <bruno@clisp.org>
55530
55531         * tests/test-memmem.c: Include <string.h> first.
55532
55533 2007-12-22  Bruno Haible  <bruno@clisp.org>
55534
55535         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55536         the contents of $testsbase.
55537         Reported by Ralf Wildenhues.
55538
55539 2007-12-22  Bruno Haible  <bruno@clisp.org>
55540
55541         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55542         two variables local_ldadd_before, local_ldadd_last.
55543
55544 2007-12-20  Eric Blake  <ebb9@byu.net>
55545
55546         Work around circular library issue when cross-compiling.
55547         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55548         that progname.o does not need to pull in rpl_memcmp.
55549
55550 2007-12-19  Eric Blake  <ebb9@byu.net>
55551
55552         Fix memmem to avoid O(n^2) worst-case complexity.
55553         * lib/memmem.c (knuth_morris_pratt): New function.
55554         (memmem): Use it if first few naive iterations fail.
55555         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55556         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55557         * modules/memchr (License): Likewise.
55558         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55559         malloca.
55560         * tests/test-memmem.c: Rewrite, borrowing ideas from
55561         test-mbsstr1.c; the old version wouldn't even compile!
55562         * modules/memmem-tests: New file.
55563         * lib/string.in.h (rpl_memmem): Add declaration.
55564         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55565         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55566         REPLACE_MEMMEM.
55567
55568 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55569
55570         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55571         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55572         before any system include files, and undef after them all.  This
55573         should fix a problem on VMS reported by John E. Malmberg in
55574         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55575
55576 2007-12-17  Eric Blake  <ebb9@byu.net>
55577
55578         Revert addition of verify, for BSD/OS.
55579         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55580         can't handle large files, for the sake of obsolete platforms.
55581         * modules/fseeko (Depends-on): Remove verify.
55582         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55583         * doc/functions/ftello.texi (ftello): Likewise.
55584         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55585         Reported by Larry Jones.
55586
55587 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55588
55589         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55590         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55591
55592 2007-12-17  Jim Meyering  <meyering@redhat.com>
55593
55594         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55595         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55596         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55597         * modules/getcwd (Depends-on): Add openat.
55598         Reported by Petr Salinger.
55599
55600 2007-12-17  Bruno Haible  <bruno@clisp.org>
55601
55602         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55603         avoid a segmentation fault of the configure test on x86_64 systems.
55604
55605 2007-12-15  Jim Meyering  <meyering@redhat.com>
55606
55607         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55608
55609 2007-12-13  Eric Blake  <ebb9@byu.net>
55610
55611         Another fseek test.
55612         * tests/test-fseek.c (main): Also test ungetc handling.
55613         * tests/test-fseeko.c (main): Likewise.
55614         * modules/fseeko (Depends-on): Add verify.
55615         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55616         large.
55617         Reported by Larry Jones.
55618
55619         Fix fseeko on mingw.
55620         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55621         seek.
55622
55623         Beef up fseek tests.
55624         * tests/test-fseek.c (main): Also test eof handling.
55625         * tests/test-fseeko.c (main): Likewise.
55626         Reported by Larry Jones.
55627
55628 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55629
55630         Fix fseeko on BSD-based platforms.
55631         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55632         successful seek.
55633
55634 2007-12-12  Eric Blake  <ebb9@byu.net>
55635
55636         Allow circular dependency of separate libtests.a
55637         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55638         when use_libtests.
55639
55640 2007-12-11  Eric Blake  <ebb9@byu.net>
55641
55642         Fix bug with -0.0L in previous patch.
55643         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55644         * tests/test-isnan.c (main): Also test on zeroes.
55645         * tests/test-isnanf.c (main): Likewise.
55646         * tests/test-isnanl.h (main): Likewise.
55647
55648         Detect pseudo-denormals on x86 even when cross-compiling.
55649         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55650         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55651         invalid bit patterns that happen to satisfy ==.
55652
55653         Avoid link failures with separate libtests.a.
55654         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55655         last, to satisfy circular dependencies.
55656
55657 2007-12-11  Eric Blake  <ebb9@byu.net>
55658         and Bruno Haible  <bruno@clisp.org>
55659
55660         Fix OpenBSD 4.0 <float.h> handling of long double.
55661         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55662         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55663         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55664
55665 2007-12-11  Jim Meyering  <meyering@redhat.com>
55666
55667         * users.txt: Add libvirt.
55668
55669         Support versions of autoconf prior to 2.59c.
55670         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55671         if it is not already defined.
55672
55673 2007-12-09  Bruno Haible  <bruno@clisp.org>
55674
55675         Let 'gnulib-tool --import' collect sources needed for the tests in
55676         tests/ rather than in lib/.
55677         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55678         argument. If true, add rules to generate libtests.a, and put libtests.a
55679         into $(LDADD). Consider source files in subdirectories and set
55680         uses_subdirs.
55681         (func_emit_initmacro_start, func_emit_initmacro_end,
55682         func_emit_initmacro_done): Pass all arguments explicitly.
55683         (func_import): Determine two module lists main_modules,
55684         testsrelated_modules. Determine use_libtests. Determine two variables
55685         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55686         instead of just sed_transform_lib_file. Determine two variables
55687         main_files and testsrelated_files. Compute 'files' as the union of
55688         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55689         func_add_or_update. In the generated gnulib-comp.m4, collect the
55690         object files for tests/ in different variables than those for lib/.
55691         Substitute LIBTESTS_LIBDEPS.
55692         (func_create_testdir): Combine the uses_subdirs results from
55693         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55694
55695 2007-12-09  Bruno Haible  <bruno@clisp.org>
55696
55697         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55698         the build-aux directory.
55699
55700 2007-12-09  Bruno Haible  <bruno@clisp.org>
55701
55702         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55703         introduced on 2006-09-09.
55704
55705 2007-12-07  Jim Meyering  <meyering@redhat.com>
55706
55707         Let these macros work also with autoconf-2.59.
55708         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55709         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55710         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55711
55712 2007-12-06  Jim Meyering  <meyering@redhat.com>
55713
55714         Avoid a configure-time syntax error in gl_FUNC_ACL.
55715         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55716         function in each branch, before testing the cache variable.
55717
55718 2007-12-04  Eric Blake  <ebb9@byu.net>
55719
55720         Make scripts executable.
55721         * build-aux/config.guess: Add execute permissions.
55722         * build-aux/config.sub: Likewise.
55723         * build-aux/gendocs.sh: Likewise.
55724
55725         Fix frexp on mingw.
55726         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55727         cross-compiling.
55728         * doc/functions/frexp.texi (frexp): Document the bug.
55729
55730         Make cygwin fseeko check more reliable.
55731         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55732         version numbers, rather than unrelated feature check.
55733         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55734         * doc/functions/ftello.texi (ftello): Likewise.
55735         Reported by Bruno Haible.
55736
55737         * m4/strerror.m4: Bump version number.
55738
55739 2007-12-03  Bruno Haible  <bruno@clisp.org>
55740
55741         * doc/functions/mprotect.texi: Mention the mingw problem.
55742
55743 2007-12-03  Eric Blake  <ebb9@byu.net>
55744
55745         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55746         REPLACE_STRERROR is initialized before this macro.
55747
55748 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55749
55750         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55751         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55752         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55753         put -lsec in even for programs other than 'ls'.  This fixes a problem
55754         for gettext reported by Bruno Haible in
55755         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55756         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55757         Add support for Solaris 10.  This isn't efficient, but should get the
55758         job done for now.
55759
55760 2007-12-03  James Youngman  <jay@gnu.org>
55761
55762         * doc/regexprops-generic.texi: change "an close-group" to "a
55763         close-group" and "illegal" to "not allowed".
55764
55765 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55766
55767         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55768         pr_byname.h. Needed for the rare case when the maintainer has done
55769         "make maintainer-clean" in the source directory and then attempts a
55770         build outside the source directory.
55771         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55772         scripts_byname.h.
55773
55774 2007-12-02  Martin Lambers <marlam@marlam.de>
55775             Bruno Haible  <bruno@clisp.org>
55776
55777         * lib/getpagesize.h: Remove file.
55778         * lib/unistd.in.h: Include declaration of getpagesize here.
55779         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55780         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55781         HAVE_SYS_PARAM_H.
55782         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55783         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55784         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55785         (Depends-on): Add unistd.
55786         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55787         (Include): Use <unistd.h> instead of getpagesize.h.
55788         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55789         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55790         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55791         gl_GETPAGESIZE invocation, already handled by module dependency.
55792         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55793
55794 2007-12-02  Bruno Haible  <bruno@clisp.org>
55795
55796         * modules/strings-tests: New file.
55797         * tests/test-strings.c: New file.
55798
55799         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55800         * lib/strings.in.h: New file.
55801         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55802         * m4/strings_h.m4: New file.
55803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55804         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55805         * modules/strings: New file.
55806         * modules/string (Makefile.am): Update.
55807         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55808         Reported by Karl Berry.
55809
55810 2007-12-01  Eric Blake  <ebb9@byu.net>
55811
55812         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55813         accomodate fix in cygwin 1.5.25.
55814
55815 2007-12-01  Jim Meyering  <meyering@redhat.com>
55816
55817         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55818         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55819         that would inhibit utf8-optimization of a regexp containing line-
55820         or buffer-anchors, e.g., `^', `$'.
55821
55822 2007-11-30  Bruno Haible  <bruno@clisp.org>
55823
55824         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55825         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55826         glthread_recursive_lock_init.
55827         * lib/lock.c (glthread_recursive_lock_init)
55828         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55829         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55830
55831 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55832
55833         New function qset_acl, like set_acl but with syscall semantics.
55834         * lib/acl.h (qset_acl): New decl.
55835         * lib/acl.c (qset_acl): New function.
55836         (set_acl): Use new function.  Use more-consistent diagnostics.
55837
55838 2007-11-28  Jim Meyering  <meyering@redhat.com>
55839
55840         * modules/physmem (License): Change from GPL to LGPLv2+.
55841
55842 2007-11-26  Bruno Haible  <bruno@clisp.org>
55843
55844         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55845         'long double' type has excess precision.
55846         Reported by Jim Meyering in
55847         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55848
55849 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55850
55851         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55852         Sync from <http://gnu.org/licenses>.
55853         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55854         with license text from same location.
55855         * doc/maintain.texi, doc/standards.texi:  Sync from
55856         <http://savannah.gnu.org/projects/gnustandards>.
55857
55858 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55859         and Jim Meyering  <meyering@redhat.com>
55860
55861         Adjust getdate' grammar to accept a slightly more regular language.
55862         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55863         Before, the former was rejected.
55864         * lib/getdate.y (digits_to_date_time): New function, factored
55865         out of ...
55866         (number): ...here.  Just call digits_to_date_time.
55867         (hybrid): New non-terminal to handle an <unsigned number,
55868         signed relative offset> sequence consistently.
55869
55870 2007-11-18  Jim Meyering  <meyering@redhat.com>
55871
55872         Pull my changes from coreutils:
55873         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55874         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55875         use of $gnulib_tool_option_extras, so that it's separated from the
55876         preceding argument.
55877
55878         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55879         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55880         parent destination directories before copying a file into place.
55881
55882 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55883
55884         bootstrap: work also with 4-argument variant of AC_INIT
55885         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55886
55887 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55888
55889         Port test-getaddrinfo to Solaris.
55890         Problem reported by Bruno Haible in
55891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55892         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55893         explanation of setting 'hints'.
55894         Don't reject an implementation merely because it returns EAI_SERVICE.
55895         (EAI_SERVICE): Define to 0 if not defined.
55896
55897 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55898
55899         The license of gnu-make and posix-shell is now "GPLed build tool".
55900         * modules/gnu-make (License): Likewise.
55901         * modules/posix-shell (License): Likewise.
55902
55903         New module posix-shell, for determining a POSIX shell
55904         or perhaps something that is close enough to a POSIX shell.
55905         * m4/posix-shell.m4: New file.
55906         * modules/posix-shell: New file.
55907
55908         * MODULES.html.sh: Mention new module.
55909
55910         New module gnu-make, for determining whether we're using GNU Make.
55911         * m4/gnu-make.m4: New file.
55912         * modules/gnu-make: New file.
55913         * MODULES.html.sh: Mention new module.
55914
55915 2007-11-14  Jim Meyering  <meyering@redhat.com>
55916
55917         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55918         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55919         use this macro to create a function _definition_.
55920         Remove useless "#undef ARGMATCH_DIE".
55921
55922 2007-11-14  Bruno Haible  <bruno@clisp.org>
55923
55924         * lib/config.charset: Update for OpenBSD 4.1.
55925         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55926
55927 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55928
55929         Document 64-bit #if problems in stdint.texi.
55930         * doc/headers/stdint.texi (stdint.h): Mention problems with
55931         64-bit-#if, and how to work around them.
55932
55933         Don't insist on 'long long int' support in the preprocessor.  It
55934         breaks too many things.  For example, PRIdMAX still uses a 'long
55935         long int' format with the latest Sun compiler, even though
55936         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55937         preprocessor problem.  This causes the latest coreutils to dump
55938         core on Solaris 10 sparc with the Sun C compiler.
55939         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55940         the troublesome expressions at configure-time, not at #if-time.
55941         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55942         preprocessor.
55943         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55944         compile-time C checks, done at 'configure'-time.
55945         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55946         * modules/inttypes (Makefile): Substitute the new symbols that
55947         gl_INTTYPES_H now generates.
55948         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55949
55950 2007-11-12  Bruno Haible  <bruno@clisp.org>
55951
55952         Tests for Unicode character classification functions.
55953
55954         * modules/unictype/bidicategory-byname-tests: New file.
55955         * modules/unictype/bidicategory-name-tests: New file.
55956         * modules/unictype/bidicategory-of-tests: New file.
55957         * modules/unictype/bidicategory-test-tests: New file.
55958         * modules/unictype/block-list-tests: New file.
55959         * modules/unictype/block-of-tests: New file.
55960         * modules/unictype/block-test-tests: New file.
55961         * modules/unictype/category-C-tests: New file.
55962         * modules/unictype/category-Cc-tests: New file.
55963         * modules/unictype/category-Cf-tests: New file.
55964         * modules/unictype/category-Cn-tests: New file.
55965         * modules/unictype/category-Co-tests: New file.
55966         * modules/unictype/category-Cs-tests: New file.
55967         * modules/unictype/category-L-tests: New file.
55968         * modules/unictype/category-Ll-tests: New file.
55969         * modules/unictype/category-Lm-tests: New file.
55970         * modules/unictype/category-Lo-tests: New file.
55971         * modules/unictype/category-Lt-tests: New file.
55972         * modules/unictype/category-Lu-tests: New file.
55973         * modules/unictype/category-M-tests: New file.
55974         * modules/unictype/category-Mc-tests: New file.
55975         * modules/unictype/category-Me-tests: New file.
55976         * modules/unictype/category-Mn-tests: New file.
55977         * modules/unictype/category-N-tests: New file.
55978         * modules/unictype/category-Nd-tests: New file.
55979         * modules/unictype/category-Nl-tests: New file.
55980         * modules/unictype/category-No-tests: New file.
55981         * modules/unictype/category-P-tests: New file.
55982         * modules/unictype/category-Pc-tests: New file.
55983         * modules/unictype/category-Pd-tests: New file.
55984         * modules/unictype/category-Pe-tests: New file.
55985         * modules/unictype/category-Pf-tests: New file.
55986         * modules/unictype/category-Pi-tests: New file.
55987         * modules/unictype/category-Po-tests: New file.
55988         * modules/unictype/category-Ps-tests: New file.
55989         * modules/unictype/category-S-tests: New file.
55990         * modules/unictype/category-Sc-tests: New file.
55991         * modules/unictype/category-Sk-tests: New file.
55992         * modules/unictype/category-Sm-tests: New file.
55993         * modules/unictype/category-So-tests: New file.
55994         * modules/unictype/category-Z-tests: New file.
55995         * modules/unictype/category-Zl-tests: New file.
55996         * modules/unictype/category-Zp-tests: New file.
55997         * modules/unictype/category-Zs-tests: New file.
55998         * modules/unictype/category-and-not-tests: New file.
55999         * modules/unictype/category-and-tests: New file.
56000         * modules/unictype/category-byname-tests: New file.
56001         * modules/unictype/category-name-tests: New file.
56002         * modules/unictype/category-none-tests: New file.
56003         * modules/unictype/category-of-tests: New file.
56004         * modules/unictype/category-or-tests: New file.
56005         * modules/unictype/category-test-withtable-tests: New file.
56006         * modules/unictype/combining-class-tests: New file.
56007         * modules/unictype/ctype-alnum-tests: New file.
56008         * modules/unictype/ctype-alpha-tests: New file.
56009         * modules/unictype/ctype-blank-tests: New file.
56010         * modules/unictype/ctype-cntrl-tests: New file.
56011         * modules/unictype/ctype-digit-tests: New file.
56012         * modules/unictype/ctype-graph-tests: New file.
56013         * modules/unictype/ctype-lower-tests: New file.
56014         * modules/unictype/ctype-print-tests: New file.
56015         * modules/unictype/ctype-punct-tests: New file.
56016         * modules/unictype/ctype-space-tests: New file.
56017         * modules/unictype/ctype-upper-tests: New file.
56018         * modules/unictype/ctype-xdigit-tests: New file.
56019         * modules/unictype/decimal-digit-tests: New file.
56020         * modules/unictype/digit-tests: New file.
56021         * modules/unictype/mirror-tests: New file.
56022         * modules/unictype/numeric-tests: New file.
56023         * modules/unictype/property-alphabetic-tests: New file.
56024         * modules/unictype/property-ascii-hex-digit-tests: New file.
56025         * modules/unictype/property-bidi-arabic-digit-tests: New file.
56026         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
56027         * modules/unictype/property-bidi-block-separator-tests: New file.
56028         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
56029         * modules/unictype/property-bidi-common-separator-tests: New file.
56030         * modules/unictype/property-bidi-control-tests: New file.
56031         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
56032         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
56033         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
56034         * modules/unictype/property-bidi-european-digit-tests: New file.
56035         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
56036         * modules/unictype/property-bidi-left-to-right-tests: New file.
56037         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
56038         * modules/unictype/property-bidi-other-neutral-tests: New file.
56039         * modules/unictype/property-bidi-pdf-tests: New file.
56040         * modules/unictype/property-bidi-segment-separator-tests: New file.
56041         * modules/unictype/property-bidi-whitespace-tests: New file.
56042         * modules/unictype/property-byname-tests: New file.
56043         * modules/unictype/property-combining-tests: New file.
56044         * modules/unictype/property-composite-tests: New file.
56045         * modules/unictype/property-currency-symbol-tests: New file.
56046         * modules/unictype/property-dash-tests: New file.
56047         * modules/unictype/property-decimal-digit-tests: New file.
56048         * modules/unictype/property-default-ignorable-code-point-tests: New file.
56049         * modules/unictype/property-deprecated-tests: New file.
56050         * modules/unictype/property-diacritic-tests: New file.
56051         * modules/unictype/property-extender-tests: New file.
56052         * modules/unictype/property-format-control-tests: New file.
56053         * modules/unictype/property-grapheme-base-tests: New file.
56054         * modules/unictype/property-grapheme-extend-tests: New file.
56055         * modules/unictype/property-grapheme-link-tests: New file.
56056         * modules/unictype/property-hex-digit-tests: New file.
56057         * modules/unictype/property-hyphen-tests: New file.
56058         * modules/unictype/property-id-continue-tests: New file.
56059         * modules/unictype/property-id-start-tests: New file.
56060         * modules/unictype/property-ideographic-tests: New file.
56061         * modules/unictype/property-ids-binary-operator-tests: New file.
56062         * modules/unictype/property-ids-trinary-operator-tests: New file.
56063         * modules/unictype/property-ignorable-control-tests: New file.
56064         * modules/unictype/property-iso-control-tests: New file.
56065         * modules/unictype/property-join-control-tests: New file.
56066         * modules/unictype/property-left-of-pair-tests: New file.
56067         * modules/unictype/property-line-separator-tests: New file.
56068         * modules/unictype/property-logical-order-exception-tests: New file.
56069         * modules/unictype/property-lowercase-tests: New file.
56070         * modules/unictype/property-math-tests: New file.
56071         * modules/unictype/property-non-break-tests: New file.
56072         * modules/unictype/property-not-a-character-tests: New file.
56073         * modules/unictype/property-numeric-tests: New file.
56074         * modules/unictype/property-other-alphabetic-tests: New file.
56075         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
56076         * modules/unictype/property-other-grapheme-extend-tests: New file.
56077         * modules/unictype/property-other-id-continue-tests: New file.
56078         * modules/unictype/property-other-id-start-tests: New file.
56079         * modules/unictype/property-other-lowercase-tests: New file.
56080         * modules/unictype/property-other-math-tests: New file.
56081         * modules/unictype/property-other-uppercase-tests: New file.
56082         * modules/unictype/property-paired-punctuation-tests: New file.
56083         * modules/unictype/property-paragraph-separator-tests: New file.
56084         * modules/unictype/property-pattern-syntax-tests: New file.
56085         * modules/unictype/property-pattern-white-space-tests: New file.
56086         * modules/unictype/property-private-use-tests: New file.
56087         * modules/unictype/property-punctuation-tests: New file.
56088         * modules/unictype/property-quotation-mark-tests: New file.
56089         * modules/unictype/property-radical-tests: New file.
56090         * modules/unictype/property-sentence-terminal-tests: New file.
56091         * modules/unictype/property-soft-dotted-tests: New file.
56092         * modules/unictype/property-space-tests: New file.
56093         * modules/unictype/property-terminal-punctuation-tests: New file.
56094         * modules/unictype/property-test-tests: New file.
56095         * modules/unictype/property-titlecase-tests: New file.
56096         * modules/unictype/property-unassigned-code-value-tests: New file.
56097         * modules/unictype/property-unified-ideograph-tests: New file.
56098         * modules/unictype/property-uppercase-tests: New file.
56099         * modules/unictype/property-variation-selector-tests: New file.
56100         * modules/unictype/property-white-space-tests: New file.
56101         * modules/unictype/property-xid-continue-tests: New file.
56102         * modules/unictype/property-xid-start-tests: New file.
56103         * modules/unictype/property-zero-width-tests: New file.
56104         * modules/unictype/scripts-tests: New file.
56105         * modules/unictype/syntax-c-ident-tests: New file.
56106         * modules/unictype/syntax-c-whitespace-tests: New file.
56107         * modules/unictype/syntax-java-ident-tests: New file.
56108         * modules/unictype/syntax-java-whitespace-tests: New file.
56109         * tests/unictype/test-bidi_byname.c: New file.
56110         * tests/unictype/test-bidi_name.c: New file.
56111         * tests/unictype/test-bidi_of.c: New file.
56112         * tests/unictype/test-bidi_test.c: New file.
56113         * tests/unictype/test-block_list.c: New file.
56114         * tests/unictype/test-block_of.c: New file.
56115         * tests/unictype/test-block_test.c: New file.
56116         * tests/unictype/test-categ_and.c: New file.
56117         * tests/unictype/test-categ_and_not.c: New file.
56118         * tests/unictype/test-categ_byname.c: New file.
56119         * tests/unictype/test-categ_name.c: New file.
56120         * tests/unictype/test-categ_none.c: New file.
56121         * tests/unictype/test-categ_of.c: New file.
56122         * tests/unictype/test-categ_or.c: New file.
56123         * tests/unictype/test-categ_test_withtable.c: New file.
56124         * tests/unictype/test-combining.c: New file.
56125         * tests/unictype/test-decdigit.c: New file.
56126         * tests/unictype/test-digit.c: New file.
56127         * tests/unictype/test-mirror.c: New file.
56128         * tests/unictype/test-numeric.c: New file.
56129         * tests/unictype/test-pr_byname.c: New file.
56130         * tests/unictype/test-pr_test.c: New file.
56131         * tests/unictype/test-predicate-part1.h: New file.
56132         * tests/unictype/test-predicate-part2.h: New file.
56133         * tests/unictype/test-scripts.c: New file.
56134         * tests/unictype/test-sy_c_ident.c: New file.
56135         * tests/unictype/test-sy_java_ident.c: New file.
56136
56137         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
56138         for Unicode 5.0.0.
56139         * tests/unictype/test-categ_Cc.c: Likewise.
56140         * tests/unictype/test-categ_Cf.c: Likewise.
56141         * tests/unictype/test-categ_Cn.c: Likewise.
56142         * tests/unictype/test-categ_Co.c: Likewise.
56143         * tests/unictype/test-categ_Cs.c: Likewise.
56144         * tests/unictype/test-categ_L.c: Likewise.
56145         * tests/unictype/test-categ_Ll.c: Likewise.
56146         * tests/unictype/test-categ_Lm.c: Likewise.
56147         * tests/unictype/test-categ_Lo.c: Likewise.
56148         * tests/unictype/test-categ_Lt.c: Likewise.
56149         * tests/unictype/test-categ_Lu.c: Likewise.
56150         * tests/unictype/test-categ_M.c: Likewise.
56151         * tests/unictype/test-categ_Mc.c: Likewise.
56152         * tests/unictype/test-categ_Me.c: Likewise.
56153         * tests/unictype/test-categ_Mn.c: Likewise.
56154         * tests/unictype/test-categ_N.c: Likewise.
56155         * tests/unictype/test-categ_Nd.c: Likewise.
56156         * tests/unictype/test-categ_Nl.c: Likewise.
56157         * tests/unictype/test-categ_No.c: Likewise.
56158         * tests/unictype/test-categ_P.c: Likewise.
56159         * tests/unictype/test-categ_Pc.c: Likewise.
56160         * tests/unictype/test-categ_Pd.c: Likewise.
56161         * tests/unictype/test-categ_Pe.c: Likewise.
56162         * tests/unictype/test-categ_Pf.c: Likewise.
56163         * tests/unictype/test-categ_Pi.c: Likewise.
56164         * tests/unictype/test-categ_Po.c: Likewise.
56165         * tests/unictype/test-categ_Ps.c: Likewise.
56166         * tests/unictype/test-categ_S.c: Likewise.
56167         * tests/unictype/test-categ_Sc.c: Likewise.
56168         * tests/unictype/test-categ_Sk.c: Likewise.
56169         * tests/unictype/test-categ_Sm.c: Likewise.
56170         * tests/unictype/test-categ_So.c: Likewise.
56171         * tests/unictype/test-categ_Z.c: Likewise.
56172         * tests/unictype/test-categ_Zl.c: Likewise.
56173         * tests/unictype/test-categ_Zp.c: Likewise.
56174         * tests/unictype/test-categ_Zs.c: Likewise.
56175         * tests/unictype/test-ctype_alnum.c: Likewise.
56176         * tests/unictype/test-ctype_alpha.c: Likewise.
56177         * tests/unictype/test-ctype_blank.c: Likewise.
56178         * tests/unictype/test-ctype_cntrl.c: Likewise.
56179         * tests/unictype/test-ctype_digit.c: Likewise.
56180         * tests/unictype/test-ctype_graph.c: Likewise.
56181         * tests/unictype/test-ctype_lower.c: Likewise.
56182         * tests/unictype/test-ctype_print.c: Likewise.
56183         * tests/unictype/test-ctype_punct.c: Likewise.
56184         * tests/unictype/test-ctype_space.c: Likewise.
56185         * tests/unictype/test-ctype_upper.c: Likewise.
56186         * tests/unictype/test-ctype_xdigit.c: Likewise.
56187         * tests/unictype/test-decdigit.h: Likewise.
56188         * tests/unictype/test-digit.h: Likewise.
56189         * tests/unictype/test-numeric.h: Likewise.
56190         * tests/unictype/test-pr_alphabetic.c: Likewise.
56191         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56192         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56193         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56194         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56195         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56196         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56197         * tests/unictype/test-pr_bidi_control.c: Likewise.
56198         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56199         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56200         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56201         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56202         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56203         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56204         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56205         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56206         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56207         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56208         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56209         * tests/unictype/test-pr_combining.c: Likewise.
56210         * tests/unictype/test-pr_composite.c: Likewise.
56211         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56212         * tests/unictype/test-pr_dash.c: Likewise.
56213         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56214         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56215         * tests/unictype/test-pr_deprecated.c: Likewise.
56216         * tests/unictype/test-pr_diacritic.c: Likewise.
56217         * tests/unictype/test-pr_extender.c: Likewise.
56218         * tests/unictype/test-pr_format_control.c: Likewise.
56219         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56220         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56221         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56222         * tests/unictype/test-pr_hex_digit.c: Likewise.
56223         * tests/unictype/test-pr_hyphen.c: Likewise.
56224         * tests/unictype/test-pr_id_continue.c: Likewise.
56225         * tests/unictype/test-pr_id_start.c: Likewise.
56226         * tests/unictype/test-pr_ideographic.c: Likewise.
56227         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56228         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56229         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56230         * tests/unictype/test-pr_iso_control.c: Likewise.
56231         * tests/unictype/test-pr_join_control.c: Likewise.
56232         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56233         * tests/unictype/test-pr_line_separator.c: Likewise.
56234         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56235         * tests/unictype/test-pr_lowercase.c: Likewise.
56236         * tests/unictype/test-pr_math.c: Likewise.
56237         * tests/unictype/test-pr_non_break.c: Likewise.
56238         * tests/unictype/test-pr_not_a_character.c: Likewise.
56239         * tests/unictype/test-pr_numeric.c: Likewise.
56240         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56241         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56242         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56243         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56244         * tests/unictype/test-pr_other_id_start.c: Likewise.
56245         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56246         * tests/unictype/test-pr_other_math.c: Likewise.
56247         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56248         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56249         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56250         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56251         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56252         * tests/unictype/test-pr_private_use.c: Likewise.
56253         * tests/unictype/test-pr_punctuation.c: Likewise.
56254         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56255         * tests/unictype/test-pr_radical.c: Likewise.
56256         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56257         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56258         * tests/unictype/test-pr_space.c: Likewise.
56259         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56260         * tests/unictype/test-pr_titlecase.c: Likewise.
56261         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56262         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56263         * tests/unictype/test-pr_uppercase.c: Likewise.
56264         * tests/unictype/test-pr_variation_selector.c: Likewise.
56265         * tests/unictype/test-pr_white_space.c: Likewise.
56266         * tests/unictype/test-pr_xid_continue.c: Likewise.
56267         * tests/unictype/test-pr_xid_start.c: Likewise.
56268         * tests/unictype/test-pr_zero_width.c: Likewise.
56269         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56270         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56271
56272 2007-11-12  Bruno Haible  <bruno@clisp.org>
56273
56274         Unicode character classification functions.
56275         * lib/unictype.h: New file.
56276         * modules/unictype/base: New file.
56277         * modules/unictype/category-L: New file.
56278         * modules/unictype/category-Lu: New file.
56279         * modules/unictype/category-Ll: New file.
56280         * modules/unictype/category-Lt: New file.
56281         * modules/unictype/category-Lm: New file.
56282         * modules/unictype/category-Lo: New file.
56283         * modules/unictype/category-M: New file.
56284         * modules/unictype/category-Mn: New file.
56285         * modules/unictype/category-Mc: New file.
56286         * modules/unictype/category-Me: New file.
56287         * modules/unictype/category-N: New file.
56288         * modules/unictype/category-Nd: New file.
56289         * modules/unictype/category-Nl: New file.
56290         * modules/unictype/category-No: New file.
56291         * modules/unictype/category-P: New file.
56292         * modules/unictype/category-Pc: New file.
56293         * modules/unictype/category-Pd: New file.
56294         * modules/unictype/category-Ps: New file.
56295         * modules/unictype/category-Pe: New file.
56296         * modules/unictype/category-Pi: New file.
56297         * modules/unictype/category-Pf: New file.
56298         * modules/unictype/category-Po: New file.
56299         * modules/unictype/category-S: New file.
56300         * modules/unictype/category-Sm: New file.
56301         * modules/unictype/category-Sc: New file.
56302         * modules/unictype/category-Sk: New file.
56303         * modules/unictype/category-So: New file.
56304         * modules/unictype/category-Z: New file.
56305         * modules/unictype/category-Zs: New file.
56306         * modules/unictype/category-Zl: New file.
56307         * modules/unictype/category-Zp: New file.
56308         * modules/unictype/category-C: New file.
56309         * modules/unictype/category-Cc: New file.
56310         * modules/unictype/category-Cf: New file.
56311         * modules/unictype/category-Cs: New file.
56312         * modules/unictype/category-Co: New file.
56313         * modules/unictype/category-Cn: New file.
56314         * modules/unictype/category-or: New file.
56315         * modules/unictype/category-of: New file.
56316         * modules/unictype/category-test: New file.
56317         * modules/unictype/category-test-withtable: New file.
56318         * modules/unictype/category-byname: New file.
56319         * modules/unictype/category-none: New file.
56320         * modules/unictype/category-and: New file.
56321         * modules/unictype/category-and-not: New file.
56322         * modules/unictype/category-name: New file.
56323         * modules/unictype/combining-class: New file.
56324         * modules/unictype/category-all: New file.
56325         * modules/unictype/bidicategory-all: New file.
56326         * modules/unictype/bidicategory-byname: New file.
56327         * modules/unictype/bidicategory-name: New file.
56328         * modules/unictype/bidicategory-of: New file.
56329         * modules/unictype/bidicategory-test: New file.
56330         * modules/unictype/decimal-digit: New file.
56331         * modules/unictype/digit: New file.
56332         * modules/unictype/numeric: New file.
56333         * modules/unictype/mirror: New file.
56334         * modules/unictype/property-white-space: New file.
56335         * modules/unictype/property-alphabetic: New file.
56336         * modules/unictype/property-other-alphabetic: New file.
56337         * modules/unictype/property-not-a-character: New file.
56338         * modules/unictype/property-default-ignorable-code-point: New file.
56339         * modules/unictype/property-other-default-ignorable-code-point: New
56340         file.
56341         * modules/unictype/property-deprecated: New file.
56342         * modules/unictype/property-logical-order-exception: New file.
56343         * modules/unictype/property-variation-selector: New file.
56344         * modules/unictype/property-private-use: New file.
56345         * modules/unictype/property-unassigned-code-value: New file.
56346         * modules/unictype/property-uppercase: New file.
56347         * modules/unictype/property-other-uppercase: New file.
56348         * modules/unictype/property-lowercase: New file.
56349         * modules/unictype/property-other-lowercase: New file.
56350         * modules/unictype/property-titlecase: New file.
56351         * modules/unictype/property-soft-dotted: New file.
56352         * modules/unictype/property-id-start: New file.
56353         * modules/unictype/property-other-id-start: New file.
56354         * modules/unictype/property-id-continue: New file.
56355         * modules/unictype/property-other-id-continue: New file.
56356         * modules/unictype/property-xid-start: New file.
56357         * modules/unictype/property-xid-continue: New file.
56358         * modules/unictype/property-pattern-white-space: New file.
56359         * modules/unictype/property-pattern-syntax: New file.
56360         * modules/unictype/property-join-control: New file.
56361         * modules/unictype/property-grapheme-base: New file.
56362         * modules/unictype/property-grapheme-extend: New file.
56363         * modules/unictype/property-other-grapheme-extend: New file.
56364         * modules/unictype/property-grapheme-link: New file.
56365         * modules/unictype/property-bidi-control: New file.
56366         * modules/unictype/property-bidi-left-to-right: New file.
56367         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56368         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56369         * modules/unictype/property-bidi-european-digit: New file.
56370         * modules/unictype/property-bidi-eur-num-separator: New file.
56371         * modules/unictype/property-bidi-eur-num-terminator: New file.
56372         * modules/unictype/property-bidi-arabic-digit: New file.
56373         * modules/unictype/property-bidi-common-separator: New file.
56374         * modules/unictype/property-bidi-block-separator: New file.
56375         * modules/unictype/property-bidi-segment-separator: New file.
56376         * modules/unictype/property-bidi-whitespace: New file.
56377         * modules/unictype/property-bidi-non-spacing-mark: New file.
56378         * modules/unictype/property-bidi-boundary-neutral: New file.
56379         * modules/unictype/property-bidi-pdf: New file.
56380         * modules/unictype/property-bidi-embedding-or-override: New file.
56381         * modules/unictype/property-bidi-other-neutral: New file.
56382         * modules/unictype/property-hex-digit: New file.
56383         * modules/unictype/property-ascii-hex-digit: New file.
56384         * modules/unictype/property-ideographic: New file.
56385         * modules/unictype/property-unified-ideograph: New file.
56386         * modules/unictype/property-radical: New file.
56387         * modules/unictype/property-ids-binary-operator: New file.
56388         * modules/unictype/property-ids-trinary-operator: New file.
56389         * modules/unictype/property-zero-width: New file.
56390         * modules/unictype/property-space: New file.
56391         * modules/unictype/property-non-break: New file.
56392         * modules/unictype/property-iso-control: New file.
56393         * modules/unictype/property-format-control: New file.
56394         * modules/unictype/property-dash: New file.
56395         * modules/unictype/property-hyphen: New file.
56396         * modules/unictype/property-punctuation: New file.
56397         * modules/unictype/property-line-separator: New file.
56398         * modules/unictype/property-paragraph-separator: New file.
56399         * modules/unictype/property-quotation-mark: New file.
56400         * modules/unictype/property-sentence-terminal: New file.
56401         * modules/unictype/property-terminal-punctuation: New file.
56402         * modules/unictype/property-currency-symbol: New file.
56403         * modules/unictype/property-math: New file.
56404         * modules/unictype/property-other-math: New file.
56405         * modules/unictype/property-paired-punctuation: New file.
56406         * modules/unictype/property-left-of-pair: New file.
56407         * modules/unictype/property-combining: New file.
56408         * modules/unictype/property-composite: New file.
56409         * modules/unictype/property-decimal-digit: New file.
56410         * modules/unictype/property-numeric: New file.
56411         * modules/unictype/property-diacritic: New file.
56412         * modules/unictype/property-extender: New file.
56413         * modules/unictype/property-ignorable-control: New file.
56414         * modules/unictype/property-test: New file.
56415         * modules/unictype/property-byname: New file.
56416         * modules/unictype/property-all: New file.
56417         * modules/unictype/scripts: New file.
56418         * modules/unictype/scripts-all: New file.
56419         * modules/unictype/block-of: New file.
56420         * modules/unictype/block-test: New file.
56421         * modules/unictype/block-list: New file.
56422         * modules/unictype/block-all: New file.
56423         * modules/unictype/syntax-c-whitespace: New file.
56424         * modules/unictype/syntax-java-whitespace: New file.
56425         * modules/unictype/syntax-c-ident: New file.
56426         * modules/unictype/syntax-java-ident: New file.
56427         * modules/unictype/ctype-alnum: New file.
56428         * modules/unictype/ctype-alpha: New file.
56429         * modules/unictype/ctype-cntrl: New file.
56430         * modules/unictype/ctype-digit: New file.
56431         * modules/unictype/ctype-graph: New file.
56432         * modules/unictype/ctype-lower: New file.
56433         * modules/unictype/ctype-print: New file.
56434         * modules/unictype/ctype-punct: New file.
56435         * modules/unictype/ctype-space: New file.
56436         * modules/unictype/ctype-upper: New file.
56437         * modules/unictype/ctype-xdigit: New file.
56438         * modules/unictype/ctype-blank: New file.
56439         * lib/unictype/bidi_byname.c: New file.
56440         * lib/unictype/bidi_name.c: New file.
56441         * lib/unictype/bidi_of.c: New file.
56442         * lib/unictype/bidi_test.c: New file.
56443         * lib/unictype/bitmap.h: New file.
56444         * lib/unictype/block_test.c: New file.
56445         * lib/unictype/blocks.c: New file.
56446         * lib/unictype/categ_C.c: New file.
56447         * lib/unictype/categ_Cc.c: New file.
56448         * lib/unictype/categ_Cf.c: New file.
56449         * lib/unictype/categ_Cn.c: New file.
56450         * lib/unictype/categ_Co.c: New file.
56451         * lib/unictype/categ_Cs.c: New file.
56452         * lib/unictype/categ_L.c: New file.
56453         * lib/unictype/categ_Ll.c: New file.
56454         * lib/unictype/categ_Lm.c: New file.
56455         * lib/unictype/categ_Lo.c: New file.
56456         * lib/unictype/categ_Lt.c: New file.
56457         * lib/unictype/categ_Lu.c: New file.
56458         * lib/unictype/categ_M.c: New file.
56459         * lib/unictype/categ_Mc.c: New file.
56460         * lib/unictype/categ_Me.c: New file.
56461         * lib/unictype/categ_Mn.c: New file.
56462         * lib/unictype/categ_N.c: New file.
56463         * lib/unictype/categ_Nd.c: New file.
56464         * lib/unictype/categ_Nl.c: New file.
56465         * lib/unictype/categ_No.c: New file.
56466         * lib/unictype/categ_P.c: New file.
56467         * lib/unictype/categ_Pc.c: New file.
56468         * lib/unictype/categ_Pd.c: New file.
56469         * lib/unictype/categ_Pe.c: New file.
56470         * lib/unictype/categ_Pf.c: New file.
56471         * lib/unictype/categ_Pi.c: New file.
56472         * lib/unictype/categ_Po.c: New file.
56473         * lib/unictype/categ_Ps.c: New file.
56474         * lib/unictype/categ_S.c: New file.
56475         * lib/unictype/categ_Sc.c: New file.
56476         * lib/unictype/categ_Sk.c: New file.
56477         * lib/unictype/categ_Sm.c: New file.
56478         * lib/unictype/categ_So.c: New file.
56479         * lib/unictype/categ_Z.c: New file.
56480         * lib/unictype/categ_Zl.c: New file.
56481         * lib/unictype/categ_Zp.c: New file.
56482         * lib/unictype/categ_Zs.c: New file.
56483         * lib/unictype/categ_and.c: New file.
56484         * lib/unictype/categ_and_not.c: New file.
56485         * lib/unictype/categ_byname.c: New file.
56486         * lib/unictype/categ_name.c: New file.
56487         * lib/unictype/categ_none.c: New file.
56488         * lib/unictype/categ_of.c: New file.
56489         * lib/unictype/categ_or.c: New file.
56490         * lib/unictype/categ_test.c: New file.
56491         * lib/unictype/combining.c: New file.
56492         * lib/unictype/ctype_alnum.c: New file.
56493         * lib/unictype/ctype_alpha.c: New file.
56494         * lib/unictype/ctype_blank.c: New file.
56495         * lib/unictype/ctype_cntrl.c: New file.
56496         * lib/unictype/ctype_digit.c: New file.
56497         * lib/unictype/ctype_graph.c: New file.
56498         * lib/unictype/ctype_lower.c: New file.
56499         * lib/unictype/ctype_print.c: New file.
56500         * lib/unictype/ctype_punct.c: New file.
56501         * lib/unictype/ctype_space.c: New file.
56502         * lib/unictype/ctype_upper.c: New file.
56503         * lib/unictype/ctype_xdigit.c: New file.
56504         * lib/unictype/decdigit.c: New file.
56505         * lib/unictype/digit.c: New file.
56506         * lib/unictype/identsyntaxmap.h: New file.
56507         * lib/unictype/mirror.c: New file.
56508         * lib/unictype/numeric.c: New file.
56509         * lib/unictype/pr_alphabetic.c: New file.
56510         * lib/unictype/pr_ascii_hex_digit.c: New file.
56511         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56512         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56513         * lib/unictype/pr_bidi_block_separator.c: New file.
56514         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56515         * lib/unictype/pr_bidi_common_separator.c: New file.
56516         * lib/unictype/pr_bidi_control.c: New file.
56517         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56518         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56519         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56520         * lib/unictype/pr_bidi_european_digit.c: New file.
56521         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56522         * lib/unictype/pr_bidi_left_to_right.c: New file.
56523         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56524         * lib/unictype/pr_bidi_other_neutral.c: New file.
56525         * lib/unictype/pr_bidi_pdf.c: New file.
56526         * lib/unictype/pr_bidi_segment_separator.c: New file.
56527         * lib/unictype/pr_bidi_whitespace.c: New file.
56528         * lib/unictype/pr_byname.c: New file.
56529         * lib/unictype/pr_byname.gperf: New file.
56530         * lib/unictype/pr_combining.c: New file.
56531         * lib/unictype/pr_composite.c: New file.
56532         * lib/unictype/pr_currency_symbol.c: New file.
56533         * lib/unictype/pr_dash.c: New file.
56534         * lib/unictype/pr_decimal_digit.c: New file.
56535         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56536         * lib/unictype/pr_deprecated.c: New file.
56537         * lib/unictype/pr_diacritic.c: New file.
56538         * lib/unictype/pr_extender.c: New file.
56539         * lib/unictype/pr_format_control.c: New file.
56540         * lib/unictype/pr_grapheme_base.c: New file.
56541         * lib/unictype/pr_grapheme_extend.c: New file.
56542         * lib/unictype/pr_grapheme_link.c: New file.
56543         * lib/unictype/pr_hex_digit.c: New file.
56544         * lib/unictype/pr_hyphen.c: New file.
56545         * lib/unictype/pr_id_continue.c: New file.
56546         * lib/unictype/pr_id_start.c: New file.
56547         * lib/unictype/pr_ideographic.c: New file.
56548         * lib/unictype/pr_ids_binary_operator.c: New file.
56549         * lib/unictype/pr_ids_trinary_operator.c: New file.
56550         * lib/unictype/pr_ignorable_control.c: New file.
56551         * lib/unictype/pr_iso_control.c: New file.
56552         * lib/unictype/pr_join_control.c: New file.
56553         * lib/unictype/pr_left_of_pair.c: New file.
56554         * lib/unictype/pr_line_separator.c: New file.
56555         * lib/unictype/pr_logical_order_exception.c: New file.
56556         * lib/unictype/pr_lowercase.c: New file.
56557         * lib/unictype/pr_math.c: New file.
56558         * lib/unictype/pr_non_break.c: New file.
56559         * lib/unictype/pr_not_a_character.c: New file.
56560         * lib/unictype/pr_numeric.c: New file.
56561         * lib/unictype/pr_other_alphabetic.c: New file.
56562         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56563         * lib/unictype/pr_other_grapheme_extend.c: New file.
56564         * lib/unictype/pr_other_id_continue.c: New file.
56565         * lib/unictype/pr_other_id_start.c: New file.
56566         * lib/unictype/pr_other_lowercase.c: New file.
56567         * lib/unictype/pr_other_math.c: New file.
56568         * lib/unictype/pr_other_uppercase.c: New file.
56569         * lib/unictype/pr_paired_punctuation.c: New file.
56570         * lib/unictype/pr_paragraph_separator.c: New file.
56571         * lib/unictype/pr_pattern_syntax.c: New file.
56572         * lib/unictype/pr_pattern_white_space.c: New file.
56573         * lib/unictype/pr_private_use.c: New file.
56574         * lib/unictype/pr_punctuation.c: New file.
56575         * lib/unictype/pr_quotation_mark.c: New file.
56576         * lib/unictype/pr_radical.c: New file.
56577         * lib/unictype/pr_sentence_terminal.c: New file.
56578         * lib/unictype/pr_soft_dotted.c: New file.
56579         * lib/unictype/pr_space.c: New file.
56580         * lib/unictype/pr_terminal_punctuation.c: New file.
56581         * lib/unictype/pr_test.c: New file.
56582         * lib/unictype/pr_titlecase.c: New file.
56583         * lib/unictype/pr_unassigned_code_value.c: New file.
56584         * lib/unictype/pr_unified_ideograph.c: New file.
56585         * lib/unictype/pr_uppercase.c: New file.
56586         * lib/unictype/pr_variation_selector.c: New file.
56587         * lib/unictype/pr_white_space.c: New file.
56588         * lib/unictype/pr_xid_continue.c: New file.
56589         * lib/unictype/pr_xid_start.c: New file.
56590         * lib/unictype/pr_zero_width.c: New file.
56591         * lib/unictype/scripts.c: New file.
56592         * lib/unictype/sy_c_ident.c: New file.
56593         * lib/unictype/sy_c_whitespace.c: New file.
56594         * lib/unictype/sy_java_ident.c: New file.
56595         * lib/unictype/sy_java_whitespace.c: New file.
56596
56597         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56598         Unicode 5.0.0.
56599         * lib/unictype/blocks.h: Likewise.
56600         * lib/unictype/categ_C.h: Likewise.
56601         * lib/unictype/categ_Cc.h: Likewise.
56602         * lib/unictype/categ_Cf.h: Likewise.
56603         * lib/unictype/categ_Cn.h: Likewise.
56604         * lib/unictype/categ_Co.h: Likewise.
56605         * lib/unictype/categ_Cs.h: Likewise.
56606         * lib/unictype/categ_L.h: Likewise.
56607         * lib/unictype/categ_Ll.h: Likewise.
56608         * lib/unictype/categ_Lm.h: Likewise.
56609         * lib/unictype/categ_Lo.h: Likewise.
56610         * lib/unictype/categ_Lt.h: Likewise.
56611         * lib/unictype/categ_Lu.h: Likewise.
56612         * lib/unictype/categ_M.h: Likewise.
56613         * lib/unictype/categ_Mc.h: Likewise.
56614         * lib/unictype/categ_Me.h: Likewise.
56615         * lib/unictype/categ_Mn.h: Likewise.
56616         * lib/unictype/categ_N.h: Likewise.
56617         * lib/unictype/categ_Nd.h: Likewise.
56618         * lib/unictype/categ_Nl.h: Likewise.
56619         * lib/unictype/categ_No.h: Likewise.
56620         * lib/unictype/categ_P.h: Likewise.
56621         * lib/unictype/categ_Pc.h: Likewise.
56622         * lib/unictype/categ_Pd.h: Likewise.
56623         * lib/unictype/categ_Pe.h: Likewise.
56624         * lib/unictype/categ_Pf.h: Likewise.
56625         * lib/unictype/categ_Pi.h: Likewise.
56626         * lib/unictype/categ_Po.h: Likewise.
56627         * lib/unictype/categ_Ps.h: Likewise.
56628         * lib/unictype/categ_S.h: Likewise.
56629         * lib/unictype/categ_Sc.h: Likewise.
56630         * lib/unictype/categ_Sk.h: Likewise.
56631         * lib/unictype/categ_Sm.h: Likewise.
56632         * lib/unictype/categ_So.h: Likewise.
56633         * lib/unictype/categ_Z.h: Likewise.
56634         * lib/unictype/categ_Zl.h: Likewise.
56635         * lib/unictype/categ_Zp.h: Likewise.
56636         * lib/unictype/categ_Zs.h: Likewise.
56637         * lib/unictype/categ_of.h: Likewise.
56638         * lib/unictype/combining.h: Likewise.
56639         * lib/unictype/ctype_alnum.h: Likewise.
56640         * lib/unictype/ctype_alpha.h: Likewise.
56641         * lib/unictype/ctype_blank.h: Likewise.
56642         * lib/unictype/ctype_cntrl.h: Likewise.
56643         * lib/unictype/ctype_digit.h: Likewise.
56644         * lib/unictype/ctype_graph.h: Likewise.
56645         * lib/unictype/ctype_lower.h: Likewise.
56646         * lib/unictype/ctype_print.h: Likewise.
56647         * lib/unictype/ctype_punct.h: Likewise.
56648         * lib/unictype/ctype_space.h: Likewise.
56649         * lib/unictype/ctype_upper.h: Likewise.
56650         * lib/unictype/ctype_xdigit.h: Likewise.
56651         * lib/unictype/decdigit.h: Likewise.
56652         * lib/unictype/digit.h: Likewise.
56653         * lib/unictype/mirror.h: Likewise.
56654         * lib/unictype/numeric.h: Likewise.
56655         * lib/unictype/pr_alphabetic.h: Likewise.
56656         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56657         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56658         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56659         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56660         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56661         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56662         * lib/unictype/pr_bidi_control.h: Likewise.
56663         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56664         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56665         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56666         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56667         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56668         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56669         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56670         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56671         * lib/unictype/pr_bidi_pdf.h: Likewise.
56672         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56673         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56674         * lib/unictype/pr_combining.h: Likewise.
56675         * lib/unictype/pr_composite.h: Likewise.
56676         * lib/unictype/pr_currency_symbol.h: Likewise.
56677         * lib/unictype/pr_dash.h: Likewise.
56678         * lib/unictype/pr_decimal_digit.h: Likewise.
56679         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56680         * lib/unictype/pr_deprecated.h: Likewise.
56681         * lib/unictype/pr_diacritic.h: Likewise.
56682         * lib/unictype/pr_extender.h: Likewise.
56683         * lib/unictype/pr_format_control.h: Likewise.
56684         * lib/unictype/pr_grapheme_base.h: Likewise.
56685         * lib/unictype/pr_grapheme_extend.h: Likewise.
56686         * lib/unictype/pr_grapheme_link.h: Likewise.
56687         * lib/unictype/pr_hex_digit.h: Likewise.
56688         * lib/unictype/pr_hyphen.h: Likewise.
56689         * lib/unictype/pr_id_continue.h: Likewise.
56690         * lib/unictype/pr_id_start.h: Likewise.
56691         * lib/unictype/pr_ideographic.h: Likewise.
56692         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56693         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56694         * lib/unictype/pr_ignorable_control.h: Likewise.
56695         * lib/unictype/pr_iso_control.h: Likewise.
56696         * lib/unictype/pr_join_control.h: Likewise.
56697         * lib/unictype/pr_left_of_pair.h: Likewise.
56698         * lib/unictype/pr_line_separator.h: Likewise.
56699         * lib/unictype/pr_logical_order_exception.h: Likewise.
56700         * lib/unictype/pr_lowercase.h: Likewise.
56701         * lib/unictype/pr_math.h: Likewise.
56702         * lib/unictype/pr_non_break.h: Likewise.
56703         * lib/unictype/pr_not_a_character.h: Likewise.
56704         * lib/unictype/pr_numeric.h: Likewise.
56705         * lib/unictype/pr_other_alphabetic.h: Likewise.
56706         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56707         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56708         * lib/unictype/pr_other_id_continue.h: Likewise.
56709         * lib/unictype/pr_other_id_start.h: Likewise.
56710         * lib/unictype/pr_other_lowercase.h: Likewise.
56711         * lib/unictype/pr_other_math.h: Likewise.
56712         * lib/unictype/pr_other_uppercase.h: Likewise.
56713         * lib/unictype/pr_paired_punctuation.h: Likewise.
56714         * lib/unictype/pr_paragraph_separator.h: Likewise.
56715         * lib/unictype/pr_pattern_syntax.h: Likewise.
56716         * lib/unictype/pr_pattern_white_space.h: Likewise.
56717         * lib/unictype/pr_private_use.h: Likewise.
56718         * lib/unictype/pr_punctuation.h: Likewise.
56719         * lib/unictype/pr_quotation_mark.h: Likewise.
56720         * lib/unictype/pr_radical.h: Likewise.
56721         * lib/unictype/pr_sentence_terminal.h: Likewise.
56722         * lib/unictype/pr_soft_dotted.h: Likewise.
56723         * lib/unictype/pr_space.h: Likewise.
56724         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56725         * lib/unictype/pr_titlecase.h: Likewise.
56726         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56727         * lib/unictype/pr_unified_ideograph.h: Likewise.
56728         * lib/unictype/pr_uppercase.h: Likewise.
56729         * lib/unictype/pr_variation_selector.h: Likewise.
56730         * lib/unictype/pr_white_space.h: Likewise.
56731         * lib/unictype/pr_xid_continue.h: Likewise.
56732         * lib/unictype/pr_xid_start.h: Likewise.
56733         * lib/unictype/pr_zero_width.h: Likewise.
56734         * lib/unictype/scripts.h: Likewise.
56735         * lib/unictype/scripts_byname.gperf: Likewise.
56736         * lib/unictype/sy_c_ident.h: Likewise.
56737         * lib/unictype/sy_c_whitespace.h: Likewise.
56738         * lib/unictype/sy_java_ident.h: Likewise.
56739         * lib/unictype/sy_java_whitespace.h: Likewise.
56740
56741         * lib/unictype/Makefile: New file.
56742         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56743         glibc.
56744         * lib/unictype/3level.h: New file, copied from glibc.
56745         * lib/unictype/3levelbit.h: New file.
56746
56747 2007-11-11  Bruno Haible  <bruno@clisp.org>
56748
56749         * modules/gperf: New file.
56750         * modules/iconv_open (Depends-on): Add it.
56751         (Makefile.am): Remove the GPERF definition.
56752
56753 2007-11-11  Bruno Haible  <bruno@clisp.org>
56754
56755         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56756         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56757
56758 2007-11-11  Bruno Haible  <bruno@clisp.org>
56759
56760         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56761         (usage): Remove function.
56762
56763 2007-11-11  Bruno Haible  <bruno@clisp.org>
56764
56765         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56766         gl_FUNC_CEILF_LIBS.
56767         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56768         gl_FUNC_CEIL_LIBS.
56769         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56770         gl_FUNC_CEILL_LIBS.
56771         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56772         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56773         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56774
56775 2007-11-11  Bruno Haible  <bruno@clisp.org>
56776
56777         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56778         roundf were declared but do not exist on functions.
56779         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56780         roundl were declared but do not exist on functions.
56781         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56782         HAVE_FLOORL_AND_CEILL, respectively.
56783         Needed for Sun C on Solaris 10.
56784
56785 2007-11-11  Bruno Haible  <bruno@clisp.org>
56786
56787         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56788         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56789         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56790         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56791         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56792         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56793         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56794         HAVE_DECL_ROUNDF.
56795         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56796         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56798         of HAVE_DECL_ROUND*.
56799         * modules/math (Makefile.am): Update.
56800
56801 2007-11-10  Bruno Haible  <bruno@clisp.org>
56802
56803         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56804         ptrdiff_t as m4/intl.m4.
56805
56806 2007-11-10  Jim Meyering  <meyering@redhat.com>
56807
56808         Avoid link failure for the argmatch test.
56809         * tests/test-argmatch.c (usage): Define function to avoid a link
56810         failure: argmatch_die requires a usage function.
56811
56812 2007-11-09  Bruno Haible  <bruno@clisp.org>
56813
56814         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56815         * doc/functions/vsnprintf.texi: Likewise.
56816         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56817         with a size argument < 2.
56818
56819 2007-11-09  Bruno Haible  <bruno@clisp.org>
56820
56821         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56822         buffer. Fixes an inefficiency introduced on 2007-11-03.
56823
56824 2007-11-09  Bruno Haible  <bruno@clisp.org>
56825
56826         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56827         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56828
56829 2007-11-08  Jim Meyering  <meyering@redhat.com>
56830
56831         Change cache variable name prefix "jm_" to "gl_" everywhere.
56832         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56833         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56834         * m4/uptime.m4: s/gl_/jm_/
56835
56836 2007-11-07  Bruno Haible  <bruno@clisp.org>
56837
56838         Update to GNU gettext 0.17.
56839         * m4/intl.m4: Update to GNU gettext 0.17.
56840         * m4/po.m4: Likewise.
56841         * modules/gettext (Files): Remove m4/ulonglong.m4.
56842         (configure.ac): Require gettext infrastructure from version 0.17.
56843
56844 2007-11-06  Bruno Haible  <bruno@clisp.org>
56845
56846         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56847         symbolic values are not defined in a public header.
56848         * lib/freadable.c (freadable) [QNX]: Likewise.
56849         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56850         * lib/freading.c (freading) [QNX]: Likewise.
56851         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56852         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56853         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56854         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56855         Reported by Alain Magloire.
56856
56857         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56858
56859 2007-11-05  Bruno Haible  <bruno@clisp.org>
56860
56861         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56862         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56863         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56864         Reported by Eric Blake.
56865
56866 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56867             Bruno Haible  <bruno@clisp.org>
56868
56869         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56870         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56871         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56872         (malloc): Undefine also before including <stdlib.h>.
56873         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56874         Needed on OSF/1 4.0.
56875
56876 2007-11-05  Jim Meyering  <meyering@redhat.com>
56877
56878         git-version-gen: sync from coreutils.
56879         * build-aux/git-version-gen: Add comments.
56880         Change the first '-' to '.' in the snapshot version string,
56881         e.g., 6.9-377-08144 -> 6.9.377-08144
56882         Remove first parameter.
56883         Don't declare a version "-dirty" merely because a time
56884         stamp has changed.
56885
56886 2007-11-04  Bruno Haible  <bruno@clisp.org>
56887
56888         * lib/lock.h: Protect all macro definitions containing an 'if'
56889         statement through a "do { ... } while (0)".
56890         * lib/tls.h: Likewise.
56891
56892 2007-11-04  Bruno Haible  <bruno@clisp.org>
56893
56894         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56895
56896 2007-11-04  Bruno Haible  <bruno@clisp.org>
56897
56898         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56899         * modules/fprintf-posix (Depends-on): Add nocrash.
56900         * modules/snprintf-posix (Depends-on): Likewise.
56901         * modules/sprintf-posix (Depends-on): Likewise.
56902         * modules/vasnprintf-posix (Depends-on): Likewise.
56903         * modules/vasprintf-posix (Depends-on): Likewise.
56904         * modules/vfprintf-posix (Depends-on): Likewise.
56905         * modules/vsnprintf-posix (Depends-on): Likewise.
56906         * modules/vsprintf-posix (Depends-on): Likewise.
56907         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56908         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56909         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56910         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56911         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56912         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56913         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56914
56915 2007-11-04  Bruno Haible  <bruno@clisp.org>
56916
56917         * modules/nocrash: New file.
56918         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56919         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56920
56921 2007-11-04  Bruno Haible  <bruno@clisp.org>
56922
56923         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56924         precision handling.
56925         * tests/test-vasprintf-posix.c (test_function): Likewise.
56926         * tests/test-snprintf-posix.h (test_function): Likewise.
56927         * tests/test-sprintf-posix.h (test_function): Likewise.
56928
56929         Fix *printf behaviour for large precisions on mingw and BeOS.
56930         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56931         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56932         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56933         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56935         gl_PRINTF_PRECISION and test its result. Invoke
56936         gl_PREREQ_VASNPRINTF_PRECISION.
56937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56938         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56939         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56940         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56941         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56942         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56943         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56944         * doc/functions/fprintf.texi: Update.
56945         * doc/functions/printf.texi: Update.
56946         * doc/functions/snprintf.texi: Update.
56947         * doc/functions/sprintf.texi: Update.
56948         * doc/functions/vfprintf.texi: Update.
56949         * doc/functions/vprintf.texi: Update.
56950         * doc/functions/vsnprintf.texi: Update.
56951         * doc/functions/vsprintf.texi: Update.
56952
56953 2007-11-04  Bruno Haible  <bruno@clisp.org>
56954
56955         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56956
56957 2007-11-04  Bruno Haible  <bruno@clisp.org>
56958
56959         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56960         Reported by Sylvain Beucler <beuc@gnu.org>.
56961
56962 2007-11-03  Bruno Haible  <bruno@clisp.org>
56963
56964         * tests/test-fprintf-posix2.sh: New file.
56965         * tests/test-fprintf-posix2.c: New file.
56966         * modules/fprintf-posix-tests (Files): Add them.
56967         (TESTS): Add test-fprintf-posix2.sh.
56968         (configure.ac): Check for getrlimit and setrlimit.
56969         (check_PROGRAMS): Add test-fprintf-posix2.
56970
56971         * tests/test-printf-posix2.sh: New file.
56972         * tests/test-printf-posix2.c: New file.
56973         * modules/printf-posix-tests (Files): Add them.
56974         (TESTS): Add test-printf-posix2.sh.
56975         (configure.ac): Check for getrlimit and setrlimit.
56976         (check_PROGRAMS): Add test-printf-posix2.
56977
56978         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56979         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56980         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56981         (decode_double): New function, copied from decode_long_double.
56982         (scale10_round_decimal_decoded): New function, extracted from
56983         scale10_round_decimal_long_double.
56984         (scale10_round_decimal_long_double): Use it.
56985         (scale10_round_decimal_double): New function.
56986         (floorlog10): New function.
56987         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56988         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56989         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56991         gl_PRINTF_ENOMEM and test its result. Invoke
56992         gl_PREREQ_VASNPRINTF_ENOMEM.
56993         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56994         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56995         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56996         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56997         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56998         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56999         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57000         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
57001         * modules/snprintf-posix (Depends-on): Likewise.
57002         * modules/sprintf-posix (Depends-on): Likewise.
57003         * modules/vasnprintf-posix (Depends-on): Likewise.
57004         * modules/vasprintf-posix (Depends-on): Likewise.
57005         * modules/vfprintf-posix (Depends-on): Likewise.
57006         * modules/vsnprintf-posix (Depends-on): Likewise.
57007         * modules/vsprintf-posix (Depends-on): Likewise.
57008         * doc/functions/fprintf.texi: Update.
57009         * doc/functions/printf.texi: Update.
57010         * doc/functions/snprintf.texi: Update.
57011         * doc/functions/sprintf.texi: Update.
57012         * doc/functions/vfprintf.texi: Update.
57013         * doc/functions/vprintf.texi: Update.
57014         * doc/functions/vsnprintf.texi: Update.
57015         * doc/functions/vsprintf.texi: Update.
57016
57017 2007-11-03  Bruno Haible  <bruno@clisp.org>
57018
57019         * modules/frexp-nolibm-tests: New file.
57020
57021         * modules/frexp-nolibm: New file.
57022         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
57023
57024 2007-11-03  Bruno Haible  <bruno@clisp.org>
57025
57026         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
57027         value is C99 compliant.
57028         Needed for OSF/1 5.1.
57029
57030 2007-11-03  Bruno Haible  <bruno@clisp.org>
57031
57032         Fix out-of-memory handling of vasnprintf.
57033         * lib/printf-parse.c: Include <errno.h>.
57034         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
57035         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
57036         is already set.
57037
57038 2007-11-02  Eric Blake  <ebb9@byu.net>
57039
57040         Fix tests on cygwin.
57041         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
57042
57043 2007-11-01  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
57046         warning.
57047         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
57048         needed for POSIX compatibility.
57049
57050 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
57051
57052         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
57053         for compatibility with GNU.
57054
57055 2007-11-01  Bruno Haible  <bruno@clisp.org>
57056
57057         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
57058         (putenv): Renamed from rpl_putenv. Change argument type from
57059         'const char *' to 'char *'.
57060         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
57061         of defining putenv in config.h, just set REPLACE_PUTENV.
57062         * modules/putenv (Depends-on): Add stdlib.
57063         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57064         (Include): Use <stdlib.h>.
57065         * lib/stdlib.in.h (putenv): New declaration.
57066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
57067         REPLACE_PUTENV.
57068         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
57069         REPLACE_PUTENV.
57070         Needed for MacOS X 10.5.0.
57071         Reported by Peter O'Gorman <peter@pogma.com>.
57072
57073 2007-11-01  Jim Meyering  <meyering@redhat.com>
57074
57075         Treat an empty date string exactly like "0".
57076         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
57077         if the remaining date string (to be parsed) is empty, use "0".
57078         Reported by Mischa Molhoek and discussed in this thread:
57079         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
57080
57081 2007-10-31  Bruno Haible  <bruno@clisp.org>
57082
57083         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
57084         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
57085         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
57086         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
57087         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
57088         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
57089
57090 2007-10-31  Bruno Haible  <bruno@clisp.org>
57091
57092         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
57093         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
57094         (AC_TYPE_LONG_LONG_INT): Use it.
57095         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
57096         it as well.
57097         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
57098         to m4/longlong.m4.
57099         * modules/stdint (Files): Remove m4/ulonglong.m4.
57100         * modules/strtoull (Files): Use m4/longlong.m4 instead of
57101         m4/ulonglong.m4.
57102         * modules/strtoumax (Files): Likewise.
57103
57104 2007-10-30  Bruno Haible  <bruno@clisp.org>
57105
57106         * modules/xvasprintf-posix: New file.
57107         Suggested by Eric Blake.
57108
57109 2007-10-30  Bruno Haible  <bruno@clisp.org>
57110
57111         * modules/xprintf-posix-tests: New file.
57112         * tests/test-xprintf-posix.sh: New file.
57113         * tests/test-xprintf-posix.c: New file.
57114         * tests/test-xfprintf-posix.c: New file.
57115
57116         * modules/xprintf-posix: New file.
57117
57118 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57119
57120         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
57121         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
57122         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
57123
57124 2007-10-29  Bruno Haible  <bruno@clisp.org>
57125
57126         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
57127         contain the special marker '_cv_'.
57128         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
57129         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
57130         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
57131         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
57132         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
57133         Reported by Ralf Wildenhues.
57134
57135 2007-10-29  Bruno Haible  <bruno@clisp.org>
57136
57137         * gnulib-tool (func_import): When --lgpl is not specified, set
57138         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
57139         GPLv3.
57140         Reported by Simon Josefsson.
57141
57142 2007-10-28  Bruno Haible  <bruno@clisp.org>
57143
57144         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
57145         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
57146         HAVE_DECL_ISFINITE.
57147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57148         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
57149         HAVE_DECL_ISFINITE.
57150
57151 2007-10-28  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
57154         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
57155
57156 2007-10-28  Bruno Haible  <bruno@clisp.org>
57157
57158         Fix link errors with Sun C 5.0 on Solaris 10.
57159         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
57160         function is declared but not present in the compiler's libm.
57161         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57162         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57163         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57164         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57165         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57166         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57167         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57168         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57169         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57170         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57171         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57172         HAVE_DECL_FLOORL.
57173
57174 2007-10-28  Bruno Haible  <bruno@clisp.org>
57175
57176         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57177         gl_FUNC_FLOORL. Cache the result.
57178         (gl_FUNC_FLOORL): Use it.
57179         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57180         gl_FUNC_CEILL. Cache the result.
57181         (gl_FUNC_CEILL): Use it.
57182
57183         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57184         gl_FUNC_FLOOR. Cache the result.
57185         (gl_FUNC_FLOOR): Use it.
57186         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57187         gl_FUNC_CEIL. Cache the result.
57188         (gl_FUNC_CEIL): Use it.
57189
57190         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57191         gl_FUNC_FLOORF. Cache the result.
57192         (gl_FUNC_FLOORF): Use it.
57193         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57194         gl_FUNC_CEILF. Cache the result.
57195         (gl_FUNC_CEILF): Use it.
57196
57197 2007-10-28  Bruno Haible  <bruno@clisp.org>
57198
57199         * gnulib-tool: Allow specifying the LGPL version number through
57200         --lgpl=2 or --lgpl=3.
57201         (func_usage): Document --lgpl with argument.
57202         Handle --lgpl=... arguments.
57203         (func_import): Recognize also gl_LGPL calls with an argument. When
57204         --lgpl=2 is used and the module's license is just LGPL, report an
57205         error. Set sed_transform_lib_file according to the lgpl variable. In
57206         the generated files, use --lgpl or gl_LGPL invocations with argument,
57207         if necessary.
57208         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57209         an LGPv2+ license.
57210         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57211         gl_LGPL macro.
57212
57213 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57214             Bruno Haible  <bruno@clisp.org>
57215
57216         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57217         (u16_uctomb_aux): Likewise.
57218         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57219         !HAVE_INLINE.
57220         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57221
57222 2007-10-28  Bruno Haible  <bruno@clisp.org>
57223
57224         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57225         Invoke AM_GETTEXT_OPTION if it exists.
57226         * modules/vasprintf: Likewise.
57227         * modules/verror: Likewise.
57228         * modules/xprintf: Likewise.
57229         * modules/xvasprintf: Likewise.
57230
57231 2007-10-27  Ben Pfaff  <blp@gnu.org>
57232
57233         * lib/math.in.h: Define isfinite macro and prototypes for
57234         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57235         implementations.
57236         * m4/math_h.m4: New substitutions for isfinite module.
57237         * lib/isfinite.c: New file.
57238         * m4/isfinite.m4: New file.
57239         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57240         * modules/isfinite: New file.
57241         * modules/isfinite-tests: New file.
57242         * tests/tests-isfinite.c: New file.
57243         * doc/functions/isfinite.texi: Mention isfinite module.
57244         * MODULES.html.sh: Mention new module.
57245
57246 2007-10-27  Ben Pfaff  <blp@gnu.org>
57247
57248         Ralf Wildenhues reported that Tru64 4.0D declares the round
57249         functions but does not have definitions.
57250         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57251         cannot be found in any library, set the output variable to
57252         "missing" instead of "".
57253         * m4/round.m4: Also use our substitute if we cannot find round in
57254         any library, even if it is declared.
57255         * m4/roundf.m4: Likewise for roundf.
57256         * m4/roundl.m4: Likewise for roundl.
57257         * lib/math.in.h: Undefine roundf, round, roundl before defining
57258         their replacements, to allow for hypothetical systems where these
57259         may be defined as macros but not available in libraries.
57260
57261 2007-10-27  Bruno Haible  <bruno@clisp.org>
57262
57263         * doc/gnulib.texi: Invoke @firstparagraphindent.
57264         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57265         changes in gnulib.
57266         (Source changes): New section.
57267
57268 2007-10-26  Bruno Haible  <bruno@clisp.org>
57269
57270         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57271         borrowed from autoconf.
57272
57273 2007-10-26  Bruno Haible  <bruno@clisp.org>
57274
57275         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57276         strerror returned the empty string. Needed on HP-UX 11.00.
57277
57278 2007-10-24  Micah Cowan  <micah@cowan.name>
57279
57280         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57281         * build-aux/bootstrap: Remove support for now-unnecessary option,
57282         --cvs-user, and envvars CVS_USER, CVS_RSH.
57283
57284 2007-10-24  Jim Meyering  <meyering@redhat.com>
57285
57286         Avoid diagnostics from sha1sum when there is no cached checksum.
57287         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57288         if the po.s1 file hasn't been created yet.
57289
57290         * build-aux/bootstrap: Sync from coreutils:
57291         2007-10-24  Jim Meyering  <meyering@redhat.com>
57292         Get gnulib from the git repository, not from an obsolete cvs one.
57293         * build-aux/bootstrap: Suggestion from Micah Cowan.
57294         2007-10-04  Jim Meyering  <jim@meyering.net>
57295         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57296         (update_po_files): Work also when there are no .po files in po/.
57297
57298 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57299
57300         * README: Append ".git" to git and cg examples.
57301         Problem reported by Benoit Sigoure.
57302
57303 2007-10-23  Micah Cowan  <micah@cowan.name>
57304
57305         * users.txt: Add wget.
57306
57307 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57308
57309         Fix linking of some unistdio tests on FreeBSD.
57310         * modules/unistdio/u16-vsnprintf-tests
57311         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57312         * modules/unistdio/u16-vsprintf-tests
57313         (test_u16_vsnprintf1_LDADD): Likewise.
57314         * modules/unistdio/u32-vsnprintf-tests
57315         (test_u32_vsnprintf1_LDADD): Likewise.
57316         * modules/unistdio/u32-vsprintf-tests
57317         (test_u32_vsprintf1_LDADD): Likewise.
57318         * modules/unistdio/u8-vsnprintf-tests
57319         (test_u8_vsnprintf1_LDADD): Likewise.
57320         * modules/unistdio/u8-vsprintf-tests
57321         (test_u8_vsprintf1_LDADD): Likewise.
57322         * modules/unistdio/ulc-vsnprintf-tests
57323         (test_ulc_vsnprintf1_LDADD): Likewise.
57324         * modules/unistdio/ulc-vsprintf-tests
57325         (test_ulc_vsprintf1_LDADD): Likewise.
57326
57327         Fix linking of some uniconv tests on FreeBSD.
57328         * modules/uniconv/u16-conv-from-enc-tests
57329         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57330         * modules/uniconv/u16-conv-to-enc-tests
57331         (test_u16_conv_to_enc_LDADD): Likewise.
57332         * modules/uniconv/u16-strconv-from-enc-tests
57333         (test_u16_strconv_from_enc_LDADD): Likewise.
57334         * modules/uniconv/u16-strconv-to-enc-tests
57335         (test_u16_strconv_to_enc_LDADD): Likewise.
57336         * modules/uniconv/u32-conv-from-enc-tests
57337         (test_u32_conv_from_enc_LDADD): Likewise.
57338         * modules/uniconv/u32-conv-to-enc-tests
57339         (test_u32_conv_to_enc_LDADD): Likewise.
57340         * modules/uniconv/u32-strconv-from-enc-tests
57341         (test_u32_strconv_from_enc_LDADD): Likewise.
57342         * modules/uniconv/u32-strconv-to-enc-tests
57343         (test_u32_strconv_to_enc_LDADD): Likewise.
57344         * modules/uniconv/u8-conv-from-enc-tests
57345         (test_u8_conv_from_enc_LDADD): Likewise.
57346         * modules/uniconv/u8-conv-to-enc-tests
57347         (test_u8_conv_to_enc_LDADD): Likewise.
57348         * modules/uniconv/u8-strconv-from-enc-tests
57349         (test_u8_strconv_from_enc_LDADD): Likewise.
57350         * modules/uniconv/u8-strconv-to-enc-tests
57351         (test_u8_strconv_to_enc_LDADD): Likewise.
57352
57353 2007-10-22  Bruno Haible  <bruno@clisp.org>
57354
57355         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57356         size.
57357
57358 2007-10-22  Eric Blake  <ebb9@byu.net>
57359
57360         Tweak x*printf documentation.
57361         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57362         variable name and comments.
57363         Suggested by Bruno Haible.
57364
57365 2007-10-22  Bruno Haible  <bruno@clisp.org>
57366
57367         * lib/acl.c (copy_acl): Fix file name in comment.
57368
57369 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         Fix Tru64 problem with stdbool.h.
57372         * lib/stdbool.in.h (false, true):
57373         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57374         Don't declare as an enum in this situation; it runs afoul of Tru64.
57375         Problem reported by Steven M. Schweda in
57376         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57377
57378 2007-10-22  Eric Blake  <ebb9@byu.net>
57379
57380         Also wrap vf?printf.
57381         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57382         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57383         (xvprintf, xvfprintf): New functions.
57384
57385 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57386
57387         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57388         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57389
57390         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57391         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57392
57393 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57394
57395         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57396         by Bruno Haible.
57397
57398 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57399
57400         * lib/getloadavg.c
57401         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57402         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57403
57404         * tests/test-i-ring.c: Work for C89.
57405
57406 2007-10-22  Bruno Haible  <bruno@clisp.org>
57407
57408         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57409         -1u, in preprocessor expression, so that we don't test for the bug
57410         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57411         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57412
57413 2007-10-22  Eric Blake  <ebb9@byu.net>
57414
57415         * tests/test-yesno.sh: Silence stderr during test.
57416
57417 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57418
57419         * modules/crypto/gc-camellia: New file.
57420
57421         * m4/gc-camellia.m4: New file.
57422
57423         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57424
57425         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57426
57427 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57428
57429         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57430         --help to stdout.  Reported by sms@antinode.org (Steven
57431         M. Schweda).
57432
57433 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57434
57435         * users.txt: Fix link to libksba.
57436
57437 2007-10-21  Ben Pfaff  <blp@gnu.org>
57438
57439         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57440         round.c roundf implementation that depends on floorf and ceilf to
57441         be tested unconditionally.
57442
57443 2007-10-21  Ben Pfaff  <blp@gnu.org>
57444
57445         * m4/check-libm-func.m4: Removed.
57446         * m4/check-math-lib.m4: New file.
57447         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57448         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57449         definition and lack of AC_LIBOBJ([roundf]).
57450         * m4/roundl.m4: Ditto, and similarly for roundl.
57451         * modules/round: Reference new m4 file.
57452         * modules/roundf: Ditto.
57453         * modules/roundl: Ditto.
57454         * tests/test-round2.c (main): Use ROUND instead of round.
57455         Bug report from Bruno Haible.
57456
57457 2007-10-21  Bruno Haible  <bruno@clisp.org>
57458
57459         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57460         context.
57461
57462 2007-10-21  Bruno Haible  <bruno@clisp.org>
57463
57464         * tests/test-wcwidth.c (main): Allow negative result for some control
57465         characters.
57466
57467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57468         Needed on OSF/1 5.1.
57469
57470 2007-10-21  Bruno Haible  <bruno@clisp.org>
57471
57472         * tests/test-floorf1.c: Include isnanf.h.
57473         (main): Use isnanf() instead of isnan().
57474         * tests/test-ceilf1.c: Include isnanf.h.
57475         (main): Use isnanf() instead of isnan().
57476         * tests/test-truncf1.c: Include isnanf.h.
57477         (main): Use isnanf() instead of isnan().
57478         * tests/test-roundf1.c: Include isnanf.h.
57479         (main): Use isnanf() instead of isnan().
57480
57481 2007-10-21  Eric Blake  <ebb9@byu.net>
57482
57483         * users.txt: Update URL for m4.
57484
57485 2007-10-21  Bruno Haible  <bruno@clisp.org>
57486
57487         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57488
57489 2007-10-21  Bruno Haible  <bruno@clisp.org>
57490
57491         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57492         Git's management files if the CVS files are not present.
57493
57494 2007-10-20  Bruno Haible  <bruno@clisp.org>
57495
57496         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57497         gcc-3.4.x.
57498
57499 2007-10-20  Ben Pfaff  <blp@gnu.org>
57500
57501         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57502         implementations.
57503         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57504         * lib/round.c: New file.
57505         * lib/roundf.c: New file.
57506         * lib/roundl.c: New file.
57507         * m4/round.m4: New file.
57508         * m4/roundf.m4: New file.
57509         * m4/roundl.m4: New file.
57510         * m4/check-libm-func-m4: New file.
57511         * modules/math: Replace round, roundf, roundl related @VARS@ in
57512         math.in.h.
57513         * modules/round: New file.
57514         * modules/round-tests: New file.
57515         * modules/roundf: New file.
57516         * modules/roundf-tests: New file.
57517         * modules/roundl: New file.
57518         * modules/roundl-tests: New file.
57519         * tests/test-round1.c: New file.
57520         * tests/test-round2.c: New file.
57521         * tests/test-roundf1.c: New file.
57522         * tests/test-roundf2.c: New file.
57523         * tests/test-roundl.c: New file.
57524         * doc/functions/round.texi: Mention round module.
57525         * doc/functions/roundf.texi: Mention roundf module.
57526         * doc/functions/roundl.texi: Mention roundl module.
57527         * MODULES.html.sh: Mention new modules.
57528         Thanks to Bruno Haible for suggestions.
57529
57530 2007-10-20  Jim Meyering  <meyering@redhat.com>
57531
57532         * lib/xprintf.c: Include <config.h> unconditionally.
57533
57534         Change xprintf's license to GPL.
57535         * modules/xprintf (License): s/LGPL/GPL/, since this module
57536         depends on modules (exit and exitfail) which are GPL.
57537         Suggestion from Bruno Haible.
57538
57539         xprintf fixes.
57540         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57541         Use a clearer diagnostic.
57542         Patch from Bruno Haible.
57543
57544 2007-10-20  Bruno Haible  <bruno@clisp.org>
57545
57546         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57547         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57548         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57549
57550 2007-10-20  Bruno Haible  <bruno@clisp.org>
57551
57552         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57553         precision in the comparison result > x - 1 or similar.
57554         * tests/test-ceilf2.c (correct_result_p): Likewise.
57555         * tests/test-truncf2.c (correct_result_p): Likewise.
57556         * tests/test-trunc2.c (correct_result_p): Likewise.
57557         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57558
57559 2007-10-20  Bruno Haible  <bruno@clisp.org>
57560
57561         * modules/ceil: New file.
57562         * m4/ceil.m4: New file.
57563         * doc/functions/ceil.texi: Mention the 'ceil' module.
57564
57565 2007-10-20  Bruno Haible  <bruno@clisp.org>
57566
57567         * modules/floor: New file.
57568         * m4/floor.m4: New file.
57569         * doc/functions/floor.texi: Mention the 'floor' module.
57570
57571 2007-10-20  Bruno Haible  <bruno@clisp.org>
57572
57573         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57574         of %a.
57575         * modules/floorf-tests (Depends-on): Likewise.
57576         * modules/truncf-tests (Depends-on): Likewise.
57577         * modules/trunc-tests (Depends-on): Likewise.
57578         Reported by Ben Pfaff.
57579
57580 2007-10-19  Jim Meyering  <meyering@redhat.com>
57581
57582         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57583         Don't bother testing specific errno values.  Just test ferror.
57584
57585         New module: xprintf
57586         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57587
57588 2007-10-19  Bruno Haible  <bruno@clisp.org>
57589
57590         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57591         syntax.
57592         * modules/javaexec (Makefile.am): Likewise.
57593         * modules/relocatable-prog (Makefile.am): Likewise.
57594         Suggested by Jim Meyering.
57595
57596 2007-10-18  Bruno Haible  <bruno@clisp.org>
57597
57598         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57599         Reported by Jim Meyering.
57600
57601 2007-10-18  Eric Blake  <ebb9@byu.net>
57602
57603         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57604
57605 2007-10-18  Bruno Haible  <bruno@clisp.org>
57606
57607         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57608         the format string into writable memory. Needed in Fortify conditions.
57609
57610 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57611             Bruno Haible  <bruno@clisp.org>
57612
57613         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57614         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57615         * modules/trim (Depends-on): Add mbchar.
57616         (configure.ac): Add gl_FUNC_MBRTOWC.
57617         (Makefile.am): Augment lib_SOURCES.
57618
57619 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57620
57621         Modify glob.c to use fstatat and dirfd, to simplify it.
57622         Suggested by Eric Blake.
57623         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57624         Don't include <stdbool.h>; not used.
57625         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57626         (link_exists_p): Simplify implementation, since we can now assume
57627         dirfd and fstatat.
57628         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57629
57630 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57631
57632         * gnulib-tool (func_get_dependencies): Fix sed script to
57633         match only tests.
57634
57635 2007-10-17  Bruno Haible  <bruno@clisp.org>
57636
57637         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57638         allow locale names without encoding suffix.
57639         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57640         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57641
57642 2007-10-16  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57645         * lib/getgroups.c (getgroups): Likewise.
57646         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57647
57648 2007-10-16  Bruno Haible  <bruno@clisp.org>
57649
57650         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57651         * modules/malloc-posix (License): Likewise.
57652         * modules/realloc-posix (License): Likewise.
57653         * modules/calloc-posix (License): Likewise.
57654         * modules/intprops (License): Change from GPL to LGPL, with
57655         Paul Eggert's approval.
57656
57657 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57658
57659         Merge glibc changes into lib/glob.c.
57660
57661         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57662         2007-10-15 04:59:03 UTC.  Here are the changes:
57663
57664         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57665
57666         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57667
57668         * lib/glob.c: Add some branch prediction throughout.
57669
57670         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57671
57672         [BZ #5103]
57673         * lib/glob.c (glob): Recognize patterns starting \/.
57674
57675         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57676
57677         [BZ #3996]
57678         * lib/glob.c (attribute_hidden): Define if not defined.
57679         (glob): Unescape dirname, filename or username when needed and not
57680         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57681         is NULL.  Handle unescaped [ in pattern without closing ].
57682         Don't pass GLOB_CHECK down to recursive glob for directories.
57683         (__glob_pattern_type): New function.
57684         (__glob_pattern_p): Implement using __glob_pattern_type.
57685         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57686         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57687         Remove unreachable code.
57688
57689         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57690
57691         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57692         explain why there are no leaks.
57693
57694         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57695
57696         [BZ #3253]
57697         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57698         time, rather allocate increasingly bigger arrays of pointers, if
57699         possible with alloca, if too large with malloc.
57700
57701 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57702
57703         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57704         Problem reported by H.Merijn Brand in
57705         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57706         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57707         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57708
57709 2007-10-15  Bruno Haible  <bruno@clisp.org>
57710
57711         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57712         with explicit rpl_ prefix.
57713         * lib/fopen.c (fopen): Likewise.
57714         * lib/freopen.c (freopen): Likewise.
57715         * lib/iconv.c (iconv): Likewise.
57716         * lib/iconv_close.c (iconv_close): Likewise.
57717
57718 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57719
57720         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57721
57722 2007-10-15  Bruno Haible  <bruno@clisp.org>
57723
57724         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57725         <stddef.h> instead of <stdlib.h> since we only need NULL.
57726         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57727
57728 2007-10-15  Bruno Haible  <bruno@clisp.org>
57729
57730         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57731         Replace paragraph talking about LIBOBJS.
57732         Reported by Colin Watson <cjwatson@debian.org>.
57733
57734 2007-10-15  Bruno Haible  <bruno@clisp.org>
57735
57736         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57737         <stdlib.h> before using NULL.
57738
57739 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57740
57741         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57742         Reported by Albert Chin <china@thewrittenword.com>.
57743
57744 2007-10-14  Bruno Haible  <bruno@clisp.org>
57745
57746         * modules/iconv_open-utf-tests: New file.
57747         * tests/test-iconv-utf.c: New file.
57748
57749         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57750         * modules/iconv_open-utf: New file.
57751         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57752         (iconv, iconv_close): New declarations.
57753         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57754         be defined.
57755         (iconv_open): Add special handling of conversion between UTF-8 and
57756         UTF-{16,32}{BE,LE}.
57757         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57758         * lib/iconv_close.c: New file.
57759         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57760         gl_FUNC_ICONV_OPEN.
57761         (gl_FUNC_ICONV_OPEN): Use it.
57762         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57763         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57764         and REPLACE_ICONV_UTF.
57765         * modules/iconv_open (Depends-on): Add c-strcase.
57766         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57767         ICONV_CONST.
57768         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57769
57770 2007-10-13  Albert Chin  <china@thewrittenword.com>
57771             Bruno Haible  <bruno@clisp.org>
57772
57773         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57774         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57775
57776 2007-10-13  Bruno Haible  <bruno@clisp.org>
57777
57778         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57779         defined, use the ISO C99 inline semantics.
57780         * lib/argp.h (ARGP_EI): Likewise.
57781
57782 2007-10-13  Bruno Haible  <bruno@clisp.org>
57783
57784         Handle 'inline' change in gcc 4.3.0.
57785         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57786         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57787         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57788         argp_fmtstream_point): Disable 'extern' declaration if the function
57789         definition is going to be provided inline.
57790         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57791         semantics, not the ISO C99 inline semantics.
57792         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57793         'extern' declaration if the function definition is going to be provided
57794         inline.
57795         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57796         the GNU C inline semantics, not the ISO C99 inline semantics. With
57797         GCC 4.2, avoid a warning.
57798
57799 2007-10-13  Bruno Haible  <bruno@clisp.org>
57800
57801         * lib/freading.h (freading): Enable the use of __freading for
57802         glibc >= 2.7.
57803         * lib/freading.c (freading): Likewise.
57804
57805 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57806
57807         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57808         "warning: C99 inline functions are not supported; using GNU89".
57809
57810 2007-10-12  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57813         of 2.
57814         * tests/test-ceilf2.c: New file.
57815         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57816
57817         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57818         * modules/ceilf-tests: Update.
57819
57820 2007-10-12  Bruno Haible  <bruno@clisp.org>
57821
57822         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57823         of 2.
57824         * tests/test-floorf2.c: New file.
57825         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57826
57827         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57828         * modules/floorf-tests: Update.
57829
57830 2007-10-12  Bruno Haible  <bruno@clisp.org>
57831
57832         * tests/test-trunc2.c: New file.
57833         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57834
57835         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57836         * modules/trunc-tests: Update.
57837
57838 2007-10-12  Bruno Haible  <bruno@clisp.org>
57839
57840         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57841         of 2.
57842         * tests/test-truncf2.c: New file.
57843         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57844
57845         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57846         * modules/truncf-tests: Update.
57847
57848 2007-10-11  Eric Blake  <ebb9@byu.net>
57849
57850         Don't claim strerror is broken on Interix.
57851         * doc/functions/strerror.texi (strerror): Known broken systems are
57852         now Solaris 8, and not Interix.
57853         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57854         Interix on cross-compile.
57855         Reported by Martin Koeppe in
57856         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57857
57858 2007-10-11  Bruno Haible  <bruno@clisp.org>
57859
57860         * modules/i-ring-tests: New file.
57861         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57862         instead of assert.
57863
57864 2007-10-11  Bruno Haible  <bruno@clisp.org>
57865
57866         * modules/filenamecat-tests: New file.
57867         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57868         * lib/filenamecat.c: Remove test code.
57869
57870 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57871
57872         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57873
57874         * lib/strerror.c: Include <string.h> always, to test interface,
57875         and to remove the need for the dummy.
57876         Include intprops.h to compute width instead of doing it ourselves
57877         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57878         (strerror): Define it to return NULL if there's no system strerror.
57879         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57880         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57881         ancient pre-strerror Unix systems well any more.  Saying "unknown
57882         system error" is enough.
57883         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57884         simpler strerror.c implementation.
57885         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57886         Simplify the tests to reflect the simpler strerror implementation.
57887         * modules/strerror (Depends-on): Add intprops.
57888
57889 2007-10-09  Eric Blake  <ebb9@byu.net>
57890
57891         Silence test-fpending.
57892         * modules/fpending-tests (Files): Add wrapper script.
57893         * tests/test-fpending.sh: New file.
57894
57895 2007-10-09  Bruno Haible  <bruno@clisp.org>
57896
57897         * MODULES.html.sh (func_module): Don't create a hyperlink for
57898         function names like 'printf_frexp'.
57899         (Misc): Add crc, memxor.
57900         (Characteristics of floating types): New section.
57901         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57902         isnanf-nolibm, signbit, trunc, truncf, truncl.
57903         (Enhancements for ISO C 99 functions): New subsection Input/output.
57904         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57905         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57906         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57907         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57908         (Enhancements for POSIX:2001 functions): Add chdir-long.
57909         (File system functions): Add areadlink, chdir-safer, read-file.
57910         Remove cycle-check.
57911         (File system as inode set): New section.
57912         (Date and time): Add gethrxtime.
57913         (Multithreading): Add openmp.
57914         (Internationalization functions): Add localename.
57915         (Unicode string functions): Add unistr/u*-mbsnlen.
57916         (Support for maintaining and releasing projects): Add git-version-gen.
57917         (Lone files): Remove directories.
57918
57919 2007-10-08  Ben Pfaff  <blp@gnu.org>
57920
57921         * lib/xmalloca.h: Fix typo in comment.
57922
57923 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57924
57925         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57926         when avoiding problems with integer overflow.  Use a portable test
57927         instead.
57928
57929 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57930
57931         * modules/dummy (License): Change to LGPLv2+.
57932         * modules/float (License): Likewise
57933         * modules/realloc (License): Likewise
57934         * modules/stdlib (License): Likewise
57935
57936 2007-10-07  Bruno Haible  <bruno@clisp.org>
57937
57938         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57939         * floor.c (TWO_MANT_DIG): Likewise.
57940         * ceil.c (TWO_MANT_DIG): Likewise.
57941         Reported by Ben Pfaff.
57942
57943 2007-10-07  Bruno Haible  <bruno@clisp.org>
57944
57945         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57946         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57947         * lib/frexp.c (FUNC): Likewise.
57948         * lib/printf-frexp.h (printf_frexp): Likewise.
57949         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57950         * lib/printf-frexp.c (FUNC): Likewise.
57951         Suggested by Jim Meyering.
57952
57953 2007-10-07  Jim Meyering  <meyering@redhat.com>
57954
57955         Make xnanosleep's integer overflow test more robust.
57956         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57957         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57958
57959 2007-10-07  Bruno Haible  <bruno@clisp.org>
57960
57961         * NEWS: Mention the license change.
57962
57963         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57964         abbreviations in the modules files.
57965
57966         Change copyright notice from GPLv2+ to GPLv3+.
57967         * README: Change copyright notice.
57968         * MODULES.html.sh: Likewise.
57969         * build-aux/bootstrap.conf: Likewise.
57970         * build-aux/config.libpath: Likewise.
57971         * build-aux/csharpcomp.sh.in: Likewise.
57972         * build-aux/csharpexec.sh.in: Likewise.
57973         * build-aux/install-reloc: Likewise.
57974         * build-aux/javacomp.sh.in: Likewise.
57975         * build-aux/javaexec.sh.in: Likewise.
57976         * build-aux/ldd.sh.in: Likewise.
57977         * build-aux/reloc-ldflags: Likewise.
57978         * build-aux/relocatable.sh.in: Likewise.
57979         * build-aux/x-to-1.in: Likewise.
57980         * check-module: Likewise.
57981         * config/srclistvars.sh: Likewise.
57982         * gnulib-tool: Likewise.
57983         * lib/acl-internal.h: Likewise.
57984         * lib/acl.c: Likewise.
57985         * lib/acl.h: Likewise.
57986         * lib/acl_entries.c: Likewise.
57987         * lib/areadlink-with-size.c: Likewise.
57988         * lib/areadlink.c: Likewise.
57989         * lib/areadlink.h: Likewise.
57990         * lib/argmatch.c: Likewise.
57991         * lib/argmatch.h: Likewise.
57992         * lib/argp-ba.c: Likewise.
57993         * lib/argp-eexst.c: Likewise.
57994         * lib/argp-fmtstream.c: Likewise.
57995         * lib/argp-fmtstream.h: Likewise.
57996         * lib/argp-fs-xinl.c: Likewise.
57997         * lib/argp-help.c: Likewise.
57998         * lib/argp-namefrob.h: Likewise.
57999         * lib/argp-parse.c: Likewise.
58000         * lib/argp-pin.c: Likewise.
58001         * lib/argp-pv.c: Likewise.
58002         * lib/argp-pvh.c: Likewise.
58003         * lib/argp-xinl.c: Likewise.
58004         * lib/argp.h: Likewise.
58005         * lib/at-func.c: Likewise.
58006         * lib/atanl.c: Likewise.
58007         * lib/backupfile.c: Likewise.
58008         * lib/backupfile.h: Likewise.
58009         * lib/basename.c: Likewise.
58010         * lib/binary-io.h: Likewise.
58011         * lib/byteswap.in.h: Likewise.
58012         * lib/c-stack.c: Likewise.
58013         * lib/c-stack.h: Likewise.
58014         * lib/c-strcasestr.c: Likewise.
58015         * lib/c-strcasestr.h: Likewise.
58016         * lib/c-strstr.c: Likewise.
58017         * lib/c-strstr.h: Likewise.
58018         * lib/c-strtod.c: Likewise.
58019         * lib/calloc.c: Likewise.
58020         * lib/canon-host.c: Likewise.
58021         * lib/canon-host.h: Likewise.
58022         * lib/canonicalize-lgpl.c: Likewise.
58023         * lib/canonicalize.c: Likewise.
58024         * lib/canonicalize.h: Likewise.
58025         * lib/ceil.c: Likewise.
58026         * lib/ceilf.c: Likewise.
58027         * lib/ceill.c: Likewise.
58028         * lib/chdir-long.c: Likewise.
58029         * lib/chdir-long.h: Likewise.
58030         * lib/chdir-safer.c: Likewise.
58031         * lib/chdir-safer.h: Likewise.
58032         * lib/chown.c: Likewise.
58033         * lib/classpath.c: Likewise.
58034         * lib/classpath.h: Likewise.
58035         * lib/clean-temp.c: Likewise.
58036         * lib/clean-temp.h: Likewise.
58037         * lib/cloexec.c: Likewise.
58038         * lib/close-stream.c: Likewise.
58039         * lib/closein.c: Likewise.
58040         * lib/closein.h: Likewise.
58041         * lib/closeout.c: Likewise.
58042         * lib/closeout.h: Likewise.
58043         * lib/concat-filename.c: Likewise.
58044         * lib/copy-file.c: Likewise.
58045         * lib/copy-file.h: Likewise.
58046         * lib/count-one-bits.h: Likewise.
58047         * lib/crc.c: Likewise.
58048         * lib/crc.h: Likewise.
58049         * lib/creat-safer.c: Likewise.
58050         * lib/csharpcomp.c: Likewise.
58051         * lib/csharpcomp.h: Likewise.
58052         * lib/csharpexec.c: Likewise.
58053         * lib/csharpexec.h: Likewise.
58054         * lib/cycle-check.c: Likewise.
58055         * lib/cycle-check.h: Likewise.
58056         * lib/diacrit.c: Likewise.
58057         * lib/diacrit.h: Likewise.
58058         * lib/diffseq.h: Likewise.
58059         * lib/dirchownmod.c: Likewise.
58060         * lib/dirent.in.h: Likewise.
58061         * lib/dirfd.c: Likewise.
58062         * lib/dirfd.h: Likewise.
58063         * lib/dirname.c: Likewise.
58064         * lib/dirname.h: Likewise.
58065         * lib/dummy.c: Likewise.
58066         * lib/dup-safer.c: Likewise.
58067         * lib/dup2.c: Likewise.
58068         * lib/eealloc.h: Likewise.
58069         * lib/error.c: Likewise.
58070         * lib/error.h: Likewise.
58071         * lib/euidaccess.c: Likewise.
58072         * lib/exclude.c: Likewise.
58073         * lib/exclude.h: Likewise.
58074         * lib/execute.c: Likewise.
58075         * lib/execute.h: Likewise.
58076         * lib/exitfail.c: Likewise.
58077         * lib/exitfail.h: Likewise.
58078         * lib/expl.c: Likewise.
58079         * lib/fatal-signal.c: Likewise.
58080         * lib/fatal-signal.h: Likewise.
58081         * lib/fbufmode.c: Likewise.
58082         * lib/fbufmode.h: Likewise.
58083         * lib/fchdir.c: Likewise.
58084         * lib/fchmodat.c: Likewise.
58085         * lib/fchownat.c: Likewise.
58086         * lib/fcntl--.h: Likewise.
58087         * lib/fcntl-safer.h: Likewise.
58088         * lib/fcntl.in.h: Likewise.
58089         * lib/fd-safer.c: Likewise.
58090         * lib/fflush.c: Likewise.
58091         * lib/file-has-acl.c: Likewise.
58092         * lib/file-set.c: Likewise.
58093         * lib/file-type.c: Likewise.
58094         * lib/file-type.h: Likewise.
58095         * lib/fileblocks.c: Likewise.
58096         * lib/filemode.c: Likewise.
58097         * lib/filemode.h: Likewise.
58098         * lib/filename.h: Likewise.
58099         * lib/filenamecat.c: Likewise.
58100         * lib/filenamecat.h: Likewise.
58101         * lib/findprog.c: Likewise.
58102         * lib/findprog.h: Likewise.
58103         * lib/float.in.h: Likewise.
58104         * lib/floor.c: Likewise.
58105         * lib/floorf.c: Likewise.
58106         * lib/floorl.c: Likewise.
58107         * lib/fopen-safer.c: Likewise.
58108         * lib/fopen.c: Likewise.
58109         * lib/fpending.c: Likewise.
58110         * lib/fpending.h: Likewise.
58111         * lib/fprintf.c: Likewise.
58112         * lib/fprintftime.h: Likewise.
58113         * lib/fpucw.h: Likewise.
58114         * lib/fpurge.c: Likewise.
58115         * lib/fpurge.h: Likewise.
58116         * lib/freadable.c: Likewise.
58117         * lib/freadable.h: Likewise.
58118         * lib/freadahead.c: Likewise.
58119         * lib/freadahead.h: Likewise.
58120         * lib/freading.c: Likewise.
58121         * lib/freading.h: Likewise.
58122         * lib/free.c: Likewise.
58123         * lib/freopen.c: Likewise.
58124         * lib/frexp.c: Likewise.
58125         * lib/frexpl.c: Likewise.
58126         * lib/fseek.c: Likewise.
58127         * lib/fseterr.c: Likewise.
58128         * lib/fseterr.h: Likewise.
58129         * lib/fstatat.c: Likewise.
58130         * lib/fstrcmp.c: Likewise.
58131         * lib/fstrcmp.h: Likewise.
58132         * lib/fsusage.c: Likewise.
58133         * lib/fsusage.h: Likewise.
58134         * lib/ftell.c: Likewise.
58135         * lib/ftello.c: Likewise.
58136         * lib/fts-cycle.c: Likewise.
58137         * lib/fts.c: Likewise.
58138         * lib/fts_.h: Likewise.
58139         * lib/full-read.c: Likewise.
58140         * lib/full-read.h: Likewise.
58141         * lib/full-write.c: Likewise.
58142         * lib/full-write.h: Likewise.
58143         * lib/fwritable.c: Likewise.
58144         * lib/fwritable.h: Likewise.
58145         * lib/fwriteerror.c: Likewise.
58146         * lib/fwriteerror.h: Likewise.
58147         * lib/fwriting.c: Likewise.
58148         * lib/fwriting.h: Likewise.
58149         * lib/gcd.c: Likewise.
58150         * lib/gcd.h: Likewise.
58151         * lib/getcwd.c: Likewise.
58152         * lib/getdate.h: Likewise.
58153         * lib/getdate.y: Likewise.
58154         * lib/getdomainname.c: Likewise.
58155         * lib/getdomainname.h: Likewise.
58156         * lib/getgroups.c: Likewise.
58157         * lib/gethostname.c: Likewise.
58158         * lib/gethrxtime.c: Likewise.
58159         * lib/gethrxtime.h: Likewise.
58160         * lib/getloadavg.c: Likewise.
58161         * lib/getndelim2.c: Likewise.
58162         * lib/getndelim2.h: Likewise.
58163         * lib/getnline.c: Likewise.
58164         * lib/getnline.h: Likewise.
58165         * lib/getopt.c: Likewise.
58166         * lib/getopt.in.h: Likewise.
58167         * lib/getopt1.c: Likewise.
58168         * lib/getopt_int.h: Likewise.
58169         * lib/getpagesize.h: Likewise.
58170         * lib/getsubopt.c: Likewise.
58171         * lib/gettime.c: Likewise.
58172         * lib/getugroups.c: Likewise.
58173         * lib/getugroups.h: Likewise.
58174         * lib/getusershell.c: Likewise.
58175         * lib/gl_anyavltree_list1.h: Likewise.
58176         * lib/gl_anyavltree_list2.h: Likewise.
58177         * lib/gl_anyhash_list1.h: Likewise.
58178         * lib/gl_anyhash_list2.h: Likewise.
58179         * lib/gl_anylinked_list1.h: Likewise.
58180         * lib/gl_anylinked_list2.h: Likewise.
58181         * lib/gl_anyrbtree_list1.h: Likewise.
58182         * lib/gl_anyrbtree_list2.h: Likewise.
58183         * lib/gl_anytree_list1.h: Likewise.
58184         * lib/gl_anytree_list2.h: Likewise.
58185         * lib/gl_anytree_oset.h: Likewise.
58186         * lib/gl_anytreehash_list1.h: Likewise.
58187         * lib/gl_anytreehash_list2.h: Likewise.
58188         * lib/gl_array_list.c: Likewise.
58189         * lib/gl_array_list.h: Likewise.
58190         * lib/gl_array_oset.c: Likewise.
58191         * lib/gl_array_oset.h: Likewise.
58192         * lib/gl_avltree_list.c: Likewise.
58193         * lib/gl_avltree_list.h: Likewise.
58194         * lib/gl_avltree_oset.c: Likewise.
58195         * lib/gl_avltree_oset.h: Likewise.
58196         * lib/gl_avltreehash_list.c: Likewise.
58197         * lib/gl_avltreehash_list.h: Likewise.
58198         * lib/gl_carray_list.c: Likewise.
58199         * lib/gl_carray_list.h: Likewise.
58200         * lib/gl_linked_list.c: Likewise.
58201         * lib/gl_linked_list.h: Likewise.
58202         * lib/gl_linkedhash_list.c: Likewise.
58203         * lib/gl_linkedhash_list.h: Likewise.
58204         * lib/gl_list.c: Likewise.
58205         * lib/gl_list.h: Likewise.
58206         * lib/gl_oset.c: Likewise.
58207         * lib/gl_oset.h: Likewise.
58208         * lib/gl_rbtree_list.c: Likewise.
58209         * lib/gl_rbtree_list.h: Likewise.
58210         * lib/gl_rbtree_oset.c: Likewise.
58211         * lib/gl_rbtree_oset.h: Likewise.
58212         * lib/gl_rbtreehash_list.c: Likewise.
58213         * lib/gl_rbtreehash_list.h: Likewise.
58214         * lib/gl_sublist.c: Likewise.
58215         * lib/gl_sublist.h: Likewise.
58216         * lib/group-member.c: Likewise.
58217         * lib/group-member.h: Likewise.
58218         * lib/hard-locale.c: Likewise.
58219         * lib/hard-locale.h: Likewise.
58220         * lib/hash-pjw.c: Likewise.
58221         * lib/hash-pjw.h: Likewise.
58222         * lib/hash-triple.c: Likewise.
58223         * lib/hash.c: Likewise.
58224         * lib/hash.h: Likewise.
58225         * lib/human.c: Likewise.
58226         * lib/human.h: Likewise.
58227         * lib/i-ring.c: Likewise.
58228         * lib/i-ring.h: Likewise.
58229         * lib/idcache.c: Likewise.
58230         * lib/imaxabs.c: Likewise.
58231         * lib/imaxdiv.c: Likewise.
58232         * lib/inet_pton.c: Likewise.
58233         * lib/inet_pton.h: Likewise.
58234         * lib/intprops.h: Likewise.
58235         * lib/inttostr.c: Likewise.
58236         * lib/inttostr.h: Likewise.
58237         * lib/inttypes.in.h: Likewise.
58238         * lib/isapipe.c: Likewise.
58239         * lib/isdir.c: Likewise.
58240         * lib/isnan.c: Likewise.
58241         * lib/isnan.h: Likewise.
58242         * lib/isnanf.c: Likewise.
58243         * lib/isnanf.h: Likewise.
58244         * lib/isnanl-nolibm.h: Likewise.
58245         * lib/isnanl.c: Likewise.
58246         * lib/isnanl.h: Likewise.
58247         * lib/javacomp.c: Likewise.
58248         * lib/javacomp.h: Likewise.
58249         * lib/javaexec.c: Likewise.
58250         * lib/javaexec.h: Likewise.
58251         * lib/javaversion.c: Likewise.
58252         * lib/javaversion.h: Likewise.
58253         * lib/javaversion.java: Likewise.
58254         * lib/lbrkprop.h: Likewise.
58255         * lib/lchmod.h: Likewise.
58256         * lib/lchown.c: Likewise.
58257         * lib/ldexpl.c: Likewise.
58258         * lib/linebreak.c: Likewise.
58259         * lib/linebreak.h: Likewise.
58260         * lib/linebuffer.c: Likewise.
58261         * lib/linebuffer.h: Likewise.
58262         * lib/locale.in.h: Likewise.
58263         * lib/logl.c: Likewise.
58264         * lib/long-options.c: Likewise.
58265         * lib/long-options.h: Likewise.
58266         * lib/lstat.c: Likewise.
58267         * lib/lstat.h: Likewise.
58268         * lib/math.in.h: Likewise.
58269         * lib/mbchar.c: Likewise.
58270         * lib/mbchar.h: Likewise.
58271         * lib/mbfile.h: Likewise.
58272         * lib/mbiter.h: Likewise.
58273         * lib/mbscasecmp.c: Likewise.
58274         * lib/mbscasestr.c: Likewise.
58275         * lib/mbschr.c: Likewise.
58276         * lib/mbscspn.c: Likewise.
58277         * lib/mbslen.c: Likewise.
58278         * lib/mbsncasecmp.c: Likewise.
58279         * lib/mbsnlen.c: Likewise.
58280         * lib/mbspbrk.c: Likewise.
58281         * lib/mbspcasecmp.c: Likewise.
58282         * lib/mbsrchr.c: Likewise.
58283         * lib/mbssep.c: Likewise.
58284         * lib/mbsspn.c: Likewise.
58285         * lib/mbsstr.c: Likewise.
58286         * lib/mbstok_r.c: Likewise.
58287         * lib/mbswidth.c: Likewise.
58288         * lib/mbswidth.h: Likewise.
58289         * lib/mbuiter.h: Likewise.
58290         * lib/memcasecmp.c: Likewise.
58291         * lib/memcasecmp.h: Likewise.
58292         * lib/memchr.c: Likewise.
58293         * lib/memcmp.c: Likewise.
58294         * lib/memcoll.c: Likewise.
58295         * lib/memcoll.h: Likewise.
58296         * lib/memcpy.c: Likewise.
58297         * lib/memrchr.c: Likewise.
58298         * lib/mkancesdirs.c: Likewise.
58299         * lib/mkdir-p.c: Likewise.
58300         * lib/mkdir-p.h: Likewise.
58301         * lib/mkdir.c: Likewise.
58302         * lib/mkdirat.c: Likewise.
58303         * lib/mkdtemp.c: Likewise.
58304         * lib/mkstemp-safer.c: Likewise.
58305         * lib/mkstemp.c: Likewise.
58306         * lib/modechange.c: Likewise.
58307         * lib/modechange.h: Likewise.
58308         * lib/mountlist.c: Likewise.
58309         * lib/mountlist.h: Likewise.
58310         * lib/mpsort.c: Likewise.
58311         * lib/nanosleep.c: Likewise.
58312         * lib/obstack.c: Likewise.
58313         * lib/obstack.h: Likewise.
58314         * lib/open-safer.c: Likewise.
58315         * lib/open.c: Likewise.
58316         * lib/openat-die.c: Likewise.
58317         * lib/openat-priv.h: Likewise.
58318         * lib/openat-proc.c: Likewise.
58319         * lib/openat.c: Likewise.
58320         * lib/openat.h: Likewise.
58321         * lib/pagealign_alloc.c: Likewise.
58322         * lib/pagealign_alloc.h: Likewise.
58323         * lib/physmem.c: Likewise.
58324         * lib/physmem.h: Likewise.
58325         * lib/pipe-safer.c: Likewise.
58326         * lib/pipe.c: Likewise.
58327         * lib/pipe.h: Likewise.
58328         * lib/posixtm.c: Likewise.
58329         * lib/posixtm.h: Likewise.
58330         * lib/posixver.c: Likewise.
58331         * lib/printf-frexp.c: Likewise.
58332         * lib/printf-frexp.h: Likewise.
58333         * lib/printf-frexpl.c: Likewise.
58334         * lib/printf-frexpl.h: Likewise.
58335         * lib/printf.c: Likewise.
58336         * lib/progname.c: Likewise.
58337         * lib/progname.h: Likewise.
58338         * lib/progreloc.c: Likewise.
58339         * lib/putenv.c: Likewise.
58340         * lib/quote.c: Likewise.
58341         * lib/quote.h: Likewise.
58342         * lib/quotearg.c: Likewise.
58343         * lib/quotearg.h: Likewise.
58344         * lib/raise.c: Likewise.
58345         * lib/readline.c: Likewise.
58346         * lib/readline.h: Likewise.
58347         * lib/readlink.c: Likewise.
58348         * lib/readtokens.c: Likewise.
58349         * lib/readtokens.h: Likewise.
58350         * lib/readtokens0.c: Likewise.
58351         * lib/readtokens0.h: Likewise.
58352         * lib/readutmp.c: Likewise.
58353         * lib/readutmp.h: Likewise.
58354         * lib/realloc.c: Likewise.
58355         * lib/relocwrapper.c: Likewise.
58356         * lib/rename-dest-slash.c: Likewise.
58357         * lib/rename.c: Likewise.
58358         * lib/rmdir.c: Likewise.
58359         * lib/rpmatch.c: Likewise.
58360         * lib/safe-read.c: Likewise.
58361         * lib/safe-read.h: Likewise.
58362         * lib/safe-write.c: Likewise.
58363         * lib/safe-write.h: Likewise.
58364         * lib/same-inode.h: Likewise.
58365         * lib/same.c: Likewise.
58366         * lib/same.h: Likewise.
58367         * lib/save-cwd.c: Likewise.
58368         * lib/save-cwd.h: Likewise.
58369         * lib/savedir.c: Likewise.
58370         * lib/savedir.h: Likewise.
58371         * lib/savewd.c: Likewise.
58372         * lib/savewd.h: Likewise.
58373         * lib/search.in.h: Likewise.
58374         * lib/setenv.c: Likewise.
58375         * lib/setenv.h: Likewise.
58376         * lib/settime.c: Likewise.
58377         * lib/sh-quote.c: Likewise.
58378         * lib/sh-quote.h: Likewise.
58379         * lib/sig2str.c: Likewise.
58380         * lib/sig2str.h: Likewise.
58381         * lib/signal.in.h: Likewise.
58382         * lib/signbitd.c: Likewise.
58383         * lib/signbitf.c: Likewise.
58384         * lib/signbitl.c: Likewise.
58385         * lib/sigprocmask.c: Likewise.
58386         * lib/sincosl.c: Likewise.
58387         * lib/sleep.c: Likewise.
58388         * lib/sprintf.c: Likewise.
58389         * lib/sqrtl.c: Likewise.
58390         * lib/stat-time.h: Likewise.
58391         * lib/stdio--.h: Likewise.
58392         * lib/stdio-safer.h: Likewise.
58393         * lib/stdlib--.h: Likewise.
58394         * lib/stdlib-safer.h: Likewise.
58395         * lib/stdlib.in.h: Likewise.
58396         * lib/stpcpy.c: Likewise.
58397         * lib/stpncpy.c: Likewise.
58398         * lib/strchrnul.c: Likewise.
58399         * lib/strcspn.c: Likewise.
58400         * lib/strerror.c: Likewise.
58401         * lib/strftime.c: Likewise.
58402         * lib/strftime.h: Likewise.
58403         * lib/striconveh.c: Likewise.
58404         * lib/striconveh.h: Likewise.
58405         * lib/striconveha.c: Likewise.
58406         * lib/striconveha.h: Likewise.
58407         * lib/stripslash.c: Likewise.
58408         * lib/strnlen1.c: Likewise.
58409         * lib/strnlen1.h: Likewise.
58410         * lib/strtod.c: Likewise.
58411         * lib/strtoimax.c: Likewise.
58412         * lib/strtok_r.c: Likewise.
58413         * lib/strtol.c: Likewise.
58414         * lib/strtoll.c: Likewise.
58415         * lib/strtoul.c: Likewise.
58416         * lib/strtoull.c: Likewise.
58417         * lib/sysexits.in.h: Likewise.
58418         * lib/tempname.c: Likewise.
58419         * lib/tempname.h: Likewise.
58420         * lib/timespec.h: Likewise.
58421         * lib/tls.c: Likewise.
58422         * lib/tls.h: Likewise.
58423         * lib/tmpdir.c: Likewise.
58424         * lib/tmpdir.h: Likewise.
58425         * lib/tmpfile-safer.c: Likewise.
58426         * lib/tmpfile.c: Likewise.
58427         * lib/trigl.c: Likewise.
58428         * lib/trigl.h: Likewise.
58429         * lib/trim.c: Likewise.
58430         * lib/trim.h: Likewise.
58431         * lib/trunc.c: Likewise.
58432         * lib/truncf.c: Likewise.
58433         * lib/truncl.c: Likewise.
58434         * lib/tsearch.c: Likewise.
58435         * lib/unicodeio.c: Likewise.
58436         * lib/unicodeio.h: Likewise.
58437         * lib/unistd--.h: Likewise.
58438         * lib/unistd-safer.h: Likewise.
58439         * lib/unistdio/ulc-fprintf.c: Likewise.
58440         * lib/unistdio/ulc-vfprintf.c: Likewise.
58441         * lib/unlinkdir.c: Likewise.
58442         * lib/unlinkdir.h: Likewise.
58443         * lib/unlocked-io.h: Likewise.
58444         * lib/unsetenv.c: Likewise.
58445         * lib/userspec.c: Likewise.
58446         * lib/utime.c: Likewise.
58447         * lib/utimecmp.c: Likewise.
58448         * lib/utimecmp.h: Likewise.
58449         * lib/utimens.c: Likewise.
58450         * lib/verify.h: Likewise.
58451         * lib/verror.c: Likewise.
58452         * lib/verror.h: Likewise.
58453         * lib/version-etc-fsf.c: Likewise.
58454         * lib/version-etc.c: Likewise.
58455         * lib/version-etc.h: Likewise.
58456         * lib/vfprintf.c: Likewise.
58457         * lib/vprintf.c: Likewise.
58458         * lib/vsprintf.c: Likewise.
58459         * lib/w32spawn.h: Likewise.
58460         * lib/wait-process.c: Likewise.
58461         * lib/wait-process.h: Likewise.
58462         * lib/wcwidth.c: Likewise.
58463         * lib/write-any-file.c: Likewise.
58464         * lib/xalloc-die.c: Likewise.
58465         * lib/xalloc.h: Likewise.
58466         * lib/xasprintf.c: Likewise.
58467         * lib/xgetcwd.c: Likewise.
58468         * lib/xgetcwd.h: Likewise.
58469         * lib/xgetdomainname.c: Likewise.
58470         * lib/xgetdomainname.h: Likewise.
58471         * lib/xgethostname.c: Likewise.
58472         * lib/xmalloc.c: Likewise.
58473         * lib/xmalloca.c: Likewise.
58474         * lib/xmalloca.h: Likewise.
58475         * lib/xmemcoll.c: Likewise.
58476         * lib/xnanosleep.c: Likewise.
58477         * lib/xreadlink.c: Likewise.
58478         * lib/xreadlink.h: Likewise.
58479         * lib/xsetenv.c: Likewise.
58480         * lib/xsetenv.h: Likewise.
58481         * lib/xstriconv.c: Likewise.
58482         * lib/xstriconv.h: Likewise.
58483         * lib/xstrndup.c: Likewise.
58484         * lib/xstrndup.h: Likewise.
58485         * lib/xstrtod.c: Likewise.
58486         * lib/xstrtod.h: Likewise.
58487         * lib/xstrtol-error.c: Likewise.
58488         * lib/xstrtol.c: Likewise.
58489         * lib/xstrtol.h: Likewise.
58490         * lib/xtime.h: Likewise.
58491         * lib/xvasprintf.c: Likewise.
58492         * lib/xvasprintf.h: Likewise.
58493         * lib/yesno.c: Likewise.
58494         * lib/yesno.h: Likewise.
58495         * posix-modules: Likewise.
58496         * tests/test-alloca-opt.c: Likewise.
58497         * tests/test-arcfour.c: Likewise.
58498         * tests/test-arctwo.c: Likewise.
58499         * tests/test-argmatch.c: Likewise.
58500         * tests/test-argp-2.sh: Likewise.
58501         * tests/test-argp.c: Likewise.
58502         * tests/test-arpa_inet.c: Likewise.
58503         * tests/test-array_list.c: Likewise.
58504         * tests/test-array_oset.c: Likewise.
58505         * tests/test-atexit.c: Likewise.
58506         * tests/test-avltree_list.c: Likewise.
58507         * tests/test-avltree_oset.c: Likewise.
58508         * tests/test-avltreehash_list.c: Likewise.
58509         * tests/test-base64.c: Likewise.
58510         * tests/test-binary-io.c: Likewise.
58511         * tests/test-byteswap.c: Likewise.
58512         * tests/test-c-ctype.c: Likewise.
58513         * tests/test-c-strcasecmp.c: Likewise.
58514         * tests/test-c-strcasestr.c: Likewise.
58515         * tests/test-c-strncasecmp.c: Likewise.
58516         * tests/test-c-strstr.c: Likewise.
58517         * tests/test-canonicalize-lgpl.c: Likewise.
58518         * tests/test-canonicalize.c: Likewise.
58519         * tests/test-carray_list.c: Likewise.
58520         * tests/test-ceilf.c: Likewise.
58521         * tests/test-ceill.c: Likewise.
58522         * tests/test-count-one-bits.c: Likewise.
58523         * tests/test-crc.c: Likewise.
58524         * tests/test-dirname.c: Likewise.
58525         * tests/test-fbufmode.c: Likewise.
58526         * tests/test-fcntl.c: Likewise.
58527         * tests/test-fflush.c: Likewise.
58528         * tests/test-floorf.c: Likewise.
58529         * tests/test-floorl.c: Likewise.
58530         * tests/test-fopen.c: Likewise.
58531         * tests/test-fprintf-posix.c: Likewise.
58532         * tests/test-fprintf-posix.h: Likewise.
58533         * tests/test-fpurge.c: Likewise.
58534         * tests/test-freadable.c: Likewise.
58535         * tests/test-freadahead.c: Likewise.
58536         * tests/test-freading.c: Likewise.
58537         * tests/test-freopen.c: Likewise.
58538         * tests/test-frexp.c: Likewise.
58539         * tests/test-frexpl.c: Likewise.
58540         * tests/test-fseek.c: Likewise.
58541         * tests/test-fseeko.c: Likewise.
58542         * tests/test-fseterr.c: Likewise.
58543         * tests/test-fstrcmp.c: Likewise.
58544         * tests/test-ftell.c: Likewise.
58545         * tests/test-ftello.c: Likewise.
58546         * tests/test-fwritable.c: Likewise.
58547         * tests/test-fwriting.c: Likewise.
58548         * tests/test-getaddrinfo.c: Likewise.
58549         * tests/test-getpass.c: Likewise.
58550         * tests/test-gettimeofday.c: Likewise.
58551         * tests/test-hmac-md5.c: Likewise.
58552         * tests/test-hmac-sha1.c: Likewise.
58553         * tests/test-iconv.c: Likewise.
58554         * tests/test-iconvme.c: Likewise.
58555         * tests/test-inttypes.c: Likewise.
58556         * tests/test-isnan.c: Likewise.
58557         * tests/test-isnanf.c: Likewise.
58558         * tests/test-isnanl-nolibm.c: Likewise.
58559         * tests/test-isnanl.c: Likewise.
58560         * tests/test-isnanl.h: Likewise.
58561         * tests/test-ldexpl.c: Likewise.
58562         * tests/test-linked_list.c: Likewise.
58563         * tests/test-linkedhash_list.c: Likewise.
58564         * tests/test-locale.c: Likewise.
58565         * tests/test-localename.c: Likewise.
58566         * tests/test-lock.c: Likewise.
58567         * tests/test-lseek.c: Likewise.
58568         * tests/test-malloca.c: Likewise.
58569         * tests/test-math.c: Likewise.
58570         * tests/test-mbscasecmp.c: Likewise.
58571         * tests/test-mbscasestr1.c: Likewise.
58572         * tests/test-mbscasestr2.c: Likewise.
58573         * tests/test-mbscasestr3.c: Likewise.
58574         * tests/test-mbscasestr4.c: Likewise.
58575         * tests/test-mbschr.c: Likewise.
58576         * tests/test-mbscspn.c: Likewise.
58577         * tests/test-mbsncasecmp.c: Likewise.
58578         * tests/test-mbspbrk.c: Likewise.
58579         * tests/test-mbspcasecmp.c: Likewise.
58580         * tests/test-mbsrchr.c: Likewise.
58581         * tests/test-mbsspn.c: Likewise.
58582         * tests/test-mbsstr1.c: Likewise.
58583         * tests/test-mbsstr2.c: Likewise.
58584         * tests/test-mbsstr3.c: Likewise.
58585         * tests/test-md5.c: Likewise.
58586         * tests/test-memmem.c: Likewise.
58587         * tests/test-netinet_in.c: Likewise.
58588         * tests/test-open.c: Likewise.
58589         * tests/test-printf-frexp.c: Likewise.
58590         * tests/test-printf-frexpl.c: Likewise.
58591         * tests/test-printf-posix.c: Likewise.
58592         * tests/test-printf-posix.h: Likewise.
58593         * tests/test-rbtree_list.c: Likewise.
58594         * tests/test-rbtree_oset.c: Likewise.
58595         * tests/test-rbtreehash_list.c: Likewise.
58596         * tests/test-read-file.c: Likewise.
58597         * tests/test-rijndael.c: Likewise.
58598         * tests/test-search.c: Likewise.
58599         * tests/test-signbit.c: Likewise.
58600         * tests/test-sleep.c: Likewise.
58601         * tests/test-snprintf-posix.c: Likewise.
58602         * tests/test-snprintf-posix.h: Likewise.
58603         * tests/test-snprintf.c: Likewise.
58604         * tests/test-sprintf-posix.c: Likewise.
58605         * tests/test-sprintf-posix.h: Likewise.
58606         * tests/test-stat-time.c: Likewise.
58607         * tests/test-stdbool.c: Likewise.
58608         * tests/test-stdint.c: Likewise.
58609         * tests/test-stdio.c: Likewise.
58610         * tests/test-stdlib.c: Likewise.
58611         * tests/test-stpncpy.c: Likewise.
58612         * tests/test-strcasestr.c: Likewise.
58613         * tests/test-striconv.c: Likewise.
58614         * tests/test-striconveh.c: Likewise.
58615         * tests/test-striconveha.c: Likewise.
58616         * tests/test-string.c: Likewise.
58617         * tests/test-sys_select.c: Likewise.
58618         * tests/test-sys_socket.c: Likewise.
58619         * tests/test-sys_stat.c: Likewise.
58620         * tests/test-sys_time.c: Likewise.
58621         * tests/test-sysexits.c: Likewise.
58622         * tests/test-time.c: Likewise.
58623         * tests/test-tls.c: Likewise.
58624         * tests/test-trunc.c: Likewise.
58625         * tests/test-truncf.c: Likewise.
58626         * tests/test-truncl.c: Likewise.
58627         * tests/test-unistd.c: Likewise.
58628         * tests/test-vasnprintf-posix.c: Likewise.
58629         * tests/test-vasnprintf-posix2.c: Likewise.
58630         * tests/test-vasnprintf.c: Likewise.
58631         * tests/test-vasprintf-posix.c: Likewise.
58632         * tests/test-vasprintf.c: Likewise.
58633         * tests/test-verify.c: Likewise.
58634         * tests/test-vfprintf-posix.c: Likewise.
58635         * tests/test-vprintf-posix.c: Likewise.
58636         * tests/test-vsnprintf-posix.c: Likewise.
58637         * tests/test-vsnprintf.c: Likewise.
58638         * tests/test-vsprintf-posix.c: Likewise.
58639         * tests/test-wchar.c: Likewise.
58640         * tests/test-wctype.c: Likewise.
58641         * tests/test-wcwidth.c: Likewise.
58642         * tests/test-xstrtol.c: Likewise.
58643         * tests/test-xvasprintf.c: Likewise.
58644         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58645         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58646         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58647         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58648         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58649         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58650         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58651         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58652         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58653         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58654         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58655         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58656         * tests/uniname/test-uninames.c: Likewise.
58657         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58658         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58659         * tests/unistdio/test-u16-printf1.h: Likewise.
58660         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58661         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58662         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58663         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58664         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58665         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58666         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58667         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58668         * tests/unistdio/test-u32-printf1.h: Likewise.
58669         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58670         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58671         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58672         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58673         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58674         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58675         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58676         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58677         * tests/unistdio/test-u8-printf1.h: Likewise.
58678         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58679         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58680         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58681         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58682         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58683         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58684         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58685         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58686         * tests/unistdio/test-ulc-printf1.h: Likewise.
58687         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58688         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58689         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58690         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58691         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58692         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58693         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58694         * tests/uniwidth/test-u16-width.c: Likewise.
58695         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58696         * tests/uniwidth/test-u32-width.c: Likewise.
58697         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58698         * tests/uniwidth/test-u8-width.c: Likewise.
58699         * tests/uniwidth/test-uc_width.c: Likewise.
58700         * config/srclist-update: Likewise.
58701         (fixlicense): Update to GPLv3+.
58702
58703         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58704         * tests/test-tsearch.c: Change copyright notice.
58705
58706         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58707         * lib/c-strcaseeq.h: Change copyright notice.
58708         * lib/streq.h: Likewise.
58709         * lib/uniconv.h: Likewise.
58710         * lib/uniconv/u-conv-from-enc.h: Likewise.
58711         * lib/uniconv/u-conv-to-enc.h: Likewise.
58712         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58713         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58714         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58715         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58716         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58717         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58718         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58719         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58720         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58721         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58722         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58723         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58724         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58725         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58726         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58727         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58728         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58729         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58730         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58731         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58732         * lib/uniname.h: Likewise.
58733         * lib/uniname/uniname.c: Likewise.
58734         * lib/unistdio.h: Likewise.
58735         * lib/unistdio/u-asnprintf.h: Likewise.
58736         * lib/unistdio/u-asprintf.h: Likewise.
58737         * lib/unistdio/u-printf-args.c: Likewise.
58738         * lib/unistdio/u-printf-args.h: Likewise.
58739         * lib/unistdio/u-printf-parse.h: Likewise.
58740         * lib/unistdio/u-snprintf.h: Likewise.
58741         * lib/unistdio/u-sprintf.h: Likewise.
58742         * lib/unistdio/u-vasprintf.h: Likewise.
58743         * lib/unistdio/u-vsnprintf.h: Likewise.
58744         * lib/unistdio/u-vsprintf.h: Likewise.
58745         * lib/unistdio/u16-asnprintf.c: Likewise.
58746         * lib/unistdio/u16-asprintf.c: Likewise.
58747         * lib/unistdio/u16-printf-parse.c: Likewise.
58748         * lib/unistdio/u16-snprintf.c: Likewise.
58749         * lib/unistdio/u16-sprintf.c: Likewise.
58750         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58751         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58752         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58753         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58754         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58755         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58756         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58757         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58758         * lib/unistdio/u16-vasnprintf.c: Likewise.
58759         * lib/unistdio/u16-vasprintf.c: Likewise.
58760         * lib/unistdio/u16-vsnprintf.c: Likewise.
58761         * lib/unistdio/u16-vsprintf.c: Likewise.
58762         * lib/unistdio/u32-asnprintf.c: Likewise.
58763         * lib/unistdio/u32-asprintf.c: Likewise.
58764         * lib/unistdio/u32-printf-parse.c: Likewise.
58765         * lib/unistdio/u32-snprintf.c: Likewise.
58766         * lib/unistdio/u32-sprintf.c: Likewise.
58767         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58768         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58769         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58770         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58771         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58772         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58773         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58774         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58775         * lib/unistdio/u32-vasnprintf.c: Likewise.
58776         * lib/unistdio/u32-vasprintf.c: Likewise.
58777         * lib/unistdio/u32-vsnprintf.c: Likewise.
58778         * lib/unistdio/u32-vsprintf.c: Likewise.
58779         * lib/unistdio/u8-asnprintf.c: Likewise.
58780         * lib/unistdio/u8-asprintf.c: Likewise.
58781         * lib/unistdio/u8-printf-parse.c: Likewise.
58782         * lib/unistdio/u8-snprintf.c: Likewise.
58783         * lib/unistdio/u8-sprintf.c: Likewise.
58784         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58785         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58786         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58787         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58788         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58789         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58790         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58791         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58792         * lib/unistdio/u8-vasnprintf.c: Likewise.
58793         * lib/unistdio/u8-vasprintf.c: Likewise.
58794         * lib/unistdio/u8-vsnprintf.c: Likewise.
58795         * lib/unistdio/u8-vsprintf.c: Likewise.
58796         * lib/unistdio/ulc-asnprintf.c: Likewise.
58797         * lib/unistdio/ulc-asprintf.c: Likewise.
58798         * lib/unistdio/ulc-printf-parse.c: Likewise.
58799         * lib/unistdio/ulc-snprintf.c: Likewise.
58800         * lib/unistdio/ulc-sprintf.c: Likewise.
58801         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58802         * lib/unistdio/ulc-vasprintf.c: Likewise.
58803         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58804         * lib/unistdio/ulc-vsprintf.c: Likewise.
58805         * lib/unistr.h: Likewise.
58806         * lib/unistr/u-cpy-alloc.h: Likewise.
58807         * lib/unistr/u-cpy.h: Likewise.
58808         * lib/unistr/u-endswith.h: Likewise.
58809         * lib/unistr/u-move.h: Likewise.
58810         * lib/unistr/u-set.h: Likewise.
58811         * lib/unistr/u-startswith.h: Likewise.
58812         * lib/unistr/u-stpcpy.h: Likewise.
58813         * lib/unistr/u-stpncpy.h: Likewise.
58814         * lib/unistr/u-strcat.h: Likewise.
58815         * lib/unistr/u-strcpy.h: Likewise.
58816         * lib/unistr/u-strcspn.h: Likewise.
58817         * lib/unistr/u-strdup.h: Likewise.
58818         * lib/unistr/u-strlen.h: Likewise.
58819         * lib/unistr/u-strncat.h: Likewise.
58820         * lib/unistr/u-strncpy.h: Likewise.
58821         * lib/unistr/u-strnlen.h: Likewise.
58822         * lib/unistr/u-strpbrk.h: Likewise.
58823         * lib/unistr/u-strspn.h: Likewise.
58824         * lib/unistr/u-strstr.h: Likewise.
58825         * lib/unistr/u-strtok.h: Likewise.
58826         * lib/unistr/u16-check.c: Likewise.
58827         * lib/unistr/u16-chr.c: Likewise.
58828         * lib/unistr/u16-cmp.c: Likewise.
58829         * lib/unistr/u16-cpy-alloc.c: Likewise.
58830         * lib/unistr/u16-cpy.c: Likewise.
58831         * lib/unistr/u16-endswith.c: Likewise.
58832         * lib/unistr/u16-mblen.c: Likewise.
58833         * lib/unistr/u16-mbsnlen.c: Likewise.
58834         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58835         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58836         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58837         * lib/unistr/u16-mbtouc.c: Likewise.
58838         * lib/unistr/u16-mbtoucr.c: Likewise.
58839         * lib/unistr/u16-move.c: Likewise.
58840         * lib/unistr/u16-next.c: Likewise.
58841         * lib/unistr/u16-prev.c: Likewise.
58842         * lib/unistr/u16-set.c: Likewise.
58843         * lib/unistr/u16-startswith.c: Likewise.
58844         * lib/unistr/u16-stpcpy.c: Likewise.
58845         * lib/unistr/u16-stpncpy.c: Likewise.
58846         * lib/unistr/u16-strcat.c: Likewise.
58847         * lib/unistr/u16-strchr.c: Likewise.
58848         * lib/unistr/u16-strcmp.c: Likewise.
58849         * lib/unistr/u16-strcpy.c: Likewise.
58850         * lib/unistr/u16-strcspn.c: Likewise.
58851         * lib/unistr/u16-strdup.c: Likewise.
58852         * lib/unistr/u16-strlen.c: Likewise.
58853         * lib/unistr/u16-strmblen.c: Likewise.
58854         * lib/unistr/u16-strmbtouc.c: Likewise.
58855         * lib/unistr/u16-strncat.c: Likewise.
58856         * lib/unistr/u16-strncmp.c: Likewise.
58857         * lib/unistr/u16-strncpy.c: Likewise.
58858         * lib/unistr/u16-strnlen.c: Likewise.
58859         * lib/unistr/u16-strpbrk.c: Likewise.
58860         * lib/unistr/u16-strrchr.c: Likewise.
58861         * lib/unistr/u16-strspn.c: Likewise.
58862         * lib/unistr/u16-strstr.c: Likewise.
58863         * lib/unistr/u16-strtok.c: Likewise.
58864         * lib/unistr/u16-to-u32.c: Likewise.
58865         * lib/unistr/u16-to-u8.c: Likewise.
58866         * lib/unistr/u16-uctomb-aux.c: Likewise.
58867         * lib/unistr/u16-uctomb.c: Likewise.
58868         * lib/unistr/u32-check.c: Likewise.
58869         * lib/unistr/u32-chr.c: Likewise.
58870         * lib/unistr/u32-cmp.c: Likewise.
58871         * lib/unistr/u32-cpy-alloc.c: Likewise.
58872         * lib/unistr/u32-cpy.c: Likewise.
58873         * lib/unistr/u32-endswith.c: Likewise.
58874         * lib/unistr/u32-mblen.c: Likewise.
58875         * lib/unistr/u32-mbsnlen.c: Likewise.
58876         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58877         * lib/unistr/u32-mbtouc.c: Likewise.
58878         * lib/unistr/u32-mbtoucr.c: Likewise.
58879         * lib/unistr/u32-move.c: Likewise.
58880         * lib/unistr/u32-next.c: Likewise.
58881         * lib/unistr/u32-prev.c: Likewise.
58882         * lib/unistr/u32-set.c: Likewise.
58883         * lib/unistr/u32-startswith.c: Likewise.
58884         * lib/unistr/u32-stpcpy.c: Likewise.
58885         * lib/unistr/u32-stpncpy.c: Likewise.
58886         * lib/unistr/u32-strcat.c: Likewise.
58887         * lib/unistr/u32-strchr.c: Likewise.
58888         * lib/unistr/u32-strcmp.c: Likewise.
58889         * lib/unistr/u32-strcpy.c: Likewise.
58890         * lib/unistr/u32-strcspn.c: Likewise.
58891         * lib/unistr/u32-strdup.c: Likewise.
58892         * lib/unistr/u32-strlen.c: Likewise.
58893         * lib/unistr/u32-strmblen.c: Likewise.
58894         * lib/unistr/u32-strmbtouc.c: Likewise.
58895         * lib/unistr/u32-strncat.c: Likewise.
58896         * lib/unistr/u32-strncmp.c: Likewise.
58897         * lib/unistr/u32-strncpy.c: Likewise.
58898         * lib/unistr/u32-strnlen.c: Likewise.
58899         * lib/unistr/u32-strpbrk.c: Likewise.
58900         * lib/unistr/u32-strrchr.c: Likewise.
58901         * lib/unistr/u32-strspn.c: Likewise.
58902         * lib/unistr/u32-strstr.c: Likewise.
58903         * lib/unistr/u32-strtok.c: Likewise.
58904         * lib/unistr/u32-to-u16.c: Likewise.
58905         * lib/unistr/u32-to-u8.c: Likewise.
58906         * lib/unistr/u32-uctomb.c: Likewise.
58907         * lib/unistr/u8-check.c: Likewise.
58908         * lib/unistr/u8-chr.c: Likewise.
58909         * lib/unistr/u8-cmp.c: Likewise.
58910         * lib/unistr/u8-cpy-alloc.c: Likewise.
58911         * lib/unistr/u8-cpy.c: Likewise.
58912         * lib/unistr/u8-endswith.c: Likewise.
58913         * lib/unistr/u8-mblen.c: Likewise.
58914         * lib/unistr/u8-mbsnlen.c: Likewise.
58915         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58916         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58917         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58918         * lib/unistr/u8-mbtouc.c: Likewise.
58919         * lib/unistr/u8-mbtoucr.c: Likewise.
58920         * lib/unistr/u8-move.c: Likewise.
58921         * lib/unistr/u8-next.c: Likewise.
58922         * lib/unistr/u8-prev.c: Likewise.
58923         * lib/unistr/u8-set.c: Likewise.
58924         * lib/unistr/u8-startswith.c: Likewise.
58925         * lib/unistr/u8-stpcpy.c: Likewise.
58926         * lib/unistr/u8-stpncpy.c: Likewise.
58927         * lib/unistr/u8-strcat.c: Likewise.
58928         * lib/unistr/u8-strchr.c: Likewise.
58929         * lib/unistr/u8-strcmp.c: Likewise.
58930         * lib/unistr/u8-strcpy.c: Likewise.
58931         * lib/unistr/u8-strcspn.c: Likewise.
58932         * lib/unistr/u8-strdup.c: Likewise.
58933         * lib/unistr/u8-strlen.c: Likewise.
58934         * lib/unistr/u8-strmblen.c: Likewise.
58935         * lib/unistr/u8-strmbtouc.c: Likewise.
58936         * lib/unistr/u8-strncat.c: Likewise.
58937         * lib/unistr/u8-strncmp.c: Likewise.
58938         * lib/unistr/u8-strncpy.c: Likewise.
58939         * lib/unistr/u8-strnlen.c: Likewise.
58940         * lib/unistr/u8-strpbrk.c: Likewise.
58941         * lib/unistr/u8-strrchr.c: Likewise.
58942         * lib/unistr/u8-strspn.c: Likewise.
58943         * lib/unistr/u8-strstr.c: Likewise.
58944         * lib/unistr/u8-strtok.c: Likewise.
58945         * lib/unistr/u8-to-u16.c: Likewise.
58946         * lib/unistr/u8-to-u32.c: Likewise.
58947         * lib/unistr/u8-uctomb-aux.c: Likewise.
58948         * lib/unistr/u8-uctomb.c: Likewise.
58949         * lib/unitypes.h: Likewise.
58950         * lib/uniwidth.h: Likewise.
58951         * lib/uniwidth/cjk.h: Likewise.
58952         * lib/uniwidth/u16-strwidth.c: Likewise.
58953         * lib/uniwidth/u16-width.c: Likewise.
58954         * lib/uniwidth/u32-strwidth.c: Likewise.
58955         * lib/uniwidth/u32-width.c: Likewise.
58956         * lib/uniwidth/u8-strwidth.c: Likewise.
58957         * lib/uniwidth/u8-width.c: Likewise.
58958         * lib/uniwidth/width.c: Likewise.
58959
58960 2007-10-07  Bruno Haible  <bruno@clisp.org>
58961
58962         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58963         The file is still under LGPL (see modules/inttypes).
58964
58965 2007-10-06  Bruno Haible  <bruno@clisp.org>
58966
58967         * modules/trunc (Dependencies): Add 'extensions'.
58968         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58969         Reported by Ben Pfaff <blp@gnu.org>.
58970
58971 2007-10-06  Bruno Haible  <bruno@clisp.org>
58972
58973         * modules/freopen-tests: New file.
58974         * tests/test-freopen.c: New file.
58975
58976         * modules/fopen-tests: New file.
58977         * tests/test-fopen.c: New file.
58978
58979         * modules/fopen: New file.
58980         * lib/fopen.c: New file.
58981         * m4/fopen.m4: New file.
58982         * modules/freopen: New file.
58983         * lib/freopen.c: New file.
58984         * m4/freopen.m4: New file.
58985         * lib/stdio.in.h (fopen, freopen): New declarations.
58986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58987         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58988         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58989         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58990         * doc/functions/fopen.texi: Mention the 'fopen' module.
58991         * doc/functions/freopen.texi: Mention the 'freopen' module.
58992
58993 2007-10-06  Bruno Haible  <bruno@clisp.org>
58994
58995         * modules/open-tests: New file.
58996         * tests/test-open.c: New file.
58997
58998         * modules/open: New file.
58999         * lib/open.c: New file.
59000         * m4/open.m4: New file.
59001         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
59002         lib/open.c does.
59003         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
59004         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
59005         macros.
59006         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
59007         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
59008         REPLACE_OPEN.
59009         * doc/functions/open.texi: Mention the 'open' module.
59010
59011 2007-10-04  Bruno Haible  <bruno@clisp.org>
59012
59013         * modules/ceill-tests: New file.
59014         * tests/test-ceill.c: New file.
59015
59016         * modules/ceill: New file.
59017         * lib/ceill.c: Replace entire file.
59018         * m4/ceill.m4: New file.
59019         * lib/math.in.h (ceill): Replace declaration.
59020         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
59021         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
59022         * doc/functions/ceill.texi: Mention the 'ceill' module.
59023         * modules/mathl (Files): Remove lib/ceill.c.
59024         (Depends-on): Add ceill.
59025
59026 2007-10-04  Bruno Haible  <bruno@clisp.org>
59027
59028         * modules/ceilf-tests: New file.
59029         * tests/test-ceilf.c: New file.
59030
59031         * modules/ceilf: New file.
59032         * lib/ceil.c: New file.
59033         * lib/ceilf.c: New file.
59034         * m4/ceilf.m4: New file.
59035         * lib/math.in.h (ceilf): New declaration.
59036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
59037         HAVE_DECL_CEILF.
59038         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
59039         HAVE_DECL_CEILF.
59040         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
59041
59042 2007-10-04  Bruno Haible  <bruno@clisp.org>
59043
59044         * modules/floorl-tests: New file.
59045         * tests/test-floorl.c: New file.
59046
59047         * modules/floorl: New file.
59048         * lib/floorl.c: Replace entire file.
59049         * m4/floorl.m4: New file.
59050         * lib/math.in.h (floorl): Replace declaration.
59051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
59052         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
59053         * doc/functions/floorl.texi: Mention the 'floorl' module.
59054         * modules/mathl (Files): Remove lib/floorl.c.
59055         (Depends-on): Add floorl.
59056
59057 2007-10-04  Bruno Haible  <bruno@clisp.org>
59058
59059         * modules/floorf-tests: New file.
59060         * tests/test-floorf.c: New file.
59061
59062         * modules/floorf: New file.
59063         * lib/floor.c: New file.
59064         * lib/floorf.c: New file.
59065         * m4/floorf.m4: New file.
59066         * lib/math.in.h (floorf): New declaration.
59067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
59068         HAVE_DECL_FLOORF.
59069         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
59070         HAVE_DECL_FLOORF.
59071         * doc/functions/floorf.texi: Mention the 'floorf' module.
59072
59073 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
59074             Bruno Haible  <bruno@clisp.org>
59075
59076         Advertise for the Git server instead of the CVS server.
59077         * doc/gnulib-intro.texi (Steady Development): Mention the Git
59078         repository instead of the CVS one.
59079         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
59080         about all VCS systems generically.
59081         * doc/gnulib.texi (Introduction): Capitalize `Git'.
59082
59083 2007-10-04  Bruno Haible  <bruno@clisp.org>
59084
59085         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
59086         means.
59087         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
59088
59089 2007-10-04  Bruno Haible  <bruno@clisp.org>
59090
59091         * modules/truncl-tests: New file.
59092         * tests/test-truncl.c: New file.
59093
59094         * modules/truncl: New file.
59095         * lib/truncl.c: New file.
59096         * m4/truncl.m4: New file.
59097         * lib/math.in.h (truncl): New declaration.
59098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
59099         HAVE_DECL_TRUNCL.
59100         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
59101         HAVE_DECL_TRUNCL.
59102         * doc/functions/truncl.texi: Mention the 'truncl' module.
59103
59104 2007-10-04  Bruno Haible  <bruno@clisp.org>
59105
59106         * modules/truncf-tests: New file.
59107         * tests/test-truncf.c: New file.
59108
59109         * modules/truncf: New file.
59110         * lib/trunc.c: Make paramerizable through USE_* macros.
59111         * lib/truncf.c: New file.
59112         * m4/truncf.m4: New file.
59113         * lib/math.in.h (truncf): New declaration.
59114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
59115         HAVE_DECL_TRUNCF.
59116         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
59117         HAVE_DECL_TRUNCF.
59118         * doc/functions/truncf.texi: Mention the 'truncf' module.
59119
59120 2007-10-03  Bruno Haible  <bruno@clisp.org>
59121
59122         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59123         augmentation also for tests modules.
59124         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
59125         * modules/atexit-tests (Makefile.am): Likewise.
59126         * modules/binary-io-tests (Makefile.am): Likewise.
59127         * modules/c-strcase-tests (Makefile.am): Likewise.
59128         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
59129         * modules/canonicalize-tests (Makefile.am): Likewise.
59130         * modules/closein-tests (Makefile.am): Likewise.
59131         * modules/fprintf-posix-tests (Makefile.am): Likewise.
59132         * modules/freadahead-tests (Makefile.am): Likewise.
59133         * modules/fseek-tests (Makefile.am): Likewise.
59134         * modules/fseeko-tests (Makefile.am): Likewise.
59135         * modules/ftell-tests (Makefile.am): Likewise.
59136         * modules/ftello-tests (Makefile.am): Likewise.
59137         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
59138         * modules/isnanl-tests (Makefile.am): Likewise.
59139         * modules/lseek-tests (Makefile.am): Likewise.
59140         * modules/mbscasecmp-tests (Makefile.am): Likewise.
59141         * modules/mbscasestr-tests (Makefile.am): Likewise.
59142         * modules/mbschr-tests (Makefile.am): Likewise.
59143         * modules/mbscspn-tests (Makefile.am): Likewise.
59144         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
59145         * modules/mbspbrk-tests (Makefile.am): Likewise.
59146         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
59147         * modules/mbsrchr-tests (Makefile.am): Likewise.
59148         * modules/mbsspn-tests (Makefile.am): Likewise.
59149         * modules/mbsstr-tests (Makefile.am): Likewise.
59150         * modules/printf-posix-tests (Makefile.am): Likewise.
59151         * modules/snprintf-posix-tests (Makefile.am): Likewise.
59152         * modules/sprintf-posix-tests (Makefile.am): Likewise.
59153         * modules/tsearch-tests (Makefile.am): Likewise.
59154         * modules/uniname/uniname-tests (Makefile.am): Likewise.
59155         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
59156         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
59157         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
59158         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
59159         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
59160         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
59161         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59162         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59163         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59164         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59165         * modules/xstrtol-tests (Makefile.am): Likewise.
59166         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59167         * modules/yesno-tests (Makefile.am): Likewise.
59168
59169 2007-10-03  Bruno Haible  <bruno@clisp.org>
59170
59171         * modules/trunc-tests: New file.
59172         * tests/test-trunc.c: New file.
59173
59174         * modules/trunc: New file.
59175         * lib/trunc.c: New file.
59176         * m4/trunc.m4: New file.
59177         * lib/math.in.h (trunc): New declaration.
59178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59179         HAVE_DECL_TRUNC.
59180         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59181         HAVE_DECL_TRUNC.
59182         * doc/functions/trunc.texi: Mention the 'trunc' module.
59183
59184 2007-10-03  Bruno Haible  <bruno@clisp.org>
59185
59186         * tests/test-fpending.c: New file, mostly copied
59187         from coreutils/lib/t-fpending.c.
59188         * modules/fpending-tests: New file.
59189
59190 2007-10-03  Bruno Haible  <bruno@clisp.org>
59191
59192         Port the stdio extensions to QNX (untested).
59193         * lib/fseterr.c (fseterr): Add support for QNX.
59194         * lib/fbufmode.c (fbufmode): Likewise.
59195         * lib/freadable.c (freadable): Likewise.
59196         * lib/fwritable.c (fwritable): Likewise.
59197         * lib/freading.c (freading): Likewise.
59198         * lib/fwriting.c (fwriting): Likewise.
59199         * lib/freadahead.c (freadahed): Likewise.
59200         * lib/fpurge.c (fpurge): Likewise.
59201         * lib/fseeko.c (rpl_fseeko): Likewise.
59202
59203 2007-10-03  Bruno Haible  <bruno@clisp.org>
59204             Jim Meyering  <jim@meyering.net>
59205             Eric Blake  <ebb9@byu.net>
59206
59207         * doc/relocatable.texi: Use @command instead of @program.
59208
59209 2007-10-02  Jim Meyering  <jim@meyering.net>
59210
59211         Perform one more "_.h" -> ".in.h" substitution.
59212         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59213         instead of unistd_.h here, too.
59214
59215 2007-10-01  Bruno Haible  <bruno@clisp.org>
59216
59217         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59218         Needed for the alloca-opt module.
59219
59220 2007-09-30  Bruno Haible  <bruno@clisp.org>
59221
59222         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59223         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59224         alloca_.h.
59225         * lib/argz.in.h: Renamed from lib/argz_.h.
59226         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59227         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59228         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59229         byteswap_.h.
59230         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59231         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59232         dirent_.h.
59233         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59234         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59235         fcntl_.h.
59236         * lib/float.in.h: Renamed from lib/float_.h.
59237         * modules/float (Files, Makefile.am): Use float.in.h instead of
59238         float_.h.
59239         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59240         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59241         fnmatch_.h.
59242         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59243         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59244         getopt_.h.
59245         * lib/glob.in.h: Renamed from lib/glob_.h.
59246         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59247         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59248         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59249         iconv_.h.
59250         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59251         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59252         inttypes_.h.
59253         * lib/locale.in.h: Renamed from lib/locale_.h.
59254         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59255         locale_.h.
59256         * lib/math.in.h: Renamed from lib/math_.h.
59257         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59258         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59259         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59260         of netinet_in_.h. Add dependency.
59261         * lib/poll.in.h: Renamed from lib/poll_.h.
59262         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59263         * lib/search.in.h: Renamed from lib/search_.h.
59264         * modules/search (Files, Makefile.am): Use search.in.h instead of
59265         search_.h.
59266         * lib/signal.in.h: Renamed from lib/signal_.h.
59267         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59268         _signal.h.
59269         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59270         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59271         stdbool_.h.
59272         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59273         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59274         stdint_.h.
59275         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59276         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59277         stdio_.h.
59278         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59279         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59280         stdlib_.h.
59281         * lib/string.in.h: Renamed from lib/string_.h.
59282         * modules/string (Files, Makefile.am): Use string.in.h instead of
59283         string_.h.
59284         * doc/gnulib-tool.texi (Initial import): Update.
59285         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59286         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59287         of sys_select_.h. Add dependency.
59288         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59289         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59290         of sys_socket_.h.
59291         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59292         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59293         sys_stat_.h.
59294         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59295         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59296         sys_time_.h.
59297         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59298         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59299         sysexits_.h.
59300         * lib/time.in.h: Renamed from lib/time_.h.
59301         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59302         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59303         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59304         unistd_.h.
59305         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59306         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59307         wchar_.h.
59308         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59309         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59310         wctype_.h.
59311         * build-aux/bootstrap (slurp): Update.
59312         * lib/.cppi-disable: Update.
59313
59314 2007-09-30  Bruno Haible  <bruno@clisp.org>
59315
59316         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59317         Needed on BeOS.
59318
59319 2007-09-30  Bruno Haible  <bruno@clisp.org>
59320
59321         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59322
59323 2007-09-29  Bruno Haible  <bruno@clisp.org>
59324
59325         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59326
59327 2007-09-29  Bruno Haible  <bruno@clisp.org>
59328
59329         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59330         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59331         * build-aux/install-reloc: Compile also areadlink.c.
59332         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59333
59334 2007-09-29  Bruno Haible  <bruno@clisp.org>
59335
59336         * gnulib-tool (func_emit_initmacro_done): Indentation.
59337
59338 2007-09-29  Bruno Haible  <bruno@clisp.org>
59339
59340         * README: Add CVS checkout update instructions.
59341         Info from Bob Proulx <bob@proulx.com>.
59342
59343 2007-09-28  Eric Blake  <ebb9@byu.net>
59344
59345         Provide move-if-change.
59346         * build-aux/move-if-change: New file, based on best practice
59347         rather than any canonical upstream location.
59348
59349 2007-09-28  Jim Meyering  <jim@meyering.net>
59350
59351         Fix canonicalize loop-detection corner case.
59352         Do not attempt to stat the symlink values stored via seen_triple.
59353         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59354         on linux-2.6.18, (but not 2.6.22).
59355         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59356         triple_compare.  The former compares dev,ino,filename, while the latter
59357         would actually stat dirname(filename) when dev and ino were equal.
59358         * lib/hash-triple.c: Install <string.h>.
59359         (STREQ): Define.
59360         (triple_compare_ino_str): New function.
59361         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59362
59363 2007-09-28  Eric Blake  <ebb9@byu.net>
59364
59365         Enforce that AC_REPLACE_FUNCS files exist.
59366         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59367         override check for typos.
59368
59369         Fix test-closein on Solaris 10.
59370         * tests/test-closein.c (main): Don't assume stdin can be inherited
59371         closed on all systems.
59372         * tests/test-closein.sh: Likewise.
59373         Reported by Piotr Tarnowski.
59374
59375 2007-09-28  Jim Meyering  <jim@meyering.net>
59376
59377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59378
59379 2007-09-27  Jim Meyering  <jim@meyering.net>
59380
59381         canonicalize: Avoid a false-positive cycle failure.
59382         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59383         Sort.  Remove cycle-check.
59384         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59385         not cycle-check.h.
59386         (seen_triple): New function.
59387         (canonicalize_filename_mode): Use it instead of cycle-check.
59388         * tests/test-canonicalize.c: Add a test for this bug.
59389         * tests/test-canonicalize.sh: Set up and run the test.
59390
59391         New module, file-set, from coreutils.
59392         * modules/file-set: Define it.
59393         * lib/file-set.c, lib/file-set.h: Implement.
59394
59395         New module, hash-triple, from coreutils.
59396         * modules/hash-triple: Define it.
59397         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59398
59399 2007-09-25  Eric Blake  <ebb9@byu.net>
59400
59401         Fix strerror on Interix.
59402         * lib/string_.h (strerror): Declare replacement.
59403         * doc/functions/strerror.texi (strerror): Document the Interix
59404         shortcoming.
59405         * modules/string (Makefile.am): Support new hooks.
59406         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59407         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59408         gl_FUNC_STRERROR_SEPARATE.
59409         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59410         * lib/strerror.c (rpl_strerror): Provide replacement.
59411         * modules/strerror (Depends-on): Add string.
59412         (configure.ac): Detect use of module.
59413         * tests/test-strerror.c: New file.
59414         * modules/strerror-tests: New test module.
59415         * modules/argp (Depends-on): Add strerror.
59416         * modules/error (Depends-on): Likewise.
59417         Reported by Martin Koeppe.
59418
59419 2007-09-24  Bruno Haible  <bruno@clisp.org>
59420
59421         * README: Update git instructions.
59422
59423 2007-09-24  Eric Blake  <ebb9@byu.net>
59424
59425         Revert fpending breakage from 2007-09-08.
59426         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59427         __fpending.c.
59428
59429 2007-09-24  Jim Meyering  <jim@meyering.net>
59430
59431         filenamecat.c: Add a test.
59432         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59433         showing how the function works when DIR is the empty string.
59434
59435 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59436
59437         * tests/test-canonicalize.sh: Turn on executable bit.
59438
59439 2007-09-19  Eric Blake  <ebb9@byu.net>
59440
59441         * README: Update CVS instructions.
59442
59443 2007-09-18  Bruno Haible  <bruno@clisp.org>
59444
59445         * modules/areadlink: New file.
59446         * lib/areadlink.h (areadlink): New declaration.
59447         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59448
59449 2007-09-17  Jim Meyering  <jim@meyering.net>
59450
59451         * lib/savewd.c (ESTALE) [!defined]: Define.
59452         Reported to be required on Interix by Martin Koeppe.
59453
59454 2007-09-17  Bruno Haible  <bruno@clisp.org>
59455
59456         * gnulib-tool (func_version): Use $version.
59457
59458 2007-09-16  Bruno Haible  <bruno@clisp.org>
59459
59460         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59461         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59462         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59463         Reported by Greg Schafer <gschafer@zip.com.au>.
59464
59465 2007-09-15  Bruno Haible  <bruno@clisp.org>
59466
59467         * gnulib-tool (sed): Try a little harder to make bash understand the
59468         alias.
59469         Reported by Bruce Korb <bruce.korb@gmail.com>.
59470
59471 2007-09-13  Eric Blake  <ebb9@byu.net>
59472
59473         * ChangeLog: Remove conflict markers.
59474
59475 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59476
59477         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59478         Reported by Bruno Haible <bruno@clisp.org>.
59479
59480 2007-09-12  Bruno Haible  <bruno@clisp.org>
59481
59482         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59483         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59484         is not defined.
59485
59486 2007-09-12  Eric Blake  <ebb9@byu.net>
59487
59488         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59489         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59490         Autoconf definition.
59491         * modules/euidaccess (Depends-on): Add extensions, for
59492         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59493         * modules/fnmatch (Depends-on): Likewise.
59494         * modules/getaddrinfo (Depends-on): Likewise.
59495         * modules/getdelim (Depends-on): Likewise.
59496         * modules/getline (Depends-on): Likewise.
59497         * modules/getsubopt (Depends-on): Likewise.
59498         * modules/gettext (Depends-on): Likewise.
59499         * modules/group-member (Depends-on): Likewise.
59500         * modules/mbchar (Depends-on): Likewise.
59501         * modules/memmem (Depends-on): Likewise.
59502         * modules/mempcpy (Depends-on): Likewise.
59503         * modules/memrchr (Depends-on): Likewise.
59504         * modules/pagealign_alloc (Depends-on): Likewise.
59505         * modules/readutmp (Depends-on): Likewise.
59506         * modules/stpcpy (Depends-on): Likewise.
59507         * modules/stpncpy (Depends-on): Likewise.
59508         * modules/strchrnul (Depends-on): Likewise.
59509         * modules/strndup (Depends-on): Likewise.
59510         * modules/strsep (Depends-on): Likewise.
59511         * modules/strverscmp (Depends-on): Likewise.
59512         * modules/vasprintf (Depends-on): Likewise.
59513         * modules/wcwidth (Depends-on): Likewise.
59514         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59515         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59516         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59517         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59518         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59519         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59520         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59521         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59522         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59523         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59524         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59525         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59526         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59527         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59528         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59529         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59530         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59531         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59532         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59533         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59534         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59535         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59536         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59537         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59538         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59539         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59540         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59541         so that lock.m4 can be used in gettext without extensions module.
59542
59543 2007-09-11  Bruno Haible  <bruno@clisp.org>
59544
59545         * m4/isc-posix.m4: Remove file.
59546         Suggested by Eric Blake.
59547
59548 2007-09-11  Eric Blake  <ebb9@byu.net>
59549
59550         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59551
59552 2007-09-10  Bruno Haible  <bruno@clisp.org>
59553
59554         * posix-modules: Fix typo in error message.
59555         Reported by Matt <mkraai@beckman.com>.
59556
59557 2007-09-09  Bruno Haible  <bruno@clisp.org>
59558
59559         * doc/functions/getdelim.texi: Update list of platforms lacking the
59560         function.
59561         * doc/functions/getline.texi: Likewise.
59562
59563 2007-09-09  Jim Meyering  <jim@meyering.net>
59564
59565         * lib/hash.c (hash_initialize): Detect calloc failure.
59566         Reported by Bruno Haible.
59567
59568 2007-09-09  Bruno Haible  <bruno@clisp.org>
59569
59570         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59571         malloc or realloc fails.
59572
59573 2007-09-09  Bruno Haible  <bruno@clisp.org>
59574
59575         * modules/getcwd (Depends-on): Add malloc-posix.
59576         * modules/glob (Depends-on): Likewise.
59577         * modules/putenv (Depends-on): Likewise.
59578         * modules/strdup (Depends-on): Likewise.
59579         * modules/getdelim (Depends-on): Add realloc-posix.
59580         * modules/read-file (Depends-on): Likewise.
59581
59582 2007-09-09  Bruno Haible  <bruno@clisp.org>
59583
59584         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59585         (gl_FUNC_MALLOC_POSIX): Require it.
59586         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59587         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59588         * modules/realloc (Files): Add m4/malloc.m4.
59589         * modules/calloc (Files): Likewise.
59590
59591 2007-09-09  Bruno Haible  <bruno@clisp.org>
59592
59593         * modules/malloc-posix: New file.
59594         * modules/malloc (Depends-on): Add malloc-posix.
59595         * lib/malloc.c: Include errno.h.
59596         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59597         and a POSIX-compatible malloc into a single function. Set ENOMEM
59598         when returning NULL.
59599         * m4/malloc.m4: New file.
59600         * doc/functions/malloc.texi: Mention the malloc-posix module.
59601         * lib/stdlib_.h (malloc): New declaration.
59602         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59603         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59604         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59605         and HAVE_MALLOC_POSIX.
59606
59607 2007-09-09  Bruno Haible  <bruno@clisp.org>
59608
59609         * modules/realloc-posix: New file.
59610         * modules/realloc (Depends-on): Add realloc-posix.
59611         * lib/realloc.c: Include errno.h.
59612         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59613         and a POSIX-compatible realloc into a single function. Set ENOMEM
59614         when returning NULL.
59615         * m4/realloc.m4: New file.
59616         * doc/functions/realloc.texi: Mention the realloc-posix module.
59617         * lib/stdlib_.h (realloc): New declaration.
59618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59619         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59620         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59621         and HAVE_REALLOC_POSIX.
59622
59623 2007-09-09  Bruno Haible  <bruno@clisp.org>
59624
59625         * modules/calloc-posix: New file.
59626         * modules/calloc (Depends-on): Add calloc-posix.
59627         * lib/calloc.c: Include errno.h.
59628         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59629         and a POSIX-compatible calloc into a single function. Set ENOMEM
59630         when returning NULL.
59631         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59632         * doc/functions/calloc.texi: Mention the calloc-posix module.
59633         * lib/stdlib_.h (calloc): New declaration.
59634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59635         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59636         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59637         and HAVE_CALLOC_POSIX.
59638
59639 2007-09-09  Bruno Haible  <bruno@clisp.org>
59640
59641         Allow for modules to show an arbitrary notice.
59642         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59643         * gnulib-tool: New option --extract-notice.
59644         (func_usage): Document it.
59645         (sed_extract_prog): Update.
59646         (func_get_notice): New function.
59647         (func_modules_notice): New function.
59648         (func_import, func_create_testdir): Invoke it.
59649         Suggested by Jim Meyering.
59650
59651 2007-09-09  Bruno Haible  <bruno@clisp.org>
59652
59653         * gnulib-tool: New options --verbose, --quiet.
59654         (func_usage): Document them.
59655         (verbose): New variable.
59656         (func_execute_command): New function.
59657         (func_import): Don't show the module list and the file list if
59658         $verbose < 0.
59659         (func_create_testdir): Likewise. Use func_execute_command.
59660         (func_create_megatestdir): Use func_execute_command.
59661
59662 2007-09-08  Bruno Haible  <bruno@clisp.org>
59663
59664         * gnulib-tool (func_import): Prefer rsync over wget when available,
59665         for fetching the PO files.
59666
59667 2007-09-08  Bruno Haible  <bruno@clisp.org>
59668
59669         * posix-modules: New file. Portions copied from gnulib-tool.
59670         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59671
59672 2007-09-08  Jim Meyering  <jim@meyering.net>
59673
59674         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59675         * lib/fpending.h: Rename from __fpending.h.
59676         * lib/fpending.c: Rename from __fpending.c.
59677         Include "fpending.h", not "__fpending.h".
59678         * lib/__fpending.h, lib/__fpending.c: Remove files.
59679         * modules/fpending (Files): Reflect new file names.
59680         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59681
59682 2007-09-08  Bruno Haible  <bruno@clisp.org>
59683
59684         * m4/inttypes-h.m4: Remove stub file.
59685
59686 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59687
59688         * doc/headers/stdint.texi: Discuss #include_next issue.
59689
59690 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59691
59692         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59693
59694 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59695
59696         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59697         in variable name.
59698
59699 2007-09-03  Jim Meyering  <jim@meyering.net>
59700
59701         New module: git-version-gen.
59702         * modules/git-version-gen: New file.
59703
59704         Import changes from coreutils for bootstrap script.
59705
59706         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59707
59708         bootstrap: uses rsync to download the .po files
59709         * build-aux/bootstrap (po_download_command_format): New global.
59710         (download_po_files): Use rsync.
59711         (update_po_files): Don't remove .po files after download,
59712         so future rsync runs can take advantage of the copies.
59713
59714         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59715
59716         Solve the unnecessary-.po-file-regeneration problem once and for all.
59717         * build-aux/bootstrap (download_po_files): New function, renamed from
59718         get_translations.  Now, downloads, but doesn't update LINGUAS.
59719         (update_po_files): New function.
59720
59721         bootstrap: Ignore more.
59722         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59723         uniwidth to e.g., lib/.gitignore.
59724         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59725
59726         * build-aux/bootstrap: New setting: vc_ignore.
59727         (insert_sorted_if_absent): Create $file if absent.
59728         Adapt to new, possibly empty, list: $vc_ignore.
59729
59730         bootstrap: generate more ignorable names
59731         * build-aux/bootstrap (slurp): When generating ignorable names,
59732         also map .sin to .sed, .gperf to .c, and .y to .c.
59733
59734 2007-09-03  Jim Meyering  <jim@meyering.net>
59735
59736         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59737         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59738
59739 2007-09-02  Bruno Haible  <bruno@clisp.org>
59740
59741         Fix mis-recognition of 'mcs' on QNX 6.
59742         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59743         output contains the string "Mono".
59744         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59745         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59746
59747 2007-09-01  Bruno Haible  <bruno@clisp.org>
59748
59749         Fix collision between uniwidth/* and linebreak modules.
59750         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59751         u32_width): Remove declarations.
59752         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59753         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59754         streq3, streq2, streq1, streq0): Remove functions.
59755         (STREQ): Remove macro.
59756         (is_cjk_encoding): Remove function.
59757         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59758         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59759         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59760         * NEWS: Document the change.
59761
59762 2007-09-01  Bruno Haible  <bruno@clisp.org>
59763
59764         * lib/streq.h: Add double-inclusion guard.
59765
59766 2007-09-01  Karl Berry  <karl@gnu.org>
59767
59768         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59769
59770 2007-08-28  Jim Meyering  <jim@meyering.net>
59771
59772         Rename mreadlink_with_size to areadlink_with_size.
59773         * NEWS: Document the change.
59774         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59775         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59776         * lib/mreadlink.h: Rename this to...
59777         * lib/areadlink.h: ...this.
59778         * modules/mreadlink-with-size: Rename this to...
59779         * modules/areadlink-with-size: ...this.
59780         * lib/canonicalize.c: Reflect the renaming.
59781         * modules/canonicalize: Likewise.
59782
59783 2007-08-26  Bruno Haible  <bruno@clisp.org>
59784
59785         * gnulib-tool (func_import): When deciding which files to remove,
59786         consider also dangling symbolic links.
59787         Reported by Eric Blake.
59788
59789 2007-08-26  Bruno Haible  <bruno@clisp.org>
59790
59791         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59792
59793 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59794
59795         * lib/readline.c: Don't include getline.h, the prototype is now
59796         found in stdio.h.
59797
59798 2007-08-23  Jim Meyering  <jim@meyering.net>
59799
59800         Getdelim touchup.
59801         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59802         around the funlockfile call, since funlockfile never sets errno.
59803         Don't set errno upon failed realloc.
59804
59805 2007-08-22  Eric Blake  <ebb9@byu.net>
59806
59807         Getline touchups.
59808         * lib/getdelim.c (getdelim): Revert regression that required *n to
59809         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59810         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59811         getdelim, rather than whether implementation is missing.
59812         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59813         * lib/stdio_.h (getline): Also declare if replacement is
59814         required.
59815         * doc/functions/getdelim.texi: New file.
59816         * doc/functions/getline.texi: Likewise.
59817         * doc/gnulib.texi (Function Substitutes): Add new files.
59818         Reported by Bruno Haible.
59819
59820 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59821
59822         * users.txt: Add Guile.
59823
59824 2007-08-22  Eric Blake  <ebb9@byu.net>
59825
59826         * tests/test-getdelim.c (main): Use remove, not unlink.
59827         * tests/test-getline.c (main): Likewise.
59828
59829         Move getline and getdelim into stdio.h, per POSIX 200x.
59830         * modules/getline (Files): Remove getline.h.
59831         (Depends-on): Add stdio.
59832         (configure.ac): Add module indicator.
59833         * modules/getdelim (Files): Remove getdelim.h.
59834         (Depends-on): Add stdio.
59835         (configure.ac): Add module indicator.
59836         * modules/stdio (Makefile.am): Work with new indicators.
59837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59838         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59839         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59840         * lib/getdelim.h: Delete.
59841         * lib/getline.h: Delete.
59842         * lib/stdio_.h (getdelim, getline): Declare.
59843         * modules/getdelim-tests: New module.
59844         * modules/getline-tests: Likewise.
59845         * tests/test-getdelim.c: New file.
59846         * tests/test-getline.c: Likewise.
59847         * NEWS: Document the change.
59848         * lib/getline.c: Update choice of header.
59849         * lib/csharpcomp.c: Likewise.
59850         * lib/getpass.c: Likewise.
59851         * lib/javacomp.c: Likewise.
59852         * lib/javaversion.c: Likewise.
59853         * lib/yesno.c: Likewise.
59854         * lib/getdelim.c: Likewise.
59855         (getdelim): Set errno on failure, and avoid memory leak.
59856
59857 2007-08-19  Bruno Haible  <bruno@clisp.org>
59858
59859         * modules/closein (Depends-on): Add freadahead.
59860         * lib/closein.c: Include freadahead.h.
59861         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59862         is zero.
59863
59864 2007-08-19  Bruno Haible  <bruno@clisp.org>
59865
59866         * modules/freadahead-tests: New file.
59867         * tests/test-freadahead.sh: New file.
59868         * tests/test-freadahead.c: New file.
59869
59870         * modules/freadahead: New file.
59871         * lib/freadahead.h: New file.
59872         * lib/freadahead.c: New file.
59873         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59874         fbufmode, fpurge, freadable, fwritable.
59875
59876 2007-08-19  Eric Blake  <ebb9@byu.net>
59877
59878         Test yesno in combination with closein.
59879         * lib/yesno.c (yesno): Document use of stdin.
59880         * modules/yesno-tests (Files): New module.
59881         * tests/test-yesno.c (main): New file.
59882         * tests/test-yesno.sh: Likewise.
59883
59884 2007-08-19  Bruno Haible  <bruno@clisp.org>
59885
59886         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59887         * lib/fseeko.c (rpl_fseeko): Likewise.
59888         * lib/fseterr.c (fseterr): Likewise.
59889
59890 2007-08-19  Bruno Haible  <bruno@clisp.org>
59891
59892         * tests/test-lseek.c (main): Disable a test for BeOS.
59893         * doc/functions/lseek.texi: Document the BeOS bug.
59894
59895 2007-08-19  Bruno Haible  <bruno@clisp.org>
59896             Eric Blake  <ebb9@byu.net>
59897
59898         * lib/lseek.c: Include <sys/stat.h>.
59899         (rpl_lseek): Add workaround code also for Unix platforms.
59900         Needed for BeOS.
59901         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59902         * doc/functions/lseek.texi: Document BeOS definiency.
59903
59904 2007-08-18  Bruno Haible  <bruno@clisp.org>
59905
59906         * modules/fstrcmp-tests: New file.
59907         * tests/test-fstrcmp.c: New file.
59908
59909 2007-08-18  Bruno Haible  <bruno@clisp.org>
59910
59911         * modules/fstrcmp: New file, from GNU gettext with modifications.
59912         * lib/fstrcmp.h: New file, from GNU gettext.
59913         * lib/fstrcmp.c: New file, from GNU gettext.
59914         * MODULES.html.sh (String handling): Add fstrcmp.
59915
59916 2007-08-18  Bruno Haible  <bruno@clisp.org>
59917
59918         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59919         'bool'.
59920         (diag, compareseq): Remove const from the ctxt argument.
59921         (USE_HEURISTIC): Undefine at the end.
59922
59923 2007-08-18  Jim Meyering  <jim@meyering.net>
59924
59925         New file: lib/idcache.h
59926         * NEWS: Mention the addition.
59927         * modules/idcache (Files): Add lib/idcache.h
59928         * lib/idcache.c: Include "idcache.h".
59929         Don't include <sys/types.h>.
59930         Add a FIXME comment.
59931         Move file-scoped "static" declarations to the top.
59932         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59933
59934 2007-08-17  Bruno Haible  <bruno@clisp.org>
59935         and Paul Eggert  <eggert@cs.ucla.edu>
59936
59937         * MODULES.html.sh: Add diffseq.
59938         * modules/diffseq: New file.
59939         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59940         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59941
59942 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59943
59944         Import changes from coreutils for bootstrap script.
59945
59946         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59947
59948         * build-aux/bootstrap (slurp): Work even in environments where
59949         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59950         current code does not slurp files whose names start with ".", and
59951         this looks like it might be a troublesome area.
59952
59953         2007-07-11  Jim Meyering  <jim@meyering.net>
59954
59955         If there's a GPL vN copyright comment, require that N == 3.
59956
59957         2007-07-08  Jim Meyering  <jim@meyering.net>
59958
59959         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59960         * build-aux/bootstrap (mam_template): Move definition out of loop.
59961
59962         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59963
59964         * build-aux/bootstrap (symlink_to_dir): Rename function from
59965         symlink_to_gnulib.  Add a directory parameter.  Update all
59966         callers.
59967         (cp_mark_as_generated): Also check for -- and link to -- files in
59968         gl/.
59969
59970         2007-07-08  Jim Meyering  <jim@meyering.net>
59971
59972         Adapt to deeper hierarchy in gnulib.
59973         * build-aux/bootstrap (symlink_to_dir): If the destination
59974         directory doesn't exist, create it. This is required at least for
59975         "lib/uniwidth/cjk.h".
59976
59977         2007-05-15  Jim Meyering  <jim@meyering.net>
59978
59979         * build-aux/bootstrap: Now that generated Makefile.am files
59980         are no longer under version control, they must be created at
59981         bootstrap time.
59982
59983 2007-08-14  Ben Pfaff  <blp@gnu.org>
59984
59985         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59986
59987 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59988
59989         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59990         given the changes below.
59991         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59992         even on hosts that have padding bits beyond the supported 64.
59993
59994 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59995
59996         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59997         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59998         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59999         depends on it.
60000         (xstrtol_error): Remove.
60001         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
60002         but with a different signature.
60003         (ATTRIBUTE_NORETURN, __attribute__): New macros.
60004         * lib/xstrtol-error.c: Include exitfail.h.
60005         (xstrtol_fatal): New function, with a different signature from the
60006         old xstrtol_error, so that the caller need not worry about passing
60007         in an exit status, or about storage management of the option argument.
60008         (xstrtol_error): Now a static function.  Redo signature to
60009         implement xstrtol_fatal.  Output the correct number of hyphens in
60010         front of the option so that the caller need not worry about
60011         storage management.
60012         (N_): New macro.
60013         (_): Remove; not used now.
60014         * modules/xstrtol: Depend on getopt.
60015         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
60016         of old STRTOL_FATAL_ERROR macro.
60017         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
60018         of test program.
60019         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
60020         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
60021
60022 2007-08-08  Eric Blake  <ebb9@byu.net>
60023
60024         * lib/xstrtol-error.c: Add missing include.
60025
60026         Move xstrtol messages into gnulib domain, when --pobase is used.
60027         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
60028         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
60029         * modules/xstrtol (Files): Distribute new file.
60030         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
60031         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
60032         * tests/test-xstrtol.c: ...into new file.
60033         * tests/test-xstrtoul.c: Also test xstrtoul.
60034         * tests/test-xstrtoimax.c: Also test xstrtoimax.
60035         * tests/test-xstrtoumax.c: Also test xstrtoumax.
60036         * tests/test-xstrtol.sh: Drive the tests.
60037         * tests/test-xstrtoimax.sh: Likewise.
60038         * tests/test-xstrtoumax.sh: Likewise.
60039         * modules/xstrtol-tests: New module.
60040         * modules/xstrtoimax-tests: Likewise.
60041         * modules/xstrtoumax-tests: Likewise.
60042
60043 2007-08-08  Jim Meyering  <jim@meyering.net>
60044
60045         New function: mfile_name_concat.
60046         * lib/filenamecat.c (mfile_name_concat): New function, just like
60047         file_name_concat, but return NULL upon failure rather than exiting
60048         with a diagnostic.
60049         * lib/filenamecat.h: Declare it.
60050
60051 2007-08-07  Bruno Haible  <bruno@clisp.org>
60052
60053         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
60054         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
60055         warning from gcc.
60056         Reported by Eric Blake.
60057
60058 2007-08-07  Simon Josefsson  <simon@josefsson.org>
60059
60060         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
60061         * modules/crypto/arcfour (License): Likewise.
60062         * modules/crypto/des-tests (License): Likewise.
60063         * modules/crypto/gc-arctwo-tests (License): Likewise.
60064         * modules/crypto/gc-des-tests (License): Likewise.
60065         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
60066         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
60067         * modules/crypto/gc-md2-tests (License): Likewise.
60068         * modules/crypto/gc-md4-tests (License): Likewise.
60069         * modules/crypto/gc-md5-tests (License): Likewise.
60070         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
60071         * modules/crypto/gc-rijndael-tests (License): Likewise.
60072         * modules/crypto/gc-sha1-tests (License): Likewise.
60073         * modules/crypto/gc-tests (License): Likewise.
60074         * modules/crypto/hmac-md5 (License): Likewise.
60075         * modules/crypto/hmac-sha1 (License): Likewise.
60076         * modules/crypto/md2-tests (License): Likewise.
60077         * modules/crypto/md4-tests (License): Likewise.
60078         * modules/crypto/md5 (License): Likewise.
60079         * modules/crypto/rijndael (License): Likewise.
60080         * modules/crypto/sha1 (License): Likewise.
60081         * modules/memxor (License): Likewise.
60082
60083 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60084         and Bruno Haible  <bruno@clisp.org>
60085
60086         * NEWS: Describe interface changes to human, xstrtol.
60087         * lib/human.h: Include <xstrtol.h>.
60088         (human_options): Return enum strtol_error, not int.  Remove
60089         bool arg; take int * instead.
60090         * lib/human.c: Don't include "gettext.h".
60091         (_): Remove; no longer used.
60092         Don't include <xstrtol.h>, since human.h does it.
60093         (human_options): Adjust to abovementioned interface changes.
60094         Do not report error to stderr; that's now the caller's
60095         responsibility.
60096         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
60097         interface change.
60098         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
60099         Str, Argument_type_string.  All uses changed.  Put " argument"
60100         in diagnostics to make them clearer.  Change wording of suffix
60101         message for clarity.
60102         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
60103         Argument_type_string.
60104         (STRTOL_FATAL_WARN): Remove; no longer used.
60105         * modules/human (Depends-on): Remove gettext-h.
60106
60107 2007-08-06  Simon Josefsson  <simon@josefsson.org>
60108
60109         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
60110
60111 2007-07-31  Bruno Haible  <bruno@clisp.org>
60112
60113         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
60114         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
60115         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
60116
60117 2007-07-31  Bruno Haible  <bruno@clisp.org>
60118
60119         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
60120         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
60121
60122 2007-07-30  Bruno Haible  <bruno@clisp.org>
60123
60124         * modules/base64 (License): Use the synonymous term "LGPLv2+".
60125         * modules/c-ctype (License): Likewise.
60126         * modules/c-strcase (License): Likewise.
60127         * modules/check-version (License): Likewise.
60128         * modules/iconv (License): Likewise.
60129         * modules/iconv_open (License): Likewise.
60130         * modules/read-file (License): Likewise.
60131         * modules/striconv (License): Likewise.
60132         * modules/strverscmp (License): Likewise.
60133         * modules/vasprintf (License): Likewise.
60134         * modules/crypto/des (License): Likewise.
60135         * modules/crypto/gc (License): Likewise.
60136         * modules/crypto/gc-arcfour (License): Likewise.
60137         * modules/crypto/gc-arctwo (License): Likewise.
60138         * modules/crypto/gc-des (License): Likewise.
60139         * modules/crypto/gc-hmac-md5 (License): Likewise.
60140         * modules/crypto/gc-hmac-sha1 (License): Likewise.
60141         * modules/crypto/gc-md2 (License): Likewise.
60142         * modules/crypto/gc-md4 (License): Likewise.
60143         * modules/crypto/gc-md5 (License): Likewise.
60144         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
60145         * modules/crypto/gc-random (License): Likewise.
60146         * modules/crypto/gc-rijndael (License): Likewise.
60147         * modules/crypto/gc-sha1 (License): Likewise.
60148         * modules/crypto/md2 (License): Likewise.
60149         * modules/crypto/md4 (License): Likewise.
60150
60151 2007-07-30  Jim Meyering  <jim@meyering.net>
60152
60153         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
60154         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
60155         it has valid stat data.  This bug would cause du not to count the
60156         sizes of inaccessible directories.
60157         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
60158         in <http://bugzilla.redhat.com/250077>.
60159
60160 2007-07-25  Peter O'Gorman  <peter@pogma.com>
60161             Bruno Haible  <bruno@clisp.org>
60162
60163         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60164         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60165         #include_next, gives a diagnostic about it, but reports no error in
60166         the exit code.
60167         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60168
60169 2007-07-24  Ben Pfaff  <blp@gnu.org>
60170
60171         Improve name: "count-one-bits" is better than "popcount".
60172         * MODULES.html.sh: Update name.
60173         * lib/popcount.h: Renamed lib/count-one-bits.h.
60174         (popcount): Renamed count_one_bits.
60175         (popcountl): Renamed count_one_bits_l.
60176         (popcountll): Renamed count_one_bits_ll.
60177         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60178         * modules/popcount: Renamed module/count-one-bits.
60179         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60180         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60181
60182 2007-07-23  Ben Pfaff  <blp@gnu.org>
60183
60184         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60185         better code generation, and add U to large constants to avoid
60186         warnings, in non-GCC case.
60187         Suggested by Bruno Haible.
60188
60189 2007-07-23  Ben Pfaff  <blp@gnu.org>
60190
60191         * lib/popcount.h: Use verify_true instead of if...abort.
60192         * modules/popcount: Depend on verify module.
60193         Suggested by Jim Meyering.
60194
60195 2007-07-23  Bruno Haible  <bruno@clisp.org>
60196
60197         * gnulib-tool (func_import): Create a .cvsignore file also when the
60198         directory is not yet in CVS but the toplevel directory is. When
60199         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60200         Reported by Karl Berry.
60201
60202 2007-07-22  Ben Pfaff  <blp@gnu.org>
60203
60204         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60205         case.
60206         Suggested by Eric Blake.
60207
60208 2007-07-22  Ben Pfaff  <blp@gnu.org>
60209
60210         New module: popcount.
60211         * MODULES.html.sh: Add popcount.
60212         * modules/popcount: New file.
60213         * modules/popcount-tests: New file.
60214         * tests/test-popcount.c: New file.
60215         * lib/popcount.h: New file.
60216         * m4/popcount.m4: New file.
60217
60218 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * build-aux/announce-gen: Update to GPLv3.
60221
60222         * build-aux/config.guess: Update from config.
60223
60224 2007-07-21  Bruno Haible  <bruno@clisp.org>
60225
60226         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60227         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60228
60229 2007-07-20  Jim Meyering  <jim@meyering.net>
60230
60231         * check-module: Diagnose a self-dependency.
60232
60233 2007-07-19  Bruno Haible  <bruno@clisp.org>
60234
60235         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60236         empty.
60237         Reported by Eric Blake.
60238
60239 2007-07-18  Bruno Haible  <bruno@clisp.org>
60240
60241         * gnulib-tool: New options --po-base, --po-domain.
60242         (func_usage): Document them.
60243         (pobase, po_domain): New variables.
60244         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60245         DEFAULT_TEXT_DOMAIN.
60246         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60247         (func_import): Consider pobase and po_domain. Create a po/ directory.
60248         (func_create_testdir): Set pobase and po_domain to empty.
60249         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60250         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60251
60252 2007-07-18  Bruno Haible  <bruno@clisp.org>
60253
60254         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60255         EXTRA_DIST augmentation for files in build-aux/.
60256
60257 2007-07-16  Bruno Haible  <bruno@clisp.org>
60258
60259         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60260         * modules/getdelim (License): Likewise.
60261
60262 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60263
60264         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60265         * modules/d-type (License): Likewise.
60266         * modules/extensions (License): Likewise.
60267         * modules/fnmatch (License): Likewise.
60268         * modules/fseeko (License): Likewise.
60269         * modules/getaddrinfo (License): Likewise.
60270         * modules/getline (License): Likewise.
60271         * modules/getlogin_r (License): Likewise.
60272         * modules/getpass (License): Likewise.
60273         * modules/gettimeofday (License): Likewise.
60274         * modules/glob (License): Likewise.
60275         * modules/inet_ntop (License): Likewise.
60276         * modules/malloc (License): Likewise.
60277         * modules/malloca (License): Likewise.
60278         * modules/memmem (License): Likewise.
60279         * modules/mempcpy (License): Likewise.
60280         * modules/memset (License): Likewise.
60281         * modules/minmax (License): Likewise.
60282         * modules/mktime (License): Likewise.
60283         * modules/netinet_in (License): Likewise.
60284         * modules/pathmax (License): Likewise.
60285         * modules/poll (License): Likewise.
60286         * modules/regex (License): Likewise.
60287         * modules/snprintf (License): Likewise.
60288         * modules/stdbool (License): Likewise.
60289         * modules/stdint (License): Likewise.
60290         * modules/stdio (License): Likewise.
60291         * modules/strcase (License): Likewise.
60292         * modules/strcasestr (License): Likewise.
60293         * modules/strdup (License): Likewise.
60294         * modules/string (License): Likewise.
60295         * modules/strndup (License): Likewise.
60296         * modules/strnlen (License): Likewise.
60297         * modules/strpbrk (License): Likewise.
60298         * modules/strptime (License): Likewise.
60299         * modules/strsep (License): Likewise.
60300         * modules/sys_select (License): Likewise.
60301         * modules/sys_socket (License): Likewise.
60302         * modules/sys_stat (License): Likewise.
60303         * modules/sys_time (License): Likewise.
60304         * modules/time (License): Likewise.
60305         * modules/time_r (License): Likewise.
60306         * modules/timegm (License): Likewise.
60307         * modules/unistd (License): Likewise.
60308         * modules/vsnprintf (License): Likewise.
60309         * modules/wctype (License): Likewise.
60310
60311 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60312
60313         * modules/argz (License): LGPLv2+.
60314
60315 2007-07-15  Karl Berry  <karl@gnu.org>
60316
60317         * doc/gnulib.texi: revise node structure per new fdl.texi.
60318
60319 2007-07-14  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60322         the output file.
60323         * lib/uniname/uninames.h: Regenerated.
60324
60325 2007-07-14  Karl Berry  <karl@gnu.org>
60326
60327         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60328         omitting sectioning and index commands.
60329
60330 2007-07-13  Bruno Haible  <bruno@clisp.org>
60331
60332         New gnulib-tool option --more-symlinks.
60333         * gnulib-tool (func_usage): Document --more-symlinks.
60334         (do_copyrights): New variable.
60335         Recognize option --more-symlinks.
60336         (func_import): Don't add a copyright notice transform to
60337         sed_transform_lib_file if do_copyrights is empty.
60338
60339 2007-07-13  Bruno Haible  <bruno@clisp.org>
60340
60341         * lib/vasnprintf.c (decimal_point_char): Define also if
60342         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60343         && !NEED_PRINTF_DIRECTIVE_A.
60344         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60345         Gary V. Vaughan <gary@gnu.org>.
60346
60347 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60348
60349         * lib/inttypes_.h: Undo previous change, since it was fixed
60350         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60351
60352 2007-07-13  Bruno Haible  <bruno@clisp.org>
60353
60354         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60355         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60356
60357 2007-07-13  Jim Meyering  <jim@meyering.net>
60358
60359         df: Don't fail for Tru64's "file-on-file mount".
60360         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60361         so we fall through and use statfs instead.  Details here:
60362         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60363         Reported by Albert Chin.
60364
60365 2007-07-13  Bruno Haible  <bruno@clisp.org>
60366
60367         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60368         * modules/configmake (License): Likewise.
60369         * modules/gettext (License): Likewise.
60370         * modules/gettext-h (License): Likewise.
60371         * modules/include_next (License): Likewise.
60372         * modules/link-warning (License): Likewise.
60373         * modules/localcharset (License): Likewise.
60374         * modules/localename (License): Likewise.
60375         * modules/lock (License): Likewise.
60376         * modules/relocatable-lib-lgpl (License): Likewise.
60377         * modules/size_max (License): Likewise.
60378         * modules/vasnprintf (License): Likewise.
60379         * modules/wchar (License): Likewise.
60380         * modules/xsize (License): Likewise.
60381
60382 2007-07-13  Bruno Haible  <bruno@clisp.org>
60383
60384         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60385         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60386
60387 2007-07-12  Bruno Haible  <bruno@clisp.org>
60388
60389         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60390         in the modules files.
60391
60392 2007-07-11  Karl Berry  <karl@gnu.org>
60393
60394         * MODULES.html.sh (func_module): use
60395          sed -e '\|^'"${includefile}"'$|d'
60396          instead of /.../d, to avoid errors on $includefile's containing /.
60397
60398 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60399
60400         * gnulib-tool (func_import): Avoid duplication of --avoid
60401         statements
60402         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60403         names to `_' in variable names.
60404
60405 2007-07-10  Eric Blake  <ebb9@byu.net>
60406
60407         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60408         * NEWS: Document this change.
60409
60410 2007-07-08  Bruno Haible  <bruno@clisp.org>
60411
60412         Update to Unicode 5.0.
60413         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60414         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60415         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60416         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60417         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60418         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60419         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60420         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60421         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60422         U+10A3F, U+1D242..U+1D244.
60423         (nonspacing_table_ind): Update.
60424         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60425         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60426
60427 2007-07-08  Bruno Haible  <bruno@clisp.org>
60428
60429         Update to Unicode 5.0.
60430         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60431         code transform. Extend the name index field of unicode_name_to_code and
60432         unicode_code_to_name from 16 to 24 bits.
60433         * lib/uniname/uniname.c (unicode_character_name,
60434         unicode_name_character): Add the range 0x12xxx to the code transform.
60435         * lib/uniname/uninames.h: Regenerated.
60436         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60437
60438 2007-07-07  Bruno Haible  <bruno@clisp.org>
60439
60440         * modules/wcwidth-tests: New file.
60441         * tests/test-wcwidth.c: New file.
60442
60443         Work around MacOS X wcwidth() bug.
60444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60445         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60446         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60447         original wcwidth in non-UTF-8 locales.
60448         * modules/wcwidth (Depends-on): Add localcharset, streq,
60449         uniwidth/width.
60450         * doc/functions/wcwidth.texi: Update.
60451
60452 2007-07-07  Bruno Haible  <bruno@clisp.org>
60453
60454         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60455         (wcwidth): New declaration.
60456         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60457         macros.
60458         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60459         here. Prepare for creating <wchar.h> unconditionally.
60460         * modules/wchar (Depends-on): Add link-warning.
60461         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60462         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60463         * lib/wcwidth.h: Remove file.
60464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60465         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60466         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60467         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60468         (Include): Replace wcwidth.h with <wchar.h>.
60469         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60470         * lib/mbchar.h: Don't include wcwidth.h.
60471         * lib/mbswidth.c: Likewise.
60472         * NEWS: Mention the change.
60473
60474 2007-07-07  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60477         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60478         definition with an external declaration.
60479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60480         defined as a function. Remove AC_C_INLINE requirement.
60481         * modules/wcwidth (Files): Add lib/wcwidth.c.
60482         (Makefile.am): Remove redundant statement.
60483
60484 2007-07-07  Bruno Haible  <bruno@clisp.org>
60485
60486         * MODULES.html.sh (Unicode string functions): Add the new modules.
60487
60488         * tests/uniwidth/test-u32-strwidth.c: New file.
60489         * modules/uniwidth/u32-strwidth-tests: New file.
60490
60491         * lib/uniwidth/u32-strwidth.c: New file.
60492         * modules/uniwidth/u32-strwidth: New file.
60493
60494         * tests/uniwidth/test-u16-strwidth.c: New file.
60495         * modules/uniwidth/u16-strwidth-tests: New file.
60496
60497         * lib/uniwidth/u16-strwidth.c: New file.
60498         * modules/uniwidth/u16-strwidth: New file.
60499
60500         * tests/uniwidth/test-u8-strwidth.c: New file.
60501         * modules/uniwidth/u8-strwidth-tests: New file.
60502
60503         * lib/uniwidth/u8-strwidth.c: New file.
60504         * modules/uniwidth/u8-strwidth: New file.
60505
60506         * tests/uniwidth/test-u32-width.c: New file.
60507         * modules/uniwidth/u32-width-tests: New file.
60508
60509         * lib/uniwidth/u32-width.c: New file.
60510         * modules/uniwidth/u32-width: New file.
60511
60512         * tests/uniwidth/test-u16-width.c: New file.
60513         * modules/uniwidth/u16-width-tests: New file.
60514
60515         * lib/uniwidth/u16-width.c: New file.
60516         * modules/uniwidth/u16-width: New file.
60517
60518         * tests/uniwidth/test-u8-width.c: New file.
60519         * modules/uniwidth/u8-width-tests: New file.
60520
60521         * lib/uniwidth/u8-width.c: New file.
60522         * modules/uniwidth/u8-width: New file.
60523
60524         * tests/uniwidth/test-uc_width.c: New file.
60525         * modules/uniwidth/width-tests: New file.
60526
60527         * lib/uniwidth/width.c: New file, from GNU libiconv.
60528         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60529         * modules/uniwidth/width: New file.
60530
60531         * lib/uniwidth.h: New file, from GNU libiconv.
60532         * modules/uniwidth/base: New file.
60533
60534 2007-07-07  Bruno Haible  <bruno@clisp.org>
60535
60536         * lib/uniname.h: New file, from GNU gettext.
60537         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60538         * lib/uniname/uninames.h: New file, from GNU gettext.
60539         * lib/uniname/uniname.c: New file, from GNU gettext.
60540         * tests/uniname/test-uninames.sh: New file.
60541         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60542         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60543         * modules/uniname/base: New file.
60544         * modules/uniname/uniname: New file.
60545         * modules/uniname/uniname-tests: New file.
60546         * MODULES.html.sh (Unicode string functions): Add the new modules.
60547
60548 2007-07-06  Bruno Haible  <bruno@clisp.org>
60549
60550         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60551
60552 2007-07-06  Bruno Haible  <bruno@clisp.org>
60553
60554         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60555         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60556         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60557         include <sys/time.h>.
60558         Reported by Eric Blake.
60559
60560 2007-07-06  Eric Blake  <ebb9@byu.net>
60561
60562         Fix testing canonicalize on cygwin.
60563         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60564         Revert patch from 2007-06-19.
60565         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60566         canonicalize module is also in use.
60567         * tests/test-canonicalize.c: New file.
60568         * tests/test-canonicalize.sh: Likewise.
60569         * modules/canonicalize-tests: Likewise.
60570
60571 2007-07-06  Jim Meyering  <jim@meyering.net>
60572
60573         * lib/getugroups.c (getugroups): Detect getgrent failure.
60574         Adjust comment to reflect reality: this function may return -1.
60575
60576 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60577
60578         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60579         the new TP address.
60580         (usage): Fix typo
60581         (gnulib_mk): New variable.
60582
60583 2007-07-05  Jim Meyering  <jim@meyering.net>
60584
60585         Don't let endgrent clobber errno, no matter how improbable.
60586         * lib/getugroups.c (getugroups): Save and restore errno around
60587         endgrent call.
60588
60589         Close the group DB even when failing with 2^31 or more members.
60590         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60591
60592 2007-07-04  Jim Meyering  <jim@meyering.net>
60593
60594         * lib/getugroups.h: New file.
60595         * lib/getugroups.c: Include "getugroups.h".
60596         Remove uses of "register" keyword.
60597         Move local variable, "cp", down into scope where used.
60598         Give "username" parameter the "const" attribute.
60599         * modules/getugroups (Files): Add lib/getugroups.h
60600
60601 2007-07-04  Karl Berry  <karl@gnu.org>
60602
60603         * MODULES.html.sh (func_all_modules): Complete rename of
60604         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60605
60606 2007-07-02  Bruno Haible  <bruno@clisp.org>
60607
60608         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60609         mode, when inttypes.h comes from gnulib.
60610         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60611
60612 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60613
60614         * NEWS: Mention lgpl module name change.
60615
60616         * modules/lgpl-2.1: Renamed from lgpl.
60617
60618         * NEWS: Mention gpl module name change.
60619
60620         * modules/gpl-3.0: New file, based on gpl-2.0.
60621
60622         * modules/gpl-2.0: Renamed from gpl.
60623
60624         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60625         doc/gpl-2.0.texi.
60626
60627 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60628
60629         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60630         #define __STDC_LIMIT_MACROS temporarily while including
60631         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60632         Problem reported by Joel E. Denny in
60633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60634
60635 2007-07-01  Bruno Haible  <bruno@clisp.org>
60636
60637         * lib/unistdio.h: New file.
60638         * lib/unistdio/u-asnprintf.h: New file.
60639         * lib/unistdio/u-asprintf.h: New file.
60640         * lib/unistdio/u-printf-args.c: New file.
60641         * lib/unistdio/u-printf-args.h: New file.
60642         * lib/unistdio/u-printf-parse.h: New file.
60643         * lib/unistdio/u-snprintf.h: New file.
60644         * lib/unistdio/u-sprintf.h: New file.
60645         * lib/unistdio/u-vasprintf.h: New file.
60646         * lib/unistdio/u-vsnprintf.h: New file.
60647         * lib/unistdio/u-vsprintf.h: New file.
60648         * lib/unistdio/ulc-asnprintf.c: New file.
60649         * lib/unistdio/ulc-asprintf.c: New file.
60650         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60651         * lib/unistdio/ulc-printf-parse.c: New file.
60652         * lib/unistdio/ulc-snprintf.c: New file.
60653         * lib/unistdio/ulc-sprintf.c: New file.
60654         * lib/unistdio/ulc-vasnprintf.c: New file.
60655         * lib/unistdio/ulc-vasprintf.c: New file.
60656         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60657         * lib/unistdio/ulc-vsnprintf.c: New file.
60658         * lib/unistdio/ulc-vsprintf.c: New file.
60659         * lib/unistdio/u8-asnprintf.c: New file.
60660         * lib/unistdio/u8-asprintf.c: New file.
60661         * lib/unistdio/u8-printf-parse.c: New file.
60662         * lib/unistdio/u8-snprintf.c: New file.
60663         * lib/unistdio/u8-sprintf.c: New file.
60664         * lib/unistdio/u8-vasnprintf.c: New file.
60665         * lib/unistdio/u8-vasprintf.c: New file.
60666         * lib/unistdio/u8-vsnprintf.c: New file.
60667         * lib/unistdio/u8-vsprintf.c: New file.
60668         * lib/unistdio/u8-u8-asnprintf.c: New file.
60669         * lib/unistdio/u8-u8-asprintf.c: New file.
60670         * lib/unistdio/u8-u8-snprintf.c: New file.
60671         * lib/unistdio/u8-u8-sprintf.c: New file.
60672         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60673         * lib/unistdio/u8-u8-vasprintf.c: New file.
60674         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60675         * lib/unistdio/u8-u8-vsprintf.c: New file.
60676         * lib/unistdio/u16-asnprintf.c: New file.
60677         * lib/unistdio/u16-asprintf.c: New file.
60678         * lib/unistdio/u16-printf-parse.c: New file.
60679         * lib/unistdio/u16-snprintf.c: New file.
60680         * lib/unistdio/u16-sprintf.c: New file.
60681         * lib/unistdio/u16-vasnprintf.c: New file.
60682         * lib/unistdio/u16-vasprintf.c: New file.
60683         * lib/unistdio/u16-vsnprintf.c: New file.
60684         * lib/unistdio/u16-vsprintf.c: New file.
60685         * lib/unistdio/u16-u16-asnprintf.c: New file.
60686         * lib/unistdio/u16-u16-asprintf.c: New file.
60687         * lib/unistdio/u16-u16-snprintf.c: New file.
60688         * lib/unistdio/u16-u16-sprintf.c: New file.
60689         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60690         * lib/unistdio/u16-u16-vasprintf.c: New file.
60691         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60692         * lib/unistdio/u16-u16-vsprintf.c: New file.
60693         * lib/unistdio/u32-asnprintf.c: New file.
60694         * lib/unistdio/u32-asprintf.c: New file.
60695         * lib/unistdio/u32-printf-parse.c: New file.
60696         * lib/unistdio/u32-snprintf.c: New file.
60697         * lib/unistdio/u32-sprintf.c: New file.
60698         * lib/unistdio/u32-vasnprintf.c: New file.
60699         * lib/unistdio/u32-vasprintf.c: New file.
60700         * lib/unistdio/u32-vsnprintf.c: New file.
60701         * lib/unistdio/u32-vsprintf.c: New file.
60702         * lib/unistdio/u32-u32-asnprintf.c: New file.
60703         * lib/unistdio/u32-u32-asprintf.c: New file.
60704         * lib/unistdio/u32-u32-snprintf.c: New file.
60705         * lib/unistdio/u32-u32-sprintf.c: New file.
60706         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60707         * lib/unistdio/u32-u32-vasprintf.c: New file.
60708         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60709         * lib/unistdio/u32-u32-vsprintf.c: New file.
60710         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60711         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60712         * tests/unistdio/test-ulc-printf1.h: New file.
60713         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60714         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60715         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60716         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60717         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60718         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60719         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60720         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60721         * tests/unistdio/test-u8-asnprintf1.c: New file.
60722         * tests/unistdio/test-u8-asnprintf1.h: New file.
60723         * tests/unistdio/test-u8-printf1.h: New file.
60724         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60725         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60726         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60727         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60728         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60729         * tests/unistdio/test-u8-vasprintf1.c: New file.
60730         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60731         * tests/unistdio/test-u8-vsprintf1.c: New file.
60732         * tests/unistdio/test-u16-asnprintf1.c: New file.
60733         * tests/unistdio/test-u16-asnprintf1.h: New file.
60734         * tests/unistdio/test-u16-printf1.h: New file.
60735         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60736         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60737         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60738         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60739         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60740         * tests/unistdio/test-u16-vasprintf1.c: New file.
60741         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60742         * tests/unistdio/test-u16-vsprintf1.c: New file.
60743         * tests/unistdio/test-u32-asnprintf1.c: New file.
60744         * tests/unistdio/test-u32-asnprintf1.h: New file.
60745         * tests/unistdio/test-u32-printf1.h: New file.
60746         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60747         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60748         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60749         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60750         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60751         * tests/unistdio/test-u32-vasprintf1.c: New file.
60752         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60753         * tests/unistdio/test-u32-vsprintf1.c: New file.
60754         * modules/unistdio/base: New file.
60755         * modules/unistdio/u-printf-args: New file.
60756         * modules/unistdio/ulc-asnprintf: New file.
60757         * modules/unistdio/ulc-asprintf: New file.
60758         * modules/unistdio/ulc-fprintf: New file.
60759         * modules/unistdio/ulc-printf-parse: New file.
60760         * modules/unistdio/ulc-snprintf: New file.
60761         * modules/unistdio/ulc-sprintf: New file.
60762         * modules/unistdio/ulc-vasnprintf: New file.
60763         * modules/unistdio/ulc-vasprintf: New file.
60764         * modules/unistdio/ulc-vfprintf: New file.
60765         * modules/unistdio/ulc-vsnprintf: New file.
60766         * modules/unistdio/ulc-vsprintf: New file.
60767         * modules/unistdio/u8-asnprintf: New file.
60768         * modules/unistdio/u8-asprintf: New file.
60769         * modules/unistdio/u8-printf-parse: New file.
60770         * modules/unistdio/u8-snprintf: New file.
60771         * modules/unistdio/u8-sprintf: New file.
60772         * modules/unistdio/u8-vasnprintf: New file.
60773         * modules/unistdio/u8-vasprintf: New file.
60774         * modules/unistdio/u8-vsnprintf: New file.
60775         * modules/unistdio/u8-vsprintf: New file.
60776         * modules/unistdio/u8-u8-asnprintf: New file.
60777         * modules/unistdio/u8-u8-asprintf: New file.
60778         * modules/unistdio/u8-u8-snprintf: New file.
60779         * modules/unistdio/u8-u8-sprintf: New file.
60780         * modules/unistdio/u8-u8-vasnprintf: New file.
60781         * modules/unistdio/u8-u8-vasprintf: New file.
60782         * modules/unistdio/u8-u8-vsnprintf: New file.
60783         * modules/unistdio/u8-u8-vsprintf: New file.
60784         * modules/unistdio/u16-asnprintf: New file.
60785         * modules/unistdio/u16-asprintf: New file.
60786         * modules/unistdio/u16-printf-parse: New file.
60787         * modules/unistdio/u16-snprintf: New file.
60788         * modules/unistdio/u16-sprintf: New file.
60789         * modules/unistdio/u16-vasnprintf: New file.
60790         * modules/unistdio/u16-vasprintf: New file.
60791         * modules/unistdio/u16-vsnprintf: New file.
60792         * modules/unistdio/u16-vsprintf: New file.
60793         * modules/unistdio/u16-u16-asnprintf: New file.
60794         * modules/unistdio/u16-u16-asprintf: New file.
60795         * modules/unistdio/u16-u16-snprintf: New file.
60796         * modules/unistdio/u16-u16-sprintf: New file.
60797         * modules/unistdio/u16-u16-vasnprintf: New file.
60798         * modules/unistdio/u16-u16-vasprintf: New file.
60799         * modules/unistdio/u16-u16-vsnprintf: New file.
60800         * modules/unistdio/u16-u16-vsprintf: New file.
60801         * modules/unistdio/u32-asnprintf: New file.
60802         * modules/unistdio/u32-asprintf: New file.
60803         * modules/unistdio/u32-printf-parse: New file.
60804         * modules/unistdio/u32-snprintf: New file.
60805         * modules/unistdio/u32-sprintf: New file.
60806         * modules/unistdio/u32-vasnprintf: New file.
60807         * modules/unistdio/u32-vasprintf: New file.
60808         * modules/unistdio/u32-vsnprintf: New file.
60809         * modules/unistdio/u32-vsprintf: New file.
60810         * modules/unistdio/u32-u32-asnprintf: New file.
60811         * modules/unistdio/u32-u32-asprintf: New file.
60812         * modules/unistdio/u32-u32-snprintf: New file.
60813         * modules/unistdio/u32-u32-sprintf: New file.
60814         * modules/unistdio/u32-u32-vasnprintf: New file.
60815         * modules/unistdio/u32-u32-vasprintf: New file.
60816         * modules/unistdio/u32-u32-vsnprintf: New file.
60817         * modules/unistdio/u32-u32-vsprintf: New file.
60818         * modules/unistdio/ulc-asnprintf-tests: New file.
60819         * modules/unistdio/ulc-vasnprintf-tests: New file.
60820         * modules/unistdio/ulc-vasprintf-tests: New file.
60821         * modules/unistdio/ulc-vsnprintf-tests: New file.
60822         * modules/unistdio/ulc-vsprintf-tests: New file.
60823         * modules/unistdio/u8-asnprintf-tests: New file.
60824         * modules/unistdio/u8-vasnprintf-tests: New file.
60825         * modules/unistdio/u8-vasprintf-tests: New file.
60826         * modules/unistdio/u8-vsnprintf-tests: New file.
60827         * modules/unistdio/u8-vsprintf-tests: New file.
60828         * modules/unistdio/u16-asnprintf-tests: New file.
60829         * modules/unistdio/u16-vasnprintf-tests: New file.
60830         * modules/unistdio/u16-vasprintf-tests: New file.
60831         * modules/unistdio/u16-vsnprintf-tests: New file.
60832         * modules/unistdio/u16-vsprintf-tests: New file.
60833         * modules/unistdio/u32-asnprintf-tests: New file.
60834         * modules/unistdio/u32-vasnprintf-tests: New file.
60835         * modules/unistdio/u32-vasprintf-tests: New file.
60836         * modules/unistdio/u32-vsnprintf-tests: New file.
60837         * modules/unistdio/u32-vsprintf-tests: New file.
60838         * MODULES.html.sh (Unicode string functions): Add the new modules.
60839
60840 2007-07-01  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/sprintf.c (sprintf): Limit the available length estimation,
60843         to avoid address wraparound.
60844         * lib/vsprintf.c (vsprintf): Likewise.
60845         * modules/sprintf-posix (Dependencies): Add stdint.
60846         * modules/vsprintf-posix (Dependencies): Likewise.
60847
60848 2007-07-01  Bruno Haible  <bruno@clisp.org>
60849
60850         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60851         Windows PATH as well. Conservative double-quoting. Comments.
60852
60853 2007-07-01  Bruno Haible  <bruno@clisp.org>
60854             Eric Blake  <ebb9@byu.net>
60855             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60856
60857         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60858         empty components in $PATH, denoting '.'.
60859
60860 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60861
60862         * gnulib-tool: Fix indentation.
60863         (func_create_megatestdir): Likewise.
60864         Report by Bruno Haible.
60865
60866 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60867
60868         Sync from Automake.
60869         * build-aux/gnupload: Fix shell portability issues with for loops.
60870         Report by Karl Berry.
60871
60872 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60873
60874         * build-aux/maint.mk (POURL): Use translationproject.org.
60875
60876 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60877             Bruno Haible  <bruno@clisp.org>
60878
60879         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60880         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60881         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60882         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60883         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60884
60885 2007-06-27  Bruno Haible  <bruno@clisp.org>
60886
60887         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60888         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60889
60890 2007-06-26  Karl Berry  <karl@gnu.org>
60891
60892         * MODULES.html.sh: remove xreadlink-with-size.
60893
60894 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60895
60896         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60897         method that I hope also handles the double-include problem noted
60898         by Bruno Haible in
60899         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60900
60901 2007-06-23  Bruno Haible  <bruno@clisp.org>
60902
60903         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60904         Don't let the 'mostlyclean' target fail if the last subdirectory could
60905         not be removed.
60906         Reported by Karl Berry.
60907
60908 2007-06-23  Bruno Haible  <bruno@clisp.org>
60909
60910         * gnulib-tool (echo): Add a speedier workaround for ksh.
60911         * tests/test-echo.sh: Likewise.
60912
60913 2007-06-23  Bruno Haible  <bruno@clisp.org>
60914
60915         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60916         * tests/test-echo.sh: Likewise.
60917
60918 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60919
60920         * gnulib-tool (IFS): Initialize early, so we don't set it to
60921         empty later.
60922         (self_abspathname): Rewrite algorithm to set it, reindent.
60923         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60924         (func_create_megatestdir): Merge some sed scripts.
60925
60926 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60927
60928         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60929         exposed by Sun Studio 11 cc on Solaris 8.
60930
60931 2007-06-22  Bruno Haible  <bruno@clisp.org>
60932
60933         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60934         backslashes.
60935         * tests/test-echo.sh: New file.
60936
60937 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60938
60939         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60940         simplify `sed_replace_build_aux' scripts, they are portable but
60941         echoing them with `echo' is not.
60942         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60943
60944 2007-06-21  Karl Berry  <karl@gnu.org>
60945
60946         * config/srclist.txt: guess we can't handle the licenses via
60947         srclist at the moment.
60948
60949 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60950
60951         * MODULES.html.sh: Add include_next.
60952         * modules/include_next: New file.
60953
60954 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60955
60956         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60957         INCLUDE_NEXT.
60958         (gl_CHECK_NEXT_HEADERS): New macro.
60959         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60960         the obsolescent gl_ABSOLUTE_HEADER.
60961         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60962         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60963         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60964         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60965         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60966         * m4/math_h.m4 (gl_MATH_H): Likewise.
60967         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60968         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60969         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60970         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60971         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60972         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60973         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60975         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60977         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60978         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60979         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60980         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60981         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60982         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60983         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60984         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60985         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60986         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60987         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60988         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60989         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60990         * lib/float_.h: Likewise.
60991         * lib/inttypes_.h: Likewise.
60992         * lib/math_.h: Likewise.
60993         * lib/search_.h: Likewise.
60994         * lib/signal_.h: Likewise.
60995         * lib/stdint_.h: Likewise.
60996         * lib/stdio_.h: Likewise.
60997         * lib/stdlib_.h: Likewise.
60998         * lib/string_.h: Likewise.
60999         * lib/sys_stat_.h: Likewise.
61000         * lib/sys_time_.h: Likewise.
61001         * lib/time_.h: Likewise.
61002         * lib/unistd_.h: Likewise.
61003         * lib/wchar_.h: Likewise.
61004         * lib/wctype_.h: Likewise.
61005         * lib/dirent_.h: Likewise.
61006         * lib/iconv_.h: Likewise.
61007         * lib/locale_.h: Likewise.
61008         * lib/netinet_in_.h: Likewise.
61009         * lib/sys_select_.h: Likewise.
61010         * lib/sys_socket_.h: Likewise.
61011         * lib/sysexits_.h: Likewise.
61012         * modules/fcntl (Depends-on): Depend on include_next, not
61013         absolute_header.
61014         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
61015         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
61016         * modules/fchdir: Likewise.
61017         * modules/float: Likewise.
61018         * modules/iconv_open: Likewise.
61019         * modules/inttypes: Likewise.
61020         * modules/locale: Likewise.
61021         * modules/math: Likewise.
61022         * modules/netinet_in: Likewise.
61023         * modules/search: Likewise.
61024         * modules/signal: Likewise.
61025         * modules/stdint: Likewise.
61026         * modules/stdio: Likewise.
61027         * modules/stdlib: Likewise.
61028         * modules/string: Likewise.
61029         * modules/sys_select: Likewise.
61030         * modules/sys_socket: Likewise.
61031         * modules/sys_stat: Likewise.
61032         * modules/sys_time: Likewise.
61033         * modules/sysexits: Likewise.
61034         * modules/time: Likewise.
61035         * modules/unistd: Likewise.
61036         * modules/wchar: Likewise.
61037         * modules/wctype: Likewise.
61038         * modules/sys_stat: Change maintainer to "all".
61039         * modules/unistd: Likewise.
61040
61041 2007-06-20  Karl Berry  <karl@gnu.org>
61042
61043         * config/srclist.txt: track www changes in license files.
61044
61045 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
61046
61047         * build-aux/bootstrap: Remove stray dot.
61048         Make sure build_aux settings are honored when linking
61049         gnulib_extra_files.
61050
61051 2007-06-19  Eric Blake  <ebb9@byu.net>
61052
61053         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
61054         Allow compilation on cygwin.
61055
61056 2007-06-19  Jim Meyering  <jim@meyering.net>
61057
61058         xreadlink-with-size: Remove module.  No longer used.
61059         Ex-callers now use xreadlink or mreadlink-with-size.
61060         * modules/xreadlink-with-size: Remove module.
61061         * lib/xreadlink-with-size.c: Remove file.
61062         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
61063         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
61064         just before the function definition *is* accurate.
61065
61066         Eliminate one way canonicalize_filename_mode could exit.
61067         * lib/canonicalize.c (canonicalize_filename_mode):
61068         Use mreadlink_with_size, not xreadlink_with_size.
61069
61070 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
61071
61072         Detect porting problems to FreeBSD/arm, which has time_t wider than
61073         long int.  Original problem reported for GNU diff by Xin Li in
61074         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
61075         * modules/getdate (Depends-on): Add intprops, verify.
61076         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
61077         is an integer type no wider than long int.
61078
61079 2007-06-18  Jim Meyering  <jim@meyering.net>
61080
61081         New module: mreadlink-with-size.
61082         * MODULES.html.sh: Add mreadlink-with-size.
61083         * modules/mreadlink-with-size: New module
61084         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
61085         not xreadlink-with-size.
61086         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
61087
61088 2007-06-16  Bruno Haible  <bruno@clisp.org>
61089
61090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
61091         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
61092         Reported by Gary V. Vaughan <gary@gnu.org>.
61093
61094 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
61095
61096         Revamp lchown so that it lives in unistd.h where it belongs.
61097         * lib/lchown.h: Remove.
61098         * lib/dirchownmod.c: Don't include lib/lchown.h.
61099         * lib/fchownat.c: Likewise.
61100         * lib/openat.c: Likewise.
61101         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
61102         does not follow symlinks.
61103         (EOPNOTSUPP): Define if not defined.
61104         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
61105         is defined to 0.
61106         (lchown): New decl.
61107         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
61108         Do not check for lchown decl.
61109         Set REPLACE_LCHOWN.
61110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
61111         REPLACE_LCHOWN.
61112         * modules/chown: Make it clear it follows symlinks.
61113         * modules/lchown: Make it clear it doesn't follow symlinks.
61114         (Files): Remove lib/lchown.h
61115         (Depends-on): Add unistd.
61116         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
61117         (Include): Include <unistd.h>, not "lchown.h".
61118         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
61119         REPLACE_LCHOWN.
61120
61121 2007-06-15  Jim Meyering  <jim@meyering.net>
61122
61123         Change license (GPL to LGPL) of fsusage and dependents.
61124         * modules/fsusage (License): Change to LGPL.
61125         * modules/full-read (License): Likewise.
61126         * modules/full-write (License): Likewise.
61127         * modules/safe-read (License): Likewise.
61128         * modules/safe-write (License): Likewise.
61129
61130 2007-06-14  Ben Pfaff  <blp@gnu.org>
61131
61132         Missing part of allocsa -> malloca transition.
61133         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
61134         gl_MALLOCA.
61135
61136 2007-06-12  Bruno Haible  <bruno@clisp.org>
61137
61138         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
61139         to ia64, x86_64, i386.
61140         Reported by Eric Blake.
61141
61142 2007-06-12  Bruno Haible  <bruno@clisp.org>
61143
61144         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
61145         cross-compiling to x86_64.
61146
61147 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
61148
61149         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
61150         glitch reported by Ralf Wildenhues in
61151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
61152
61153         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
61154         Vin Shelton.
61155
61156 2007-06-11  Bruno Haible  <bruno@clisp.org>
61157
61158         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
61159         replacement string.
61160         Reported by Eric Blake.
61161
61162 2007-06-10  Bruno Haible  <bruno@clisp.org>
61163
61164         Prepare vasnprintf code for use with Unicode strings.
61165         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61166         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61167         TYPE_U32_STRING.
61168         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61169         a_u32_string variants.
61170         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61171         * lib/printf-args.c: Don't include config.h and the specification
61172         header if PRINTF_FETCHARGS is already defined.
61173         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61174         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61175         TYPE_U16_STRING, TYPE_U32_STRING.
61176         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61177         u16_directive, u16_directives, u32_directive, u32_directives): New
61178         types.
61179         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61180         New declarations.
61181         * lib/printf-parse.c: Don't include config.h and the specification
61182         header if PRINTF_PARSE is already defined. Eliminate the set of
61183         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61184         them now. Include c-ctype.h.
61185         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61186         directive and CHAR_T_ONLY_ASCII.
61187         * lib/vasnprintf.c: Don't include config.h and the specification header
61188         if VASNPRINTF is already defined.
61189         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61190         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61191         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61192         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61193         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61194         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61195         code accordingly.
61196         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61197         pad_ourselves also in this case, with the 'c' and 's' directives, and
61198         with a different notion of "width".
61199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61200
61201 2007-06-10  Bruno Haible  <bruno@clisp.org>
61202
61203         * modules/unistr/u32-mbsnlen: New file.
61204         * lib/unistr/u32-mbsnlen.c: New file.
61205
61206         * modules/unistr/u16-mbsnlen: New file.
61207         * lib/unistr/u16-mbsnlen.c: New file.
61208
61209         * modules/unistr/u8-mbsnlen: New file.
61210         * lib/unistr/u8-mbsnlen.c: New file.
61211
61212         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61213         declarations.
61214
61215 2007-06-10  Bruno Haible  <bruno@clisp.org>
61216
61217         * lib/string_.h (mbsnlen): New declaration.
61218         * lib/mbsnlen.c: New file.
61219         * m4/mbsnlen.m4: New file.
61220         * modules/mbsnlen: New file.
61221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61222         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61223         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61224
61225 2007-06-10  Bruno Haible  <bruno@clisp.org>
61226
61227         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61228
61229 2007-06-10  Bruno Haible  <bruno@clisp.org>
61230
61231         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61232         * lib/mbuiter.h: Likewise.
61233
61234 2007-06-10  Bruno Haible  <bruno@clisp.org>
61235
61236         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61237         declaration.
61238
61239 2007-06-10  Karl Berry  <karl@gnu.org>
61240
61241         * config/srclist.txt: remove gettext entries, Bruno prefers
61242         to update individually.
61243
61244 2007-06-10  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61247         'maxlen'. Ensure only length + width bytes are allocated, not
61248         length + 1 + width.
61249
61250 2007-06-09  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61253         (CHAR_T): Remove macro.
61254         (VASNPRINTF): Update.
61255
61256 2007-06-09  Bruno Haible  <bruno@clisp.org>
61257
61258         * MODULES.html.sh (Unicode string functions): Add the new modules.
61259
61260         * modules/uniconv/u32-conv-to-enc: New file.
61261         * lib/uniconv/u32-conv-to-enc.c: New file.
61262         * modules/uniconv/u32-conv-to-enc-tests: New file.
61263         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61264
61265         * modules/uniconv/u16-conv-to-enc: New file.
61266         * lib/uniconv/u16-conv-to-enc.c: New file.
61267         * lib/uniconv/u-conv-to-enc.h: New file.
61268         * modules/uniconv/u16-conv-to-enc-tests: New file.
61269         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61270
61271         * modules/uniconv/u8-conv-to-enc: New file.
61272         * lib/uniconv/u8-conv-to-enc.c: New file.
61273         * modules/uniconv/u8-conv-to-enc-tests: New file.
61274         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61275
61276         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61277         u32_conv_to_encoding): New declarations.
61278
61279 2007-06-09  Bruno Haible  <bruno@clisp.org>
61280
61281         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61282
61283 2007-06-09  Bruno Haible  <bruno@clisp.org>
61284
61285         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61286         * modules/malloca: Renamed from modules/allocsa, updated.
61287         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61288         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61289         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61290         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61291         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61292         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61293         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61294         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61295         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61296         * modules/c-strcasestr (Depends-on): Update.
61297         * lib/c-strcasestr.c: Update.
61298         * modules/c-strstr (Depends-on): Update.
61299         * lib/c-strstr.c: Update.
61300         * modules/canonicalize-lgpl (Depends-on): Update.
61301         * lib/canonicalize-lgpl.c: Update.
61302         * modules/clean-temp (Depends-on): Update.
61303         * lib/clean-temp.c: Update.
61304         * modules/csharpcomp (Depends-on): Update.
61305         * lib/csharpcomp.c: Update.
61306         * modules/csharpexec (Depends-on): Update.
61307         * lib/csharpexec.c: Update.
61308         * modules/javacomp (Depends-on): Update.
61309         * lib/javacomp.c: Update.
61310         * modules/javaexec (Depends-on): Update.
61311         * lib/javaexec.c: Update.
61312         * modules/mbscasestr (Depends-on): Update.
61313         * lib/mbscasestr.c: Update.
61314         * modules/mbsstr (Depends-on): Update.
61315         * lib/mbsstr.c: Update.
61316         * modules/setenv (Depends-on): Update.
61317         * lib/setenv.c: Update.
61318         * modules/strcasestr (Depends-on): Update.
61319         * lib/strcasestr.c: Update.
61320         * modules/striconveha (Depends-on): Update.
61321         * lib/striconveha.c: Update.
61322         * modules/relocatable-prog-wrapper (Files): Update.
61323         * lib/relocwrapper.c: Update.
61324         * build-aux/install-reloc: Update.
61325         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61326
61327 2007-06-08  Bruno Haible  <bruno@clisp.org>
61328
61329         Port to uClibc.
61330         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61331         * lib/fpurge.c (fpurge): Likewise.
61332         * lib/freading.c (freading): Likewise.
61333         * lib/fseeko.c (rpl_fseeko): Likewise.
61334         * lib/fseterr.c (fseterr): Likewise.
61335         * lib/fwriting.c (fwriting): Likewise.
61336         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61337
61338 2007-06-08  Bruno Haible  <bruno@clisp.org>
61339
61340         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61341         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61342         * modules/gettext (Files): Add m4/intlmacosx.m4.
61343
61344 2007-06-07  Bruno Haible  <bruno@clisp.org>
61345
61346         * modules/localename-tests: New file.
61347         * tests/test-localename.c: New file.
61348
61349         New module 'localename'.
61350         * lib/localename.h: New file.
61351         * lib/localename.c: New file, from GNU gettext.
61352         * m4/localename.m4: New file.
61353         * modules/localename: New file.
61354
61355 2007-06-07  Bruno Haible  <bruno@clisp.org>
61356
61357         Work around the lack of <wchar.h> on some builds of uClibc.
61358         * doc/headers/wchar.texi: Update.
61359         * lib/wchar_.h: Include <wchar.h> only if it exists.
61360         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61361         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61362         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61363         doesn't exist.
61364         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61365         * modules/mbfile (Depends-on): Add wchar.
61366         * modules/mbiter (Depends-on): Likewise.
61367         * modules/mbuiter (Depends-on): Likewise.
61368         Reported by Simon Josefsson.
61369
61370 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61371
61372         Work around problem reported by Steven M. Schweda in
61373         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61374         Tru64 5.1B with the Compaq compiler environment installed declares
61375         an 'isblank' function but does not define it in the C library.
61376         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61377         * lib/regex_internal.h (isblank): Likewise.
61378         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61379         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61380
61381 2007-06-05  Bruno Haible  <bruno@clisp.org>
61382
61383         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61384         ia64.
61385         * modules/printf-safe: New file.
61386         * modules/fprintf-posix (Depends-on): Add printf-safe.
61387         * modules/printf-posix (Depends-on): Likewise.
61388         * modules/snprintf-posix (Depends-on): Likewise.
61389         * modules/sprintf-posix (Depends-on): Likewise.
61390         * modules/vasnprintf-posix (Depends-on): Likewise.
61391         * modules/vasprintf-posix (Depends-on): Likewise.
61392         * modules/vfprintf-posix (Depends-on): Likewise.
61393         * modules/vprintf-posix (Depends-on): Likewise.
61394         * modules/vsnprintf-posix (Depends-on): Likewise.
61395         * modules/vsprintf-posix (Depends-on): Likewise.
61396         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61397         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61398         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61399         "no" on i386, x86_64, ia64.
61400         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61401         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61402         on i386, x86_64, ia64.
61403         * tests/test-sprintf-posix.h (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-vasnprintf-posix.c: Include float.h.
61407         (LDBL80_WORDS): New macro.
61408         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61409         on i386, x86_64, ia64.
61410         * tests/test-vasprintf-posix.c: Include float.h.
61411         (LDBL80_WORDS): New macro.
61412         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61413         on i386, x86_64, ia64.
61414         * tests/test-snprintf-posix.c: Include float.h.
61415         * tests/test-sprintf-posix.c: Likewise.
61416         * tests/test-vsnprintf-posix.c: Likewise.
61417         * tests/test-vsprintf-posix.c: Likewise.
61418
61419 2007-06-05  Bruno Haible  <bruno@clisp.org>
61420
61421         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61422         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61423         non-IEEE numbers on i386, x86_64, ia64.
61424         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61425         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61426         * tests/test-isnanl.h: Include float.h.
61427         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61428
61429 2007-06-05  Bruno Haible  <bruno@clisp.org>
61430
61431         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61432         also the %a / %A. Handle the %a / %A code before this extra handling.
61433
61434 2007-06-05  Bruno Haible  <bruno@clisp.org>
61435
61436         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61437         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61438
61439 2007-06-05  Bruno Haible  <bruno@clisp.org>
61440
61441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61442         typo in variable name.
61443
61444 2007-06-05  Eric Blake  <ebb9@byu.net>
61445
61446         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61447         Reported by Simon Josefsson.
61448
61449 2007-06-04  Bruno Haible  <bruno@clisp.org>
61450
61451         Avoid test failures on some PowerPC platforms.
61452         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61453         Define differently for PowerPC.
61454         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61455         Reported by Gary V. Vaughan <gary@gnu.org>.
61456
61457 2007-06-02  Bruno Haible  <bruno@clisp.org>
61458
61459         Fix test-stdint failure on FreeBSD/ia64.
61460         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61461         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61462         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61463         * doc/headers/stdint.texi: Update.
61464
61465 2007-06-01  Bruno Haible  <bruno@clisp.org>
61466
61467         * tests/test-binary-io.c (main): Pass a third argument to open().
61468         Reported by Gary V. Vaughan <gary@gnu.org>.
61469
61470 2007-06-01  Bruno Haible  <bruno@clisp.org>
61471
61472         * doc/functions/frexpl.texi: Update for mingw.
61473
61474 2007-06-01  Bruno Haible  <bruno@clisp.org>
61475
61476         * tests/test-lseek.c (main): Disable test of errno for invalid third
61477         argument.
61478         * doc/functions/lseek.texi: Update.
61479         Reported by Gary V. Vaughan <gary@gnu.org>.
61480
61481 2007-05-28  Bruno Haible  <bruno@clisp.org>
61482
61483         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61484
61485 2007-05-31  Eric Blake  <ebb9@byu.net>
61486
61487         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61488         cross compiling.
61489
61490 2007-05-30  Eric Blake  <ebb9@byu.net>
61491         and Bruno Haible  <bruno@clisp.org>
61492
61493         Work around mingw test failures exposed by m4-1.4.9b.
61494         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61495         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61496         moment.
61497
61498 2007-05-30  Bruno Haible  <bruno@clisp.org>
61499
61500         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61501         assuming that they are closed. Needed on HP-UX 11.
61502
61503 2007-05-29  Bruno Haible  <bruno@clisp.org>
61504
61505         Fix a problem with #include_next.
61506         * lib/dirent_.h: Split the double-inclusion guard.
61507         * lib/fcntl_.h: Likewise.
61508         * lib/float_.h: Likewise.
61509         * lib/iconv_.h: Likewise.
61510         * lib/inttypes_.h: Likewise.
61511         * lib/locale_.h: Likewise.
61512         * lib/math_.h: Likewise.
61513         * lib/netinet_in_.h: Likewise.
61514         * lib/search_.h: Likewise.
61515         * lib/signal_.h: Likewise.
61516         * lib/stdint_.h: Likewise.
61517         * lib/stdio_.h: Likewise.
61518         * lib/stdlib_.h: Likewise.
61519         * lib/string_.h: Likewise.
61520         * lib/sys_select_.h: Likewise.
61521         * lib/sys_socket_.h: Likewise.
61522         * lib/sys_stat_.h: Likewise.
61523         * lib/sys_time_.h: Likewise.
61524         * lib/sysexits_.h: Likewise.
61525         * lib/time_.h: Likewise.
61526         * lib/unistd_.h: Likewise.
61527         * lib/wchar_.h: Likewise.
61528         * lib/wctype_.h: Likewise.
61529
61530 2007-05-29  Bruno Haible  <bruno@clisp.org>
61531
61532         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61533         for the moment.
61534
61535 2007-05-29  Bruno Haible  <bruno@clisp.org>
61536
61537         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61538         invocation.
61539         Reported by Eric Blake.
61540
61541 2007-05-29  Bruno Haible  <bruno@clisp.org>
61542
61543         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61544         compiling case.
61545
61546 2007-05-29  Eric Blake  <ebb9@byu.net>
61547             Bruno Haible  <bruno@clisp.org>
61548
61549         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61550         cross compiles.
61551
61552 2007-05-28  Eric Blake  <ebb9@byu.net>
61553
61554         * modules/closein-tests (test_closein_LDADD): Support test on
61555         cygwin with libtool.
61556
61557 2007-05-28  Bruno Haible  <bruno@clisp.org>
61558
61559         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61560         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61561         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61562         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61563         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61564         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61565         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61566         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61567         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61568
61569 2007-05-28  Eric Blake  <ebb9@byu.net>
61570
61571         Unconditionally include <config.h> in unit tests.
61572         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61573         * tests/test-allocsa.c, tests/test-arcfour.c,
61574         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61575         tests/test-array_list.c, tests/test-array_oset.c,
61576         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61577         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61578         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61579         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61580         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61581         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61582         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61583         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61584         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61585         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61586         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61587         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61588         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61589         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61590         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61591         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61592         test-md5.c, test-memmem.c, test-printf-posix.c,
61593         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61594         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61595         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61596         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61597         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61598         test-vasnprintf-posix2.c, test-vasnprintf.c,
61599         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61600         test-vfprintf-posix.c, test-vprintf-posix.c,
61601         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61602         test-xvasprintf.c: Likewise.
61603
61604 2007-05-28  Bruno Haible  <bruno@clisp.org>
61605
61606         * gnulib-tool (func_import): Remember the --with-tests command-line
61607         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61608         Reported by Eric Blake.
61609
61610 2007-05-28  Bruno Haible  <bruno@clisp.org>
61611
61612         * modules/ftell-tests: New file.
61613         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61614         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61615
61616         * lib/ftell.c: New file.
61617         * modules/ftell: New file.
61618         * m4/ftell.m4: New file.
61619         * doc/functions/ftell.texi: Update.
61620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61621         REPLACE_FTELL.
61622         * lib/stdio_.h (rpl_ftell): New declaration.
61623         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61624         REPLACE_FTELL.
61625
61626 2007-05-28  Eric Blake  <ebb9@byu.net>
61627
61628         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61629
61630 2007-05-28  Bruno Haible  <bruno@clisp.org>
61631
61632         * modules/fseek-tests: New file.
61633         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61634         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61635
61636         * lib/fseek.c: New file.
61637         * modules/fseek: New file.
61638         * m4/fseek.m4: New file.
61639         * doc/functions/fseek.texi: Update.
61640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61641         REPLACE_FSEEK.
61642         * lib/stdio_.h (rpl_fseek): New declaration.
61643         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61644         REPLACE_FSEEK.
61645
61646 2007-05-28  Bruno Haible  <bruno@clisp.org>
61647
61648         * lib/stdio_.h (fflush): More comments.
61649
61650 2007-05-28  Bruno Haible  <bruno@clisp.org>
61651
61652         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61653         runtime test.
61654
61655 2007-05-28  Eric Blake  <ebb9@byu.net>
61656
61657         Improve lseek module.
61658         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61659         * lib/unistd_.h (lseek): Scale back link warning message.
61660         * tests/test-lseek.c: Beef up test.
61661         * tests/test-lseek.sh: Exercise more facets of lseek.
61662         Reported by Bruno Haible.
61663
61664 2007-05-28  Bruno Haible  <bruno@clisp.org>
61665
61666         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61667         to define.
61668
61669 2007-05-27  Bruno Haible  <bruno@clisp.org>
61670
61671         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61672
61673 2007-05-27  Bruno Haible  <bruno@clisp.org>
61674
61675         * modules/openmp: New file.
61676         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61677         Noah Misch.
61678
61679 2007-05-26  Bruno Haible  <bruno@clisp.org>
61680
61681         * modules/chdir-long (Depends-on): Add fchdir.
61682         * modules/chdir-safer (Depends-on): Likewise.
61683         * modules/fts (Depends-on): Likewise.
61684         * modules/fts-lgpl (Depends-on): Likewise.
61685         * modules/openat (Depends-on): Likewise.
61686         * modules/savewd (Depends-on): Likewise.
61687
61688 2007-05-24  Eric Blake  <ebb9@byu.net>
61689
61690         Fix lseek on mingw.
61691         * modules/lseek: New module.
61692         * m4/lseek.m4: New file.
61693         * lib/lseek.c: New file.
61694         * modules/lseek-tests: New file.
61695         * tests/test-lseek.c: New file.
61696         * tests/test-lseek.sh: New file.
61697         * MODULES.html.sh: Document lseek module.
61698         * modules/fflush (Depends-on): Add lseek, fseeko.
61699         * modules/fseeko (Depends-on): Likewise.
61700         * modules/ftello (Depends-on): Likewise.
61701         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61702         broken.
61703         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61704         broken.
61705         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61706         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61707         * lib/ftello.c (rpl_ftello): Likewise.
61708         * tests/test-fseeko.c (main): Test this.
61709         * tests/test-fseeko.sh: Likewise.
61710         * tests/test-ftello.c (main): Likewise.
61711         * tests/test-ftello.sh: Likewise.
61712         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61713         implies replacing fseek.
61714         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61715         HAVE_FTELLO.
61716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61717         * modules/unistd (Makefile.am): Likewise.
61718         * lib/unistd_.h (lseek): Declare a replacement.
61719         * doc/functions/lseek.texi (lseek): Document this fix.
61720         * doc/functions/fseek.texi (fseek): Likewise.
61721         * doc/functions/ftell.texi (ftell): Likewise.
61722
61723 2007-05-24  Bruno Haible  <bruno@clisp.org>
61724
61725         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61726         in the printed representation of a NaN.
61727         * tests/test-vasprintf-posix.c (test_function): Likewise.
61728         * tests/test-snprintf-posix.h (test_function): Likewise.
61729         * tests/test-sprintf-posix.h (test_function): Likewise.
61730         Reported by Eric Blake.
61731
61732 2007-05-23  Eric Blake  <ebb9@byu.net>
61733
61734         Fix fseeko/ftello on cygwin 1.5.24.
61735         * doc/functions/fseeko.texi (fseeko): Document the fix.
61736         * doc/functions/ftello.texi (ftello): Document the fix.
61737         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61738         * doc/functions/stdout.text (stdout): New file.
61739         * doc/functions/stderr.text (stderr): New file.
61740         * doc/gnulib.texi (Function Substitutes): Use new files.
61741         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61742         prior to 1.7.0.
61743         * tests/test-ftello.c (main): Likewise for ftello.
61744         * tests/test-fseeko.sh: New file.
61745         * tests/test-ftello.sh: New file.
61746         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61747         with seekable stdin.
61748         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61749         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61750         (gl_REPLACE_FSEEKO): New macro.
61751         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61752         * modules/fseeko (Files): Distribute fseeko.c.
61753         * modules/ftello (Files): Distribute ftello.c.
61754         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61755         mode.
61756         * lib/ftello.c (rpl_ftello): New file.
61757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61758         fseeko, ftello.
61759         (gl_STDIN_LARGE_OFFSET): New macro.
61760         * modules/stdio (Makefile.am): Perform the replacement.
61761         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61762
61763 2007-05-23  Bruno Haible  <bruno@clisp.org>
61764
61765         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61766         GNULIB_POSIXCHECK is defined.
61767
61768 2007-05-21  Bruno Haible  <bruno@clisp.org>
61769
61770         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61771         Check also the output for NaN arguments. When cross-compiling, guess
61772         no on IRIX.
61773         * lib/vasnprintf.c: Update comments.
61774         * tests/test-vasnprintf-posix.c (strisnan): New function.
61775         (test_function): Use it.
61776         * tests/test-vasprintf-posix.c (strisnan): New function.
61777         (test_function): Use it.
61778         * tests/test-snprintf-posix.h (strisnan): New function.
61779         (test_function): Use it.
61780         * tests/test-sprintf-posix.h (strisnan): New function.
61781         (test_function): Use it.
61782         Reported by Eric Blake.
61783
61784 2007-05-20  Bruno Haible  <bruno@clisp.org>
61785
61786         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61787         numbers that fails on BeOS.
61788         * doc/functions/frexpl.texi: Update.
61789
61790 2007-05-20  Jim Meyering  <jim@meyering.net>
61791
61792         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61793         forced upon us by glibc-2.6.
61794
61795 2007-05-20  Bruno Haible  <bruno@clisp.org>
61796
61797         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61798         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61799         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61800         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61801         NEED_PRINTF_INFINITE.
61802         (is_infinitel): New function.
61803         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61805         gl_PREREQ_VASNPRINTF_INFINITE.
61806         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61807         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61808         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61809         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61810         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61811         gl_PREREQ_VASNPRINTF_INFINITE.
61812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61816         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61818         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61819         * doc/functions/fprintf.texi: Update.
61820         * doc/functions/printf.texi: Update.
61821         * doc/functions/snprintf.texi: Update.
61822         * doc/functions/sprintf.texi: Update.
61823         * doc/functions/vfprintf.texi: Update.
61824         * doc/functions/vprintf.texi: Update.
61825         * doc/functions/vsnprintf.texi: Update.
61826         * doc/functions/vsprintf.texi: Update.
61827
61828 2007-05-20  Bruno Haible  <bruno@clisp.org>
61829
61830         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61831         was not found in libc.
61832         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61833
61834 2007-05-20  Bruno Haible  <bruno@clisp.org>
61835
61836         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61837         printed as "-nan" instead of "nan".
61838         * tests/test-vasprintf-posix.c (test_function): Likewise.
61839         * tests/test-snprintf-posix.h (test_function): Likewise.
61840         * tests/test-sprintf-posix.h (test_function): Likewise.
61841         Needed for HP-UX 11.
61842
61843 2007-05-20  Jim Meyering  <jim@meyering.net>
61844
61845         Fix buggy test for the fchownat-deref bug.
61846         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61847         symlink required for the run-test.  Without it, this test would
61848         always declare that fchownat doesn't work, and client code would
61849         unnecessarily use the replacement function with fixed libc.
61850         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61851         Reported by Greg Schafer.
61852
61853 2007-05-19  Bruno Haible  <bruno@clisp.org>
61854
61855         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61856         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61857         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61858         Needed for IRIX 6.5 and Solaris 2.5.1.
61859
61860 2007-05-19  Bruno Haible  <bruno@clisp.org>
61861
61862         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61863         (test_function): Skip tests involving -0.0 on platforms where
61864         -0.0 = 0.0.
61865         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61866         (test_function): Skip tests involving -0.0 on platforms where
61867         -0.0 = 0.0.
61868         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61869         (test_function): Skip tests involving -0.0 on platforms where
61870         -0.0 = 0.0.
61871         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61872         (test_function): Skip tests involving -0.0 on platforms where
61873         -0.0 = 0.0.
61874         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61875         tests.
61876         * tests/test-printf-posix.h (test_function): Likewise.
61877         * tests/test-printf-posix.output: Remove all -0.0 related results.
61878         Needed for IRIX 6.5.
61879
61880 2007-05-19  Bruno Haible  <bruno@clisp.org>
61881
61882         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61883         printed as "nan0x7fffffff" instead of "nan".
61884         * tests/test-vasprintf-posix.c (test_function): Likewise.
61885         * tests/test-snprintf-posix.h (test_function): Likewise.
61886         * tests/test-sprintf-posix.h (test_function): Likewise.
61887         * tests/test-fprintf-posix.h (NaN): Remove macro.
61888         (test_function): Remove all NaN related tests.
61889         * tests/test-printf-posix.h (NaN): Remove macro.
61890         (test_function): Remove all NaN related tests.
61891         * tests/test-printf-posix.output: Remove all NaN related results.
61892         Needed for IRIX 6.5.
61893
61894 2007-05-19  Bruno Haible  <bruno@clisp.org>
61895
61896         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61897         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61898
61899 2007-05-19  Bruno Haible  <bruno@clisp.org>
61900
61901         * lib/float_.h: New file.
61902         * m4/float_h.m4: New file.
61903         * modules/float: New file.
61904         * modules/isnanl (Dependencies): Add float.
61905         * modules/isnanl-nolibm (Dependencies): Likewise.
61906         * modules/mathl (Dependencies): Likewise.
61907         * modules/printf-frexpl (Dependencies): Likewise.
61908         * modules/signbit (Dependencies): Likewise.
61909         * modules/vasnprintf (Dependencies): Likewise.
61910         * doc/headers/float.texi: Update.
61911
61912 2007-05-19  Jim Meyering  <jim@meyering.net>
61913
61914         * lib/utimens.c (gl_futimens): Rename from futimens,
61915         now that glibc-2.6 declares futimens.
61916         * lib/utimens.h: Likewise.
61917
61918 2007-05-19  Bruno Haible  <bruno@clisp.org>
61919
61920         Avoid test failures on mingw.
61921         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61922         * tests/test-printf-posix.sh: Likewise.
61923         * tests/test-vfprintf-posix.sh: Likewise.
61924         * tests/test-vprintf-posix.sh: Likewise.
61925
61926 2007-05-19  Bruno Haible  <bruno@clisp.org>
61927
61928         Fix *printf result for NaN, Inf, -0.0 on mingw.
61929         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61930         * lib/vasnprintf.c: Include math.h and isnan.h.
61931         (is_infinite_or_zero): New function.
61932         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61933         values in the %f, %F, %e, %E, %g, %G directives.
61934         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61935         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61936         gl_PRINTF_INFINITE and test its result. Invoke
61937         gl_PREREQ_VASNPRINTF_INFINITE.
61938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61945         * doc/functions/fprintf.texi: Update.
61946         * doc/functions/printf.texi: Update.
61947         * doc/functions/snprintf.texi: Update.
61948         * doc/functions/sprintf.texi: Update.
61949         * doc/functions/vfprintf.texi: Update.
61950         * doc/functions/vprintf.texi: Update.
61951         * doc/functions/vsnprintf.texi: Update.
61952         * doc/functions/vsprintf.texi: Update.
61953
61954 2007-05-19  Bruno Haible  <bruno@clisp.org>
61955
61956         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61957         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61958         Instead of multiplying with 10^k, set extra_zeroes to k.
61959         (scale10_round_long_double): Remove function.
61960
61961 2007-05-18  Bruno Haible  <bruno@clisp.org>
61962
61963         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61964         introduced on 2007-05-06.
61965
61966 2007-05-18  Bruno Haible  <bruno@clisp.org>
61967
61968         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61969         %g directives.
61970         * tests/test-vasprintf-posix.c (test_function): Likewise.
61971         * tests/test-snprintf-posix.h (test_function): Likewise.
61972         * tests/test-sprintf-posix.h (test_function): Likewise.
61973
61974 2007-05-18  Bruno Haible  <bruno@clisp.org>
61975
61976         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61977         (strmatch): New function.
61978         (test_function): Test the %f directive on numbers of various exponents.
61979         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61980         (strmatch): New function.
61981         (test_function): Test the %f directive on numbers of various exponents.
61982         * tests/test-snprintf-posix.h (strmatch): New function.
61983         (test_function): Test the %f directive on numbers of various exponents.
61984         * tests/test-sprintf-posix.h (strmatch): New function.
61985         (test_function): Test the %f directive on numbers of various exponents.
61986         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61987         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61988         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61989         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61990
61991 2007-05-18  Bruno Haible  <bruno@clisp.org>
61992
61993         Add support for 'long double' number output.
61994         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61995         * lib/vasnprintf.c: Include math.h and float+.h.
61996         (mp_limb_t): New type.
61997         (GMP_LIMB_BITS): New macro.
61998         (mp_twolimb_t): New type.
61999         (GMP_TWOLIMB_BITS): New macro.
62000         (mpn_t): New type.
62001         (multiply, divide, convert_to_decimal, decode_long_double,
62002         scale10_round_long_double, scale10_round_decimal_long_double,
62003         floorlog10l): New functions.
62004         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
62005         for the %f, %F, %e, %E, %g, %G directives.
62006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
62007         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62008         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
62009         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
62010         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62011         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62012         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62013         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62014         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62015         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62016         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62017         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
62018         * modules/snprintf-posix (Depends-on): Likewise.
62019         * modules/sprintf-posix (Depends-on): Likewise.
62020         * modules/vasnprintf-posix (Depends-on): Likewise.
62021         * modules/vasprintf-posix (Depends-on): Likewise.
62022         * modules/vfprintf-posix (Depends-on): Likewise.
62023         * modules/vsnprintf-posix (Depends-on): Likewise.
62024         * modules/vsprintf-posix (Depends-on): Likewise.
62025         * modules/vasnprintf (Files): Add lib/float+.h.
62026         * doc/functions/fprintf.texi: Update.
62027         * doc/functions/printf.texi: Update.
62028         * doc/functions/snprintf.texi: Update.
62029         * doc/functions/sprintf.texi: Update.
62030         * doc/functions/vfprintf.texi: Update.
62031         * doc/functions/vprintf.texi: Update.
62032         * doc/functions/vsnprintf.texi: Update.
62033         * doc/functions/vsprintf.texi: Update.
62034
62035 2007-05-18  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
62038
62039 2007-05-18  Bruno Haible  <bruno@clisp.org>
62040
62041         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
62042         for printing 64-bit integers. Needed for mingw.
62043
62044 2007-05-18  Bruno Haible  <bruno@clisp.org>
62045
62046         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62047         gl_FUNC_FREXPL_WORKS.
62048         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
62049
62050 2007-05-18  Bruno Haible  <bruno@clisp.org>
62051
62052         * modules/frexpl-nolibm-tests: New file.
62053
62054         * modules/frexpl-nolibm: New file.
62055         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
62056
62057 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
62058
62059         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
62060         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62061         GCC 4.2, which otherwise issues a lot of warnings.
62062         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
62063         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
62064         Likewise.
62065         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
62066         * modules/iconv_open (iconv.h): Likewise.
62067         * modules/locale (locale.h): Likewise.
62068         * modules/netinet_in (netinet/in.h): Likewise.
62069         * modules/sys_select (sys_select.h): Likewise.
62070         * modules/sys_socket (sys/socket.h): Likewise.
62071         * modules/sys_stat (sys/stat.h): Likewise.
62072         * modules/sysexits (sysexits.h): Likewise.
62073         * modules/unistd (unistd.h): Likewise.
62074
62075 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62076
62077         * modules/closein-tests (Makefile.am): Distribute
62078         `test-closein.sh'.
62079
62080 2007-05-17  Bruno Haible  <bruno@clisp.org>
62081
62082         * tests/test-printf-posix.output: Renamed from
62083         tests/test-fprintf-posix.out.
62084         * modules/fprintf-posix-tests: Update.
62085         * modules/printf-posix-tests: Update.
62086         * modules/vfprintf-posix-tests: Update.
62087         * modules/vprintf-posix-tests: Update.
62088         * tests/test-fprintf-posix.sh: Update.
62089         * tests/test-printf-posix.sh: Update.
62090         * tests/test-vfprintf-posix.sh: Update.
62091         * tests/test-vprintf-posix.sh: Update.
62092         Reported by Ralf Wildenhues.
62093
62094 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
62095
62096         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
62097         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
62098         GCC 4.2, which otherwise issues a lot of warnings.
62099         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
62100         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
62101         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
62102         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
62103         it should no longer be needed.
62104         * lib/string_.h: Likewise.
62105         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
62106         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
62107         * modules/inttypes (inttypes.h): Likewise.
62108         * modules/math (math.h): Likewise.
62109         * modules/search (search.h): Likewise.
62110         * modules/signal (signal.h): Likewise.
62111         * modules/stdint (stdint.h): Likewise.
62112         * modules/stdio (stdio.h): Likewise.
62113         * modules/stdlib (stdlib.h): Likewise.
62114         * modules/string (string.h): Likewise.
62115         * modules/sys_time (sys/time.h): Likewise.
62116         * modules/time (time.h): Likewise.
62117         * modules/wchar (wchar.h): Likewise.
62118         * modules/wctype (wtype.h): Likewise.
62119
62120 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62121
62122         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
62123
62124 2007-05-13  Bruno Haible  <bruno@clisp.org>
62125
62126         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
62127         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62128         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
62129         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
62130         (gl_PREREQ_STRTOK_R): Don't require it here.
62131
62132 2007-05-13  Bruno Haible  <bruno@clisp.org>
62133
62134         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
62135         when used in C++ mode.
62136
62137 2007-05-12  Bruno Haible  <bruno@clisp.org>
62138
62139         * lib/linebuffer.h: Tweak doc.
62140         * lib/linebuffer.c: Likewise.
62141
62142 2007-05-12  James Youngman  <jay@gnu.org>
62143
62144         * lib/linebuffer.c (readlinebuffer_delim): New function,
62145         like readlinebuffer, but use a caller-specified delimiter.
62146         (readlinebuffer): Just call readlinebuffer_delim with '\n'
62147         as the delimiter.
62148         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
62149
62150 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62151
62152         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
62153         * modules/openat (Files): Remove openat-die.c.
62154         (Depends-on): Add openat-die.
62155         * modules/openat-die: New module.
62156
62157 2007-05-06  Bruno Haible  <bruno@clisp.org>
62158
62159         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
62160         Update with info about Cygwin.
62161         * doc/functions/fprintf.texi: Update.
62162         * doc/functions/printf.texi: Update.
62163         * doc/functions/snprintf.texi: Update.
62164         * doc/functions/sprintf.texi: Update.
62165         * doc/functions/vfprintf.texi: Update.
62166         * doc/functions/vprintf.texi: Update.
62167         * doc/functions/vsnprintf.texi: Update.
62168         * doc/functions/vsprintf.texi: Update.
62169         Reported by Eric Blake.
62170
62171 2007-05-06  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62174         padding ourselves for the floating-point directives.
62175         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62176         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62177         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62178         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62179         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62181         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62182         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62183         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62184         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62186         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62187         * tests/test-snprintf-posix.h (test_function): Also check the width
62188         and some flags in the %f directive.
62189         * tests/test-sprintf-posix.h (test_function): Likewise.
62190         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62191         * tests/test-vasprintf-posix.c (test_function): Likewise.
62192         * doc/functions/fprintf.texi: Update.
62193         * doc/functions/printf.texi: Update.
62194         * doc/functions/snprintf.texi: Update.
62195         * doc/functions/sprintf.texi: Update.
62196         * doc/functions/vfprintf.texi: Update.
62197         * doc/functions/vprintf.texi: Update.
62198         * doc/functions/vsnprintf.texi: Update.
62199         * doc/functions/vsprintf.texi: Update.
62200
62201 2007-05-06  Bruno Haible  <bruno@clisp.org>
62202
62203         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62204         pass the ' flag character to sprintf or snprintf.
62205         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62206         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62208         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62209         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62210         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62217         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62218         flag.
62219         * tests/test-sprintf-posix.h (test_function): Likewise.
62220         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62221         * tests/test-vasprintf-posix.c (test_function): Likewise.
62222         * doc/functions/fprintf.texi: Update.
62223         * doc/functions/printf.texi: Update.
62224         * doc/functions/snprintf.texi: Update.
62225         * doc/functions/sprintf.texi: Update.
62226         * doc/functions/vfprintf.texi: Update.
62227         * doc/functions/vprintf.texi: Update.
62228         * doc/functions/vsnprintf.texi: Update.
62229         * doc/functions/vsprintf.texi: Update.
62230
62231 2007-05-01  Bruno Haible  <bruno@clisp.org>
62232
62233         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62234
62235 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62236
62237         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62238         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62239
62240 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62241
62242         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62243         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62244         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62245
62246 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62247
62248         * lib/argp-help.c (struct hol_entry): New member `ord'.
62249         (HOL_ENTRY_PTRCMP): Use ord for comparison
62250         (hol_sort): Initialize ord.
62251
62252 2007-05-01  Bruno Haible  <bruno@clisp.org>
62253
62254         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62255         Reported by Eric Blake.
62256         * doc/gnulib.texi (Function Substitutes): Update.
62257
62258 2007-05-01  Bruno Haible  <bruno@clisp.org>
62259
62260         * doc/functions.texi: Remove file, now redundant through
62261         doc/functions/*.texi.
62262
62263 2007-05-01  Bruno Haible  <bruno@clisp.org>
62264
62265         * modules/argp (Depends-on): Add sleep.
62266
62267 2007-05-01  Bruno Haible  <bruno@clisp.org>
62268
62269         * modules/sleep-tests: New file.
62270         * tests/test-sleep.c: New file.
62271
62272         * modules/sleep: New file.
62273         * lib/sleep.c: New file.
62274         * m4/sleep.m4: New file.
62275         * lib/unistd_.h (sleep): New declaration.
62276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62277         HAVE_SLEEP.
62278         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62279         * doc/functions/sleep.texi: Document the sleep module.
62280
62281 2007-05-01  Bruno Haible  <bruno@clisp.org>
62282
62283         * lib/sigprocmask.h: Remove file.
62284         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62285         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62286         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62287         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62288         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62289         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62290         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62291         HAVE_SIGSET_T as a shell variable.
62292         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62293         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62294         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62295         (Depends-on): Add signal. Remove verify.
62296         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62297         (Include): Mention <signal.h> instead of sigprocmask.h.
62298         * NEWS: Mention the change.
62299         * lib/fatal-signal.c: Don't include sigprocmask.h.
62300
62301 2007-05-01  Bruno Haible  <bruno@clisp.org>
62302
62303         * modules/signal: New file.
62304         * lib/signal_.h: New file.
62305         * m4/signal_h.m4: New file.
62306
62307 2007-05-01  Bruno Haible  <bruno@clisp.org>
62308
62309         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62310         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62311         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62312         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62313
62314 2007-05-01  Bruno Haible  <bruno@clisp.org>
62315
62316         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62317         configure time.
62318         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62319         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62320         * modules/sys_stat (Makefile.am): Substitute their values into
62321         sys/stat.h.
62322
62323 2007-05-01  Bruno Haible  <bruno@clisp.org>
62324
62325         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62326         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62327         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62328
62329 2007-05-01  Bruno Haible  <bruno@clisp.org>
62330
62331         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62332         'assert' module here.
62333
62334 2007-05-01  Bruno Haible  <bruno@clisp.org>
62335
62336         * doc/functions/*.texi: New files.
62337         * doc/functions/google-ranking.txt: New file.
62338         * doc/gnulib.texi (Function Substitutes): New chapter.
62339         (ctime, inet_ntoa): Remove sections.
62340         * doc/ctime.texi: Remove file.
62341         * doc/inet_ntoa.texi: Remove file.
62342         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62343         dependencies.
62344         (%.info): New rule, specifying a --reference-limit.
62345
62346 2007-05-01  Bruno Haible  <bruno@clisp.org>
62347
62348         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62349
62350 2007-05-01  Bruno Haible  <bruno@clisp.org>
62351
62352         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62353         the portability of 'mkdir' to mingw systems.
62354
62355 2007-05-01  Bruno Haible  <bruno@clisp.org>
62356
62357         * doc/headers/google-ranking.txt: New file.
62358
62359 2007-04-30  Eric Blake  <ebb9@byu.net>
62360
62361         Prefer fseeko to fseek.
62362         * modules/getpass (Depends-on): Add fseeko.
62363         * lib/getpass.c (getpass): Use fseeko, not fseek.
62364
62365 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62366
62367         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62368         assumes the sorting is stable, while most qsort implementations
62369         are not.  Use argument addresses to ensure they never compare as
62370         equal.
62371
62372         * tests/test-argp-2.sh (usage-indent test): Fix output
62373         (func_compare): Restore diff options
62374         * tests/test-argp.c: Restore #include "progname.h"
62375
62376 2007-04-29  Bruno Haible  <bruno@clisp.org>
62377
62378         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62379         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62380         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62382         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62383         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62384         (TESTS, check_PROGRAMS): Add test-snprintf.
62385         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62386         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62387         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62388         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62389         assertions that fail on HP-UX, OSF/1, or IRIX.
62390         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62391
62392 2007-04-29  Bruno Haible  <bruno@clisp.org>
62393
62394         * MODULES.html.sh (posix_functions): Remove 'contents'.
62395
62396 2007-04-29  Karl Berry  <karl@gnu.org>
62397
62398         * config/srclist.txt (gendocs_template_min): new entry.
62399
62400 2007-04-29  Bruno Haible  <bruno@clisp.org>
62401
62402         Work around fpurge bug on BSD systems.
62403         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62404         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62405         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62406         fpurge to rpl_fpurge if the system already has this function.
62407         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62408         the case where the system already has this function. Correct invariants
62409         on BSD systems.
62410         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62411         BSD systems.
62412
62413 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62414
62415         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62416         proposed by Sven Verdoolaege.
62417
62418         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62419         options.
62420         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62421         (usage and help tests): Update
62422
62423 2007-04-29  Bruno Haible  <bruno@clisp.org>
62424
62425         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62426         Print more information in case of failure. Disable a test on BeOS.
62427
62428 2007-04-29  Bruno Haible  <bruno@clisp.org>
62429
62430         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62431         This helps debugging on systems on which no gdb is available.
62432
62433 2007-04-29  Bruno Haible  <bruno@clisp.org>
62434
62435         * lib/freading.h: Improve comments.
62436         * lib/fwriting.h: Likewise.
62437         * tests/test-freading.c (main): Don't check freading immediately after
62438         repositioning. Needed for glibc.
62439
62440 2007-04-29  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/freading.c (freading): Trivial simplification.
62443
62444 2007-04-28  Bruno Haible  <bruno@clisp.org>
62445
62446         * tests/test-fwriting.c (main): Also test the interaction between
62447         fflush and fwriting.
62448         * modules/fwriting-tests (Depends-on): Add fflush.
62449
62450         * tests/test-freading.c (main): Also test the interaction between
62451         fflush and freading.
62452         * modules/freading-tests (Depends-on): Add fflush.
62453
62454 2007-04-28  Bruno Haible  <bruno@clisp.org>
62455
62456         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62457         fseeko and ftello.
62458         Suggested by Eric Blake.
62459
62460 2007-04-28  Jim Meyering  <jim@meyering.net>
62461
62462         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62463         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62464         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62465
62466 2007-04-27  Eric Blake  <ebb9@byu.net>
62467
62468         * doc/headers/assert.texi (assert.h): Document assert module use.
62469
62470 2007-04-27  Bruno Haible  <bruno@clisp.org>
62471
62472         * doc/headers/*.texi: New files.
62473         * doc/gnulib.texi (Header File Substitutes): New chapter.
62474         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62475         dependencies.
62476         (standards.info ,standards.html, standards.dvi): Update dependencies.
62477         (mostlyclean, clean): New targets.
62478
62479 2007-04-27  Bruno Haible  <bruno@clisp.org>
62480
62481         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62482         * modules/sysexits (Files, Makefile.am): Update.
62483
62484         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62485         * modules/sys_socket (Files, Makefile.am): Update.
62486
62487         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62488         * modules/sys_stat (Files, Makefile.am): Update.
62489
62490 2007-04-27  Eric Blake  <ebb9@byu.net>
62491
62492         * lib/freading.h: Improve comments.
62493         * lib/fwriting.h: Likewise.
62494         * lib/fflush.c: Likewise.
62495
62496         Fix closein for mingw.
62497         * modules/closein-tests: Add tests for closein.
62498         * tests/test-closein.c: New file.
62499         * tests/test-closein.sh: Likewise.
62500         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62501         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62502
62503 2007-04-27  Bruno Haible  <bruno@clisp.org>
62504
62505         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62506         version is < 6.
62507         * lib/math_.h [__DECC]: Likewise.
62508         * lib/stdio_.h [__DECC]: Likewise.
62509         * lib/stdlib_.h [__DECC]: Likewise.
62510         * lib/string_.h [__DECC]: Likewise.
62511         * lib/time_.h [__DECC]: Likewise.
62512         * lib/wchar_.h [__DECC]: Likewise.
62513         * lib/wctype_.h [__DECC]: Likewise.
62514
62515 2007-04-27  Bruno Haible  <bruno@clisp.org>
62516
62517         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62518
62519 2007-04-27  Bruno Haible  <bruno@clisp.org>
62520
62521         * lib/fflush.c: Add comments.
62522         * modules/fpurge-tests (Depends-on): Add fflush.
62523         * modules/freadable-tests (Depends-on): Likewise.
62524         * modules/fwritable-tests (Depends-on): Likewise.
62525
62526 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62527
62528         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62529         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62530         Report by Bruno Haible <bruno@clisp.org>.
62531
62532 2007-04-26  Eric Blake  <ebb9@byu.net>
62533
62534         Fix fflush on mingw.
62535         * modules/fflush (Depends-on): Add freading.
62536         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62537         but unread data.
62538
62539 2007-04-26  Eric Blake  <ebb9@byu.net>
62540         and Bruno Haible  <bruno@clisp.org>
62541
62542         Implement freading and fwriting.
62543         * lib/freading.c: New file.
62544         * lib/freading.h: Likewise.
62545         * m4/freading.m4: Likewise.
62546         * modules/freading: Likewise.
62547         * modules/freading-tests: Likewise.
62548         * tests/test-freading.c: Likewise.
62549         * lib/fwriting.c: New file.
62550         * lib/fwriting.h: Likewise.
62551         * m4/fwriting.m4: Likewise.
62552         * modules/fwriting: Likewise.
62553         * modules/fwriting-tests: Likewise.
62554         * tests/test-fwriting.c: Likewise.
62555         * MODULES.html.sh (File stream based Input/Output): Mention them.
62556
62557 2007-04-26  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62560         'long' when we assume it.
62561         Suggested by Eric Blake.
62562
62563 2007-04-26  Bruno Haible  <bruno@clisp.org>
62564
62565         Ensure fseeko, ftello are declared on glibc systems.
62566         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62567         * modules/fseeko (configure.ac-early): Likewise.
62568         * modules/ftello (configure.ac-early): Likewise.
62569         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62570         AC_FUNC_FSEEKO for this.
62571         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62572         (gl_CHECK_FSEEKO): Remove macro.
62573
62574 2007-04-26  Bruno Haible  <bruno@clisp.org>
62575
62576         * tests/test-fflush.c (main): Also check the ftell result after
62577         fflush and fseek/fseeko.
62578         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62579         file descriptor position cache in the stream.
62580         * lib/fseeko.c (rpl_fseeko): Likewise.
62581
62582 2007-04-26  Bruno Haible  <bruno@clisp.org>
62583
62584         * modules/fflush-tests (Depends-on): Add fseeko.
62585
62586 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62587             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62588
62589         * lib/argz_.h: ensure error_t definition is obtained in same
62590         mechanism system argz.h would have.
62591         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62592         argz facilities are known bad.  Err on the side of caution if
62593         cross-compiling.
62594
62595 2007-04-25  Eric Blake  <ebb9@byu.net>
62596
62597         * lib/fpurge.c (includes): Use stdlib.h for free.
62598         * tests/test-fflush.c (main): Also test fflush-fseeko.
62599
62600 2007-04-25  Bruno Haible  <bruno@clisp.org>
62601
62602         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62603         * lib/fseeko.c: New file.
62604         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62605         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62606         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62607         gl_FUNC_FSEEKO.
62608         (gl_FUNC_FSEEKO): Invoke it.
62609         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62610         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62611         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62612
62613 2007-04-25  Bruno Haible  <bruno@clisp.org>
62614
62615         * modules/fflush (Depends-on): Add ftello.
62616
62617 2007-04-25  Bruno Haible  <bruno@clisp.org>
62618
62619         * modules/ftello-tests: New file.
62620         * tests/test-ftello.c: New file.
62621
62622         * modules/ftello: New file.
62623         * m4/ftello.m4: New file.
62624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62625         HAVE_FTELLO.
62626         * lib/stdio_.h (ftello): New declaration.
62627         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62628         HAVE_FTELLO.
62629
62630 2007-04-25  Bruno Haible  <bruno@clisp.org>
62631
62632         * modules/fseeko-tests: New file.
62633         * tests/test-fseeko.c: New file.
62634
62635         * modules/fseeko: New file.
62636         * m4/fseeko.m4: New file.
62637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62638         HAVE_FSEEKO.
62639         * lib/stdio_.h (fseeko): New declaration.
62640         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62641         HAVE_FSEEKO.
62642
62643 2007-04-25  Bruno Haible  <bruno@clisp.org>
62644
62645         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62646
62647 2007-04-25  Bruno Haible  <bruno@clisp.org>
62648
62649         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62650         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62651         * tests/test-unistd.c: Likewise.
62652         * tests/test-fcntl.c: Likewise.
62653
62654 2007-04-23  Eric Blake  <ebb9@byu.net>
62655
62656         * lib/fflush.c: Fix missing include.
62657         Reported by Bruno Haible.
62658
62659 2007-04-23  Bruno Haible  <bruno@clisp.org>
62660
62661         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62662         Reported by Eric Blake.
62663
62664 2007-04-23  Bruno Haible  <bruno@clisp.org>
62665
62666         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62667
62668 2007-04-23  Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62671
62672 2007-04-23  Bruno Haible  <bruno@clisp.org>
62673
62674         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62675         Needed on HP-UX 11.
62676
62677 2007-04-16  Eric Blake  <ebb9@byu.net>
62678
62679         Make fflush rely on fpurge.
62680         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62681         open coding all variants.
62682         * modules/fflush (Depends-on): Add fpurge and unistd.
62683         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62684         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62685
62686         Fix --with-tests compilation on cygwin.
62687         * modules/argmatch-tests (Makefile.am): List gnulib library first
62688         in LDADD.
62689         * modules/argp-tests (Makefile.am): Likewise.
62690         * modules/array-list-tests (Makefile.am): Likewise.
62691         * modules/array-oset-tests (Makefile.am): Likewise.
62692         * modules/avltree-list-tests (Makefile.am): Likewise.
62693         * modules/avltree-oset-tests (Makefile.am): Likewise.
62694         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62695         * modules/carray-list-tests (Makefile.am): Likewise.
62696         * modules/dirname-tests (Makefile.am): Likewise.
62697         * modules/frexp-tests (Makefile.am): Likewise.
62698         * modules/isnanl-tests (Makefile.am): Likewise.
62699         * modules/linked-list-tests (Makefile.am): Likewise.
62700         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62701         * modules/lock-tests (Makefile.am): Likewise.
62702         * modules/rbtree-list-tests (Makefile.am): Likewise.
62703         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62704         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62705         * modules/tls-tests (Makefile.am): Likewise.
62706         * modules/tsearch-tests (Makefile.am): Likewise.
62707         * modules/xvasprintf-tests (Makefile.am): Likewise.
62708
62709         Fix fpurge for cygwin.
62710         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62711         value.
62712         * modules/fpurge-tests (Depends-on): Clean up trash.
62713
62714 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62715
62716         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62717
62718         * m4/autobuild.m4: Re-indent.
62719
62720 2007-04-13  Bruno Haible  <bruno@clisp.org>
62721
62722         * modules/fpurge-tests: New file.
62723         * tests/test-fpurge.c: New file.
62724
62725         * modules/fpurge: New file.
62726         * lib/fpurge.h: New file.
62727         * lib/fpurge.c: New file.
62728         * m4/fpurge.m4: New file.
62729
62730 2007-04-13  Bruno Haible  <bruno@clisp.org>
62731
62732         * modules/fbufmode-tests: New file.
62733         * tests/test-fbufmode.c: New file.
62734
62735         * modules/fbufmode: New file.
62736         * lib/fbufmode.h: New file.
62737         * lib/fbufmode.c: New file.
62738         * m4/fbufmode.m4: New file.
62739
62740 2007-04-13  Bruno Haible  <bruno@clisp.org>
62741
62742         * modules/fwritable-tests: New file.
62743         * tests/test-fwritable.c: New file.
62744
62745         * modules/fwritable: New file.
62746         * lib/fwritable.h: New file.
62747         * lib/fwritable.c: New file.
62748         * m4/fwritable.m4: New file.
62749
62750 2007-04-13  Bruno Haible  <bruno@clisp.org>
62751
62752         * modules/freadable-tests: New file.
62753         * tests/test-freadable.c: New file.
62754
62755         * modules/freadable: New file.
62756         * lib/freadable.h: New file.
62757         * lib/freadable.c: New file.
62758         * m4/freadable.m4: New file.
62759
62760 2007-04-13  Bruno Haible  <bruno@clisp.org>
62761
62762         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62763         MOSTLYCLEANFILES.
62764
62765 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62766
62767         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62768         gzip bootstrap.conf to avoid dragging in i18n machinery.
62769         (gnulib_tool_option): Use it.
62770
62771 2007-04-13  Bruno Haible  <bruno@clisp.org>
62772
62773         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62774         %F directives.
62775         * tests/test-vasprintf-posix.c (test_function): Likewise.
62776         * tests/test-snprintf-posix.h (test_function): Likewise.
62777         * tests/test-sprintf-posix.h (test_function): Likewise.
62778         * tests/test-fprintf-posix.h (test_function): Likewise.
62779         * tests/test-printf-posix.h (test_function): Likewise.
62780         * tests/test-fprintf-posix.out: Likewise.
62781
62782 2007-04-13  Bruno Haible  <bruno@clisp.org>
62783
62784         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62785         * modules/tls-tests (configure.ac): Likewise.
62786         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62787
62788 2007-04-13  Bruno Haible  <bruno@clisp.org>
62789
62790         * lib/tls.c (glthread_tls_get): Fix return type.
62791         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62792
62793 2007-04-12  Eric Blake  <ebb9@byu.net>
62794
62795         * modules/gettime (Depends-on): Remove gettime.
62796         Reported by Dmitry V. Levin.
62797
62798 2007-04-12  Bruno Haible  <bruno@clisp.org>
62799
62800         * modules/fflush (Include): Mention <stdio.h>.
62801         * modules/strtoimax (Include): Mention <inttypes.h>.
62802         * modules/strtoumax (Include): Likewise.
62803
62804 2007-04-12  Eric Blake  <ebb9@byu.net>
62805
62806         * .cvsignore: New file.
62807         * .gitignore: Likewise.
62808
62809 2007-04-12  Bruno Haible  <bruno@clisp.org>
62810
62811         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62812         not before, since $(LDADD) often contains libgnu.a.
62813         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62814         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62815         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62816         Needed on Cygwin.
62817
62818 2007-04-12  Eric Blake  <ebb9@byu.net>
62819
62820         Work around glibc's failure to flush stdin on fclose.
62821         * lib/closein.c (close_stdin): Flush stdin before closing.
62822
62823         Work around glibc's failure to reset seekable stdin on exit.
62824         * modules/closein: New module.
62825         * lib/closein.c: New file.
62826         * lib/closein.h: Likewise.
62827         * m4/closein.m4: Likewise.
62828         * MODULES.html.sh (File stream based Input/Output): Document it.
62829
62830 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62831
62832         * gnulib-tool: Rename generated 'autobuild' script to
62833         'do-autobuild' in --create-megatestdir output.
62834
62835         * doc/gnulib.texi (Build robot for gnulib): Fix.
62836
62837 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62838
62839         * modules/sysexits (Depends-on): Add absolute-header.
62840
62841 2007-04-12  Eric Blake  <ebb9@byu.net>
62842
62843         No need to preserve errno on success.
62844         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62845         Reported by Bruno Haible.
62846
62847 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62848
62849         * MODULES.html.sh (Support for maintaining and releasing
62850         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62851
62852 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62853
62854         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62855
62856 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62857
62858         * modules/autobuild: New module.
62859
62860         * m4/autobuild.m4: New file.
62861
62862 2007-04-11  Bruno Haible  <bruno@clisp.org>
62863
62864         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62865         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62866         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62868         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62869         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62870         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62871         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62872         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62873         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62875         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62876         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62878         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62879         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62880         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62881         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62882         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62883         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62884         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62885         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62886         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62887         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62888         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62890         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62891         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62892         Reported by Eric Blake.
62893
62894 2007-04-11  Bruno Haible  <bruno@clisp.org>
62895
62896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62897
62898 2007-04-10  Bruno Haible  <bruno@clisp.org>
62899
62900         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62901         for NaN and Infinity. Needed on FreeBSD 6.1.
62902         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62903         regarding results for "%010a" of Infinity and NaN.
62904         * tests/test-vasprintf-posix.c (test_function): Likewise.
62905         * tests/test-snprintf-posix.h (test_function): Likewise.
62906         * tests/test-sprintf-posix.h (test_function): Likewise.
62907         * tests/test-fprintf-posix.h (test_function): Likewise.
62908         * tests/test-printf-posix.h (test_function): Likewise.
62909         * tests/test-fprintf-posix.out: Likewise.
62910
62911 2007-04-10  Bruno Haible  <bruno@clisp.org>
62912
62913         * modules/locale-tests: New file.
62914         * tests/test-locale.c: New file.
62915
62916         * modules/locale: New file.
62917         * lib/locale_.h: New file.
62918         * m4/locale_h.m4: New file.
62919
62920 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62921             Bruno Haible  <bruno@clisp.org>
62922
62923         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62924         be determined, test for availability of the copysignf, copysign,
62925         copysignl functions.
62926         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62927         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62928         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62929
62930 2007-04-09  Eric Blake  <ebb9@byu.net>
62931
62932         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62933         * modules/stdio (Makefile.am): Support fflush.
62934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62935         * modules/fflush: New file.
62936         * lib/fflush.c: Likewise.
62937         * m4/fflush.m4: Likewise.
62938         * modules/fflush-tests: New test.
62939         * tests/test-fflush.c: Likewise.
62940         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62941
62942 2007-04-06  Bruno Haible  <bruno@clisp.org>
62943
62944         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62945         (VASNPRINTF): Use signbit for faster determination whether to print a
62946         minus sign.
62947         * modules/vasnprintf (Files): Remove lib/float+.h.
62948         * modules/fprintf-posix (Depends-on): Add signbit.
62949         * modules/snprintf-posix (Depends-on): Likewise.
62950         * modules/sprintf-posix (Depends-on): Likewise.
62951         * modules/vasnprintf-posix (Depends-on): Likewise.
62952         * modules/vasprintf-posix (Depends-on): Likewise.
62953         * modules/vfprintf-posix (Depends-on): Likewise.
62954         * modules/vsnprintf-posix (Depends-on): Likewise.
62955         * modules/vsprintf-posix (Depends-on): Likewise.
62956
62957 2007-04-06  Bruno Haible  <bruno@clisp.org>
62958
62959         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62960         * tests/test-frexpl.c (main): Likewise.
62961         * tests/test-ldexpl.c (main): Likewise.
62962         * modules/frexp-tests (Depends-on): Add signbit.
62963         * modules/frexpl-tests (Depdends-on): Likewise.
62964         * modules/ldexpl-tests (Depdends-on): Likewise.
62965
62966 2007-04-06  Bruno Haible  <bruno@clisp.org>
62967
62968         * modules/signbit-tests: New file.
62969         * tests/test-signbit.c: New file.
62970
62971         * modules/signbit: New file.
62972         * lib/signbitf.c: New file.
62973         * lib/signbitd.c: New file.
62974         * lib/signbitl.c: New file.
62975         * m4/signbit.m4: New file.
62976         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62977         (signbit): New macro.
62978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62979         REPLACE_SIGNBIT.
62980         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62981         REPLACE_FREXPL into math.h.
62982
62983 2007-04-06  Bruno Haible  <bruno@clisp.org>
62984
62985         * modules/isnanf-nolibm-tests: New file.
62986         * tests/test-isnanf.c: New file.
62987
62988         * modules/isnanf-nolibm: New file.
62989         * lib/isnanf.h: New file.
62990         * lib/isnanf.c: New file.
62991         * lib/isnan.c: Consider the USE_FLOAT macro.
62992         * m4/isnanf.m4: New file.
62993
62994 2007-04-06  Bruno Haible  <bruno@clisp.org>
62995
62996         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62997         (Link): New section.
62998
62999         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
63000
63001 2007-04-06  Bruno Haible  <bruno@clisp.org>
63002
63003         Assume the 'long double' type.
63004         * m4/longdouble.m4: Remove file.
63005         * config/srclist.txt: Don't mention longdouble.m4.
63006         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
63007         * lib/float+.h: Likewise.
63008         * lib/frexp.c: Likewise.
63009         * lib/printf-args.h: Likewise.
63010         * lib/printf-args.c: Likewise.
63011         * lib/printf-frexp.c: Likewise.
63012         * lib/printf-parse.c: Likewise.
63013         * lib/vasnprintf.c: Likewise.
63014         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
63015         * m4/intl.m4: Likewise.
63016         * m4/isnanl.m4: Likewise.
63017         * m4/printf.m4: Likewise.
63018         * m4/printf-frexpl.m4: Likewise.
63019         * m4/vasnprintf.m4: Likewise.
63020         * modules/allocsa (Files): Remove m4/longdouble.m4.
63021         * modules/gettext (Files): Likewise.
63022         * modules/relocatable-prog-wrapper (Files): Likewise.
63023         * modules/vasnprintf (Files): Likewise.
63024         * modules/isnanl (Files): Likewise.
63025         (Include): Simplify.
63026         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
63027         (Include): Simplify.
63028         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
63029         (Include): Simplify.
63030         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
63031         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63032         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
63033         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63034         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63035         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63036         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
63037         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63038         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
63039         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63040         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
63041         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
63042         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
63043         * tests/test-isnanl.c: Likewise.
63044         * tests/test-snprintf-posix.h: Likewise.
63045         * tests/test-sprintf-posix.h: Likewise.
63046         * tests/test-vasnprintf-posix.c: Likewise.
63047         * tests/test-vasnprintf-posix2.c: Likewise.
63048         * tests/test-vasprintf-posix.c: Likewise.
63049
63050 2007-04-06  Bruno Haible  <bruno@clisp.org>
63051
63052         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
63053         * lib/math_.h [__DECC]: Include the overridden include file through
63054         #include_next, outside the double-inclusion guard.
63055         * lib/stdio_.h [__DECC]: Likewise.
63056         * lib/stdlib_.h [__DECC]: Likewise.
63057         * lib/string_.h [__DECC]: Likewise.
63058         * lib/time_.h [__DECC]: Likewise.
63059         * lib/wchar_.h [__DECC]: Likewise.
63060         * lib/wctype_.h [__DECC]: Likewise.
63061         * lib/inttypes_.h [__DECC]: Likewise.
63062         Reported by Albert Chin <china@thewrittenword.com> in
63063         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
63064
63065 2007-04-04  Eric Blake  <ebb9@byu.net>
63066
63067         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
63068         1.5.x.
63069
63070 2007-04-04  Bruno Haible  <bruno@clisp.org>
63071
63072         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
63073         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
63074
63075 2007-04-04  Bruno Haible  <bruno@clisp.org>
63076
63077         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
63078         results for "%010a" of Infinity and NaN.
63079         * tests/test-vasprintf-posix.c (test_function): Likewise.
63080         * tests/test-snprintf-posix.h (test_function): Likewise.
63081         * tests/test-sprintf-posix.h (test_function): Likewise.
63082         * tests/test-fprintf-posix.h (test_function): Remove these tests.
63083         * tests/test-printf-posix.h (test_function): Likewise.
63084         * tests/test-fprintf-posix.out: Update.
63085         Needed for FreeBSD 6.1.
63086
63087 2007-04-04  Bruno Haible  <bruno@clisp.org>
63088
63089         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
63090         directly used by the gnulib modules nor by gnulib-tool.
63091
63092 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
63093
63094         * DEPENDENCIES: Give overall description of version dependency
63095         desirability.  Use more-typical names for apps.
63096         Add shell, coreutils, diffutils, grep, tar, gzip.
63097
63098 2007-04-04  Simon Josefsson  <simon@josefsson.org>
63099
63100         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
63101
63102 2007-04-04  Karl Berry  <karl@gnu.org>
63103
63104         * MODULES.html.sh (func_module): missing '.
63105
63106 2007-04-03  Bruno Haible  <bruno@clisp.org>
63107
63108         * modules/argmatch-tests (Makefile.am): New variable
63109         test_argmatch_LDADD.
63110         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
63111         * modules/array-list-tests (Makefile.am): New variable
63112         test_array_list_LDADD.
63113         * modules/array-oset-tests (Makefile.am): New variable
63114         test_array_oset_LDADD.
63115         * modules/avltree-list-tests (Makefile.am): New variable
63116         test_avltree_list_LDADD.
63117         * modules/avltree-oset-tests (Makefile.am): New variable
63118         test_avltree_oset_LDADD.
63119         * modules/avltreehash-list-tests (Makefile.am): New variable
63120         test_avltreehash_list_LDADD.
63121         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
63122         test_canonicalize_lgpl_LDADD.
63123         * modules/carray-list-tests (Makefile.am): New variable
63124         test_carray_list_LDADD.
63125         * modules/dirname-tests (Makefile.am): New variable
63126         test_dirname_LDADD.
63127         * modules/linked-list-tests (Makefile.am): New variable
63128         test_linked_list_LDADD.
63129         * modules/linkedhash-list-tests (Makefile.am): New variable
63130         test_linkedhash_list_LDADD.
63131         * modules/rbtree-list-tests (Makefile.am): New variable
63132         test_rbtree_list_LDADD.
63133         * modules/rbtree-oset-tests (Makefile.am): New variable
63134         test_rbtree_oset_LDADD.
63135         * modules/rbtreehash-list-tests (Makefile.am): New variable
63136         test_rbtreehash_list_LDADD.
63137         * modules/xvasprintf-tests (Makefile.am): New variable
63138         test_xvasprintf_LDADD.
63139         Reported by Eric Blake.
63140
63141 2007-04-03  Eric Blake  <ebb9@byu.net>
63142
63143         * DEPENDENCIES: Weaken m4 requirements.
63144
63145 2007-04-03  Bruno Haible  <bruno@clisp.org>
63146
63147         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
63148         * modules/isnanl-tests (configure.ac): Likewise.
63149
63150 2007-04-03  Ben Pfaff  <blp@gnu.org>
63151
63152         * modules/iconv_open: Add $(srcdir)/ to source directory
63153         references in Makefile fragments that call gperf, to fix VPATH
63154         builds.
63155
63156 2007-04-03  Bruno Haible  <bruno@clisp.org>
63157
63158         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
63159         * lib/ldexpl.c: Undo last change.
63160
63161 2007-04-03  Bruno Haible  <bruno@clisp.org>
63162
63163         * modules/printf-frexpl (Depends-on): Undo last change.
63164         (Files): Add m4/ldexpl.m4.
63165
63166 2007-04-03  Bruno Haible  <bruno@clisp.org>
63167
63168         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63169         * modules/isnanl (Link): New section.
63170
63171         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63172         * modules/frexp (Link): New section.
63173
63174         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63175         * modules/frexpl (Link): New section.
63176
63177         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63178         * modules/ldexpl (Link): New section.
63179
63180 2007-04-03  Bruno Haible  <bruno@clisp.org>
63181
63182         * modules/TEMPLATE-EXTENDED: New file.
63183         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63184
63185 2007-04-03  Bruno Haible  <bruno@clisp.org>
63186
63187         * DEPENDENCIES: New file.
63188         Suggested by Simon Josefsson.
63189
63190 2007-04-03  Bruno Haible  <bruno@clisp.org>
63191
63192         * doc/gnulib.texi: Escape @.
63193
63194 2007-04-03  James Youngman  <jay@gnu.org>
63195         and Paul Eggert  <eggert@cs.ucla.edu>
63196
63197         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63198         birthtime on all systems that have birthtime, not just those which
63199         use st_birthtimensec rather than st_birthtim.  Putting zero in
63200         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63201         that the birth time is not available for files on an NFS mount.
63202
63203 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63204
63205         * modules/memxor: Move back from crypto/, suggested by Bruno.
63206         * modules/crypto/hmac-sha1: Fix memxor dependency.
63207
63208         * modules/crypto/gc: Moved from ../.
63209
63210 2007-04-02  Eric Blake  <ebb9@byu.net>
63211
63212         * lib/ldexpl.c (includes): Avoid libm.
63213
63214         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63215
63216 2007-04-02  Bruno Haible  <bruno@clisp.org>
63217
63218         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63219         on IRIX.
63220
63221 2007-04-02  Bruno Haible  <bruno@clisp.org>
63222
63223         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63224         x86 or x86_64 platforms running MacOS X.
63225         Reported by Ryan Schmidt <@ryandesign.com>.
63226
63227 2007-04-02  Bruno Haible  <bruno@clisp.org>
63228
63229         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63230         i386.
63231
63232 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63233
63234         * modules/crypto/arcfour: Moved from ../.
63235         * modules/crypto/arcfour-tests: Moved from ../.
63236         * modules/crypto/arctwo: Moved from ../.
63237         * modules/crypto/arctwo-tests: Moved from ../.
63238         * modules/crypto/des: Moved from ../.
63239         * modules/crypto/des-tests: Moved from ../.
63240         * modules/crypto/gc-arcfour: Moved from ../.
63241         * modules/crypto/gc-arcfour-tests: Moved from ../.
63242         * modules/crypto/gc-arctwo: Moved from ../.
63243         * modules/crypto/gc-arctwo-tests: Moved from ../.
63244         * modules/crypto/gc-des: Moved from ../.
63245         * modules/crypto/gc-des-tests: Moved from ../.
63246         * modules/crypto/gc-hmac-md5: Moved from ../.
63247         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63248         * modules/crypto/gc-hmac-sha1: Moved from ../.
63249         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63250         * modules/crypto/gc-md2: Moved from ../.
63251         * modules/crypto/gc-md2-tests: Moved from ../.
63252         * modules/crypto/gc-md4: Moved from ../.
63253         * modules/crypto/gc-md4-tests: Moved from ../.
63254         * modules/crypto/gc-md5: Moved from ../.
63255         * modules/crypto/gc-md5-tests: Moved from ../.
63256         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63257         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63258         * modules/crypto/gc-random: Moved from ../.
63259         * modules/crypto/gc-rijndael: Moved from ../.
63260         * modules/crypto/gc-rijndael-tests: Moved from ../.
63261         * modules/crypto/gc-sha1: Moved from ../.
63262         * modules/crypto/gc-sha1-tests: Moved from ../.
63263         * modules/crypto/gc-tests: Moved from ../.
63264         * modules/crypto/hmac-md5: Moved from ../.
63265         * modules/crypto/hmac-md5-tests: Moved from ../.
63266         * modules/crypto/hmac-sha1: Moved from ../.
63267         * modules/crypto/hmac-sha1-tests: Moved from ../.
63268         * modules/crypto/md2: Moved from ../.
63269         * modules/crypto/md2-tests: Moved from ../.
63270         * modules/crypto/md4: Moved from ../.
63271         * modules/crypto/md4-tests: Moved from ../.
63272         * modules/crypto/md5: Moved from ../.
63273         * modules/crypto/md5-tests: Moved from ../.
63274         * modules/crypto/memxor: Moved from ../.
63275         * modules/crypto/rijndael: Moved from ../.
63276         * modules/crypto/rijndael-tests: Moved from ../.
63277         * modules/crypto/sha1: Moved from ../.
63278
63279 2007-03-30  James Youngman  <jay@gnu.org>
63280
63281         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63282         rename() to change the ctime of a file (because ctime is unaffected
63283         by rename on jfs2 on AIX 5.1).
63284         (main): Start by doing cleanup, in case a previous run failed leaving
63285         test files behind.
63286
63287 2007-03-31  Bruno Haible  <bruno@clisp.org>
63288
63289         Support old proprietary implementations of iconv.
63290         * modules/iconv_open: New file.
63291         * lib/iconv_.h: New file.
63292         * m4/iconv_h.m4: New file.
63293         * lib/iconv_open.c: New file.
63294         * lib/iconv_open-aix.gperf: New file.
63295         * lib/iconv_open-hpux.gperf: New file.
63296         * lib/iconv_open-irix.gperf: New file.
63297         * lib/iconv_open-osf.gperf: New file.
63298         * m4/iconv_open.m4: New file.
63299         * modules/linebreak (Depends-on): Add iconv_open.
63300         * modules/striconv (Depends-on): Likewise.
63301         * modules/striconveh (Depends-on): Likewise.
63302         * modules/unicodeio (Depends-on): Likewise.
63303         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63304         (iconv_t)(-1).
63305         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63306         conversion if cd is (iconv_t)(-1).
63307         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63308         is not possible.
63309
63310 2007-03-31  Bruno Haible  <bruno@clisp.org>
63311
63312         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63313         work on Solaris either. Protect also second use of "autodetect_jp".
63314
63315 2007-03-31  Bruno Haible  <bruno@clisp.org>
63316
63317         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63318         the function is not present.
63319
63320 2007-03-31  Bruno Haible  <bruno@clisp.org>
63321
63322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63323         the function is not present.
63324
63325 2007-03-31  Bruno Haible  <bruno@clisp.org>
63326
63327         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63328         a bug in HP-UX iconv_open().
63329
63330 2007-03-31  Bruno Haible  <bruno@clisp.org>
63331
63332         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63333         (Mathematics <math.h>): New section, add fpieee.
63334         (Input/output <stdio.h>): Add fseterr.
63335         (Mathematics <math.h>): New section, add printf-frexp.
63336         (Container data structures): Add sublist.
63337         (Core language properties): Add fpucw, inline.
63338         (Functions for greatest-width integer types <inttypes.h>): Add
63339         imaxabs, imaxdiv, inttypes.
63340         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63341         isnanl-nolibm, ldexp.
63342         (Mathematics <math.h>): New section, add printf-frexpl.
63343         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63344         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63345         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63346         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63347         (Unicode string functions): Add unistr/u*-mbtoucr.
63348         (Java): Add javacomp-script, javaexec-script.
63349         (C#): Add csharpcomp-script, csharpexec-script.
63350         (Support for building libraries and executables): Add havelib,
63351         relocatable-*.
63352         (Support for maintaining and releasing projects): Renamed from
63353         'Support for maintaining and release projects'. Add announce-gen.
63354
63355 2007-03-31  Bruno Haible  <bruno@clisp.org>
63356
63357         * README: Talk primarily about git.
63358         (git and CVS): Renamed from CVS.
63359         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63360         gnulib is available through git.
63361         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63362
63363 2007-03-30  Bruno Haible  <bruno@clisp.org>
63364
63365         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63366         * lib/poll_.h: Likewise.
63367         * lib/stat_.h: Likewise.
63368         * lib/sys_time_.h: Likewise.
63369         * lib/sysexit_.h: Likewise.
63370         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63371         * lib/stdbool_.h: Likewise.
63372         * lib/byteswap_.h: Add double-inclusion guard.
63373
63374 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63375
63376         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63377
63378 2007-03-30  Karl Berry  <karl@gnu.org>
63379
63380         * config/srclist-update: double space after USA in the license
63381         substitution, since that's how it's usually (?) written.
63382
63383 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63384
63385         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63386         reported by Bruno Haible.
63387
63388 2007-03-29  Bruno Haible  <bruno@clisp.org>
63389
63390         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63391         a bug in AIX iconv().
63392
63393 2007-03-29  Bruno Haible  <bruno@clisp.org>
63394
63395         * modules/ldexpl-tests: New file.
63396         * tests/test-ldexpl.c: New file.
63397
63398 2007-03-29  Bruno Haible  <bruno@clisp.org>
63399
63400         * lib/ldexpl.c: Include fpucw.h.
63401         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63402         multiplication.
63403         * modules/ldexpl (Depends-on): Add fpucw.
63404
63405 2007-03-29  Bruno Haible  <bruno@clisp.org>
63406
63407         * modules/ldexpl: New file.
63408         * m4/ldexpl.m4: New file.
63409         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63410         set.
63411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63412         REPLACE_LDEXPL.
63413         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63414         REPLACE_LDEXPL.
63415         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63416         gl_FUNC_LDEXPL_WORKS.
63417         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63418         * modules/mathl (Files): Remove lib/ldexpl.c.
63419         (Depends-on): Add ldexpl.
63420
63421 2007-03-29  Bruno Haible  <bruno@clisp.org>
63422
63423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63424
63425 2007-03-29  Bruno Haible  <bruno@clisp.org>
63426
63427         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63428         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63429         and possibly also HP-UX.
63430         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63431         work on AIX, IRIX, HP-UX, OSF/1.
63432         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63433         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63434         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63435         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63436         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63437         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63438
63439 2007-03-29  Bruno Haible  <bruno@clisp.org>
63440
63441         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63442
63443 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63444
63445         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63446         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63447
63448 2007-03-29  Eric Blake  <ebb9@byu.net>
63449
63450         * lib/acl-internal.h: Remove redundant include.
63451         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63452         Cygwin when a file is locked.
63453
63454 2007-03-29  Bruno Haible  <bruno@clisp.org>
63455
63456         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63457         file.
63458         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63459
63460 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63461
63462         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63463         try to remove a parent directory if the child couldn't be removed
63464         (except for the first rmdir, which could fail because the child
63465         doesn't exist).  Problem reported by Jeff Blaine in
63466         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63467
63468 2007-03-28  Bruno Haible  <bruno@clisp.org>
63469
63470         * lib/striconveh.c (utf8conv_carefully): New function.
63471         (mem_cd_iconveh_internal): Invoke it.
63472
63473 2007-03-28  Bruno Haible  <bruno@clisp.org>
63474
63475         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63476         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63477         input.
63478         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63479         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63480         unistr/u8-uctomb.
63481
63482 2007-03-28  Bruno Haible  <bruno@clisp.org>
63483
63484         * modules/unistr/u8-mbtoucr: New file.
63485         * lib/unistr/u8-mbtoucr.c: New file.
63486         * modules/unistr/u16-mbtoucr: New file.
63487         * lib/unistr/u16-mbtoucr.c: New file.
63488         * modules/unistr/u16-mbtoucr: New file.
63489         * lib/unistr/u16-mbtoucr.c: New file.
63490         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63491
63492 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63493             Bruno Haible  <bruno@clisp.org>
63494
63495         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63496         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63497         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63498
63499         * m4/stdio_h.m4: Add stubs for vasprintf too.
63500
63501         * modules/stdio: Support vasprintf in sed command.
63502
63503         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63504         vasprintf.h.  Add stdio module indicator.
63505
63506         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63507         vasprintf.h.
63508
63509         * lib/vasprintf.h: File removed.
63510
63511         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63512         * lib/vasprintf.c: Ditto.
63513         * lib/xvasprintf.c: Ditto.
63514         * tests/test-vasprintf-posix.c: Ditto.
63515         * tests/test-vasprintf.c: Ditto.
63516
63517 2007-03-27  Bruno Haible  <bruno@clisp.org>
63518
63519         Make vasnprintf multithread-safe.
63520         * lib/vasnprintf.c (decimal_point_char): New function.
63521         (VASNPRINTF): Use it.
63522         Suggested by Simon Josefsson.
63523
63524 2007-03-27  Eric Blake  <ebb9@byu.net>
63525
63526         Support sub-second birthtime on cygwin.
63527         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63528         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63529         (get_stat_birthtime): Also work with st_birthtim.
63530
63531 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63532
63533         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63534         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63535         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63536         (get_stat_birthtime_ns): Simplify compile-time tests.
63537         (get_stat_birthtime): Change the API to look like
63538         get_stat_mtime etc., except return a negative tv_nsec on error.
63539         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63540         Don't check for "spare" fields.
63541         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63542         or for struct stat.st_birthtime, as these tests aren't used.
63543         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63544
63545 2007-03-27  Bruno Haible  <bruno@clisp.org>
63546
63547         * lib/stat-time.h: Include <sys/stat.h>.
63548
63549 2007-03-27  James Youngman  <jay@gnu.org>
63550
63551         * lib/stat-time.h (get_stat_birthtime): New function for
63552           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63553         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63554           and its variants.
63555         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63556         * modules/stat-time-test: New file.
63557         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63558
63559 2007-03-26  Bruno Haible  <bruno@clisp.org>
63560
63561         Better support of signalling NaNs.
63562         * lib/atanl.c: Include isnanl.h.
63563         (atanl): Perform test for NaN at the beginning of the function and
63564         through a call to isnanl.
63565         * lib/cosl.c: Include isnanl.h.
63566         (cosl): Perform test for NaN at the beginning of the function and
63567         through a call to isnanl.
63568         * lib/ldexpl.c: Include isnanl.h.
63569         (ldexpl): Perform test for NaN through a call to isnanl.
63570         * lib/logl.c: Include isnanl.h.
63571         (logl): Perform test for NaN at the beginning of the function and
63572         through a call to isnanl.
63573         * lib/sinl.c: Include isnanl.h.
63574         (sinl): Perform test for NaN at the beginning of the function and
63575         through a call to isnanl.
63576         * lib/sqrtl.c: Include isnanl.h.
63577         (sqrtl): Perform test for NaN at the beginning of the function and
63578         through a call to isnanl.
63579         * lib/tanl.c: Include isnanl.h.
63580         (tanl): Perform test for NaN at the beginning of the function and
63581         through a call to isnanl.
63582         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63583         * modules/mathl (Depends-on): Add isnanl.
63584
63585 2007-03-26  Eric Blake  <ebb9@byu.net>
63586
63587         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63588         regression in logic sense of previous patch.
63589
63590 2007-03-26  Bruno Haible  <bruno@clisp.org>
63591
63592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63593         unportable shell command "if ! ...".
63594         Reported by Ralf Wildenhues.
63595
63596 2007-03-25  Bruno Haible  <bruno@clisp.org>
63597
63598         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63599         <sysexits.h> file, and only add EX_CONFIG.
63600         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63601         absolute file name and whether it is sufficient. Substitute also
63602         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63603         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63604         ABSOLUTE_SYSEXITS_H into sysexits.h.
63605
63606 2007-03-25  Bruno Haible  <bruno@clisp.org>
63607
63608         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63609         hints is NULL.
63610
63611 2007-03-25  Bruno Haible  <bruno@clisp.org>
63612
63613         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63614         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63615
63616 2007-03-25  Bruno Haible  <bruno@clisp.org>
63617
63618         * lib/vasnprintf.c: Include langinfo.h.
63619         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63620         multithread-safe.
63621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63623         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63624         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63625         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63627         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63629         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63630         Reported by Simon Josefsson.
63631
63632 2007-03-25  Bruno Haible  <bruno@clisp.org>
63633
63634         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63635         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63636         * modules/vasnprintf (Depends-on): Add stdint.
63637
63638 2007-03-25  Bruno Haible  <bruno@clisp.org>
63639
63640         * modules/fpieee: New file.
63641         * m4/fpieee.m4: New file.
63642         * modules/isnan-nolibm (Depends-on): Add fpieee.
63643         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63644         * modules/isnanl (Depends-on): Add fpieee.
63645
63646 2007-03-25  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63649
63650 2007-03-25  Bruno Haible  <bruno@clisp.org>
63651
63652         Avoid test failures on IRIX 6.5.
63653         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63654         (main): Use it.
63655         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63656         macros.
63657         (main): Use them.
63658
63659 2007-03-25  Bruno Haible  <bruno@clisp.org>
63660
63661         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63662         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63663         exists but doesn't work.
63664         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63665         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63667         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63668         math.h.
63669
63670 2007-03-25  Bruno Haible  <bruno@clisp.org>
63671
63672         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63673         returns inf. Needed on IRIX 6.5.
63674
63675 2007-03-25  Bruno Haible  <bruno@clisp.org>
63676
63677         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63678         (main): Use isnanl instead of x != x idiom.
63679         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63680
63681         * tests/test-frexp.c: Include isnan.h.
63682         (main): Use isnan instead of x != x idiom.
63683         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63684
63685 2007-03-25  Bruno Haible  <bruno@clisp.org>
63686
63687         * tests/test-frexp.c (NaN): New function/macro.
63688         (main): Use it instead of 0.0 / 0.0.
63689         * tests/test-isnan.c (NaN): New function/macro.
63690         (main): Use it instead of 0.0 / 0.0.
63691         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63692         (test_function): Use it instead of 0.0 / 0.0.
63693         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63694         (test_function): Use it instead of 0.0 / 0.0.
63695         * tests/test-snprintf-posix.h (NaN): New function/macro.
63696         (test_function): Use it instead of 0.0 / 0.0.
63697         * tests/test-sprintf-posix.h (NaN): New function/macro.
63698         (test_function): Use it instead of 0.0 / 0.0.
63699         * tests/test-fprintf-posix.h (NaN): New function/macro.
63700         (test_function): Use it instead of 0.0 / 0.0.
63701         * tests/test-printf-posix.h (NaN): New function/macro.
63702         (test_function): Use it instead of 0.0 / 0.0.
63703
63704         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63705
63706 2007-03-25  Bruno Haible  <bruno@clisp.org>
63707
63708         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63709
63710 2007-03-25  Bruno Haible  <bruno@clisp.org>
63711
63712         * lib/regexec.c (merge_state_with_log): Make static.
63713
63714 2007-03-25  Bruno Haible  <bruno@clisp.org>
63715
63716         * lib/trigl.c (kernel_rem_pio2): Make static.
63717
63718 2007-03-25  Bruno Haible  <bruno@clisp.org>
63719
63720         * lib/sincosl.c (sincosl_table): Make static.
63721
63722 2007-03-25  Bruno Haible  <bruno@clisp.org>
63723
63724         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63725         if the compiler does not support C99.
63726
63727 2007-03-25  Bruno Haible  <bruno@clisp.org>
63728
63729         * modules/time (Makefile.am): Ensure all rule action lines start with a
63730         tab.
63731
63732 2007-03-24  Bruno Haible  <bruno@clisp.org>
63733
63734         * modules/tsearch-tests: New file.
63735         * tests/test-tsearch.sh: New file.
63736         * tests/test-tsearch.c: New file, mostly copied from glibc.
63737
63738         * modules/search-tests: New file.
63739         * tests/test-search.c: New file.
63740
63741         * modules/search: New file.
63742         * lib/search_.h: New file, incorporating lib/tsearch.h.
63743         * m4/search_h.m4: New file.
63744         * lib/tsearch.h: Remove file.
63745         * lib/tsearch.c: Include search.h instead of tsearch.h.
63746         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63747         HAVE_TSEARCH.
63748         * modules/tsearch (Files): Remove lib/tsearch.h.
63749         (Depends-on): Add search.
63750         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63751         (Include): Change tsearch.h into search.h.
63752
63753 2007-03-24  Bruno Haible  <bruno@clisp.org>
63754
63755         * modules/fpucw: New file.
63756         * lib/fpucw.h: New file.
63757         * lib/frexp.c: Include fpucw.h.
63758         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63759         (FUNC): Use them.
63760         * lib/printf-frexp.c: Include fpucw.h.
63761         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63762         (FUNC): Use them.
63763         * lib/vasnprintf.c: Include fpucw.h.
63764         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63765         'long double' calculations.
63766         * tests/test-frexpl.c: Include fpucw.h.
63767         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63768         * tests/test-printf-frexpl.c: Include fpucw.h.
63769         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63770         * modules/frexpl (Depends-on): Add fpucw.
63771         * modules/printf-frexpl (Depends-on): Likewise.
63772         * modules/fprintf-posix (Depends-on): Likewise.
63773         * modules/snprintf-posix (Depends-on): Likewise.
63774         * modules/sprintf-posix (Depends-on): Likewise.
63775         * modules/vasnprintf-posix (Depends-on): Likewise.
63776         * modules/vasprintf-posix (Depends-on): Likewise.
63777         * modules/vfprintf-posix (Depends-on): Likewise.
63778         * modules/vsnprintf-posix (Depends-on): Likewise.
63779         * modules/vsprintf-posix (Depends-on): Likewise.
63780         * modules/frexpl-tests (Depends-on): Likewise.
63781         * modules/printf-frexpl-tests (Depends-on): Likewise.
63782
63783 2007-03-24  Bruno Haible  <bruno@clisp.org>
63784
63785         * lib/float+.h: New file.
63786         * lib/isnan.c: Include float+.h.
63787         (SIZE): New macro.
63788         (FUNC): Compare only SIZE bytes of the value.
63789         * lib/vasnprintf.c: Include float+.h.
63790         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63791         SIZEOF_LDBL or SIZEOF_DBL bytes.
63792         * modules/isnan-nolibm (Files): Add lib/float+.h.
63793         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63794         * modules/isnanl (Files): Add lib/float+.h.
63795         * modules/vasnprintf (Files): Add lib/float+.h.
63796
63797 2007-03-24  Bruno Haible  <bruno@clisp.org>
63798
63799         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63800         include isnanl-nolibm.h.
63801
63802 2007-03-24  Bruno Haible  <bruno@clisp.org>
63803
63804         * tests/test-read-file.c (main): Don't produce spurious output for
63805         expected situations. Make the test fail if it encountered unexpected
63806         results.
63807
63808 2007-03-24  Bruno Haible  <bruno@clisp.org>
63809
63810         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63811         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63812
63813 2007-03-24  Bruno Haible  <bruno@clisp.org>
63814
63815         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63816
63817 2007-03-24  Bruno Haible  <bruno@clisp.org>
63818
63819         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63820         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63821
63822         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63823         * modules/utf8-ucs4: Turn into a symbolic link to module
63824         unistr/u8-mbtouc.
63825
63826         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63827         utf8-ucs4-unsafe.
63828         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63829         unistr/u8-mbtouc-unsafe.
63830
63831         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63832         * modules/utf16-ucs4: Turn into a symbolic link to module
63833         unistr/u16-mbtouc.
63834
63835         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63836         utf16-ucs4-unsafe.
63837         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63838         unistr/u16-mbtouc-unsafe.
63839
63840         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63841         * modules/ucs4-utf8: Turn into a symbolic link to module
63842         unistr/u8-ubtomb.
63843
63844         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63845         * modules/ucs4-utf16: Turn into a symbolic link to module
63846         unistr/u16-ubtomb.
63847
63848 2007-03-24  Bruno Haible  <bruno@clisp.org>
63849
63850         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63851         Enable the function only if HAVE_INLINE.
63852         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63853         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63854         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63855         Enable the function only if HAVE_INLINE.
63856         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63857         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63858         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63859         Enable the function only if HAVE_INLINE.
63860         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63861         Enable the function only if HAVE_INLINE.
63862         * modules/utf8-ucs4: Update.
63863         * modules/utf8-ucs4-unsafe: Update.
63864         * modules/utf16-ucs4: Update.
63865         * modules/utf16-ucs4-unsafe: Update.
63866         * modules/ucs4-utf8: Update.
63867         * modules/ucs4-utf16: Update.
63868
63869 2007-03-24  Bruno Haible  <bruno@clisp.org>
63870
63871         * lib/utf8-ucs4.h: Remove file.
63872         * lib/utf8-ucs4-unsafe.h: Remove file.
63873         * lib/utf16-ucs4.h: Remove file.
63874         * lib/utf16-ucs4-unsafe.h: Remove file.
63875         * lib/ucs4-utf8.h: Remove file.
63876         * lib/ucs4-utf16.h: Remove file.
63877         * lib/unistr.h: Include their previous contents.
63878         * m4/utf-ucs4.m4: Remove file.
63879         * m4/ucs4-utf.m4: Remove file.
63880         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63881         (Depends-on): Add unistr/base.
63882         (configure.ac): Remove gl_UTF_UCS4.
63883         (Makefile.am): Update.
63884         (Include): Change to unistr.h.
63885         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63886         (Depends-on): Add unistr/base.
63887         (configure.ac): Remove gl_UTF_UCS4.
63888         (Makefile.am): Update.
63889         (Include): Change to unistr.h.
63890         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63891         (Depends-on): Add unistr/base.
63892         (configure.ac): Remove gl_UTF_UCS4.
63893         (Makefile.am): Update.
63894         (Include): Change to unistr.h.
63895         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63896         (Depends-on): Add unistr/base.
63897         (configure.ac): Remove gl_UTF_UCS4.
63898         (Makefile.am): Update.
63899         (Include): Change to unistr.h.
63900         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63901         (Depends-on): Add unistr/base.
63902         (configure.ac): Remove gl_UCS4_UTF.
63903         (Makefile.am): Update.
63904         (Include): Change to unistr.h.
63905         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63906         (Depends-on): Add unistr/base.
63907         (configure.ac): Remove gl_UCS4_UTF.
63908         (Makefile.am): Update.
63909         (Include): Change to unistr.h.
63910         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63911         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63912         utf8-ucs4-unsafe.h.
63913         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63914         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63915         utf16-ucs4-unsafe.h.
63916         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63917         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63918         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63919         * lib/unistr/u8-strchr.c: Likewise.
63920         * lib/unistr/u8-strrchr.c: Likewise.
63921         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63922         * lib/unistr/u16-strchr.c: Likewise.
63923         * lib/unistr/u16-strrchr.c: Likewise.
63924         * lib/striconveh.c: Update.
63925         * lib/linebreak.c: Update.
63926
63927 2007-03-24  Bruno Haible  <bruno@clisp.org>
63928
63929         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63930         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63931
63932 2007-03-22  Bruno Haible  <bruno@clisp.org>
63933
63934         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63935
63936 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63937
63938         * MODULES.html.sh (File system functions): New module write-any-file.
63939         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63940         * m4/write-any-file.m4: New files.
63941
63942 2007-03-23  Eric Blake  <ebb9@byu.net>
63943
63944         * gnulib-tool: Rearrange space-tab sequences, since some editors
63945         like to eat them.
63946
63947 2007-03-23  Eric Blake  <ebb9@byu.net>
63948
63949         * lib/version-etc.c (version_etc_va): Update license wording to
63950         be more concise.  Recommended by Richard Stallman.
63951
63952 2007-03-22  Bruno Haible  <bruno@clisp.org>
63953
63954         * lib/poll.c (MSG_PEEK): New fallback definition.
63955
63956 2007-03-22  Bruno Haible  <bruno@clisp.org>
63957
63958         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63959         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63960         (main): Update.
63961         Fixes a compilation error on BeOS.
63962
63963 2007-03-22  Bruno Haible  <bruno@clisp.org>
63964
63965         * modules/frexpl-tests: New file.
63966         * tests/test-frexpl.c: New file.
63967
63968         * modules/frexpl: New file.
63969         * m4/frexpl.m4: New file.
63970         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63971         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63972         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63973         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63974         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63975         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63976
63977 2007-03-22  Bruno Haible  <bruno@clisp.org>
63978
63979         * lib/frexpl.c: Share code with lib/frexp.c.
63980         * modules/mathl (Files): Add lib/frexp.c.
63981         (Depends-on): Add isnanl-nolibm.
63982
63983 2007-03-22  Bruno Haible  <bruno@clisp.org>
63984
63985         * modules/printf-frexp (Files): Add m4/frexp.m4.
63986         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63987         only if the found frexp function actually works.
63988
63989 2007-03-22  Bruno Haible  <bruno@clisp.org>
63990
63991         * lib/frexp.c: Remove older implementation that uses divisions.
63992
63993 2007-03-21  Bruno Haible  <bruno@clisp.org>
63994
63995         * modules/frexp-tests: New file.
63996         * tests/test-frexp.c: New file.
63997
63998         * modules/frexp: New file.
63999         * lib/frexp.c: New file.
64000         * m4/frexp.m4: New file.
64001         * lib/math_.h (frexp): New declaration.
64002         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
64003         REPLACE_FREXP.
64004         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
64005
64006 2007-03-21  Bruno Haible  <bruno@clisp.org>
64007
64008         * modules/isnanl-tests: New file.
64009         * tests/test-isnanl.c: New file.
64010
64011         * modules/isnanl: New file.
64012         * lib/isnanl.h: New file.
64013         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
64014         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
64015         gl_FUNC_ISNANL_WORKS.
64016         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
64017         New macros.
64018
64019 2007-03-21  Bruno Haible  <bruno@clisp.org>
64020
64021         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
64022         lib/isnanl.h.
64023         (Include): Update.
64024         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
64025         * lib/vasnprintf.c: Update.
64026         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
64027         tests/test-isnanl.h, remove tests/test-isnanl.c.
64028         (Makefile.am): Update.
64029         * tests/test-isnanl-nolibm.c: New file.
64030         * tests/test-isnanl.h: New file.
64031         * tests/test-isnanl.c: Remove file.
64032
64033 2007-03-21  Jim Meyering  <jim@meyering.net>
64034
64035         When trying to open ".", treat ESTALE like EACCES.
64036         * lib/savewd.c (savewd_save): Resort to forking not just upon
64037         failure with EACCES, but also when errno is ESTALE.
64038
64039 2007-03-20  Bruno Haible  <bruno@clisp.org>
64040
64041         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
64042         Needed on AIX 5.1. Reported by Matthew Woehlke.
64043
64044 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64045
64046         Suggestions by Bruno Haible:
64047         * lib/acl-internal.h: Include "gettext.h" rather than rolling
64048         our own.
64049         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
64050         * modules/acl (Depends-on): Add gettext.
64051
64052 2007-03-19  Bruno Haible  <bruno@clisp.org>
64053
64054         * modules/iconvme: Remove file.
64055         * lib/iconvme.h: Remove file.
64056         * lib/iconvme.c: Remove file.
64057         * m4/iconvme.m4: Remove file.
64058
64059 2007-03-19  Bruno Haible  <bruno@clisp.org>
64060
64061         * doc/relocatable-maint.texi: Break long shell script line.
64062         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64063
64064 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64065
64066         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
64067         handle file_has_acl.
64068         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
64069         * lib/acl.c: Move header inclusions and related macro defns into
64070         lib/acl-internal.h.
64071         (S_ISLNK): Remove defn, since that's now done for us.
64072         (file_has_acl): Move to lib/file-has-acl.c.
64073         Call acl_trivial if available.  This is the crucial part of the fix.
64074         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
64075         shared within the library.  Rewrite a bit, partly to make it compatible
64076         with the GNU coding style.
64077         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
64078         Remove unnecessary double-quotes.
64079         Don't test for acl_to_text; the build will catch that.
64080         Replace acl_entries if it doesn't exist and it is needed.
64081         Check for -lsec and acl_trivial (as used on Solaris 10).
64082         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
64083         lib/file-has-acl.c.
64084         (Depends-on): Add sys_stat, for S_ISLNK.
64085
64086 2007-03-19  Ben Pfaff  <blp@gnu.org>
64087
64088         * doc/gnulib.texi: Fix typos.
64089         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
64090
64091 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
64092
64093         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
64094         If size is zero here, buf must be zero.
64095
64096 2007-03-19  Simon Josefsson  <simon@josefsson.org>
64097
64098         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
64099         <bruno@clisp.org>.
64100
64101 2007-03-18  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
64104         Suggested by Eric Blake.
64105
64106 2007-03-18  Ben Pfaff  <blp@gnu.org>
64107
64108         * doc/relocatable.texi: Recommend using as prefix a directory
64109         that does not exist and will never be created.  Based on
64110         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
64111         and others.
64112
64113 2007-03-17  Bruno Haible  <bruno@clisp.org>
64114
64115         * lib/fchownat.c: Include lchown.h.
64116
64117 2007-03-17  Bruno Haible  <bruno@clisp.org>
64118
64119         Fix endless loop when the given allocated size was > INT_MAX.
64120         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
64121         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
64122         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
64123         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
64124         * lib/sprintf.c (sprintf): Likewise.
64125
64126 2007-03-17  Bruno Haible  <bruno@clisp.org>
64127
64128         * tests/test-argp-2.sh (func_compare): Output a context diff.
64129
64130 2007-03-17  Bruno Haible  <bruno@clisp.org>
64131
64132         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
64133         locale's decimal-point character.
64134
64135 2007-03-17  Bruno Haible  <bruno@clisp.org>
64136
64137         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
64138         before comparing it. Needed because on some platforms (e.g. x86) a
64139         'long double' occupies less bytes than sizeof (long double).
64140
64141 2007-03-17  Bruno Haible  <bruno@clisp.org>
64142
64143         * tests/test-crc.c (main): Make printf statements 64-bit clean.
64144         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
64145         * tests/test-getaddrinfo.c (simple): Likewise.
64146         * tests/test-read-file.c (main): Likewise.
64147
64148 2007-03-17  Bruno Haible  <bruno@clisp.org>
64149
64150         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
64151
64152 2007-03-17  Bruno Haible  <bruno@clisp.org>
64153
64154         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
64155         unused variable.
64156
64157 2007-03-17  Bruno Haible  <bruno@clisp.org>
64158
64159         * tests/test-c-strcasecmp.c: Include c-strcase.h.
64160         * tests/test-c-strncasecmp.c: Likewise.
64161
64162 2007-03-17  Bruno Haible  <bruno@clisp.org>
64163
64164         * modules/stdlib (Depends-on): Add unistd.
64165         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64166         Needed for MacOS X 10.3.
64167
64168 2007-03-17  Bruno Haible  <bruno@clisp.org>
64169
64170         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64171
64172 2007-03-17  Bruno Haible  <bruno@clisp.org>
64173
64174         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64175
64176 2007-03-17  Bruno Haible  <bruno@clisp.org>
64177
64178         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64179         to reflect files copied from gnulib (with or without modifications).
64180         Suggested by Jim Meyering.
64181
64182 2007-03-17  Eric Blake  <ebb9@byu.net>
64183
64184         * NEWS: Document stdlib change from 2007-02-18.
64185
64186 2007-03-17  Jim Meyering  <jim@meyering.net>
64187
64188         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64189         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64190         someone uses a name containing shell meta-characters.
64191         Reported by Alfred M. Szmidt.
64192
64193         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64194
64195 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64196
64197         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64198         and copy gettext configuration files only if configure.ac contains
64199         a use of AM_GNU_GETTEXT_VERSION.
64200
64201 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64202
64203         * build-aux/bootstrap (gnulib_name): New variable.
64204         (gnulib_tool_options): Use it.
64205
64206 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64207
64208         * tests/test-des.c: Use new namespace.
64209
64210 2007-03-15  Bruno Haible  <bruno@clisp.org>
64211
64212         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64213         Reported by James Youngman <jay@gnu.org>.
64214
64215 2007-03-15  Bruno Haible  <bruno@clisp.org>
64216
64217         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64218         declared prototype. Needed with cc on OSF/1 5.1.
64219
64220 2007-03-15  Bruno Haible  <bruno@clisp.org>
64221
64222         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64223         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64224         (struct gl_list_implementation): Add dispose_fn argument to the
64225         'create_empty', 'create' methods.
64226         (struct gl_list_impl_base): Add field 'dispose_fn'.
64227         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64228         argument.
64229         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64230         dispose_fn argument.
64231         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64232         dispose_fn on the dropped values.
64233         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64234         dispose_fn argument.
64235         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64236         dropped values.
64237         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64238         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64239         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64240         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64241         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64242         argument.
64243         (gl_tree_list_free): Call dispose_fn on the dropped values.
64244         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64245         the dropped values.
64246         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64247         Add dispose_fn argument.
64248         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64249         Call dispose_fn on the dropped values.
64250         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64251         Add dispose_fn argument.
64252         (gl_sublist_create): Initialize the 'dispose_fn' field.
64253         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64254         * tests/test-array_list.c (main): Update.
64255         * tests/test-carray_list.c (main): Update.
64256         * tests/test-avltree_list.c (main): Update.
64257         * tests/test-rbtree_list.c (main): Update.
64258         * tests/test-avltreehash_list.c (main): Update.
64259         * tests/test-rbtreehash_list.c (main): Update.
64260         * tests/test-linked_list.c (main): Update.
64261         * tests/test-linkedhash_list.c (main): Update.
64262         * tests/test-array_oset.c (main): Update.
64263
64264 2007-03-15  Bruno Haible  <bruno@clisp.org>
64265
64266         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64267         (gl_oset_create_empty): Add dispose_fn argument.
64268         (struct gl_oset_implementation): Add dispose_fn argument to
64269         'create_empty' method.
64270         (struct gl_oset_impl_base): Add dispose_fn field.
64271         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64272         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64273         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64274         values.
64275         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64276         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64277         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64278         dropped value.
64279         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64280         dropped value.
64281         * tests/test-array_oset.c (main): Update.
64282         * tests/test-avltree_oset.c (main): Update.
64283         * tests/test-rbtree_oset.c (main): Update.
64284         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64285
64286 2007-03-13  Bruno Haible  <bruno@clisp.org>
64287
64288         * tests/test-stdbool.c (i): Update after last patch.
64289
64290 2007-03-12  Bruno Haible  <bruno@clisp.org>
64291
64292         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64293         the iswprint macro. Needed on Solaris 2.5.1.
64294
64295 2007-03-12  Bruno Haible  <bruno@clisp.org>
64296
64297         * tests/test-printf-frexp.c (main): Declare x as volatile.
64298
64299 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64300
64301         * doc/gnulib.texi (Build robot for gnulib): New section.
64302
64303 2007-03-12  Jim Meyering  <jim@meyering.net>
64304
64305         * build-aux/bootstrap: New file.
64306         * build-aux/bootstrap.conf: New file, from coreutils.
64307
64308 2007-03-11  Bruno Haible  <bruno@clisp.org>
64309
64310         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64311
64312 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64313
64314         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64315         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64316         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64317
64318 2007-03-11  Bruno Haible  <bruno@clisp.org>
64319
64320         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64321         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64322
64323 2007-03-11  Bruno Haible  <bruno@clisp.org>
64324
64325         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64326         formula. Needed for SunPRO C 5.0.
64327
64328 2007-03-11  Bruno Haible  <bruno@clisp.org>
64329
64330         * modules/long-options (Depends-on): Add getopt.
64331
64332 2007-03-11  Bruno Haible  <bruno@clisp.org>
64333
64334         * modules/modechange (Depends-on): Add stdbool.
64335
64336 2007-03-11  Bruno Haible  <bruno@clisp.org>
64337
64338         * modules/i-ring (Depends-on): Add stdbool.
64339
64340 2007-03-11  Bruno Haible  <bruno@clisp.org>
64341
64342         * modules/gc-des (Depends-on): Add stdbool.
64343
64344 2007-03-11  Bruno Haible  <bruno@clisp.org>
64345
64346         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64347
64348 2007-03-11  Bruno Haible  <bruno@clisp.org>
64349
64350         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64351
64352 2007-03-11  Bruno Haible  <bruno@clisp.org>
64353
64354         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64355
64356 2007-03-11  Bruno Haible  <bruno@clisp.org>
64357
64358         * lib/vasnprintf.c (sprintf): Undefine.
64359
64360 2007-03-11  Bruno Haible  <bruno@clisp.org>
64361
64362         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64363         initializers in SunPRO C and Compaq C compilers.
64364
64365 2007-03-11  Bruno Haible  <bruno@clisp.org>
64366
64367         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64368         decrementing code ANSI C compliant.
64369
64370 2007-03-11  Bruno Haible  <bruno@clisp.org>
64371
64372         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64373         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64374
64375 2007-03-11  Bruno Haible  <bruno@clisp.org>
64376
64377         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64378         <stdbool.h> substitute doesn't pass.
64379
64380 2007-03-11  Bruno Haible  <bruno@clisp.org>
64381
64382         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64383
64384 2007-03-11  Bruno Haible  <bruno@clisp.org>
64385
64386         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64387         script, for submission to autobuild.josefsson.org.
64388
64389 2007-03-10  Bruno Haible  <bruno@clisp.org>
64390
64391         * modules/canonicalize-lgpl-tests: New file.
64392         * tests/test-canonicalize-lgpl.sh: New file.
64393         * tests/test-canonicalize-lgpl.c: New file.
64394
64395         * modules/c-strcase-tests: New file.
64396         * tests/test-c-strcase.sh: New file.
64397         * tests/test-c-strcasecmp.c: New file.
64398         * tests/test-c-strncasecmp.c: New file.
64399
64400         * modules/atexit-tests: New file.
64401         * tests/test-atexit.sh: New file.
64402         * tests/test-atexit.c: New file.
64403
64404 2007-03-10  Bruno Haible  <bruno@clisp.org>
64405
64406         * tests/test-binary-io.sh: Use temporary filenames that are not so
64407         likely to clash with those of other tests (in a parallel make).
64408         * tests/test-binary-io.c: Likewise.
64409
64410 2007-03-10  Bruno Haible  <bruno@clisp.org>
64411
64412         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64413         fallback; use #error instead.
64414         Suggested by Simon Josefsson.
64415
64416 2007-03-10  Bruno Haible  <bruno@clisp.org>
64417
64418         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64419         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64420         first and the last.
64421
64422 2007-03-10  Bruno Haible  <bruno@clisp.org>
64423
64424         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64425
64426 2007-03-10  Bruno Haible  <bruno@clisp.org>
64427
64428         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64429         "make distcheck".
64430         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64431         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64432         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64433
64434 2007-03-10  Bruno Haible  <bruno@clisp.org>
64435
64436         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64437         variable.
64438         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64439         variable.
64440
64441 2007-03-09  Eric Blake  <ebb9@byu.net>
64442         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64443
64444         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64445         types are not being provided by gnulib.
64446         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64447         types are supported.
64448
64449 2007-03-10  Bruno Haible  <bruno@clisp.org>
64450
64451         * lib/stdio_.h (__attribute__): New macro.
64452         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64453         vsprintf): Specify __attribute__ __format__ for GCC.
64454         Suggested by Eric Blake.
64455
64456 2007-03-09  Bruno Haible  <bruno@clisp.org>
64457
64458         * modules/printf-posix-tests: New file.
64459         * tests/test-printf-posix.sh: New file.
64460         * tests/test-printf-posix.c: New file.
64461
64462         * modules/printf-posix: New file.
64463         * lib/printf.c: New file.
64464         * m4/printf-posix-rpl.m4: New file.
64465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64466         REPLACE_PRINTF.
64467         * lib/stdio_.h (printf): New declaration.
64468         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64469         ____strfmon____): New macros.
64470         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64471         REPLACE_PRINTF.
64472
64473 2007-03-09  Bruno Haible  <bruno@clisp.org>
64474
64475         * tests/test-vasnprintf-posix2.sh: New file.
64476         * tests/test-vasnprintf-posix2.c: New file.
64477         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64478         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64479         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64480
64481         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64482         a locale dependent decimal point, rather than always '.'.
64483
64484 2007-03-09  Eric Blake  <ebb9@byu.net>
64485
64486         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64487         spite of platforms like Tandem/NSK that define it to -1.
64488
64489 2007-03-08  Bruno Haible  <bruno@clisp.org>
64490
64491         * modules/vprintf-posix-tests: New file.
64492         * tests/test-vprintf-posix.sh: New file.
64493         * tests/test-vprintf-posix.c: New file.
64494         * tests/test-printf-posix.h: New file.
64495
64496         * modules/vprintf-posix: New file.
64497         * lib/vprintf.c: New file.
64498         * m4/vprintf-posix.m4: New file.
64499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64500         REPLACE_VPRINTF.
64501         * lib/stdio_.h (vprintf): New declaration.
64502         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64503         REPLACE_VPRINTF.
64504
64505 2007-03-08  Bruno Haible  <bruno@clisp.org>
64506
64507         * modules/fprintf-posix-tests: New file.
64508         * tests/test-fprintf-posix.sh: New file.
64509         * tests/test-fprintf-posix.c: New file.
64510
64511         * modules/fprintf-posix: New file.
64512         * lib/fprintf.c: New file.
64513         * m4/fprintf-posix.m4: New file.
64514         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64515         REPLACE_FPRINTF.
64516         * lib/stdio_.h (fprintf): New declaration.
64517         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64518         REPLACE_FPRINTF.
64519
64520 2007-03-08  Bruno Haible  <bruno@clisp.org>
64521
64522         * modules/vfprintf-posix-tests: New file.
64523         * tests/test-vfprintf-posix.sh: New file.
64524         * tests/test-vfprintf-posix.c: New file.
64525         * tests/test-fprintf-posix.h: New file.
64526         * tests/test-fprintf-posix.out: New file.
64527
64528         * modules/vfprintf-posix: New file.
64529         * lib/vfprintf.c: New file.
64530         * m4/vfprintf-posix.m4: New file.
64531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64532         REPLACE_VFPRINTF.
64533         * lib/stdio_.h (vfprintf): New declaration.
64534         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64535         REPLACE_VFPRINTF.
64536
64537 2007-03-08  Bruno Haible  <bruno@clisp.org>
64538
64539         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64540
64541 2007-03-08  Bruno Haible  <bruno@clisp.org>
64542
64543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64544         instead of 'expr' invocations.
64545         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64546         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64547         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64550         Suggested by Paul Eggert.
64551
64552 2007-03-08  Bruno Haible  <bruno@clisp.org>
64553
64554         * modules/fseterr-tests: New file.
64555         * tests/test-fseterr.c: New file.
64556
64557         * modules/fseterr: New file.
64558         * lib/fseterr.h: New file.
64559         * lib/fseterr.c: New file.
64560
64561 2007-03-08  Bruno Haible  <bruno@clisp.org>
64562
64563         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64564         * lib/getopt_.h: Likewise.
64565         * lib/mbswidth.h: Likewise.
64566         * lib/setenv.h: Likewise.
64567         * lib/vasnprintf.h: Likewise.
64568         * lib/vasprintf.h: Likewise.
64569         * lib/verror.h: Likewise.
64570         * lib/xsetenv.h: Likewise.
64571         * lib/xvasprintf.h: Likewise.
64572
64573 2007-03-08  Jim Meyering  <jim@meyering.net>
64574
64575         * users.txt: Add parted.
64576
64577         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64578
64579 2007-03-07  Bruno Haible  <bruno@clisp.org>
64580
64581         * m4/printf.m4: Make the shell script snippets copy&pastable.
64582
64583 2007-03-02  Bruno Haible  <bruno@clisp.org>
64584
64585         * lib/netinet_in_.h: New file.
64586         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64587         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64588         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64589         (Depends-on): Add absolute-header.
64590         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64591         into netinet/in.h.
64592
64593 2007-03-03  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/sys_select_.h: New file.
64596         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64597         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64598         * modules/sys_select (Files): Add lib/sys_select_.h.
64599         (Depends-on): Add absolute-header.
64600         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64601         into sys/select.h.
64602
64603 2007-03-02  Bruno Haible  <bruno@clisp.org>
64604
64605         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64606         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64607         values.
64608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64609         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64610         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64611         * modules/sys_socket (Depends-on): Add absolute-header.
64612         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64613         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64614         (Include): Remove requirement of inclusion of <sys/types.h>.
64615
64616 2007-03-02  Bruno Haible  <bruno@clisp.org>
64617
64618         * lib/byteswap_.h (bswap_32): Fix formula.
64619
64620 2007-03-06  Bruno Haible  <bruno@clisp.org>
64621
64622         * modules/sprintf-posix-tests: New file.
64623         * tests/test-sprintf-posix.c: New file.
64624
64625         * modules/sprintf-posix: New file.
64626         * lib/sprintf.c: New file.
64627         * m4/sprintf-posix.m4: New file.
64628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64629         REPLACE_SPRINTF.
64630         * lib/stdio_.h (sprintf): New declaration.
64631         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64632         REPLACE_SPRINTF.
64633
64634 2007-03-06  Bruno Haible  <bruno@clisp.org>
64635
64636         * modules/vsprintf-posix-tests: New file.
64637         * tests/test-vsprintf-posix.c: New file.
64638         * tests/test-sprintf-posix.h: New file.
64639
64640         * modules/vsprintf-posix: New file.
64641         * lib/vsprintf.c: New file.
64642         * m4/vsprintf-posix.m4: New file.
64643         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64644         REPLACE_VSPRINTF.
64645         * lib/stdio_.h (vsprintf): New declaration.
64646         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64647         REPLACE_VSPRINTF.
64648
64649 2007-03-06  Bruno Haible  <bruno@clisp.org>
64650
64651         * modules/vsnprintf (Depend-on): Remove minmax.
64652
64653 2007-03-06  Bruno Haible  <bruno@clisp.org>
64654
64655         * modules/snprintf-posix-tests: New file.
64656         * tests/test-snprintf-posix.c: New file.
64657
64658         * modules/snprintf-posix: New file.
64659         * m4/snprintf-posix.m4: New file.
64660         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64661         gl_FUNC_SNPRINTF.
64662         (gl_FUNC_SNPRINTF): Invoke it.
64663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64664         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64665         is set.
64666         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64667
64668 2007-03-06  Bruno Haible  <bruno@clisp.org>
64669
64670         * modules/vsnprintf-posix-tests: New file.
64671         * tests/test-vsnprintf-posix.c: New file.
64672         * tests/test-snprintf-posix.h: New file.
64673
64674         * modules/vsnprintf-posix: New file.
64675         * m4/vsnprintf-posix.m4: New file.
64676         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64677         gl_FUNC_VSNPRINTF.
64678         (gl_FUNC_VSNPRINTF): Invoke it.
64679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64680         * lib/stdio_.h (vsnprintf): Define as a replacement if
64681         REPLACE_VSNPRINTF is set.
64682         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64683
64684 2007-03-06  Bruno Haible  <bruno@clisp.org>
64685
64686         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64687         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64688
64689 2007-03-06  Bruno Haible  <bruno@clisp.org>
64690
64691         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64692         (asinl): Declare also if HAVE_DECL_ASINL is set.
64693         (atanl): Declare also if HAVE_DECL_ATANL is set.
64694         (ceill): Declare also if HAVE_DECL_CEILL is set.
64695         (cosl): Declare also if HAVE_DECL_COSL is set.
64696         (expl): Declare also if HAVE_DECL_EXPL is set.
64697         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64698         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64699         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64700         (logl): Declare also if HAVE_DECL_LOGL is set.
64701         (sinl): Declare also if HAVE_DECL_SINL is set.
64702         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64703         (tanl): Declare also if HAVE_DECL_TANL is set.
64704         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64706         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64707         declaration of frexpl, ldexpl.
64708         * modules/printf-frexpl (Depends-on): Add math.
64709         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64710
64711 2007-03-05  Bruno Haible  <bruno@clisp.org>
64712
64713         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64714         frexpl and ldexpl are declared.
64715         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64716
64717 2007-03-05  Bruno Haible  <bruno@clisp.org>
64718
64719         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64720         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64721
64722 2007-03-05  Bruno Haible  <bruno@clisp.org>
64723
64724         * lib/stdio_.h: Include <stddef.h>.
64725
64726 2007-03-05  Bruno Haible  <bruno@clisp.org>
64727
64728         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64729
64730 2007-03-05  Bruno Haible  <bruno@clisp.org>
64731
64732         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64733         NetBSD 4, from Ralf Wildenhues.
64734
64735 2007-03-04  Bruno Haible  <bruno@clisp.org>
64736
64737         * lib/vasprintf.h: Update #if logic for the case when the functions
64738         exist but are overridden.
64739
64740 2007-03-04  Bruno Haible  <bruno@clisp.org>
64741
64742         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64743         implementations: glibc-2.4 and MacOS X 10.3.
64744         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64745         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64746         * tests/test-vasprintf-posix.c (test_function): Likewise.
64747
64748 2007-03-04  Bruno Haible  <bruno@clisp.org>
64749
64750         * modules/vasprintf-posix-tests: New file.
64751         * tests/test-vasprintf-posix.c: New file.
64752
64753         * modules/vasprintf-posix: New file.
64754         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64755         defined.
64756         * m4/vasprintf-posix.m4: New file.
64757         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64758         gl_FUNC_VASPRINTF.
64759         (gl_FUNC_VASPRINTF): Invoke it.
64760         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64761         here.
64762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64763
64764 2007-03-04  Bruno Haible  <bruno@clisp.org>
64765
64766         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64767         REPLACE_GETTIMEOFDAY.
64768         * modules/sys_time (Makefile.am): Likewise.
64769         * m4/sys_time_h.m4: Likewise.
64770         * m4/gettimeofday.m4: Likewise.
64771
64772 2007-03-04  Bruno Haible  <bruno@clisp.org>
64773
64774         * modules/vasnprintf-posix-tests: New file.
64775         * tests/test-vasnprintf-posix.c: New file.
64776
64777         * modules/vasnprintf-posix: New file.
64778         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64779         printf-frexpl.h.
64780         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64781         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64782         REPLACE_VASNPRINTF is defined.
64783         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64784         gl_FUNC_VASNPRINTF.
64785         (gl_FUNC_VASNPRINTF): Invoke it.
64786         * m4/vasnprintf-posix.m4: New file.
64787         * m4/printf.m4: New file.
64788
64789 2007-03-04  Bruno Haible  <bruno@clisp.org>
64790
64791         Compile progreloc.c only if --enable-relocatable is specified.
64792         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64793         if --enable-relocatable was specified.
64794         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64795         lib_SOURCES.
64796
64797 2007-03-04  Jim Meyering  <jim@meyering.net>
64798
64799         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64800         Use it consistently, rather than enumerating errno constants.
64801
64802 2007-03-04  Bruno Haible  <bruno@clisp.org>
64803
64804         * modules/xvasprintf-tests: New file.
64805         * tests/test-xvasprintf.c: New file.
64806
64807         * modules/vasprintf-tests: New file.
64808         * tests/test-vasprintf.c: New file.
64809
64810         * modules/vasnprintf-tests: New file.
64811         * tests/test-vasnprintf.c: New file.
64812
64813         * modules/vsnprintf-tests: New file.
64814         * tests/test-vsnprintf.c: New file.
64815
64816         * modules/snprintf-tests: New file.
64817         * tests/test-snprintf.c: New file.
64818
64819 2007-03-04  Bruno Haible  <bruno@clisp.org>
64820
64821         Compile relocatable.c only if --enable-relocatable is specified.
64822         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64823         gl_RELOCATABLE_LIBRARY.
64824         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64825         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64826         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64827         gl_RELOCATABLE_LIBRARY.
64828         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64829         (Makefile.am): Remove lib_SOURCES.
64830         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64831         gl_RELOCATABLE_LIBRARY.
64832         (Makefile.am): Remove lib_SOURCES.
64833         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64834         always.
64835         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64836         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64837
64838 2007-03-04  Bruno Haible  <bruno@clisp.org>
64839
64840         * modules/argmatch-tests: New file.
64841         * tests/test-argmatch.c: New file.
64842
64843         * tests/test-allocsa.c (main): Halve the number of loop runs.
64844
64845         * modules/alloca-opt-tests: New file.
64846         * tests/test-alloca-opt.c: New file.
64847
64848 2007-03-04  Jim Meyering  <jim@meyering.net>
64849
64850         Work around difference between Linux ACLs and Solaris 10 ZFS.
64851         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64852         for EINVAL.
64853
64854 2007-03-03  Bruno Haible  <bruno@clisp.org>
64855
64856         * modules/relocatable-prog (Depends-on): Add back progreloc's
64857         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64858
64859 2007-03-03  Bruno Haible  <bruno@clisp.org>
64860
64861         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64862         * modules/relocatable-lib: New file.
64863
64864 2007-03-03  Bruno Haible  <bruno@clisp.org>
64865
64866         * modules/relocatable-prog: Renamed from modules/relocatable.
64867         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64868
64869 2007-03-03  Bruno Haible  <bruno@clisp.org>
64870
64871         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64872         m4/relocatable-lib.m4.
64873         (Depends-on): Remove 'relocatable'.
64874         (configure.ac): Add gl_RELOCATABLE_NOP.
64875
64876 2007-03-03  Bruno Haible  <bruno@clisp.org>
64877
64878         * modules/relocatable-prog-wrapper: New file.
64879         * modules/relocatable (Depends-on): Add it. Remove all other
64880         dependencies except progname.
64881         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64882
64883         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64884         (gl_FUNC_STRERROR): Nop.
64885         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64886
64887         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64888         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64889
64890         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64891         (gl_FUNC_READLINK): Update.
64892
64893         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64894
64895 2007-03-03  Bruno Haible  <bruno@clisp.org>
64896
64897         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64898         * modules/xreadlink (Depends-on): Add unistd.
64899         * modules/xreadlink-with-size (Depends-on): Likewise.
64900
64901 2007-03-03  Bruno Haible  <bruno@clisp.org>
64902
64903         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64904         extracted from gt_FUNC_SETENV.
64905         (gt_FUNC_SETENV): Remove macro.
64906         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64907         remove gt_FUNC_SETENV.
64908
64909 2007-03-03  Bruno Haible  <bruno@clisp.org>
64910
64911         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64912         ENABLE_RELOCATABLE here.
64913         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64914
64915 2007-03-03  Bruno Haible  <bruno@clisp.org>
64916
64917         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64918         * tests/test-rbtreehash_list.c: Include progname.h.
64919         (main): Call set_program_name.
64920
64921         * modules/rbtree-oset-tests (Depends-on): Add progname.
64922         * tests/test-rbtree_oset.c: Include progname.h.
64923         (main): Call set_program_name.
64924
64925         * modules/rbtree-list-tests (Depends-on): Add progname.
64926         * tests/test-rbtree_list.c: Include progname.h.
64927         (main): Call set_program_name.
64928
64929         * modules/linked-list-tests (Depends-on): Add progname.
64930         * tests/test-linked_list.c: Include progname.h.
64931         (main): Call set_program_name.
64932
64933 2007-03-03  Bruno Haible  <bruno@clisp.org>
64934
64935         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64936         All uses of __restrict changed to _Restrict_.
64937         * lib/glob_.h (__restrict): Remove macro.
64938
64939 2007-03-02  Bruno Haible  <bruno@clisp.org>
64940
64941         * modules/gettext (configure.ac): Require gettext infrastructure
64942         from version 0.16.1.
64943
64944 2007-03-02  Bruno Haible  <bruno@clisp.org>
64945
64946         * modules/linkedhash-list-tests (Depends-on): Add progname.
64947         * tests/test-linkedhash_list.c: Include progname.h.
64948         (main): Call set_program_name.
64949
64950         * modules/carray-list-tests (Depends-on): Add progname.
64951         * tests/test-carray_list.c: Include progname.h.
64952         (main): Call set_program_name.
64953
64954         * modules/avltreehash-list-tests (Depends-on): Add progname.
64955         * tests/test-avltreehash_list.c: Include progname.h.
64956         (main): Call set_program_name.
64957
64958         * modules/avltree-oset-tests (Depends-on): Add progname.
64959         * tests/test-avltree_oset.c: Include progname.h.
64960         (main): Call set_program_name.
64961
64962         * modules/avltree-list-tests (Depends-on): Add progname.
64963         * tests/test-avltree_list.c: Include progname.h.
64964         (main): Call set_program_name.
64965
64966         * modules/array-oset-tests (Depends-on): Add progname.
64967         * tests/test-array_oset.c: Include progname.h.
64968         (main): Call set_program_name.
64969
64970         * modules/array-list-tests (Depends-on): Add progname.
64971         * tests/test-array_list.c: Include progname.h.
64972         (main): Call set_program_name.
64973
64974         * modules/argp-tests (Depends-on): Add progname.
64975         * tests/test-argp.c: Include argp.h first. Include progname.h.
64976         (main): Call set_program_name.
64977
64978 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * doc/gnulib-tool.texi (Initial import): Reword description of
64981         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64982         limited effect even if defined after the first system include.
64983
64984 2007-03-01  Bruno Haible  <bruno@clisp.org>
64985
64986         * build-aux/config.libpath: Update to libtool-1.5.22.
64987         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64988
64989 2007-03-01  Bruno Haible  <bruno@clisp.org>
64990
64991         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64992         foo_CFLAGS.
64993         Reported by Ralf Wildenhues.
64994
64995 2007-03-01  Bruno Haible  <bruno@clisp.org>
64996
64997         * build-aux/install-reloc: Remove object files left over by some
64998         compilers.
64999         Reported by Ralf Wildenhues.
65000
65001 2007-03-01  Bruno Haible  <bruno@clisp.org>
65002
65003         * build-aux/install-reloc: Break long lines.
65004
65005 2007-03-01  Bruno Haible  <bruno@clisp.org>
65006
65007         * doc/relocatable.texi: Document that it may not work on OpenBSD.
65008         Reported by Ralf Wildenhues.
65009
65010 2007-03-01  Bruno Haible  <bruno@clisp.org>
65011
65012         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
65013         include ordering constraints.
65014
65015 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
65016
65017         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
65018         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
65019         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
65020         as another example.
65021         * lib/time_.h: Fix misspelling.
65022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65023         Require gl_HEADER_TIME_H_DEFAULTS.
65024         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
65025         * m4/time_r.m4 (gl_TIME_R): Likewise.
65026         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
65027
65028 2007-03-01  Bruno Haible  <bruno@clisp.org>
65029
65030         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
65031         * m4/utimens.m4 (gl_UTIMENS): Likewise.
65032
65033 2007-03-01  Jim Meyering  <jim@meyering.net>
65034
65035         * modules/xreadlink (Maintainer): Add my name.
65036         * modules/xreadlink-with-size (Depends-on): Alphabetize.
65037
65038 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
65039             Bruno Haible  <bruno@clisp.org>
65040
65041         * build-aux/install-reloc: Compile also c-ctype.c.
65042         * build-aux/relocatable.sh.in: New file.
65043         * doc/relocatable.texi: New file.
65044         * doc/relocatable-maint.texi: New file.
65045         * doc/gnulib.texi: Include relocatable-maint.texi.
65046         * lib/progreloc.c: Include unistd.h unconditionally.
65047         * lib/relocwrapper.c: Include unistd.h unconditionally.
65048         Include c-ctype.h.
65049         (add_dotbin): Use c_tolower.
65050         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
65051         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
65052         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
65053         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
65054         to m4/relocatable-lib.m4.
65055         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
65056         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
65057         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
65058         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
65059         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
65060         * modules/relocatable: New file.
65061         * modules/relocatable-lib: New file.
65062         * modules/relocatable-script: New file.
65063
65064 2007-02-28  Bruno Haible  <bruno@clisp.org>
65065
65066         Import --enable-relocatable infrastructure.
65067         * build-aux/config.libpath: New file, from GNU gettext.
65068         * build-aux/install-reloc: New file, from GNU gettext.
65069         * build-aux/reloc-ldflags: New file, from GNU gettext.
65070         * lib/relocatable.h: New file, from GNU gettext.
65071         * lib/relocatable.c: New file, from GNU gettext.
65072         * lib/relocwrapper.c: New file, from GNU gettext.
65073         * m4/relocatable.m4: New file, from GNU gettext.
65074
65075 2007-02-28  Bruno Haible  <bruno@clisp.org>
65076
65077         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
65078
65079         * modules/xreadlink: New file, from GNU gettext with modifications.
65080         * lib/xreadlink.c: New file, from GNU gettext.
65081         * lib/xreadlink.h: Add comments.
65082         (xreadlink): New declaration.
65083
65084         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
65085         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
65086         lib/xreadlink-with-size.c.
65087         (configure.ac): Remove gl_XREADLINK invocation.
65088         (Makefile.am): Augment lib_SOURCES.
65089         * m4/xreadlink.m4: Remove file.
65090         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
65091         (xreadlink_with_size): Renamed from xreadink.
65092         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
65093         * modules/canonicalize (Depends-on): Replace xreadlink with
65094         xreadlink-with-size.
65095         * lib/canonicalize.c (canonicalize_filename_mode): Update.
65096
65097 2007-02-25  Jim Meyering  <jim@meyering.net>
65098
65099         * build-aux/announce-gen: When complaining about excess arguments,
65100         list them.
65101
65102 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
65103
65104         * README: Document signed integer overflow situation more
65105         accurately.
65106
65107 2007-02-25  Bruno Haible  <bruno@clisp.org>
65108
65109         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
65110         'a' or 'A' conversion.
65111
65112 2007-02-25  Bruno Haible  <bruno@clisp.org>
65113
65114         * modules/filename: Renamed from modules/pathname.
65115         (Files): Replace lib/pathname.h with lib/filename.h. Replace
65116         lib/concatpath.c with lib/concat-filename.c.
65117         (Makefile.am): Update.
65118         (Include): Replace pathname.h with filename.h.
65119         * lib/filename.h: Renamed from lib/pathname.h.
65120         (concatenated_filename): Renamed from concatenated_pathname.
65121         * lib/concat-filename.c: Renamed from lib/concatpath.c.
65122         (concatenated_filename): Renamed from concatenated_pathname.
65123         * lib/findprog.c: Include filename.h instead of pathname.h.
65124         (find_in_path): Update.
65125         * lib/javacomp.c: Include filename.h instead of pathname.h.
65126         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
65127         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
65128         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
65129         is_oldgcj_14_13_usable, is_javac_usable): Update.
65130         * lib/javaexec.c: Include filename.h instead of pathname.h.
65131         (execute_java_class): Update.
65132         * modules/findprog: Update.
65133         * modules/javacomp: Update.
65134         * modules/javaexec: Update.
65135         * MODULES.html.sh (File system functions): Add 'filename', remove
65136         'pathname'.
65137
65138 2007-02-25  Bruno Haible  <bruno@clisp.org>
65139
65140         * modules/printf-frexpl-tests: New file.
65141         * tests/test-printf-frexpl.c: New file.
65142
65143         * modules/printf-frexpl: New file.
65144         * lib/printf-frexpl.h: New file.
65145         * lib/printf-frexpl.c: New file.
65146         * m4/printf-frexpl.m4: New file.
65147
65148 2007-02-25  Bruno Haible  <bruno@clisp.org>
65149
65150         * modules/printf-frexp-tests: New file.
65151         * tests/test-printf-frexp.c: New file.
65152
65153         * modules/printf-frexp: New file.
65154         * lib/printf-frexp.h: New file.
65155         * lib/printf-frexp.c: New file.
65156         * m4/printf-frexp.m4: New file.
65157
65158 2007-02-25  Bruno Haible  <bruno@clisp.org>
65159
65160         Assume automake >= 1.10 for the tests.
65161         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65162         * modules/arctwo-tests: Likewise.
65163         * modules/argp-tests: Likewise.
65164         * modules/avltree-list-tests: Likewise.
65165         * modules/avltree-oset-tests: Likewise.
65166         * modules/avltreehash-list-tests: Likewise.
65167         * modules/carray-list-tests: Likewise.
65168         * modules/crc-tests: Likewise.
65169         * modules/des-tests: Likewise.
65170         * modules/gc-arcfour-tests: Likewise.
65171         * modules/gc-arctwo-tests: Likewise.
65172         * modules/gc-des-tests: Likewise.
65173         * modules/gc-hmac-md5-tests: Likewise.
65174         * modules/gc-hmac-sha1-tests: Likewise.
65175         * modules/gc-md2-tests: Likewise.
65176         * modules/gc-md4-tests: Likewise.
65177         * modules/gc-md5-tests: Likewise.
65178         * modules/gc-pbkdf2-sha1-tests: Likewise.
65179         * modules/gc-rijndael-tests: Likewise.
65180         * modules/gc-sha1-tests: Likewise.
65181         * modules/gc-tests: Likewise.
65182         * modules/getaddrinfo-tests: Likewise.
65183         * modules/hmac-md5-tests: Likewise.
65184         * modules/hmac-sha1-tests: Likewise.
65185         * modules/linked-list-tests: Likewise.
65186         * modules/linkedhash-list-tests: Likewise.
65187         * modules/lock-tests: Likewise.
65188         * modules/md2-tests: Likewise.
65189         * modules/md4-tests: Likewise.
65190         * modules/md5-tests: Likewise.
65191         * modules/rbtree-list-tests: Likewise.
65192         * modules/rbtree-oset-tests: Likewise.
65193         * modules/rbtreehash-list-tests: Likewise.
65194         * modules/read-file-tests: Likewise.
65195         * modules/rijndael-tests: Likewise.
65196         * modules/stdint-tests: Likewise.
65197         * modules/tls-tests: Likewise.
65198
65199 2007-02-24  Bruno Haible  <bruno@clisp.org>
65200
65201         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65202         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65203         function; instead check whether isnan with a double argument links.
65204         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65205         function; instead check whether isnan with a 'long double' argument
65206         links.
65207         Reported by Eric Blake <ebb9@byu.net>.
65208
65209 2007-02-24  Bruno Haible  <bruno@clisp.org>
65210
65211         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65212         defined.
65213         * lib/isnanl.c: Remove all code. Just include isnan.c.
65214         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65215
65216 2007-02-25  Jim Meyering  <jim@meyering.net>
65217
65218         Avoid conflicting types for 'unsetenv' on FreeBSD.
65219         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65220         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65221         in stdlib.h.
65222
65223 2007-02-24  Bruno Haible  <bruno@clisp.org>
65224
65225         * modules/isnanl-nolibm-tests: New file.
65226         * tests/test-isnanl.c: New file.
65227
65228         * modules/isnanl-nolibm: New file.
65229         * lib/isnanl.h: New file.
65230         * lib/isnanl.c: New file.
65231         * m4/isnanl.m4: New file.
65232
65233 2007-02-24  Bruno Haible  <bruno@clisp.org>
65234
65235         * modules/isnan-nolibm-tests: New file.
65236         * tests/test-isnan.c: New file.
65237
65238         * modules/isnan-nolibm: New file.
65239         * lib/isnan.h: New file.
65240         * lib/isnan.c: New file.
65241         * m4/isnan.m4: New file.
65242
65243 2007-02-24  Bruno Haible  <bruno@clisp.org>
65244
65245         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65246         assume that an exponent fits in 20 bits.
65247
65248 2007-02-24  Jim Meyering  <jim@meyering.net>
65249
65250         * m4/regex.m4: Update the description of the configure-time option,
65251         --without-included-regex, to state accurately what the defaults are,
65252         and perhaps to give people an idea why using this option is risky.
65253
65254 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65257         loops on small arguments.  This attempts to avoid the problem
65258         Bruno Haible reported for AIX 4.3.2 in
65259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65260
65261 2007-02-23  Bruno Haible  <bruno@clisp.org>
65262
65263         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65264         Needed for help2man.
65265
65266 2007-02-23  Karl Berry  <karl@gnu.org>
65267
65268         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65269         exists, foo.h should be cvs-ignored, not committed.
65270
65271 2007-02-23  Eric Blake  <ebb9@byu.net>
65272
65273         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65274         * lib/stat-time.h (includes): Likewise.
65275         * lib/utimecmp.c (includes): Likewise.
65276         * lib/utimens.h (includes): Likewise.
65277         * lib/getdate.y (includes): Also include "timespec.h" for use
65278         internal to the module.
65279         * modules/utimens (Depends-on): Revert yesterday's patch.
65280         * modules/nanosleep (Depends-on): Add missing dependency.
65281
65282 2007-02-22  Bruno Haible  <bruno@clisp.org>
65283
65284         * lib/glob.c: Don't include getlogin_r.h.
65285
65286 2007-02-22  Jim Meyering  <jim@meyering.net>
65287
65288         * modules/utimens (Depends-on): Add timespec, required for
65289         utimens.h's inclusion of timespec.h.
65290
65291 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65292
65293         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65294         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65295         Schwab in
65296         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65297         I'll try to think of a better way to fix the Solaris problem.
65298
65299         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65300         like glibc; on Solaris 10, it fails with errno == EINVAL.
65301         POSIX says the behavior is unspecified if the first argument is NULL,
65302         so play it safe and never pass NULL to the system getcwd.
65303
65304 2007-02-21  Jim Meyering  <jim@meyering.net>
65305
65306         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65307         of gettimeofday.  It would conflict with the one now always
65308         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65309         an IRIX 6.5 build failure.
65310
65311 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65312
65313         Minor fixups to port to Solaris 10 with Sun C 5.8.
65314         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65315         * modules/getcwd (Depends-on): Add dirfd.
65316         * lib/putenv.c (putenv): #undef it.
65317         (rpl_putenv): New decl.
65318         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65319
65320 2007-02-20  Bruno Haible  <bruno@clisp.org>
65321
65322         * modules/stdio-tests: New file.
65323         * tests/test-stdio.c: New file.
65324
65325         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65326         (Depends-on): Add stdio.
65327         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65328         (Include): Use <stdio.h> instead of vsnprintf.h.
65329         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65330         HAVE_DECL_VSNPRINTF.
65331         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65332
65333         * modules/snprintf (Files): Remove lib/snprintf.h.
65334         (Depends-on): Add stdio.
65335         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65336         (Include): Use <stdio.h> instead of snprintf.h.
65337         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65338         HAVE_DECL_SNPRINTF.
65339         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65340         * lib/getaddrinfo.c: Likewise.
65341
65342         * modules/stdio: New file.
65343         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65344         * lib/snprintf.h: Remove file.
65345         * lib/vsnprintf.h: Remove file.
65346         * lib/.cppi-disable: Remove snprintf.h.
65347         * m4/stdio_h.m4: New file.
65348         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65349
65350 2007-02-20  Jim Meyering  <jim@meyering.net>
65351
65352         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65353         used by e.g., mingw.  From Bruno Haible.
65354
65355 2007-02-19  Bruno Haible  <bruno@clisp.org>
65356
65357         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65358         warnings.
65359         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65360
65361 2007-02-19  Bruno Haible  <bruno@clisp.org>
65362
65363         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65364         from mingw users.
65365
65366 2007-02-19  Bruno Haible  <bruno@clisp.org>
65367
65368         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65369         warnings.
65370         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65371
65372 2007-02-19  Jim Meyering  <jim@meyering.net>
65373
65374         Don't use FD after a successful "fdopendir (fd)".
65375         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65376         Reset it by calling dirfd on the just-obtained DIR*.
65377
65378         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65379         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65380
65381 2007-02-18  Bruno Haible  <bruno@clisp.org>
65382
65383         * lib/readlink.c: Include <unistd.h>.
65384         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65385         HAVE_READLINK.
65386         * modules/readlink (Depends-on): Add unistd.
65387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65388         (Include): Add <unistd.h>.
65389
65390         * lib/getlogin_r.h: Remove file.
65391         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65392         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65393         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65394         HAVE_DECL_GETLOGIN_R.
65395         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65396         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65397         (Include): Use <unistd.h> instead of getlogin_r.h.
65398
65399         * lib/getcwd.h: Remove file.
65400         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65401         * lib/xgetcwd.c: Likewise.
65402         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65403         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65404         * modules/getcwd (Files): Remove lib/getcwd.h.
65405         (Depends-on): Add unistd.
65406         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65407         (Include): Use <unistd.h> instad of getcwd.h.
65408
65409         * lib/ftruncate.c: Include <unistd.h> first.
65410         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65411         Set HAVE_FTRUNCATE.
65412         * modules/ftruncate (Depends-on): Add unistd.
65413         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65414
65415         * lib/fchdir.c: Include <unistd.h> first.
65416         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65418         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65419         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65420         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65421
65422         * lib/dup2.c: Include <unistd.h> first.
65423         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65424         HAVE_DUP2.
65425         * modules/dup2 (Depends-on): Add unistd.
65426         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65427
65428         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65429         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65430         REPLACE_CHOWN. Don't define chown as a macro here.
65431         * modules/chown (Depends-on): Add unistd.
65432         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65433
65434         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65435         Add definition for GL_LINK_WARNING.
65436         (chown, dup2): New declarations.
65437         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65438         link warning.
65439         (ftruncate): New declaration.
65440         (getcwd): New declaration, taken from old getcwd.h.
65441         (getlogin_r): New declaration, taken from old getlogin_r.h.
65442         (readlink): New declaration.
65443         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65444         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65445         (gl_PREREQ_UNISTD): Remove macro.
65446         (gl_UNISTD_MODULE_INDICATOR): New macro.
65447         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65448         many new variables. Don't set UNISTD_H.
65449         * modules/unistd (Description): Change.
65450         (Depends-on): Add link-warning.
65451         (configure.ac): Update.
65452         (Makefile.am): Create unistd.h always. Substitute many new variables
65453         into it.
65454
65455 2007-02-18  Bruno Haible  <bruno@clisp.org>
65456
65457         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65458         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65459         HAVE_GETSUBOPT.
65460         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65461         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65462         * lib/getsubopt.h: Remove file.
65463         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65464         (Depends-on): Add stdlib.
65465         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65466         (Includes): Use <stdlib.h> instead of getsubopt.h.
65467         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65468         Set HAVE_GETSUBOPT.
65469         * lib/getsubopt.c: Don't include getsubopt.h.
65470
65471 2007-02-18  Bruno Haible  <bruno@clisp.org>
65472
65473         * modules/fchdir (Depends-on): Add dup2.
65474
65475 2007-02-18  Bruno Haible  <bruno@clisp.org>
65476
65477         * lib/stdlib_.h: Handle glibc's special invocation convention
65478         specially.
65479
65480 2007-02-18  Bruno Haible  <bruno@clisp.org>
65481
65482         * modules/stdlib-tests: New file.
65483         * tests/test-stdlib.c: New file.
65484
65485         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65486         (Depends-on): Add stdlib.
65487         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65488         (Includes): Use <stdlib.h> instead of mkstemp.h.
65489         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65490         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65491         * lib/mkstemp.c: Don't include mkstemp.h.
65492         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65493         * lib/stdlib--.h: Don't include mkstemp.h.
65494
65495         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65496         (Depends-on): Add stdlib.
65497         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65498         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65499         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65500         HAVE_MKDTEMP.
65501         * lib/mkdtemp.c: Don't include mkdtemp.h.
65502         * lib/clean-temp.c: Don't include mkdtemp.h.
65503
65504         * modules/exit (Files): Remove lib/exit.h.
65505         (Depends-on): Add stdlib.
65506         (Makefile.am): Remove lib_SOURCES.
65507         (Include): Use <stdlib.h> instead of exit.h.
65508         * lib/argmatch.c: Don't include exit.h.
65509         * lib/execute.c: Likewise.
65510         * lib/pagealign_alloc.c: Likewise.
65511         * lib/pipe.c: Likewise.
65512         * lib/wait-process.c: Likewise.
65513         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65514         * lib/exitfail.c: Likewise.
65515         * lib/savewd.c: Likewise.
65516         * lib/xsetenv.c: Likewise.
65517
65518         * modules/stdlib: New file.
65519         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65520         and extra comments about mkstemp().
65521         * lib/exit.h: Remove file.
65522         * lib/mkdtemp.h: Remove file.
65523         * lib/mkstemp.h: Remove file.
65524         * m4/stdlib_h.m4: New file.
65525         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65526
65527 2007-02-18  Bruno Haible  <bruno@clisp.org>
65528
65529         * modules/math-tests: New file.
65530         * tests/test-math.c: New file.
65531
65532         * modules/math: New file.
65533         * modules/mathl (Files): Remove lib/mathl.h.
65534         (Depends-on): Add math.
65535         (Makefile.am): Don't mention mathl.h.
65536         (Include): Use <math.h> instead of mathl.h.
65537         * lib/math_.h: New file.
65538         * lib/mathl.h: Remove file.
65539         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65540         mathl.h.
65541         * lib/asinl.c: Likewise.
65542         * lib/atanl.c: Likewise.
65543         * lib/ceill.c: Likewise.
65544         * lib/cosl.c: Likewise.
65545         * lib/expl.c: Likewise.
65546         * lib/floorl.c: Likewise.
65547         * lib/frexpl.c: Likewise.
65548         * lib/ldexpl.c: Likewise.
65549         * lib/logl.c: Likewise.
65550         * lib/sincosl.c: Likewise.
65551         * lib/sinl.c: Likewise.
65552         * lib/sqrtl.c: Likewise.
65553         * lib/tanl.c: Likewise.
65554         * lib/trigl.c: Likewise.
65555         * m4/math_h.m4: New file.
65556         * MODULES.html.sh (Mathematics): Add math.
65557
65558 2007-02-17  Bruno Haible  <bruno@clisp.org>
65559
65560         * modules/wctype-tests: New file.
65561         * tests/test-wctype.c: New file.
65562
65563         * modules/wchar-tests: New file.
65564         * tests/test-wchar.c: New file.
65565
65566         * modules/unistd-tests: New file.
65567         * tests/test-unistd.c: New file.
65568
65569         * modules/time-tests: New file.
65570         * tests/test-time.c: New file.
65571
65572         * modules/sysexits-tests: New file.
65573         * tests/test-sysexits.c: New file.
65574
65575         * modules/sys_time-tests: New file.
65576         * tests/test-sys_time.c: New file.
65577
65578         * modules/sys_stat-tests: New file.
65579         * tests/test-sys_stat.c: New file.
65580
65581         * modules/sys_socket-tests: New file.
65582         * tests/test-sys_socket.c: New file.
65583
65584         * modules/sys_select-tests: New file.
65585         * tests/test-sys_select.c: New file.
65586
65587         * modules/string-tests: New file.
65588         * tests/test-string.c: New file.
65589
65590         * modules/stdbool-tests: New file.
65591         * tests/test-stdbool.c: New file.
65592
65593         * modules/netinet_in-tests: New file.
65594         * tests/test-netinet_in.c: New file.
65595
65596         * modules/inttypes-tests: New file.
65597         * tests/test-inttypes.c: New file.
65598
65599         * modules/fcntl-tests: New file.
65600         * tests/test-fcntl.c: New file.
65601
65602         * modules/byteswap-tests: New file.
65603         * tests/test-byteswap.c: New file.
65604
65605         * modules/arpa_inet-tests: New file.
65606         * tests/test-arpa_inet.c: New file.
65607
65608 2007-02-17  Bruno Haible  <bruno@clisp.org>
65609
65610         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65611         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65612         if the corresponding module is not enabled. Emit link warnings if
65613         the function is used nevertheless.
65614         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65615         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65616         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65617         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65618         * modules/inttypes (Depends-on): Add link-warning.
65619         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65620         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65621         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65622         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65623         * modules/imaxdiv (configure.ac): Likewise.
65624         * modules/strtoimax (configure.ac): Likewise.
65625         * modules/strtoumax (configure.ac): Likewise.
65626
65627 2007-02-17  Bruno Haible  <bruno@clisp.org>
65628
65629         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65630         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65631         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65632         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65633
65634 2007-02-17  Bruno Haible  <bruno@clisp.org>
65635
65636         * modules/link-warning: New file.
65637         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65638         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65639         * modules/string (Depends-on): Add link-warning.
65640         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65641         string.h.
65642         * MODULES.html.sh (Support for building libraries and executables): Add
65643         link-warning.
65644
65645 2007-02-17  Bruno Haible  <bruno@clisp.org>
65646
65647         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65648         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65649         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65650         long lines.
65651
65652 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65653             Bruno Haible  <bruno@clisp.org>
65654
65655         * modules/tmpfile: New file.
65656         * lib/tmpfile.c: New file.
65657         * m4/tmpfile.m4: New file.
65658         * MODULES.html.sh (func_all_modules): New section "Input/output".
65659
65660 2007-02-15  Bruno Haible  <bruno@clisp.org>
65661
65662         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65663         (supports_delete_on_close): New function.
65664         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65665
65666 2007-02-14  Bruno Haible  <bruno@clisp.org>
65667
65668         * modules/mbspcasecmp-tests: New file.
65669         * tests/test-mbspcasecmp.sh: New file.
65670         * tests/test-mbspcasecmp.c: New file.
65671
65672         New module mbspcasecmp.
65673         * modules/mbspcasecmp: New file.
65674         * lib/mbspcasecmp.c: New file.
65675         * lib/string_.h (strncasecmp): Change warning message.
65676         (mbspcasecmp): New declaration.
65677         * m4/mbspcasecmp.m4: New file.
65678         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65679         GNULIB_MBSPCASECMP.
65680         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65681         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65682
65683 2007-02-14  Bruno Haible  <bruno@clisp.org>
65684
65685         * modules/mbsncasecmp-tests: New file.
65686         * tests/test-mbsncasecmp.sh: New file.
65687         * tests/test-mbsncasecmp.c: New file.
65688
65689         New module mbsncasecmp.
65690         * modules/mbsncasecmp: New file.
65691         * lib/mbsncasecmp.c: New file.
65692         * lib/string_.h (mbsncasecmp): New declaration.
65693         * m4/mbsncasecmp.m4: New file.
65694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65695         GNULIB_MBSNCASECMP.
65696         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65697         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65698
65699 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65702         Verify that it doesn't overlap with our flags.
65703         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65704         do not have the desired effect in multibyte locales; instead, use
65705         mbscasecmp.
65706         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65707         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65708         we don't require GNU fnmatch ourselves (if our users require it, they
65709         should do so explicitly).
65710
65711         Fix regex code so it doesn't rely on strcasecmp.
65712         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65713         Otherwise, include gnulib's langinfo.h.
65714         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65715         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65716         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65717         * modules/regex (FILES): Remove m4/codeset.m4.
65718         (Depends-on): Add localcharset.  Remove strcase.
65719
65720 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65721
65722         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65723         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65724
65725 2007-02-13  Bruno Haible  <bruno@clisp.org>
65726
65727         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65729
65730 2007-02-12  Bruno Haible  <bruno@clisp.org>
65731
65732         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65733         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65734         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65735         time warning rather than a link error.
65736
65737 2007-02-12  Bruno Haible  <bruno@clisp.org>
65738
65739         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65740         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65741         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65742
65743 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65746         args, not 2.
65747
65748 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65749
65750         New module 'time', so that apps can include <time.h> as per
65751         POSIX and GNU instead of separate include files like time_r.h
65752         and timegm.h.  This implementation tries out a simpler approach
65753         for replacing decls in standard include files (as compared to
65754         the string module), somewhat as an experiment.
65755
65756         * config/srclist.txt: Comment out mktime.c for now.
65757         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65758         since it doesn't apply any more.  Use generic wording instead.
65759         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65760         'time'.
65761         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65762         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65763         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65764         Don't include <sys/types.h>; no longer needed since we assume C89.
65765         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65766         * lib/strftime.c: Likewise.
65767         * lib/time_r.c: Likewise.
65768         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65769         * lib/nanosleep.c: Include <time.h> first, to check interface.
65770         * lib/strptime.c: Likewise.
65771         * lib/time_r.c: Likewise.
65772         * lib/timegm.c: Likewise.
65773         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65774         needed.
65775         * lib/timegm.c: Don't include timegm.h; no longer needed.
65776         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65777         time.h now handles any problems in that area.
65778         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65779         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65780         that time.h defines struct timespec.
65781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65782         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65783         handles that.
65784         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65785         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65786         needed.  Set REPLACE_LOCALTIME.
65787         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65788         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65789         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65790         nanosleep; time_h.m4 now does that.  Don't require
65791         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65792         module handles this now.
65793         * modules/getdate (Depends-on): Remove timespec.  Add time.
65794         * modules/nanosleep (Depends-on): Likewise.
65795         * modules/stat-time (Depends-on): Likewise.
65796         * modules/nanosleep (Include): Include time.h, not timespec.h.
65797         * modules/strptime (Files): Remove lib/strptime.h.
65798         (Depends-on): Add extensions, time.
65799         (Include): Include time.h, not strptime.h.
65800         * modules/time_r (Files): Remove lib/time_r.h.
65801         (Depends-on): Add time.
65802         (Include): Include time.h, not time_r.h.
65803         * modules/timegm: Likewise.
65804         * modules/timespec (Description): Now does timespec-related decls
65805         of our own, instead of struct timespec itself.
65806         (Depends-on): Add time; remove extensions.
65807         (Maintainer): Add self.
65808         * modules/utimecmp (Depends-on): Add time; remove timespec.
65809         * modules/utimens (Depends-on): Likewise.
65810         * modules/xnanosleep (Depends-on): Likewise.
65811
65812 2007-02-11  Bruno Haible  <bruno@clisp.org>
65813
65814         * lib/c-strstr.c: Include allocsa.h.
65815         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65816         * lib/c-strcasestr.c: Include allocsa.h.
65817         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65818         * lib/strcasestr.c: Include allocsa.h.
65819         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65820         * lib/mbsstr.c: Include allocsa.h.
65821         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65822         allocsa/freesa instead of malloc/free.
65823         * lib/mbscasestr.c: Include allocsa.h.
65824         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65825         allocsa/freesa instead of malloc/free.
65826         * modules/c-strstr (Depends-on): Add allocsa.
65827         * modules/c-strcasestr (Depends-on): Likewise.
65828         * modules/strcasestr (Depends-on): Likewise.
65829         * modules/mbsstr (Depends-on): Likewise.
65830         * modules/mbscasestr (Depends-on): Likewise.
65831
65832 2007-02-11  Bruno Haible  <bruno@clisp.org>
65833
65834         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65835
65836         * modules/mbsspn-tests: New file.
65837         * tests/test-mbsspn.sh: New file.
65838         * tests/test-mbsspn.c: New file.
65839
65840 2007-02-11  Bruno Haible  <bruno@clisp.org>
65841
65842         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65843
65844         * modules/mbspbrk-tests: New file.
65845         * tests/test-mbspbrk.sh: New file.
65846         * tests/test-mbspbrk.c: New file.
65847
65848 2007-02-11  Bruno Haible  <bruno@clisp.org>
65849
65850         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65851         unneeded cast.
65852
65853         * modules/mbscspn-tests: New file.
65854         * tests/test-mbscspn.sh: New file.
65855         * tests/test-mbscspn.c: New file.
65856
65857 2007-02-11  Bruno Haible  <bruno@clisp.org>
65858
65859         * modules/mbscasecmp-tests: New file.
65860         * tests/test-mbscasecmp.sh: New file.
65861         * tests/test-mbscasecmp.c: New file.
65862
65863 2007-02-11  Bruno Haible  <bruno@clisp.org>
65864
65865         Ensure O(n) worst-case complexity of mbscasestr.
65866         * lib/mbscasestr.c: Include stdbool.h.
65867         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65868         functions.
65869         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65870         the bookkeeping indicates that it's worth it.
65871         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65872
65873         * modules/mbscasestr-tests: New file.
65874         * tests/test-mbscasestr1.c: New file.
65875         * tests/test-mbscasestr2.sh: New file.
65876         * tests/test-mbscasestr2.c: New file.
65877         * tests/test-mbscasestr3.sh: New file.
65878         * tests/test-mbscasestr3.c: New file.
65879         * tests/test-mbscasestr4.sh: New file.
65880         * tests/test-mbscasestr4.c: New file.
65881         * m4/locale-tr.m4: New file.
65882
65883 2007-02-11  Bruno Haible  <bruno@clisp.org>
65884
65885         Ensure O(n) worst-case complexity of mbsstr.
65886         * lib/mbsstr.c: Include stdbool.h.
65887         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65888         functions.
65889         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65890         bookkeeping indicates that it's worth it.
65891         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65892
65893         * modules/mbsstr-tests: New file.
65894         * tests/test-mbsstr1.c: New file.
65895         * tests/test-mbsstr2.sh: New file.
65896         * tests/test-mbsstr2.c: New file.
65897         * tests/test-mbsstr3.sh: New file.
65898         * tests/test-mbsstr3.c: New file.
65899         * m4/locale-fr.m4: New file.
65900
65901 2007-02-11  Bruno Haible  <bruno@clisp.org>
65902
65903         * lib/mbsrchr.c (mbsrchr): Fix bug.
65904
65905         * modules/mbsrchr-tests: New file.
65906         * tests/test-mbsrchr.sh: New file.
65907         * tests/test-mbsrchr.c: New file.
65908
65909 2007-02-11  Bruno Haible  <bruno@clisp.org>
65910
65911         * lib/mbschr.c (mbschr): Fix bug.
65912
65913         * modules/mbschr-tests: New file.
65914         * tests/test-mbschr.sh: New file.
65915         * tests/test-mbschr.c: New file.
65916         * m4/locale-zh.m4: New file.
65917
65918 2007-02-11  Bruno Haible  <bruno@clisp.org>
65919
65920         Support for copying multibyte string iterators.
65921         * lib/mbiter.h: Include <string.h>.
65922         (mbiter_multi_copy): New function.
65923         (mbi_copy): New macro.
65924         * lib/mbuiter.h: Include <string.h>.
65925         (mbuiter_multi_copy): New function.
65926         (mbui_copy): New macro.
65927
65928 2007-02-11  Bruno Haible  <bruno@clisp.org>
65929
65930         New module mbslen.
65931         * modules/mbslen: New file.
65932         * lib/mbslen.c: New file.
65933         * lib/string_.h (mbslen): New declaration.
65934         * m4/mbslen.m4: New file.
65935         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65936         GNULIB_MBSLEN.
65937         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65938         * MODULES.html.sh (Internationalization functions): Add mbslen.
65939
65940 2007-02-11  Bruno Haible  <bruno@clisp.org>
65941
65942         Ensure O(n) worst-case complexity of strcasestr substitute.
65943         * lib/strcasestr.c: Include stdbool.h.
65944         (knuth_morris_pratt): New function.
65945         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65946         bookkeeping indicates that it's worth it.
65947         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65948
65949         * modules/strcasestr-tests: New file.
65950         * tests/test-strcasestr.c: New file.
65951
65952 2007-02-11  Bruno Haible  <bruno@clisp.org>
65953
65954         Ensure O(n) worst-case complexity of c_strcasestr.
65955         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65956         (knuth_morris_pratt): New function.
65957         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65958         the bookkeeping indicates that it's worth it.
65959         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65960
65961         * modules/c-strcasestr-tests: New file.
65962         * tests/test-c-strcasestr.c: New file.
65963
65964 2007-02-11  Bruno Haible  <bruno@clisp.org>
65965
65966         Ensure O(n) worst-case complexity of c_strstr.
65967         * lib/c-strstr.c: Include stdbool.h, string.h.
65968         (knuth_morris_pratt): New function.
65969         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65970         bookkeeping indicates that it's worth it.
65971         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65972
65973         * lib/c-strstr.c: Complete rewrite for maintainability.
65974
65975         * modules/c-strstr-tests: New file.
65976         * tests/test-c-strstr.c: New file.
65977
65978 2007-02-11  Bruno Haible  <bruno@clisp.org>
65979
65980         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65981         5.2.1 and earlier, whereby \055 was treated just like the range
65982         delimiter '-'.
65983         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65984
65985 2007-02-08  Bruno Haible  <bruno@clisp.org>
65986
65987         * modules/regex (Depends-on): Add stdbool.
65988         Reported by Dalibor Topic <robilad@kaffe.org>.
65989
65990 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65991
65992         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65993         Prefer returning from main to exiting from it.
65994         Remove unnecessary parens after sizeof.
65995
65996 2007-02-05  Bruno Haible  <bruno@clisp.org>
65997
65998         New module mbssep.
65999         * modules/mbssep: New file.
66000         * lib/mbssep.c: New file.
66001         * lib/string_.h (strsep): Add a conditional link warning.
66002         (mbssep): New declaration.
66003         * m4/mbssep.m4: New file.
66004         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66005         GNULIB_MBSSEP.
66006         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
66007         * MODULES.html.sh (Internationalization functions): Add mbssep.
66008
66009 2007-02-05  Bruno Haible  <bruno@clisp.org>
66010
66011         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
66012         Optimize search in case of 1 delimiter.
66013
66014 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66015
66016         * lib/acl.h: Include sys/types.h before sys/acl.h.
66017
66018 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
66019
66020         Merge upstream fix for glibc bugzilla #3957:
66021
66022         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
66023
66024         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
66025         bit for RE_HAT_LISTS_NOT_NEWLINE.
66026         (build_charclass_op): Remove bogus comment.
66027
66028 2007-02-05  Simon Josefsson  <simon@josefsson.org>
66029
66030         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
66031
66032 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66033
66034         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
66035         * lib/memmem.c [!defined _LIBC]: Include config.h.
66036
66037 2007-02-04  Bruno Haible  <bruno@clisp.org>
66038
66039         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
66040         warning message.
66041
66042 2007-02-04  Bruno Haible  <bruno@clisp.org>
66043
66044         New module mbstok_r.
66045         * modules/mbstok_r: New file.
66046         * lib/mbstok_r.c: New file.
66047         * lib/string_.h (strtok_r): Change argument names to match the
66048         comments. Add a conditional link warning.
66049         (mbstok_r): New declaration.
66050         * m4/mbstok_r.m4: New file.
66051         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66052         GNULIB_MBSTOK_R.
66053         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
66054         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
66055
66056 2007-02-04  Bruno Haible  <bruno@clisp.org>
66057
66058         New module mbsspn.
66059         * modules/mbsspn: New file.
66060         * lib/mbsspn.c: New file.
66061         * lib/string_.h (strspn): Add a conditional link warning.
66062         (mbsspn): New declaration.
66063         * m4/mbsspn.m4: New file.
66064         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66065         GNULIB_MBSSPN.
66066         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
66067         * MODULES.html.sh (Internationalization functions): Add mbsspn.
66068
66069 2007-02-04  Bruno Haible  <bruno@clisp.org>
66070
66071         New module mbspbrk.
66072         * modules/mbspbrk: New file.
66073         * lib/mbspbrk.c: New file.
66074         * lib/string_.h (strpbrk): Add a conditional link warning.
66075         (mbspbrk): New declaration.
66076         * m4/mbspbrk.m4: New file.
66077         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66078         GNULIB_MBSPBRK.
66079         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
66080         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
66081
66082 2007-02-04  Bruno Haible  <bruno@clisp.org>
66083
66084         New module mbscspn.
66085         * modules/mbscspn: New file.
66086         * lib/mbscspn.c: New file.
66087         * lib/string_.h (strcspn): Add a conditional link warning.
66088         (mbscspn): New declaration.
66089         * m4/mbscspn.m4: New file.
66090         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66091         GNULIB_MBSCSPN.
66092         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
66093         * MODULES.html.sh (Internationalization functions): Add mbscspn.
66094
66095 2007-02-04  Bruno Haible  <bruno@clisp.org>
66096
66097         New module mbscasestr, reduced goal of strcasestr.
66098         * modules/mbscasestr: New file.
66099         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
66100         (mbscasestr): Renamed from strcasestr.
66101         * lib/strcasestr.c: Don't include mbuiter.h.
66102         (strcasestr): Remove support for multibyte locales.
66103         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
66104         Change the conditional link warning.
66105         (mbscasestr): New declaration.
66106         * m4/mbscasestr.m4: New file.
66107         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
66108         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
66109         REPLACE_STRCASESTR.
66110         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
66111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66112         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66113         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
66114         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
66115         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
66116         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
66117         (Depends-on): Remove mbuiter.
66118         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
66119
66120 2007-02-04  Bruno Haible  <bruno@clisp.org>
66121
66122         Simplify handling of strncasecmp.
66123         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
66124         the conditional link warning.
66125         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
66126         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
66127         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
66128         * modules/strcase (configure.ac): Don't invoke
66129         gl_STRING_MODULE_INDICATOR.
66130         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
66131
66132 2007-02-04  Bruno Haible  <bruno@clisp.org>
66133
66134         New module mbscasecmp, reduced goal of strcasecmp.
66135         * modules/mbscasecmp: New file.
66136         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
66137         (mbscasecmp): Renamed from strcasecmp.
66138         * lib/strcasecmp.c: Don't include mbuiter.h.
66139         (strcasecmp): Remove support for multibyte locales.
66140         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
66141         Change the conditional link warning.
66142         (mbscasecmp): New declaration.
66143         * m4/mbscasecmp.m4: New file.
66144         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
66145         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
66146         REPLACE_STRCASECMP.
66147         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
66148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66149         GNULIB_MBSCASECMP.
66150         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
66151         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
66152         * modules/strcase (Files): Remove m4/mbrtowc.m4.
66153         (Depends-on): Remove mbuiter.
66154         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
66155
66156 2007-02-04  Bruno Haible  <bruno@clisp.org>
66157
66158         New module mbsstr. Remove module strstr.
66159         * modules/mbsstr: New file.
66160         * modules/strstr: Remove file.
66161         * lib/mbsstr.c: Renamed from lib/strstr.c.
66162         (mbsstr): Renamed from strstr.
66163         * lib/string_.h (strstr): Remove declaration. Change the conditional
66164         link warning.
66165         (mbsstr): New declaration.
66166         * m4/mbsstr.m4: New file.
66167         * m4/strstr.m4: Remove file.
66168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66169         REPLACE_STRSTR.
66170         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66171         Don't initialize GNULIB_STRSTR.
66172         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66173         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66174         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66175         (Support for systems lacking ANSI C 89): Remove strstr.
66176
66177 2007-02-04  Bruno Haible  <bruno@clisp.org>
66178
66179         New module mbsrchr.
66180         * modules/mbsrchr: New file.
66181         * lib/mbsrchr.c: New file.
66182         * lib/string_.h (strrchr): Add a conditional link warning.
66183         (mbsrchr): New declaration.
66184         * m4/mbsrchr.m4: New file.
66185         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66186         GNULIB_MBSRCHR.
66187         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66188         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66189
66190 2007-02-04  Bruno Haible  <bruno@clisp.org>
66191
66192         New module mbschr.
66193         * modules/mbschr: New file.
66194         * lib/mbschr.c: New file.
66195         * lib/string_.h (strchr): Add a conditional link warning.
66196         (mbschr): New declaration.
66197         * m4/mbschr.m4: New file.
66198         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66199         GNULIB_MBSCHR.
66200         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66201         * MODULES.html.sh (Internationalization functions): Add mbschr.
66202
66203 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66204
66205         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66206
66207         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66208
66209 2007-02-04  Bruno Haible  <bruno@clisp.org>
66210
66211         New module description section 'configure.ac-early'.
66212         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66213         (func_get_autoconf_early_snippet): New function.
66214         (func_import, func_create_testdir): Use it. Remove special cases for
66215         modules 'extensions' and 'lock'.
66216         * modules/extensions (configure.ac-early): Require
66217         gl_USE_SYSTEM_EXTENSIONS.
66218         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66219
66220 2007-02-04  Bruno Haible  <bruno@clisp.org>
66221
66222         Make use of gcj-4.3's -fsource and -ftarget option.
66223         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66224         and if so try the options -fsource and -ftarget.
66225         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66226         source_version, ftarget_option, target_version arguments.
66227         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66228         (is_envjavac_oldgcj_14_14_usable): Renamed from
66229         is_envjavac_gcj_14_14_usable.
66230         (is_envjavac_oldgcj_14_13_usable): Renamed from
66231         is_envjavac_gcj_14_13_usable.
66232         (is_gcj_present): Update.
66233         (is_gcj_43, is_gcj43_usable): New functions.
66234         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66235         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66236         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66237         try the options -fsource and -ftarget.
66238
66239 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66240
66241         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66242         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66243         larger value.
66244
66245 2007-02-03  Jim Meyering  <jim@meyering.net>
66246
66247         Give tools a better chance to allocate space for very large buffers.
66248         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66249
66250         Make pwd and readlink work also when run with an unreadable parent dir
66251         on systems with openat support.
66252         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66253         provided getcwd function, even when we have openat support.
66254         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66255
66256 2007-02-02  Bruno Haible  <bruno@clisp.org>
66257
66258         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66259         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66260         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66261         portability problems if one of these functions is only used on specific
66262         platforms.
66263         Reported by Paul Eggert.
66264
66265 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66266
66267         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66268         is causing more trouble than it's curing.
66269         * lib/regex_internal.h (__mempcpy): Remove.
66270         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66271         (and make the code a tad smaller to boot).
66272         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66273
66274 2007-02-02  Jim Meyering  <jim@meyering.net>
66275
66276         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66277         section, not in the Makefile.am: one.
66278
66279 2007-02-02  Eric Blake  <ebb9@byu.net>
66280
66281         * lib/strchrnul.c: Always include config.h first.
66282
66283         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66284         gnulib strstr is not necessary here.
66285
66286 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66287
66288         * m4/socklen.m4: Fix typo.
66289
66290 2007-02-02  Eric Blake  <ebb9@byu.net>
66291
66292         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66293         * modules/netinet_in (Makefile.am): Likewise.
66294
66295 2007-02-01  Bruno Haible  <bruno@clisp.org>
66296
66297         * lib/string_.h (GL_LINK_WARNING): New macro.
66298         (strcasecmp, strstr, strcasestr): If provided by the system,
66299         conditionally define as a macro that leads to a warning instead of to
66300         an error.
66301         (strncasecmp): Conditionally define as a macro that leads to a warning.
66302
66303 2007-02-01  Karl Berry  <karl@gnu.org>
66304
66305         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66306
66307 2007-02-01  Bruno Haible  <bruno@clisp.org>
66308
66309         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66310         renamings.
66311
66312 2007-02-01  Eric Blake  <ebb9@byu.net>
66313
66314         * modules/regex (Depends-on): Revert dependence on mempcpy.
66315         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66316         module's definition of mempcpy.
66317         Reported by Paul Eggert.
66318
66319 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66320
66321         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66322         the symbol XYZ before redefining it.  This fixes a problem with
66323         programs that don't use XYZ, when compiled on systems that define
66324         XYZ to something else.
66325
66326 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66327
66328         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66329         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66330         writeable to group or other and (2) is intended to have a special
66331         mode bit that is set or cleared.  In such a case, the directory
66332         should be neither group- nor other-writeable until the special
66333         mode bits are right.
66334
66335 2007-01-31  Eric Blake  <ebb9@byu.net>
66336
66337         * modules/mountlist (Depends-on): Add strstr.
66338
66339         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66340         bug.
66341         * modules/string (Makefile.am): Remove redundant replacement.
66342         * modules/regex (Depends-on): Add mempcpy.
66343
66344 2007-01-31  Bruno Haible  <bruno@clisp.org>
66345
66346         New module description field 'Link'.
66347         * gnulib-tool (func_usage): Document --extract-link-directive.
66348         (sed_extract_prog): Recognize 'Link' directive.
66349         (func_get_link_directive): New function.
66350         (func_import): Show summary of link directives.
66351         Handle --extract-link-directive option.
66352         * modules/acl (Link): New section.
66353         * modules/clock-time (Link): New section.
66354         * modules/euidaccess (Link): New section.
66355         * modules/gettext (Link): New section.
66356         * modules/iconv (Link): New section.
66357         * modules/lock (Link): New section.
66358         * modules/nanosleep (Link): New section.
66359         * modules/readline (Link): New section.
66360
66361 2007-01-27  Bruno Haible  <bruno@clisp.org>
66362
66363         Enforce the use of gnulib modules for unportable <string.h> functions.
66364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66365         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66366         (gl_HEADER_STRING_H_BODY): Require it.
66367         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66368         the symbol XYZ to one that gives a link error.
66369         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66370         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66371         * modules/mempcpy (configure.ac): Likewise.
66372         * modules/memrchr (configure.ac): Likewise.
66373         * modules/stpcpy (configure.ac): Likewise.
66374         * modules/stpncpy (configure.ac): Likewise.
66375         * modules/strcase (configure.ac): Likewise.
66376         * modules/strcasestr (configure.ac): Likewise.
66377         * modules/strchrnul (configure.ac): Likewise.
66378         * modules/strdup (configure.ac): Likewise.
66379         * modules/strndup (configure.ac): Likewise.
66380         * modules/strnlen (configure.ac): Likewise.
66381         * modules/strpbrk (configure.ac): Likewise.
66382         * modules/strsep (configure.ac): Likewise.
66383         * modules/strstr (configure.ac): Likewise.
66384         * modules/strtok_r (configure.ac): Likewise.
66385
66386 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66387
66388         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66389
66390 2007-01-30  Jim Meyering  <jim@meyering.net>
66391
66392         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66393
66394 2007-01-29  Bruno Haible  <bruno@clisp.org>
66395
66396         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66397         * lib/execute.c: Likewise.
66398         * lib/pipe.c: Likewise.
66399         * lib/printf-args.h: Likewise.
66400         * lib/printf-args.c: Likewise.
66401         * lib/printf-parse.c: Likewise.
66402         * lib/vasnprintf.c: Likewise.
66403
66404 2007-01-29  Eric Blake  <ebb9@byu.net>
66405
66406         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66407         declaration.
66408
66409 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         * lib/strptime.h (strptime): Use 'restrict' for args where
66412         POSIX requires this.
66413         * lib/strptime.c (strptime): Likewise.
66414         Change license notice from LGPL to GPL, since gnulib-tool will
66415         change this as needed.
66416         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66417         defined.
66418         Include "strptime.h" first, to check interface.
66419         Do not #undef _LIBC and _NL_CURRENT.
66420         Do not include <stdlib.h>; no longer needed.
66421         Include "time_r.h" and declare ptime_locale_status
66422         only if _LIBC is not defined.
66423         (__P): Remove unused macro.
66424         (match_string): Bring back glibc version, but use it only if _LIBC
66425         is defined.
66426         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66427         Remove unnecessary assertion and abort() call.
66428         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66429         * m4/strptime.m4: Fix serial number comment.
66430         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66431         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66432         (Depends-on): Add time_r.
66433
66434 2007-01-29  Bruno Haible  <bruno@clisp.org>
66435
66436         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66437         strptime.
66438         * modules/strptime (Depends-on): Add stdbool.
66439         * lib/strptime.h: Include <time.h> always. Add comments.
66440
66441 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66442
66443         * modules/strptime: New file.
66444         * lib/strptime.h: New file.
66445         * lib/strptime.c: New file.
66446         * m4/strptime.m4: New file.
66447
66448 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66449
66450         * MODULES.html.sh: New module mpsort.
66451         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66452
66453         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66454         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66455         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66456         All uses changed.
66457         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66458         All uses changed.
66459         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66460         to _Restrict_.
66461         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66462         the parameter matches the prototype.
66463
66464 2007-01-28  Jim Meyering  <jim@meyering.net>
66465
66466         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66467         sys/time.h here, reverting that part of the previous patch:
66468         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66469
66470 2007-01-28  Bruno Haible  <bruno@clisp.org>
66471
66472         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66473         value of $(SYS_TIME_H).
66474         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66475         remove it conditionally, too. [added by Jim Meyering]
66476         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66478         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66479         GETTIMEOFDAY_REPLACEMENT to 1.
66480
66481 2007-01-28  Bruno Haible  <bruno@clisp.org>
66482
66483         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66484         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66485         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66486         Set UNISTD_H instead of UNISTD_H2.
66487         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66488
66489 2007-01-28  Bruno Haible  <bruno@clisp.org>
66490
66491         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66492         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66493
66494 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66495
66496         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66497         (func_create_testdir): Ensure C locale for `grep' and `tr'
66498         character ranges.
66499         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66500         ACLOCAL_AMFLAGS parsing state machine.
66501
66502 2007-01-27  Bruno Haible  <bruno@clisp.org>
66503
66504         * modules/unistr/base: Update.
66505
66506 2007-01-27  Bruno Haible  <bruno@clisp.org>
66507
66508         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66509         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66510         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66511         modules/unistr/u32-mbtouc.
66512         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66513         * lib/unistr.h: Update.
66514         * lib/linebreak.c: Update.
66515         * modules/unistr/u32-mbtouc: Renamed from
66516         modules/unistr/u32-mbtouc-safe.
66517         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66518         * lib/unistr.h: Update.
66519         * lib/unistr/u32-to-u8.c: Update.
66520         * lib/unistr/u32-to-u16.c: Update.
66521
66522 2007-01-27  Bruno Haible  <bruno@clisp.org>
66523
66524         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66525         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66526         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66527         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66528         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66529         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66530         modules/unistr/u16-mbtouc.
66531         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66532         * lib/unistr.h: Update.
66533         * lib/linebreak.c: Update.
66534         * modules/linebreak: Update.
66535         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66536         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66537         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66538         * modules/unistr/u16-mbtouc: Renamed from
66539         modules/unistr/u16-mbtouc-safe.
66540         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66541         * lib/unistr.h: Update.
66542         * lib/unistr/u16-to-u8.c: Update.
66543         * modules/unistr/u16-to-u8: Update.
66544         * lib/unistr/u16-to-u32.c: Update.
66545         * modules/unistr/u16-to-u32: Update.
66546
66547 2007-01-27  Bruno Haible  <bruno@clisp.org>
66548
66549         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66550         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66551         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66552         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66553         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66554         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66555         modules/unistr/u8-mbtouc.
66556         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66557         * lib/unistr.h: Update.
66558         * lib/striconveh.c: Update.
66559         * modules/striconveh: Update.
66560         * lib/linebreak.c: Update.
66561         * modules/linebreak: Update.
66562         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66563         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66564         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66565         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66566         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66567         * lib/unistr.h: Update.
66568         * lib/striconveh.c: Update.
66569         * modules/striconveh: Update.
66570         * lib/unistr/u8-to-u16.c: Update.
66571         * modules/unistr/u8-to-u16: Update.
66572         * lib/unistr/u8-to-u32.c: Update.
66573         * modules/unistr/u8-to-u32: Update.
66574
66575 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66576
66577         Sync from Libtool.
66578         * lib/argz.c: Do not include strings.h nor memory.h, include
66579         string.h unconditionally.  Patch by Simon Josefsson.
66580
66581 2007-01-27  Bruno Haible  <bruno@clisp.org>
66582
66583         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66584         from gl_HEADER_STRING_H_BODY.
66585         (gl_HEADER_STRING_H_BODY): Require it.
66586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66587         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66588         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66589         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66590         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66591         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66592         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66593         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66594         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66595         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66596         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66597         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66598         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66599         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66600         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66601
66602 2007-01-27  Bruno Haible  <bruno@clisp.org>
66603
66604         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66605         check_PROGRAMS into noinst_PROGRAMS.
66606         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66607         check_PROGRAMS in this case.
66608         (func_import): Set for_test to false.
66609         (func_create_testdir): Set for_test to true.
66610
66611 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66612             Bruno Haible  <bruno@clisp.org>
66613
66614         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66615         (Depends-on): Add string.
66616         (Includes): Use <string.h> instead of strcasestr.h.
66617         * modules/string (Makefile.am): Also substitute the value of
66618         REPLACE_STRCASESTR.
66619         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66620         assume strcasestr is declared in <string.h> not <strings.h>. Also
66621         set REPLACE_STRCASESTR.
66622         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66623         REPLACE_STRCASESTR.
66624         * lib/strcasestr.h: Remove file.
66625         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66626         * lib/string_.h (strcasestr): New declaration.
66627
66628 2007-01-27  Bruno Haible  <bruno@clisp.org>
66629
66630         * lib/string_.h: Use 'extern'.
66631
66632 2007-01-27  Jim Meyering  <jim@meyering.net>
66633
66634         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66635         of set-but-not-used local, "q".
66636
66637         * lib/mempcpy.c: Include <config.h> before <string.h>.
66638         This fixes a compilation error on HP-UX, due to the system's
66639         "restrict"-using mempcpy prototype.
66640
66641 2007-01-26  Bruno Haible  <bruno@clisp.org>
66642
66643         Small optimization.
66644         * lib/javacomp.c: Include c-strstr.h.
66645          (is_envjavac_gcj): Use c_strstr instead of strstr.
66646         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66647
66648 2007-01-26  Bruno Haible  <bruno@clisp.org>
66649
66650         * MODULES.html.sh (Unicode string functions): Add the new modules.
66651
66652         * modules/uniconv/u32-strconv-to-locale: New file.
66653         * lib/uniconv/u32-strconv-to-locale.c: New file.
66654
66655         * modules/uniconv/u16-strconv-to-locale: New file.
66656         * lib/uniconv/u16-strconv-to-locale.c: New file.
66657
66658         * modules/uniconv/u8-strconv-to-locale: New file.
66659         * lib/uniconv/u8-strconv-to-locale.c: New file.
66660
66661         * modules/uniconv/u32-strconv-from-locale: New file.
66662         * lib/uniconv/u32-strconv-from-locale.c: New file.
66663
66664         * modules/uniconv/u16-strconv-from-locale: New file.
66665         * lib/uniconv/u16-strconv-from-locale.c: New file.
66666
66667         * modules/uniconv/u8-strconv-from-locale: New file.
66668         * lib/uniconv/u8-strconv-from-locale.c: New file.
66669
66670         * modules/uniconv/u32-strconv-to-enc: New file.
66671         * lib/uniconv/u32-strconv-to-enc.c: New file.
66672         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66673         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66674
66675         * modules/uniconv/u16-strconv-to-enc: New file.
66676         * lib/uniconv/u16-strconv-to-enc.c: New file.
66677         * lib/uniconv/u-strconv-to-enc.h: New file.
66678         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66679         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66680
66681         * modules/uniconv/u8-strconv-to-enc: New file.
66682         * lib/uniconv/u8-strconv-to-enc.c: New file.
66683         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66684         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66685
66686         * modules/uniconv/u32-strconv-from-enc: New file.
66687         * lib/uniconv/u32-strconv-from-enc.c: New file.
66688         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66689         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66690
66691         * modules/uniconv/u16-strconv-from-enc: New file.
66692         * lib/uniconv/u16-strconv-from-enc.c: New file.
66693         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66694         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66695
66696         * modules/uniconv/u8-strconv-from-enc: New file.
66697         * lib/uniconv/u8-strconv-from-enc.c: New file.
66698         * lib/uniconv/u-strconv-from-enc.h: New file.
66699         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66700         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66701
66702         * modules/uniconv/u32-conv-from-enc: New file.
66703         * lib/uniconv/u32-conv-from-enc.c: New file.
66704         * modules/uniconv/u32-conv-from-enc-tests: New file.
66705         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66706
66707         * modules/uniconv/u16-conv-from-enc: New file.
66708         * lib/uniconv/u16-conv-from-enc.c: New file.
66709         * lib/uniconv/u-conv-from-enc.h: New file.
66710         * modules/uniconv/u16-conv-from-enc-tests: New file.
66711         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66712
66713         * modules/uniconv/u8-conv-from-enc: New file.
66714         * lib/uniconv/u8-conv-from-enc.c: New file.
66715         * modules/uniconv/u8-conv-from-enc-tests: New file.
66716         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66717
66718         * modules/uniconv/base: New file.
66719         * lib/uniconv.h: New file.
66720
66721 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66722
66723         * doc/gnulib-tool.texi (Initial import): Update to match current
66724         behavior with strdup module.
66725         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66726         * lib/memmem.h: Remove; all uses removed.  This is now done
66727         by <string.h>.
66728         * lib/mempcpy.h: Likewise.
66729         * lib/memrchr.h: Likewise.
66730         * lib/stpcpy.h: Likewise.
66731         * lib/stpncpy.h: Likewise.
66732         * lib/strcase.h: Likewise.
66733         * lib/strchrnul.h: Likewise.
66734         * lib/strdup.h: Likewise.
66735         * lib/strndup.h: Likewise.
66736         * lib/strnlen.h: Likewise.
66737         * lib/strpbrk.h: Likewise.
66738         * lib/strsep.h: Likewise.
66739         * lib/strstr.h: Likewise.
66740         * lib/strtok_r.h: Likewise.
66741         * lib/string_.h: New file.
66742         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66743         Rely on <string.h> instead.
66744         * lib/canon-host.c: Likewise.
66745         * lib/chdir-long.c: Likewise.
66746         * lib/concatpath.c: Likewise.
66747         * lib/exclude.c: Likewise.
66748         * lib/fchdir.c: Likewise.
66749         * lib/getaddrinfo.c: Likewise.
66750         * lib/getcwd.c: Likewise.
66751         * lib/getsubopt.c: Likewise.
66752         * lib/glob.c: Likewise.
66753         * lib/hard-locale.c: Likewise.
66754         * lib/iconvme.c: Likewise.
66755         * lib/javacomp.c: Likewise.
66756         * lib/mempcpy.c: Likewise.
66757         * lib/memrchr.c: Likewise.
66758         * lib/regex_internal.h: Likewise.
66759         * lib/stpncpy.c: Likewise.
66760         * lib/strcasecmp.c: Likewise.
66761         * lib/strchrnul.c: Likewise.
66762         * lib/strdup.c: Likewise.
66763         * lib/striconv.c: Likewise.
66764         * lib/striconveh.c: Likewise.
66765         * lib/striconveha.c: Likewise.
66766         * lib/strncasecmp.c: Likewise.
66767         * lib/strndup.c: Likewise.
66768         * lib/strnlen.c: Likewise.
66769         * lib/strsep.c: Likewise.
66770         * lib/strstr.c: Likewise.
66771         * lib/strtok_r.c: Likewise.
66772         * lib/userspec.c: Likewise.
66773         * lib/w32spawn.h: Likewise.
66774         * lib/xstrndup.c: Likewise.
66775         * lib/mountlist.c (strstr): Remove decl.
66776         * m4/string_h.m4: New file.
66777         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66778         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66780         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66781         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66782         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66783         Set REPLACE_STRCASECMP if necessary.
66784         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66785         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66786         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66787         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66788         HAVE_DECL_STRDUP if necessary.
66789         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66790         since gl_FUNC_STRNDUP does that now.
66791         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66792         Check for decl here...
66793         (gl_PREREQ_STRNLEN): ... not here.
66794         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66795         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66796         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66797         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66798         necessary.
66799         * modules/string: New file.
66800         * modules/memmem (Files): Remove special-purpose include file.
66801         (Depends-on): Add string.
66802         (Include): Include <string.h>, not the removed file.
66803         * modules/mempcpy: Likewise.
66804         * modules/memrchr: Likewise.
66805         * modules/stpcpy: Likewise.
66806         * modules/stpncpy: Likewise.
66807         * modules/strcase: Likewise.
66808         * modules/strchrnul: Likewise.
66809         * modules/strdup: Likewise.
66810         * modules/strndup: Likewise.
66811         * modules/strnlen: Likewise.
66812         * modules/strpbrk: Likewise.
66813         * modules/strsep: Likewise.
66814         * modules/strstr: Likewise.
66815         * modules/strtok_r: Likewise.
66816         * tests/test-dirname.c: Don't include "strdup.h", since
66817         <string.h> now suffices.
66818         * tests/test-memmem.c: Don't include "memmem.h", since
66819         <string.h> now suffices.
66820
66821 2007-01-25  Bruno Haible  <bruno@clisp.org>
66822
66823         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66824         *resultp is 0.
66825
66826         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66827         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66828         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66829         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66830
66831         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66832         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66833         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66834         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66835         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66836         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66837
66838 2007-01-24  Bruno Haible  <bruno@clisp.org>
66839
66840         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66841         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66842         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66843         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66844         gl_FUNC_FTS_CORE.
66845         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66846         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66847         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66848         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66849         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66850         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66851         gl_FUNC_FCHOWNAT.
66852         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66853         gl_FUNC_STRFTIME.
66854         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66855         Reported by Ralf Wildenhues.
66856
66857 2007-01-24  Bruno Haible  <bruno@clisp.org>
66858
66859         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66860         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66861         gl_GETADDRINFO.
66862         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66863         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66864         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66865
66866 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66869         Don't use 'exit'; just return from 'main'.
66870         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66871
66872         * lib/fnmatch_.h: Readjust white space and comments to match
66873         glibc, to avoid spurious diffs.
66874
66875 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66876
66877         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66878         2004-12-01 change by Jakub Jelinek, since this code won't compile
66879         if !LIBC.  Problem reported by Bob Proulx.
66880
66881 2007-01-23  Bruno Haible  <bruno@clisp.org>
66882
66883         * lib/striconveh.c: Include c-strcaseeq.h.
66884         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66885         * modules/striconveh (Depends-on): Add c-strcaseeq.
66886
66887 2007-01-23  Bruno Haible  <bruno@clisp.org>
66888
66889         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66890
66891         * modules/c-strcaseeq: New file.
66892         * lib/c-strcaseeq.h: New file.
66893
66894         * modules/streq: New file.
66895         * lib/streq.h: New file.
66896
66897 2007-01-23  Bruno Haible  <bruno@clisp.org>
66898
66899         * modules/striconveha-tests: New file.
66900         * tests/test-striconveha.c: New file.
66901
66902         * lib/striconveha.h: Include <stdbool.h>.
66903         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66904         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66905         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66906         (mem_iconveha): New function.
66907         (str_iconveha_notranslit): Renamed from str_iconveha.
66908         (str_iconveha): New function.
66909         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66910         c-strcase.
66911
66912 2007-01-23  Bruno Haible  <bruno@clisp.org>
66913
66914         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66915         encodings without forgiving before trying any encoding with handler.
66916         (str_iconveha): Try all encodings without forgiving before trying any
66917         encoding with handler.
66918
66919 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66920
66921         Import the following changes from libc.
66922
66923         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66924
66925         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66926
66927         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66928
66929         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66930         normal_bracket label.
66931
66932         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66933
66934         [BZ #361]
66935         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66936         to normal_bracket after fetching the next character.
66937
66938 2007-01-22  Bruno Haible  <bruno@clisp.org>
66939
66940         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66941         argument.
66942         * lib/striconveh.c (iconv_carefully_1): New function.
66943         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66944         argument.
66945         (str_cd_iconveh): Update.
66946         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66947         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66948         * tests/test-striconveh.c (MAGIC): New macro.
66949         (new_offsets): New function.
66950         (main): Test call with and without offsets.
66951
66952 2007-01-22  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66955         * modules/sys_select (Makefile.am): Likewise.
66956         * modules/sys_socket (Makefile.am): Likewise.
66957         * modules/sys_time (Makefile.am): Likewise.
66958
66959 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66960
66961         * modules/gettimeofday (License): Change from GPL to LGPL, since
66962         gettimeofday is a library function.
66963
66964 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66965
66966         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66967
66968 2007-01-21  Bruno Haible  <bruno@clisp.org>
66969
66970         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66971
66972 2007-01-21  Bruno Haible  <bruno@clisp.org>
66973
66974         * modules/striconveha: New file.
66975         * lib/striconveha.h: New file.
66976         * lib/striconveha.c: New file.
66977         * MODULES.html.sh (Internationalization functions): Add striconveha.
66978         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66979         string.
66980         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66981
66982 2007-01-21  Bruno Haible  <bruno@clisp.org>
66983
66984         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66985         * lib/striconveh.c (str_iconveh): Likewise.
66986
66987 2007-01-21  Bruno Haible  <bruno@clisp.org>
66988
66989         * lib/striconveh.h (mem_iconveh): New declaration.
66990         * lib/striconveh.c (mem_iconveh): New function.
66991         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66992
66993 2007-01-21  Bruno Haible  <bruno@clisp.org>
66994
66995         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66996
66997         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66998         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66999         original result buffer.
67000         (str_cd_iconveh): Update.
67001         * tests/test-striconveh.c (main): Update.
67002
67003         * lib/striconv.h (mem_cd_iconv): Change specification.
67004         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
67005         result buffer.
67006         (str_cd_iconv): Update.
67007         * tests/test-striconv.c (main): Update.
67008
67009 2007-01-21  Bruno Haible  <bruno@clisp.org>
67010
67011         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
67012
67013 2007-01-20  Jim Meyering  <jim@meyering.net>
67014
67015         * lib/userspec.c (parse_with_separator): If a user or group string
67016         starts with "+", skip the corresponding name-to-ID look-up, since
67017         such a look-up must fail: user and group names may not include "+".
67018
67019 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * lib/poll.c: Include sys/time.h and time.h unconditionally,
67022         since we now assume the sys_time module.
67023         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
67024         check for sys/time.h; no longer needed.
67025         * modules/poll (Depends-on): Depend on sys_time.
67026
67027 2007-01-18  Bruno Haible  <bruno@clisp.org>
67028
67029         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
67030         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67031
67032         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
67033         gettimeofday.
67034
67035         * tests/test-gettimeofday.c: Include <time.h>.
67036         (dummy): Remove variable.
67037
67038         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
67039         gl_HEADER_SYS_TIME_H.
67040         (gl_HEADER_SYS_TIME_H): New macro.
67041
67042         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
67043         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67044         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
67045         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
67046         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67047         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
67048         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
67049         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67050         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
67051         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
67052         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67053
67054         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
67055         last change; it caused a compilation error when cross-compiling to
67056         Cygwin.
67057
67058 2007-01-18  Jim Meyering  <jim@meyering.net>
67059
67060         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
67061         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
67062         than the race-prone "test -d sys || mkdir sys".
67063         (configure.ac): Use AC_PROG_MKDIR_P.
67064         * modules/sys_select: Likewise.
67065         * modules/sys_socket: Likewise.
67066         * modules/sys_time: Likewise.
67067
67068 2007-01-18  Eric Blake  <ebb9@byu.net>
67069
67070         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
67071         replace gettimeofday.
67072         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
67073         name, to avoid infinite recursion.
67074
67075 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
67078         module sys_time.
67079         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
67080         assume timespec.h defines struct timeval.
67081         * lib/settime.c: Likewise.
67082         * lib/utimens.c: Likewise.
67083         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
67084         since we now assume the gettimeofday module.
67085         * lib/tempname.c (__gen_tempname): Likewise.
67086         * lib/gettimeofday.h: Remove.
67087         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
67088         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
67089         Include <time.h>, for 'time()'.
67090         (localtime_buffer_addr): Also use this workaround if
67091         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
67092         to simplify the uses.  All uses changed.
67093         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
67094         that #undef is inside {}, and 'const' follows type name consistently.
67095         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
67096         (gettimeofday): Do not use the maximum possible value for
67097         tv->tv_usec, since that might break usages other than ls.c.
67098         Instead, we'll leave ls.c alone.  This undoes today's patch
67099         by Bruno.  Add a compile-time warning for 1s-clock resolution;
67100         we've never observed the problem but might as well keep the
67101         canary.
67102         * lib/nanosleep.c: Include timespec.h first, for interface check.
67103         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
67104         now assume the sys_time module.
67105         * lib/tempname.c: Likewise.
67106         * lib/timespec.h: Likewise.
67107         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
67108         needed.
67109         * lib/strftime.c: Likewise.
67110         * lib/timespec.h: Likewise.
67111         * lib/posixtm.c: Include posixtm.h first, for interface check.
67112         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
67113         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
67114         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
67115         * lib/sys_time_.h: New file.
67116         * lib/timespec.h (struct timespec): Use long int, not long.
67117         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
67118         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
67119         Remove obsolescent call to AC_HEADER_TIME.
67120         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
67121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67122         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
67123         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
67124         Likewise.
67125         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
67126         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
67127         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
67128         into the sys_time module.  Check for gettimeofday just once.
67129         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
67130         for gettimeofday signature to just check the signature.  Merely
67131         compile it, since linking doesn't test signature.  Improve test for
67132         whether gettimeofday.o is actually needed.
67133         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
67134         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
67135         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
67136         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67137         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
67138         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
67139         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
67140         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
67141         than worrying about sys/time.h.
67142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67143         Don't bother worrying about TIME_WITH_SYS_TIME.
67144         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
67145         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
67146         * m4/sys_time_h.m4: New file.
67147         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
67148         Don't include sys/time.h.  Return from main rather than exiting.
67149         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
67150         all uses changed.
67151         * modules/gethrxtime (Depends-on): Add sys_time.
67152         * modules/gettime (Depends-on): Likewise.
67153         * modules/gettimeofday (Depends-on): Likewise.
67154         * modules/nanosleep (Depends-on): Likewise.
67155         * modules/settime (Depends-on): Likewise.
67156         * modules/tempname (Depends-on): Likewise.
67157         * modules/utimens (Depends-on): Likewise.
67158         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
67159         (Include): Change back to <sys/time.h>.
67160         (Maintainer): Add self.
67161         * modules/sys_time: New file.
67162         * modules/tempname (Depends-on): Add gettimeofday.
67163         * tests/test-gettimeofday.c: Include <sys/time.h>
67164         rather than gettimeofday.h.
67165
67166 2007-01-17  Bruno Haible  <bruno@clisp.org>
67167
67168         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67169         the license default to GPL.
67170         (func_create_testdir): Don't complain if a module is LGPL and its
67171         tests module depends on GPLed modules.
67172
67173 2007-01-17  Bruno Haible  <bruno@clisp.org>
67174
67175         * lib/gettimeofday.c (gettimeofday): Add code for the case
67176         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67177         maximum possible value for tv->tv_usec, rather than the minimum one.
67178
67179 2005-10-08  Martin Lambers  <marlam@marlam.de>
67180 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67181 2007-01-16  Bruno Haible  <bruno@clisp.org>
67182
67183         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67184         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67185         gl_FUNC_GETTIMEOFDAY.
67186         (Include): Add gettimeofday.h.
67187         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67188         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67189         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67190         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67191         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67192         * lib/gettimeofday.h: New file.
67193         * lib/gettimeofday.c: Include <sys/timeb.h>.
67194         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67195         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67196         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67197         fall back on time().
67198
67199         * tests/test-gettimeofday.c: New file.
67200         * modules/gettimeofday-tests: New file.
67201
67202 2007-01-16  Eric Blake  <ebb9@byu.net>
67203
67204         * modules/fnmatch (Depends-on): Depend on wchar.
67205         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67206         * m4/fnmatch.m4: Likewise.
67207         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67208         * m4/mbchar.m4: Likewise.
67209         * modules/mbswidth (Depends-on): Depend on wchar.
67210         * lib/mbswidth.c: Assume <wchar.h>.
67211         * m4/mbswidth.m4: Likewise.
67212         * modules/quotearg (Depends-on): Depend on wchar.
67213         * lib/quotearg.c: Assume <wchar.h>.
67214         * m4/quotearg.m4: Likewise.
67215         * modules/regex (Depends-on): Depend on wchar.
67216         * lib/regex_internal.h: Assume <wchar.h>.
67217         * m4/regex.m4: Likewise.
67218         * modules/stdint (Depends-on): Depend on wchar.
67219         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67220         * m4/stdint.m4: Likewise.
67221         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67222         * modules/strftime (Depends-on): Depend on wchar.
67223         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67224         * modules/strtol (Depends-on): Depend on wchar.
67225         * lib/strtol.c: Assume <wchar.h>.
67226         * modules/wcwidth (Depends-on): Depend on wchar.
67227         * lib/wcwidth.h: Assume <wchar.h>.
67228         * m4/wcwidth.m4: Likewise.
67229
67230 2007-01-16  Bruno Haible  <bruno@clisp.org>
67231
67232         * modules/csharpexec-script: New, created from...
67233         * modules/csharpexec: ... this.
67234
67235 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67236
67237         * modules/javaexec-script: New, created from...
67238         * modules/javaexec: ... this.
67239
67240 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67241
67242         * modules/poll (Dependencies): Add sys_select.
67243
67244 2007-01-15  Jim Meyering  <jim@meyering.net>
67245
67246         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67247         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67248         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67249         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67250
67251 2007-01-15  Bruno Haible  <bruno@clisp.org>
67252
67253         * modules/striconveh: New file.
67254         * lib/striconveh.h: New file.
67255         * lib/striconveh.c: New file.
67256         * MODULES.html.sh (Internationalization functions): Add striconveh.
67257
67258         * modules/striconveh-tests: New file.
67259         * tests/test-striconveh.c: New file.
67260
67261 2007-01-15  Bruno Haible  <bruno@clisp.org>
67262
67263         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67264         not from GNU libiconv or GNU libc.
67265
67266 2007-01-15  Bruno Haible  <bruno@clisp.org>
67267
67268         * doc/gnulib-intro.texi (Copyright): Explain the different license
67269         terms for module descriptions, autoconf macros, tests, documentation.
67270
67271 2007-01-14  Bruno Haible  <bruno@clisp.org>
67272
67273         * modules/striconv-tests: New file.
67274         * tests/test-striconv.c: New file.
67275
67276 2007-01-14  Bruno Haible  <bruno@clisp.org>
67277
67278         * modules/iconv-tests: New file.
67279         * tests/test-iconv.c: New file.
67280
67281 2007-01-14  Bruno Haible  <bruno@clisp.org>
67282
67283         * gnulib-tool (func_get_license): For test modules, use the license of
67284         the main module.
67285
67286 2007-01-14  Bruno Haible  <bruno@clisp.org>
67287
67288         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67289         if iconv is found to exist.
67290
67291 2007-01-14  Bruno Haible  <bruno@clisp.org>
67292
67293         * modules/c-ctype-tests: New file.
67294         * tests/test-c-ctype.c: New file.
67295
67296 2007-01-14  Bruno Haible  <bruno@clisp.org>
67297
67298         * modules/binary-io-tests: New file.
67299         * tests/test-binary-io.sh: New file.
67300         * tests/test-binary-io.c: New file.
67301
67302 2007-01-14  Bruno Haible  <bruno@clisp.org>
67303
67304         * modules/array-oset-tests: New file.
67305         * tests/test-array_oset.c: New file.
67306
67307 2007-01-14  Bruno Haible  <bruno@clisp.org>
67308
67309         * modules/array-list-tests: New file.
67310         * tests/test-array_list.c: New file.
67311
67312 2007-01-14  Bruno Haible  <bruno@clisp.org>
67313
67314         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67315         and make.
67316         Reported by Simon Josefsson in
67317         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67318
67319 2007-01-14  Bruno Haible  <bruno@clisp.org>
67320
67321         * modules/allocsa-tests: New file.
67322         * tests/test-allocsa.c: New file.
67323
67324 2007-01-14  Bruno Haible  <bruno@clisp.org>
67325
67326         * modules/fchdir (Depends-on): Add absolute-header.
67327         * modules/unistd (Depends-on): Likewise.
67328
67329 2006-12-30  Bruno Haible  <bruno@clisp.org>
67330
67331         * modules/fchdir: New file.
67332         * modules/unistd (Files): Add lib/unistd_.h.
67333         (Makefile.am): Generate unistd.h from unistd_.h.
67334         * lib/fchdir.c: New file.
67335         * lib/dirent_.h: New file.
67336         * lib/unistd_.h: New file.
67337         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67338         * m4/fchdir.m4: New file.
67339         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67340         (gl_HEADER_UNISTD): Invoke it.
67341         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67342         function.
67343         * lib/backupfile.c (opendir, closedir): Undefine.
67344         * lib/chown.c (open, close): Undefine.
67345         * lib/clean-temp.c (open, close): Undefine.
67346         * lib/copy-file.c (open, close): Undefine.
67347         * lib/execute.c (open, close): Undefine.
67348         * lib/fsusage.c (open, close): Undefine.
67349         * lib/gc-gnulib.c (open, close): Undefine.
67350         * lib/getcwd.c (opendir, closedir): Undefine.
67351         * lib/glob.c (opendir, closedir): Undefine.
67352         * lib/javacomp.c (open, close): Undefine.
67353         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67354         * lib/openat-proc.c (open, close): Undefine.
67355         * lib/pagealign_alloc.c (open, close): Undefine.
67356         * lib/pipe.c (open, close): Undefine.
67357         * lib/progreloc.c (open, close): Undefine.
67358         * lib/savedir.c (opendir, closedir): Undefine.
67359         * lib/utime.c (open, close): Undefine.
67360         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67361
67362 2007-01-10  Bruno Haible  <bruno@clisp.org>
67363
67364         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67365
67366 2007-01-12  Eric Blake  <ebb9@byu.net>
67367
67368         Provide a robust <wchar.h>.  Further simplifications are now
67369         possible in other modules, but not included here.
67370         * modules/wchar: New module.
67371         * m4/wchar.m4: New file.
67372         * lib/wchar_.h: Likewise.
67373         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67374         of the new module.
67375         * MODULES.html.sh (Extended multibyte and wide character utilities):
67376         New section.
67377
67378 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67379
67380         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67381         to a reasonable default for memory allocation.
67382         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67383         file system that reports garbage st_size values for symlinks.
67384         Problem reported by Liyang Hu.
67385
67386 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67387
67388         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67389         Emacs .#* auto-save files).
67390
67391 2007-01-11  Bruno Haible  <bruno@clisp.org>
67392
67393         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67394         directory.
67395
67396 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67397
67398         Use @...@ consistently in lib/wctype_.h.
67399         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67400         on it being set to 1 or 0.
67401         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67402         go back to AC_SUBSTing it.
67403         * modules/wctype (Makefile.am): Undo previous change.
67404
67405 2007-01-10  Eric Blake  <ebb9@byu.net>
67406
67407         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67408         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67409         * modules/wctype (Makefile.am): Likewise.
67410         Reported by Chris McGuire.
67411
67412 2007-01-10  Jim Meyering  <jim@meyering.net>
67413
67414         fts.c: a small readability/maintainability improvement
67415         * lib/fts.c (fts_read): Make this code slightly more readable and
67416         maintainable by hoisting the "sp->fts_cur = p" assignments to
67417         immediately follow the statements that set P.  Derived from
67418         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67419
67420 2007-01-10  Eric Blake  <ebb9@byu.net>
67421
67422         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67423         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67425         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67426         Reported by Chris McGuire.
67427
67428 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67429
67430         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67431         in sed script.
67432
67433 2007-01-09  Bruno Haible  <bruno@clisp.org>
67434
67435         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67436         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67437         variables.
67438         (func_module): Use them.
67439
67440 2007-01-09  Bruno Haible  <bruno@clisp.org>
67441
67442         * modules/unistr/base: New file.
67443         * lib/unistr.h: New file.
67444
67445         * modules/unistr/u8-to-u16: New file.
67446         * lib/unistr/u8-to-u16.c: New file.
67447
67448         * modules/unistr/u8-to-u32: New file.
67449         * lib/unistr/u8-to-u32.c: New file.
67450
67451         * modules/unistr/u16-to-u8: New file.
67452         * lib/unistr/u16-to-u8.c: New file.
67453
67454         * modules/unistr/u16-to-u32: New file.
67455         * lib/unistr/u16-to-u32.c: New file.
67456
67457         * modules/unistr/u32-to-u8: New file.
67458         * lib/unistr/u32-to-u8.c: New file.
67459
67460         * modules/unistr/u32-to-u16: New file.
67461         * lib/unistr/u32-to-u16.c: New file.
67462
67463         * modules/unistr/u8-check: New file.
67464         * modules/unistr/u16-check: New file.
67465         * modules/unistr/u32-check: New file.
67466         * lib/unistr/u8-check.c: New file.
67467         * lib/unistr/u16-check.c: New file.
67468         * lib/unistr/u32-check.c: New file.
67469
67470         * modules/unistr/u8-chr: New file.
67471         * modules/unistr/u16-chr: New file.
67472         * modules/unistr/u32-chr: New file.
67473         * lib/unistr/u8-chr.c: New file.
67474         * lib/unistr/u16-chr.c: New file.
67475         * lib/unistr/u32-chr.c: New file.
67476
67477         * modules/unistr/u8-cmp: New file.
67478         * modules/unistr/u16-cmp: New file.
67479         * modules/unistr/u32-cmp: New file.
67480         * lib/unistr/u8-cmp.c: New file.
67481         * lib/unistr/u16-cmp.c: New file.
67482         * lib/unistr/u32-cmp.c: New file.
67483
67484         * modules/unistr/u8-cpy: New file.
67485         * modules/unistr/u16-cpy: New file.
67486         * modules/unistr/u32-cpy: New file.
67487         * lib/unistr/u8-cpy.c: New file.
67488         * lib/unistr/u16-cpy.c: New file.
67489         * lib/unistr/u32-cpy.c: New file.
67490         * lib/unistr/u-cpy.h: New file.
67491
67492         * modules/unistr/u8-cpy-alloc: New file.
67493         * modules/unistr/u16-cpy-alloc: New file.
67494         * modules/unistr/u32-cpy-alloc: New file.
67495         * lib/unistr/u8-cpy-alloc.c: New file.
67496         * lib/unistr/u16-cpy-alloc.c: New file.
67497         * lib/unistr/u32-cpy-alloc.c: New file.
67498         * lib/unistr/u-cpy-alloc.h: New file.
67499
67500         * modules/unistr/u8-endswith: New file.
67501         * modules/unistr/u16-endswith: New file.
67502         * modules/unistr/u32-endswith: New file.
67503         * lib/unistr/u8-endswith.c: New file.
67504         * lib/unistr/u16-endswith.c: New file.
67505         * lib/unistr/u32-endswith.c: New file.
67506         * lib/unistr/u-endswith.h: New file.
67507
67508         * modules/unistr/u8-mblen: New file.
67509         * modules/unistr/u16-mblen: New file.
67510         * modules/unistr/u32-mblen: New file.
67511         * lib/unistr/u8-mblen.c: New file.
67512         * lib/unistr/u16-mblen.c: New file.
67513         * lib/unistr/u32-mblen.c: New file.
67514
67515         * modules/unistr/u8-mbtouc: New file.
67516         * modules/unistr/u16-mbtouc: New file.
67517         * modules/unistr/u32-mbtouc: New file.
67518         * lib/unistr/u8-mbtouc.c: New file.
67519         * lib/unistr/u16-mbtouc.c: New file.
67520         * lib/unistr/u32-mbtouc.c: New file.
67521
67522         * modules/unistr/u8-mbtouc-safe: New file.
67523         * modules/unistr/u16-mbtouc-safe: New file.
67524         * modules/unistr/u32-mbtouc-safe: New file.
67525         * lib/unistr/u8-mbtouc-safe.c: New file.
67526         * lib/unistr/u16-mbtouc-safe.c: New file.
67527         * lib/unistr/u32-mbtouc-safe.c: New file.
67528
67529         * modules/unistr/u8-move: New file.
67530         * modules/unistr/u16-move: New file.
67531         * modules/unistr/u32-move: New file.
67532         * lib/unistr/u8-move.c: New file.
67533         * lib/unistr/u16-move.c: New file.
67534         * lib/unistr/u32-move.c: New file.
67535         * lib/unistr/u-move.h: New file.
67536
67537         * modules/unistr/u8-next: New file.
67538         * modules/unistr/u16-next: New file.
67539         * modules/unistr/u32-next: New file.
67540         * lib/unistr/u8-next.c: New file.
67541         * lib/unistr/u16-next.c: New file.
67542         * lib/unistr/u32-next.c: New file.
67543
67544         * modules/unistr/u8-prev: New file.
67545         * modules/unistr/u16-prev: New file.
67546         * modules/unistr/u32-prev: New file.
67547         * lib/unistr/u8-prev.c: New file.
67548         * lib/unistr/u16-prev.c: New file.
67549         * lib/unistr/u32-prev.c: New file.
67550
67551         * modules/unistr/u8-set: New file.
67552         * modules/unistr/u16-set: New file.
67553         * modules/unistr/u32-set: New file.
67554         * lib/unistr/u8-set.c: New file.
67555         * lib/unistr/u16-set.c: New file.
67556         * lib/unistr/u32-set.c: New file.
67557         * lib/unistr/u-set.h: New file.
67558
67559         * modules/unistr/u8-startswith: New file.
67560         * modules/unistr/u16-startswith: New file.
67561         * modules/unistr/u32-startswith: New file.
67562         * lib/unistr/u8-startswith.c: New file.
67563         * lib/unistr/u16-startswith.c: New file.
67564         * lib/unistr/u32-startswith.c: New file.
67565         * lib/unistr/u-startswith.h: New file.
67566
67567         * modules/unistr/u8-stpcpy: New file.
67568         * modules/unistr/u16-stpcpy: New file.
67569         * modules/unistr/u32-stpcpy: New file.
67570         * lib/unistr/u8-stpcpy.c: New file.
67571         * lib/unistr/u16-stpcpy.c: New file.
67572         * lib/unistr/u32-stpcpy.c: New file.
67573         * lib/unistr/u-stpcpy.h: New file.
67574
67575         * modules/unistr/u8-stpncpy: New file.
67576         * modules/unistr/u16-stpncpy: New file.
67577         * modules/unistr/u32-stpncpy: New file.
67578         * lib/unistr/u8-stpncpy.c: New file.
67579         * lib/unistr/u16-stpncpy.c: New file.
67580         * lib/unistr/u32-stpncpy.c: New file.
67581         * lib/unistr/u-stpncpy.h: New file.
67582
67583         * modules/unistr/u8-strcat: New file.
67584         * modules/unistr/u16-strcat: New file.
67585         * modules/unistr/u32-strcat: New file.
67586         * lib/unistr/u8-strcat.c: New file.
67587         * lib/unistr/u16-strcat.c: New file.
67588         * lib/unistr/u32-strcat.c: New file.
67589         * lib/unistr/u-strcat.h: New file.
67590
67591         * modules/unistr/u8-strchr: New file.
67592         * modules/unistr/u16-strchr: New file.
67593         * modules/unistr/u32-strchr: New file.
67594         * lib/unistr/u8-strchr.c: New file.
67595         * lib/unistr/u16-strchr.c: New file.
67596         * lib/unistr/u32-strchr.c: New file.
67597
67598         * modules/unistr/u8-strcmp: New file.
67599         * modules/unistr/u16-strcmp: New file.
67600         * modules/unistr/u32-strcmp: New file.
67601         * lib/unistr/u8-strcmp.c: New file.
67602         * lib/unistr/u16-strcmp.c: New file.
67603         * lib/unistr/u32-strcmp.c: New file.
67604
67605         * modules/unistr/u8-strcpy: New file.
67606         * modules/unistr/u16-strcpy: New file.
67607         * modules/unistr/u32-strcpy: New file.
67608         * lib/unistr/u8-strcpy.c: New file.
67609         * lib/unistr/u16-strcpy.c: New file.
67610         * lib/unistr/u32-strcpy.c: New file.
67611         * lib/unistr/u-strcpy.h: New file.
67612
67613         * modules/unistr/u8-strcspn: New file.
67614         * modules/unistr/u16-strcspn: New file.
67615         * modules/unistr/u32-strcspn: New file.
67616         * lib/unistr/u8-strcspn.c: New file.
67617         * lib/unistr/u16-strcspn.c: New file.
67618         * lib/unistr/u32-strcspn.c: New file.
67619         * lib/unistr/u-strcspn.h: New file.
67620
67621         * modules/unistr/u8-strdup: New file.
67622         * modules/unistr/u16-strdup: New file.
67623         * modules/unistr/u32-strdup: New file.
67624         * lib/unistr/u8-strdup.c: New file.
67625         * lib/unistr/u16-strdup.c: New file.
67626         * lib/unistr/u32-strdup.c: New file.
67627         * lib/unistr/u-strdup.h: New file.
67628
67629         * modules/unistr/u8-strlen: New file.
67630         * modules/unistr/u16-strlen: New file.
67631         * modules/unistr/u32-strlen: New file.
67632         * lib/unistr/u8-strlen.c: New file.
67633         * lib/unistr/u16-strlen.c: New file.
67634         * lib/unistr/u32-strlen.c: New file.
67635         * lib/unistr/u-strlen.h: New file.
67636
67637         * modules/unistr/u8-strmblen: New file.
67638         * modules/unistr/u16-strmblen: New file.
67639         * modules/unistr/u32-strmblen: New file.
67640         * lib/unistr/u8-strmblen.c: New file.
67641         * lib/unistr/u16-strmblen.c: New file.
67642         * lib/unistr/u32-strmblen.c: New file.
67643
67644         * modules/unistr/u8-strmbtouc: New file.
67645         * modules/unistr/u16-strmbtouc: New file.
67646         * modules/unistr/u32-strmbtouc: New file.
67647         * lib/unistr/u8-strmbtouc.c: New file.
67648         * lib/unistr/u16-strmbtouc.c: New file.
67649         * lib/unistr/u32-strmbtouc.c: New file.
67650
67651         * modules/unistr/u8-strncat: New file.
67652         * modules/unistr/u16-strncat: New file.
67653         * modules/unistr/u32-strncat: New file.
67654         * lib/unistr/u8-strncat.c: New file.
67655         * lib/unistr/u16-strncat.c: New file.
67656         * lib/unistr/u32-strncat.c: New file.
67657         * lib/unistr/u-strncat.h: New file.
67658
67659         * modules/unistr/u8-strncmp: New file.
67660         * modules/unistr/u16-strncmp: New file.
67661         * modules/unistr/u32-strncmp: New file.
67662         * lib/unistr/u8-strncmp.c: New file.
67663         * lib/unistr/u16-strncmp.c: New file.
67664         * lib/unistr/u32-strncmp.c: New file.
67665
67666         * modules/unistr/u8-strncpy: New file.
67667         * modules/unistr/u16-strncpy: New file.
67668         * modules/unistr/u32-strncpy: New file.
67669         * lib/unistr/u8-strncpy.c: New file.
67670         * lib/unistr/u16-strncpy.c: New file.
67671         * lib/unistr/u32-strncpy.c: New file.
67672         * lib/unistr/u-strncpy.h: New file.
67673
67674         * modules/unistr/u8-strnlen: New file.
67675         * modules/unistr/u16-strnlen: New file.
67676         * modules/unistr/u32-strnlen: New file.
67677         * lib/unistr/u8-strnlen.c: New file.
67678         * lib/unistr/u16-strnlen.c: New file.
67679         * lib/unistr/u32-strnlen.c: New file.
67680         * lib/unistr/u-strnlen.h: New file.
67681
67682         * modules/unistr/u8-strpbrk: New file.
67683         * modules/unistr/u16-strpbrk: New file.
67684         * modules/unistr/u32-strpbrk: New file.
67685         * lib/unistr/u8-strpbrk.c: New file.
67686         * lib/unistr/u16-strpbrk.c: New file.
67687         * lib/unistr/u32-strpbrk.c: New file.
67688         * lib/unistr/u-strpbrk.h: New file.
67689
67690         * modules/unistr/u8-strrchr: New file.
67691         * modules/unistr/u16-strrchr: New file.
67692         * modules/unistr/u32-strrchr: New file.
67693         * lib/unistr/u8-strrchr.c: New file.
67694         * lib/unistr/u16-strrchr.c: New file.
67695         * lib/unistr/u32-strrchr.c: New file.
67696
67697         * modules/unistr/u8-strspn: New file.
67698         * modules/unistr/u16-strspn: New file.
67699         * modules/unistr/u32-strspn: New file.
67700         * lib/unistr/u8-strspn.c: New file.
67701         * lib/unistr/u16-strspn.c: New file.
67702         * lib/unistr/u32-strspn.c: New file.
67703         * lib/unistr/u-strspn.h: New file.
67704
67705         * modules/unistr/u8-strstr: New file.
67706         * modules/unistr/u16-strstr: New file.
67707         * modules/unistr/u32-strstr: New file.
67708         * lib/unistr/u8-strstr.c: New file.
67709         * lib/unistr/u16-strstr.c: New file.
67710         * lib/unistr/u32-strstr.c: New file.
67711         * lib/unistr/u-strstr.h: New file.
67712
67713         * modules/unistr/u8-strtok: New file.
67714         * modules/unistr/u16-strtok: New file.
67715         * modules/unistr/u32-strtok: New file.
67716         * lib/unistr/u8-strtok.c: New file.
67717         * lib/unistr/u16-strtok.c: New file.
67718         * lib/unistr/u32-strtok.c: New file.
67719         * lib/unistr/u-strtok.h: New file.
67720
67721         * modules/unistr/u8-uctomb: New file.
67722         * modules/unistr/u16-uctomb: New file.
67723         * modules/unistr/u32-uctomb: New file.
67724         * lib/unistr/u8-uctomb.c: New file.
67725         * lib/unistr/u16-uctomb.c: New file.
67726         * lib/unistr/u32-uctomb.c: New file.
67727
67728         * MODULES.html.sh (Unicode string functions): Add the new modules.
67729
67730 2007-01-08  Bruno Haible  <bruno@clisp.org>
67731
67732         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67733         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67734         subdirectories.
67735
67736 2007-01-08  Karl Berry  <karl@gnu.org>
67737
67738         * doc/error.texi: mention that main() fns must set program_name
67739         when progname is used.
67740
67741 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67742
67743         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67744         WCTYPE_H is empty, for the benefit of builds from non-distclean
67745         directories.  Problem reported by Eric Blake in
67746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67747
67748 2007-01-08  Bruno Haible  <bruno@clisp.org>
67749
67750         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67751         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67752         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67753         PROVIDE_CANONICALIZE_FILENAME_MODE.
67754         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67755
67756 2007-01-08  Bruno Haible  <bruno@clisp.org>
67757
67758         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67759         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67760         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67761         * lib/fts.c: Likewise.
67762         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67763
67764 2006-12-25  Bruno Haible  <bruno@clisp.org>
67765
67766         * modules/utf8-ucs4-safe: New file.
67767         * lib/utf8-ucs4-safe.h: New file.
67768         * lib/unistr/utf8-ucs4-safe.c: New file.
67769
67770         * modules/utf16-ucs4-safe: New file.
67771         * lib/utf16-ucs4-safe.h: New file.
67772         * lib/unistr/utf16-ucs4-safe.c: New file.
67773
67774         * MODULES.html.sh (Unicode string functions): Add the new modules.
67775
67776 2007-01-08  Bruno Haible  <bruno@clisp.org>
67777
67778         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67779         (Depends-on): Add unitypes.
67780         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67781         (u8_mbtouc_aux): Move out to separate file.
67782         (u8_mbtouc): Use ucs4_t, uint8_t types.
67783         * lib/unistr/utf8-ucs4.c: New file.
67784
67785         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67786         (Depends-on): Add unitypes.
67787         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67788         (u16_mbtouc_aux): Move out to separate file.
67789         (u16_mbtouc): Use ucs4_t, uint16_t types.
67790         * lib/unistr/utf16-ucs4.c: New file.
67791
67792         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67793         (Depends-on): Add unitypes.
67794         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67795         (u8_uctomb_aux): Move out to separate file.
67796         (u8_uctomb): Use ucs4_t, uint8_t types.
67797         * lib/unistr/ucs4-utf8.c: New file.
67798
67799         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67800         (Depends-on): Add unitypes.
67801         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67802         (u16_uctomb_aux): Move out to separate file.
67803         (u16_uctomb): Use ucs4_t, uint16_t types.
67804         * lib/unistr/ucs4-utf16.c: New file.
67805
67806 2006-12-25  Bruno Haible  <bruno@clisp.org>
67807
67808         * modules/unitypes: New file.
67809         * lib/unitypes.h: New file.
67810         * MODULES.html.sh (func_all_modules): New section "Unicode string
67811         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67812         this section. Add unitypes.
67813
67814 2007-01-08  Bruno Haible  <bruno@clisp.org>
67815
67816         Avoid variable names that conflict with those from libtool.
67817         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67818         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67819         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67820         library_names_spec to acl_library_names_spec, hardcode_* to
67821         acl_hardcode_*.
67822         Reported by Ralf Wildenhues.
67823
67824 2007-01-08  Bruno Haible  <bruno@clisp.org>
67825
67826         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67827         definition.
67828         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67829         definition.
67830         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67831         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67832         definition.
67833         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67834         definition.
67835         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67836         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67837         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67838         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67839         definition.
67840         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67841         definition.
67842         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67843         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67844         GC_USE_<algorithm>.
67845         * lib/gc-libgcrypt.c: Likewise.
67846         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67847         * modules/gc-arctwo (configure.ac): Likewise.
67848         * modules/gc-des (configure.ac): Likewise.
67849         * modules/gc-hmac-md5 (configure.ac): Likewise.
67850         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67851         * modules/gc-md2 (configure.ac): Likewise.
67852         * modules/gc-md4 (configure.ac): Likewise.
67853         * modules/gc-md5 (configure.ac): Likewise.
67854         * modules/gc-random (configure.ac): Likewise.
67855         * modules/gc-rijndael (configure.ac): Likewise.
67856         * modules/gc-sha1 (configure.ac): Likewise.
67857
67858 2007-01-08  Bruno Haible  <bruno@clisp.org>
67859
67860         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67861         macro definition.
67862         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67863         definition.
67864         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67865         definition.
67866         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67867         * modules/fcntl-safer (configure.ac): Likewise.
67868         * modules/fopen-safer (configure.ac): Likewise.
67869         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67870         GNULIB_FWRITEERROR macro definition.
67871
67872 2007-01-08  Bruno Haible  <bruno@clisp.org>
67873
67874         * m4/gnulib-common.m4: New file.
67875         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67876         (func_get_filelist): Add m4/gnulib-common.m4.
67877
67878 2007-01-08  Bruno Haible  <bruno@clisp.org>
67879
67880         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67881         command.
67882
67883 2007-01-08  Jim Meyering  <jim@meyering.net>
67884
67885         Use a more robust test for a "can't happen" condition.
67886         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67887         narrowed the st_size value.  Presuming the "can't happen" condition
67888         is true, that narrowing could conceivably convert an invalid st_size
67889         value into a valid one.  Instead, use a change based on Matthew
67890         Woehlke's original patch.
67891
67892         Slight readability improvement: use an assert-like macro
67893         in place of literal "abort ()" uses.
67894         * lib/fts.c (fts_assert): Define.
67895         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67896         Use this macro instead of a bare 'abort'.
67897
67898 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67901         simply work around them.
67902         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67903         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67904         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67905         declaring.
67906         Don't bother to define as macros, since the standard doesn't require it.
67907         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67908         longer worry about IRIX 5.3.
67909         (HAVE_WCTYPE_CTMP_BUG): Remove.
67910
67911 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67914         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67915         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67916         Problems reported by Georg Schwarz for IRIX 5.3.
67917
67918         * gnulib-tool (autoconf_minversion): Take the maximum version number
67919         found, not the minimum.  Problem reported by James Youngman.
67920
67921 2007-01-03  Karl Berry  <karl@gnu.org>
67922
67923         * doc/error.texi: new file, explaining interaction with progname.
67924         * doc/gnulib.texi: include it.  Update copyright.
67925
67926 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67927
67928         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67929         AC_CANONICAL_HOST, to improve autobuild outputs.
67930
67931 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67932             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67933
67934         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67935         sockets, server sockets, and other file descriptors.  Count errors
67936         to compute the return value.  Reorder the code a bit to be easier
67937         to follow.  Don't set event bits that were not requested (except
67938         POLLERR and POLLHUP).
67939
67940 2007-01-01  Bruno Haible  <bruno@clisp.org>
67941
67942         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67943
67944 2007-01-03  Jim Meyering  <jim@meyering.net>
67945
67946         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67947
67948 2007-01-02  Bruno Haible  <bruno@clisp.org>
67949
67950         * modules/settime (Include): Require timespec.h.
67951         * modules/nanosleep (Include): Likewise.
67952
67953 2007-01-01  Bruno Haible  <bruno@clisp.org>
67954
67955         * gnulib-tool (func_emit_copyright_notice): Bump year.
67956         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67957
67958 2007-01-01  Bruno Haible  <bruno@clisp.org>
67959
67960         Improve support for OpenBSD.
67961         * build-aux/config.rpath (libname_spec): Export.
67962         (library_names_spec): New variable. Export.
67963         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67964         library_names_spec from the config.rpath output. Locate shared library
67965         through the name pattern in library_names_spec.
67966
67967 2007-01-01  Eric Blake  <ebb9@byu.net>
67968
67969         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67970
67971 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67972
67973         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67974         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67975         assume the C locale, and avoid an "eval" that could cause trouble.
67976         Problem with SORT reported by Bob Proulx.
67977
67978         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67979         Define.  Trivial patch from Henning Nielsen Lund, originally
67980         sent to bug-grep@gnu.org today.
67981
67982 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67985         struct stat.  Problem reported by Henning Nielsen Lund.
67986         * lib/acl.c: Include acl.h first, to check interface.  Don't
67987         bother to include sys/types.h and sys/stat.h again.
67988
67989 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         Import the following change from libc; problem reported by
67992         Sven Verdoolaege.
67993
67994         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67995
67996         [BZ #1373]
67997         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67998
67999 2006-12-28  Jim Meyering  <jim@meyering.net>
68000
68001         * build-aux/announce-gen: Do not assume that the package
68002         builds any of tar.gz, tar.bz2, and .xdelta files.
68003         Suggestion from Simon Josefsson.
68004
68005 2006-12-28  Simon Josefsson  <simon@josefsson.org>
68006
68007         * modules/announce-gen: New file.
68008
68009 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
68010
68011         * lib/mbchar.h: Just include <wctype.h>; the wctype module
68012         handles its gotchas now.
68013         * lib/mbswidth.c: Likewise.
68014         * lib/wcwidth.h: Likewise.
68015         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
68016         and iswcntrl; the wctype module does this stuff now.
68017         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68019         * modules/mbchar (Depends-on): Add wctype.
68020         * modules/mbswidth (Depends-on): Likewise.
68021         * modules/wcwidth (Depends-on): Likewise.
68022
68023 2006-12-27  Eric Blake  <ebb9@byu.net>
68024
68025         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
68026         module uses more than what <wctype.h> is required to provide.
68027
68028 2006-12-26  Eric Blake  <ebb9@byu.net>
68029
68030         * gnulib-tool (sed_extract_prog): Avoid space-tab.
68031
68032 2006-12-26  Eric Blake  <ebb9@byu.net>
68033
68034         * modules/absolute-header: New module.
68035         * modules/fcntl (Depends-on): Depend on it.
68036         * modules/inttypes (Depends-on): Likewise.
68037         * modules/stdint (Depends-on): Likewise.
68038         * modules/sys_stat (Depends-on): Likewise.
68039         * modules/wctype (Depends-on): Likewise.
68040         * MODULES.html.sh (Support for building libraries and
68041         executables): Document it.
68042
68043 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
68044
68045         * gnulib-tool (SED): Remove, undoing previous change.
68046         The problem was that it broke coreutils on Solaris, because
68047         "sed --posix" leaked into a makefile.
68048         (sed): New alias, if 'alias' and GNU sed.
68049
68050 2006-12-24  Jim Meyering  <jim@meyering.net>
68051
68052         Work around an fchownat bug in glibc-2.4:
68053         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
68054         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
68055         in spite of the -P option.
68056         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
68057         New macros.
68058         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
68059         * modules/openat (Files): Add lib/fchownat.c.
68060         * lib/openat.c (fchownat): Don't define here.  Move to...
68061         * lib/fchownat.c: ...this new file.
68062
68063 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         Fix bug reported by Bruno Haible in
68066         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
68067         where quotearg.c didn't compile on Mac OS X 10.2 because it
68068         lacks <wchar.h> and wint_t.
68069         * lib/wctype_.h (__wctype_wint_t): New type.
68070         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
68071         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
68072         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
68073         Arg is now of type __wctype_wint_t, not wint_t.
68074         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
68075         substitute HAVE_WINT_T.
68076         * modules/wctype (Files): Add m4/wint_t.m4.
68077         (wctype.h): Substitute HAVE_WINT_T.
68078
68079 2006-12-23  Bruno Haible  <bruno@clisp.org>
68080
68081         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
68082
68083 2006-12-23  Bruno Haible  <bruno@clisp.org>
68084
68085         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
68086         S_ISLNK.
68087         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
68088         mingw.
68089
68090 2006-12-22  Bruno Haible  <bruno@clisp.org>
68091
68092         * lib/copy-file.c: Include acl.h.
68093         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
68094         Close the file descriptors only after being done with copy_acl.
68095         * modules/copy-file (Depends-on): Add acl.
68096
68097 2006-12-22  Bruno Haible  <bruno@clisp.org>
68098
68099         * gnulib-tool (SED): New variable.
68100         Use $SED instead of sed everywhere.
68101
68102 2006-12-22  Bruno Haible  <bruno@clisp.org>
68103
68104         * modules/no-c++: New file.
68105         * m4/no-c++.m4: New file.
68106         * MODULES.html.sh (Support for building libraries and executables):
68107         Add no-c++.
68108
68109 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
68110
68111         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68112         Include <limits.h>, and use its INT_MAX to rewrite the
68113         j loop so that it does not overflow 'int'.  Problem reported by
68114         Ralf Wildenhues in
68115         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
68116         Play it safe by shifting left by 1 rather than multiplying by 2,
68117         as GCC is less likely to optimize this away when the value
68118         is signed (when it assumes overflow leads to undefined behavior).
68119         Also, don't assume time_t uses two's complement.
68120
68121 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
68122
68123         * MODULES.html.sh: New module wctype.
68124         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
68125         * lib/fnmatch.c: Don't bother to include <wchar.h> before
68126         <wctype.h>, since the new wctype module should fix this.
68127         * lib/quotearg.c: Include <wctype.h> unconditionally, since
68128         the wctype module should arrange for it.
68129         * lib/regex_internal.h: Likewise.
68130         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
68131         since the wctype module should handle this now.
68132         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
68133         * modules/fnmatch (Depends-on): Add wctype.
68134         * modules/quotearg (Depends-on): Likewise.
68135         * modules/regex (Depends-on): Likewise.
68136
68137 2006-12-19  Bruno Haible  <bruno@clisp.org>
68138
68139         * lib/strdup.h [C++]: Wrap definitions in extern "C".
68140         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
68141
68142 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68143
68144         * modules/savewd (Depends-on): Fix dependency on fcntl.
68145
68146 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68147
68148         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
68149         conforms to C99, rather than relying on the user's environment
68150         setting of STDINT_H.
68151
68152 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
68153         and Eric Blake  <ebb9@byu.net>
68154
68155         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
68156         This is more consistent with the other defines here.
68157         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
68158         Port to z/OS.  Problem reported by Paul Gilmartin.
68159         Change local vars to use gl_ prefix rather than ac_.
68160         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
68161         with other defines.
68162         * modules/double-slash-root: New module.
68163         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68164         (Depends-on): Add double-slash-root.
68165         * MODULES.html.sh (File system functions): Mention new module.
68166
68167 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68170         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68171         This is for the benefit of gzip, which doesn't do i18n.
68172
68173 2006-12-12  Jim Meyering  <jim@meyering.net>
68174
68175         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68176         Reported by Andreas Schwab <schwab@suse.de>.
68177
68178 2006-12-12  Bruno Haible  <bruno@clisp.org>
68179
68180         Merge these changes.
68181         2006-09-05  Bruno Haible  <bruno@clisp.org>
68182         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68183         iconv_alloc succeeded.
68184         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68185         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68186         test for " && dest " at the end - dest is always != NULL there. Call
68187         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68188         with 2xNULL arguments, also to flush the state storage. Handle the
68189         IRIX iconv behaviour. Realloc the final result, to throw away unused
68190         memory.
68191
68192 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68193
68194         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68195         and fchmodat unconditionally, since glibc 2.4 has them.
68196         Problem reported by Arkadiusz Miskiewicz.
68197
68198 2006-12-10  Bruno Haible  <bruno@clisp.org>
68199
68200         * gnulib-tool (func_import): Show the include files only for those
68201         modules that are copied and specified.
68202         Reported by Karl Berry.
68203
68204 2006-12-08  Jim Meyering  <jim@meyering.net>
68205
68206         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68207         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68208
68209         * build-aux/announce-gen: Add two new options, both optional:
68210         --bootstrap-tools=TOOL_LIST
68211               a comma-separated list of tools, e.g.,
68212               autoconf,automake,bison,gnulib
68213         --gnulib-snapshot-date=DATE
68214               if gnulib is in the bootstrap tool list,
68215               then report this as the snapshot date.
68216               If not specified, use the current date/time.
68217               If you specify a date here, be sure it's UTC.
68218
68219 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68220
68221         * tests/test-argp-2.sh: Fix test to match actual output.
68222         (func_compare): Fix sed script to be portable.
68223
68224 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68225
68226         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68227         workaround for this case.  It is not autoconfigured now; offhand
68228         it's hard to see how to autoconfigure it.
68229
68230 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68231
68232         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68233         a directory that is about to be chowned.  Such a directory's
68234         initial file permissions should permit the owner only and this
68235         should not be changed until after the chown, since the group and
68236         other bits would be incorrect if they granted permission before
68237         the chown.
68238
68239         Fix porting problem for iswctype reported by Georg Schwarz in:
68240         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68241         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68242         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68243         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68244         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68245
68246 2006-12-03  Jim Meyering  <jim@meyering.net>
68247
68248         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68249         p->fts_statp may not yet be defined.
68250         (fts_read): Instead, set it in the caller, once p->fts_statp is
68251         sure to be defined, and corresponds to a top-level directory.
68252         This bug made du -x fail.  Here's the coreutils test case:
68253         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68254         Reported by Mike Frysinger.
68255
68256 2006-12-01  Jim Meyering  <jim@meyering.net>
68257
68258         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68259         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68260         Reported by Simon Josefsson.
68261
68262 2006-11-30  Jim Meyering  <jim@meyering.net>
68263
68264         * m4/warning.m4: Use the all-permissive copyright notice
68265         recommended by RMS (rather than LGPL).
68266         * m4/vararrays.m4: Likewise.
68267         * m4/flexmember.m4: Likewise.
68268
68269 2006-11-29  Bruno Haible  <bruno@clisp.org>
68270
68271         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68272         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68273         using +=.
68274         Reported by Simon Josefsson <simon@josefsson.org>.
68275
68276 2006-11-28  James Youngman <jay@gnu.org>
68277
68278         * README: Advise users that they might find the bug-gnulib@gnu.org
68279         and autotools-announce@gnu.org mailing lists useful.
68280
68281 2006-11-28  Bruno Haible  <bruno@clisp.org>
68282
68283         * m4/ptrdiff_max.m4: Remove file.
68284
68285 2006-11-21  Bruno Haible  <bruno@clisp.org>
68286
68287         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68288         _AC_COMPUTE_INT.
68289         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68290         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68291         _AC_COMPUTE_INT.
68292         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68293         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68294         _AC_COMPUTE_INT.
68295         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68296
68297 2006-11-28  Jim Meyering  <jim@meyering.net>
68298
68299         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68300         warning from "gcc -Wshadow" about shadowing the builtin.
68301
68302 2006-11-27  Bruno Haible  <bruno@clisp.org>
68303
68304         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68305         _AC_COMPUTE_INT.
68306         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68307
68308 2006-11-27  Bruno Haible  <bruno@clisp.org>
68309             Paul Eggert  <eggert@cs.ucla.edu>
68310
68311         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68312
68313 2006-11-26  Bruno Haible  <bruno@clisp.org>
68314
68315         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68316         noinst_LTLIBRARIES.
68317
68318 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68319             Bruno Haible  <bruno@clisp.org>
68320
68321         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68322         if compiling with "gcc -ansi".
68323
68324 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         Fix some incompatibilities with gcc -ansi -pedantic.
68327         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68328         if compiling pedantically with GCC, unless it's C99 or later.
68329         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68330         it mishandles gcc -ansi -pedantic as well.
68331         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68332         if gcc -pedantic.
68333         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68334         initializers for struct if -pedantic, unless it's C99 or later.
68335
68336 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68337
68338         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68339         Don't close an fd more than once. Identical atimes indicate
68340         success, not failure.
68341
68342 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68343
68344         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68345
68346 2006-11-23  Jim Meyering  <jim@meyering.net>
68347
68348         * build-aux/announce-gen: New file.  From coreutils.
68349
68350 2006-11-22  Jim Meyering  <jim@meyering.net>
68351
68352         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68353         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68354         (fts_read): Use a temporary to narrow the overused st_size member
68355         before using it in a switch statement.  Reported by Matthew Woehlke.
68356
68357         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68358         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68359
68360 2006-11-20  Bruno Haible  <bruno@clisp.org>
68361
68362         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68363         changequote instead of pairs of brackets.
68364         Reported by Andreas Schwab <schwab@suse.de>.
68365
68366 2006-11-21  Jim Meyering  <jim@meyering.net>
68367
68368         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68369         so as to remain compatible with older compilers.
68370         Patch from Michael Deutschmann.
68371
68372 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68373
68374         * MODULES.html.sh (File system functions): Add openat.
68375
68376         * lib/openat.h (rpl_fstatat): New macro, if
68377         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68378         (fstatat): Define to rpl_fstatat under the same conditions,
68379         unless COMPILING_FSTATAT.
68380         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68381         seems to have the bug.
68382         * lib/fstatat.c: New file.
68383         * modules/openat (Files): Add it.
68384
68385 2006-11-20  Bruno Haible  <bruno@clisp.org>
68386
68387         * Makefile: New file.
68388
68389 2006-11-20  Jim Meyering  <jim@meyering.net>
68390
68391         The beginnings of syntax-related checks for gnulib.
68392         * lib/Makefile: New file.
68393         * lib/t-idcache: New script.  Ensure that the two halves of
68394         idcache.c stay in sync.
68395
68396         * lib/idcache.c: Adjust comments in user- and group- portions to
68397         be more accurate, and to be consistent with one another.
68398
68399 2006-11-20  Jim Meyering  <jim@meyering.net>
68400
68401         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68402         continue using the flexible array member (thus, this module performs
68403         half as many malloc calls), with the addition that...
68404         (getgroup, getuser): Consistently record a non-match via an empty
68405         "name" string, and map an empty string match to a NULL return value.
68406         * modules/idcache (Depends-on): Re-add flexmember.
68407
68408         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68409         (getuidbyname, getgroup, getgidbyname): Likewise.
68410
68411         Use cleaner syntax: NULL rather than 0.
68412         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68413
68414 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68415
68416         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68417         It mishandled the case where the group was missing.
68418         Problem reported by Greg Schafer.
68419         * modules/idcache: Likewise.
68420
68421 2006-11-18  Jim Meyering  <jim@meyering.net>
68422
68423         * check-module (%exempt_header): Add exception for some
68424         conditionally-included headers.
68425
68426         * modules/i-ring (Depends-on): Add verify.
68427         (License): Change to LGPL.
68428
68429 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68430
68431         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68432         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68433         and inttostr.h.  Use snprintf rather than uinttostr, so that
68434         LGPLed code doesn't depend on GPLed.
68435
68436 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68437
68438         * modules/inline (License): Change from GPL to LGPL.
68439
68440 2006-11-17  Jim Meyering  <jim@meyering.net>
68441
68442         * modules/d-type (License): Switch to LGPL.
68443
68444 2006-11-15  Bruno Haible  <bruno@clisp.org>
68445
68446         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68447
68448 2006-11-15  Eric Blake  <ebb9@byu.net>
68449
68450         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68451         the module dependency.
68452
68453 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68454             Bruno Haible  <bruno@clisp.org>
68455
68456         * gnulib-tool (func_create_testdir): Add license consistency check.
68457
68458 2006-11-15  Eric Blake  <ebb9@byu.net>
68459
68460         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68461         random "(cached)" in configure output.
68462
68463 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68464
68465         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68466         test for conforming inttypes.h is both announced and cached.
68467
68468         * MODULES.html.sh (seen_modules, seen_files): New variables.
68469         (func_module): Rewrite to use a few less gnulib-tool and sed
68470         invocations.  Avoid a couple of quadratic algorithms for ...
68471         (missed_modules, missed_files): ... these, with ...
68472         (func_append, func_tmpdir): ... these new functions, from
68473         gnulib-tool.  Analogously, install traps for cleanup.
68474
68475         * tests/test-gc.c (main): Remove unused variables.
68476         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68477
68478 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * modules/inttostr (License): Change to LGPL.
68481
68482 2006-11-14  Eric Blake  <ebb9@byu.net>
68483
68484         * modules/tempname (License): Change to LGPL.
68485
68486 2006-11-14  Eric Blake  <ebb9@byu.net>
68487
68488         * doc/functions.texi (Function Portability): *printf functions on
68489         Cygwin now understand all POSIX size specifiers.
68490
68491 2006-11-14  Bruno Haible  <bruno@clisp.org>
68492
68493         * modules/c-ctype (License): Change to LGPL.
68494
68495 2006-11-12  Bruno Haible  <bruno@clisp.org>
68496
68497         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68498         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68499         for GNOME libraries, for which the include files are installed in
68500         subdirectories of $prefix/include.
68501
68502 2006-11-12  Bruno Haible  <bruno@clisp.org>
68503
68504         * m4/lib-link.m4: Require at least autoconf-2.54.
68505         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68506         name to underscores for the --with option.
68507
68508 2006-11-13  Bruno Haible  <bruno@clisp.org>
68509
68510         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68511         the tests directory.
68512         Reported by Ralf Wildenhues.
68513
68514 2006-11-13  Bruno Haible  <bruno@clisp.org>
68515
68516         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68517         (func_emit_initmacro_end): Undo the override here.
68518         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68519         Works around the famous automake error in coreutils.
68520
68521 2006-11-13  Eric Blake  <ebb9@byu.net>
68522
68523         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68524         element, not its node.
68525
68526 2006-11-12  Bruno Haible  <bruno@clisp.org>
68527
68528         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68529         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68530
68531 2006-11-12  Bruno Haible  <bruno@clisp.org>
68532
68533         * gnulib-tool: New option --local-symlink.
68534         (func_usage): Document it.
68535         (lsymbolic): New variable.
68536         (func_import, func_create_testdir): If --symlink was not specified,
68537         test whether --local-symlink was specified and the file comes from
68538         the local_gnulib_dir.
68539
68540 2006-11-12  Bruno Haible  <bruno@clisp.org>
68541
68542         * gnulib-tool (func_ln): New function.
68543         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68544
68545 2006-11-12  Bruno Haible  <bruno@clisp.org>
68546
68547         Finish support for source files in subdirectories.
68548         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68549         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68550         AUTOMAKE_OPTIONS.
68551         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68552
68553 2006-11-12  Bruno Haible  <bruno@clisp.org>
68554
68555         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68556         EXTRA_lib_SOURCES augmentation.
68557         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68558
68559 2006-11-12  Jim Meyering  <jim@meyering.net>
68560
68561         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68562         file descriptors.  This also averts a failure on systems with
68563         native openat support when a traversed directory lacks "x" access.
68564         * lib/fts_.h: Include "i-ring.h"
68565         (struct FTS) [fts_fd_ring]: New member.
68566         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68567         (FCHDIR): Add parentheses.
68568         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68569         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68570         When descending, rather than simply closing the previous
68571         fts_cwd_fd value, push that file descriptor onto the ring.
68572         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68573         (fts_open): Initialize the new fd_ring member.
68574         (fts_close): Clear the ring.
68575         (fts_safe_changedir): When possible, use our new fd_ring to skip
68576         the diropen and fstat and dev/ino comparison that would normally
68577         accompany a virtual `chdir ("..")'.
68578
68579         * modules/fts (Depends-on): Add i-ring.
68580         * modules/i-ring: New module.
68581         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68582         * m4/i-ring.m4: New file.
68583
68584 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68585
68586         * gnulib-tool (func_create_testdir): Fix replacement of
68587         `build-aux' in configure.ac.  Run autotools in gltests
68588         subdirectory.
68589         (func_create_testdir, func_create_megatestdir, test): There is
68590         no need for '--force' in most autotool invocations in a new
68591         tree.  Actually fail the whole test if any of the tools, or the
68592         configure or make stages fail.
68593
68594         Sync from Automake.
68595         * build-aux/gnupload: Revert last change.  Add pointer to upload
68596         instructions of the GNU Maintenance Instructions.
68597         Suggestion by Karl Berry.
68598
68599 2006-11-10  Jim Meyering  <jim@meyering.net>
68600
68601         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68602
68603 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68604
68605         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68606         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68607         (bind_textdomain_codeset) [! ENABLE_NLS]:
68608         Evaluate all the arguments.  That way, callers get compatible behavior
68609         if the arguments have side effects.  Also, it avoids some GCC
68610         diagnostics in some cases; Joel E. Denny reported problems when Bison
68611         was configured with --enable-gcc-warnigs.
68612
68613 2006-11-10  Jim Meyering  <jim@meyering.net>
68614
68615         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68616         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68617         account.
68618
68619 2006-11-10  Jim Meyering  <jim@meyering.net>
68620
68621         * modules/inline: New file/module.
68622         * modules/xalloc (Files): Remove m4/inline.m4.
68623         (Depends-on): Add inline, instead.
68624         * modules/oset: Likewise.
68625         * modules/list: Likewise.
68626
68627 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68628
68629         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68630         Problem reported by Matthew Woehlke.
68631
68632 2006-11-09  Bruno Haible  <bruno@clisp.org>
68633
68634         * lib/tempname.c (gen_tempname): Remove variant that invokes
68635         __gen_tempname.
68636         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68637         __gen_tempname.
68638
68639 2006-11-08  Bruno Haible  <bruno@clisp.org>
68640
68641         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68642         to 'yes' instead of 'cross-compiling'.
68643
68644 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * lib/quotearg.h (quotearg_free): New decl.
68647         * lib/quotearg.c (quotearg_free): New function.
68648         (slot0, nslots, slotvec0, slotvec):
68649         Now file-scope so that quotearg_free can get at them.
68650
68651 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68652
68653         Sync from Automake.
68654         * build-aux/gnupload: Add missing 'gnu' to example URL.
68655         Report by Karl Berry.
68656
68657 2006-11-08  Bruno Haible  <bruno@clisp.org>
68658
68659         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68660         Suggested by Paul Eggert.
68661
68662 2006-11-08  Jim Meyering  <jim@meyering.net>
68663
68664         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68665         It's already included if !_LIBC.
68666         (fts_safe_changedir): Add a comment.
68667
68668 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68669
68670         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68671         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68672         Matthew Woehlke.
68673
68674         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68675         definitions up, to avoid colliding with change below.
68676         (static_inline) [HAVE_INLINE]: New macro.
68677         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68678         Provide extern decls when !HAVE_INLINE.  Do not define unless
68679         static_inline is defined, either by us or by xmalloc.c.  Use
68680         static_inline rather than static inline.
68681         (XCALLOC): Optimize sizeof(T) = 1 case.
68682         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68683
68684 2006-11-07  Bruno Haible  <bruno@clisp.org>
68685
68686         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68687         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68688         AC_C_INLINE.
68689         * modules/xalloc (Files): Add m4/inline.m4.
68690
68691 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68692
68693         * README: Fix typo.
68694         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68695         (Miscellanous Notes): ...from this.
68696
68697 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68698
68699         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68700         Mention that offsetof should be used instead of sizeof.
68701         From Bruno Haible.
68702
68703 2006-11-07  Bruno Haible  <bruno@clisp.org>
68704
68705         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68706
68707 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68708
68709         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68710         * lib/gl_anyavltree_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):
68713         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68714         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68715         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68716         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68717         (gl_linked_add_after, gl_linked_add_at): Likewise.
68718         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68719         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68720         (gl_tree_add_before, gl_tree_add_after): Likewise.
68721         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68722         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68723         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68724
68725 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68726
68727         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68728
68729 2006-11-06  Bruno Haible  <bruno@clisp.org>
68730
68731         * m4/inline.m4: New file.
68732         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68733         * modules/list (Files): Add m4/inline.m4.
68734         * modules/oset (Files): Likewise.
68735
68736 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68737
68738         * lib/idcache.c: Include <stddef.h>, for offsetof.
68739         (struct userid.name): Change from char * to a flexible array member.
68740         All uses changed.
68741         * modules/idcache (Depends-on): Add flexmember.
68742
68743         * MODULES.html.sh (Core language properties): New module flexmember.
68744         * modules/flexmember, m4/flexmember.m4: New files.
68745
68746         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68747         inline functions that are identical with the old xnmalloc_inline,
68748         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68749         that we can avoid some unnecessary integer multiplications and
68750         divisions in the common case where the element size is known at
68751         compile time.
68752         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68753         needed.
68754         (xnboundedmalloc): Remove.
68755         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68756         arguments, for consistency with rest of this header.
68757         (xcharalloc): Rewrite using XNMALLOC.
68758         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68759         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68760         versions have been moved to lib/xalloc.h and renamed to be the
68761         non-*_inline versions.
68762         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68763         and xnrealloc functions, since those functions are now inline and
68764         now call us.
68765         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68766         renaming described above.
68767         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68768         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68769         captures the dependency in AC_C_INLINE.
68770
68771         New module canonicalize-lgpl, proposed by Charles Wilson in
68772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68773         with a few small changes afterwards.
68774         * MODULES.html.sh (File system functions): New module
68775         canonicalize-lgpl.
68776         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68777         and canonicalize_file_name.
68778         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68779         * modules/canonicalize-lgpl: New files.
68780
68781 2006-11-05  Bruno Haible  <bruno@clisp.org>
68782
68783         * gnulib-tool (func_import, func_create_testdir): Create directories
68784         also for files in subdirectories of lib/.
68785
68786 2006-11-05  Bruno Haible  <bruno@clisp.org>
68787
68788         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68789         ANSI C compliant.
68790
68791 2006-11-03  Bruno Haible  <bruno@clisp.org>
68792
68793         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68794         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68795         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68796         (xnboundedmalloc): New inline function.
68797         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68798         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68799         xmalloc.
68800         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68801         xmalloc.
68802         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68803         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68804         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68805         xmalloc.
68806         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68807         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68808         xmalloc.
68809         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68810         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68811         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68812         xmalloc.
68813         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68814         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68815         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68816         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68817         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68818         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68819         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68820
68821 2006-11-03  Bruno Haible  <bruno@clisp.org>
68822
68823         * lib/c-ctype.h [C++]: Define functions without name mangling.
68824         * lib/fwriteerror.h [C++]: Likewise.
68825         * lib/gcd.h [C++]: Likewise.
68826         * lib/linebreak.h [C++]: Likewise.
68827
68828 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68831         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68832         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68833         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68834         Check for functions and headers just once.
68835         Check for declaration of canonicalize_file_name.
68836         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68837
68838 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68839
68840         * gnulib-tool (func_import): Fix typo in actioncmd.
68841
68842 2006-11-02  Bruno Haible  <bruno@clisp.org>
68843
68844         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68845         newline sequence in the Makefile.am snippet as a space, like "make"
68846         does.
68847         Reported by Roger Persson <perrog@gmail.com>.
68848
68849 2006-11-01  Bruno Haible  <bruno@clisp.org>
68850
68851         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68852         already declared in <string.h>.
68853         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68854
68855 2006-11-01  Bruno Haible  <bruno@clisp.org>
68856
68857         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68858         * lib/strcase.h: Include <string.h>.
68859         (strcasecmp): Define to rpl_strcasecmp here.
68860
68861 2006-11-01  Bruno Haible  <bruno@clisp.org>
68862
68863         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68864
68865 2006-11-01  Eric Blake  <ebb9@byu.net>
68866
68867         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68868
68869         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68870
68871 2006-10-29  Bruno Haible  <bruno@clisp.org>
68872
68873         Make it compile in C++ mode.
68874         * lib/full-write.c (full_rw): Add a cast.
68875
68876 2006-11-01  Bruno Haible  <bruno@clisp.org>
68877
68878         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68879         be POSIX compliant.
68880         Reported by Roger Persson <perrog@gmail.com>.
68881
68882 2006-11-01  Eric Blake  <ebb9@byu.net>
68883
68884         * lib/getopt_.h: Fix comments.
68885
68886 2006-10-31  Eric Blake  <ebb9@byu.net>
68887
68888         * modules/tmpdir (Depends-on): Add sys_stat.
68889         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68890         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68891         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68892         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68893         tempname.
68894
68895 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68896
68897         Avoid some C++ diagnostics reported by Bruno Haible.
68898         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68899         xmalloc.
68900         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68901         (struct slotvec): Move to top level.
68902         (quotearg_n_options): Rewrite to avoid xmalloc.
68903         * lib/xalloc.h (xcharalloc): New function.
68904         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68905         [defined __cplusplus]: Add function template that provides result
68906         type propagation.  This part of the change is from Bruno Haible.
68907
68908 2006-10-29  Bruno Haible  <bruno@clisp.org>
68909
68910         Make it compile in C++ mode.
68911         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68912         * lib/strnlen1.c (strnlen1): Cast memchr result.
68913         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68914         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68915         (create_temp_dir): Rename local variable 'template'.
68916         (compile_csharp_using_sscli): Add cast.
68917         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68918         * lib/findprog.c (find_in_path): Likewise.
68919         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68920         * lib/wait-process.c (register_slave_subprocess): Likewise.
68921
68922 2006-10-22  Bruno Haible  <bruno@clisp.org>
68923
68924         * modules/tsearch: New file.
68925         * lib/tsearch.h: New file.
68926         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68927         * m4/tsearch.m4: New file.
68928         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68929
68930 2006-10-29  Eric Blake  <ebb9@byu.net>
68931
68932         * lib/arcfour.c: Assume config.h.
68933         * lib/arctwo.c: Likewise.
68934         * lib/base64.c: Likewise.
68935         * lib/check-version.c: Likewise.
68936         * lib/crc.c: Likewise.
68937         * lib/des.c: Likewise.
68938         * lib/gc-gnulib.c: Likewise.
68939         * lib/gc-libgcrypt.c: Likewise.
68940         * lib/gc-pbkdf2-sha1.c: Likewise.
68941         * lib/getaddrinfo.c: Likewise.
68942         * lib/getdelim.c: Likewise.
68943         * lib/getline.c: Likewise.
68944         * lib/hmac-md5.c: Likewise.
68945         * lib/hmac-sha1.c: Likewise.
68946         * lib/iconvme.c: Likewise.
68947         * lib/md2.c: Likewise.
68948         * lib/md4.c: Likewise.
68949         * lib/memxor.c: Likewise.
68950         * lib/read-file.c: Likewise.
68951         * lib/readline.c: Likewise.
68952         * lib/rijndael-alg-fst.c: Likewise.
68953         * lib/rijndael-api-fst.c: Likewise.
68954         * lib/xgetdomainname.c: Likewise.
68955
68956 2006-10-28  Eric Blake  <ebb9@byu.net>
68957
68958         * lib/xstrndup.c: Assume config.h.
68959
68960 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68961
68962         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68963         stat-macros.h is now for our own macros, whereas stat_h is for
68964         macros in the <sys/stat.h> name space.
68965         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68966         (STAT_MACROS_H): Remove.
68967         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68968         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68969         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68970         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68971         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68972         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68973         Move these macros to ...
68974         * lib/stat_.h: here.  Don't include stat-macros.h.
68975         * lib/canonicalize.c: Don't include stat-macros.h.
68976         * lib/chown.c: Likewise.
68977         * lib/euidaccess.c: Likewise.
68978         * lib/file-type.c: Likewise.
68979         * lib/filemode.c: Likewise.
68980         * lib/glob.c: Likewise.
68981         * lib/isapipe.c: Likewise.
68982         * lib/lchown.c: Likewise.
68983         * lib/lstat.c: Likewise.
68984         * lib/mkdir-p.c: Likewise.
68985         * lib/rmdir.c: Likewise.
68986         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68987         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68988         unless mkdir isn't declared, to speed up 'configure'.
68989         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68990         would define all the S_* symbols.
68991         * modules/canonicalize (Depends-on):
68992         Depend on sys_stat, not stat-macros.
68993         * modules/chown: Likewise.
68994         * modules/euidaccess: Likewise.
68995         * modules/filemode: Likewise.
68996         * modules/file-type: Likewise.
68997         * modules/glob: Likewise.
68998         * modules/isapipe: Likewise.
68999         * modules/lchown: Likewise.
69000         * modules/lstat: Likewise.
69001         * modules/mkancesdirs: Likewise.
69002         * modules/rmdir: Likewise.
69003         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
69004         * modules/modechange: Likewise.
69005         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
69006         (configure.ac): Remove gl_STAT_MACROS.
69007         * modules/sys_stat (Depends-on): Remove stat-macros.
69008
69009 2006-10-27  Bruno Haible  <bruno@clisp.org>
69010
69011         * m4/signed.m4: Remove file.
69012         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
69013         invocation.
69014         * modules/vasnprintf (Files): Remove m4/signed.m4.
69015
69016 2006-10-27  Bruno Haible  <bruno@clisp.org>
69017
69018         Update to GNU gettext 0.16.
69019         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
69020         m4/inttypes-h.m4, m4/signed.m4.
69021         * m4/gettext.m4: Update to GNU gettext 0.16.
69022         * m4/intl.m4: New file, from GNU gettext.
69023         * m4/intldir.m4: New file, from GNU gettext.
69024         * config/srclist.txt: Update
69025
69026 2006-10-27  Eric Blake  <ebb9@byu.net>
69027
69028         * MODULES.html.sh: Document tempname.
69029         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
69030         dependencies.
69031         (Files): Move lib/tempname.c...
69032         * modules/tempname: ...to this new module.
69033         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
69034         (gl_PREREQ_TEMPNAME): Move...
69035         * m4/tempname.m4: ...to this new file.
69036         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
69037         * modules/sys_stat (Depends-on): Add stat-macros.
69038         * lib/stat_.h (includes): Pick up stat macros.
69039         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
69040         if stat macros are broken.
69041         * lib/tempname.c (includes): No need to include "stat-macros.h".
69042         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
69043         (direxists, __path_search) [!_LIBC]: Don't compile these in
69044         gnulib; the tmpdir module covers that.
69045         * lib/tempname.h: New file.
69046
69047 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
69048
69049         * COPYING: Explain how gnulib-tool converts licence headers.
69050         Almost all wording by Eric Blake.
69051
69052 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
69053
69054         * lib/mbchar.h (is_basic_table): Make read-only.
69055         * lib/mbchar.c (is_basic_table): Likewise.
69056         Reported by John Darrington.
69057
69058 2006-10-25  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/progname.h (set_program_name): Undefine before defining.
69061
69062 2006-10-25  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
69065         false for non-gcc C++ compilers.
69066         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
69067
69068 2006-10-24  Bruno Haible  <bruno@clisp.org>
69069
69070         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
69071         iconv implementations like Irix iconv.
69072
69073 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69074
69075         * modules/vararrays: New file.
69076         * m4/vararrays.m4: New file, taken from diffutils.
69077         * MODULES.html.sh: New module vararrays.
69078
69079 2006-10-24  Karl Berry  <karl@gnu.org>
69080
69081         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
69082         Don't call GNU Unix.
69083
69084 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69085
69086         * users.txt: Add Libtool.
69087
69088         Sync from Libtool:
69089
69090         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69091
69092         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
69093         to gnulib's policy of including config.h unconditionally.
69094
69095 2006-10-24  Bruno Haible  <bruno@clisp.org>
69096
69097         * modules/wcwidth (Files): Add m4/wint_t.m4.
69098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
69099         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
69100
69101 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
69104         to pacify GCC with some -W flags enabled.  Problem reported by
69105         Bruno Haible.
69106
69107 2006-10-24  Jim Meyering  <jim@meyering.net>
69108
69109         * MODULES.html.sh: Remove uinttostr.  It's not a module.
69110         Reported by Karl Berry.
69111
69112 2006-10-23  Bruno Haible  <bruno@clisp.org>
69113
69114         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
69115
69116 2006-10-24  Bruno Haible  <bruno@clisp.org>
69117
69118         * lib/gl_list.h: Use C comment style, not C++ comment style.
69119
69120 2006-10-23  Eric Blake  <ebb9@byu.net>
69121
69122         * lib/getaddrinfo.c (includes): Add missing include.
69123
69124 2006-10-23  Bruno Haible  <bruno@clisp.org>
69125             Paul Eggert  <eggert@cs.ucla.edu>
69126
69127         Ability to rename obstack_free.
69128         * lib/obstack.h (__obstack_free): New macro. Declare instead of
69129         obstack_free.
69130         (obstack_free): Invoke the __obstack_free macro.
69131         * lib/obstack.c (obstack_free): Use __obstack_free macro.
69132
69133 2006-10-23  Bruno Haible  <bruno@clisp.org>
69134             Paul Eggert  <eggert@cs.ucla.edu>
69135
69136         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
69137         __argc, __argv from the declaration. (They are defined as macros on
69138         mingw.)
69139
69140 2006-10-22  Bruno Haible  <bruno@clisp.org>
69141
69142         * doc/gnulib-intro.texi: New file.
69143         * doc/gnulib.texi: Include it.
69144
69145 2006-10-21  Bruno Haible  <bruno@clisp.org>
69146
69147         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
69148         "Introduction", "Miscellanous Notes", "Particular Modules".
69149
69150 2006-10-21  Bruno Haible  <bruno@clisp.org>
69151
69152         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69153         Change mostlyclean-local rule to avoid sh syntax error from bash
69154         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
69155
69156 2006-10-23  Jim Meyering  <jim@meyering.net>
69157
69158         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
69159         in place of snprintf.
69160
69161         * modules/inttostr (Files): Add lib/uinttostr.c.
69162         * lib/uinttostr.c (inttostr): New file/function.
69163         * lib/inttostr.h (uinttostr): Declare.
69164         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69165         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69166         Add uinttostr.
69167         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69168
69169 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69170
69171         * lib/canonicalize.c (ELOOP): Define if not already defined.
69172         Problem reported by Bruno Haible in
69173         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69174
69175 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69176
69177         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69178         Problem reported by Perry Smith and Ville Laurikari.
69179
69180         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69181         uses.
69182
69183 2006-10-19  Bruno Haible  <bruno@clisp.org>
69184
69185         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69186         for mingw.
69187
69188 2006-10-19  Bruno Haible  <bruno@clisp.org>
69189
69190         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69191         Needed for mingw.
69192
69193 2006-10-19  Bruno Haible  <bruno@clisp.org>
69194
69195         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69196
69197 2006-10-19  Bruno Haible  <bruno@clisp.org>
69198
69199         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69200         it.
69201
69202 2006-10-19  Bruno Haible  <bruno@clisp.org>
69203
69204         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69205         invocation.
69206
69207 2006-10-19  Bruno Haible  <bruno@clisp.org>
69208
69209         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69210         mountlist by default.
69211
69212 2006-10-16  Bruno Haible  <bruno@clisp.org>
69213
69214         * lib/c-strstr.c: Include c-strstr.h.
69215
69216 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69217
69218         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69219         in a slash.
69220
69221 2006-10-18  Bruno Haible  <bruno@clisp.org>
69222
69223         * lib/lock.h [C++]: Wrap definitions in extern "C".
69224
69225 2006-10-18  Bruno Haible  <bruno@clisp.org>
69226
69227         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69228         gl_LIBOBJS list.
69229
69230 2006-10-18  Bruno Haible  <bruno@clisp.org>
69231
69232         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69233
69234 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69235
69236         * lib/xstrtol.h: Include gettext.h.
69237         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69238         Problem reported by Eric Blake.
69239         * modules/xstrtol (Depends-on): Add gettext-h.
69240
69241 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69242
69243         * lib/strftime.c (advance): New macro.
69244         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69245         incomplete type, so you can't add 0 to it.  Problem and patch
69246         reported by Eelco Dolstra for dietlibc.
69247
69248 2006-10-18  Jim Meyering  <jim@meyering.net>
69249
69250         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69251         type for a local, and rename it: s/up/user_proc/.
69252
69253 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69254
69255         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69256         READ_UTMP_USER_PROCESS.
69257         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69258
69259 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69260
69261         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69262         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69263
69264 2006-10-17  Eric Blake  <ebb9@byu.net>
69265
69266         * lib/sigprocmask.c (sigprocmask): Fix typo.
69267
69268         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69269
69270         * modules/clean-temp (Makefile.am): Don't add to make output...
69271         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69272         config.h.
69273
69274 2006-10-17  Bruno Haible  <bruno@clisp.org>
69275
69276         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69277         differently if DEFAULT_TEXT_DOMAIN is set.
69278
69279 2006-10-16  Bruno Haible  <bruno@clisp.org>
69280
69281         * lib/clean-temp.c: Include fwriteerror.h.
69282
69283 2006-10-16  Bruno Haible  <bruno@clisp.org>
69284
69285         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69286
69287 2006-10-16  Bruno Haible  <bruno@clisp.org>
69288
69289         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69290         * lib/sigprocmask.h: Include <sys/types.h>.
69291         (sigset_t): Use the system's definition if present.
69292
69293 2006-10-17  Eric Blake  <ebb9@byu.net>
69294
69295         * lib/xvasprintf.c (includes): Assume config.h.
69296         * lib/xasprintf.c (includes): Likewise.
69297
69298 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69299
69300         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69301         at least as wide as intmax_t.
69302
69303 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69304
69305         (Imported from Automake.)
69306         * build-aux/gnupload: Update to version 1.1 of directive file.
69307
69308 2006-10-16  Eric Blake  <ebb9@byu.net>
69309
69310         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69311         match Automake 1.10a.
69312
69313 2006-10-14  Bruno Haible  <bruno@clisp.org>
69314
69315         * modules/sigprocmask: New file.
69316         * lib/sigprocmask.h: New file.
69317         * lib/sigprocmask.c: New file.
69318         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69319         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69320         request sigprocmask.o.
69321         (gl_PREREQ_SIGPROCMASK): New macro.
69322         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69323         (Depends-on): Add sigprocmask.
69324         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69325         gt_SIGNALBLOCKING. Test for 'raise' only once.
69326         * lib/fatal-signal.c: Include sigprocmask.h.
69327         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69328         unblock_fatal_signals): Define always.
69329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69330         sigprocmask.
69331
69332 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69333
69334         Sync from Automake.
69335         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69336         which incorrectly sets the mode of an existing destination
69337         directory.  In some cases the unpatched install-sh could do the
69338         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69339         system.  We hope this is rare in practice, but it's clearly worth
69340         fixing.  Problem reported by Alex Unleashed in
69341         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69342         Also, don't bother to check for -m bugs unless we're using -m;
69343         suggested by Stepan Kasal.
69344
69345 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69346
69347         Sync from Automake.
69348         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69349         `-c' flag, so they appear at the same position as in %FASTDEP%
69350         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69351         which ignores unknown options only after the first non-option.
69352         Bug report against M4 by Nelson H. F. Beebe.
69353
69354 2006-10-13  Jim Meyering  <jim@meyering.net>
69355
69356         Fix a bug in yesterday's change.
69357         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69358         p->fts_statp->st_dev would be used uninitialized.
69359         Ensures that we always call fts_stat on the very first entry.
69360         Miklos Szeredi reported that find -xdev stopped working.
69361
69362 2006-10-12  Bruno Haible  <bruno@clisp.org>
69363
69364         * gnulib-tool (func_get_automake_snippet): Append an automatically
69365         computed EXTRA_DIST augmentation.
69366         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69367         * modules/alloca-opt (Makefile.am): Likewise.
69368         * modules/allocsa (Makefile.am): Likewise.
69369         * modules/arcfour (Makefile.am): Likewise.
69370         * modules/arctwo (Makefile.am): Likewise.
69371         * modules/argmatch (Makefile.am): Likewise.
69372         * modules/argz (Makefile.am): Likewise.
69373         * modules/atexit (Makefile.am): Likewise.
69374         * modules/backupfile (Makefile.am): Likewise.
69375         * modules/byteswap (Makefile.am): Likewise.
69376         * modules/c-strtod (Makefile.am): Likewise.
69377         * modules/c-strtold (Makefile.am): Likewise.
69378         * modules/calloc (Makefile.am): Likewise.
69379         * modules/canon-host (Makefile.am): Likewise.
69380         * modules/canonicalize (Makefile.am): Likewise.
69381         * modules/chdir-long (Makefile.am): Likewise.
69382         * modules/chdir-safer (Makefile.am): Likewise.
69383         * modules/check-version (Makefile.am): Likewise.
69384         * modules/chown (Makefile.am): Likewise.
69385         * modules/cloexec (Makefile.am): Likewise.
69386         * modules/close-stream (Makefile.am): Likewise.
69387         * modules/closeout (Makefile.am): Likewise.
69388         * modules/crc (Makefile.am): Likewise.
69389         * modules/csharpexec (Makefile.am): Likewise.
69390         * modules/cycle-check (Makefile.am): Likewise.
69391         * modules/des (Makefile.am): Likewise.
69392         * modules/dev-ino (Makefile.am): Likewise.
69393         * modules/dirfd (Makefile.am): Likewise.
69394         * modules/dirname (Makefile.am): Likewise.
69395         * modules/dup2 (Makefile.am): Likewise.
69396         * modules/eealloc (Makefile.am): Likewise.
69397         * modules/error (Makefile.am): Likewise.
69398         * modules/euidaccess (Makefile.am): Likewise.
69399         * modules/exclude (Makefile.am): Likewise.
69400         * modules/exitfail (Makefile.am): Likewise.
69401         * modules/fcntl-safer (Makefile.am): Likewise.
69402         * modules/fcntl (Makefile.am): Likewise.
69403         * modules/file-type (Makefile.am): Likewise.
69404         * modules/fileblocks (Makefile.am): Likewise.
69405         * modules/filemode (Makefile.am): Likewise.
69406         * modules/filenamecat (Makefile.am): Likewise.
69407         * modules/fnmatch (Makefile.am): Likewise.
69408         * modules/fopen-safer (Makefile.am): Likewise.
69409         * modules/fpending (Makefile.am): Likewise.
69410         * modules/fprintftime (Makefile.am): Likewise.
69411         * modules/free (Makefile.am): Likewise.
69412         * modules/fsusage (Makefile.am): Likewise.
69413         * modules/ftruncate (Makefile.am): Likewise.
69414         * modules/fts (Makefile.am): Likewise.
69415         * modules/gc-arcfour (Makefile.am): Likewise.
69416         * modules/gc-des (Makefile.am): Likewise.
69417         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69418         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69419         * modules/gc-md4 (Makefile.am): Likewise.
69420         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69421         * modules/gc-sha1 (Makefile.am): Likewise.
69422         * modules/gc (Makefile.am): Likewise.
69423         * modules/getaddrinfo (Makefile.am): Likewise.
69424         * modules/getcwd (Makefile.am): Likewise.
69425         * modules/getdelim (Makefile.am): Likewise.
69426         * modules/getdomainname (Makefile.am): Likewise.
69427         * modules/getgroups (Makefile.am): Likewise.
69428         * modules/gethostname (Makefile.am): Likewise.
69429         * modules/gethrxtime (Makefile.am): Likewise.
69430         * modules/getline (Makefile.am): Likewise.
69431         * modules/getloadavg (Makefile.am): Likewise.
69432         * modules/getlogin_r (Makefile.am): Likewise.
69433         * modules/getndelim2 (Makefile.am): Likewise.
69434         * modules/getopt (Makefile.am): Likewise.
69435         * modules/getpagesize (Makefile.am): Likewise.
69436         * modules/getpass-gnu (Makefile.am): Likewise.
69437         * modules/getpass (Makefile.am): Likewise.
69438         * modules/getsubopt (Makefile.am): Likewise.
69439         * modules/gettime (Makefile.am): Likewise.
69440         * modules/gettimeofday (Makefile.am): Likewise.
69441         * modules/getugroups (Makefile.am): Likewise.
69442         * modules/getusershell (Makefile.am): Likewise.
69443         * modules/glob (Makefile.am): Likewise.
69444         * modules/group-member (Makefile.am): Likewise.
69445         * modules/hard-locale (Makefile.am): Likewise.
69446         * modules/hash (Makefile.am): Likewise.
69447         * modules/hmac-md5 (Makefile.am): Likewise.
69448         * modules/hmac-sha1 (Makefile.am): Likewise.
69449         * modules/human (Makefile.am): Likewise.
69450         * modules/idcache (Makefile.am): Likewise.
69451         * modules/imaxabs (Makefile.am): Likewise.
69452         * modules/imaxdiv (Makefile.am): Likewise.
69453         * modules/inet_ntop (Makefile.am): Likewise.
69454         * modules/inet_pton (Makefile.am): Likewise.
69455         * modules/intprops (Makefile.am): Likewise.
69456         * modules/inttostr (Makefile.am): Likewise.
69457         * modules/inttypes (Makefile.am): Likewise.
69458         * modules/isapipe (Makefile.am): Likewise.
69459         * modules/javaversion (Makefile.am): Likewise.
69460         * modules/lchmod (Makefile.am): Likewise.
69461         * modules/lchown (Makefile.am): Likewise.
69462         * modules/localcharset (Makefile.am): Likewise.
69463         * modules/long-options (Makefile.am): Likewise.
69464         * modules/lstat (Makefile.am): Likewise.
69465         * modules/malloc (Makefile.am): Likewise.
69466         * modules/mathl (Makefile.am): Likewise.
69467         * modules/mbchar (Makefile.am): Likewise.
69468         * modules/md2 (Makefile.am): Likewise.
69469         * modules/md4 (Makefile.am): Likewise.
69470         * modules/md5 (Makefile.am): Likewise.
69471         * modules/memcasecmp (Makefile.am): Likewise.
69472         * modules/memchr (Makefile.am): Likewise.
69473         * modules/memcmp (Makefile.am): Likewise.
69474         * modules/memcoll (Makefile.am): Likewise.
69475         * modules/memcpy (Makefile.am): Likewise.
69476         * modules/memmem (Makefile.am): Likewise.
69477         * modules/memmove (Makefile.am): Likewise.
69478         * modules/mempcpy (Makefile.am): Likewise.
69479         * modules/memrchr (Makefile.am): Likewise.
69480         * modules/memset (Makefile.am): Likewise.
69481         * modules/memxor (Makefile.am): Likewise.
69482         * modules/mkancesdirs (Makefile.am): Likewise.
69483         * modules/mkdir-p (Makefile.am): Likewise.
69484         * modules/mkdir (Makefile.am): Likewise.
69485         * modules/mkdtemp (Makefile.am): Likewise.
69486         * modules/mkstemp (Makefile.am): Likewise.
69487         * modules/mktime (Makefile.am): Likewise.
69488         * modules/modechange (Makefile.am): Likewise.
69489         * modules/mountlist (Makefile.am): Likewise.
69490         * modules/nanosleep (Makefile.am): Likewise.
69491         * modules/obstack (Makefile.am): Likewise.
69492         * modules/openat (Makefile.am): Likewise.
69493         * modules/pagealign_alloc (Makefile.am): Likewise.
69494         * modules/pathmax (Makefile.am): Likewise.
69495         * modules/physmem (Makefile.am): Likewise.
69496         * modules/poll (Makefile.am): Likewise.
69497         * modules/posixtm (Makefile.am): Likewise.
69498         * modules/posixver (Makefile.am): Likewise.
69499         * modules/putenv (Makefile.am): Likewise.
69500         * modules/quote (Makefile.am): Likewise.
69501         * modules/quotearg (Makefile.am): Likewise.
69502         * modules/raise (Makefile.am): Likewise.
69503         * modules/read-file (Makefile.am): Likewise.
69504         * modules/readline (Makefile.am): Likewise.
69505         * modules/readlink (Makefile.am): Likewise.
69506         * modules/readtokens (Makefile.am): Likewise.
69507         * modules/readutmp (Makefile.am): Likewise.
69508         * modules/realloc (Makefile.am): Likewise.
69509         * modules/regex (Makefile.am): Likewise.
69510         * modules/rename-dest-slash (Makefile.am): Likewise.
69511         * modules/rename (Makefile.am): Likewise.
69512         * modules/rijndael (Makefile.am): Likewise.
69513         * modules/rmdir (Makefile.am): Likewise.
69514         * modules/rpmatch (Makefile.am): Likewise.
69515         * modules/safe-read (Makefile.am): Likewise.
69516         * modules/safe-write (Makefile.am): Likewise.
69517         * modules/same-inode (Makefile.am): Likewise.
69518         * modules/same (Makefile.am): Likewise.
69519         * modules/save-cwd (Makefile.am): Likewise.
69520         * modules/savedir (Makefile.am): Likewise.
69521         * modules/setenv (Makefile.am): Likewise.
69522         * modules/settime (Makefile.am): Likewise.
69523         * modules/sha1 (Makefile.am): Likewise.
69524         * modules/sig2str (Makefile.am): Likewise.
69525         * modules/snprintf (Makefile.am): Likewise.
69526         * modules/stat-macros (Makefile.am): Likewise.
69527         * modules/stat-time (Makefile.am): Likewise.
69528         * modules/stdbool (Makefile.am): Likewise.
69529         * modules/stdint (Makefile.am): Likewise.
69530         * modules/stdlib-safer (Makefile.am): Likewise.
69531         * modules/stpcpy (Makefile.am): Likewise.
69532         * modules/stpncpy (Makefile.am): Likewise.
69533         * modules/strcase (Makefile.am): Likewise.
69534         * modules/strcasestr (Makefile.am): Likewise.
69535         * modules/strchrnul (Makefile.am): Likewise.
69536         * modules/strcspn (Makefile.am): Likewise.
69537         * modules/strdup (Makefile.am): Likewise.
69538         * modules/strerror (Makefile.am): Likewise.
69539         * modules/strftime (Makefile.am): Likewise.
69540         * modules/strndup (Makefile.am): Likewise.
69541         * modules/strnlen (Makefile.am): Likewise.
69542         * modules/strpbrk (Makefile.am): Likewise.
69543         * modules/strsep (Makefile.am): Likewise.
69544         * modules/strstr (Makefile.am): Likewise.
69545         * modules/strtod (Makefile.am): Likewise.
69546         * modules/strtoimax (Makefile.am): Likewise.
69547         * modules/strtok_r (Makefile.am): Likewise.
69548         * modules/strtol (Makefile.am): Likewise.
69549         * modules/strtoll (Makefile.am): Likewise.
69550         * modules/strtoul (Makefile.am): Likewise.
69551         * modules/strtoull (Makefile.am): Likewise.
69552         * modules/strtoumax (Makefile.am): Likewise.
69553         * modules/strverscmp (Makefile.am): Likewise.
69554         * modules/sys_socket (Makefile.am): Likewise.
69555         * modules/sys_stat (Makefile.am): Likewise.
69556         * modules/sysexits (Makefile.am): Likewise.
69557         * modules/time_r (Makefile.am): Likewise.
69558         * modules/timegm (Makefile.am): Likewise.
69559         * modules/timespec (Makefile.am): Likewise.
69560         * modules/tmpfile-safer (Makefile.am): Likewise.
69561         * modules/trim (Makefile.am): Likewise.
69562         * modules/unistd-safer (Makefile.am): Likewise.
69563         * modules/unlinkdir (Makefile.am): Likewise.
69564         * modules/unlocked-io (Makefile.am): Likewise.
69565         * modules/userspec (Makefile.am): Likewise.
69566         * modules/utime (Makefile.am): Likewise.
69567         * modules/utimecmp (Makefile.am): Likewise.
69568         * modules/utimens (Makefile.am): Likewise.
69569         * modules/vasnprintf (Makefile.am): Likewise.
69570         * modules/vasprintf (Makefile.am): Likewise.
69571         * modules/vsnprintf (Makefile.am): Likewise.
69572         * modules/xalloc (Makefile.am): Likewise.
69573         * modules/xgetcwd (Makefile.am): Likewise.
69574         * modules/xnanosleep (Makefile.am): Likewise.
69575         * modules/xreadlink (Makefile.am): Likewise.
69576         * modules/xstrtod (Makefile.am): Likewise.
69577         * modules/xstrtol (Makefile.am): Likewise.
69578         * modules/xstrtold (Makefile.am): Likewise.
69579         * modules/yesno (Makefile.am): Likewise.
69580         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69581
69582 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69583
69584         * modules/error (Makefile.am): Distribute files through
69585         EXTRA_DIST, not lib_SOURCES.
69586
69587 2006-10-12  Eric Blake  <ebb9@byu.net>
69588
69589         * modules/error (Makefile.am): Distribute files in /lib.
69590         * modules/obstack (Makefile.am): Likewise.
69591
69592 2006-10-12  Bruno Haible  <bruno@clisp.org>
69593
69594         * modules/acl (Makefile.am): Distribute all files in lib/ through
69595         EXTRA_DIST.
69596         * modules/arcfour (Makefile.am): Likewise.
69597         * modules/arctwo (Makefile.am): Likewise.
69598         * modules/argmatch (Makefile.am): Likewise.
69599         * modules/argz (Makefile.am): Likewise.
69600         * modules/atexit (Makefile.am): Likewise.
69601         * modules/backupfile (Makefile.am): Likewise.
69602         * modules/c-strtod (Makefile.am): Likewise.
69603         * modules/c-strtold (Makefile.am): Likewise.
69604         * modules/calloc (Makefile.am): Likewise.
69605         * modules/canon-host (Makefile.am): Likewise.
69606         * modules/canonicalize (Makefile.am): Likewise.
69607         * modules/chdir-long (Makefile.am): Likewise.
69608         * modules/chdir-safer (Makefile.am): Likewise.
69609         * modules/check-version (Makefile.am): Likewise.
69610         * modules/chown (Makefile.am): Likewise.
69611         * modules/cloexec (Makefile.am): Likewise.
69612         * modules/close-stream (Makefile.am): Likewise.
69613         * modules/closeout (Makefile.am): Likewise.
69614         * modules/crc (Makefile.am): Likewise.
69615         * modules/cycle-check (Makefile.am): Likewise.
69616         * modules/des (Makefile.am): Likewise.
69617         * modules/dirfd (Makefile.am): Likewise.
69618         * modules/dirname (Makefile.am): Likewise.
69619         * modules/dup2 (Makefile.am): Likewise.
69620         * modules/euidaccess (Makefile.am): Likewise.
69621         * modules/exclude (Makefile.am): Likewise.
69622         * modules/exitfail (Makefile.am): Likewise.
69623         * modules/fcntl-safer (Makefile.am): Likewise.
69624         * modules/file-type (Makefile.am): Likewise.
69625         * modules/fileblocks (Makefile.am): Likewise.
69626         * modules/filemode (Makefile.am): Likewise.
69627         * modules/filenamecat (Makefile.am): Likewise.
69628         * modules/fnmatch (Makefile.am): Likewise.
69629         * modules/fopen-safer (Makefile.am): Likewise.
69630         * modules/fpending (Makefile.am): Likewise.
69631         * modules/fprintftime (Makefile.am): Likewise.
69632         * modules/free (Makefile.am): Likewise.
69633         * modules/fsusage (Makefile.am): Likewise.
69634         * modules/ftruncate (Makefile.am): Likewise.
69635         * modules/fts (Makefile.am): Likewise.
69636         * modules/gc (Makefile.am): Likewise.
69637         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69638         * modules/getaddrinfo (Makefile.am): Likewise.
69639         * modules/getcwd (Makefile.am): Likewise.
69640         * modules/getdelim (Makefile.am): Likewise.
69641         * modules/getdomainname (Makefile.am): Likewise.
69642         * modules/getgroups (Makefile.am): Likewise.
69643         * modules/gethostname (Makefile.am): Likewise.
69644         * modules/gethrxtime (Makefile.am): Likewise.
69645         * modules/getline (Makefile.am): Likewise.
69646         * modules/getloadavg (Makefile.am): Likewise.
69647         * modules/getlogin_r (Makefile.am): Likewise.
69648         * modules/getopt (Makefile.am): Likewise.
69649         * modules/getpass (Makefile.am): Likewise.
69650         * modules/getpass-gnu (Makefile.am): Likewise.
69651         * modules/getsubopt (Makefile.am): Likewise.
69652         * modules/gettime (Makefile.am): Likewise.
69653         * modules/gettimeofday (Makefile.am): Likewise.
69654         * modules/getugroups (Makefile.am): Likewise.
69655         * modules/getusershell (Makefile.am): Likewise.
69656         * modules/glob (Makefile.am): Likewise.
69657         * modules/group-member (Makefile.am): Likewise.
69658         * modules/hard-locale (Makefile.am): Likewise.
69659         * modules/hash (Makefile.am): Likewise.
69660         * modules/hmac-md5 (Makefile.am): Likewise.
69661         * modules/hmac-sha1 (Makefile.am): Likewise.
69662         * modules/human (Makefile.am): Likewise.
69663         * modules/idcache (Makefile.am): Likewise.
69664         * modules/imaxabs (Makefile.am): Likewise.
69665         * modules/imaxdiv (Makefile.am): Likewise.
69666         * modules/inet_ntop (Makefile.am): Likewise.
69667         * modules/inet_pton (Makefile.am): Likewise.
69668         * modules/inttostr (Makefile.am): Likewise.
69669         * modules/isapipe (Makefile.am): Likewise.
69670         * modules/lchown (Makefile.am): Likewise.
69671         * modules/long-options (Makefile.am): Likewise.
69672         * modules/lstat (Makefile.am): Likewise.
69673         * modules/malloc (Makefile.am): Likewise.
69674         * modules/mathl (Makefile.am): Likewise.
69675         * modules/mbchar (Makefile.am): Likewise.
69676         * modules/md2 (Makefile.am): Likewise.
69677         * modules/md4 (Makefile.am): Likewise.
69678         * modules/md5 (Makefile.am): Likewise.
69679         * modules/memcasecmp (Makefile.am): Likewise.
69680         * modules/memchr (Makefile.am): Likewise.
69681         * modules/memcmp (Makefile.am): Likewise.
69682         * modules/memcoll (Makefile.am): Likewise.
69683         * modules/memcpy (Makefile.am): Likewise.
69684         * modules/memmem (Makefile.am): Likewise.
69685         * modules/memmove (Makefile.am): Likewise.
69686         * modules/mempcpy (Makefile.am): Likewise.
69687         * modules/memrchr (Makefile.am): Likewise.
69688         * modules/memset (Makefile.am): Likewise.
69689         * modules/memxor (Makefile.am): Likewise.
69690         * modules/mkancesdirs (Makefile.am): Likewise.
69691         * modules/mkdir (Makefile.am): Likewise.
69692         * modules/mkdir-p (Makefile.am): Likewise.
69693         * modules/mkdtemp (Makefile.am): Likewise.
69694         * modules/mkstemp (Makefile.am): Likewise.
69695         * modules/mktime (Makefile.am): Likewise.
69696         * modules/modechange (Makefile.am): Likewise.
69697         * modules/mountlist (Makefile.am): Likewise.
69698         * modules/nanosleep (Makefile.am): Likewise.
69699         * modules/openat (Makefile.am): Likewise.
69700         * modules/pagealign_alloc (Makefile.am): Likewise.
69701         * modules/physmem (Makefile.am): Likewise.
69702         * modules/poll (Makefile.am): Likewise.
69703         * modules/posixtm (Makefile.am): Likewise.
69704         * modules/posixver (Makefile.am): Likewise.
69705         * modules/putenv (Makefile.am): Likewise.
69706         * modules/quote (Makefile.am): Likewise.
69707         * modules/quotearg (Makefile.am): Likewise.
69708         * modules/raise (Makefile.am): Likewise.
69709         * modules/read-file (Makefile.am): Likewise.
69710         * modules/readline (Makefile.am): Likewise.
69711         * modules/readlink (Makefile.am): Likewise.
69712         * modules/readtokens (Makefile.am): Likewise.
69713         * modules/readutmp (Makefile.am): Likewise.
69714         * modules/realloc (Makefile.am): Likewise.
69715         * modules/regex (Makefile.am): Likewise.
69716         * modules/rename (Makefile.am): Likewise.
69717         * modules/rename-dest-slash (Makefile.am): Likewise.
69718         * modules/rijndael (Makefile.am): Likewise.
69719         * modules/rmdir (Makefile.am): Likewise.
69720         * modules/rpmatch (Makefile.am): Likewise.
69721         * modules/safe-read (Makefile.am): Likewise.
69722         * modules/safe-write (Makefile.am): Likewise.
69723         * modules/same (Makefile.am): Likewise.
69724         * modules/save-cwd (Makefile.am): Likewise.
69725         * modules/savedir (Makefile.am): Likewise.
69726         * modules/setenv (Makefile.am): Likewise.
69727         * modules/settime (Makefile.am): Likewise.
69728         * modules/sha1 (Makefile.am): Likewise.
69729         * modules/sig2str (Makefile.am): Likewise.
69730         * modules/snprintf (Makefile.am): Likewise.
69731         * modules/stdlib-safer (Makefile.am): Likewise.
69732         * modules/stpcpy (Makefile.am): Likewise.
69733         * modules/stpncpy (Makefile.am): Likewise.
69734         * modules/strcase (Makefile.am): Likewise.
69735         * modules/strcasestr (Makefile.am): Likewise.
69736         * modules/strchrnul (Makefile.am): Likewise.
69737         * modules/strcspn (Makefile.am): Likewise.
69738         * modules/strdup (Makefile.am): Likewise.
69739         * modules/strerror (Makefile.am): Likewise.
69740         * modules/strftime (Makefile.am): Likewise.
69741         * modules/strndup (Makefile.am): Likewise.
69742         * modules/strnlen (Makefile.am): Likewise.
69743         * modules/strpbrk (Makefile.am): Likewise.
69744         * modules/strsep (Makefile.am): Likewise.
69745         * modules/strstr (Makefile.am): Likewise.
69746         * modules/strtod (Makefile.am): Likewise.
69747         * modules/strtoimax (Makefile.am): Likewise.
69748         * modules/strtok_r (Makefile.am): Likewise.
69749         * modules/strtol (Makefile.am): Likewise.
69750         * modules/strtoll (Makefile.am): Likewise.
69751         * modules/strtoul (Makefile.am): Likewise.
69752         * modules/strtoull (Makefile.am): Likewise.
69753         * modules/strtoumax (Makefile.am): Likewise.
69754         * modules/strverscmp (Makefile.am): Likewise.
69755         * modules/time_r (Makefile.am): Likewise.
69756         * modules/timegm (Makefile.am): Likewise.
69757         * modules/tmpfile-safer (Makefile.am): Likewise.
69758         * modules/unistd-safer (Makefile.am): Likewise.
69759         * modules/unlinkdir (Makefile.am): Likewise.
69760         * modules/userspec (Makefile.am): Likewise.
69761         * modules/utime (Makefile.am): Likewise.
69762         * modules/utimecmp (Makefile.am): Likewise.
69763         * modules/utimens (Makefile.am): Likewise.
69764         * modules/vasnprintf (Makefile.am): Likewise.
69765         * modules/vasprintf (Makefile.am): Likewise.
69766         * modules/vsnprintf (Makefile.am): Likewise.
69767         * modules/xalloc (Makefile.am): Likewise.
69768         * modules/xgetcwd (Makefile.am): Likewise.
69769         * modules/xnanosleep (Makefile.am): Likewise.
69770         * modules/xreadlink (Makefile.am): Likewise.
69771         * modules/xstrtod (Makefile.am): Likewise.
69772         * modules/xstrtol (Makefile.am): Likewise.
69773         * modules/xstrtold (Makefile.am): Likewise.
69774         * modules/yesno (Makefile.am): Likewise.
69775
69776 2006-10-12  Jim Meyering  <jim@meyering.net>
69777
69778         * m4/getloadavg.m4: Revert the change below.
69779
69780         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69781         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69782         fail with a symlink, which is what coreutils' ./bootstrap now
69783         creates by default.
69784
69785 2006-10-12  Bruno Haible  <bruno@clisp.org>
69786
69787         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69788         mingw.
69789         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69790         MSVC and mingw explicitly.
69791
69792 2006-10-11  Simon Josefsson  <jas@extundo.com>
69793             Bruno Haible  <bruno@clisp.org>
69794
69795         Add support for multiple gnulib-tool invocations in the scope of a
69796         single configure.ac file.
69797         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69798         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69799         with the same contents as the _LIBADD variable.
69800         (func_emit_initmacro_start, func_emit_initmacro_end,
69801         func_emit_initmacro_done): New functions.
69802         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69803         gl_LIBOBJS and gl_LTLIBOBJS.
69804
69805 2006-10-11  Bruno Haible  <bruno@clisp.org>
69806
69807         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69808         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69809         autoreconf. Instead, invoke autopoint explicitly but move back the
69810         *.m4 files from gnulib.
69811
69812 2006-10-11  Bruno Haible  <bruno@clisp.org>
69813
69814         * gnulib-tool (func_usage): Make module names after --create-testdir
69815         optional.
69816         (func_create_testdir): If no module was specified, use nearly all
69817         modules.
69818
69819 2006-10-12  Jim Meyering  <jim@meyering.net>
69820
69821         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69822         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69823         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69824         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69825         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69826         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69827         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69828         (fts_set_stat_required): New function.
69829         (fts_open): Defer the calls to fts_stat, if possible or requested.
69830         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69831         into fts_stat itself.
69832         (fts_read): Perform any required (deferred) fts_stat call.
69833         (fts_build): Likewise, for the directory we're about to open and read.
69834         In the readdir loop, carefully decide whether each entry will require
69835         an eventual call to fts_stat, using dirent.d_type info if available.
69836         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69837         a command line argument into this function.  Update all callers.
69838         Map a return value of FTS_DOT to FTS_D for a command line argument.
69839         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69840         Thanks to Miklos Szeredi for his tenacity and for the initial
69841         bug report about "find" failing on a FUSE-based file system.
69842
69843         * lib/fts.c (fts_open): Use consistent indentation.
69844
69845 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69846
69847         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69848         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69849         reported by Jim Meyering.  All uses of cache variables renamed
69850         to match Autoconf's.
69851         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69852         the other one.
69853
69854         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69855         Fix misspelling in diagnostic.
69856
69857 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69858
69859         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69860         defined.  Problem reported by Matthew Woehlke.
69861
69862         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69863         Add support for Tandem NonStop R series.
69864         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69865         Use new macro.
69866
69867         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69868         (has_trailing_slash): Omit size arg; all callers changed.
69869         Omit 'inline', since it doesn't help performance and we'd
69870         need to configure it.
69871         Don't count //, ///, etc. as having a trailing slash.
69872         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69873         (rpl_rename_dest_slash): On failure, use rename's errno rather
69874         than (in some cases) an incorrect or junk errno.
69875         Simplify code by removing need to compute length; this does
69876         cause it to make two passes instead of one over the file name,
69877         but it's worth it.
69878
69879         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69880         change, since Autoconf's version may no longer be appropriate now
69881         that we are using CVS Autoconf's version.  Add support for Tandem.
69882
69883 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69884             Bruno Haible  <bruno@clisp.org>
69885
69886         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69887         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69888         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69889         gl_AC_TYPE_LONG_LONG.
69890
69891         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69892         instead of HAVE_LONG_LONG.
69893         * lib/printf-args.c (printf_fetchargs): Likewise.
69894         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69895         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69896         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69897         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69898         gl_AC_TYPE_LONG_LONG.
69899
69900 2006-10-11  Bruno Haible  <bruno@clisp.org>
69901
69902         * m4/longlong.m4: Add comments.
69903         * m4/ulonglong.m4: Likewise.
69904
69905 2006-10-10  Bruno Haible  <bruno@clisp.org>
69906
69907         Make it possible to #define stpcpy, strdup to aliases.
69908         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69909         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69910
69911 2006-10-10  Bruno Haible  <bruno@clisp.org>
69912
69913         Make it possible to #define gcd to an alias.
69914         * lib/gcd.c: Include config.h.
69915
69916 2006-10-10  Bruno Haible  <bruno@clisp.org>
69917
69918         Make it possible to #define c_isascii to an alias.
69919         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69920         defined. Undefine the macros before defining them, to avoid gcc
69921         warnings.
69922         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69923         define NO_C_CTYPE_MACROS early.
69924
69925 2006-10-10  Bruno Haible  <bruno@clisp.org>
69926
69927         Make it possible to #define set_program_name to an alias.
69928         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69929         ENABLE_RELOCATABLE early.
69930
69931 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69932
69933         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69934         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69935         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69936         More generally, don't assume that 64-bit signed int is available
69937         if unsigned int is, and vice versa.
69938         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69939         unsigned symbols, not on their signed counterparts.
69940         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69941         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69942         (UINT64_C, UINTMAX_C):
69943         Likewise.
69944         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69945         unsigned counterparts.
69946         (Have_long_long, Unsigned): New macros.
69947         (Int): Renamed from INT.
69948         (strtoimax): Use the new macros.
69949         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69950         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69951         * modules/inttypes (inttypes.h): Substitute
69952         HAVE_UNSIGNED_LONG_LONG_INT.
69953         * modules/stdint (stdint.h): Likewise.
69954         (Files): Add m4/ulonglong.m4.
69955
69956 2006-10-10  Bruno Haible  <bruno@clisp.org>
69957
69958         Fix a gcc -Wshadow warning.
69959         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69960         to 'bucket'.
69961         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69962         gl_linked_indexof_from_to): Likewise.
69963         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69964         Likewise.
69965         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69966         Likewise.
69967         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69968         Reported by Eric Blake.
69969
69970 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69971
69972         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69973         for NetBSD.  Problem reported by Bruno Haible.
69974
69975 2006-10-09  Jim Meyering  <jim@meyering.net>
69976
69977         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69978         Patch from Bruno Haible.
69979
69980 2006-10-09  Jim Meyering  <jim@meyering.net>
69981
69982         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69983         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69984         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69985
69986 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         Don't include <config.h> twice; this doesn't work in some cases,
69989         e.g., when config.h has "#define intmax_t long long int" and
69990         we include <config.h>, <inttypes.h>, <config.h> in that order.
69991         Problem reported by Matthew Woehlke in:
69992         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69993         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69994         * lib/fts-cycle.c: Don't include config.h.
69995         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69996         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69997         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69998         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69999         inttypes.h.
70000         * lib/xstrtoumax.c: Likewise.
70001         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
70002         __strtol and the like, so that this module is more like its siblings.
70003         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
70004         Remove; no longer needed now that we assume gnulib inttypes.h.
70005
70006 2006-10-08  Bruno Haible  <bruno@clisp.org>
70007
70008         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
70009         option.
70010
70011 2006-10-07  Jim Meyering  <jim@meyering.net>
70012
70013         * modules/inttypes (inttypes.h): Revert what seems to have been
70014         an inadvertent part of today's change: use "|", not "/" in the
70015         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
70016
70017 2006-10-07  Bruno Haible  <bruno@clisp.org>
70018
70019         * modules/sublist: New file.
70020
70021 2006-10-07  Bruno Haible  <bruno@clisp.org>
70022
70023         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
70024         * modules/argz (argz.h): Likewise.
70025         * modules/arpa_inet (arpa/inet.h): Likewise.
70026         * modules/byteswap (byteswap.h): Likewise.
70027         * modules/configmake (configmake.h): Likewise.
70028         * modules/fcntl (fcntl.h): Likewise.
70029         * modules/fnmatch (fnmatch.h): Likewise.
70030         * modules/getopt (getopt.h): Likewise.
70031         * modules/glob (glob.h): Likewise.
70032         * modules/inttypes (inttypes.h): Likewise.
70033         * modules/netinet_in (netinet/in.h): Likewise.
70034         * modules/poll (poll.h): Likewise.
70035         * modules/stdbool (stdbool.h): Likewise.
70036         * modules/stdint (stdint.h): Likewise.
70037         * modules/sys_select (sys/select.h): Likewise.
70038         * modules/sys_socket (sys/socket.h): Likewise.
70039         * modules/sys_stat (sys/stat.h): Likewise.
70040         * modules/sysexits (sysexits.h): Likewise.
70041         * modules/unistd (unistd.h): Likewise.
70042         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70043         Add a "DO NOT EDIT" comment to the generated file.
70044         (func_import): Likewise for gnulib-comp.m4.
70045
70046 2006-10-07  Bruno Haible  <bruno@clisp.org>
70047
70048         * lib/gl_sublist.h: New file.
70049         * lib/gl_sublist.c: New file.
70050
70051 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70052
70053         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
70054         name (relative to the original working directory) and the file
70055         name component (relative to the temporary working directory).  All
70056         callers changed.
70057         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
70058         * lib/mkdir-p.c (make_dir_parents): Likewise.
70059         * lib/mkdir-p.h (make_dir_parents): Likewise.
70060
70061 2006-10-06  Eric Blake  <ebb9@byu.net>
70062
70063         Define several macros for use by the clean-temp module.
70064         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
70065         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
70066         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
70067
70068         * lib/clean-temp.h (close_stream_temp): New declaration.
70069         * lib/clean-temp.c (includes): Pull in headers according to what
70070         other modules are in use.
70071         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
70072
70073 2006-10-06  Bruno Haible  <bruno@clisp.org>
70074
70075         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
70076         instead of fopen, fwriteerror.
70077
70078 2006-10-06  Bruno Haible  <bruno@clisp.org>
70079
70080         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
70081         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
70082         int.
70083         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
70084         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
70085         Return an error indicator.
70086         Suggested by Eric Blake.
70087
70088 2006-10-06  Bruno Haible  <bruno@clisp.org>
70089
70090         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
70091         Reported by Eric Blake.
70092
70093 2006-10-06  Bruno Haible  <bruno@clisp.org>
70094
70095         * modules/closeout (Description): Mention stderr too.
70096
70097 2006-10-06  Bruno Haible  <bruno@clisp.org>
70098         and Paul Eggert  <eggert@cs.ucla.edu>
70099
70100         * lib/closeout.c (close_stdout): Also close stderr.
70101         * lib/closeout.h: Update comment.
70102
70103 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70104
70105         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
70106         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
70107         * lib/dirchownmod.c: Include lchown.h.
70108         * lib/lchown.c: Don't include files that lchown.h now includes.
70109         Don't declare chown, since lchown.h now does that.
70110         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
70111         (lchown): Define to rpl_chown if lchown is declared but
70112         does not exist.  Declare using a prototype if lchown is not
70113         declared.  Add a copyright notice.
70114         * lib/mkstemp.h: Include <unistd.h>.
70115         * lib/openat.c: Include lchown.h.
70116
70117         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
70118         we now test for that separately.
70119         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
70120         rather than O_NOFOLLOW, when testing whether it's possible to
70121         avoid a race condition reliably.
70122         * lib/savewd.c (savewd_chdir): Likewise.
70123
70124         Remove macros that are no longer needed now that stdint.h is
70125         reliable.
70126         * lib/fsusage.c (UINTMAX_MAX): Remove.
70127         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
70128         * lib/utimecmp.c (SIZE_MAX): Remove.
70129
70130         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
70131
70132         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
70133         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
70134         O_NOATIME works.
70135
70136 2006-10-05  Bruno Haible  <bruno@clisp.org>
70137
70138         * lib/gl_list.h (gl_sortedlist_search_from_to,
70139         gl_sortedlist_indexof_from_to): New declarations.
70140         (gl_list_implementation): New fields sortedlist_search_from_to,
70141         sortedlist_indexof_from_to.
70142         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
70143         inline functions.
70144         * lib/gl_list.c (gl_sortedlist_search_from_to,
70145         gl_sortedlist_indexof_from_to): New functions.
70146         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
70147         function.
70148         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
70149         (gl_array_sortedlist_search_from_to): New function.
70150         (gl_array_list_implementation): Update.
70151         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
70152         function.
70153         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
70154         (gl_carray_sortedlist_search_from_to): New function.
70155         (gl_carray_list_implementation): Update.
70156         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
70157         gl_linked_sortedlist_indexof_from_to): New functions.
70158         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70159         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70160         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
70161         gl_tree_sortedlist_indexof_from_to): New functions.
70162         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70163         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70164         Update.
70165         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70166         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70167         Update.
70168
70169 2006-10-05  Bruno Haible  <bruno@clisp.org>
70170
70171         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70172         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70173         (struct gl_list_implementation): Add fields search_from_to,
70174         indexof_from_to. Remove fields search, indexof.
70175         (gl_list_search): Use the search_from_to method.
70176         (gl_list_search_from, gl_list_search_from_to): New functions.
70177         (gl_list_indexof): Use the indexof_from_to method.
70178         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70179         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70180         (gl_list_search_from, gl_list_search_from_to): New functions.
70181         (gl_list_indexof): Use the indexof_from_to method.
70182         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70183         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70184         gl_array_indexof. Add start_index, end_index arguments.
70185         (gl_array_search_from_to): Renamed from gl_array_search. Add
70186         start_index, end_index arguments.
70187         (gl_array_remove, gl_array_list_implementation): Update.
70188         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70189         gl_carray_indexof. Add start_index, end_index arguments.
70190         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70191         start_index, end_index arguments.
70192         (gl_carray_remove, gl_carray_list_implementation): Update.
70193         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70194         gl_linked_search. Add start_index, end_index arguments.
70195         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70196         start_index, end_index arguments.
70197         (gl_linked_remove): Update.
70198         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70199         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70200         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70201         field to 'size_t'.
70202         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70203         gl_tree_search. Add start_index, end_index arguments.
70204         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70205         start_index, end_index arguments.
70206         (gl_tree_remove): Update.
70207         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70208         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70209         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70210         function.
70211         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70212         gl_tree_search. Add start_index, end_index arguments.
70213         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70214         start_index, end_index arguments.
70215         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70216         Update.
70217         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70218
70219 2006-10-05  Bruno Haible  <bruno@clisp.org>
70220
70221         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70222
70223         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70224         fwriteerror_temp): New declarations.
70225         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70226         (descriptors): New variable.
70227         (cleanup): First, close the descriptors.
70228         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70229         fclose_temp, fwriteerror_temp): New functions.
70230
70231 2006-10-04  Jim Meyering  <jim@meyering.net>
70232
70233         * lib/fts.c (fts_open): Tiny comment change.
70234
70235 2006-10-04  Bruno Haible  <bruno@clisp.org>
70236
70237         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70238         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70239         gl_LOCK_BODY.
70240         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70241         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70242         gl_LOCK_EARLY_BODY.
70243         (gl_LOCK): Require gl_LOCK_BODY.
70244
70245 2006-10-04  Bruno Haible  <bruno@clisp.org>
70246
70247         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70248         (gl_oset_search_atleast): New declaration.
70249         (struct gl_oset_implementation): Add field 'search_atleast'.
70250         (gl_oset_search_atleast): New inline function.
70251         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70252         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70253         (gl_array_oset_implementation): Update.
70254         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70255         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70256         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70257
70258 2006-10-04  Bruno Haible  <bruno@clisp.org>
70259
70260         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70261
70262 2006-10-03  Bruno Haible  <bruno@clisp.org>
70263
70264         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70265         from gl_avltreehash_list_implementation.
70266
70267 2006-10-03  Bruno Haible  <bruno@clisp.org>
70268
70269         * lib/gl_oset.c (gl_oset_add): Fix return type.
70270
70271 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70272
70273         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70274
70275 2006-10-02  Eric Blake  <ebb9@byu.net>
70276
70277         * modules/strnlen (Depends-on): Add extensions.
70278
70279 2006-10-02  Eric Blake  <ebb9@byu.net>
70280
70281         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70282         definition in 2.60+.
70283
70284 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70285
70286         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70287         checks.
70288
70289 2006-10-02  Bruno Haible  <bruno@clisp.org>
70290
70291         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70292         to the AUTOMAKE_OPTIONS.
70293         Reported by Jim Meyering.
70294
70295 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70296
70297         Work around bug in Solaris 10 /proc file system:
70298         /proc/self/fd/NNN/.. isn't the parent directory of
70299         the directory whose file descriptor is NNN.  This needs to
70300         be worked around at run time, not compile time, since a
70301         program might be built on Solaris 8, where things work, and
70302         run on Solaris 10.
70303         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70304         to use the following interface instead:
70305         (OPENAT_BUFFER_SIZE): New macro.
70306         (openat_proc_name): New function.
70307         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70308         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70309         Likewise.
70310         * lib/openat-proc.c: New file.
70311         * modules/openat (Files): Add lib/openat-proc.c.
70312         (Depends-on): Add same-inode, stdbool.
70313         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70314
70315 2006-09-29  Bruno Haible  <bruno@clisp.org>
70316
70317         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70318         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70319         argument. Set stdout_closed before testing for ferror, not after.
70320         (fwriteerror, fwriteerror_no_ebadf): New functions.
70321
70322 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70323
70324         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70325
70326 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70327
70328         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70329         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70330
70331 2006-09-28  Jim Meyering  <jim@meyering.net>
70332
70333         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70334         Include <unistd.h>.
70335
70336 2006-09-28  Bruno Haible  <bruno@clisp.org>
70337
70338         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70339         * modules/linkedhash-list (Depends-on): Likewise.
70340         * modules/rbtreehash-list (Depends-on): Likewise.
70341
70342 2006-09-28  Bruno Haible  <bruno@clisp.org>
70343
70344         * lib/strndup.h: Simplify the redefinition of strndup.
70345         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70346         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70347
70348 2006-09-28  Bruno Haible  <bruno@clisp.org>
70349
70350         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70351         * lib/gl_linkedhash_list.c: Likewise.
70352         * lib/gl_rbtreehash_list.c: Likewise.
70353
70354 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70355
70356         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70357         getaddrinfo.
70358
70359         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70360         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70361         it causes <stdio_ext.h> to cause a compile-time error.
70362         Problem reported by Nelson H. F. Beebe.
70363         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70364         of HAVE_DECL___PENDING.
70365
70366         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70367         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70368         declaration.
70369
70370 2006-09-27  Jim Meyering  <jim@meyering.net>
70371
70372         This file could end up with a definition for a function
70373         named __strndup, rather than rpl_strndup on a system with
70374         incomplete weak_alias support.
70375         * lib/strndup.c (strndup): Rename from __strndup.
70376         Remove #defines that used to map __strndup to strndup.
70377         Don't use K&R prototypes.
70378         Remove LIBC-related code, since this file is not sync'd with glibc.
70379         * lib/strndup.h: Revamp, accordingly.
70380         * m4/strndup.m4: Modernize.
70381
70382 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70383
70384         * modules/savewd (Depends-on): Add 'raise'.
70385         * lib/savewd.c: Include <signal.h>, for 'raise'.
70386
70387 2006-09-26  Jim Meyering  <jim@meyering.net>
70388
70389         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70390         when we detect Darwin 8.7.0's acl_get_file bug.
70391         Rearrange to perform the new (below) run-test while $LIBS
70392         contains any acl-related library.  Set USE_ACL at the end.
70393         (gl_ACL_GET_FILE): New function.
70394
70395 2006-09-26  Eric Blake  <ebb9@byu.net>
70396
70397         * lib/verror.c: Include <config.h> unconditionally.
70398
70399 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         * modules/clock-time (Maintainer): Add self.
70402         * modules/getlogin_r (Depends-on): Add extensions.
70403
70404 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70405
70406         * modules/clock-time: New module.
70407         * modules/nanosleep (Depends-on): Add clock-time.
70408         * modules/gethrxtime (Depends-on): Likewise.
70409         * modules/gettime (Depends-on): Likewise.
70410         * modules/settime (Depends-on): Likewise.
70411
70412         * modules/fts-lgpl: Depend on openat.
70413         * modules/mkancesdirs: Depend on savewd.
70414         * modules/mkdir-p: Likewise.
70415
70416 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70417
70418         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70419
70420         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70421         `gl_have_arbitrary_file_name_length_limit' to
70422         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70423         actually works between configure runs.
70424
70425 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70426             Bruno Haible  <bruno@clisp.org>
70427
70428         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70429
70430 2006-09-25  Jim Meyering  <jim@meyering.net>
70431
70432         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70433         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70434
70435 2006-09-25  Eric Blake  <ebb9@byu.net>
70436
70437         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70438         exec's in 2006-09-18 patch when shuffling fds.
70439
70440 2006-09-25  Bruno Haible  <bruno@clisp.org>
70441
70442         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70443         Reported by Jim Meyering.
70444
70445 2006-09-24  Jim Meyering  <jim@meyering.net>
70446
70447         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70448         compare a pointer against a literal "0".  That caused failures with
70449         at least HP-UX's hpcc.
70450
70451 2006-09-22  Simon Josefsson  <jas@extundo.com>
70452
70453         * modules/gc-sha1:
70454         * modules/gc-md4:
70455         * modules/gc-hmac-sha1:
70456         * modules/gc-hmac-md5:
70457         * modules/gc-des:
70458         * modules/gc-arcfour: Distribute more files.
70459
70460 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70461
70462         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70463         (gl_linked_iterator_from_to): Initialize struct completely.
70464         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70465         (gl_tree_iterator_from_to): Likewise
70466         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70467         * lib/gl_array_list.c [lint] (gl_array_iterator)
70468         (gl_array_iterator_from_to): Likewise.
70469         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70470         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70471         (gl_carray_iterator_from_to): Likewise.
70472
70473         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70474         * lib/md4.c (md4_process_block): Remove unused variable.
70475         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70476         parentheses for clarity.
70477
70478 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70479
70480         * modules/bison-i18n (Depends-on): Add gettext.
70481
70482 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70483
70484         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70485         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70486         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70487         also add missing comma that caused broken test.
70488         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70489         stdlib.h, for `abort'.
70490         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70491         variables.
70492         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70493         include unistd.h if present, for `rmdir'.
70494         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70495         variables.
70496         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70497         in the process include standard headers for prototypes.
70498         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70499         gets declared on GNU/Linux.
70500         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70501         unistd.h, for `rmdir'.
70502         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70503
70504         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70505         always true.
70506         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70507
70508         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70509
70510 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70511
70512         * gnulib-tool (func_version): Create output all at once.  This
70513         may help avoid triggering unnecessary SIGPIPEs, and at any
70514         rate it doesn't hurt.
70515
70516 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70517             Bruno Haible  <bruno@clisp.org>
70518
70519         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70520         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70521         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70522
70523         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70524         (gl_FUNC_VASPRINTF): Invoke it.
70525
70526 2006-09-22  Bruno Haible  <bruno@clisp.org>
70527
70528         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70529         getloadavg.c as first argument.
70530
70531 2006-09-22  Bruno Haible  <bruno@clisp.org>
70532
70533         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70534         at the beginning of the gl_INIT macro.
70535         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70536         gl_GETLOADAVG.
70537
70538 2006-09-22  Bruno Haible  <bruno@clisp.org>
70539
70540         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70541         module.
70542         Suggested by Ralf Wildenhues.
70543
70544 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70545
70546         Import this patch from libc:
70547
70548         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70549
70550         * lib/regex_internal.c (re_string_reconstruct): Handle
70551         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70552         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70553         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70554         re_string_context_at.
70555
70556         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70557         now requires it.
70558         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70559         gl_REGEX now does it for us.
70560         (gl_REGEX): Add test taken from
70561         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70562
70563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70564         Check that large offsets work.  Modernize Autoconf usages.
70565         Prefer "yes" to mean a good thing rather than a bad.
70566         Don't put "#define mkstemp" in config.h, as this might interfere
70567         with standard system headers that "#define mkstemp mkstemp64".
70568
70569         * modules/mkstemp (Depends-on): Add extensions, so that
70570         mkstemp is visible on some platforms.
70571         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70572         (Include): Change to "mkstemp.h" from <stdlib.h>.
70573         (Files): Add mkstemp.h.
70574
70575         * lib/mkstemp.h: New file, since some standard headers
70576         #define mkstemp.
70577         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70578         Include "mkstemp.h".
70579         Make the _LIBC code resemble glibc original more,
70580         e.g., use K&R style.
70581         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70582         (mkstemp): Remove, since mkstemp.h does this for us.
70583         * lib/stdlib--.h: Include mkstemp.h.
70584
70585         Import this patch from libc:
70586
70587         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70588
70589         * lib/tempname.c (__gen_tempname): Change attempts_min
70590         into a macro.  Use preprocessor to decide how to initialize
70591         attempts [Coverity CID 67].
70592
70593 2006-09-20  Bruno Haible  <bruno@clisp.org>
70594
70595         * lib/mkdtemp.c: Import from libc.
70596         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70597                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70598                 attempts_min into a macro.  Use preprocessor to decide how to
70599                 initialize attempts [Coverity CID 67].
70600         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70601                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70602                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70603
70604 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70605
70606         * gnulib-tool (func_exit): New function, to allow to pass the
70607         exit status portably through the trap.  Use everywhere.
70608         (--help, --version): Signal a write error.
70609         (trap): catch SIGPIPE, for write errors.
70610         Exit at the end of the trap, with the correct exit status.
70611
70612 2006-09-19  Karl Berry  <karl@gnu.org>
70613
70614         * doc/gnulib.texi: note about the license texinfo files.
70615
70616 2006-09-19  Eric Blake  <ebb9@byu.net>
70617
70618         * gnulib-tool: Avoid space-tab.
70619
70620 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70621
70622         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70623         that prevented coreutils 6.1 from building.  Problem reported
70624         by Petter Reinholdtsen.
70625
70626 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * gnulib-tool (avoidlist): Fix typo that broke options like
70629         --avoid=lock that are used by coreutils bootstrap.
70630
70631 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70632
70633         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70634         more systematically.
70635
70636 2006-09-18  Jim Meyering  <jim@meyering.net>
70637
70638         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70639
70640 2006-09-18  Bruno Haible  <bruno@clisp.org>
70641
70642         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70643
70644 2006-09-18  Bruno Haible  <bruno@clisp.org>
70645
70646         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70647         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70648         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70649         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70650         * m4/gettext.m4: Require autoconf >= 2.52.
70651         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70652         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70653         of gl_cv_header_inttypes_h.
70654
70655 2006-09-18  Bruno Haible  <bruno@clisp.org>
70656
70657         * lib/javaversion.c: Include configmake.h.
70658
70659 2006-09-18  Bruno Haible  <bruno@clisp.org>
70660
70661         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70662         avoid that the while loops be executed in a subshell.
70663
70664 2006-09-18  Bruno Haible  <bruno@clisp.org>
70665
70666         * MODULES.html.sh (func_module): Break long lines.
70667         Suggested by Bruce Korb <bkorb@gnu.org>.
70668
70669 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70670
70671         Speed up by a factor of 1.12.
70672         * gnulib-tool (nl): New variable.
70673         (func_import): Rewrite include directive extraction to only read each
70674         directive once.
70675
70676 2006-09-17  Bruno Haible  <bruno@clisp.org>
70677
70678         * modules/javaversion (Makefile.am): Remove DEFS setting.
70679         (Depends-on): Add configmake, for PKGDATADIR definition.
70680
70681 2006-09-17  Bruno Haible  <bruno@clisp.org>
70682
70683         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70684
70685 2006-09-17  Bruno Haible  <bruno@clisp.org>
70686
70687         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70688         (func_modules_transitive_closure, func_modules_add_dummy,
70689         func_modules_to_filelist, func_import, func_create_testdir,
70690         func_create_megatestdir, ...): Use it wherever possible.
70691         Suggested by Ralf Wildenhues.
70692
70693 2006-09-16  Karl Berry  <karl@gnu.org>
70694
70695         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70696         to avoid sectioning errors.
70697         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70698         [ifinfo]: blank line after @center-ed titles.
70699         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70700         Spell FSF address consistently with others.
70701         (These changes approved by rms.)
70702
70703 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70704
70705         Speed up by a factor of 1.61.
70706         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70707         already checked module names again.
70708
70709 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70710
70711         Speed up by a factor of 1.13.
70712         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70713         for new_files, and the input to func_add_or_update.
70714
70715 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70716
70717         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70718         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70719
70720 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70721
70722         * modules/mkancesdirs (Depends-on): Add fcntl.
70723         * modules/savewd: New file.
70724         * MODULES.html.sh (File system functions): Add savewd.
70725
70726         * modules/configmake (Makefile.am): Add support for the
70727         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70728
70729 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70730
70731         * m4/savewd.m4: New file.
70732
70733 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70734
70735         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70736         (dirchownmod): New arg FD.  All callers changed.
70737         Use FD rather than opening the directory ourself, as opening is
70738         now the caller's responsibility.
70739         * lib/dirchownmod.h: Likewise.
70740         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70741         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70742         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70743         (test_dir): Remove.
70744         (mkancesdirs): Return length of prefix of FILE that has already
70745         been made, or -2 if there is a child doing the work.  Redo
70746         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70747         ".", and treat ".." specially since it might stray back into
70748         already-created areas.  Use a subprocess if necessary.  New arg
70749         WD; all users changed.  MAKE_DIR function should now return 1
70750         if it creates a directory that is not readable.  Return -2 if
70751         a child process is spun off.
70752         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70753         Adjust signature to match code.
70754         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70755         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70756         all users changed.
70757         * lib/savewd.c, lib/savewd.h: New files.
70758
70759 2006-09-15  Jim Meyering  <jim@meyering.net>
70760
70761         * modules/rename-dest-slash: New module.
70762         * MODULES.html.sh (posix_compat): Add it here.
70763
70764         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70765
70766 2006-09-15  Jim Meyering  <jim@meyering.net>
70767
70768         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70769         file.
70770
70771         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70772
70773 2006-09-15  Jim Meyering  <jim@meyering.net>
70774
70775         * lib/rename-dest-slash.c (has_trailing_slash): Use
70776         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70777         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70778         test before testing whether SRC is a directory.
70779         Suggestions from Bruno Haible.
70780
70781         Avoid a warning about an unused variable.
70782         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70783         into the #ifdef block where it's used.
70784
70785         * lib/rename-dest-slash.c: New file.
70786
70787 2006-09-14  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/allocsa.c: Include <config.h> unconditionally.
70790         * lib/asnprintf.c: Likewise.
70791         * lib/asprintf.c: Likewise.
70792         * lib/c-strcasecmp.c: Likewise.
70793         * lib/c-strcasestr.c: Likewise.
70794         * lib/c-strncasecmp.c: Likewise.
70795         * lib/c-strstr.c: Likewise.
70796         * lib/classpath.c: Likewise.
70797         * lib/clean-temp.c: Likewise.
70798         * lib/concatpath.c: Likewise.
70799         * lib/copy-file.c: Likewise.
70800         * lib/csharpcomp.c: Likewise.
70801         * lib/csharpexec.c: Likewise.
70802         * lib/execute.c: Likewise.
70803         * lib/fatal-signal.c: Likewise.
70804         * lib/findprog.c: Likewise.
70805         * lib/fwriteerror.c: Likewise.
70806         * lib/gl_array_list.c: Likewise.
70807         * lib/gl_array_oset.c: Likewise.
70808         * lib/gl_avltree_list.c: Likewise.
70809         * lib/gl_avltree_oset.c: Likewise.
70810         * lib/gl_avltreehash_list.c: Likewise.
70811         * lib/gl_carray_list.c: Likewise.
70812         * lib/gl_linked_list.c: Likewise.
70813         * lib/gl_linkedhash_list.c: Likewise.
70814         * lib/gl_list.c: Likewise.
70815         * lib/gl_oset.c: Likewise.
70816         * lib/gl_rbtree_list.c: Likewise.
70817         * lib/gl_rbtree_oset.c: Likewise.
70818         * lib/gl_rbtreehash_list.c: Likewise.
70819         * lib/imaxabs.c: Likewise.
70820         * lib/imaxdiv.c: Likewise.
70821         * lib/javacomp.c: Likewise.
70822         * lib/javaexec.c: Likewise.
70823         * lib/javaversion.c: Likewise.
70824         * lib/linebreak.c: Likewise.
70825         * lib/localcharset.c: Likewise.
70826         * lib/lock.c: Likewise.
70827         * lib/mbchar.c: Likewise.
70828         * lib/mbswidth.c: Likewise.
70829         * lib/mkdtemp.c: Likewise.
70830         * lib/pipe.c: Likewise.
70831         * lib/printf-args.c: Likewise.
70832         * lib/printf-parse.c: Likewise.
70833         * lib/progname.c: Likewise.
70834         * lib/progreloc.c: Likewise.
70835         * lib/readlink.c: Likewise.
70836         * lib/sh-quote.c: Likewise.
70837         * lib/stpcpy.c: Likewise.
70838         * lib/stpncpy.c: Likewise.
70839         * lib/strcasecmp.c: Likewise.
70840         * lib/strcasestr.c: Likewise.
70841         * lib/strcspn.c: Likewise.
70842         * lib/striconv.c: Likewise.
70843         * lib/strncasecmp.c: Likewise.
70844         * lib/strnlen1.c: Likewise.
70845         * lib/strstr.c: Likewise.
70846         * lib/strtok_r.c: Likewise.
70847         * lib/tls.c: Likewise.
70848         * lib/tmpdir.c: Likewise.
70849         * lib/unicodeio.c: Likewise.
70850         * lib/unsetenv.c: Likewise.
70851         * lib/vasnprintf.c: Likewise.
70852         * lib/vasprintf.c: Likewise.
70853         * lib/wait-process.c: Likewise.
70854         * lib/xallocsa.c: Likewise.
70855         * lib/xsetenv.c: Likewise.
70856         * lib/xstriconv.c: Likewise.
70857
70858 2006-09-13  Simon Josefsson  <jas@extundo.com>
70859
70860         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70861         that internally, suggested by Ralf Wildenhues
70862         <Ralf.Wildenhues@gmx.de>.
70863
70864 2006-09-13  Simon Josefsson  <jas@extundo.com>
70865
70866         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70867         @LIBOBJS@.
70868         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70869
70870 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70871
70872         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70873         longer worry about uses that don't define HAVE_CONFIG_H.
70874         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70875         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70876         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70877         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70878         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70879         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70880         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70881         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70882         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70883         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70884         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70885         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70886         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70887         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70888         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70889         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70890         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70891         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70892         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70893         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70894         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70895         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70896         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70897         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70898         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70899         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70900         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70901         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70902         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70903         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70904         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70905         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70906         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70907         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70908         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70909         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70910         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70911         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70912         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70913         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70914         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70915         Likewise.
70916
70917 2006-09-13  Eric Blake  <ebb9@byu.net>
70918
70919         * lib/getopt.c: Fix typo in last commit.
70920
70921 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70922
70923         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70924         dgettext.
70925
70926 2006-09-12  Jim Meyering  <jim@meyering.net>
70927
70928         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70929         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70930         Reported by Nelson H. F. Beebe.
70931
70932 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70933
70934         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70935         program_invocation_name and program_invocation_short_name are
70936         initialized.
70937         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70938         and program_invocation_short_name to argp.h, so they are visible
70939         to user programs.
70940         * lib/argp.h: Likewise
70941
70942 2006-09-10  Bruno Haible  <bruno@clisp.org>
70943
70944         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70945         m4/inttypes_h.m4, m4/uintmax_t.m4.
70946
70947 2006-09-10  Bruno Haible  <bruno@clisp.org>
70948
70949         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70950         gl_AC_TYPE_UINTMAX_T.
70951
70952 2006-09-10  Bruno Haible  <bruno@clisp.org>
70953
70954         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70955
70956 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70957
70958         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70959         convention.  Text proposed by Bruno Haible.
70960         (struct argp_option): Document the use of N_() wrappers.
70961
70962         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70963         '\v', and translate the two parts separately, instead of feeding
70964         the whole string to gettext.  This allows to exclude
70965         '\v' from the strings visible to the translator by writing doc
70966         strings as N_("..") "\v" N_("..").
70967
70968 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70969
70970         * config/srclist.txt: Undo latest change; the bug was fixed.
70971
70972 2006-09-09  Bruno Haible  <bruno@clisp.org>
70973
70974         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70975         assignments if building a library without libtool.
70976         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70977         in func_emit_lib_Makefile_am.
70978         (func_import): When building a static library libfoo.a, arrange to
70979         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70980         (func_create_testdir): Likewise.
70981         * modules/gc (configure.ac, Makefile.am): If building statically,
70982         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70983         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70984         * modules/striconv (configure.ac, Makefile.am): Likewise.
70985         Based on a suggestion by Ralf Wildenhues.
70986
70987 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70990         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70991         Also:
70992
70993         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70994         Add year_2050_test to catch glibc bug 2821
70995         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70996
70997         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70998         Prefer #ifdef to #if.
70999
71000         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
71001         Return from 'main' instead of calling 'exit'.
71002
71003 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         * lib/mktime.c (guess_time_tm): Fix bug where mktime
71006         returned the maximum time_t value rather than (time_t) -1.
71007         Problem originally reported by William Bardwell
71008         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
71009
71010         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71011         Moved to here ...
71012         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
71013         ... from here.
71014
71015 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71016
71017         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
71018         2821 is fixed.
71019
71020 2006-09-08  Jim Meyering  <jim@meyering.net>
71021
71022         Don't make generated files read-only.  That would bother too many
71023         people.  However, do retain the ability to work when targets are
71024         read-only: remove the destination and temporary files before writing
71025         them (when generated via sed or echo), or by using the -f option for
71026         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
71027         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71028         * modules/byteswap, modules/configmake, modules/fcntl:
71029         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71030         * modules/localcharset, modules/netinet_in, modules/poll:
71031         * modules/stdbool, modules/stdint, modules/sys_select:
71032         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71033
71034 2006-09-08  Jim Meyering  <jim@meyering.net>
71035
71036         Avoid new build failure on FreeBSD 6.0.
71037         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
71038         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
71039         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
71040
71041 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71042
71043         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
71044
71045 2006-09-07  Jim Meyering  <jim@meyering.net>
71046
71047         Fix global typo in last change: use chmod u-w, not chmod u-x.
71048         Spotted by Paul Eggert and Bruce Korb.
71049         * modules/alloca-opt, modules/argz, modules/arpa_inet:
71050         * modules/byteswap, modules/configmake, modules/fcntl:
71051         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
71052         * modules/localcharset, modules/netinet_in, modules/poll:
71053         * modules/stdbool, modules/stdint, modules/sys_select:
71054         * modules/sys_socket, modules/sys_stat, modules/sysexits:
71055
71056 2006-09-06  Jim Meyering  <jim@meyering.net>
71057
71058         Make generated files be read-only.
71059         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
71060         Ensure that each generated file is now read-only.
71061         * modules/argz: Likewise.
71062         * modules/arpa_inet: Likewise.
71063         * modules/byteswap: Likewise.
71064         * modules/configmake: Likewise.
71065         * modules/fcntl: Likewise.
71066         * modules/fnmatch: Likewise.
71067         * modules/getopt: Likewise.
71068         * modules/glob: Likewise.
71069         * modules/inttypes: Likewise.
71070         * modules/netinet_in: Likewise.
71071         * modules/poll: Likewise.
71072         * modules/stdbool: Likewise.
71073         * modules/stdint: Likewise.
71074         * modules/sys_select: Likewise.
71075         * modules/sys_socket: Likewise.
71076         * modules/sys_stat: Likewise.
71077         * modules/sysexits: Likewise.
71078         * modules/localcharset: Same as above, but continue using temporary
71079         file named "t-$@" (why different?) rather than the "$@-t" used
71080         everywhere else.
71081
71082         * modules/sysexits (Makefile.am): Replace literal occurrences
71083         of "sysexit.h" more readable, and more consistent, "$@".
71084
71085 2006-09-06  Bruno Haible  <bruno@clisp.org>
71086
71087         * modules/striconv: New file.
71088         * modules/xstriconv: New file.
71089         * MODULES.html.sh (Internationalization functions): Add striconv,
71090         xstriconv.
71091
71092 2006-09-06  Bruno Haible  <bruno@clisp.org>
71093
71094         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
71095         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
71096         not using libtool correctly.
71097
71098 2006-09-06  Bruno Haible  <bruno@clisp.org>
71099
71100         * lib/striconv.h: New file.
71101         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
71102         iconvstring.c.
71103         * lib/xstriconv.h: New file.
71104         * lib/xstriconv.c: New file.
71105
71106 2006-09-06  Bruno Haible  <bruno@clisp.org>
71107
71108         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71109         lib_..._LDFLAGS.
71110
71111 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71112
71113         * lib/argz_.h: Sync from Libtool.
71114
71115         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
71116                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71117
71118         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
71119
71120 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71121
71122         * modules/trim: New file.
71123
71124 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
71125
71126         * lib/trim.h: New file.
71127         * lib/trim.c: New file.
71128
71129 2006-09-05  Bruno Haible  <bruno@clisp.org>
71130
71131         * MODULES.html.sh (String handling): Add trim.
71132
71133 2006-09-04  Karl Berry  <karl@gnu.org>
71134
71135         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
71136         until next release.
71137
71138 2006-09-03  Bruno Haible  <bruno@clisp.org>
71139
71140         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
71141         correctly.
71142
71143 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
71146         not gl_GETLOADAVG.  Omit unneeded semicolons.
71147         Problems reported by Ralf Wildenhues in
71148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71149         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
71150         at the end, which is the usual gnulib style.
71151
71152         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
71153         of doing all the work ourselves.
71154         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
71155         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
71156
71157 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71158
71159         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
71160         Problem reported by Ralf Wildenhues in
71161         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71162
71163         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71164         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71165
71166 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71169         yesterday's patch by changing test -n to test -z.
71170
71171 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71172
71173         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71174         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71175         the former is now obsolescent.
71176
71177         * modules/chdir-long (Depends-on): Add fcntl.
71178
71179 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71180
71181         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71182         obsolescent, and programs should use gnulib instead.
71183         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71184         but with prefixes changed.
71185
71186 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71187
71188         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71189         or stdbool.h, because they might not exist while configuring.
71190
71191         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71192         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71193         does that for us.
71194         (O_DIRECTORY): Remove.
71195
71196 2006-08-31  Eric Blake  <ebb9@byu.net>
71197
71198         * gnulib-tool: Don't let emacs change spaces to TAB.
71199
71200 2006-08-31  Bruno Haible  <bruno@clisp.org>
71201
71202         * gnulib-tool: When calling func_import more than once, do it in a
71203         subshell.
71204         Reported by Eric Blake <ebb9@byu.net>.
71205
71206 2006-08-31  Bruno Haible  <bruno@clisp.org>
71207
71208         * gnulib-tool (nl): Remove variable.
71209         (sed_transform_lib_file): Use more robust test for config-h module.
71210         (func_import): Fix typo in 2006-08-25 patch.
71211
71212 2006-08-31  Bruno Haible  <bruno@clisp.org>
71213
71214         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71215         specified, augment Makefile.am variables instead of assigning them.
71216
71217 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         Work around a bug in both the Linux and SunOS 64-bit kernels:
71220         nanosleep mishandles sleeps for longer than 2**31 seconds.
71221         Problem reported by Frank v Waveren in
71222         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71224         Check for nanosleep bug.
71225         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71226
71227 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71228
71229         Work around a bug in both the Linux and SunOS 64-bit kernels:
71230         nanosleep mishandles sleeps for longer than 2**31 seconds.
71231         Problem reported by Frank v Waveren in
71232         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71233         * lib/nanosleep.c (BILLION): New constant.
71234         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71235         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71236         implementation.
71237
71238 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71239
71240         * modules/nanosleep (Depends-on): Add gettime.
71241
71242 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71243         and Simon Josefsson  <jas@extundo.com>
71244         and Oskar Liljeblad  <oskar@osk.mine.nu>
71245
71246         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71247         * gnulib-tool (func_import): New license type 'unmodifiable license
71248         text'.
71249         * modules/fdl: Use it.  Longer description.
71250         * module/gpl, module/lgpl: New files.
71251
71252 2006-08-30  Jim Meyering  <jim@meyering.net>
71253
71254         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71255         shadowing the parameter.
71256
71257 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71258
71259         Sync from Libtool:
71260
71261         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71262
71263         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71264         sharing with gnulib.  Report by Eric Blake.
71265
71266 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71267
71268         * modules/isapipe: New file.
71269         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71270
71271 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71272
71273         * modules/configmake (Makefile.am): Add a comment, and omit
71274         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71275         by Bruno Haible.
71276
71277 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71278
71279         * m4/isapipe.m4: New file.
71280
71281 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71282
71283         * lib/isapipe.c, lib/isapipe.h: New files.
71284
71285 2006-08-29  Jim Meyering  <jim@meyering.net>
71286
71287         * modules/configmake (Makefile.am): Make configmake.h depend on
71288         Makefile.  Otherwise, a stale configmake.h could hang around.
71289
71290 2006-08-29  Eric Blake  <ebb9@byu.net>
71291
71292         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71293         resolution of upstream bug 3044.
71294
71295 2006-08-29  Bruno Haible  <bruno@clisp.org>
71296
71297         * modules/localcharset (Depends-on): Add configmake.
71298         (Makefile.am): Remove setting of LIBDIR through DEFS.
71299
71300 2006-08-29  Bruno Haible  <bruno@clisp.org>
71301
71302         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71303         defined.
71304
71305 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         * modules/fcntl: New file.
71308         * modules/chdir-safer (Depends-on): Add fcntl.
71309         * modules/fts: Likewise.
71310         * modules/mkdir-p: Likewise.
71311
71312         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71313         This undoes the most recent change, since we're now addressing the
71314         problem in a different way.
71315
71316         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71317         into output, since the output might be called Makefile.am even
71318         if $makefile_name is something different.
71319         (func_import): Use $makefile_am rather than
71320         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71321         empty.
71322
71323         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71324
71325 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71326
71327         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71328         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71329         recent change to stdint.m4, since we're now addressing the problem in a
71330         different way.
71331
71332 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71333
71334         * m4/fcntl_h.m4: New file.
71335
71336 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * lib/fcntl_.h: New file.
71339         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71340         the fcntl module.
71341         * lib/dirchownmod.c: Likewise.
71342         * lib/fts.c: Likewise.
71343
71344         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71345         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71346         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71347         just before including <inttypes.h>, to avoid circular inclusion.
71348
71349 2006-08-28  Jim Meyering  <jim@meyering.net>
71350
71351         * doc/visibility.texi: Actually read and correct the grammar of the
71352         sentence affected by yesterday's change.
71353
71354 2006-08-28  Eric Blake  <ebb9@byu.net>
71355
71356         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71357         needs wrapper.
71358
71359 2006-08-28  Eric Blake  <ebb9@byu.net>
71360
71361         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71362
71363 2006-08-28  Eric Blake  <ebb9@byu.net>
71364
71365         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71366
71367 2006-08-28  Bruno Haible  <bruno@clisp.org>
71368
71369         * modules/c-strstr: New file, from GNU gettext.
71370         * MODULES.html.sh (String handling): Add c-strstr.
71371
71372 2006-08-28  Bruno Haible  <bruno@clisp.org>
71373
71374         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71375         macros.
71376         Reported by Eric Blake.
71377
71378 2006-08-28  Bruno Haible  <bruno@clisp.org>
71379
71380         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71381         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71382         * lib/vasprintf.c: Include errno.h, limits.h.
71383         (EOVERFLOW): New fallback definition.
71384         (vasprintf): Test here whether the string length is > INT_MAX.
71385         * lib/vsnprintf.c: Include errno.h, limits.h.
71386         (EOVERFLOW): New fallback definition.
71387         (vsnprintf): Fix bug when generated string was too long for the buffer.
71388         Test here whether the string length is > INT_MAX.
71389
71390 2006-08-28  Bruno Haible  <bruno@clisp.org>
71391
71392         * lib/inttypes_.h (SCNX*): Remove definitions.
71393         Reported by Eric Blake.
71394
71395 2006-08-28  Bruno Haible  <bruno@clisp.org>
71396
71397         * lib/c-strstr.h: New file, from GNU gettext.
71398         * lib/c-strstr.c: New file, from GNU gettext.
71399
71400 2006-08-28  Bruno Haible  <bruno@clisp.org>
71401
71402         * gnulib-tool: Reorder some statements.
71403
71404 2006-08-28  Bruno Haible  <bruno@clisp.org>
71405
71406         * gnulib-tool: New option --makefile-name.
71407         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71408         $makefile_name.
71409         (func_import): Write $makefile_name to the cache file, and read it from
71410         there unless explicitly specified. Use $makefile_name as file name
71411         instead of Makefile.am. Adjust the recommendations accordingly.
71412
71413 2006-08-28  Bruno Haible  <bruno@clisp.org>
71414
71415         * gnulib-tool (func_verify_module): Check against misapplying patch.
71416
71417 2006-08-28  Bruno Haible  <bruno@clisp.org>
71418
71419         * gnulib-tool (func_relativize, func_relconcat): New functions.
71420         Give an error if --local-dir is given with --update.
71421         Remove trailing slashes from $local_gnulib_dir.
71422         (func_import): Store the relativized $local_gnulib_dir in
71423         gnulib-cache.m4, and read it from there if not specified explicitly.
71424
71425 2006-08-28  Bruno Haible  <bruno@clisp.org>
71426
71427         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71428         is the current directory. Respect also $local_gnulib_dir.
71429
71430 2006-08-28  Bruno Haible  <bruno@clisp.org>
71431             Simon Josefsson  <jas@extundo.com>
71432
71433         BeOS portability.
71434         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71435
71436 2006-08-27  Jim Meyering  <jim@meyering.net>
71437
71438         * doc/visibility.texi: Remove duplicate word: "pointer".
71439
71440 2006-08-26  Bruno Haible  <bruno@clisp.org>
71441
71442         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71443         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71444         (Makefile.am): Create inttypes.h from inttypes_.h.
71445         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71446
71447         * modules/imaxabs: New file.
71448
71449         * modules/imaxdiv: New file.
71450
71451 2006-08-26  Bruno Haible  <bruno@clisp.org>
71452
71453         * m4/inttypes.m4: New file.
71454         * m4/_inttypes_h.m4: Remove file.
71455         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71456         PRI_MACROS_BROKEN.
71457         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71458
71459         * m4/imaxabs.m4: New file.
71460
71461         * m4/imaxdiv.m4: New file.
71462
71463 2006-08-26  Bruno Haible  <bruno@clisp.org>
71464
71465         * lib/inttypes_.h: New file.
71466         * lib/inttypes.h: Remove file.
71467         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71468
71469         * lib/imaxabs.c: New file.
71470
71471         * lib/imaxdiv.c: New file.
71472
71473 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71474
71475         New config-h module, so that "make" output needn't be cluttered
71476         by -DHAVE_CONFIG_H.
71477         * MODULES.html.sh (Support for building libraries and executables):
71478         Add config-h.
71479         * modules/config-h: New file.
71480         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71481         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71482         the config-h module is used.
71483
71484         New configmake module, so that "make" output needn't be cluttered
71485         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71486         * MODULES.html.sh (Support for building libraries and executables):
71487         Add configmake.
71488         * modules/configmake: New file.
71489
71490 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71491
71492         * m4/config-h.m4: New file.
71493
71494 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         * config/srclist.txt: Add elisp-comp.
71497
71498 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         * MODULES.html.sh (Support for building libraries and executables):
71501         Add elisp-comp.
71502         * build-aux/elisp-comp: New file.
71503         * modules/elisp-comp: New file.
71504
71505 2006-08-24  Bruno Haible  <bruno@clisp.org>
71506
71507         * gnulib-tool (func_create_testdir): Use non-default values of
71508         sourcebase and m4base.
71509
71510 2006-08-24  Bruno Haible  <bruno@clisp.org>
71511
71512         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71513         HTML structure.
71514
71515 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71516
71517         * modules/openat (Depends-on): Add lchown.
71518
71519 2006-08-23  Bruno Haible  <bruno@clisp.org>
71520
71521         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71522         of gl_LOCK_EARLY instead of gl_LOCK.
71523
71524 2006-08-23  Bruno Haible  <bruno@clisp.org>
71525
71526         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71527         on OSF/1 to no.
71528         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71529
71530 2006-08-23  Bruno Haible  <bruno@clisp.org>
71531
71532         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71533         as unusable.
71534
71535         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71536         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71537         (gl_LOCK): New macro.
71538
71539 2006-08-22  Simon Josefsson  <jas@extundo.com>
71540
71541         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71542         to md5 module.
71543
71544 2006-08-22  Simon Josefsson  <jas@extundo.com>
71545
71546         * MODULES.html.sh: Add "Support for maintaining and release
71547         projects".
71548
71549         * build-aux/gnupload: New file, from coreutils.
71550
71551 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71552
71553         Avoid the need for AC_LIBSOURCES in m4 macros.
71554         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71555         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71556         * modules/check-version (EXTRA_DIST): Add check-version.h.
71557         * modules/crc (EXTRA_DIST): Add crc.h.
71558         * modules/des (EXTRA_DIST): Add des.h.
71559         * modules/gc (EXTRA_DIST): Add gc.h.
71560         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71561         * modules/getline (EXTRA_DIST): Add getline.h.
71562         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71563         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71564         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71565         * modules/md2 (EXTRA_DIST): Add md2.h.
71566         * modules/md4 (EXTRA_DIST): Add md4.h.
71567         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71568         * modules/read-file (EXTRA_DIST): Add read-file.h.
71569         * modules/readline (EXTRA_DIST): Add readline.h.
71570         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71571         rijndael-api-fst.h.
71572
71573 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71574
71575         * m4/rijndael.m4 (gl_ARCFOUR):
71576         * m4/arctwo.m4 (gl_ARCTWO):
71577         * m4/check-version.m4 (gl_CHECK_VERSION):
71578         * m4/crc.m4 (gl_CRC):
71579         * m4/des.m4 (gl_DES):
71580         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71581         * m4/gc.m4 (gl_GC):
71582         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71583         * m4/getline.m4 (gl_FUNC_GETLINE):
71584         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71585         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71586         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71587         * m4/md2.m4 (gl_MD2):
71588         * m4/md4.m4 (gl_MD4):
71589         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71590         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71591         * m4/readline.m4 (gl_FUNC_READLINE):
71592         * m4/rijndael.m4 (gl_RIJNDAEL):
71593         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71594         to get the necessary .h files and whatnot.
71595
71596 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71599         gnulib rather than the other way around.
71600         * config/srclistvars.sh (COREUTILS): Remove.
71601
71602 2006-08-22  Jim Meyering  <jim@meyering.net>
71603
71604         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71605
71606         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71607
71608 2006-08-22  Eric Blake  <ebb9@byu.net>
71609
71610         * modules/regexprops-generic: New file.
71611         * MODULES.html.sh (Support for building documentation): List it.
71612
71613 2006-08-22  Eric Blake  <ebb9@byu.net>
71614
71615         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71616         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71617         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71618         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71619
71620 2006-08-22  Bruno Haible  <bruno@clisp.org>
71621
71622         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71623         and lib_LTLIBRARIES like the other lib_* variables.
71624
71625 2006-08-22  Bruno Haible  <bruno@clisp.org>
71626
71627         * build-aux/x-to-1.in: New file, from GNU gettext.
71628
71629 2006-08-22  Bruno Haible  <bruno@clisp.org>
71630
71631         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71632         <utmpx.h> exists.
71633
71634 2006-08-22  Bruno Haible  <bruno@clisp.org>
71635
71636         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71637         <utmpx.h> exists.
71638
71639 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71640
71641         BeOS portability.
71642         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71643         exist.
71644         Problem reported by Bruno Haible.
71645
71646 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71647
71648         Avoid the need for AC_LIBSOURCES in m4 macros.
71649         * modules/acl (EXTRA_DIST): Add acl.h.
71650         * modules/argmatch (Files): Add m4/argmatch.m4.
71651         (configure.ac): Add gl_ARGMATCH.
71652         (EXTRA_DIST): Renamed from lib_SOURCES, for
71653         consistency with the other modules.  Remove argmatch.c.
71654         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71655         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71656         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71657         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71658         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71659         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71660         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71661         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71662         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71663         * modules/closeout (EXTRA_DIST): Add closeout.h.
71664         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71665         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71666         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71667         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71668         dirname.h; remove basename.c and stripslash.c.
71669         * modules/exclude (EXTRA_DIST): Add exclude.h.
71670         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71671         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71672         * modules/file-type (EXTRA_DIST): Add file-type.h.
71673         * modules/filemode (EXTRA_DIST): Add filemode.h.
71674         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71675         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71676         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71677         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71678         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71679         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71680         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71681         * modules/getdate (EXTRA_DIST): Add getdate.c.
71682         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71683         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71684         * modules/getpass (EXTRA_DIST): Add getpass.h.
71685         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71686         * modules/group-member (EXTRA_DIST): Add group-member.h.
71687         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71688         * modules/hash (EXTRA_DIST): Add hash.h.
71689         * modules/human (EXTRA_DIST): Add human.h.
71690         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71691         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71692         * modules/lchown (EXTRA_DIST): Add lchown.h.
71693         * modules/long-options (EXTRA_DIST): Add long-options.h.
71694         * modules/lstat (EXTRA_DIST): Add lstat.h.
71695         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71696         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71697         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71698         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71699         * modules/memxor (EXTRA_DIST): Add memxor.h.
71700         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71701         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71702         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71703         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71704         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71705         * modules/physmem (EXTRA_DIST): Add physmem.h.
71706         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71707         * modules/posixver (EXTRA_DIST): Add posixver.h.
71708         * modules/quote (EXTRA_DIST): Add quote.h.
71709         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71710         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71711         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71712         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71713         regex_internal.h regexec.c.
71714         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71715         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71716         * modules/same (EXTRA_DIST): Add same.h.
71717         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71718         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71719         * modules/savedir (EXTRA_DIST): Add savedir.h.
71720         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71721         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71722         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71723         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71724         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71725         * modules/strdup (EXTRA_DIST): Add strdup.h.
71726         * modules/strftime (EXTRA_DIST): Add strftime.h.
71727         * modules/strndup (EXTRA_DIST): Add strndup.h.
71728         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71729         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71730         * modules/time_r (EXTRA_DIST): Add time_r.h.
71731         * modules/timespec (EXTRA_DIST): Add timespec.h.
71732         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71733         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71734         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71735         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71736         * modules/userspec (EXTRA_DIST): Add userspec.h.
71737         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71738         * modules/utimens (EXTRA_DIST): Add utimens.h.
71739         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71740         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71741         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71742         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71743         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71744         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71745         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71746         * modules/yesno (EXTRA_DIST): Add yesno.h.
71747
71748 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71749
71750         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71751
71752         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71753         * m4/dev-ino.m4, same-inode.m4: Remove.
71754
71755         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71756         * m4/acl.m4 (AC_FUNC_ACL):
71757         * m4/backupfile.m4 (gl_BACKUPFILE):
71758         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71759         * m4/canon-host.m4 (gl_CANON_HOST):
71760         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71761         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71762         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71763         * m4/cloexec.m4 (gl_CLOEXEC):
71764         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71765         * m4/closeout.m4 (gl_CLOSEOUT):
71766         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71767         * m4/dirname.m4 (gl_DIRNAME):
71768         * m4/exclude.m4 (gl_EXCLUDE):
71769         * m4/exitfail.m4 (gl_EXITFAIL):
71770         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71771         * m4/file-type.m4 (gl_FILE_TYPE):
71772         * m4/filemode.m4 (gl_FILEMODE):
71773         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71774         * m4/fpending.m4 (gl_FUNC_FPENDING):
71775         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71776         * m4/fts.m4 (gl_FUNC_FTS):
71777         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71778         * m4/getdate.m4 (gl_GETDATE):
71779         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71780         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71781         * m4/getpass.m4 (gl_FUNC_GETPASS):
71782         * m4/gettime.m4 (gl_GETTIME):
71783         * m4/getugroups.m4 (gl_GETUGROUPS):
71784         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71785         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71786         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71787         * m4/hash.m4 (gl_HASH):
71788         * m4/idcache.m4 (gl_IDCACHE):
71789         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71790         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71791         * m4/long-options.m4 (gl_LONG_OPTIONS):
71792         * m4/lstat.m4 (gl_FUNC_LSTAT):
71793         * m4/md5.m4 (gl_MD5):
71794         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71795         * m4/memcoll.m4 (gl_MEMCOLL):
71796         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71797         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71798         * m4/memxor.m4 (gl_MEMXOR):
71799         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71800         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71801         * m4/modechange.m4 (gl_MODECHANGE):
71802         * m4/mountlist.m4 (gl_MOUNTLIST):
71803         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71804         * m4/openat.m4 (gl_FUNC_OPENAT):
71805         * m4/pathmax.m4 (gl_PATHMAX):
71806         * m4/physmem.m4 (gl_PHYSMEM):
71807         * m4/posixtm.m4 (gl_POSIXTM):
71808         * m4/posixver.m4 (gl_POSIXVER):
71809         * m4/quote.m4 (gl_QUOTE):
71810         * m4/quotearg.m4 (gl_QUOTEARG):
71811         * m4/readtokens.m4 (gl_READTOKENS):
71812         * m4/readutmp.m4 (gl_READUTMP):
71813         * m4/regex.m4 (gl_REGEX):
71814         * m4/safe-read.m4 (gl_SAFE_READ):
71815         * m4/safe-write.m4 (gl_SAFE_WRITE):
71816         * m4/same.m4 (gl_SAME):
71817         * m4/save-cwd.m4 (gl_SAVE_CWD):
71818         * m4/savedir.m4 (gl_SAVEDIR):
71819         * m4/settime.m4 (gl_SETTIME):
71820         * m4/sha1.m4 (gl_SHA1):
71821         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71822         * m4/stat-macros.m4 (gl_STAT_MACROS):
71823         * m4/stat-time.m4 (gl_STAT_TIME):
71824         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71825         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71826         * m4/strdup.m4 (gl_FUNC_STRDUP):
71827         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71828         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71829         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71830         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71831         * m4/time_r.m4 (gl_TIME_R):
71832         * m4/timespec.m4 (gl_TIMESPEC):
71833         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71834         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71835         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71836         * m4/userspec.m4 (gl_USERSPEC):
71837         * m4/utimecmp.m4 (gl_UTIMECMP):
71838         * m4/utimens.m4 (gl_UTIMENS):
71839         * m4/xalloc.m4 (gl_XALLOC):
71840         * m4/xgetcwd.m4 (gl_XGETCWD):
71841         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71842         * m4/xreadlink.m4 (gl_XREADLINK):
71843         * m4/xstrtod.m4 (gl_XSTRTOD):
71844         * m4/yesno.m4 (gl_YESNO):
71845         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71846         to get the necessary .h files and whatnot.
71847
71848 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71849             Bruno Haible  <bruno@clisp.org>
71850
71851         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71852         /bin/sh understanding of '!' conditional negation.
71853
71854 2006-08-21  Jim Meyering  <jim@meyering.net>
71855
71856         * modules/openat (Depends-on): Really alphabetize.
71857
71858         * modules/acl (Depends-on): Add error and quote.
71859
71860         * check-module (find_included_lib_files): Add at-func.c to the
71861         ok-to-include-more-than-once white list.
71862
71863         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71864
71865 2006-08-21  Bruno Haible  <bruno@clisp.org>
71866
71867         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71868         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71869         Reported by Martin Lambers <marlam@marlam.de>.
71870
71871 2006-08-21  Bruno Haible  <bruno@clisp.org>
71872
71873         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71874         specify an installation location, don't emit a noinst_LIBRARIES or
71875         noinst_LTLIBRARIES assignment.
71876
71877 2006-08-21  Bruno Haible  <bruno@clisp.org>
71878
71879         BeOS portability.
71880         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71881         BeOS has mbrtowc() but no <wctype.h>.
71882
71883 2006-08-21  Bruno Haible  <bruno@clisp.org>
71884
71885         BeOS portability.
71886         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71887         exist.
71888
71889 2006-08-21  Bruno Haible  <bruno@clisp.org>
71890
71891         BeOS portability.
71892         * lib/mbchar.h: Include <wctype.h> only if it exists.
71893
71894 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71895
71896         Remove files that are no longer needed by their respective modules.
71897         * m4/obstack.m4: Remove.
71898         * m4/strerror_r.m4: Remove.
71899         * m4/uint32_t.m4: Remove.
71900         * m4/uintptr_t.m4: Remove.
71901         * m4/ullong_max.m4: Remove.
71902         * m4/xstrtoimax.m4: Remove.
71903         * m4/xstrtoumax.m4: Remove.
71904
71905         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71906         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71907         dependencies now capture this.
71908
71909         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71910         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71911         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71912         * m4/human.m4 (gl_HUMAN): Likewise.
71913         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71914         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71915
71916         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71917
71918         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71919         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71920         stdint.
71921         * m4/human.m4 (gl_HUMAN): Likewise.
71922         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71923         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71924         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71925         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71926         * m4/xstrtol (gl_XSTRTOL): Likewise.
71927
71928         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71929         AC_TYPE_LONG_LONG_INT.
71930         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71931         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71932         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71933         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71934
71935         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71936         on stdbool.
71937
71938         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71939         (gl_PREREQ_XSTRTOUL): Remove.
71940
71941         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71942
71943         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71944         mode.
71945
71946 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         Add and change modules to make it easier for coreutils to use
71949         gnulib-tool.
71950         * modules/backupfile (Files): Remove m4/d-ino.m4.
71951         (Depends-on): Add d-ino.
71952         * modules/cycle-check (Depends-on): Add stdint.
71953         (lib_SOURCES): Add cycle-check.h.
71954         * modules/d-ino: New module.
71955         * modules/d-type: New module.
71956         * modules/error (Files): Remove m4/strerror_r.m4.
71957         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71958         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71959         m4/inttypes_h.m4, m4/uintmax_t.m4.
71960         (Depends-on): Add stdint.
71961         (lib_SOURCES): Add fsusage.h.
71962         * modules/getcwd (Files): Remove d-ino.m4.
71963         (Depends-on): Add d-ino.
71964         * modules/getndelim2 (Depends-on): Add stdint.
71965         * modules/glob (Files): Remove m4/d-type.m4.
71966         (Depends-on): Add d-type.
71967         * modules/host-os: New module.
71968         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71969         m4/inttypes_h.m4, m4/uintmax_t.m4.
71970         * Depends-on: Add stdint.
71971         (lib_SOURCES): Add human.h.
71972         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71973         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71974         m4/uintmax_t.m4, m4/ulonglong.m4.
71975         (Depends-on): Add stdint.
71976         (EXTRA_DIST): Add inttostr.h.
71977         * modules/lchmod: New module.
71978         * modules/link-follow: New module.
71979         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71980         (Depends-on): Add lchmod.
71981         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71982         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71983         (Depends-on): Add stdint.
71984         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71985         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71986         (Depends-on): Add stdint.
71987         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71988         * modules/perl: New module.
71989         * modules/regex (Depends-on): Add stdint.
71990         * modules/rmdir-errno: New module.
71991         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71992         m4/intmax_t.m4.
71993         (Depends-on): Add stdint.
71994         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71995         m4/uintmax_t.m4.
71996         (Depends-on): Add stdint.
71997         * modules/unlink-busy: New module.
71998         * modules/utimecmp (Depends-on): Add stdint.
71999         * modules/uptime: New module.
72000         * modules/winsz-ioctl: New module.
72001         * modules/winsz-termios: New module.
72002         * modules/xnanosleep (Depends-on): Add nanosleep.
72003         * modules/ullong_max: Remove.
72004         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
72005         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
72006         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
72007         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
72008         (Depends-on): Add inttypes.
72009         (lib_SOURCES): Add xstrtol.h.
72010         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
72011         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
72012         * MODULES.html.sh: Move 'assert' into the assert section.
72013         Move 'dummy' into the linking section.
72014         Remove ullong_max.
72015         Add section for compatibility checks for POSIX:2001 functions,
72016         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
72017         winsz-ioctl, and winsz-termios into it.
72018         Add lchmod.
72019         Add top-level Misc section and put host-os, perl, and uptime
72020         into it.
72021
72022 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72023
72024         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
72025         now assume the stdint module.  Do not include inttypes.h.
72026         * lib/fsusage.h: Likewise.
72027         * lib/getndelim2.c: Likewise.
72028         * lib/human.h: Likewise.
72029         * lib/inttostr.h: Likewise.
72030         * lib/obstack.c: Likewise.
72031         * lib/regex_internal.h: Likewise.
72032         * lib/tempname.c: Likewise.
72033         * lib/utimecmp.c: Likewise.
72034         * lib/xstrtol.h: Likewise.
72035
72036         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
72037
72038         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
72039         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
72040         * lib/xtime.h: Likewise.
72041
72042 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72043
72044         * modules/openat (Files): Add lib/fchmodat.c.
72045         Fixes problem reported by Jay Youngman.
72046
72047 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72048
72049         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
72050         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
72051
72052 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
72053             Bruno Haible  <bruno@clisp.org>
72054
72055         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
72056         and is a script that invokes bison. Tighten the code. Add comments.
72057
72058 2006-08-18  Jim Meyering  <jim@meyering.net>
72059
72060         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
72061         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
72062         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
72063         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
72064
72065 2006-08-18  Bruno Haible  <bruno@clisp.org>
72066
72067         * modules/bison-i18n: New file.
72068         * MODULES.html.sh (Internationalization functions): Add it.
72069
72070 2006-08-18  Bruno Haible  <bruno@clisp.org>
72071
72072         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
72073         sys/statvfs.h. When getmntinfo was found, check its declaration and
72074         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
72075
72076 2006-08-18  Bruno Haible  <bruno@clisp.org>
72077
72078         * m4/bison-i18n.m4: New file, from bison.
72079
72080 2006-08-18  Bruno Haible  <bruno@clisp.org>
72081
72082         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
72083         (ME_DUMMY): Treat "kernfs" as a dummy.
72084         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
72085
72086 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72087
72088         Update from coreutils.
72089
72090         2006-08-15  Jim Meyering  <jim@meyering.net>
72091
72092         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
72093
72094         2006-01-17  Jim Meyering  <jim@meyering.net>
72095
72096         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
72097
72098         2006-01-11  Jim Meyering  <jim@meyering.net>
72099
72100         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
72101         Check for the lchmod function.
72102
72103 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72104
72105         Update from coreutils.
72106
72107         * lib/__fpending.h: Add copyright notice.
72108         * lib/fprintftime.h: Likewise.
72109         * lib/savedir.c: Use (C) in copyright notice.
72110         * lib/savedir.h: Likewise.
72111
72112         2006-08-15  Jim Meyering  <jim@meyering.net>
72113
72114         * lib/at-func.c: New file, with the logic of all emulated at-functions.
72115         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
72116         in support of the EXPECTED_ERRNO macro.
72117         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
72118         definitions.  Instead, define the appropriate symbols and include
72119         "at-func.c".
72120         * lib/mkdirat.c (mkdirat): Likewise.
72121         * lib/fchmodat.c (fchmodat): Likewise.
72122         (ENOSYS): Remove definition.
72123         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
72124         it.  Don't include "unistd--.h" -- it wasn't ever used.
72125
72126         2006-01-17  Jim Meyering  <jim@meyering.net>
72127
72128         Rewrite fts.c not to change the current working directory,
72129         by using openat, fstatat, fdopendir, etc..
72130
72131         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
72132         (HAVE_OPENAT_SUPPORT): Define.
72133         [_LIBC] (fchdir): Don't undef or define; no longer used.
72134         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
72135         Now, this `function' always succeeds, and consumes its file descriptor
72136         parameter -- so callers must not close such FDs.  Update callers.
72137         (diropen_fd, opendirat, cwd_advance_fd): New functions.
72138         (diropen): Add parameter, SP.  Adjust all callers.
72139         Implement using diropen_fd, rather than open.
72140         (fts_open): Initialize new member, fts_cwd_fd.
72141         Remove fts_rft-setting code.
72142         (fts_close): Close fts_cwd_fd, if necessary.
72143         (__opendir2): Define in terms of opendir or opendirat,
72144         depending on whether the FST_NOCHDIR flag is set.
72145         (fts_build): Since fts_safe_changedir consumes its FD, and since
72146         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
72147         and close the dup'd file descriptor upon failure.
72148         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
72149         (fts_safe_changedir): Tweak semantics to reflect that this function
72150         now calls cwd_advance_fd and hence consumes its FD argument.
72151         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
72152         [struct FTS] (fts_rft): Remove now-unused member.
72153         [struct FTS] (fts_cycle.state): Improve comment.
72154
72155         * lib/openat.c (openat_needs_fchdir): New function.
72156         * lib/openat.h (openat_needs_fchdir): Declare it.
72157
72158 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
72161         Problem and fix reported by Pádraig Brady in
72162         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72163
72164 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72167
72168 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72169
72170         * lib/memcoll.c (memcoll): Optimize for the common case where the
72171         arguments are bytewise equal.
72172
72173 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72174
72175         * doc/regexprops-generic.texi: Add a copyright notice.
72176
72177 2006-08-15  Bruno Haible  <bruno@clisp.org>
72178
72179         * modules/tmpdir (License): Change to LGPL.
72180
72181 2006-08-15  Bruno Haible  <bruno@clisp.org>
72182
72183         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72184         module.
72185
72186 2006-08-14  Simon Josefsson  <jas@extundo.com>
72187
72188         * config/srclist.txt: Add gnupload.
72189
72190 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72191
72192         Change copyright notice from LGPL 2 to GPL 2, since that's the
72193         standard form used in the gnulib repository.
72194         * tests/test-lock.c: Likewise.
72195         * tests/test-stdint.c: Likewise.
72196         * tests/test-tls.c: Likewise.
72197
72198         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72199         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72200         Add copyright notice.
72201
72202         * check-module: Add copyright notice.  Output a copyright
72203         notice if "--version" is specified.
72204         * modules/COPYING: New file.
72205         * tests/test-getaddrinfo.c: Add copyright notice.
72206         * tests/test-verify.c: Likewise.
72207
72208 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72209
72210         Change copyright notice from LGPL 2 to GPL 2, since that's the
72211         standard form used in the gnulib repository.
72212         * lib/lock.c: LGPL -> GPL.
72213         * lib/lock.h: Likewise.
72214         * lib/strnlen1.c: Likewise.
72215         * lib/strnlen1.h: Likewise.
72216         * lib/tls.c: Likewise.
72217         * lib/tls.h: Likewise.
72218         * lib/tmpdir.c: Likewise.
72219
72220         * lib/TODO: Remove; this belongs only in coreutils.
72221
72222 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72223
72224         Add copyright notices to long-enough files that lack them, since
72225         otherwise the files aren't clearly free.  Use the same notice that
72226         getdate.texi already uses.
72227         * doc/alloca-opt.texi: Add copyright notice.
72228         * doc/alloca.texi: Likewise.
72229         * doc/ctime.texi: Likewise.
72230         * doc/functions.texi: Likewise.
72231         * doc/gcd.texi: Likewise.
72232         * doc/gnulib-tool.texi: Likewise.
72233         * doc/inet_ntoa.texi: Likewise.
72234         * doc/visibility.texi: Likewise.
72235
72236         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72237         * doc/quote.texi: Add copyright notice.
72238
72239         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72240         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72241         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72242         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72243         is now obsolete, and give a pointer to the Sun list.
72244         Add copyright notice.
72245
72246 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72247
72248         * config/srclistvars.sh: Add copyright notice.
72249
72250 2006-08-14  Eric Blake  <ebb9@byu.net>
72251
72252         Import the following change from libc:
72253
72254         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72255
72256         Upstream bug 2997.
72257         * lib/misc/error.c: Add space between program name and message if file
72258         name is missing.
72259
72260 2006-08-12  Karl Berry  <karl@gnu.org>
72261
72262         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72263         remove, these originate in gnulib now.
72264
72265 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72266
72267         * doc/Makefile (standards.info standards.html standards.dvi):
72268         Also depend on make-stds.texi.
72269
72270 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72271
72272         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72273         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72274
72275         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72276         in wchar_t.  Problem reported by Eric Blake.
72277
72278         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72279         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72280         Also, help the compiler to keep LEN in a register.
72281
72282 2006-08-11  Eric Blake  <ebb9@byu.net>
72283
72284         * users.txt: Sort.  Add tar.
72285
72286 2006-08-11  Bruno Haible  <bruno@clisp.org>
72287
72288         * users.txt: New file.
72289
72290 2006-08-11  Bruno Haible  <bruno@clisp.org>
72291
72292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72293         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72294
72295 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72296
72297         * modules/snprintf (Depends-on): Remove minmax.
72298         (Maintainer): Add self and Bruno.
72299
72300 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72301
72302         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72303         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72304         (EOVERFLOW): Define if the system does not.
72305         Do not include "minmax.h"; it wasn't used.
72306         (snprintf): Don't assume size_t promotes to an unsigned type.
72307         Fix bug when generated string was too long for the buffer: the
72308         buffer's contents are supposed to be the initial prefix of the
72309         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72310         exceeds INT_MAX; do the check ourselves.
72311
72312         Import the following changes from libc:
72313
72314         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72315
72316         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72317         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72318         set wc to the byte which couldn't be converted.
72319         (re_string_reconstruct): Don't clear valid_raw_len before calling
72320         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72321         tip_context using re_string_context_at.
72322
72323         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72324
72325         * lib/posix/regex.h: g++ still cannot handled [restrict].
72326
72327         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72328
72329         * lib/posix/regex.h: Remove special handling for VMS.
72330
72331 2006-08-10  Jim Meyering  <jim@meyering.net>
72332
72333         * modules/same-inode: New module.
72334         * modules/dev-ino: New module.
72335         * modules/cycle-check: Depend on these modules, rather than simply
72336         including their .h files.
72337         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72338         required via m4/cycle-check.m4.
72339         * modules/same: Depend on new same-inode module, rather than
72340         including same-inode.h.
72341         * modules/chdir-safer: New file.
72342
72343         * modules/chown (Depends-on): Add stat-macros.
72344
72345 2006-08-10  Jim Meyering  <jim@meyering.net>
72346
72347         * m4/cycle-check.m4: New file.
72348         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72349         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72350
72351 2006-08-10  Eric Blake  <ebb9@byu.net>
72352
72353         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72354         in from original proposal.
72355
72356 2006-08-10  Eric Blake  <ebb9@byu.net>
72357         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72358
72359         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72360         namespace.
72361
72362 2006-08-10  Bruno Haible  <bruno@clisp.org>
72363
72364         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72365         as well.
72366
72367 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72368
72369         Sync from coreutils.
72370
72371         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72372
72373         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72374         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72375
72376 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72377
72378         * modules/restrict: Remove; no longer needed now that we assume
72379         Autoconf 2.59 or later.
72380         * MODULES.html.sh: Remove 'restrict'.
72381         * modules/argp (Depends-on): Remove 'restrict'.
72382         * modules/base64 (Depends-on): Likewise.
72383         * modules/gc (Depends-on): Likewise.
72384         * modules/getaddrinfo (Depends-on): Likewise.
72385         * modules/glob (Depends-on): Likewise.
72386         * modules/inet_ntop (Depends-on): Likewise.
72387         * modules/inet_pton (Depends-on): Likewise.
72388         * modules/memxor (Depends-on): Likewise.
72389         * modules/regex (Depends-on): Likewise.
72390         * modules/strtok_r (Depends-on): Likewise.
72391         * modules/time_r (Depends-on): Likewise.
72392
72393 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72394
72395         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72396         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72397         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72398         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72399         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72400         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72401         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72402         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72403
72404         Merge from coreutils.
72405         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72406         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72407         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72408         * m4/time_r.m4 (gl_TIME_R): Likewise.
72409
72410 2006-08-09  Karl Berry  <karl@gnu.org>
72411
72412         * config/srclist.txt: no more gettext-tools, per Bruno.
72413
72414 2006-08-08  Eric Blake  <ebb9@byu.net>
72415
72416         * modules/verror: New module.
72417         * MODULES.html.sh: Document it.
72418
72419 2006-08-08  Eric Blake  <ebb9@byu.net>
72420
72421         * lib/verror.h, lib/verror.c: New files.
72422
72423 2006-08-08  Eric Blake  <ebb9@byu.net>
72424
72425         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72426         verror_at_line output complies with GNU Coding Standards even when
72427         file is NULL.
72428
72429 2006-08-07  Bruno Haible  <bruno@clisp.org>
72430
72431         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72432         versions of AIX.
72433         Reported by Ralf Wildenhues.
72434
72435 2006-08-07  Bruno Haible  <bruno@clisp.org>
72436
72437         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72438         in an AC_DEFUN. Needed so that the autoconf snippets can use
72439         AC_REQUIRE.
72440
72441 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72442
72443         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72444         Initialize pkgdata_DATA.
72445         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72446         overriding it.
72447
72448 2006-08-06  Eric Blake  <ebb9@byu.net>
72449
72450         * lib/error.h: Fold in some upstream changes from glibc.
72451         * lib/error.c: Likewise.
72452
72453 2006-08-04  Bruno Haible  <bruno@clisp.org>
72454
72455         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72456         Make the mostlyclean-local rule depend on mostlyclean-generic.
72457         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72458
72459 2006-07-31  Bruno Haible  <bruno@clisp.org>
72460
72461         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72462         <stdlib.h>, <string.h>.
72463
72464 2006-07-30  Bruno Haible  <bruno@clisp.org>
72465
72466         * modules/readlink (License): Change to LGPL.
72467
72468 2006-07-30  Bruno Haible  <bruno@clisp.org>
72469
72470         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72471         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72472         set PKGDATADIR to point to it.
72473
72474 2006-07-30  Bruno Haible  <bruno@clisp.org>
72475
72476         * modules/csharpexec (configure.ac): Comment out macro invocation.
72477         * modules/javaexec (configure.ac): Likewise.
72478         * modules/javacomp-script (configure.ac): Likewise.
72479
72480         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72481
72482 2006-07-30  Bruno Haible  <bruno@clisp.org>
72483
72484         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72485         linked-list.
72486
72487 2006-07-30  Bruno Haible  <bruno@clisp.org>
72488
72489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72490
72491 2006-07-30  Bruno Haible  <bruno@clisp.org>
72492
72493         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72494         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72495         get removed.
72496
72497 2006-07-29  Bruno Haible  <bruno@clisp.org>
72498
72499         Make it possible for gnulib-tool to work with locally modified or
72500         augmented gnulib repositories.
72501         * gnulib-tool (func_usage): Document --local-dir option.
72502         (local_gnulib_dir): New variable.
72503         Handle --local-dir option.
72504         (func_lookup_file): New function.
72505         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72506         (func_get_description, func_get_filelist, func_get_description,
72507         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72508         func_get_automake_snippet, func_get_include_directive,
72509         func_get_license, func_get_maintainer): Use func_lookup_file.
72510         (func_import, func_create_testdir): Use func_lookup_file.
72511
72512 2006-07-29  Bruno Haible  <bruno@clisp.org>
72513
72514         * modules/setenv (Depends-on): Add unistd.
72515
72516 2006-07-29  Bruno Haible  <bruno@clisp.org>
72517
72518         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72519
72520 2006-07-29  Bruno Haible  <bruno@clisp.org>
72521
72522         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72523
72524 2006-07-29  Bruno Haible  <bruno@clisp.org>
72525
72526         * gnulib-tool (import, update): If there is no Makefile.am, look at
72527         aclocal.m4, instead of bailing out.
72528
72529 2006-07-29  Bruno Haible  <bruno@clisp.org>
72530
72531         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72532         Categorize the options by when they are useful.
72533
72534 2006-07-29  Bruno Haible  <bruno@clisp.org>
72535
72536         * gnulib-tool (func_usage): Document option --no-libtool.
72537         Handle option --no-libtool.
72538         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72539         for changed semantics of $libtool variable.
72540         (func_import): Likewise. If libtool is not used, show this through
72541         an option --no-libtool.
72542         (func_create_testdir): Update.
72543
72544 2006-07-29  Bruno Haible  <bruno@clisp.org>
72545
72546         * gnulib-tool (func_import): Extend error message about missing
72547         --doc-base.
72548
72549 2006-07-29  Bruno Haible  <bruno@clisp.org>
72550
72551         * gnulib-tool (func_import): Don't create the $docbase directory if
72552         there is no file to store there.
72553
72554 2006-07-29  Bruno Haible  <bruno@clisp.org>
72555
72556         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72557         relevant, look for configure.ac there, not in the current directory.
72558         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72559
72560 2006-07-29  Bruno Haible  <bruno@clisp.org>
72561
72562         * gnulib-tool (SORT): New variable.
72563         (func_usage): Undocument --assume-autoconf option.
72564         Remove --assume-autoconf option handling.
72565         (autoconf_minversion): Determine from the contents of configure.ac.
72566         (func_import): Remove autoconf_minversion handling.
72567         Suggested by Eric Blake.
72568
72569 2006-07-29  Bruno Haible  <bruno@clisp.org>
72570
72571         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72572
72573 2006-07-29  Bruno Haible  <bruno@clisp.org>
72574
72575         * config/srclist.txt (*setenv.[ch]): Remove rules.
72576
72577 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72578
72579         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72580
72581 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72582
72583         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72584         arpa/inet.h.
72585
72586 2006-07-28  Simon Josefsson  <jas@extundo.com>
72587
72588         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72589         * modules/inet_pton (Depends-on): Likewise.
72590
72591 2006-07-28  Simon Josefsson  <jas@extundo.com>
72592
72593         * m4/netinet_in_h.m4: New file.
72594
72595 2006-07-28  Simon Josefsson  <jas@extundo.com>
72596
72597         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72598         #include's.
72599
72600 2006-07-28  Simon Josefsson  <jas@extundo.com>
72601
72602         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72603         #include's.
72604
72605 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72606
72607         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72608         setgid on directories only if they set these bits.
72609         * lib/modechange.h: Remove obsolete comment about masks.
72610
72611 2006-07-28  Eric Blake  <ebb9@byu.net>
72612
72613         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72614         macro expansion.
72615
72616 2006-07-28  Bruno Haible  <bruno@clisp.org>
72617
72618         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72619
72620 2006-07-28  Bruno Haible  <bruno@clisp.org>
72621
72622         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72623
72624 2006-07-28  Bruno Haible  <bruno@clisp.org>
72625
72626         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72627         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72628         Define fallbacks.
72629         Avoids link error on FreeBSD 4.x.
72630         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72631
72632         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72633         encoding.
72634         * lib/mbswidth.c (iswcntrl): Likewise.
72635
72636 2006-07-27  Bruno Haible  <bruno@clisp.org>
72637
72638         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72639         test.
72640
72641 2006-07-27  Bruno Haible  <bruno@clisp.org>
72642
72643         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72644         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72645         defined.
72646
72647 2006-07-26  Eric Blake  <ebb9@byu.net>
72648
72649         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72650
72651 2006-07-26  Eric Blake  <ebb9@byu.net>
72652
72653         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72654         like mingw that lack mkstemp.
72655         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72656         avoid compilation warning on mingw.
72657
72658 2006-07-26  Bruno Haible  <bruno@clisp.org>
72659
72660         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72661         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72662         INT_FAST*_MIN, INTPTR_MIN.
72663
72664 2006-07-25  Bruno Haible  <bruno@clisp.org>
72665
72666         * modules/version-etc (Depends-on): Add stdarg.
72667
72668 2006-07-25  Bruno Haible  <bruno@clisp.org>
72669
72670         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72671         complex commands.
72672
72673 2006-07-25  Bruno Haible  <bruno@clisp.org>
72674
72675         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72676         defined in <stdarg.h> or config.h.
72677
72678 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72679
72680         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72681         (gl_STDIO_SAFER): Remove.
72682
72683 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72684
72685         * MODULES.html.sh (File stream based Input/Output):
72686         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72687         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72688         * modules/fopen-safer, modules/tmpfile-safer: New files.
72689         * modules/stdio-safer: Remove.
72690
72691 2006-07-24  Bruno Haible  <bruno@clisp.org>
72692
72693         * modules/tmpdir: New file.
72694         * MODULES.html.sh (File system functions): Add it.
72695
72696 2006-07-24  Bruno Haible  <bruno@clisp.org>
72697
72698         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72699         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72700
72701 2006-07-24  Bruno Haible  <bruno@clisp.org>
72702
72703         * modules/clean-temp: New file.
72704
72705 2006-07-24  Bruno Haible  <bruno@clisp.org>
72706
72707         * m4/tmpdir.m4: New file, from GNU gettext.
72708
72709 2006-07-24  Bruno Haible  <bruno@clisp.org>
72710
72711         * lib/tmpdir.h: New file, from GNU gettext.
72712         * lib/tmpdir.c: New file, from GNU gettext.
72713
72714 2006-07-24  Bruno Haible  <bruno@clisp.org>
72715
72716         * lib/clean-temp.h: New file, from GNU gettext.
72717         * lib/clean-temp.c: New file, from GNU gettext.
72718
72719 2006-07-23  Eric Blake  <ebb9@byu.net>
72720
72721         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72722         (Depends-on): Add binary-io.
72723
72724 2006-07-23  Eric Blake  <ebb9@byu.net>
72725
72726         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72727
72728 2006-07-23  Eric Blake  <ebb9@byu.net>
72729
72730         * lib/tmpfile-safer.c: New file.
72731         * lib/stdio-safer.h (fopen_safer): Add prototype.
72732         * lib/stdio--.h (tmpfile): Make safer.
72733
72734 2006-07-23  Bruno Haible  <bruno@clisp.org>
72735
72736         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72737         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72738         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72739         gl_linked_remove_at): Use it.
72740
72741 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72742         and Simon Josefsson <jas@extundo.com>
72743
72744         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72745
72746         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72747
72748 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * modules/close-stream: New file.
72751         * modules/closeout (Description): Make it clear that it exits
72752         with a diagnostic on error.
72753         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72754         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72755
72756 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72757
72758         * m4/close-stream.m4: New file.
72759
72760 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         * lib/close-stream.c, lib/close-stream.h: New files.
72763
72764 2006-07-22  Bruno Haible  <bruno@clisp.org>
72765
72766         Merge from GNU gettext 0.15.
72767
72768         2006-05-01  Bruno Haible  <bruno@clisp.org>
72769
72770                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72771
72772         2006-07-22  Bruno Haible  <bruno@clisp.org>
72773
72774                 * modules/javaversion: New file.
72775                 * MODULES.html.sh (Java): Add javaversion.
72776
72777         2006-03-12  Bruno Haible  <bruno@clisp.org>
72778
72779                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72780
72781         2005-12-04  Bruno Haible  <bruno@clisp.org>
72782
72783                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72784                 (untested).
72785
72786         2006-06-21  Bruno Haible  <bruno@clisp.org>
72787
72788                 Avoid warnings from recent versions of mcs.
72789                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72790                 -o, -L, -r any more. Use options documented since mcs-1.0
72791                 instead. Similarly for -g.
72792
72793         2005-12-04  Bruno Haible  <bruno@clisp.org>
72794
72795                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72796                 .resources, not .resource.
72797
72798         2005-07-09  Bruno Haible  <bruno@clisp.org>
72799
72800                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72801                 add a .dll suffix.
72802                 Reported by Mark Junker <mjscod@gmx.de>.
72803
72804         2006-07-22  Bruno Haible  <bruno@clisp.org>
72805
72806                 * modules/gettext: Upgrade to gettext-0.15.
72807                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72808                 m4/visibility.m4.
72809                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72810
72811 2006-07-22  Bruno Haible  <bruno@clisp.org>
72812
72813         Merge from GNU gettext 0.15.
72814
72815         2006-03-25  Bruno Haible  <bruno@clisp.org>
72816
72817                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72818
72819         2006-07-21  Bruno Haible  <bruno@clisp.org>
72820
72821                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72822                 "1.1".
72823
72824         2006-05-09  Bruno Haible  <bruno@clisp.org>
72825
72826                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72827                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72828                 for the conftestver execution.
72829
72830         2006-05-01  Bruno Haible  <bruno@clisp.org>
72831
72832                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72833                 optional target-version argument. Verify that the compiler
72834                 groks source of the specified source-version, or add -source
72835                 option as necessary. Verify that the compiler produces
72836                 bytecode in the specified target-version, or add -target and
72837                 -source options as necessary. Make the result of the test
72838                 available as variable CONF_JAVAC. Also log error output in
72839                 config.log.
72840
72841         2006-03-11  Bruno Haible  <bruno@clisp.org>
72842
72843                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72844
72845         2006-05-09  Bruno Haible  <bruno@clisp.org>
72846
72847                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72848                 CLASSPATH_SEPARATOR to a semicolon.
72849
72850         2006-03-12  Bruno Haible  <bruno@clisp.org>
72851
72852                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72853                 available as variable CONF_JAVA, for subsequent autoconf
72854                 tests. Also log error output in config.log.
72855
72856         2006-07-19  Bruno Haible  <bruno@clisp.org>
72857
72858                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72859                 that getline works on glibc2 systems. Needed to avoid trouble
72860                 in relocatable.c.
72861                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72862
72863         2005-12-04  Bruno Haible  <bruno@clisp.org>
72864
72865                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72866                 launcher (untested).
72867
72868         2005-12-04  Bruno Haible  <bruno@clisp.org>
72869
72870                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72871
72872         2006-07-22  Bruno Haible  <bruno@clisp.org>
72873
72874                 * gettext.m4: Update from GNU gettext-0.15.
72875                 * nls.m4: Likewise.
72876                 * po.m4: Likewise.
72877                 * inttypes-pri.m4: Likewise.
72878                 * inttypes-h.m4: Renamed from inttypes.m4.
72879                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72880
72881 2006-07-22  Bruno Haible  <bruno@clisp.org>
72882
72883         Merge from GNU gettext 0.15.
72884
72885         2005-07-05  Bruno Haible  <bruno@clisp.org>
72886
72887                 * printf-args.c (printf_fetchargs): Work around broken
72888                 definition of wint_t on mingw.
72889
72890         2005-02-12  Bruno Haible  <bruno@clisp.org>
72891
72892                 * xallocsa.h: Add extern "C" for C++.
72893
72894         2006-05-17  Bruno Haible  <bruno@clisp.org>
72895
72896                 Cygwin portability.
72897                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72898
72899         2006-04-30  Bruno Haible  <bruno@clisp.org>
72900
72901                 * progreloc.c: Include <mach-o/dyld.h> if available.
72902                 (find_executable): Use _NSGetExecutablePath when possible.
72903
72904         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72905
72906                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72907                 function.
72908
72909         2005-12-29  Bruno Haible  <bruno@clisp.org>
72910
72911                 * progreloc.c (set_program_name_and_installdir): Fix
72912                 compilation error.
72913
72914         2005-12-04  Bruno Haible  <bruno@clisp.org>
72915
72916                 Cygwin portability.
72917                 * progreloc.c: Include <windows.h> also on Cygwin.
72918                 (find_executable): Add support for Cygwin.
72919                 (set_program_name_and_installdir): Handle also platforms with
72920                 nonempty EXEEXT.
72921
72922         2006-07-11  Bruno Haible  <bruno@clisp.org>
72923
72924                 * javacomp.c: Fix a comment.
72925                 Reported by Jim Meyering.
72926
72927         2006-04-30  Bruno Haible  <bruno@clisp.org>
72928
72929                 * javacomp.h (compile_java_class): Add source_version,
72930                 target_version arguments.
72931                 * javacomp.c: Rewritten to choose only a compiler that
72932                 respects the specified source_version and target_version.
72933
72934         2006-06-27  Bruno Haible  <bruno@clisp.org>
72935
72936                 Assume correct S_ISDIR macro.
72937                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72938
72939         2006-07-22  Bruno Haible  <bruno@clisp.org>
72940
72941                 * javaversion.h: New file, from GNU gettext.
72942                 * javaversion.c: New file, from GNU gettext.
72943                 * javaversion.java: New file, from GNU gettext.
72944                 * javaversion.class: New file, from GNU gettext.
72945
72946         2006-05-17  Bruno Haible  <bruno@clisp.org>
72947
72948                 Cygwin portability.
72949                 * javaexec.c (execute_java_class): Test for jview program
72950                 also on Cygwin.
72951
72952         2006-04-09  Bruno Haible  <bruno@clisp.org>
72953
72954                 * fatal-signal.c: Don't include string.h.
72955                 (at_fatal_signal): Use a copying loop instead of memcpy.
72956
72957         2005-12-04  Bruno Haible  <bruno@clisp.org>
72958
72959                 * csharpexec.c: Add support for 'clix' launcher (untested).
72960                 (execute_csharp_using_sscli): New function.
72961                 (execute_csharp_program): Call it.
72962
72963         2006-06-21  Bruno Haible  <bruno@clisp.org>
72964
72965                 Avoid warnings from recent versions of mcs.
72966                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72967                 -o, -L, -r any more. Use options documented since mcs-1.0
72968                 instead. Similarly for -g.
72969
72970         2005-07-09  Bruno Haible  <bruno@clisp.org>
72971
72972                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72973                 add a .dll suffix.
72974                 Reported by Mark Junker <mjscod@gmx.de>.
72975
72976         2006-06-17  Bruno Haible  <bruno@clisp.org>
72977
72978                 * config.charset: Update for NetBSD 3.0.
72979
72980         2006-05-17  Bruno Haible  <bruno@clisp.org>
72981
72982                 Cygwin portability.
72983                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72984
72985         2006-05-16  Bruno Haible  <bruno@clisp.org>
72986
72987                 * localcharset.c [CYGWIN]: Include <windows.h>.
72988                 (get_charset_aliases): For Cygwin, return the same CPxxx
72989                 aliases list as under WIN32.
72990                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72991                 the environment variables. Fall back to GetACP().
72992
72993         2006-04-05  Bruno Haible  <bruno@clisp.org>
72994
72995                 * config.charset: Update Juan Manuel Guerrero's address.
72996
72997         2005-02-12  Bruno Haible  <bruno@clisp.org>
72998
72999                 * allocsa.h: Add extern "C" for C++.
73000
73001         2005-02-10  Bruno Haible  <bruno@clisp.org>
73002
73003                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
73004                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
73005
73006         2006-07-22  Bruno Haible  <bruno@clisp.org>
73007
73008                 * gettext.h: Update to GNU gettext-0.15.
73009
73010 2006-07-22  Bruno Haible  <bruno@clisp.org>
73011
73012         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
73013         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
73014         lib-prefix.m4, longdouble.m4, ssize_t.m4.
73015
73016 2006-07-21  Eric Blake  <ebb9@byu.net>
73017
73018         * modules/stdlib-safer: New file.
73019         * MODULES.html.sh (File stream based Input/Output): Add
73020         stdlib-safer.
73021
73022 2006-07-21  Eric Blake  <ebb9@byu.net>
73023
73024         * lib/stdlib-safer.h: New file from coreutils, required by
73025         stdlib--.h.
73026
73027 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
73028
73029         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
73030
73031 2006-07-20  Bruno Haible  <bruno@clisp.org>
73032
73033         * gnulib-tool: Recognize new option --assume-autoconf.
73034         (autoconf_minversion): New variable.
73035         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
73036
73037 2006-07-20  Bruno Haible  <bruno@clisp.org>
73038
73039         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
73040
73041 2006-07-19  Derek R. Price  <derek@ximbiot.com>
73042
73043         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
73044         Reindent and repaginate.
73045
73046 2006-07-19  Derek Price  <derek@ximbiot.com>
73047
73048         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
73049         Correct grammar.
73050
73051 2006-07-17  Bruno Haible  <bruno@clisp.org>
73052
73053         * modules/list: New file.
73054         * modules/array-list: New file.
73055         * modules/carray-list, modules/carray-list-tests: New files.
73056         * modules/linked-list, modules/linked-list-tests: New files.
73057         * modules/avltree-list, modules/avltree-list-tests: New files.
73058         * modules/rbtree-list, modules/rbtree-list-tests: New files.
73059         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
73060         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
73061         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
73062         * modules/oset: New file.
73063         * modules/array-oset: New file.
73064         * modules/avltree-oset, modules/avltree-oset-tests: New files.
73065         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
73066         * tests/test-carray_list.c: New file.
73067         * tests/test-linked_list.c: New file.
73068         * tests/test-avltree_list.c: New file.
73069         * tests/test-rbtree_list.c: New file.
73070         * tests/test-linkedhash_list.c: New file.
73071         * tests/test-avltreehash_list.c: New file.
73072         * tests/test-rbtreehash_list.c: New file.
73073         * tests/test-avltree_oset.c: New file.
73074         * tests/test-rbtree_oset.c: New file.
73075         * MODULES.html.sh (Container data structures): New section.
73076
73077 2006-07-17  Bruno Haible  <bruno@clisp.org>
73078
73079         * m4/gl_list.m4: New file.
73080
73081 2006-07-17  Bruno Haible  <bruno@clisp.org>
73082
73083         * lib/gl_list.h: New file.
73084         * lib/gl_list.c: New file.
73085         * lib/gl_array_list.h: New file.
73086         * lib/gl_array_list.c: New file.
73087         * lib/gl_carray_list.h: New file.
73088         * lib/gl_carray_list.c: New file.
73089         * lib/gl_linked_list.h: New file.
73090         * lib/gl_linked_list.c: New file.
73091         * lib/gl_anylinked_list1.h: New file.
73092         * lib/gl_anylinked_list2.h: New file.
73093         * lib/gl_avltree_list.h: New file.
73094         * lib/gl_avltree_list.c: New file.
73095         * lib/gl_anyavltree_list1.h: New file.
73096         * lib/gl_anyavltree_list2.h: New file.
73097         * lib/gl_rbtree_list.h: New file.
73098         * lib/gl_rbtree_list.c: New file.
73099         * lib/gl_anyrbtree_list1.h: New file.
73100         * lib/gl_anyrbtree_list2.h: New file.
73101         * lib/gl_anytree_list1.h: New file.
73102         * lib/gl_anytree_list2.h: New file.
73103         * lib/gl_linkedhash_list.h: New file.
73104         * lib/gl_linkedhash_list.c: New file.
73105         * lib/gl_anyhash_list1.h: New file.
73106         * lib/gl_anyhash_list2.h: New file.
73107         * lib/gl_avltreehash_list.h: New file.
73108         * lib/gl_avltreehash_list.c: New file.
73109         * lib/gl_rbtreehash_list.h: New file.
73110         * lib/gl_rbtreehash_list.c: New file.
73111         * lib/gl_anytreehash_list1.h: New file.
73112         * lib/gl_anytreehash_list2.h: New file.
73113
73114         * lib/gl_oset.h: New file.
73115         * lib/gl_oset.c: New file.
73116         * lib/gl_array_oset.h: New file.
73117         * lib/gl_array_oset.c: New file.
73118         * lib/gl_avltree_oset.h: New file.
73119         * lib/gl_avltree_oset.c: New file.
73120         * lib/gl_rbtree_oset.h: New file.
73121         * lib/gl_rbtree_oset.c: New file.
73122         * lib/gl_anytree_oset.h: New file.
73123
73124 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73125
73126         * m4/mkancesdirs.m4: New file.
73127         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
73128         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
73129         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
73130         it.
73131
73132 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
73135         * lib/mkancesdirs.h: New files.
73136         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
73137         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
73138         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
73139         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
73140         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
73141         callers changed.  Revamp internals significantly, by not
73142         attempting to create directories that are temporarily more
73143         permissive than the final results.  Do not attempt to use
73144         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
73145         This removes some race conditions, fixes some bugs, and simplifies
73146         things.  Use new dirchownmod function to do owner and mode changes.
73147         * lib/mkdir-p.h: Likewise.
73148         * lib/modechange.c (octal_to_mode): New function.
73149         (struct mode_change): New member mentioned.
73150         (make_node_op_equals): New arg mentioned.  All callers changed.
73151         (mode_compile): Keep track of which mode bits the user has explicitly
73152         mentioned.
73153         (mode_adjust): New arg DIR, so that we implement the X op correctly.
73154         New arg PMODE_BITS, to keep track of which mode bits the user
73155         mentioned; it treats S_ISUID and S_ISGID speciall.
73156         All callers changed.
73157         * lib/modechange.h: Likewise.
73158
73159 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
73160
73161         * MODULES.html.sh: Add mkancestors.
73162         * modules/mkancesdirs: New module.
73163         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73164         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73165         The chdir-safer and afs files are now orphans; I'll remove them
73166         unless someone speaks up.
73167         Add lib/dirchownmod.c, lib/dirchownmod.h.
73168         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73169         Add lchown, mkancesdirs.
73170         (Maintainer): Add self.
73171
73172 2006-07-15  Karl Berry  <karl@gnu.org>
73173
73174         * gnulib-tool: help message wording/arrangement.
73175
73176 2006-07-14  Simon Josefsson  <jas@extundo.com>
73177
73178         * doc/gnulib.texi (Libtool and Windows): New section.
73179
73180 2006-07-12  Simon Josefsson  <jas@extundo.com>
73181
73182         * modules/gendocs (License): Fix license, approved by Karl.
73183
73184 2006-07-12  Eric Blake  <ebb9@byu.net>
73185
73186         * MODULES.html.sh: Add gendocs.
73187
73188 2006-07-11  Eric Blake  <ebb9@byu.net>
73189
73190         * modules/fdl: New module, to install doc/fdl.texi.
73191         * MODULES.html.sh: Add new section for documentation modules.
73192         * gnulib-tool: Avoid space-tab.
73193         (--doc-base): New option, to manage files from doc.
73194
73195 2006-07-11  Eric Blake  <ebb9@byu.net>
73196
73197         * m4/absolute-header.m4: Fix comments to match recent change.
73198
73199 2006-07-11  Eric Blake  <ebb9@byu.net>
73200
73201         * gnulib-tool: List --doc-base before --tests-base.
73202
73203 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73204
73205         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73206
73207 2006-07-11  Bruno Haible  <bruno@clisp.org>
73208
73209         * README: Mention where to put documentation.
73210
73211 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73212
73213         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73214
73215 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73218         to stdint.m4.
73219
73220 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73221
73222         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73223         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73224         "no/such/file/stdint.h" when there is no such file, so that
73225         the resulting C code can be parsed by dodgy compilers.
73226         Problems reported by Bob Proulx.
73227
73228 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73229
73230         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73231         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73232         macros into the GNU _D_EXACT_NAMLEN.
73233         * lib/savedir.c:  Likewise.
73234         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73235
73236 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73237         and Paul Eggert  <eggert@cs.ucla.edu>
73238
73239         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73240         * m4/savedir.m4:
73241         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73242         macros into the GNU _D_EXACT_NAMLEN.
73243
73244 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73247         around the absolute name, to work around a problem with the HP-UX
73248         11.23 native C compiler, reported by Bob Proulx.
73249
73250 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73251
73252         * doc/maintain.texi, make-stds.texi: Sync from
73253         <http://savannah.gnu.org/projects/gnustandards>.
73254
73255 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73258
73259 2006-07-09  Jim Meyering  <jim@meyering.net>
73260
73261         * m4/glob.m4: Remove a doubled word in a comment.
73262
73263 2006-07-09  Jim Meyering  <jim@meyering.net>
73264
73265         * lib/argp-pv.c: Remove a doubled word in a comment.
73266         * lib/check-version.c (check_version): Likewise.
73267         * lib/javacomp.c (compile_java_class): Likewise.
73268
73269 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73270
73271         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73272         for the benefit of people using Autoconf 2.60.  If you want to
73273         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73274         (or m4/onceonly.m4, if pre-2.57) manually.
73275
73276 2006-07-08  Jim Meyering  <jim@meyering.net>
73277
73278         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73279         comment.
73280         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73281         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73282         comment.
73283
73284 2006-07-08  Jim Meyering  <jim@meyering.net>
73285
73286         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73287
73288 2006-07-07  Simon Josefsson  <jas@extundo.com>
73289
73290         * tests/test-crc.c: Change expected crc value, the test vector
73291         were probably computed using the old broken crc.c?
73292
73293 2006-07-06  Simon Josefsson  <jas@extundo.com>
73294
73295         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73296         now the canonical place for the M4 file).
73297
73298         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73299         from the sys_socket dependency now.
73300
73301         * modules/inet_pton (Files): Ditto.
73302
73303         * modules/inet_ntop (Files): Ditto.
73304
73305 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73306
73307         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73308         not gl_PREREQ_GETUSERSHELL.
73309
73310 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73311
73312         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73313         with only one argument, for Autoconf 2.60.
73314         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73315         expand to nothing, so add a shell command to avoid syntax error.
73316         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73317
73318 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73319
73320         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73321
73322 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73323
73324         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73325         no longer needed.  Check for isblank decl.
73326         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73327         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73328         of existence.
73329
73330 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73331
73332         * lib/getloadavg.c: Use __VMS, not VMS.
73333         * lib/getopt.c: Likewise.
73334         * lib/getpagesize.h: Likewise.
73335         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73336         and probably does not work.
73337
73338 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73339
73340         * lib/.cppi-disable: Add wcwidth.
73341         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73342         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73343         (ISGRAPH): Remove.  All uses changed to isgraph.
73344         (FOLD) [!defined _LIBC]: Remove special case.
73345         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73346         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73347         HAVE_ISBLANK.
73348         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73349         case.
73350
73351 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73352
73353         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73354         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73355         brackets.  Other minor changes to suppress some compiler
73356         warnings.
73357
73358 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73359         and Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73362         of invoking obsolescent AC_HEADER_DIRENT macro.
73363         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73364         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73365         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73367         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73368         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73369         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73370         * m4/readdir.m4: Remove; no longer needed.
73371
73372 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73373         and Paul Eggert  <eggert@cs.ucla.edu>
73374
73375         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73376         Don't worry about this obsolete case any more.
73377         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73378         directories.
73379         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73380         worry about this obsolete case any more.
73381         * lib/fts.c: Likewise.
73382         * lib/getcwd.c: Likewise.
73383         * lib/glob.h: Likewise.
73384         * lib/savedir.c: Likewise.
73385
73386 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73387
73388         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73389         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73390         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73391         needed.
73392         All uses removed.
73393         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73394         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73395         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73396         needed.
73397         * m4/getdate.m4 (gl_GETDATE): Likewise.
73398         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73399         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73400         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73401         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73402         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73403         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73404         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73405         needed.
73406
73407 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73408
73409         * lib/memcasecmp.c: Include <limits.h>.
73410         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73411         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73412         Don't assume isdigit succeeds only on '0' through '9'.
73413
73414 2006-07-05  Eric Blake  <ebb9@byu.net>
73415
73416         * modules/getaddrinfo (Depends-on): Add snprintf.
73417
73418 2006-07-05  Eric Blake  <ebb9@byu.net>
73419
73420         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73421         to avoid 'header present but could not be compiled' on cygwin.
73422
73423 2006-07-05  Eric Blake  <ebb9@byu.net>
73424
73425         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73426         missing from netdb.h.
73427         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73428
73429 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73430
73431         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73432         no longer needed.
73433         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73434         * m4/getdate.m4 (gl_GETDATE): Likewise.
73435         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73436         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73437         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73438         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73439         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73440
73441 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73442
73443         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73444         All uses of is_space replaced by isspace.
73445         * lib/exit.h: Don't talk about STDC_HEADERS.
73446         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73447         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73448         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73449         replaced by isprint etc.
73450         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73451         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73452         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73453         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73454         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73455         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73456
73457 2006-07-05  Bruno Haible  <bruno@clisp.org>
73458
73459         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73460         the function exists, before testing against AIX.
73461         Reported by Martin Lambers <marlam@marlam.de>.
73462
73463 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73464
73465         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73466         From Mark D. Baushke.
73467
73468 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73469
73470         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73471         to the absolute name, not just one, to bypass Sun C 5.8's
73472         "warning: #include of /usr/include/... may be non-portable".
73473
73474 2006-07-04  Eric Blake  <ebb9@byu.net>
73475
73476         * modules/dirname-tests: New test module.
73477         * tests/test-dirname.c: New file, replacing dirname.c
73478         TEST_DIRNAME section that was recently deleted.
73479
73480 2006-07-04  Bruno Haible  <bruno@clisp.org>
73481
73482         Assume ANSI C header files and <ctype.h> functions.
73483         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73484         (mbsnwidth): Use isprint, iscntrl instead.
73485
73486 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73487
73488         Merge from coreutils.
73489         * MODULES.html.sh: Add xstrtold.
73490         * modules/xstrtold: New file.
73491         * modules/cycle-check (Files): Add lib/same-inode.h.
73492         * modules/dirname (Files): Add m4/double-slash-root.m4.
73493         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73494         * modules/mkdir-p (Files): Add lib/same-inode.h.
73495         * modules/same (Files): Add lib/same-inode.h.
73496
73497 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73498
73499         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73500         This is to keep the terminology clean; POSIX talks about
73501         "absolute pathnames", not "full pathnames", but the GNU
73502         Coding Standards say to use "path" for something else;
73503         so use "absolute" to keep both sides happy.
73504         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73505         Set gl_absolute_header, not gl_full_header_path.
73506         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73507         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73508         All uses changed.
73509
73510         Merge from coreutils.
73511
73512         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73513
73514         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73515         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73516         want to require the building of c-strtod.o.
73517         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73518         needs -lm directly.
73519         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73520
73521         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73522
73523         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73524         --as-needed option if available.  Problem reported by Albert Chin in
73525         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73526         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73527         cc merely issues a bunch of annoying warnings for --as-needed
73528         (this problem was reported by Bob Proulx).  Also, try linking with
73529         -lm to detect a bug in binutils 2.16 (this problem was reported
73530         by Ralf Wildenhues).
73531
73532         2006-06-18  Jim Meyering  <jim@meyering.net>
73533
73534         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73535         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73536         macro.
73537         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73538         also check for glibc-2.4's abort-inducing bug.
73539
73540         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73541         Low-probability clean-up should be to use rmdir to get rid of
73542         the just-created directory, not unlink.
73543
73544         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73545         configure fail, and request a bug report to inform us about it.
73546         Add a comment that, barring reports to the contrary, in 2007 we'll
73547         assume ftruncate is universally available.
73548
73549         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73550
73551         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73552
73553         2006-03-12  Jim Meyering  <jim@meyering.net>
73554
73555         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73556         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73557         * m4/same.m4 (gl_SAME): Likewise.
73558         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73559
73560         2006-03-11  Eric Blake  <ebb9@byu.net>
73561
73562         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73563         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73564         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73565         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73566
73567 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73568
73569         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73570         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73571         reported by Mark D. Baushke, one in
73572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73573
73574         Merge from coreutils.
73575
73576         * lib/.cppi-disable: Add stdint_.h.
73577         * lib/.cvsignore: Add stdint.h.
73578
73579         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73580
73581         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73582         both double and long double versions.
73583         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73584         * lib/xstrtold.c: New file.
73585         * lib/xstrtod.h (xstrtold): New decl.
73586
73587         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73588
73589         * lib/filemode.c (setst): Remove.
73590         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73591         (arguably) clearer, and the generated code is a bit smaller on my
73592         Debian GNU/Linux stable x86 host.
73593
73594         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73595
73596         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73597         Assume that filemode.h includes sys/types.h and sys/stat.h.
73598         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73599         (ftypelet): Reorder to put common cases first, for efficiency.
73600         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73601         to do 'M'.
73602         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73603         of 10, for compatibility with FreeBSD.  All callers changed.
73604         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73605         types that can't be deduced solely from st_mode.  First arg is now a
73606         const pointer.
73607         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73608         (strmode): Renamed from mode_string.
73609         (filemodestring): New decl.
73610         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73611         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73612         needed.
73613         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73614
73615         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73618         fsusage.h now does that.  Include fsusage.h first, to test interface.
73619         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73620         at most one method (the old code could have generated decls that
73621         didn't conform to C89, not that this was ever exercised).
73622         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73623
73624         2006-03-19  Jim Meyering  <jim@meyering.net>
73625
73626         Work even in a chroot where d_ino values for entries in "/"
73627         don't match the stat.st_ino values for the same names.
73628         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73629         number, iterate through all entries again, using lstat instead.
73630         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73631         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73632
73633         * lib/getcwd.c (__getcwd): Clarify a comment.
73634         Use memcpy in place of a call to strcpy.
73635
73636         2006-03-12  Jim Meyering  <jim@meyering.net>
73637
73638         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73639         matches that of the current directory (which we're about to chdir ".."
73640         out of), then save the dev-ino of the parent, instead.
73641
73642         * lib/same-inode.h (SAME_INODE): New file/macro.
73643         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73644         Include "same-inode.h", instead.
73645         * lib/same.c: Likewise.
73646         * lib/cycle-check.h: Include "same-inode.h".
73647         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73648         * lib/cycle-check.c (SAME_INODE): Remove definition.
73649         * lib/root-dev-ino.h: Include "same-inode.h".
73650
73651         2006-03-11  Eric Blake  <ebb9@byu.net>
73652
73653         * lib/same.c (same_name): s/base_name/last_component/
73654         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73655         * lib/filenamecat.c (file_name_concat): Likewise.
73656
73657         2006-03-11  Eric Blake  <ebb9@byu.net>,
73658                     Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73661         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73662         drive prefix.
73663         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73664         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73665         (last_component): New method.
73666         * lib/dirname.c (dir_len): Determine when drive letters need a
73667         subsequent slash.  Preserve // when it is special.
73668         (dir_name): Don't append dot when drive letter is absolute.
73669         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73670         * lib/basename.c (base_name): New semantics - malloc the result.
73671         Preserve // when it is special.  Preserve relative files that look
73672         like drive letters.
73673         (base_len): Preserve // when it is special.
73674         (last_component): New method, similar to old base_name semantics.
73675         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73676         base_name.  Strip redundant slashes from ///.
73677
73678 2006-07-03  Jim Meyering  <jim@meyering.net>
73679
73680         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73681         macro is used before the first cycle_check call.
73682
73683 2006-07-03  Eric Blake  <ebb9@byu.net>
73684
73685         * modules/dirname (Depends-on): Add xstrndup.
73686
73687 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73688
73689         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73690         test cases, so that config.log is a bit easier to follow.
73691
73692 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73693
73694         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73695         both are 64 bits, since this seems to be the tradition, and this
73696         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73697         we ever run into a host that prefers long long to long in this
73698         case, we'll need another configure-time test.  Problem reported by
73699         Jim Meyering.
73700
73701 2006-07-02  Eric Blake  <ebb9@byu.net>
73702
73703         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73704
73705 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73706
73707         * modules/inttypes (Depends-on): No longer depends on stdint.
73708         * modules/stdint (Description): Say more about assumptions.
73709         Say that the fast types might differ.  Say macros are used.
73710         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73711         (Makefile.am): Revise list of substituted symbols to match
73712         new stdint.m4.
73713         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73714         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73715         * tests/test-stdint.c (verify_same_types)
73716         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73717         the code conforms to C99/C89.
73718         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73719         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73720
73721 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73724         but fix a bug, by requiring at least 64 bits.
73725         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73726         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73727         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73728         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73729
73730         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73731         changes.  Make 2.59 a prerequisite.  Check and substitute for
73732         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73733         inttypes.h.  Do not use special include files; just use the
73734         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73735         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73736         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73737         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73738         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73739         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73740         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73741         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73742         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73743         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73744         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73745         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73746         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73747         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73748         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73749         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73750         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73751         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73752         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73753         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73754         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73755         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73756         not check for things that C99 does not require, e.g., int8_t.  If
73757         a test isn't needed unless <stdint.h> isn't working, and is
73758         unlikely to be needed for any other reason, then don't do it
73759         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73760         size_t, since we assume C89 freestanding at least.  Do not check
73761         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73762         the right thing even if the types are not defined.  Instead use:
73763         (gl_STDINT_TYPE_PROPERTIES): New macro.
73764         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73765         testing whether <sys/types.h> clashes, as Autoconf does this for
73766         us now.  All uses removed.
73767         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73768         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73769         (gl_CHECK_TYPE_SAME):
73770         Remove; no longer needed.
73771         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73772         exists, since we'll return 0 anyway in that case.
73773         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73774
73775 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73778         possible collision with system files.
73779         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73780         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73781         WCHAR_MIN and WCHAR_MAX in this case.
73782         (<stddef.h>): Do not include; no longer needed.
73783         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73784         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73785         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73786         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73787         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73788         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73789         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73790         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73791         !defined(__c99))]: Include in this case too, since it's harmless
73792         now.
73793         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73794         dangerous to do so.
73795         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73796         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73797         (_STDINT_MIN, _STDINT_MAX): New macros.
73798         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73799         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73800         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73801         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73802         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73803         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73804         macros, not typedefs; this simplifies things quite a bit.
73805         Use long int for all types narrower than int64_t.
73806         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73807         Define in terms of long long int or int64_t or long int,
73808         not int64_t or int32_t.  This saves some compile-time testing.
73809         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73810         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73811         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73812         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73813         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73814         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73815         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73816         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73817         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73818         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73819         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73820         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73821         undef any previous version and define our own version, for
73822         simplicity and consistency with the new macros for types.
73823         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73824         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73825         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73826         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73827         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73828         @WINT_T_SUFFIX@ to keep things simple here.
73829         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73830         Simplify by assuming typical 8/16/32/64 host, since we're
73831         already doing that elsewhere anyway.
73832         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73833         and assume long long int is 64 bits if available.  This
73834         speeds up 'configure'.
73835
73836 2006-07-01  Eric Blake  <ebb9@byu.net>
73837
73838         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73839         Reported by Andreas Buening.
73840
73841 2006-07-01  Eric Blake  <ebb9@byu.net>
73842
73843         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73844
73845 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73846
73847         * lib/getaddrinfo.c: fixed typo
73848
73849 2006-06-29  Jim Meyering  <jim@meyering.net>
73850
73851         * modules/strftime (Maintainer): Add my name, since with the
73852         FPRINTFTIME changes strftime.c has forked from glibc.
73853
73854 2006-06-29  Eric Blake  <ebb9@byu.net>
73855
73856         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73857
73858 2006-06-29  Eric Blake  <ebb9@byu.net>
73859
73860         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73861
73862 2006-06-29  Eric Blake  <ebb9@byu.net>
73863
73864         * lib/stat_.h: New file.
73865
73866 2006-06-29  Eric Blake  <ebb9@byu.net>
73867
73868         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73869         unused static function.
73870
73871 2006-06-29  Eric Blake  <ebb9@byu.net>
73872
73873         * doc/functions.texi (Function Portability): Document missing lstat
73874         on mingw.
73875
73876 2006-06-29  Eric Blake  <ebb9@byu.net>
73877
73878         * MODULES.html.sh: Add sys_stat.
73879         * modules/sys_stat: New module.
73880         * modules/mkstemp (Depends-on): Add sys_stat.
73881
73882 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73883
73884         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73885
73886 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73887
73888         * m4/c-bs-a.m4: Removed.
73889
73890 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73891
73892         * lib/strftime.c: Assume strftime() exists.
73893
73894 2006-06-29  Derek Price  <derek@ximbiot.com>
73895
73896         * modules/c-bs-a: Removed - \a is C89.
73897         * MODULES.html.sh: Remove c-bs-a.
73898
73899 2006-06-29  Bruno Haible  <bruno@clisp.org>
73900
73901         * modules/wcwidth (License): Change to LGPL.
73902
73903 2006-06-28  Simon Josefsson  <jas@extundo.com>
73904
73905         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73906         on _WIN32.
73907
73908         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73909         getnameinfo.
73910
73911 2006-06-28  Simon Josefsson  <jas@extundo.com>
73912
73913         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73914
73915 2006-06-28  Simon Josefsson  <jas@extundo.com>
73916
73917         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73918         functions there.  It will succeed on Windows XP, but on Windows
73919         2000 and (presumably) earlier, it will fail, and use the internal
73920         re-implementation.
73921         (use_win32_p): New function.
73922         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73923         Support AI_NUMERICSERV to disable getservbyname.
73924         (getnameinfo): New function, only supports
73925         NI_NUMERICHOST|NI_NUMERICSERV for now.
73926
73927         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73928         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73929         getnameinfo.
73930
73931 2006-06-28  Eric Blake  <ebb9@byu.net>
73932
73933         * modules/wcwidth: New file.
73934         * modules/mbchar (Depends-on): Add wcwidth.
73935         * modules/mbswidth (Depends-on): Add wcwidth.
73936         * MODULES.html.sh: Add wcwidth.
73937
73938 2006-06-28  Eric Blake  <ebb9@byu.net>
73939
73940         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73941         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73942
73943 2006-06-28  Eric Blake  <ebb9@byu.net>
73944
73945         * lib/xvasprintf.h: Fix comments.
73946
73947 2006-06-28  Eric Blake  <ebb9@byu.net>
73948
73949         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73950         * lib/mbswidth.c (wcwidth): Move from here...
73951         * lib/wcwidth.h: ...to this new file.
73952
73953 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73954
73955         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73956
73957         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73958         it's obsolete.
73959         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73960
73961 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73962
73963         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73964         Autoconf 2.60 says this stuff was obsolete.
73965
73966 2006-06-28  Bruno Haible  <bruno@clisp.org>
73967
73968         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73969
73970 2006-06-28  Bruno Haible  <bruno@clisp.org>
73971
73972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73973         gt_TYPE_WCHAR_T.
73974
73975 2006-06-28  Bruno Haible  <bruno@clisp.org>
73976
73977         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73978         declaration for wcwidth.
73979         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73980
73981 2006-06-28  Bruno Haible  <bruno@clisp.org>
73982
73983         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73984         (mkdir): Define using _mkdir.
73985
73986 2006-06-28  Bruno Haible  <bruno@clisp.org>
73987
73988         * lib/getaddrinfo.h: Fix POSIX URL.
73989         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73990         _WIN32.
73991         (use_win32_p): Make static.
73992         (getaddrinfo): Reject service name if it is empty or does not consist
73993         solely of decimal digits, or if its value is > 65535.
73994         (getnameinfo): Remove useless casts.
73995
73996 2006-06-27  Simon Josefsson  <jas@extundo.com>
73997
73998         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73999         Eggert and Martin Lambers.
74000
74001 2006-06-27  Simon Josefsson  <jas@extundo.com>
74002
74003         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
74004         Eggert and Martin Lambers.
74005
74006 2006-06-27  Bruno Haible  <bruno@clisp.org>
74007
74008         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
74009         result to 0, not to empty.
74010         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
74011
74012 2006-06-27  Bruno Haible  <bruno@clisp.org>
74013
74014         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
74015
74016 2006-06-26  Simon Josefsson  <jas@extundo.com>
74017
74018         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
74019         present.
74020
74021 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
74024         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
74025         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
74026
74027 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
74028
74029         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
74030
74031 2006-06-26  Bruno Haible  <bruno@clisp.org>
74032
74033         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
74034
74035 2006-06-26  Bruno Haible  <bruno@clisp.org>
74036
74037         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
74038
74039 2006-06-26  Bruno Haible  <bruno@clisp.org>
74040
74041         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
74042         SGI C compiler in pre-C99 mode.
74043         Suggested by Mark D. Baushke and Larry Jones.
74044
74045 2006-06-26  Bruno Haible  <bruno@clisp.org>
74046
74047         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
74048         WCHAR_MAX.
74049         Reported by Mark D. Baushke and Larry Jones.
74050
74051 2006-06-26  Bruno Haible  <bruno@clisp.org>
74052
74053         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
74054         in pre-C99 mode.
74055         Suggested by Mark D. Baushke and Larry Jones.
74056
74057 2006-06-23  Simon Josefsson  <jas@extundo.com>
74058             Bruno Haible  <bruno@clisp.org>
74059
74060         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
74061         Emit mostlyclean-local rule.
74062         (func_emit_tests_Makefile_am): Likewise.
74063         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
74064
74065 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
74066
74067         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
74068
74069 2006-06-23  Bruno Haible  <bruno@clisp.org>
74070
74071         * tests/test-stdint.c: Update to match ISO C 99 Technical
74072         Corrigendum 1.
74073
74074 2006-06-23  Bruno Haible  <bruno@clisp.org>
74075
74076         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
74077
74078 2006-06-23  Bruno Haible  <bruno@clisp.org>
74079
74080         * lib/stdint_.h: Treat IRIX like OpenBSD.
74081
74082 2006-06-23  Bruno Haible  <bruno@clisp.org>
74083
74084         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
74085         ISO C 99 Technical Corrigendum 1.
74086
74087 2006-06-22  Simon Josefsson  <jas@extundo.com>
74088
74089         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
74090         MinGW.
74091
74092 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
74093
74094         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
74095         needed.  Some compiler complained about some of them.  Problem reported
74096         by Larry Jones in
74097         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
74098
74099 2006-06-21  Simon Josefsson  <jas@extundo.com>
74100
74101         * tests/test-getaddrinfo.c: New file.
74102
74103         * modules/getaddrinfo-tests: New file.
74104
74105         * MODULES.html.sh: Add inet_pton.
74106
74107         * modules/inet_pton: New file.
74108
74109 2006-06-21  Simon Josefsson  <jas@extundo.com>
74110
74111         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
74112         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
74113         of using the (limited) gnulib implementation on Windows XP.
74114
74115         * m4/inet_pton.m4: New file.
74116
74117 2006-06-21  Simon Josefsson  <jas@extundo.com>
74118
74119         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
74120         variable.
74121
74122         * lib/socket_.h: Don't define WINVER.
74123
74124         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
74125         slightly modified to work in gnulib.
74126
74127 2006-06-21  Simon Josefsson  <jas@extundo.com>
74128
74129         * doc/gnulib.texi (Windows sockets): Add.
74130
74131 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * lib/read-file.c (fread_file): Start with buffer allocation of
74134         0 bytes rather than 1 byte; this simplifies the code.
74135         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
74136         code to free buffer and save/restore errno.
74137         (internal_read_file): Remove unused local.
74138
74139 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
74142         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
74143         Problem reported by Denis Excoffier in
74144         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
74145
74146 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74147
74148         * modules/sys_socket, modules/socklen: Include sys/types since
74149         FreeBSD 4.x's sys/socket.h needs it.
74150
74151 2006-06-19  Simon Josefsson  <jas@extundo.com>
74152
74153         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
74154
74155 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
74156
74157         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
74158
74159 2006-06-19  Bruno Haible  <bruno@clisp.org>
74160
74161         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74162         and FULL_PATH_INTTYPES_H in angle brackets.
74163         Reported by Mark D. Baushke <mdb@gnu.org>.
74164
74165 2006-06-17  Eric Blake  <ebb9@byu.net>
74166
74167         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74168         errno.
74169
74170 2006-06-17  Bruno Haible  <bruno@clisp.org>
74171
74172         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74173         <sys/inttypes.h>.
74174
74175 2006-06-17  Bruno Haible  <bruno@clisp.org>
74176
74177         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74178         whether errno is declared. Assume <errno.h> declares errno.
74179
74180 2006-06-17  Bruno Haible  <bruno@clisp.org>
74181
74182         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74183
74184 2006-06-17  Bruno Haible  <bruno@clisp.org>
74185
74186         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74187         problem on Solaris 2.5.1.
74188
74189 2006-06-16  Eric Blake  <ebb9@byu.net>
74190
74191         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74192         * lib/unicodeio.c [!defined errno]: Likewise.
74193         * lib/strtol.c [!defined errno]: Likewise.
74194         * lib/strtod.c [!defined errno]: Likewise.
74195
74196 2006-06-15  Eric Blake  <ebb9@byu.net>
74197
74198         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74199
74200 2006-06-15  Eric Blake  <ebb9@byu.net>
74201
74202         * config/srclist.txt (ssize_t.m4): Lose sync.
74203
74204 2006-06-15  Bruno Haible  <bruno@clisp.org>
74205
74206         * modules/stdint (Files): Include m4/full-header-path.m4,
74207         m4/size_max.m4, m4/wchar_t.m4.
74208         (Makefile.am): Many more substitutions.
74209         * modules/stdint-tests: New file.
74210         * tests/test-stdint.c: New file.
74211
74212 2006-06-15  Bruno Haible  <bruno@clisp.org>
74213
74214         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74215         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74216         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74217         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74218         gl_CHECK_TYPE_SAME): New macros.
74219
74220 2006-06-15  Bruno Haible  <bruno@clisp.org>
74221
74222         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74223
74224 2006-06-15  Bruno Haible  <bruno@clisp.org>
74225
74226         * lib/stdint_.h: Rewritten to be fully auto-configured.
74227         Fixes bug on HP-UX/IA64.
74228
74229 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74230
74231         * lib/getdate.y (__attribute__): Don't define if already defined.
74232         Problem reported by Larry Jones.
74233         * lib/utimens.c (__attribute__): Likewise.
74234
74235 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74236
74237         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74238         reported by Andreas Schwab.
74239
74240 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74241             Bruno Haible  <bruno@clisp.org>
74242
74243         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74244         check for the declaration of strnlen and a run test that exposes the
74245         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74246         rpl_strndup.
74247
74248 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74249             Bruno Haible  <bruno@clisp.org>
74250
74251         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74252
74253 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74254
74255         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74256         compile test, for Tru64 4.0D.
74257
74258 2006-05-28  Karl Berry  <karl@gnu.org>
74259
74260         * config/srclist.txt (printf-args.c): lose sync.
74261
74262 2006-05-26  Martin Lambers  <marlam@marlam.de>
74263
74264         * lib/getpass.c: Updates the test for the native W32 API, and adds
74265         missing includes, thus fixing compilation warnings.
74266
74267 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74268
74269         * lib/exclude.c (exclude_fnmatch): New function.
74270         (excluded_file_name): Call exclude_fnmatch.
74271         * lib/exclude.h (excluded_file_name): New prototype
74272
74273 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74274
74275         * lib/tempname.c (small_open, large_open): New macros.
74276         (__open, __open64) [!_LIBC]: Remove.
74277         (__gen_tempname): Use small_open and large_open instead of __open
74278         and __open64.  This fixes a portability bug on HP-UX 11.11i
74279         reported by Simon Wing-Tang in
74280         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74281
74282 2006-05-24  Bruno Haible  <bruno@clisp.org>
74283
74284         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74285         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74286         Reported by Thorsten Maerz <torte@netztorte.de> via
74287         Aaron Stone <aaron@serendipity.cx>.
74288
74289 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74290
74291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74292         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74293         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74294         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74295         not really conditional on the cache.
74296         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74297
74298 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74301         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74302         (my_usleep): Don't mishandle maximum value.
74303
74304 2006-05-19  Jim Meyering  <jim@meyering.net>
74305
74306         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74307
74308 2006-05-17  Bruno Haible  <bruno@clisp.org>
74309
74310         Cygwin portability.
74311         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74312
74313 2006-05-17  Bruno Haible  <bruno@clisp.org>
74314
74315         * lib/stdint_.h: Fix recognition of Cygwin.
74316
74317 2006-05-15  Bruno Haible  <bruno@clisp.org>
74318
74319         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74320         on libtool patch by Ralf Wildenhues.
74321
74322 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74323
74324         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74325         test for C99 conformance; (bool) 0.5 is an integer constant
74326         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74327         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74328
74329 2006-05-11  Simon Josefsson  <jas@extundo.com>
74330
74331         * m4/xvasprintf.m4: Fix obvious typo.
74332
74333 2006-05-11  Jim Meyering  <jim@meyering.net>
74334
74335         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74336         James Lemley.
74337
74338 2006-05-10  Simon Josefsson  <jas@extundo.com>
74339
74340         * lib/md4.c: Typo fix, update copyright years.
74341         (K1, K2): Don't use L because it turn computations into 64-bit on
74342         64-bit platforms.
74343
74344 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74345
74346         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74347         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74348         unwanted sign propagation, e.g., on hosts with 64-bit int.
74349         There still are some problems with reeelly weird theoretical hosts
74350         (e.g., 33-bit int) but it's not worth worrying about now.
74351         * lib/sha1.c (rol): Likewise.
74352         (K1, K2, K3, K4): Remove unnecessary L suffix.
74353
74354 2006-05-10  Bruno Haible  <bruno@clisp.org>
74355
74356         * lib/des.c: Cast to avoid warnings.
74357
74358 2006-05-09  Bruno Haible  <bruno@clisp.org>
74359
74360         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74361         (Depends-on): Depend also on xsize, stdarg.
74362         (configure.ac): Add gl_XVASPRINTF.
74363
74364 2006-05-09  Bruno Haible  <bruno@clisp.org>
74365
74366         * m4/xvasprintf.m4: New file.
74367
74368 2006-05-09  Bruno Haible  <bruno@clisp.org>
74369
74370         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74371         (EOVERFLOW): Define fallback value.
74372         (xstrcat): New function.
74373         (xvasprintf): Recognize the special case of a string concatenation.
74374
74375 2006-05-08  Eric Blake  <ebb9@byu.net>
74376
74377         * gnulib-tool (func_version): Base copyright year on CVS date.
74378         (func_emit_copyright_notice): New function.
74379         (func_emit_lib_Makefile_am): Use it.
74380         (func_emit_tests_Makefile_am): Likewise.
74381         (func_import): Likewise.
74382
74383 2006-05-08  Bruno Haible  <bruno@clisp.org>
74384
74385         * modules/stdarg: New file.
74386         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74387
74388 2006-05-08  Bruno Haible  <bruno@clisp.org>
74389
74390         * m4/stdarg.m4: New file, from GNU gettext.
74391
74392 2006-05-08  Bruno Haible  <bruno@clisp.org>
74393
74394         * config/srclist.txt (build-aux/config.rpath): different from latest
74395         release.
74396
74397 2006-05-08  Bruno Haible  <bruno@clisp.org>
74398
74399         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74400
74401 2006-05-05  Jim Meyering  <jim@meyering.net>
74402
74403         * m4/warning.m4: New file, derived from bison's file by the same name.
74404
74405 2006-05-03  Bruno Haible  <bruno@clisp.org>
74406
74407         * lib/stdint_.h: Shorter URL.
74408         * lib/inttypes.h: Likewise.
74409
74410 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74411
74412         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74413
74414 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74415
74416         * lib/verify.h: Document the internals better.  Most of this change
74417         was written by Bruno Haible.
74418
74419 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         * doc/verify.texi: New file, partly based on a proposal by
74422         Bruno Haible.
74423
74424 2006-05-02  Bruno Haible  <bruno@clisp.org>
74425
74426         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74427         test from here...
74428         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74429
74430 2006-04-29  Bruno Haible  <bruno@clisp.org>
74431
74432         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74433         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74434
74435 2006-04-29  Bruno Haible  <bruno@clisp.org>
74436
74437         * gnulib-tool: Make --update option actually work.
74438
74439 2006-04-29  Bruno Haible  <bruno@clisp.org>
74440
74441         * doc/gcd.texi: New file.
74442         * doc/gnulib.texi: Include it.
74443
74444 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * lib/getdate.y (get_date): When adding relative date, start with the
74447         initial time, not with the result of the first mktime call.
74448
74449 2006-04-25  Bruno Haible  <bruno@clisp.org>
74450
74451         * gnulib-tool (func_import): Output the include directives in three
74452         blocks, sorted separately.
74453         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74454
74455 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74458         to define main with arguments, for C++.  Reported by Eric Blake.
74459         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74460         Prefer 'int main ()' to 'int main (void)', for C++.
74461         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74462         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74463         for 'main', for C99 and C++.
74464
74465 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74466
74467         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74468         Don't assume that exit status -1 is valid.
74469         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74470         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74471         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74472         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74473         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74474         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74475         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74476         functions can be used without declaring them, or that you can
74477         exit with status -1.
74478         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74479
74480 2006-04-24  Karl Berry  <karl@gnu.org>
74481
74482         * config/srclist.txt (longdouble.m4): sync lost.
74483
74484 2006-04-24  Eric Blake  <ebb9@byu.net>
74485
74486         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74487
74488 2006-04-24  Bruno Haible  <bruno@clisp.org>
74489
74490         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74491         poll() implementation in AIX.
74492         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74493
74494 2006-04-24  Bruno Haible  <bruno@clisp.org>
74495
74496         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74497         assigned exactly once.
74498
74499 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74500             Bruno Haible  <bruno@clisp.org>
74501
74502         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74503         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74504         for AM_CPPFLAGS.
74505
74506 2006-04-23  Bruno Haible  <bruno@clisp.org>
74507
74508         * modules/copy-file: Depend on unistd.
74509         * modules/execute: Likewise.
74510         * modules/fatal-signal: Likewise.
74511         * modules/findprog: Likewise.
74512         * modules/mkdtemp : Likewise.
74513         * modules/pipe: Likewise.
74514         * modules/wait-process: Likewise.
74515
74516 2006-04-23  Bruno Haible  <bruno@clisp.org>
74517
74518         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74519         condition was already detected.
74520         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74521
74522 2006-04-23  Bruno Haible  <bruno@clisp.org>
74523
74524         * lib/copy-file.c: Include <unistd.h> unconditionally.
74525         * lib/execute.c: Likewise.
74526         * lib/fatal-signal.c: Likewise.
74527         * lib/findprog.c: Likewise.
74528         * lib/mkdtemp.c: Likewise.
74529         * lib/pipe.h: Likewise.
74530         * lib/pipe.c: Likewise.
74531         * lib/wait-process.h: Likewise.
74532
74533 2006-04-23  Bruno Haible  <bruno@clisp.org>
74534
74535         * gnulib-tool (func_usage): Fix --import description. Document
74536         --update.
74537         (func_import): Create temporary file in a temporary directory, if
74538         --dry-run is specified. Silence errors from 'grep' when there are no
74539         m4 files in $m4dir.
74540         (func_create_testdir): Silence errors from 'grep' when there are no
74541         m4 files in $m4dir.
74542         Reported by Karl Berry <karl@freefriends.org>.
74543
74544 2006-04-20  Bruno Haible  <bruno@clisp.org>
74545
74546         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74547         one argument, so that the code will be portable to Autoconf 2.60.
74548         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74549         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74550         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74551
74552 2006-04-19  Derek Price  <derek@ximbiot.com>
74553             Eric Blake  <ebb9@byu.net>
74554
74555         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74556         rather than "/full/path.h".  Update comment to match.  Shorten &
74557         generalize m4_translit call via AS_TR_CPP.
74558
74559 2006-04-19  Derek Price  <derek@ximbiot.com>
74560             Eric Blake  <ebb9@byu.net>
74561
74562         * lib/inttypes.h: Correct grammar in comment.
74563
74564 2006-04-18  Derek Price  <derek@ximbiot.com>
74565             Paul Eggert  <eggert@cs.ucla.edu>
74566
74567         * modules/inttypes: New file.
74568         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74569
74570 2006-04-18  Derek Price  <derek@ximbiot.com>
74571             Paul Eggert  <eggert@cs.ucla.edu>
74572
74573         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74574         New files.
74575
74576 2006-04-18  Derek Price  <derek@ximbiot.com>
74577             Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * lib/inttypes.h: New file.
74580         * lib/strtoimax.c: Assume <inttypes.h>.
74581
74582 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74583
74584         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74585         isn't mounted.  Problem reported by Kir Kolyshkin.
74586
74587 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74590         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74591         Derek R. Price.
74592         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74593         implementation.
74594
74595 2006-04-12  Eric Blake  <ebb9@byu.net>
74596
74597         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74598         is now done automatically by the corresponding Autoconf macro.
74599
74600 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74603         time_r.h.
74604
74605 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         Merge regex changes from libc, removing some of our
74608         POSIX-conformance changes that were rejected and redoing them in a
74609         less-intrusive way.
74610
74611         * lib/regcomp.c (re_compile_internal, init_dfa):
74612         Length arg is now size_t, not Idx.  All uses changed.
74613         (peek_token): Forward decl now says internal_function.
74614         (__re_error_msgid, __re_error_msgid_idx):
74615         Now static rather than extern with attribute_hidden.
74616         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74617         For some reason libc prefers K&R style defns for external functions.
74618         (regerror) [!defined _LIBC]: Likewise.
74619         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74620         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74621         (build_range_exp, build_collating_symbol):
74622         Use K&R-style defn.
74623         (re_compile_fastmap): Use '\0' to memset, not 0.
74624         (utf8_sb_map): Make the calculations more obvious.
74625         (init_dfa, parse_bracket_exp, build_charclass_op):
74626         Call calloc and cast result, as glibc does.
74627         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74628         (build_range_exp, build_collating_symbol):
74629         Now internal functions.
74630
74631         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74632
74633         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74634         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74635         Don't depend on VMS; depend on __VMS instead, for POSIX
74636         namespace cleanness.
74637         (regoff_t): Define to ssize_t, not long int.
74638
74639         Remove the REG_ macros named below.  Instead, make the old names
74640         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74641         __USE_GNU_REGEX.
74642         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74643         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74644         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74645         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74646         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74647         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74648         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74649         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74650         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74651         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74652         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74653         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74654         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74655         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74656         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74657         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74658         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74659         (REG_NREGS):
74660         Remove.  All uses replaced by the old RE_* names.
74661         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74662         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74663         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74664         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74665         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74666         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74667         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74668         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74669         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74670         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74671         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74672         Don't bother having these macros be independent of each others'
74673         values, since they no longer exist in the POSIX name space.
74674
74675         Rename the following member names back to their old names,
74676         unless !__USE_GNU_REGEX.  All uses changed back.
74677         (buffer): Renamed from re_buffer.
74678         (allocated): Renamed from re_allocated.
74679         (used): Renamed from re_used.
74680         (syntax): Renamed from re_syntax.
74681         (fastmap): Renamed from re_fastmap.
74682         (translate): Renamed from re_translate.
74683         (can_be_null): Renamed from re_can_be_null.
74684         (regs_allocated): Renamed from re_regs_allocated.
74685         (fastmap_accurate): Renamed from re_fastmap_accurate.
74686         (no_sub): Renamed from re_no_sub.
74687         (not_bol): Renamed from re_not_bol.
74688         (not_eol): Renamed from re_not_eol.
74689         (newline_anchor): Renamed from re_newline_anchor.
74690         (num_regs): Renamed from rm_num_regs.
74691         (start): Renamed from rm_start.
74692         (end): Renamed from rm_end.
74693
74694         (free_state): Move up a bit.
74695
74696         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74697         #define to be empty.
74698         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74699         when that is what is intended.
74700         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74701         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74702         (MAX): New macro.
74703         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74704         All uses changed back to re_malloc, etc.  It's now the caller's
74705         responsibility to check for overflow; all callers changed.
74706         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74707         (re_x2nrealloc): Remove.
74708         (free_state): Remove decl.
74709
74710         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74711         (re_set_registers, re_exec):
74712         Use K&R-style defn.
74713
74714         2006-01-31  Roland McGrath  <roland@redhat.com>
74715
74716         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74717         Reported by Mike Frysinger <vapier@gentoo.org>.
74718
74719         2006-01-15  Andreas Jaeger  <aj@suse.de>
74720
74721         [BZ #1950]
74722         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74723         build_wcs_upper_buffer change.
74724         (build_wcs_upper_buffer): Change return type.
74725
74726         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74727
74728         * lib/regex_internal.h: Include <stdint.h> if available.
74729
74730         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74731
74732         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74733
74734         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74735
74736         * lib/regcomp.c: Adjust for changed secondary hash function.
74737
74738         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74739
74740         * lib/regex.h: Pretty printing.
74741         Clean up namespace a bit.
74742
74743         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74744
74745         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74746         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74747
74748         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74749                     Ulrich Drepper  <drepper@redhat.com>
74750
74751         [BZ #1302]
74752         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74753         changed.
74754         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74755
74756         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74757
74758         [BZ #281]
74759         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74760         * lib/regcomp.c: Remove unnecessary uses of
74761         unsigned RE_TRANSLATE_TYPE.
74762         * lib/regex_internal.h: Likewise.
74763         * lib/regex_internal.c: Likewise.
74764         * lib/regexec.c: Likewise.
74765         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74766
74767         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74768
74769         * lib/regexec.c (find_recover_state): Remove unnecessary
74770         initialization.
74771         (transit_state_bkref): Make DFA a const pointer.
74772         (get_subexp): Likewise.
74773         (check_arrival): Likewise.
74774         (update_cur_sifted_state): Likewise.
74775         (re_search_internal): Likewise.
74776         (prune_impossible_nodes): Likewise.
74777         (acquire_init_state_context): Likewise.
74778         (proceed_next_node): Likewise.
74779         (set_regs): Likewise.
74780         (free_fail_stack_return): Likewise.
74781         (check_arrival_expand_ecl): Mark DFA parameter as const.
74782         (check_arrival_expand_ecl_sub): Likewise.
74783         (check_subexp_limits): Likewise.
74784         (sub_epsilon_src_nodes):  Likewise.
74785         (add_epsilon_src_nodes):  Likewise.
74786         (merge_state_array): Likewise.
74787         (update_regs): Likewise.
74788         (build_trtable): Likewise.
74789         (sift_states_backward): Mark MCTX parameter as const.
74790         (build_sifted_states): Likewise.
74791         (update_cur_sifted_state): Likewise.
74792         (sift_states_mkref): Likewise.
74793         (check_arrival_expand_ecl): Mark eclosure as const.
74794         (check_dst_limits_calc_pos_1): Likewise.
74795         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74796         pointer.
74797
74798         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74799
74800         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74801         (transit_state_sb): Likewise.
74802         (transit_state_mb): Likewise.
74803         (sift_states_iter_mb): Likewise.
74804         (check_arrival_add_next_nodes): Likewise.
74805         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74806         [_LIBC] (re_search_2_stub): Use mempcpy.
74807
74808         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74809         mbrtowc for very simple UTF-8 case.
74810
74811         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74812         a pointer-to-const.
74813         (re_acquire_state_context): Likewise.
74814         * lib/regex_internal.h: Adjust prototypes.
74815
74816         * lib/regex.c: Prevent using C++ compilers.
74817
74818         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74819         (re_acquire_state_context): Likewise.
74820
74821 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * modules/regex (Depends-on): Add ssize_t.
74824
74825 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74828         translation table.
74829
74830 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74831
74832         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74833
74834 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74835             Bruno Haible  <bruno@clisp.org>
74836
74837         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74838         <sys/types.h> and <inttypes.h>.
74839
74840 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74841
74842         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74843         `__error_t_defined', so argp.h will not typedef the former.
74844
74845 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74846
74847         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74848         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74849         glibc names.  Even if glibc is changed to conform to POSIX, the
74850         traditional names will be available anyway, since regex depends on
74851         the extensions module.  Also, fix a longstanding typo in the
74852         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74853         reported by Emanuele Giaquinta.  Also, change sense of cached
74854         variable, so that the message makes sense.
74855
74856 2006-03-24  Simon Josefsson  <jas@extundo.com>
74857
74858         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74859         including some doc fixes.
74860         (base64_encode_alloc): Fix +1 bug on allocation failures.
74861
74862 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74863
74864         * lib/base64.c (base64_encode): Do not read past end of array with
74865         unsanitized input on systems with CHAR_BIT > 8.
74866
74867 2006-03-24  Eric Blake  <ebb9@byu.net>
74868
74869         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74870
74871 2006-03-22  Karl Berry  <karl@gnu.org>
74872
74873         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74874         * config/srclistvars.sh (COREUTILS): new var.
74875
74876 2006-03-17  Jim Meyering  <jim@meyering.net>
74877
74878         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74879         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74880
74881 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74884         no longer needs it.  Instead, check that regoff_t is as least
74885         as wide as ptrdiff_t.
74886
74887         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74888         so that our regex.h stays compatible with the installed regex.
74889         This is helpful for installers who configure --without-included-regex.
74890         Problem reported by Emanuele Giaquinta.
74891
74892 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74895         Typedef to long int, not to off_, as POSIX will likely change
74896         in that direction.
74897
74898 2006-03-15  Eric Blake  <ebb9@byu.net>
74899
74900         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74901
74902 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74903
74904         * lib/argp-help.c (validate_uparams): Fix typo
74905         * lib/argp-parse.c (argp_default_options): Consistently begin help
74906         messages with a lowercase letter.
74907
74908 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74911         overrun buffers and shouldn't be used (much as gets shouldn't be
74912         used).
74913         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74914
74915 2006-03-08  Simon Josefsson  <jas@extundo.com>
74916
74917         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74918         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74919
74920 2006-03-08  Simon Josefsson  <jas@extundo.com>
74921
74922         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74923         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74924
74925 2006-03-08  Simon Josefsson  <jas@extundo.com>
74926
74927         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74928         signal that configure disabled the device.
74929
74930 2006-03-08  Simon Josefsson  <jas@extundo.com>
74931
74932         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74933         languages.
74934
74935 2006-03-07  Simon Josefsson  <jas@extundo.com>
74936
74937         * modules/getopt (Depends-on): Add unistd.
74938
74939         * modules/unistd: New file.
74940
74941 2006-03-07  Simon Josefsson  <jas@extundo.com>
74942
74943         * modules/gc-random: New file.
74944
74945 2006-03-07  Simon Josefsson  <jas@extundo.com>
74946
74947         * m4/unistd_h.m4: New file.
74948
74949 2006-03-07  Simon Josefsson  <jas@extundo.com>
74950
74951         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74952         test to be side-effect free by storing the result in the cache
74953         variable gl_cv_lib_readline, and moving the assignment of
74954         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74955         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74956
74957 2006-03-07  Simon Josefsson  <jas@extundo.com>
74958
74959         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74960         error on missing devices (the functions will return an error).
74961
74962         * m4/gc.m4: Move random stuff to gc-random.m4
74963
74964 2006-03-07  Simon Josefsson  <jas@extundo.com>
74965
74966         * lib/unistd_.h: New file.
74967
74968 2006-03-07  Simon Josefsson  <jas@extundo.com>
74969
74970         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74971
74972 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74973
74974         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74975         Problem reported by Juan Manuel Guerrero.
74976
74977 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74978
74979         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74980         the unistd module.
74981         * lib/getlogin_r.c: Likewise.
74982         * lib/getlogin_r.h: Likewise.
74983         * lib/glob.c: Likewise.
74984         * lib/pagealign_alloc.c: Likewise.
74985         * lib/unistd_.h: Remove; no longer needed.
74986
74987 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74988
74989         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74990         Add unistd.
74991         * modules/c-stack (Depends-on): Add unistd.
74992         * modules/getlogin_r: Likewise.
74993         * modules/glob: Likewise.
74994         * modules/pagealign_alloc: Likewise.
74995         * modules/unistd (Files): Remove lib/unistd_.h.
74996         (EXTRA_DIST): Remove.
74997         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74998         need unistd_.h.
74999         (MOSTLYCLEANFILES): Remove unistd.h-t.
75000
75001 2006-03-03  Simon Josefsson  <jas@extundo.com>
75002
75003         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
75004
75005 2006-03-03  Simon Josefsson  <jas@extundo.com>
75006
75007         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
75008         libidn and bison.
75009
75010 2006-03-03  Simon Josefsson  <jas@extundo.com>
75011
75012         * build-aux/maint.mk: Add indent target.
75013
75014 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
75015
75016         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
75017         our replacement poll.h in any case, to avoid a differing
75018         declaration from a system header.  Seen on AIX.
75019
75020 2006-03-01  Simon Josefsson  <jas@extundo.com>
75021
75022         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
75023         <kasal@ucw.cz>.
75024
75025 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * modules/gettime (Depends-on): Add extensions module.
75028         * modules/nanosleep (Depends-on): Likewise.
75029         * modules/settime (Depends-on): Likewise.
75030
75031 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
75032
75033         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
75034         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
75035         pedantically.
75036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75037         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
75038
75039         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
75040         not "==".  Reported by Ralf Wildenhues.
75041
75042 2006-03-01  Karl Berry  <karl@gnu.org>
75043
75044         * doc/Copyright/request-*: new files, synced from gnuorg.
75045
75046 2006-03-01  Karl Berry  <karl@gnu.org>
75047
75048         * config/srclist.txt (Copyright/*): new entries.
75049
75050 2006-02-28  Simon Josefsson  <jas@extundo.com>
75051
75052         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
75053
75054 2006-02-27  Simon Josefsson  <jas@extundo.com>
75055
75056         * lib/base64.h: Indent #define's.  From Jim Meyering
75057         <jim@meyering.net>.
75058
75059 2006-02-27  Jim Meyering  <jim@meyering.net>
75060
75061         Revert the change of 2006-02-24, so these files can continue
75062         to be sync'd from gettext.
75063         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
75064         of `config.h'.
75065
75066 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
75067
75068         * modules/intprops: New file.
75069         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75070         Add intprops.
75071         * modules/getloadavg (Files): Remove lib/intprops.h.
75072         (Depends-on): Add intprops.
75073         * modules/human: Likewise.
75074         * modules/inttostr: Likewise.
75075         * modules/openat: Likewise.
75076         * modules/sig2str: Likewise.
75077         * modules/userspec: Likewise.
75078         * modules/utimecmp: Likewise.
75079         * modules/xnanosleep: Likewise.
75080         * modules/xstrtol: Likewise.
75081
75082 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
75083
75084         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
75085         * modules/lock-tests (TESTS): Use $(EXEEXT).
75086         * modules/tls-tests: Likewise.
75087         * modules/argp-tests: Likewise.
75088         (check_PROGRAMS): New var, replacing...
75089         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
75090
75091 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75092
75093         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
75094         `config.h'.
75095
75096 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
75097
75098         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
75099
75100 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75101
75102         Sync from coreutils.
75103         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
75104         gl_CHDIR_SAFER.
75105
75106 2006-02-22  Jim Meyering  <jim@meyering.net>
75107
75108         Sync from coreutils.
75109         * m4/chdir-safer.m4: New file.
75110
75111 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
75112
75113         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
75114         AT_FDCWD exceeds INT_MAX.
75115         * lib/openat.h (AT_FDCWD): Likewise.
75116
75117 2006-02-17  Eric Blake  <address@hidden>
75118
75119         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
75120
75121 2006-02-16  Simon Josefsson  <jas@extundo.com>
75122
75123         * modules/getaddrinfo (Depends-on): Add sys_socket.
75124
75125 2006-02-15  Simon Josefsson  <jas@extundo.com>
75126
75127         * build-aux/maint.mk: Add dsyntax-check rule.
75128
75129 2006-02-15  Eric Blake  <ebb9@byu.net>
75130
75131         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
75132         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
75133         'present but cannot compile' warnings on cygwin.
75134         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
75135         use ws2tcpip.h if sys/socket.h works.
75136         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
75137         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
75138
75139 2006-02-14  Simon Josefsson  <jas@extundo.com>
75140
75141         * modules/maintainer-makefile (Files): Rename.
75142
75143         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
75144         and (the local) Makefile.cfg to maint-cfg.mk.
75145
75146         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
75147         to the latter.
75148
75149         * modules/maintainer-makefile: New module.
75150
75151         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
75152         severaly stripped to make it possible to build it up from scratch
75153         with reliable tests.
75154
75155         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
75156         fixes to permit overriding the default actions when configure and
75157         makefile are not available.
75158
75159 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
75160
75161         Sync from coreutils.
75162         * modules/lstat (Depends-on): Don't depend on xalloc.
75163         (License): Change from GPL to LGPL, since this is now simply a
75164         replacement for a libc function.
75165
75166 2006-02-14  Jim Meyering  <jim@meyering.net>
75167
75168         Sync from coreutils.
75169
75170         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75171         failure on deficient systems, and simplify gnulib lgpl dependencies.
75172         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75173         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75174
75175         * lib/xalloc-die.c: Remove unused definition of N_.
75176
75177 2006-02-14  Jim Meyering  <jim@meyering.net>
75178
75179         Sync from coreutils.
75180         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75181         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75182         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75183         double-quote uses of that variable, to accommodate the rare case in
75184         which getmntent is available in none of the libraries checked.  This
75185         happens at least on FreeBSD 5.0.
75186
75187 2006-02-13  Simon Josefsson  <jas@extundo.com>
75188
75189         * gnulib-tool (Usage): Fix --import, from
75190         karl@freefriends.org (Karl Berry).
75191
75192 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75193
75194         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75195
75196 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75197
75198         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75199         "autoupdate" on 2005-12-12.
75200
75201 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75202
75203         * modules/closeout (Depends-on): Remove atexit.
75204
75205 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75208         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75209
75210 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75211
75212         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75213         __EXTENSIONS__ if this causes compilation to fail.  Problem
75214         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75215         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75216
75217 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75218
75219         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75220         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75221         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75222         All uses changed.
75223
75224 2006-01-26  Simon Josefsson  <jas@extundo.com>
75225
75226         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75227         prototype is visible on mingw32.
75228
75229         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75230         for mingw32.
75231
75232         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75233         mingw32).
75234
75235 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75236
75237         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75238         attempt to open for write; this always fails, at least on POSIX
75239         hosts.  This reinstates the 2006-01-09 change, which was
75240         inadvertently removed.
75241
75242 2006-01-26  Bruno Haible  <bruno@clisp.org>
75243
75244         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75245         Reported by Paul Eggert.
75246
75247 2006-01-26  Bruno Haible  <bruno@clisp.org>
75248             Paul Eggert  <eggert@cs.ucla.edu>
75249
75250         * lib/stdbool_.h (_Bool)
75251         [(! (defined __cplusplus || defined __BEOS__)
75252           && !defined __GNUC__
75253           && !(defined __HP_cc || defined __xlc__
75254                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75255                || defined __sgi))]:
75256         #define to signed char in these cases too; this simplifies
75257         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75258         etc., separately) and makes it more conservative.
75259
75260 2006-01-25  Simon Josefsson  <jas@extundo.com>
75261
75262         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75263         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75264         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75265
75266 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75267
75268         * lib/argp-namefrob.h: Bugfix. Remove stray #
75269
75270 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75271
75272         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75273         so that we test the test.
75274         Check for yet another HP-UX cc bug involving *bool |= bool.
75275
75276 2006-01-25  Karl Berry  <karl@gnu.org>
75277
75278         * config/srclist.txt (vasnprintf.c): sync lost.
75279
75280 2006-01-25  Jim Meyering  <jim@meyering.net>
75281
75282         Sync from the stable (b5) branch of coreutils:
75283
75284         * lib/fts.c (fts_children): Don't let close() clobber errno from
75285         failed fchdir().
75286
75287         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75288         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75289         a dangling symlink.  That can also happen at least for ELOOP.
75290         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75291         FYI, this bug predates the inclusion of fts.c in coreutils.
75292
75293         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75294         in their own block, so pre-c99 compilers don't object.
75295
75296         Avoid the double-free (first in fts_read, second in fts_close) that
75297         would occur when an `active' directory is made inaccessible (e.g.,
75298         via chmod a-x) during a traversal.
75299         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75300         before returning.  Reproduce this failure by
75301         mkdir -p a/b; cd a; chmod a-x . b
75302         Reported by Stavros Passas.
75303
75304 2006-01-25  Jim Meyering  <jim@meyering.net>
75305
75306         * lib/fileblocks.c: Remove more useless parentheses.
75307         * lib/readutmp.h: Likewise.
75308
75309 2006-01-25  Bruno Haible  <bruno@clisp.org>
75310
75311         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75312         warnings.
75313         Reported by Paul Eggert.
75314
75315 2006-01-25  Bruno Haible  <bruno@clisp.org>
75316
75317         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75318         rid of a trap command. For Solaris sh.
75319         Reported by Mark D. Baushke <mdb@gnu.org>.
75320
75321 2006-01-24  Simon Josefsson  <jas@extundo.com>
75322
75323         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75324         Bruno.
75325
75326 2006-01-24  Karl Berry  <karl@gnu.org>
75327
75328         * config/srclist.txt (argp-namefrob.h): sync lost.
75329
75330 2006-01-24  Jim Meyering  <jim@meyering.net>
75331
75332         * modules/openat (Files): Add lib/intprops.h.
75333         From Mark D. Baushke.
75334
75335 2006-01-24  Jim Meyering  <jim@meyering.net>
75336
75337         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75338         Reported by Mark D. Baushke.
75339
75340 2006-01-24  Jim Meyering  <jim@meyering.net>
75341
75342         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75343
75344 2006-01-24  Bruno Haible  <bruno@clisp.org>
75345
75346         * modules/strnlen (Maintainer): Change from glibc to all.
75347
75348 2006-01-24  Bruno Haible  <bruno@clisp.org>
75349
75350         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75351         Patch by Paul Eggert.
75352
75353 2006-01-24  Bruno Haible  <bruno@clisp.org>
75354
75355         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75356         already has it.
75357         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75358         2005-11-26.
75359
75360         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75361         'signed char' to avoid problems with the built-in _Bool type.
75362         Reported by Paul Eggert on 2005-11-26.
75363
75364 2006-01-24  Bruno Haible  <bruno@clisp.org>
75365
75366         * gnulib-tool (func_import): Avoid constructing complicated sed
75367         expressions inside backquote.
75368         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75369
75370 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75371
75372         These changes imported from libc.
75373         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75374         test and two separate function calls.
75375         * lib/strndup.c (__strndup): Add libc_hidden_def.
75376
75377 2006-01-23  Simon Josefsson  <jas@extundo.com>
75378
75379         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75380         Remove the test_*_SOURCES variable: automake infers it by default.
75381         * modules/tls-tests: Likewise.
75382
75383 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         Work around porting bugs reported by Dieter in
75386         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75387         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75388         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75389         Include "getopt.h" first, to check interface.
75390         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75391         !HAVE_DECL_GETENV.
75392         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75393         (__strndup): Revert to K&R-style function dfns, the glibc style.
75394         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75395         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75396         Include strnlen.h first, to get prototype properly.
75397         (strnlen): Renamed from __strnlen.
75398         Remove weak alias.
75399
75400 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75401
75402         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75403
75404 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75405
75406         * config/srclist.txt: Adjust to reflect glibc reorganization.
75407         This affects only comments.
75408
75409 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75410
75411          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75412          Reported by Bruce Korb <bkorb@gnu.org>.
75413
75414 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75417         to pacify gcc -Wswitch-default.
75418
75419 2006-01-22  Bruno Haible  <bruno@clisp.org>
75420
75421         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75422         temporary buffer for sprintf, take into account the precision also
75423         for 'd', 'i', 'u', 'o', 'x', 'X'.
75424
75425 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75426
75427         * modules/argp-tests: New module
75428         * tests/test-argp.c: New file
75429         * tests/test-argp-2.sh: New file
75430
75431 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75432
75433         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75434         (__argp_base_name): Removed
75435         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75436         typo.
75437         (__argp_base_name): Provide macro definition or extern declaration
75438         depending on the configuration
75439
75440 2006-01-20  Simon Josefsson  <jas@extundo.com>
75441
75442         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75443
75444 2006-01-20  Simon Josefsson  <jas@extundo.com>
75445
75446         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75447
75448 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75449
75450         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75451         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75452         Suggested by Bruno Haible.
75453
75454 2006-01-20  Karl Berry  <karl@gnu.org>
75455
75456         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75457         until changes propagate, I guess.
75458
75459 2006-01-19  Simon Josefsson  <jas@extundo.com>
75460
75461         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75462
75463 2006-01-19  Simon Josefsson  <jas@extundo.com>
75464
75465         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75466
75467 2006-01-19  Simon Josefsson  <jas@extundo.com>
75468
75469         * gnulib-tool: Set check_PROGRAMS.
75470
75471         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75472         modules/des-tests, modules/gc-arcfour-tests,
75473         modules/gc-arctwo-tests, modules/gc-des-tests,
75474         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75475         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75476         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75477         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75478         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75479         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75480         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75481         test_*_SOURCES.
75482
75483 2006-01-18  Simon Josefsson  <jas@extundo.com>
75484
75485         * modules/socklen (Depends-on): Depend on sys_socket.
75486
75487 2006-01-18  Simon Josefsson  <jas@extundo.com>
75488
75489         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75490         modules/des-tests, modules/gc-arcfour-tests,
75491         modules/gc-arctwo-tests, modules/gc-des-tests,
75492         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75493         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75494         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75495         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75496         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75497         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75498         $(EXEEXT) to automake TESTS variable, for mingw32.
75499
75500 2006-01-17  Simon Josefsson  <jas@extundo.com>
75501
75502         * modules/socklen (Include): Need sys/socket.h.
75503
75504 2006-01-17  Bruno Haible  <bruno@clisp.org>
75505
75506         * modules/ssize_t (Include): Add <sys/types.h>.
75507
75508 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75509
75510         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75511         it's not portable and it doesn't work with cross-compiles.
75512         Problem reported by Bruno Haible.  Fix missing-$ typo in
75513         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75514         -zignore from being used with Sun's C compiler.
75515
75516 2006-01-12  Simon Josefsson  <jas@extundo.com>
75517
75518         * lib/base64.c: Fix warning, reported by Bruno Haible
75519         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75520
75521 2006-01-12  Bruno Haible  <bruno@clisp.org>
75522
75523         * modules/ldd: New file.
75524         * build-aux/ldd.sh.in: New file.
75525         * MODULES.html.sh (Support for building libraries and executables): Add
75526         ldd.
75527
75528 2006-01-12  Bruno Haible  <bruno@clisp.org>
75529
75530         * m4/ldd.m4: New file.
75531
75532 2006-01-12  Bruno Haible  <bruno@clisp.org>
75533
75534         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75535         endless loop while replacing $auxdir with build-aux.
75536
75537 2006-01-11  Simon Josefsson  <jas@extundo.com>
75538
75539         * lib/stdint_.h (SIZE_MAX): Add missing (.
75540
75541 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         Sync from coreutils.
75544         * lib/md5.c: Fix commentary typos.
75545         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75546         * lib/md5.h (__attribute__): Remove; unused.
75547         * lib/sha1.c: Fix commentary to match md5 better.
75548         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75549         so that we don't need to worry about alignment.  All uses changed.
75550         This merges the 2005-10-28 md5 change into sha1.
75551
75552 2006-01-11  Jim Meyering  <jim@meyering.net>
75553
75554         Sync from coreutils.
75555         * lib/md5.c (OP): Fix spacing.
75556
75557 2006-01-11  Bruno Haible  <bruno@clisp.org>
75558
75559         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75560         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75561         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75562
75563 2006-01-11  Bruno Haible  <bruno@clisp.org>
75564
75565         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75566         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75567         the "early" section as well.
75568
75569 2006-01-11  Bruno Haible  <bruno@clisp.org>
75570
75571         Avoid "ar: no archive members specified" error on MacOS X.
75572         * gnulib-tool (func_modules_add_dummy): New function.
75573         (func_import, func_create_testdir): Invoke it.
75574
75575 2006-01-11  Bruno Haible  <bruno@clisp.org>
75576
75577         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75578         with $auxdir in AC_CONFIG_FILES statements.
75579
75580 2006-01-11  Bruno Haible  <bruno@clisp.org>
75581
75582         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75583         Initialize also noinst_HEADERS to empty.
75584
75585 2006-01-11  Bruno Haible  <bruno@clisp.org>
75586
75587         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75588         variables.
75589         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75590         autoreconf.
75591
75592 2006-01-11  Bruno Haible  <bruno@clisp.org>
75593
75594         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75595         overridable by the user.
75596         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75597
75598 2006-01-10  Simon Josefsson  <jas@extundo.com>
75599
75600         * modules/sys_socket: New file.
75601
75602 2006-01-10  Simon Josefsson  <jas@extundo.com>
75603
75604         * m4/sys_socket_h.m4: New file.
75605
75606 2006-01-10  Simon Josefsson  <jas@extundo.com>
75607
75608         * lib/socket_.h: New file.
75609
75610 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         * modules/readutmp (Maintainer): Add myself.
75613
75614 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75617         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75618         People who are still concerned with buggy memcmp implementations
75619         can invoke gl_FUNC_MEMCMP themselves.
75620
75621 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75622
75623         * lib/regex_internal.h (BITSET_WORD_BITS):
75624         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75625         preprocessor mishandles large unsigned values as if they were signed.
75626         Problem reported by Claudio Fontana in
75627         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75628
75629 2006-01-10  Jim Meyering  <jim@meyering.net>
75630
75631         Avoid the double-free (first in fts_read, second in fts_close) that
75632         would occur when an `active' directory is made inaccessible (e.g.,
75633         via chmod a-x) during a traversal.
75634         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75635         before returning.  Reproduce this failure by
75636         mkdir -p a/b; cd a; chmod a-x . b
75637         Reported by Stavros Passas.
75638
75639         Sync from coreutils.
75640         * lib/sha1.c: Tweak grammar in a comment.
75641
75642 2006-01-10  Jim Meyering  <jim@meyering.net>
75643
75644         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75645         Patch by Joerg Sonnenberger.
75646
75647 2006-01-10  Bruno Haible  <bruno@clisp.org>
75648
75649         * modules/readutmp: Depend on module free.
75650         * modules/strtok_r: Depend on module restrict.
75651
75652 2006-01-10  Bruno Haible  <bruno@clisp.org>
75653
75654         * modules/gettext (configure.ac): Add an invocation of
75655         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75656
75657 2006-01-10  Bruno Haible  <bruno@clisp.org>
75658
75659         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75660         Reported by Werner Lemberg <wl@gnu.org>.
75661
75662 2006-01-10  Bruno Haible  <bruno@clisp.org>
75663
75664         * lib/localcharset.c: Update from GNU gettext.
75665
75666 2006-01-10  Bruno Haible  <bruno@clisp.org>
75667
75668         * lib/argp.h (__const): Remove macro. Use const instead.
75669         * lib/argp-fmtstream.h (__const): Likewise.
75670         * lib/glob_.h (__const): Remove macro.
75671         * lib/glob-libc.h: Use const instead of __const.
75672
75673 2006-01-10  Bruno Haible  <bruno@clisp.org>
75674
75675         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75676         variable.
75677         Needed to avoid an automake error regarding the 'gettext' module.
75678
75679 2006-01-09  Simon Josefsson  <jas@extundo.com>
75680
75681         * modules/inet_ntop (Depends-on): Add restrict.
75682
75683 2006-01-09  Simon Josefsson  <jas@extundo.com>
75684
75685         * modules/gc-rijndael-tests (License): Put under LGPL.
75686
75687         * modules/gc-des-tests (License): Likewise.
75688
75689         * modules/gc-arcfour-tests (License): Likewise.
75690
75691         * modules/gc-arctwo-tests (License): Likewise.
75692
75693         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75694
75695         * modules/gc-hmac-sha1-tests (Files): Likewise.
75696
75697         * modules/gc-hmac-md5-tests (License): Likewise.
75698
75699         * modules/gc-sha1-tests (License): Likewise.
75700
75701         * modules/gc-md5-tests (License): Likewise.
75702
75703         * modules/gc-md4-tests (License): Likewise.
75704
75705         * modules/gc-md2-tests (License): Likewise.
75706
75707         * modules/gc-tests (License): Likewise.
75708
75709         * modules/des-tests (License): Likewise.
75710
75711         * modules/md4-tests (License): Likewise.
75712
75713         * modules/md2-tests (License): Likewise.
75714
75715 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75716
75717         Sync from coreutils:
75718
75719         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75720         * modules/lib-ignore: New file.
75721         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75722         chdir-safer.m4, lchmod.m4.
75723         * modules/openat: Add mkdirat.c, openat-priv.h.
75724
75725 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         Sync from coreutils.
75728         * m4/lib-ignore.m4: New file.
75729         * m4/lchmod.m4: New file.
75730
75731 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75732
75733         Sync from coreutils.
75734         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75735         for write access: POSIX says that must fail.
75736         * lib/fts.c (diropen): Likewise.
75737         * lib/save-cwd.c (save_cwd): Likewise.
75738         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75739         well, for minor improvements on hosts that lack O_DIRECTORY.
75740         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75741         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75742         Fall back on chown if open failed with EACCES.
75743
75744         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75745         Report an error at compile-time if only a 1-second nominal clock
75746         resolution is found.
75747
75748         * lib/lchmod.h: New file.
75749         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75750         (make_dir_parents): Use lchown rather than chown, and
75751         lchmod rather than chmod.
75752
75753         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75754         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75755         "proc" reported by n0dalus.
75756
75757         * lib/mountlist.c: Include <limits.h>.
75758         (dev_from_mount_options)
75759         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75760         New function.  It no longer assumes "dev=" has the System V meaning
75761         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75762         (read_file_system_list)
75763         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75764         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75765         dev= in that case.
75766
75767         * lib/posixtm.h (PDS_PRE_2000): New macro.
75768         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75769         allow_century.  All usages changed.  Reject dates outside the range
75770         1969-1999 if PDS_PRE_2000 is used.
75771
75772 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         Sync from coreutils.
75775         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75776         (Time of day items): Mention the possibility of leap seconds.
75777         Problem reported by Dr. David Alan Gilbert.
75778
75779 2006-01-09  Jim Meyering  <jim@meyering.net>
75780
75781         Sync from coreutils.
75782
75783         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75784
75785         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75786
75787         * lib/modechange.c (mode_compile): Reject an invalid mode string
75788         that starts with an octal digit.  From Andreas Gruenbacher.
75789
75790         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75791         and dup to open_safer and dup_safer, respectively.
75792         (openat_permissive): Fix typo in comment.
75793
75794         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75795         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75796         (_): Remove; no longer needed.
75797         (openat): Renamed from rpl_openat; no need for rpl_openat
75798         since openat.h renames openat for us.
75799         Replace most of the body with a call to openat_permissive,
75800         to avoid duplicate code.
75801         Port to (probably hypothetical) environments were mode_t is
75802         wider than int.
75803         (openat_permissive): Require mode arg, so that we can check
75804         types better.  Put it just after flags.  Change cwd failure
75805         indicator from pointer-to-bool to pointer-to-errno-value.
75806         All callers changed.
75807         Invoke openat_save_fail and/or openat_restore_fail if
75808         cwd_errno is null, so that openat can call us.
75809         (openat_permissive, fdopendir, fstatat, unlinkat):
75810         Simplify errno handling to avoid some duplicate code,
75811         as it's OK to set errno on success.
75812         * lib/openat.h: Revamp code so that function macros depend on
75813         __OPENAT_PREFIX only, not also on AT_FDCWD.
75814         (openat_ro): Remove.  Caller changed to use openat_permissive.
75815         (openat_permissive): Now a macro, if not a function.
75816         (openat_restore_fail, openat_save_fail): Now always functions,
75817         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75818
75819         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75820         and openat.c.
75821         * lib/mkdirat.c: Include openat-priv.h.
75822         Remove definitions of macros defined therein.
75823         * lib/openat.c: Likewise.
75824
75825         * lib/mkdirat.c (mkdirat): New file and function.
75826         * lib/openat.h (mkdirat): Declare.
75827
75828         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75829
75830         * lib/openat.h (openat_permissive): Declare.
75831         (openat_ro): Define.
75832
75833         * lib/openat.c (EXPECTED_ERRNO): New macro.
75834         (openat_permissive): New function -- used in remove.c rewrite.
75835         (all functions): Set errno just before returning, only if there
75836         was an actual failure.
75837         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75838
75839         Emulate openat-family functions using Linux's procfs, if possible.
75840         Idea and some code based on Ulrich Drepper's glibc changes.
75841
75842         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75843         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75844         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75845         before falling back on save_cwd and restore_cwd.
75846         (fdopendir, fstatat, unlinkat): Likewise.
75847
75848         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75849         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75850
75851         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75852         as second argument to va_arg.  Otherwise, some versions of gcc
75853         warn that `if this code is reached, the program will abort'.
75854
75855 2006-01-09  Jim Meyering  <jim@meyering.net>
75856
75857         Sync from coreutils.
75858         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75859         Require openat-priv.h.
75860
75861 2006-01-09  Bruno Haible  <bruno@clisp.org>
75862
75863         * modules/strnlen (Include): Use strnlen.h.
75864
75865 2006-01-09  Bruno Haible  <bruno@clisp.org>
75866
75867         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75868
75869 2006-01-09  Bruno Haible  <bruno@clisp.org>
75870
75871         * lib/sysexit_.h (EX_OK): New macro.
75872         Suggested by Martin Lambers <marlam@marlam.de>.
75873
75874 2006-01-09  Bruno Haible  <bruno@clisp.org>
75875
75876         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75877         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75878
75879 2006-01-09  Bruno Haible  <bruno@clisp.org>
75880
75881         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75882         numbers.
75883
75884 2006-01-09  Bruno Haible  <bruno@clisp.org>
75885
75886         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75887         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75888         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75889         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75890
75891 2006-01-09  Bruno Haible  <bruno@clisp.org>
75892
75893         * build-aux/javacomp.sh.in: New file, moved from lib/.
75894         * modules/javacomp-script (Files): Update.
75895         (configure.ac): Add AC_CONFIG_FILES invocation.
75896         (EXTRA_DIST): Remove variable.
75897
75898         * build-aux/javaexec.sh.in: New file, moved from lib/.
75899         * modules/javaexec (Files): Update.
75900         (configure.ac): Add AC_CONFIG_FILES invocation.
75901         (EXTRA_DIST): Remove javaexec.sh.in.
75902
75903         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75904         * modules/csharpcomp-script (Files): Update.
75905         (configure.ac): Add AC_CONFIG_FILES invocation.
75906         (EXTRA_DIST): Remove variable.
75907
75908         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75909         * modules/csharpexec (Files): Update.
75910         (configure.ac): Add AC_CONFIG_FILES invocation.
75911         (EXTRA_DIST): Remove csharpexec.sh.in.
75912
75913 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75914
75915         Sync from coreutils.
75916
75917         Add POSIX ACL support
75918         * lib/acl.h (copy_acl, set_acl): Add declarations.
75919         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75920         systems other than Linux.
75921         (chmod_or_fchmod): New function: use fchmod when possible,
75922         and chmod otherwise.
75923         (file_has_acl): Add a POSIX ACL implementation, with a
75924         Linux-specific subcase.
75925         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75926         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75927         acls are unsupported.
75928         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75929         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75930         are unsupported.
75931
75932 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75933
75934         Sync from coreutils.
75935         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75936
75937 2006-01-07  Bruno Haible  <bruno@clisp.org>
75938
75939         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75940         gl_EARLY.
75941
75942 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75943
75944         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75945         Problem reported for Mingw by Mark Junker.
75946
75947 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75948
75949         * README: Gnulib normally doesn't generate a tarball.
75950
75951 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75952
75953         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75954         long int, not int, for nanosecond counts, so that people who are
75955         used to POSIX struct timespec won't be surprised.  Reported by Jim
75956         Meyering.
75957
75958 2005-12-28  Bruno Haible  <bruno@clisp.org>
75959
75960         * build-aux/config.rpath: Update from GNU gettext.
75961
75962 2005-12-16  Jim Meyering  <jim@meyering.net>
75963
75964         * modules/fprintftime: New module.
75965         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75966
75967 2005-12-16  Jim Meyering  <jim@meyering.net>
75968
75969         * m4/fprintftime.m4: New file.
75970
75971 2005-12-16  Jim Meyering  <jim@meyering.net>
75972
75973         * lib/fprintftime.c, lib/fprintftime.h: New files.
75974
75975 2005-12-15  Simon Josefsson  <jas@extundo.com>
75976
75977         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75978         new m4/socklen.m4.
75979
75980 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75981
75982         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75983         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75984
75985 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75986
75987         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75988         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75989         struct uparams is valid. Fall back to the default values if it is
75990         not.
75991
75992 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75993
75994         * modules/argp (Files): Add argp-pin.c
75995         (Depends-on): dirname
75996         (lib_SOURCES): Add argp-pin.c
75997
75998 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75999
76000         * m4/argp.m4:  Check if program_invocation_name and
76001         program_invocation_short_name are declared and define appropriate
76002         macros if they are not.
76003
76004 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76005
76006         * lib/argp-help.c (__argp_base_name): New function
76007         (__argp_short_program_name): Rewrite using __argp_base_name
76008         * lib/argp-namefrob.h: Define program_invocation_name and
76009         program_invocation_short_name if requested
76010         (__argp_base_name): Add prototype
76011         * lib/argp-parse.c (argp_def): Use gettext wrappers
76012         (argp_default_parser): Use __argp_base_name
76013         * lib/argp-pin.c: New file. Defines program_invocation_name and
76014         program_invocation_short_name on systems that lack them.
76015
76016 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76017
76018         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
76019         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76020         porting problem reported by Georg Schwarz in
76021         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76022
76023 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
76024
76025         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
76026         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
76027         porting problem reported by Georg Schwarz in
76028         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
76029
76030 2005-12-05  Bruno Haible  <bruno@clisp.org>
76031
76032         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
76033         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
76034         Reported by Mark Junker <mjscod@gmx.de>.
76035
76036 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
76037
76038         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
76039         Use implementation from Albert Chin, with some
76040         comments/corrections by Stepan Kasal and myself.
76041
76042 2005-12-02  Bruno Haible  <bruno@clisp.org>
76043
76044         * gnulib-tool (func_import): Accept GPLed build tool modules when
76045         --lgpl is given.
76046         * modules/csharpcomp-script: New file.
76047         * modules/csharpcomp: Depend on it.
76048         * modules/javacomp-script: New file.
76049         * modules/javacomp: Depend on it.
76050         Suggested by Simon Josefsson.
76051
76052 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
76053
76054         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
76055         statement, to work around an HP-UX 10.20 compiler bug reported by
76056         Peter O'Gorman.
76057
76058 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76059
76060         * modules/savedir (Depends-on): Add openat.
76061
76062 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
76063
76064         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
76065         (uintmax_t) [defined uintmax_t]: Do not declare.
76066         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
76067         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
76068         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
76069         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
76070         sake of portability to weird hosts that C allows (though we don't
76071         know of any practical examples).
76072
76073         * lib/savedir.h (fdsavedir): New decl.
76074         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
76075         contains most of the former guts of savedir.
76076         (savedir): Use savedirstream.
76077         Include "openat.h".
76078
76079 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
76080
76081         * modules/obstack (Files): Add m4/ulonglong.m4.
76082         Problem reported by Davide Angelocola.
76083
76084 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
76085
76086         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
76087         coreutils no longer futzes with rounding modes.
76088
76089 2005-11-14  Jim Meyering  <jim@meyering.net>
76090
76091         * lib/mkstemp-safer.c: Include <config.h>, required for possible
76092         replacement of mkstemp.
76093
76094 2005-11-10  Simon Josefsson  <jas@extundo.com>
76095
76096         * lib/readline.c: Remove EOL.
76097
76098 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76099
76100         * modules/gethrxtime (Depends-on): Add gettime.
76101
76102 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
76105         or gettimeofday; no longer needed.
76106
76107 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
76108
76109         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
76110         time business.
76111         (gethrxtime) [! (HAVE_NANOUPTIME
76112         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
76113         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
76114         our own approximation.
76115
76116 2005-11-08  Eric Blake  <ebb9@byu.net>
76117
76118         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76119
76120 2005-11-08  Eric Blake  <ebb9@byu.net>
76121
76122         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
76123
76124 2005-11-04  Bruno Haible  <bruno@clisp.org>
76125
76126         * gnulib-tool: Implement --update mode.
76127
76128 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76129
76130         Fix porting problem reported by Theodoros V. Kalamatianos.
76131         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
76132         Don't assume that futimes failing means we must fail.
76133
76134 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
76135
76136         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
76137         variables to suggest the intended function of the PATH_MAX check.
76138
76139 2005-10-30  Kean Johnston  <jkj@sco.com>
76140
76141         Trivial changes to support SCO systems.
76142         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
76143         as PATH_MAX.
76144         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
76145         where __ptr is null when no I/O is pending.
76146
76147 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
76148
76149         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
76150         leave errno alone.  Problem reported by Dmitry V. Levin.
76151
76152 2005-10-28  Simon Josefsson  <jas@extundo.com>
76153
76154         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
76155         Test more.
76156
76157         * tests/test-gc-md2.c, tests/test-md2.c: New files.
76158
76159         * modules/md2, modules/md2-tests: New files.
76160
76161 2005-10-28  Simon Josefsson  <jas@extundo.com>
76162
76163         * m4/inet_ntop.m4: More tests.
76164
76165         * m4/gc-md2.m4, md2.m4: New file.
76166
76167 2005-10-28  Simon Josefsson  <jas@extundo.com>
76168
76169         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76170         "restrict" keywords, as per POSIX.  Protect the function
76171         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76172         Don't use K&R prototypes.  Check the sprintf return values.
76173         Re-define EAFNOSUPPORT if not present.  Indent.
76174
76175         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76176         suggested by Bruno Haible <bruno@clisp.org>.
76177
76178         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76179
76180         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76181
76182         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76183         libgcrypt).
76184
76185         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76186
76187         * lib/md2.h, lib/md2.c: New files.
76188
76189 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76192         errno alone.  Problem reported by Frederic Jolliton.
76193
76194 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76195
76196         * modules/verify (License): Change from GPL to LGPL.  This is a
76197         tiny module and there are apparently near-equivalents that are
76198         under the BSD license.
76199
76200 2005-10-24  Simon Josefsson  <jas@extundo.com>
76201
76202         * modules/sha1: Relicense to LGPL.
76203
76204 2005-10-24  Simon Josefsson  <jas@extundo.com>
76205
76206         * lib/md4.h: Shrink buffer size, now that we changed the type.
76207
76208 2005-10-23  Simon Josefsson  <jas@extundo.com>
76209
76210         * gnulib-tool (func_import): Fix --tests-base.
76211
76212 2005-10-22  Simon Josefsson  <jas@extundo.com>
76213
76214         * modules/arcfour (Depends-on): Need stdint.
76215
76216 2005-10-22  Simon Josefsson  <jas@extundo.com>
76217
76218         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76219         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76220
76221 2005-10-22  Simon Josefsson  <jas@extundo.com>
76222
76223         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76224         suggested by Bruno Haible <bruno@clisp.org>.
76225
76226 2005-10-22  Simon Josefsson  <jas@extundo.com>
76227
76228         * lib/crc.h: Include stddef.h, for size_t.
76229
76230 2005-10-22  Simon Josefsson  <jas@extundo.com>
76231
76232         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76233         arcfour_context struct (simplify test vector testing in GNU
76234         Shishi).
76235
76236 2005-10-21  Simon Josefsson  <jas@extundo.com>
76237
76238         * modules/des, modules/des-tests: New files.
76239
76240         * modules/gc-des, modules/gc-des-tests: New files.
76241
76242         * tests/test-des.c, tests/test-gc-des.c: New file.
76243
76244 2005-10-21  Simon Josefsson  <jas@extundo.com>
76245
76246         * modules/arctwo, modules/arctwo-tests: New files.
76247
76248         * tests/test-arctwo.c: New file.
76249
76250         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76251
76252         * tests/test-gc-arctwo.c: New file.
76253
76254 2005-10-21  Simon Josefsson  <jas@extundo.com>
76255
76256         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76257         Bruno Haible <bruno@clisp.org>.
76258
76259         * m4/gc-des.m4: New file.
76260
76261 2005-10-21  Simon Josefsson  <jas@extundo.com>
76262
76263         * m4/arctwo.m4: New file.
76264
76265         * m4/gc-arctwo.m4: New file.
76266
76267 2005-10-21  Simon Josefsson  <jas@extundo.com>
76268
76269         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76270         block.
76271
76272 2005-10-21  Simon Josefsson  <jas@extundo.com>
76273
76274         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76275         <bruno@clisp.org>.
76276
76277         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76278
76279         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76280         Bruno Haible <bruno@clisp.org>.
76281
76282         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76283         <bruno@clisp.org>.
76284
76285 2005-10-21  Simon Josefsson  <jas@extundo.com>
76286
76287         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76288
76289 2005-10-21  Simon Josefsson  <jas@extundo.com>
76290
76291         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76292
76293 2005-10-21  Simon Josefsson  <jas@extundo.com>
76294
76295         * lib/des.h, lib/des.c: New files.
76296
76297         * lib/gc-gnulib.c: Support DES.c
76298
76299 2005-10-21  Simon Josefsson  <jas@extundo.com>
76300
76301         * lib/arctwo.h, lib/arctwo.c: New files.
76302
76303         * lib/gc-gnulib.c: Support ARCTWO.
76304
76305 2005-10-21  Simon Josefsson  <jas@extundo.com>
76306
76307         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76308         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76309
76310 2005-10-21  Simon Josefsson  <jas@extundo.com>
76311
76312         * gnulib-tool (func_import, func_create_testdir): Define automake
76313         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76314         Makefile.am snippet),
76315         suggested by Bruno Haible <bruno@clisp.org>.
76316
76317         * modules/gc (Makefile.am): Use it.
76318
76319 2005-10-21  Bruno Haible  <bruno@clisp.org>
76320
76321         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76322         patch.
76323
76324 2005-10-19  Simon Josefsson  <jas@extundo.com>
76325
76326         * tests/test-gc-rijndael.c: New file.
76327
76328         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76329
76330 2005-10-19  Simon Josefsson  <jas@extundo.com>
76331
76332         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76333         interface too.
76334
76335 2005-10-19  Simon Josefsson  <jas@extundo.com>
76336
76337         * tests/test-gc-arcfour.c: New file.
76338
76339         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76340
76341 2005-10-19  Simon Josefsson  <jas@extundo.com>
76342
76343         * modules/gc-md4, modules/gc-md4-tests: New file.
76344
76345         * tests/test-gc-md4.c: New file.
76346
76347 2005-10-19  Simon Josefsson  <jas@extundo.com>
76348
76349         * m4/gc-md4.m4: New file.
76350
76351 2005-10-19  Simon Josefsson  <jas@extundo.com>
76352
76353         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76354         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76355         <kasal@ucw.cz>.
76356
76357 2005-10-19  Simon Josefsson  <jas@extundo.com>
76358
76359         * m4/gc-arcfour.m4: New file.
76360
76361         * m4/gc-rijndael.m4: New file.
76362
76363 2005-10-19  Simon Josefsson  <jas@extundo.com>
76364
76365         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76366
76367 2005-10-19  Simon Josefsson  <jas@extundo.com>
76368
76369         * lib/gc-gnulib.c: Support ARCFOUR.
76370
76371 2005-10-19  Simon Josefsson  <jas@extundo.com>
76372
76373         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76374         support.
76375
76376         * lib/gc.h: Add ECB enum type.
76377
76378         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76379
76380 2005-10-18  Simon Josefsson  <jas@extundo.com>
76381
76382         * tests/test-md5.c: New file.
76383
76384         * modules/md5-tests: New file.
76385
76386 2005-10-18  Simon Josefsson  <jas@extundo.com>
76387
76388         * tests/test-md4.c: New file.
76389
76390         * modules/md4, modules/md4-tests: New files.
76391
76392 2005-10-18  Simon Josefsson  <jas@extundo.com>
76393
76394         * m4/md4.m4: New file.
76395
76396 2005-10-18  Simon Josefsson  <jas@extundo.com>
76397
76398         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76399
76400 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76401
76402         * gnulib-tool (func_create_testdir): Omit the second check whether
76403         BUILT_SOURCES in nonempty.
76404
76405 2005-10-17  Simon Josefsson  <jas@extundo.com>
76406
76407         * tests/test-rijndael.c: New file.
76408
76409 2005-10-17  Simon Josefsson  <jas@extundo.com>
76410
76411         * modules/sha1: Depend on stdint instead of md5.
76412
76413         * modules/md5: Depend on stdint, remove uint32_t.
76414
76415 2005-10-17  Simon Josefsson  <jas@extundo.com>
76416
76417         * modules/gc-sha1-tests: New file.
76418
76419         * tests/test-gc-sha1.c: New file.
76420
76421 2005-10-17  Simon Josefsson  <jas@extundo.com>
76422
76423         * m4/md5.m4: Remove call to uint32_t.m4.
76424
76425 2005-10-17  Simon Josefsson  <jas@extundo.com>
76426
76427         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76428
76429         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76430         md5.h.
76431
76432         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76433
76434         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76435
76436 2005-10-17  Simon Josefsson  <jas@extundo.com>
76437
76438         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76439
76440 2005-10-17  Simon Josefsson  <jas@extundo.com>
76441
76442         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76443
76444 2005-10-17  Simon Josefsson  <jas@extundo.com>
76445
76446         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76447
76448         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76449
76450 2005-10-17  Bruno Haible  <bruno@clisp.org>
76451
76452         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76453         that it can also be used in a test.
76454
76455 2005-10-16  Bruno Haible  <bruno@clisp.org>
76456
76457         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76458         TESTS_ENVIRONMENT, so that individual tests can augment it.
76459
76460         * gnulib-tool (func_create_testdir): Use an intermediate target for
76461         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76462         macros, like $(ALLOCA_H), which cannot be passed through the command
76463         line.
76464
76465 2005-10-15  Simon Josefsson  <jas@extundo.com>
76466
76467         * modules/rijndael-tests: New file.
76468
76469         * modules/rijndael: New file.
76470
76471 2005-10-15  Simon Josefsson  <jas@extundo.com>
76472
76473         * m4/rijndael.m4: New file.
76474
76475 2005-10-15  Simon Josefsson  <jas@extundo.com>
76476
76477         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76478
76479         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76480
76481 2005-10-14  Simon Josefsson  <jas@extundo.com>
76482
76483         * tests/test-arcfour.c: New file.
76484
76485         * modules/arcfour, modules/arcfour-tests: New files.
76486
76487 2005-10-14  Simon Josefsson  <jas@extundo.com>
76488
76489         * m4/arcfour.m4: New file.
76490
76491 2005-10-14  Simon Josefsson  <jas@extundo.com>
76492
76493         * lib/arcfour.h, lib/arcfour.c: New files.
76494
76495 2005-10-14  Roland McGrath  <roland@redhat.com>
76496
76497         Import from libc.  [BZ #1331]
76498         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76499         macro argument.
76500         Reported by Matej Vela <vela@debian.org>.
76501
76502 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76503
76504         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76505         include <wchar.h>; no longer needed.
76506
76507 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76508
76509         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76510
76511 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76512         and  Ulrich Drepper  <drepper@redhat.com>
76513
76514         Import from libc.
76515         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76516         instead of inline stream orientation test and two separate
76517         function calls.  Pay no attention to USE_IN_LIBIO.
76518
76519 2005-10-13  Simon Josefsson  <jas@extundo.com>
76520
76521         * modules/gc-hmac-md5-tests: New file.
76522
76523         * tests/test-gc-hmac-sha1.c: New file.
76524
76525         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76526
76527         * modules/gc-hmac-md5-tests: New file.
76528
76529         * tests/test-gc-md5.c: New file.
76530
76531         * modules/gc-md5-tests: New file.
76532
76533 2005-10-13  Simon Josefsson  <jas@extundo.com>
76534
76535         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76536         Move memory allocation outside of loop.
76537
76538 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76539
76540         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76541         intermediate directory is in a read-only file system.  Problem
76542         reported by Eric Blake.
76543
76544 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76545
76546         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76547
76548 2005-10-12  Simon Josefsson  <jas@extundo.com>
76549
76550         * tests/test-hmac-sha1.c: New file.
76551
76552         * modules/hmac-sha1-tests: New file.
76553
76554         * modules/hmac-sha1: New file.
76555
76556 2005-10-12  Simon Josefsson  <jas@extundo.com>
76557
76558         * modules/gc-sha1: New file.
76559
76560 2005-10-12  Simon Josefsson  <jas@extundo.com>
76561
76562         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76563
76564         * tests/test-gc-pbkdf2-sha1.c: New file.
76565
76566 2005-10-12  Simon Josefsson  <jas@extundo.com>
76567
76568         * modules/gc-md5, modules/gc-hmac-md5: New files.
76569
76570         * modules/gc (Files): Remove md5, memxor and hmac files.
76571
76572 2005-10-12  Simon Josefsson  <jas@extundo.com>
76573
76574         * m4/gc-pbkdf2-sha1.m4: New file.
76575
76576         * m4/gc-hmac-sha1.m4: New file.
76577
76578         * m4/gc-sha1: New file.
76579
76580         * m4/hmac-sha1.m4: New file.
76581
76582 2005-10-12  Simon Josefsson  <jas@extundo.com>
76583
76584         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76585
76586         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76587
76588 2005-10-12  Simon Josefsson  <jas@extundo.com>
76589
76590         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76591         suggested by Bruno Haible <bruno@clisp.org>.
76592
76593 2005-10-12  Simon Josefsson  <jas@extundo.com>
76594
76595         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76596
76597 2005-10-12  Simon Josefsson  <jas@extundo.com>
76598
76599         * lib/gc-pbkdf2-sha1.c: New file.
76600
76601         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76602
76603 2005-10-12  Simon Josefsson  <jas@extundo.com>
76604
76605         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76606
76607         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76608
76609 2005-10-12  Simon Josefsson  <jas@extundo.com>
76610
76611         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76612         GC_USE_HMAC_MD5, respectively.
76613
76614         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76615         (gc_md5): Fix typo.
76616
76617         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76618
76619         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76620
76621         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76622
76623 2005-10-12  Bruno Haible  <bruno@clisp.org>
76624
76625         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76626         Reported by Stepan Kasal <kasal@ucw.cz>.
76627
76628 2005-10-11  Simon Josefsson  <jas@extundo.com>
76629
76630         * tests/test-crc.c: New file.
76631
76632         * modules/crc, modules/crc-tests: New files.
76633
76634 2005-10-11  Simon Josefsson  <jas@extundo.com>
76635
76636         * m4/crc.m4: New file.
76637
76638 2005-10-11  Simon Josefsson  <jas@extundo.com>
76639
76640         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76641
76642         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76643
76644         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76645
76646 2005-10-11  Simon Josefsson  <jas@extundo.com>
76647
76648         * lib/crc.h, lib/crc.c: New files.
76649
76650         * lib/gc.h (gc_hash_buffer): Add doc.
76651
76652 2005-10-11  Bruno Haible  <bruno@clisp.org>
76653
76654         * modules/c-strcasestr: New file.
76655         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76656
76657 2005-10-11  Bruno Haible  <bruno@clisp.org>
76658
76659         * modules/c-strcase: New file.
76660         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76661
76662 2005-10-11  Bruno Haible  <bruno@clisp.org>
76663
76664         * lib/strcasecmp.c: Include limits.h.
76665         (strcasecmp): Avoid integer overflow on exotic platforms.
76666         * lib/strncasecmp.c: Include limits.h.
76667         (strncasecmp): Avoid integer overflow on exotic platforms.
76668         Reported by Paul Eggert.
76669
76670 2005-10-11  Bruno Haible  <bruno@clisp.org>
76671
76672         * lib/c-strcasestr.h: New file, from GNU gettext.
76673         * lib/c-strcasestr.c: New file, from GNU gettext.
76674
76675 2005-10-11  Bruno Haible  <bruno@clisp.org>
76676
76677         * lib/c-strcase.h: New file, from GNU gettext.
76678         * lib/c-strcasecmp.c: New file, from GNU gettext.
76679         * lib/c-strncasecmp.c: New file, from GNU gettext.
76680
76681 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76682
76683         * modules/mempcpy (License): GPL -> LGPL.
76684         * modules/strchrnul (License): Likewise.
76685         * modules/sysexits (License): Likewise.
76686
76687 2005-10-08  Simon Josefsson  <jas@extundo.com>
76688
76689         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76690
76691 2005-10-07  Simon Josefsson  <jas@extundo.com>
76692
76693         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76694
76695 2005-10-06  Simon Josefsson  <jas@extundo.com>
76696
76697         * tests/test-hmac-md5.c: New file.
76698
76699         * modules/hmac-md5-tests: New file.
76700
76701         * modules/hmac-md5: New file.
76702
76703 2005-10-06  Simon Josefsson  <jas@extundo.com>
76704
76705         * m4/hmac-md5.m4: New file.
76706
76707         * m4/memxor.m4: Require gl_C_RESTRICT.
76708
76709 2005-10-06  Simon Josefsson  <jas@extundo.com>
76710
76711         * lib/memxor.c (memxor): Avoid casts and warnings.
76712
76713 2005-10-06  Simon Josefsson  <jas@extundo.com>
76714
76715         * lib/hmac-md5.c: New file.
76716
76717         * lib/hmac.h: New file.
76718
76719 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76720
76721         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76722         promotes to int, not unsigned int, to catch the AIX 5.3
76723         compiler bug.
76724
76725 2005-10-05  Simon Josefsson  <jas@extundo.com>
76726
76727         * modules/memxor: New file.
76728
76729         * modules/iconv (Files): Move config.rpath to havelib, it is used
76730         there.
76731
76732         * modules/havelib (Files): Add config.rpath.
76733
76734 2005-10-05  Simon Josefsson  <jas@extundo.com>
76735
76736         * m4/memxor.m4: New file.
76737
76738 2005-10-05  Simon Josefsson  <jas@extundo.com>
76739
76740         * lib/memxor.c (memxor): Fix compiler error.
76741
76742         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76743         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76744
76745         * lib/memxor.h, lib/memxor.c: New files.
76746
76747         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76748         we assume all systems have it, suggested by Jim Meyering
76749         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76750         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76751         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76752         same reasons.
76753
76754 2005-10-05  Simon Josefsson  <jas@extundo.com>
76755
76756         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76757
76758 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76759
76760         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76761         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76762         needed, since the source code now assumes these .h files.
76763
76764 2005-10-05  Derek Price  <derek@ximbiot.com>
76765
76766         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76767
76768 2005-10-05  Bruno Haible  <bruno@clisp.org>
76769
76770         * modules/stdint (License): Change to LGPL.
76771
76772 2005-10-04  Simon Josefsson  <jas@extundo.com>
76773
76774         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76775         D. Baushke" <mdb@gnu.org>.
76776
76777 2005-10-04  Bruno Haible  <bruno@clisp.org>
76778
76779         * lib/verify.h (verify_true): Provide alternative definition for C++.
76780
76781 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76782
76783         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76784         (SSIZE_MAX): New macro, if not already defined.
76785         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76786         than 2 GiB.
76787
76788 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76789
76790         Sync from coreutils.
76791         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76792         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76793         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76794         ULLONG_MAX doesn't work with 2.7.2.1.
76795
76796 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76799         From Ben Pfaff.
76800
76801         * modules/exclude (Depends-on): Depend on verify.
76802         * modules/strtoimax (Depends-on): Likewise.
76803         * modules/utimecmp (Depends-on): Likewise.
76804
76805 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76806
76807         * lib/exclude.c: Include verify.h.
76808         (verify): Remove.  All callers changed to use verify.h's version.
76809         * lib/strtoimax.c: Likewise.
76810         * lib/utimecmp.c: Likewis.e
76811
76812         Sync from coreutils.
76813         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76814         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76815         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76816         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76817         bother returning ENOSYS if settimeofday or stime fails; just let
76818         them return whatever errno they want to return.
76819         * lib/utimens.c: Include unistd.h, for dup2.
76820         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76821         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76822
76823 2005-10-02  Jim Meyering  <jim@meyering.net>
76824
76825         Sync from coreutils.
76826         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76827         from glibc-2.2.5 that fails for read-only files.
76828
76829 2005-10-02  Jim Meyering  <jim@meyering.net>
76830
76831         Sync from coreutils.
76832         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76833         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76834         `#if HAVE_CONFIG_H'.
76835         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76836         Remove AT_FDCWD test.
76837         Do not consume the fd unless successful.
76838         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76839         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76840         block, so that we don't even try to compile it if settimeofday is
76841         available.  This works around a compilation failure on OSF1 V5.1,
76842         due to stime requiring a `long int*' while tv_sec is `int'.
76843
76844 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76845
76846         Sync from coreutils.
76847         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76848         against `yes', rather than just testing for nonempty.
76849
76850 2005-10-01  Simon Josefsson  <jas@extundo.com>
76851
76852         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76853         and Darwin.
76854
76855         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76856         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76857         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76858         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76859         Check if struct addrinfo is declared.
76860
76861 2005-10-01  Simon Josefsson  <jas@extundo.com>
76862
76863         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76864         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76865         AI_* and EAI_* definitions.  Protect function declarations.
76866
76867 2005-10-01  Jim Meyering  <jim@meyering.net>
76868
76869         Sync from coreutils.
76870
76871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76872         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76873         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76874         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76875         in the inet and nsl libraries.  Required on Solaris 5.7.
76876
76877 2005-10-01  Jim Meyering  <jim@meyering.net>
76878
76879         Sync from coreutils.
76880         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76881         in the inet and nsl libraries.  Required on Solaris 5.7.
76882
76883 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76884
76885         * lib/getdelim.c (getdelim): Remove unused variables.
76886
76887 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76890         so that the code works even with ancient cpp.  Portability problem
76891         with GCC 2.7.2.1 reported by Thomas M.Ott.
76892
76893 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * modules/regex (Depends-on): Add strcase.
76896
76897         * modules/gethostname (Licence): Change from GPL to LGPL, since
76898         gethostname.c is a trivial implementation of a standard library
76899         function.
76900         * modules/poll (License): Change from GPL to LGPL, since it's
76901         derived from LGPL code.
76902
76903 2005-09-27  Jim Meyering  <jim@meyering.net>
76904
76905         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76906         HAVE_CONFIG_H.
76907
76908         * lib/intprops.h (signed_type_or_expr__): Define.
76909         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76910         for unsigned types.
76911
76912 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         * lib/verify.h (verify_expr): Remove, replacing with:
76915         (verify_true): New macro that returns true instead of void.
76916         (verify_type__): Remove.
76917         (verify): Use verify_true rather than verify_type__.
76918
76919 2005-09-26  Bruno Haible  <bruno@clisp.org>
76920
76921         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76922         is necessary.
76923         (lib_SOURCES): Remove mbchar.c.
76924         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76925         (Files): Add m4/mbrtowc.m4.
76926         * modules/mbiter: Likewise.
76927         * modules/mbuiter: Likewise.
76928
76929 2005-09-26  Bruno Haible  <bruno@clisp.org>
76930
76931         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76932         compile mbchar.c if they are not both present.
76933         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76934         * m4/mbiter.m4 (gl_MBITER): Likewise.
76935         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76936         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76937         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76938
76939 2005-09-25  Jim Meyering  <jim@meyering.net>
76940
76941         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76942         also uses socklen_t.
76943
76944 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76945
76946         * lib/utimens.c (ENOSYS): Define if not already defined.
76947         (futimens): Support having a null PATH if the file descriptor
76948         is nonnegative.
76949
76950         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76951         Remove.
76952         (__attribute): Define to empty unless GCC 3.1 or later.
76953         This works around a core dump on OpenBSD 3.4, which has GCC
76954         2.95.3, which dumps core when given __attribute__(()).  It also
76955         simplifies other tests, since we really don't want to bother with
76956         worrying about which ancient version of GCC supported what.
76957         Original problem reported by Yoann Vandoorselaere, with part of
76958         the fix suggested by Derek Price.
76959
76960 2005-09-24  Jim Meyering  <jim@meyering.net>
76961
76962         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76963         so we can once again use a positive bitfield width of 1 -- now we
76964         don't have to explain why we were using a bitfield width of 2.
76965
76966 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76967
76968         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76969         and similarly for the other external symbols.  Problem reported
76970         by James Gallager.
76971
76972         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76973         bug reported by Jim Meyering.
76974
76975         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76976         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76977         not needed, since socklen is a prerequisite module.
76978
76979 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76980
76981         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76982         Problem reported by Eric Blake.
76983         (getaddrinfo): Initialize se so that it's not garbage.
76984         Redo internal storage allocation so that it doesn't make unportable
76985         assumptions about alignment.
76986         Fix a memory leak.
76987
76988         * lib/utimens.c (futimens): Use futimesat if available.
76989         Prefer it to futimes since it doesn't have the futimes bug.
76990
76991         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76992         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76993         Instead, declare a function that returns a pointer to an array,
76994         and use verify_type__ to declare the size of the array.
76995         Problem and germ of a solution reported by Bruno Haible.
76996         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76997         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76998
76999 2005-09-23  Jim Meyering  <jim@meyering.net>
77000
77001         Sync from coreutils.
77002         Correct build failure (socklen_t not defined) on at least
77003         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
77004         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
77005
77006 2005-09-23  Jim Meyering  <jim@meyering.net>
77007
77008         * modules/getaddrinfo (Depends-on): Add socklen.
77009
77010 2005-09-23  Bruno Haible  <bruno@clisp.org>
77011
77012         * tests/test-verify.c: New file.
77013
77014 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77015
77016         Sync from coreutils.
77017
77018         * modules/argmatch (Depends-on): Add verify.
77019         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
77020         unistd-safer.
77021         * modules/save-cwd (Depends-on): Likewise.
77022
77023         * modules/openat (Files): Add lib/openat-die.c.
77024         (Depends-on): Remove error, exitfail.
77025         Add dirname.
77026
77027         * modules/verify: New file.
77028         * MODULES.html.sh (Diagnostics <assert.h>): New section,
77029         with "verify" module.
77030
77031 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77032
77033         Sync from coreutils.
77034
77035         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
77036         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
77037         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
77038         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
77039         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
77040         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
77041         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
77042         Don't bother checking for string.h, stdlib.h, unistd.h.
77043         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
77044         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
77045         module's job.
77046         * m4/jm-macros.m4 (gl_MACROS): Likewise.
77047         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
77048
77049         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
77050         (gl_GETDATE): Use it.
77051
77052         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
77053
77054 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77055
77056         Sync from coreutils.
77057
77058         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
77059         stat-time.h.
77060         * lib/argmatch.h: Include verify.h
77061         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
77062         (ARGMATCH_ASSERT): Remove; unused.
77063         * lib/canonicalize.c: Assume STDC_HEADERS.
77064         * lib/exclude.c: Include "strcase.h".
77065         * lib/regex_internal.h [!defined _LIBC]: Likewise.
77066         * lib/getusershell.c: Include stdio--.h rather than stdio.h
77067         and stdio-safer.h.
77068         (getusershell): Call fopen, not fopen_safer.
77069         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
77070         Do not include unistd-safer.h.
77071         (save_cwd): Don't call fd_safer; no longer needed
77072         now that we include fcntl--.h.
77073
77074         * lib/getdate.y (relative_time): New type.
77075         (RELATIVE_TIME_0): New constant.
77076         (parser_control): Use relative_time instead of doing it ourselves.
77077         (%union): Add new relative_time rel member.
77078         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
77079         Now typeless.
77080         (relunit, relunit_snumber): Now of type rel.
77081         (zone, rel, relunit, get_date): Adjust to above changes.
77082
77083         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
77084         Do not include unistd-safer.h.
77085         (getloadavg): Don't call fd_safer; no longer needed
77086         now that we include fcntl--.h.
77087
77088         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
77089         (make_dir_parents): Treat ENOSYS like EEXIST.
77090
77091         Improve quality of diagnostics on restore_cwd failure.
77092         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
77093         (make_dir_parents): Last arg is now int * (for errno), not bool *.
77094         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
77095         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
77096         each time through the loop.  Do not diagnose restore_cwd failure;
77097         that is the caller's job (and perhaps the caller does not care).
77098
77099         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
77100         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
77101         If the file already exists but is not a directory, don't bother
77102         to try to make its parents.
77103         Close potential file descriptor leak if we can't chdir("/") (!).
77104         Don't always return true if chdir($PWD) fails; return true only
77105         if the requested action was done successfully (except for the
77106         chdir($PWD)).
77107         Don't log final directory unless we actually made it.
77108         Refactor to avoid duplicate code to fix up permissions.
77109         Don't attempt to fix up parent permissions if chdir($PWD) fails.
77110
77111         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
77112         to make it a bit faster and (I hope) clearer.
77113         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
77114         Fix bug in formats like %2N.
77115
77116         * lib/verify.h: New file.
77117
77118 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
77119
77120         Sync from coreutils.
77121         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
77122
77123 2005-09-22  Jim Meyering  <jim@meyering.net>
77124
77125         Sync from coreutils.
77126
77127         * m4/lstat.m4 (gl_FUNC_LSTAT):
77128         Use AC_LIBSOURCES to require lstat.c and lstat.h.
77129         Remove obsolete comment.
77130         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
77131         * m4/xstrtod.m4: Likewise.
77132
77133         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
77134
77135 2005-09-22  Jim Meyering  <jim@meyering.net>
77136
77137         Sync from coreutils.
77138
77139         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
77140
77141         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
77142         the .tm_year member, since otherwise gcc-4.0 would now warn about
77143         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
77144
77145         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
77146         order to avoid an unsuppressible warning from gcc on 64-bit systems.
77147
77148         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
77149         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
77150         when run in a time zone for which daylight savings time is in effect
77151         for the starting date.
77152
77153         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
77154         stop us from restricting permissions of just-created absolute-named
77155         directories.
77156         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
77157         to restore initial working directory.
77158         * lib/mkdir-p.c (make_dir_parents): New parameter:
77159         different_working_dir, to tell caller if/when we change the working
77160         directory and are unable to return to the initial one.
77161         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77162         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77163         `return false'.  This fixes a bug introduced on 2004-07-30.
77164
77165         * lib/openat.c (fdopendir): Be sure to close the supplied
77166         file descriptor before returning.  This makes our replacement
77167         implementation a little closer to Solaris's, where fdopendir
77168         ties the file descriptor to the returned DIR* pointer.
77169         * lib/openat.c (unlinkat): New function.
77170         * lib/openat.h (unlinkat): Add prototype.
77171         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77172         (openat_restore_fail): Rename from openat_restore_die.
77173         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77174
77175         Provide an alternative to exiting immediately upon save_cwd or
77176         restore_cwd failure.  Now, an application can arrange e.g.,
77177         to perform a longjump in that case.
77178         * lib/openat.c: Include dirname.h.
77179         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77180         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77181         and openat_restore_die rather than calling error directly.
77182         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77183
77184         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77185         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77186         define.
77187
77188         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77189         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77190                             int utc, int nanoseconds);
77191         Background:
77192         date should not have to allocate a megabyte of virtual memory to
77193         handle a format argument like +%1048575T.  When implemented with
77194         strftime, it must allocate such a buffer, use strftime to fill it
77195         in, print it, then free it.
77196         With fprintftime, it simply prints everything and exits.
77197         With no need for memory allocation, that's one fewer way to fail.
77198         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77199         optional field width, not before, so we accept %9:z, not %:9z.
77200         (my_strftime): Be sure to use L_('x') for literals.
77201
77202         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77203         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77204         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77205         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77206         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77207         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77208         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77209         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77210         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77211         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77212         * lib/xgethostname.c, lib/xreadlink.c:
77213         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77214
77215         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77216         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77217         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77218         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77219         and don't include <sys/file.h>).
77220
77221 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77222
77223         Sync from coreutils.
77224
77225         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77226         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77227         [!LDAV_DONE]: Avoid unused variable warning.
77228
77229 2005-09-21  Bruno Haible  <bruno@clisp.org>
77230
77231         * lib/unicodeio.h (unicode_to_mb): New declaration.
77232
77233 2005-09-20  Derek Price  <derek@ximbiot.com>
77234
77235         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77236         getaddrinfo.h.
77237
77238 2005-09-20  Bruno Haible  <bruno@clisp.org>
77239
77240         * gnulib-tool: Remove trailing slashes from the values specified for
77241         --source-base, --m4-base, --tests-base, --aux-dir.
77242         Suggested by Simon Josefsson <jas@extundo.com>.
77243
77244 2005-09-20  Bruno Haible  <bruno@clisp.org>
77245
77246         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77247         func_modules_to_filelist, func_import, func_create_testdir): Make all
77248         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77249         change when gnulib-tool is invoked in a different locale.
77250
77251 2005-09-19  Simon Josefsson  <jas@extundo.com>
77252
77253         * m4/socklen.m4: Fix typo.
77254
77255 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77256
77257         Use a consistent style for including <config.h>.
77258         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77259         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77260         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77261         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77262         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77263         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77264         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77265         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77266         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77267         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77268         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77269         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77270         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77271         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77272         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77273         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77274         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77275         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77276         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77277         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77278         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77279         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77280         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77281         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77282         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77283         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77284         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77285         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77286         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77287         lib/xstrtoumax.c, lib/yesno.c:
77288         Standardize inclusion of config.h.
77289         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77290         lib/inttostr.h:  Removed inclusion of config.h from header files.
77291         * lib/inttostr.c:  Adjusted in-tree users.
77292         * lib/timespec.h: Remove superfluous warning to include config.h.
77293         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77294         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77295         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77296         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77297         config.h with HAVE_CONFIG_H.
77298
77299 2005-09-19  Jim Meyering  <jim@meyering.net>
77300
77301         * modules/pathmax (License): Change to LGPL.
77302
77303 2005-09-19  Derek Price  <derek@ximbiot.com>
77304
77305         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77306
77307 2005-09-19  Bruno Haible  <bruno@clisp.org>
77308
77309         * gnulib-tool (import): Provide default for --tests-base.
77310
77311 2005-09-19  Bruno Haible  <bruno@clisp.org>
77312
77313         * doc/quote.texi: New file, extracted from gnulib.texi.
77314         * doc/ctime.texi: New file, extracted from gnulib.texi.
77315         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77316         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77317         * doc/gnulib.texi: Include them.
77318
77319 2005-09-18  Bruno Haible  <bruno@clisp.org>
77320
77321         Portability fix.
77322         * gnulib-tool (func_readlink): New function.
77323         (func_ln_if_changed): Use it.
77324
77325 2005-09-18  Bruno Haible  <bruno@clisp.org>
77326
77327         * gnulib-tool: Support --with-tests also with --import.
77328         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77329         (func_import): Use variables $testsbase and $inctests. Emit a
77330         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77331         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77332         SUBDIRS += $testsdir.
77333         (func_create_testdir): Update.
77334
77335 2005-09-18  Bruno Haible  <bruno@clisp.org>
77336
77337         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77338         instead of $dry_run.
77339         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77340         (func_ln_if_changed): Don't handle dry-run here.
77341         (func_import): In dry-run mode, detect more precisely which actions
77342         would be performed, and don't use "...ing" verbs.
77343
77344 2005-09-18  Bruno Haible  <bruno@clisp.org>
77345
77346         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77347         (func_import): Use join on two temporary files instead of three nested
77348         loops, in order to determine which files are new or old.
77349
77350 2005-09-18  Bruno Haible  <bruno@clisp.org>
77351
77352         * gnulib-tool (func_import): Comment out code that spits out the
77353         new files with --dry-run.
77354
77355 2005-09-18  Bruno Haible  <bruno@clisp.org>
77356
77357         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77358
77359 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * lib/stat-time.h: New file.
77362         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77363         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77364         in a different way.
77365         (timespec_cmp): New function.
77366         * lib/utimecmp.c: Include stat-time.h.
77367         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77368         members exist, not on the obsolescent ST_MTIM_NSEC.
77369         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77370
77371 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77372
77373         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77374
77375 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77376
77377         * MODULES.html.sh (File system functions): Add stat-time.
77378         * modules/stat-time: New file.
77379         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77380         is now done in a different way, by the stat-time module.
77381         * modules/utimecmp (Depends-on): Add stat-time.
77382
77383 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         * m4/st_mtim.m4: Remove.  Superseded by...
77386         * m4/stat-time.m4: New file.
77387         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77388         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77389
77390 2005-09-15  Derek Price  <derek@ximbiot.com>
77391
77392         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77393
77394 2005-09-15  Derek Price  <derek@ximbiot.com>
77395
77396         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77397         * lib/regex_internal.c: Ditto, using this...
77398         (__GNUC_PREREQ): ...new macro.
77399         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77400         using...
77401         (__GNUC_PREREQ): ...this new macro.
77402
77403         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77404
77405 2005-09-15  Derek Price  <derek@ximbiot.com>
77406             Paul Eggert  <eggert@cs.ucla.edu>
77407
77408         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77409         changes, consolidating in...
77410         * lib/regex_internal.h: ...this file.
77411
77412 2005-09-13  Jim Meyering  <jim@meyering.net>
77413
77414         * lib/canon-host.c: Filter through gnu indent and reword comments
77415         slightly.
77416         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77417
77418 2005-09-13  Derek Price  <derek@ximbiot.com>
77419
77420         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77421         failure.
77422         Reported by Jim Meyering  <jim@meyering.net>.
77423
77424 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77425
77426         * lib/base64.c: Typo.
77427         (base64_encode): Put b64str in initialized data section.
77428
77429 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77430
77431         Merge glibc and coreutils changes into gnulib, plus a few
77432         extra fixes.
77433         * lib/md5.c: Use #error rather than a string.
77434         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77435         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77436         (__attribute__): Define to empty for non recent-GCC.
77437         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77438         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77439         Renamed from their non-__ counterparts, with new macros replacing
77440         them if not _LIBC.  Add __THROW attribute.
77441         (rol): Remove.
77442         (struct md5_ctx): Align buffer if using GCC.
77443         * lib/sha1.h (struct sha1_ctx): Likewise.
77444         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77445         The old name was backwards.
77446         (NOTSWAP): Remove; not used.
77447         (rol): New macro, moved here from md5.h.
77448         (sha1_process_block): Remove a FIXME that doesn't make sense.
77449
77450 2005-09-12  Derek Price  <derek@ximbiot.com>
77451
77452         Return usable errors from canon-host.
77453         * lib/canon-host.h: New file.
77454         * lib/canon-host.c (canon_host): Wrap...
77455         (canon_host_r): ...this new function, which now relies exclusively on
77456         getaddrinfo.
77457         (ch_strerror): New function.
77458         (last_cherror): New global.
77459         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77460         interface.
77461         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77462         void *.
77463         (freeaddrinfo): Free ai->ai_canonname when set.
77464
77465 2005-09-12  Derek Price  <derek@ximbiot.com>
77466
77467         Make canon-host require getaddrinfo.
77468         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77469         AC_LIBSOURCE canon-host.h.  Call...
77470         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77471         gl_GETADDRINFO.
77472         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77473
77474 2005-09-12  Derek Price  <derek@ximbiot.com>
77475
77476         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77477         LGPL.
77478         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77479
77480 2005-09-12  Derek Price  <derek@ximbiot.com>
77481
77482         * lib/gai_strerror.c: Include config.h when available.  Include
77483         getaddrinfo.h before other headers to test interface.
77484         Reported by Larry Jones <lawrence.jones@ugs.com>.
77485
77486 2005-09-12  Derek Price  <derek@ximbiot.com>
77487             Paul Eggert  <eggert@cs.ucla.edu>
77488
77489         * modules/glob (Files): Add glob-libc.h.
77490
77491 2005-09-12  Derek Price  <derek@ximbiot.com>
77492             Paul Eggert  <eggert@cs.ucla.edu>
77493
77494         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77495         glob_.h, glob-libc.h.
77496         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77497
77498 2005-09-12  Derek Price  <derek@ximbiot.com>
77499             Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77502         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77503         protecting things that should be done only in gnulib contexts.
77504         * lib/glob_.h: New file, containing only the glob things needed for
77505         gnulib.
77506         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77507         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77508         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77509         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77510         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77511         and to respect the namespace rules better.
77512
77513 2005-09-08  Simon Josefsson  <jas@extundo.com>
77514
77515         * modules/socklen: New file.
77516
77517 2005-09-08  Simon Josefsson  <jas@extundo.com>
77518
77519         * m4/socklen.m4: New file.
77520
77521 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77522
77523         * modules/utimens (Files): Add m4/utimbuf.m4, since
77524         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77525         Reported by Sergey Poznyakoff.
77526
77527 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77530         definitions, since that's the preferred style in glibc.
77531         Fix a minor spacing issue, and update copyright notice to match
77532         glibc's.
77533
77534 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77537
77538 2005-09-06  Simon Josefsson  <jas@extundo.com>
77539
77540         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77541         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77542
77543 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77544
77545         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77546         warning.
77547
77548 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77549
77550         * config/srclist.txt: Add glibc bug 1302.
77551
77552 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77553
77554         Change bitset word type from unsigned int to unsigned long int,
77555         as this has better performance on typical 64-bit hosts.
77556         Port bitset code to hosts with unusual word sizes.
77557         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77558         (build_collating_symbol):
77559         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77560         argument is a bitset.  This is merely a style issue, but it makes
77561         it clearer that an entire array is expected.
77562         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77563         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77564         Port to the case where bitset_word is not the same as unsigned int.
77565         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77566         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77567         Likewise.
77568         * lib/regexec.c (check_dst_limits_calc_pos_1,
77569         check_subexp_matching_top):
77570         (build_trtable, group_nodes_into_DFAstates):
77571         Likewise.
77572         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77573         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77574         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77575         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77576         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77577         * lib/regcomp.c (optimize_subexps, lower_subexp):
77578         Work even if bitset_word has holes in its bitwise representation.
77579         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77580         * lib/regexec.c (check_dst_limits_calc_pos_1,
77581         check_subexp_matching_top):
77582         Likewise.
77583         * lib/regex_internal.c (re_string_reconstruct):
77584         Don't assume UCHAR_MAX == 255.
77585         * lib/regex_internal.h (bitset_set_all): Likewise.
77586         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77587         All uses changed.
77588         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77589         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77590         All uses changed.
77591         (BITSET_WORD_MAX): New macro.
77592         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77593         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77594         (bitset_empty, bitset_copy):
77595         Prefer sizeof (bitset) to multiplying it out ourselves.
77596         (bitset_not_merge): Remove; unused.
77597         (bitset_contain): Return bool, not unsigned int with one bit on.
77598         All callers changed.
77599         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77600         alignment than re_node_set; do this by defining a new internal
77601         type struct dests_alloc and using it to allocate memory.
77602
77603 2005-09-05  Bruno Haible  <bruno@clisp.org>
77604
77605         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77606         links.
77607
77608 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77609
77610         * modules/size_max (Makefile.am): Add size_max.h
77611
77612 2005-09-04  Derek Price  <derek@ximbiot.com>
77613
77614         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77615
77616 2005-09-03  Simon Josefsson  <jas@extundo.com>
77617
77618         * gnulib-tool: Fix typo.
77619
77620 2005-09-03  Simon Josefsson  <jas@extundo.com>
77621
77622         * config/srclist.txt: Add glibc bug 1293.
77623
77624 2005-09-03  Derek Price  <derek@ximbiot.com>
77625
77626         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77627         From Larry Jones <lawrence.jones@ugs.com>.
77628
77629 2005-09-02  Simon Josefsson  <jas@extundo.com>
77630
77631         * modules/socklen: New file.
77632
77633 2005-09-02  Simon Josefsson  <jas@extundo.com>
77634
77635         * modules/havelib: New module.
77636
77637         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77638         Use havelib.
77639
77640 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77641
77642         Check for arithmetic overflow when calculating sizes, to prevent
77643         some buffer-overflow issues.  These patches are conservative, in the
77644         sense that when I couldn't determine whether an overflow was possible,
77645         I inserted a run-time check.
77646         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77647         macros.
77648         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77649         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77650         (re_xnrealloc, re_x2nrealloc): New inline functions.
77651         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77652         parse_bracket_exp):
77653         (build_equiv_class, build_charclass): Check for arithmetic overflow
77654         in size expression calculations.
77655         * lib/regex_internal.c (re_string_realloc_buffers):
77656         (build_wcs_upper_buffer, re_node_set_add_intersect):
77657         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77658         (re_dfa_add_node, register_state): Likewise.
77659         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77660         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77661         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77662         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77663
77664 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77667         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77668
77669 2005-09-02  Bruno Haible  <bruno@clisp.org>
77670
77671         Support for lib vs. lib64 distinction on biarch platforms.
77672         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77673         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77674         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77675
77676 2005-09-02  Bruno Haible  <bruno@clisp.org>
77677
77678         * gnulib-tool (import): In the other first-use case, provide defaults
77679         as well.
77680
77681 2005-09-02  Bruno Haible  <bruno@clisp.org>
77682
77683         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77684         patches not yet found in the latest gettext release.
77685
77686 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77687
77688         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77689         to avoid a collision with bits/local_lim.h in glibc.
77690         All uses changed.  Problem reported by Dmitry V. Levin in
77691         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77692
77693         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77694         bugs in int versus size_t comparisons.
77695         (re_string_context_at): Fix bug where the code assumed that
77696         Idx is signed.
77697
77698         Use bool where appropriate.
77699         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77700         All callers changed.
77701         (calc_eclosure_iter): Likewise, for ROOT arg.
77702         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77703         (build_charclass_op): Likewise, for NON_MATCH arg.
77704         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77705         (re_string_construct_common): Likewise, for ICASE arg.
77706         * lib/regexec.c (re_search_2_stub, re_search_stub):
77707         Likewise, for RET_LEN arg.
77708         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77709         (set_regs): Likewise, for FL_BACKTRACK arg.
77710         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77711         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77712         (calc_eclosure_iter, parse_bracket_exp):
77713         Use bool for internal variables that are booleans.
77714         * lib/regexec.c (re_search_internal, check_matching,
77715         proceed_next_node):
77716         (set_regs, build_sifted_states, sift_states_bkref):
77717         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77718         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77719         (find_collation_sequence_value):
77720         Likewise.
77721         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77722         (re_node_set_compare):
77723         Return bool, not int. All callers changed.
77724         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77725         (build_trtable, check_node_accept): Likewise.
77726         * lib/regex_internal.h: Include stdbool.h.
77727
77728         Fix bugs uncovered when converting to bool.
77729         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77730         failure instead of charging ahead blindly.
77731         * lib/regex_internal.c (register_state): Likewise.
77732         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77733         for freeing internal storage.
77734         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77735         bitset pieces used as boolean, to avoid undefined behavior
77736         on hosts that do int overflow checking.
77737
77738 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77739
77740         * config/srclist.txt: Add glibc bugs 1285-1287.
77741
77742 2005-09-01  Jim Meyering  <jim@meyering.net>
77743
77744         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77745         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77746         Require gl_STAT_MACROS, too.
77747
77748 2005-09-01  Bruno Haible  <bruno@clisp.org>
77749
77750         * gnulib-tool (import): In the first-use case, provide defaults.
77751
77752 2005-09-01  Bruno Haible  <bruno@clisp.org>
77753
77754         * gnulib-tool (func_import): Remove the .tmp files.
77755
77756 2005-09-01  Bruno Haible  <bruno@clisp.org>
77757
77758         * gnulib-tool (func_import): Fix handling of symbolic links.
77759
77760 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77761
77762         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77763         old glibc regex code mishandles strings longer than 2**31 bytes.
77764         This patch fixes this when the regex code is used in gnulib
77765         (i.e., outside glibc).
77766
77767         This patch should not affect the use of the regex code inside
77768         glibc.  No doubt this problem also needs to be handled for glibc
77769         as well, but the result will be an incompatible change to the
77770         glibc ABI, and the old ABI will have to be supported too.  That
77771         can be the the subject for another patch.
77772
77773         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77774         governing whether the rest of this patch is active.  By default,
77775         the macro is disabled and the patch has no effect.
77776         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77777         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77778         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77779         (re_match_2, re_set_registers): Use the new types.
77780         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77781         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77782         New macros.
77783         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77784         (re_string_context_at, bin_tree_t, re_dfastate_t):
77785         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77786         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77787         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77788         (re_string_char_size_at, re_string_wchar_at):
77789         (re_string_elem_size_at):
77790         Use the new types and macros to port to 64-bit hosts.
77791         Use unsigned types for internal values, so that the code
77792         mostly works even for arrays larger than SSIZE_MAX.
77793         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77794         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77795         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77796         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77797         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77798         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77799         (calc_inveclosure, parse_dup_op, build_range_exp):
77800         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77801         (fetch_number, create_token_tree, mark_opt_subexp):
77802         Likewise.
77803         * lib/regex_internal.c (re_string_construct_common,
77804         create_ci_newstate):
77805         (create_cd_newstate, re_string_allocate, re_string_construct):
77806         (re_string_realloc_buffers, build_wcs_upper_buffer):
77807         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77808         (re_string_reconstruct, re_string_peek_byte_case):
77809         (re_string_fetch_byte_case, re_string_context_at):
77810         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77811         (re_node_set_init_copy, re_node_set_add_intersect):
77812         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77813         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77814         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77815         (re_acquire_state, re_acquire_state_context, register_state):
77816         Likewise.
77817         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77818         search_cur_bkref_entry):
77819         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77820         (re_search_internal, re_search_2_stub, re_search_stub)
77821         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77822         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77823         (update_cur_sifted_state, check_dst_limits):
77824         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77825         (check_subexp_limits, sift_states_bkref, merge_state_array):
77826         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77827         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77828         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77829         (expand_bkref_cache, check_node_accept_bytes):
77830         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77831         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77832         (acquire_init_state_context, check_halt_node_context):
77833         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77834         (sift_states_backward, clean_state_log_if_needed):
77835         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77836         (find_recover_state, transit_state_sb, transit_state_mb):
77837         (transit_state_bkref, build_trtable, match_ctx_clean):
77838         Likewise.
77839         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77840         to work around an assumption that REG_MISSING is negative.
77841
77842         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77843         (seek_collating_symbol_entry) [defined _LIBC]:
77844         (lookup_collation_sequence_value) [defined _LIBC]:
77845         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77846         Use prototypes rather than old-style function definitions.
77847         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77848         (transit_state_sb) [0]:
77849         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77850
77851         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77852         rm_eo.
77853
77854         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77855         (optimize_subexps, lower_subexp):
77856         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77857         since the signed shift might overflow.  Use 1u<<31 instead.
77858         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77859         Likewise.
77860         * lib/regexec.c (check_dst_limits_calc_pos_1,
77861         check_subexp_matching_top): Likewise.
77862
77863         * lib/regcomp.c (optimize_subexps, lower_subexp):
77864         Use CHAR_BIT rather than 8, for clarity.
77865         * lib/regexec.c (check_dst_limits_calc_pos_1):
77866         (check_subexp_matching_top): Likewise.
77867         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77868         have to worry about portability issues when shifting it left.
77869         Remove no-longer-needed test for table_size > 0.
77870         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77871         in a word, as the resulting behavior is undefined.
77872         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77873         in one case, a <= should have been an <, and in another case the
77874         whole test was missing.
77875         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77876         the standard name CHAR_BIT.
77877         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77878         this is not true on one's complement and signed-magnitude hosts.
77879
77880         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77881         next_last_offset.
77882         (struct re_dfa_t): Remove unused member states_alloc.
77883         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77884
77885 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77886
77887         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77888         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77889         and large-file glibc and in 32-bit large-file Solaris.
77890
77891 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77892
77893         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77894         lengths fit in regoff_t; this isn't true if regoff_t is the same
77895         width as size_t.
77896         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77897         (= START + RANGE) instead of RANGE.  This avoids overflow
77898         problems when regoff_t is the same width as size_t.
77899         All callers changed.
77900         (re_search_2_stub): Check for overflow when adding the
77901         sizes of the two strings.
77902         (re_search_stub): Check for overflow when adding START
77903         to RANGE; if it occurs, substitute the extreme value.
77904
77905 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77906
77907         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77908
77909 2005-08-31  Jim Meyering  <jim@meyering.net>
77910
77911         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77912         a pointer-to-const.
77913         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77914         (register_state): Likewise.
77915         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77916         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77917         (group_nodes_into_DFAstates): Likewise.
77918
77919 2005-08-31  Jim Meyering  <jim@meyering.net>
77920
77921         * check-module: Add a FIXME comment.
77922
77923 2005-08-31  Eric Blake  <ebb9@byu.net>
77924
77925         * modules/unistd-safer (Files): Add unistd--.h.
77926         * modules/stdio-safer (Files): Add stdio--.h.
77927
77928 2005-08-31  Derek Price  <derek@ximbiot.com>
77929
77930         * lib/getdelim.c (getdelim): Return EOF on EOF.
77931         Reported by Larry Jones <lawrence.jones@ugs.com>.
77932
77933 2005-08-31  Bruno Haible  <bruno@clisp.org>
77934
77935         Avoid unnecessary diffs in the generated lib/Makefile.am.
77936         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77937         the generated files.
77938         (func_import): Don't set cmd.
77939
77940 2005-08-31  Bruno Haible  <bruno@clisp.org>
77941
77942         * lib/strstr.c: Include <stddef.h>, for NULL.
77943         * lib/strcasestr.c: Likewise.
77944         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77945
77946 2005-08-31  Bruno Haible  <bruno@clisp.org>
77947
77948         * gnulib-tool: New option --macro-prefix.
77949         (func_import): Use macro_prefix.
77950         (import): Handle option --macro-prefix.
77951
77952 2005-08-31  Bruno Haible  <bruno@clisp.org>
77953
77954         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77955         Also use new variables cached_lgpl, cached_libtool.
77956
77957 2005-08-31  Bruno Haible  <bruno@clisp.org>
77958
77959         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77960         always instantiating them.
77961
77962 2005-08-31  Bruno Haible  <bruno@clisp.org>
77963
77964         * gnulib-tool (func_import): Read the previous cached settings
77965         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77966         earlier added by gnulib but are now dropped. Warn when a gnulib file
77967         overwrites a non-gnulib file.
77968
77969 2005-08-31  Bruno Haible  <bruno@clisp.org>
77970
77971         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77972         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77973         projects that don't keep autogenerated files in CVS. Put into
77974         actioncmd only the specified modules, not the transitive closure.
77975
77976 2005-08-31  Bruno Haible  <bruno@clisp.org>
77977
77978         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77979         Create directories that shall be filled.
77980         (import): Don't look for gl_* macros in configure.ac. Recurse across
77981         all directories containing a gnulib-cache.m4 files, if meaningful.
77982
77983 2005-08-31  Bruno Haible  <bruno@clisp.org>
77984
77985         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77986         (import): Set seen_libtool when we see gl_LIBTOOL.
77987
77988 2005-08-31  Bruno Haible  <bruno@clisp.org>
77989
77990         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77991         declaration macro definitions from generated gnulib.m4.
77992
77993 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77994
77995         * lib/iconvme.h: Add prototype for iconv_alloc.
77996
77997 2005-08-29  Simon Josefsson  <jas@extundo.com>
77998
77999         * lib/iconvme.c: Fix errno.
78000
78001 2005-08-29  Bruno Haible  <bruno@clisp.org>
78002
78003         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
78004         that it works when the directory contains spaces.
78005
78006 2005-08-29  Bruno Haible  <bruno@clisp.org>
78007
78008         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
78009
78010 2005-08-29  Bruno Haible  <bruno@clisp.org>
78011
78012         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
78013         Emit more advice.
78014
78015 2005-08-29  Bruno Haible  <bruno@clisp.org>
78016         and Stepan Kasal  <kasal@ucw.cz>
78017
78018         * check-module: If more parameters are given, check each of them
78019         separately; add more exceptions, as noted by Jim Meyering.
78020         (check_module): New procedure.
78021         (%exempt_header): Now contains all exceptions.
78022
78023 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
78024
78025         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
78026
78027 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
78028
78029         * lib/iconvme.c: Split iconv_string into iconv_alloc.
78030
78031 2005-08-28  Bruno Haible  <bruno@clisp.org>
78032
78033         * m4/gnulib-tool.m4: New file.
78034
78035 2005-08-27  Jim Meyering  <jim@meyering.net>
78036
78037         * modules/unistd-safer (Files): Add pipe-safer.c.
78038         * modules/fcntl-safer (Files): Add creat-safer.c.
78039
78040 2005-08-27  Jim Meyering  <jim@meyering.net>
78041
78042         * m4/stdlib-safer.m4: New file.  From coreutils.
78043         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
78044         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
78045         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
78046         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
78047         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
78048
78049 2005-08-27  Jim Meyering  <jim@meyering.net>
78050
78051         * lib/fopen-safer.c: Merge minor changes from coreutils.
78052         * lib/dup-safer.c: Likewise.
78053         * lib/fd-safer.c: Likewise.
78054
78055         Merge from coreutils.
78056         * lib/stdio--.h: New file.
78057         * lib/stdlib--.h: New file.
78058         * lib/mkstemp-safer.c: New file.
78059
78060         GNU tar needs these.
78061         * lib/pipe-safer.c: New file.
78062         * lib/creat-safer.c: New file.
78063         * lib/fcntl--.h (creat): Define to creat_safer.
78064         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
78065         * lib/unistd--.h (pipe): Define to pipe_safer.
78066         * lib/unistd-safer.h: Declare pipe_safer.
78067
78068 2005-08-26  Simon Josefsson  <jas@extundo.com>
78069
78070         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
78071         Haible <bruno@clisp.org>.
78072
78073 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         * lib/regex_internal.h: Remove all references to
78076         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
78077         or better.
78078         (bitset_not, bitset_merge, bitset_not_merge):
78079         (bitset_mask, re_string_allocate, re_string_construct):
78080         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
78081         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
78082         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
78083         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
78084         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78085         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78086         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
78087         (re_acquire_state_context):
78088         Remove unnecessary forward decls.
78089         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
78090         Put __attribute at function definition,
78091         now that the function decl has been removed.
78092         * lib/regex_internal.c (re_string_peek_byte_case):
78093         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
78094         Likewise.
78095
78096 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
78097
78098         * m4/regex.m4: Add AC_PREREQ(2.50).
78099         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
78100
78101 2005-08-25  Simon Josefsson  <jas@extundo.com>
78102
78103         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
78104         __fsetlocking.
78105
78106 2005-08-25  Simon Josefsson  <jas@extundo.com>
78107
78108         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
78109         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
78110         GLIBC specific code.
78111
78112 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78113
78114         Make regex safe for g++.  This fixes one real bug (an "err"
78115         that should have been "*err").  g++ problem reported by
78116         Sam Steingold.
78117         * lib/regex_internal.h (re_calloc): New macro, consistent with
78118         re_malloc etc.  All callers of calloc changed to use re_calloc.
78119         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
78120         not int.  All callers changed.
78121         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
78122         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
78123         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
78124         (find_recover_state): Change "err" to "*err"; this fixes what
78125         appears to be a real bug.
78126         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
78127         versus int.
78128
78129 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78130
78131         * modules/regex (Depends-on): Add malloc, since the code
78132         assumes that !malloc(0) means failure.
78133
78134 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78135
78136         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
78137
78138         alloca modernization/simplification for regex.
78139         * lib/regex.c: Remove portability cruft for alloca.  This no longer
78140         needs to be at the start of the file, and can be moved into
78141         regex_internal.h and simplified.
78142         * lib/regex_internal.h: Include <alloca.h>.
78143         (__libc_use_alloca) [!defined _LIBC]: New macro.
78144         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
78145         now works outside glibc.
78146
78147 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * config/srclist.txt: Add glibc bugs 1241, 1245.
78150
78151 2005-08-25  Jim Meyering  <jim@meyering.net>
78152
78153         * lib/open-safer.c: Include <config.h>.
78154         Otherwise, we'd lose LARGEFILE support in any file using
78155         e.g. "fcntl--.h"
78156
78157 2005-08-25  Bruno Haible  <bruno@clisp.org>
78158
78159         * m4/minmax.m4: Require autoconf 2.52.
78160         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
78161         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78162         alternatives of translit over the alphabet.
78163         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78164
78165 2005-08-24  Simon Josefsson  <jas@extundo.com>
78166
78167         * tests/test-getpass.c: New file.
78168
78169 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78170
78171         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78172         for GNU regex features.
78173
78174 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78175
78176         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78177         * lib/regex.h (regerror): Likewise.
78178
78179         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78180         requires this.  (The code never needed it.)
78181
78182         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78183         All uses of recently-renamed identifiers changed to use the new,
78184         POSIX-compliant names.  The code will build and run just fine
78185         without these changes, but it's better to eat our own dog food
78186         and use the standard-conforming names.
78187
78188         * lib/regex.h: Fix a multitude of POSIX name space violations.
78189         These changes have an effect only for programs that define
78190         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78191         do not change anything for programs compiled in the normal way.
78192         Also, there is no effect on the ABI.
78193
78194         (_REGEX_SOURCE): New macro.
78195         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78196         defined and _GNU_SOURCE is not; this fixes a name space violation.
78197
78198         Rename the following macros to obey POSIX requirements.
78199         The old names are still visible as macros if _REGEX_SOURCE is defined.
78200         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78201         RE_BACKSLASH_ESCAPE_IN_LISTS.
78202         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78203         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78204         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78205         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78206         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78207         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78208         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78209         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78210         (REG_INTERVALS): renamed from RE_INTERVALS.
78211         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78212         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78213         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78214         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78215         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78216         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78217         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78218         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78219         RE_UNMATCHED_RIGHT_PAREN_ORD.
78220         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78221         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78222         (REG_DEBUG): renamed from RE_DEBUG.
78223         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78224         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78225         unusual, since we can't clash with the POSIX REG_ICASE.
78226         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78227         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78228         (REG_NO_SUB): renamed from RE_NO_SUB.
78229         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78230         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78231         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78232         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78233         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78234         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78235         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78236         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78237         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78238         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78239         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78240         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78241         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78242         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78243         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78244         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78245         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78246         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78247         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78248         (REG_FIXED): Renamed from REGS_FIXED.
78249         (REG_NREGS): Renamed from RE_NREGS.
78250
78251         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78252         of other REG_* macros, since POSIX says the user is allowed to
78253         #undef these macros selectively.
78254
78255         (reg_errcode_t): Update comment stating what other tables need
78256         to be consistent.
78257
78258         Rename the following enum values to obey POSIX requirements.
78259         The old names are still visible as macros.
78260         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78261         is not defined, since GNU is supposed to be a superset of POSIX as
78262         much as possible, and since we want reg_errcode_t to be a signed
78263         type for implementation consistency.
78264         (_REG_NOERROR): Renamed from REG_NOERROR.
78265         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78266         (_REG_BADPAT): Renamed from REG_BADPAT.
78267         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78268         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78269         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78270         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78271         (_REG_EBRACK): Renamed from REG_EBRACK.
78272         (_REG_EPAREN): Renamed from REG_EPAREN.
78273         (_REG_EBRACE): Renamed from REG_EBRACE.
78274         (_REG_BADBR): Renamed from REG_BADBR.
78275         (_REG_ERANGE): Renamed from REG_ERANGE.
78276         (_REG_ESPACE): Renamed from REG_ESPACE.
78277         (_REG_BADRPT): Renamed from REG_BADRPT.
78278         (_REG_EEND): Renamed from REG_EEND.
78279         (_REG_ESIZE): Renamed from REG_ESIZE.
78280         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78281         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78282         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78283         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78284         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78285
78286         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78287         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78288         changed.  But support the old name if the new one is not defined
78289         and if _REGEX_SOURCE.
78290
78291         Change the following member names in struct re_pattern_buffer.
78292         The old names are still supported if !_REGEX_SOURCE.
78293         The new names are always supported, regardless of _REGEX_SOURCE.
78294         (re_buffer): Renamed from buffer.
78295         (re_allocated): Renamed from allocated.
78296         (re_used): Renamed from used.
78297         (re_syntax): Renamed from syntax.
78298         (re_fastmap): Renamed from fastmap.
78299         (re_translate): Renamed from translate.
78300         (re_can_be_null): Renamed from can_be_null.
78301         (re_regs_allocated): Renamed from regs_allocated.
78302         (re_fastmap_accurate): Renamed from fastmap_accurate.
78303         (re_no_sub): Renamed from no_sub.
78304         (re_not_bol): Renamed from not_bol.
78305         (re_not_eol): Renamed from not_eol.
78306         (re_newline_anchor): Renamed from newline_anchor.
78307
78308         Change the following member names in struct re_registers.
78309         The old names are still supported if !_REGEX_SOURCE.
78310         The new names are always supported, regardless of _REGEX_SOURCE.
78311         (rm_num_regs): Renamed from num_regs.
78312         (rm_start): Renamed from start.
78313         (rm_end): Renamed from end.
78314
78315         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78316         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78317         Prepend __ to parameter names.
78318
78319         Undo yesterday's changes.
78320
78321 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78324         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78325         lib/regex.c.
78326
78327 2005-08-24  Jim Meyering  <jim@meyering.net>
78328
78329         Sync from coreutils.
78330         * m4/fcntl-safer.m4: New file.
78331
78332         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78333         and object files for this module.
78334
78335 2005-08-24  Jim Meyering  <jim@meyering.net>
78336
78337         Sync from coreutils.
78338         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78339
78340 2005-08-24  Jim Meyering  <jim@meyering.net>
78341
78342         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78343         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78344
78345 2005-08-24  Jim Meyering  <jim@meyering.net>
78346
78347         * modules/fcntl-safer: New module.
78348         * modules/fts (Depends-on): Add fcntl-safer.
78349         * MODULES.html.sh (File descriptor based Input/Output):
78350         Add fcntl-safer.
78351
78352 2005-08-24  Bruno Haible  <bruno@clisp.org>
78353
78354         Support for unit test modules.
78355         * modules/README: Mention tests modules.
78356         * modules/TEMPLATE-TESTS: New file.
78357         * gnulib-tool: New options --extract-tests-module, --with-tests and
78358         --tests-base (unused for the moment).
78359         (testsbase, inctests): New variables.
78360         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78361         (func_verify_module): Exclude TEMPLATE-TESTS.
78362         (func_verify_nontests_module, func_verify_tests_module): New functions.
78363         (func_get_dependencies): Add implicit dependency for tests modules.
78364         (func_get_tests_module): New function.
78365         (func_modules_transitive_closure): When --with-tests was specified,
78366         include the unit tests as well, unless explicitly avoided.
78367         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78368         (func_emit_tests_Makefile_am): New function.
78369         (func_create_testdir): When --with-tests was specified, emit a
78370         tests/ directory.
78371         * MODULES.html.sh (Future developments): Update.
78372
78373 2005-08-24  Bruno Haible  <bruno@clisp.org>
78374
78375         * modules/tls-tests: New file.
78376         * tests/test-tls.c: New file, from GNU gettext.
78377
78378 2005-08-24  Bruno Haible  <bruno@clisp.org>
78379
78380         * modules/lock-tests: New file.
78381         * tests/test-lock.c: New file, from GNU gettext.
78382
78383 2005-08-24  Bruno Haible  <bruno@clisp.org>
78384
78385         * lib/lock.h: Add multiple inclusion guard.
78386         * lib/tls.h: Add multiple inclusion guard.
78387
78388 2005-08-24  Bruno Haible  <bruno@clisp.org>
78389
78390         * gnulib-tool: Add support for the --aux-dir option to
78391         --create-testdir, --create-megatestdir, --test, --megatest.
78392         (func_create_testdir, func_create_megatestdir): Optionally emit a
78393         AC_CONFIG_AUX_DIR directive.
78394         (create-testdir, create-megatestdir, test, megatest): Provide a
78395         default value for $auxdir.
78396
78397 2005-08-24  Bruno Haible  <bruno@clisp.org>
78398
78399         * gnulib-tool (import): Use compound statement instead of subshell
78400         where possible.
78401
78402 2005-08-24  Bruno Haible  <bruno@clisp.org>
78403
78404         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78405
78406 2005-08-24  Bruno Haible  <bruno@clisp.org>
78407
78408         * gnulib-tool (func_version): Update.
78409
78410 2005-08-24  Bruno Haible  <bruno@clisp.org>
78411
78412         * gnulib-tool (func_import, func_create_testdir,
78413         func_create_megatestdir): Quote all autoconf macro arguments.
78414
78415 2005-08-24  Bruno Haible  <bruno@clisp.org>
78416
78417         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78418         option --force, because --force causes the aclocal.m4 of each
78419         subdirectory to be newer than the corresponding config.h.in.
78420
78421 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78422
78423         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78424         All contents moved to gl_REGEX.
78425         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78426         assume that it does.
78427
78428 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78429
78430         * lib/regex.h (REG_NOSYS)
78431         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78432         Define, since POSIX requires it as of 2001.
78433         (_REG_ENOSYS)
78434         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78435         New private symbol, used to keep the enum signed in all cases.
78436         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78437         Youngman in
78438         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78439
78440         * lib/regex_internal.c (re_string_skip_chars, register_state):
78441         (calc_state_hash):
78442         Remove forward decls; no longer needed now that we use prototypes.
78443         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78444         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78445         (clean_state_log_if_needed): Likewise.
78446
78447 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78448
78449         * config/srclist.txt: Add glibc bugs 1231-1233.
78450
78451 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         Fix problems reported by Sam Steingold in
78454         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78455         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78456         assumed that reg_errcode_t is a signed type, which is not
78457         necessarily true if _XOPEN_SOURCE is not defined.
78458         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78459         since some compilers warn about it otherwise.
78460
78461 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78462
78463         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78464         (init_word_char, create_initial_state, duplicate_node_closure):
78465         (fetch_token, peek_token_bracket, build_range_exp):
78466         (build_collating_symbol): Remove forward decls; no longer needed
78467         now that we use prototypes.
78468
78469         * lib/regcomp.c:
78470         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78471         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78472         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78473         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78474         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78475         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78476         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78477         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78478         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78479         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78480         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78481         (build_charclass, build_charclass_op, fetch_number, create_tree):
78482         (create_token_tree, mark_opt_subexp, duplicate_tree):
78483         Use prototypes rather than old-style definitions.
78484
78485         * lib/regex_internal.c:
78486         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78487         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78488         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78489         (re_string_reconstruct, re_string_peek_byte_case):
78490         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78491         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78492         (re_node_set_init_copy, re_node_set_add_intersect):
78493         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78494         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78495         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78496         (re_acquire_state, re_acquire_state_context, register_state):
78497         (create_ci_newstate, create_cd_newstate, free_state):
78498         Likewise.
78499         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78500         re_search_2):
78501         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78502         (re_search_internal, prune_impossible_nodes):
78503         (acquire_init_state_context, check_matching, static):
78504         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78505         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78506         (update_regs, sift_states_backward, build_sifted_states):
78507         (clean_state_log_if_needed, merge_state_array):
78508         (update_cur_sifted_state, add_epsilon_src_nodes):
78509         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78510         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78511         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78512         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78513         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78514         (check_arrival, check_arrival_add_next_nodes):
78515         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78516         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78517         (check_node_accept_bytes, check_node_accept, extend_buffers):
78518         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78519         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78520         (sift_ctx_init):
78521         Likewise.
78522
78523         * lib/regex_internal.h:
78524         (re_string_allocate, re_string_construct, re_string_reconstruct):
78525         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78526         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78527         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78528         (re_string_context_at, re_string_peek_byte_case):
78529         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78530         is defined, since we now use prototypes always.
78531
78532         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78533         C89 or better.  All uses removed.
78534
78535 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78536
78537         * config/srclist.txt: Add glibc bugs 1220-1227.
78538
78539 2005-08-20  Jim Meyering  <jim@meyering.net>
78540
78541         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78542         of unused local, dfa.
78543
78544 2005-08-20  Bruno Haible  <bruno@clisp.org>
78545
78546         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78547
78548 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78549
78550         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78551         (re_node_set_insert_last, re_dfa_add_node):
78552         Rename local variables to avoid GCC shadowing warnings.
78553
78554 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78555
78556         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78557         [defined lint]: Suppress bogus uninitialized-variable warnings.
78558
78559         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78560         and let the caller return REG_ESPACE if out of space.  This
78561         removes an uninitialied-variable warning with GCC 4.0.1, and also
78562         avoids taking the address of a local variable.  All callers
78563         changed.
78564
78565 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78566
78567         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78568         $LIBCSRC/posix/regexec.c.
78569         Add glibc bug 1217 for regcomp.c.
78570
78571 2005-08-19  Jim Meyering  <jim@meyering.net>
78572
78573         * lib/regexec.c (proceed_next_node): Redo local variables to
78574         avoid GCC shadowing warnings.
78575
78576 2005-08-18  Bruno Haible  <bruno@clisp.org>
78577
78578         * lib/strstr.c (strstr): Fix return value in multibyte case.
78579         * lib/strcasestr.c (strcasestr): Likewise.
78580
78581 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78584
78585 2005-08-17  Jim Meyering  <jim@meyering.net>
78586
78587         Make the %s format (seconds since the epoch) work for a negative
78588         number and when used with a zero-padded field width, e.g. %015s.
78589
78590         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78591         label so that it precedes the code to set `digits'.  Otherwise,
78592         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78593         print `00-22'.  Now, it prints `-0022', as it should.
78594
78595 2005-08-17  Bruno Haible  <bruno@clisp.org>
78596
78597         * modules/strstr (Files): Add m4/mbrtowc.m4.
78598         (Depends-on): Add mbuiter.
78599
78600 2005-08-17  Bruno Haible  <bruno@clisp.org>
78601
78602         * modules/strcasestr: New file.
78603         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78604         strcasestr.
78605
78606 2005-08-17  Bruno Haible  <bruno@clisp.org>
78607
78608         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78609
78610 2005-08-17  Bruno Haible  <bruno@clisp.org>
78611
78612         * modules/mbuiter: New file.
78613         * MODULES.html.sh (Extended multibyte and wide character utilities):
78614         Add mbuiter.
78615
78616 2005-08-17  Bruno Haible  <bruno@clisp.org>
78617
78618         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78619         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78620
78621 2005-08-17  Bruno Haible  <bruno@clisp.org>
78622
78623         * m4/strcasestr.m4: New file.
78624
78625 2005-08-17  Bruno Haible  <bruno@clisp.org>
78626
78627         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78628         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78629
78630 2005-08-17  Bruno Haible  <bruno@clisp.org>
78631
78632         * lib/strcasestr.h: New file.
78633         * lib/strcasestr.c: New file.
78634
78635 2005-08-17  Bruno Haible  <bruno@clisp.org>
78636
78637         * lib/strcasecmp.c: Use mbuiter.h.
78638
78639 2005-08-17  Bruno Haible  <bruno@clisp.org>
78640
78641         * lib/mbuiter.h: New file.
78642
78643 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78646         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78647         and gl_GETOPT are both invoked via different paths (as happens
78648         with GNU tar CVS because it uses both argp and getopt), the former
78649         wins.
78650
78651 2005-08-16  Bruno Haible  <bruno@clisp.org>
78652
78653         * modules/tls: New file.
78654         * MODULES.html.sh (Multithreading): Add tls.
78655
78656 2005-08-16  Bruno Haible  <bruno@clisp.org>
78657
78658         * modules/strnlen1: New file.
78659         * MODULES.html.sh (String handling): Add strnlen1.
78660
78661 2005-08-16  Bruno Haible  <bruno@clisp.org>
78662
78663         * modules/strcase (Files): Add m4/mbrtowc.m4.
78664         (Depends-on): Add strnlen1, mbchar.
78665
78666 2005-08-16  Bruno Haible  <bruno@clisp.org>
78667
78668         * modules/mbiter: New file.
78669         * MODULES.html.sh (Extended multibyte and wide character utilities):
78670         Add mbiter.
78671
78672 2005-08-16  Bruno Haible  <bruno@clisp.org>
78673
78674         * modules/mbfile: New file.
78675         * MODULES.html.sh (Extended multibyte and wide character utilities):
78676         Add mbfile.
78677
78678 2005-08-16  Bruno Haible  <bruno@clisp.org>
78679
78680         * modules/mbchar: New file.
78681         * MODULES.html.sh (Extended multibyte and wide character utilities):
78682         New section.
78683
78684 2005-08-16  Bruno Haible  <bruno@clisp.org>
78685
78686         * m4/tls.m4: New file, from GNU gettext.
78687
78688 2005-08-16  Bruno Haible  <bruno@clisp.org>
78689
78690         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78691         always.
78692         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78693
78694 2005-08-16  Bruno Haible  <bruno@clisp.org>
78695
78696         * m4/mbiter.m4: New file.
78697
78698 2005-08-16  Bruno Haible  <bruno@clisp.org>
78699
78700         * m4/mbfile.m4: New file.
78701
78702 2005-08-16  Bruno Haible  <bruno@clisp.org>
78703
78704         * m4/mbchar.m4: New file.
78705
78706 2005-08-16  Bruno Haible  <bruno@clisp.org>
78707
78708         * lib/tls.h: New file, from GNU gettext.
78709         * lib/tls.c: New file, from GNU gettext.
78710
78711 2005-08-16  Bruno Haible  <bruno@clisp.org>
78712
78713         * lib/strnlen1.h: New file.
78714         * lib/strnlen1.c: New file.
78715
78716 2005-08-16  Bruno Haible  <bruno@clisp.org>
78717
78718         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78719         (mbi_init): Update.
78720         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78721         NUL byte, not after it.
78722
78723 2005-08-16  Bruno Haible  <bruno@clisp.org>
78724
78725         * lib/strcase.h (strcasecmp): Add note in comments.
78726         * lib/strncasecmp.c: Use code from strcasecmp.c.
78727         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78728         (strcasecmp): Work correctly in multibyte locales.
78729
78730 2005-08-16  Bruno Haible  <bruno@clisp.org>
78731
78732         * lib/mbiter.h: New file.
78733
78734 2005-08-16  Bruno Haible  <bruno@clisp.org>
78735
78736         * lib/mbfile.h: New file.
78737
78738 2005-08-16  Bruno Haible  <bruno@clisp.org>
78739
78740         * lib/mbchar.h: New file.
78741         * lib/mbchar.c: New file.
78742
78743 2005-08-16  Bruno Haible  <bruno@clisp.org>
78744
78745         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78746         the valid ones. Makes the comparison operations transitive:
78747         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78748         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78749
78750 2005-08-15  Simon Josefsson  <jas@extundo.com>
78751
78752         * modules/ssize_t (License): Change to 'unlimited'.
78753
78754         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78755
78756 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78757
78758         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78759         Add comments for each pending glibc patch.
78760
78761 2005-08-15  Bruno Haible  <bruno@clisp.org>
78762
78763         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78764         __cplusplus is defined.
78765
78766 2005-08-14  Jim Meyering  <jim@meyering.net>
78767
78768         Sync from coreutils.
78769
78770         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78771         Use the hash-table-based cycle-detection code not just when
78772         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78773         Reported by James Youngman in
78774         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78775         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78776         FTS_TIGHT_CYCLE_CHECK.
78777         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78778         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78779         once again.
78780         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78781         * lib/fts.c (fd_safer): Remove decl.
78782         Include fcntl--.h rather than unistd-safer.h
78783         (fts_safe_changedir): Don't call fd_safer; no longer needed
78784         now that we include fcntl--.h.
78785
78786 2005-08-12  Simon Josefsson  <jas@extundo.com>
78787
78788         * modules/getndelim2: Use ssize_t module.
78789         * modules/getnline: Likewise.
78790         * modules/safe-read: Likewise.
78791         * modules/xreadlink: Likewise.
78792
78793         * modules/ssize_t: New file.
78794
78795 2005-08-12  Simon Josefsson  <jas@extundo.com>
78796
78797         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78798
78799 2005-08-12  Simon Josefsson  <jas@extundo.com>
78800
78801         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78802         ssize_t.
78803
78804 2005-08-12  Simon Josefsson  <jas@extundo.com>
78805
78806         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78807         readline, getdelim and check_version.
78808         (Support for systems lacking ISO C 99: Sizes of integer types):
78809         Add size_max.
78810
78811 2005-08-12  Bruno Haible  <bruno@clisp.org>
78812
78813         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78814
78815 2005-08-11  Simon Josefsson  <jas@extundo.com>
78816
78817         * modules/readline: New file.
78818
78819         * modules/strnlen (Files): Add strnlen.h.
78820
78821 2005-08-11  Simon Josefsson  <jas@extundo.com>
78822
78823         * m4/readline.m4: New file.
78824
78825 2005-08-11  Simon Josefsson  <jas@extundo.com>
78826
78827         * lib/readline.h, readline.c: New file.
78828
78829 2005-08-11  Simon Josefsson  <jas@extundo.com>
78830
78831         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78832         gl_AVOID.
78833
78834 2005-08-11  Bruno Haible  <bruno@clisp.org>
78835
78836         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78837
78838 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78839
78840         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78841
78842 2005-08-10  Simon Josefsson  <jas@extundo.com>
78843
78844         * tests/test-iconvme.c: New file.
78845
78846 2005-08-10  Simon Josefsson  <jas@extundo.com>
78847
78848         * m4/strnlen.m4: New file.
78849
78850         * m4/strndup.m4: Don't check for strnlen declaration, done in
78851         strnlen.m4.
78852
78853 2005-08-10  Simon Josefsson  <jas@extundo.com>
78854
78855         * lib/strndup.c: Use strnlen.h.
78856
78857         * lib/strnlen.h: New file.
78858
78859 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78860
78861         * README: Typos.
78862
78863 2005-08-02  Simon Josefsson  <jas@extundo.com>
78864
78865         * modules/readline: New file.
78866
78867 2005-08-02  Simon Josefsson  <jas@extundo.com>
78868
78869         * modules/getdelim: New file.
78870
78871         * modules/getline: Rewrite, don't use getndelim2.
78872
78873 2005-08-02  Simon Josefsson  <jas@extundo.com>
78874
78875         * m4/getline.m4: Separate out getdelim stuff into separate module.
78876
78877         * m4/getdelim.m4: New file.
78878
78879 2005-08-02  Simon Josefsson  <jas@extundo.com>
78880
78881         * lib/getline.h, getline.c: Rewrite.
78882
78883         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78884
78885 2005-07-31  Bruno Haible  <bruno@clisp.org>
78886
78887         * lib/lock.h (gl_lock_initializer): New macro.
78888         (gl_lock_define_initialized): Use it.
78889         (gl_rwlock_initializer): New macro.
78890         (gl_rwlock_define_initialized): Use it.
78891         (gl_recursive_lock_initializer): New macro.
78892         (gl_recursive_lock_define_initialized): Use it.
78893
78894 2005-07-30  Karl Berry  <karl@gnu.org>
78895
78896         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78897         Report from Ben Pfaff, regarding getopt.
78898
78899 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78900
78901         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78902         normal way.
78903         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78904         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78905         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78906         (gl_GETOPT): Use the new macros.  Most of the implementation
78907         is moved to the new macros.  This is for programs like Emacs
78908         that don't want all the functionality of gl_GETOPT.
78909
78910 2005-07-26  Bruno Haible  <bruno@clisp.org>
78911
78912         * m4/lock.m4: Update from GNU gettext.
78913
78914 2005-07-26  Bruno Haible  <bruno@clisp.org>
78915
78916         * lib/lock.h: Update from GNU gettext.
78917         * lib/lock.c: Update from GNU gettext.
78918
78919 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78920
78921         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78922         obsolescent AC_TRY_RUN.  Include the default includes files, for
78923         'exit'.
78924
78925 2005-07-24  Bruno Haible  <bruno@clisp.org>
78926
78927         * modules/visibility: New file.
78928         * MODULES.html.sh (Misc): Add visibility.
78929
78930 2005-07-24  Bruno Haible  <bruno@clisp.org>
78931
78932         * m4/visibility.m4: New file.
78933
78934 2005-07-24  Bruno Haible  <bruno@clisp.org>
78935
78936         * doc/visibility.texi: New file.
78937
78938 2005-07-22  Bruno Haible  <bruno@clisp.org>
78939
78940         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78941         $(ALLOCA_H), redundant through BUILT_SOURCES.
78942         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78943         redundant through BUILT_SOURCES.
78944         * modules/byteswap (Makefile.am): Remove explicit dependency on
78945         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78946         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78947         $(FNMATCH_H), redundant through BUILT_SOURCES.
78948         * modules/getopt (Makefile.am): Remove explicit dependency on
78949         $(GETOPT_H), redundant through BUILT_SOURCES.
78950         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78951         redundant through BUILT_SOURCES.
78952         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78953         redundant through BUILT_SOURCES.
78954         * modules/stdbool (Makefile.am): Remove explicit dependency on
78955         $(STDBOOL_H), redundant through BUILT_SOURCES.
78956         * modules/stdint (Makefile.am): Remove explicit dependency on
78957         $(STDINT_H), redundant through BUILT_SOURCES.
78958         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78959         Remove explicit dependency on $(SYSEXITS_H).
78960         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78961
78962 2005-07-18  Simon Josefsson  <jas@extundo.com>
78963
78964         * lib/check-version.c (check_version): Accept identical versions too.
78965
78966 2005-07-18  Bruno Haible  <bruno@clisp.org>
78967
78968         * modules/lock: New file.
78969         * MODULES.html.sh (Multithreading): New section.
78970
78971 2005-07-18  Bruno Haible  <bruno@clisp.org>
78972
78973         * m4/lock.m4: New file, from GNU gettext.
78974
78975 2005-07-18  Bruno Haible  <bruno@clisp.org>
78976
78977         * lib/lock.h: New file, from GNU gettext.
78978         * lib/lock.c: New file, from GNU gettext.
78979
78980 2005-07-18  Bruno Haible  <bruno@clisp.org>
78981
78982         * lib/lock.h (gl_once_t): New type.
78983         (gl_once_define, gl_once): New macros.
78984         * lib/lock.c (fresh_once): New variable.
78985         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78986         functions.
78987
78988 2005-07-16  Simon Josefsson  <jas@extundo.com>
78989
78990         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78991         workaround, suggested by Bruno.
78992
78993 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78994
78995         * modules/xalloc (Depends-on): Add xalloc-die.
78996         * modules/xvasprintf (Depends-on): Add xalloc-die.
78997
78998 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78999
79000         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
79001         with a minor change.
79002
79003 2005-07-15  Bruno Haible  <bruno@clisp.org>
79004
79005         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
79006         When using lib/poll.c, define poll as rpl_poll.
79007
79008 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
79009
79010         * modules/argp (Depends-on): Remove unlocked-io.
79011
79012 2005-07-14  Derek Price  <derek@ximbiot.com>
79013
79014         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
79015         for glob symlink bug.
79016
79017 2005-07-14  Bruno Haible  <bruno@clisp.org>
79018
79019         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
79020         Instead, test for *_unlocked function declarations directly.
79021
79022 2005-07-11  Simon Josefsson  <jas@extundo.com>
79023
79024         * modules/size_max: New file.
79025
79026         * modules/xsize: Depend on size_max module for size_max.m4.
79027
79028 2005-07-11  Simon Josefsson  <jas@extundo.com>
79029
79030         * lib/size_max.h: New file.
79031
79032 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
79033
79034         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
79035         copyright symbol and the year.
79036         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
79037         (version_etc_va): Use parameterized copyright notice.
79038         Reword to conform to the current GNU coding standards.
79039
79040 2005-07-11  Karl Berry  <karl@gnu.org>
79041
79042         * doc/gnulib.texi (Quoting): new node.
79043         (Initial import): more info, from Patrice.
79044
79045 2005-07-11  Bruno Haible  <bruno@clisp.org>
79046
79047         * gnulib-tool (func_usage): Document option --avoid.
79048         (Command line options): Handle --avoid.
79049         (func_acceptable): New function.
79050         (func_modules_transitive_closure): Use it.
79051
79052 2005-07-11  Bruno Haible  <bruno@clisp.org>
79053
79054         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
79055         Reported by Jim Meyering.
79056
79057 2005-07-10  Bruno Haible  <bruno@clisp.org>
79058
79059         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
79060         Needed when size_t is smaller than 'unsigned int'.
79061         Reported by Paul Eggert.
79062
79063 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79064
79065         * modules/argp (Depends-on): Add unlocked-io
79066
79067 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79068
79069         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
79070         block of defines.
79071
79072 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79073
79074         * config/srclist.txt: Comment out regcomp.c, since we have a porting
79075         fix now.
79076
79077 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
79078         and Paul Eggert  <eggert@cs.ucla.edu>
79079
79080         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
79081         in wint_t, not wchar_t.  Remove now-unnecessary cast.
79082
79083 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         * modules/regex (Files): Add lib/regex_internal.c,
79086         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
79087         (Depends-on): Add extensions.
79088         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
79089
79090 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
79093         pathconf.
79094         * m4/same.m4 (gl_SAME): Likewise.
79095         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
79096
79097         * m4/regex.m4: Adjust to new libc regex implementation.
79098         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
79099         all the .c and .h parts of (the new) regex.
79100         Quote the m4 stuff better.
79101         Check for RE_ICASE bug of old gnulib.
79102         Check for REG_STARTEND of recent libc.
79103         Rename local variables from jm_* to gl_*.
79104         Quote operand of "test -f".
79105         Say "recent enough" version of libc, not "version 2".
79106         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
79107         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
79108         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
79109         Remove check for btowc, isascii.
79110         Require AM_LANGINFO_CODESET.
79111
79112 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79113
79114         * lib/regex.c, regex.h: Sync from libc.
79115         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
79116         * lib/regexec.c:
79117         New files, synced from libc, except that regex_internal.h
79118         currently has a small porting fix.
79119
79120 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
79123         regex_internal.c, regexec.c.
79124         Add regex_internal.h too, but as a comment, since the libc version
79125         is currently broken in gnulib mode.
79126
79127 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         Support programs like Emacs that use gnulib but not gettext.
79130         * MODULES.html.sh (Internationalization functions): Add gettext-h.
79131         * modules/gettext-h: New file.
79132         * modules/gettext (Files): Remove lib/gettext.h.
79133         (Depends-on): Add gettext-h.
79134         (Makefile.am): Remove lib_SOURCES.
79135         * modules/argmatch, modules/c-stack, modules/closeout:
79136         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
79137         * modules/execute, modules/file-type, modules/getaddrinfo:
79138         * modules/getopt, modules/human, modules/javacomp:
79139         * modules/javaexec, modules/mkdir-p, modules/obstack:
79140         * modules/openat, modules/pagealign_alloc, modules/pipe:
79141         * modules/quotearg, modules/regex, modules/rpmatch:
79142         * modules/unicodeio, modules/userspec, modules/version-etc:
79143         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
79144         * modules/xsetenv:
79145         Depend on gettext-h, not gettext.
79146
79147 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79148
79149         * gnulib-tool (func_import): Add support for 'public domain' license.
79150         * modules/alloca, modules/atexit, modules/memmove:
79151         Now public domain, not GPL.
79152         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
79153         * modules/realloc, modules/strerror, modules/strtod:
79154         Now LGPL, not GPL.
79155
79156 2005-07-05  Bruno Haible  <bruno@clisp.org>
79157
79158         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
79159         autoconf CVS. Needed for mingw.
79160
79161 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79162
79163         Remove the dependency of the strftime module on the tzset module.
79164         * modules/strftime (Depends-on): Remove dependency on tzset.
79165
79166 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         Remove the dependency of the strftime module on the tzset module.
79169         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79170         gl_FUNC_TZSET_CLOBBER.
79171
79172 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79173
79174         Remove the dependency of the strftime module on the tzset module.
79175         * lib/strftime.c (my_strftime)
79176         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79177         Copy the input structure, to work around some of the bug with
79178         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79179         Solaris releases, you should also use the tzset module, but we won't
79180         require it as a dependency any more since we don't want LGPLed code
79181         to depend on GPLed code.
79182
79183 2005-07-02  Jim Meyering  <jim@meyering.net>
79184
79185         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79186         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79187         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79188         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79189
79190 2005-07-02  Jim Meyering  <jim@meyering.net>
79191
79192         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79193
79194 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79195
79196         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79197         declares only 'struct timespec;' (!).
79198
79199 2005-07-01  Jim Meyering  <jim@meyering.net>
79200
79201         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79202         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79203         * lib/save-cwd.c, tempname.c:
79204         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79205         and don't include <sys/file.h>).
79206
79207 2005-06-29  Jim Meyering  <jim@meyering.net>
79208
79209         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79210         type name.  Use the variable name instead.
79211         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79212         Likewise.
79213
79214 2005-06-28  Simon Josefsson  <jas@extundo.com>
79215
79216         * modules/check-version (Files): Add check-version.m4.
79217
79218 2005-06-28  Simon Josefsson  <jas@extundo.com>
79219
79220         * m4/check-version.m4: New file, suggested by Jim Meyering
79221         <jim@meyering.net>.
79222
79223 2005-06-28  Simon Josefsson  <jas@extundo.com>
79224
79225         * lib/check-version.h, lib/check-version.c: New files.
79226
79227 2005-06-28  Simon Josefsson  <jas@extundo.com>
79228
79229         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79230         collision with global variable.  Better indentation.  Don't
79231         increment buffer pointer beyond buffer end.  Based on comments
79232         from Paul Eggert <eggert@cs.ucla.edu>.
79233
79234         * lib/base64.h: Indent.
79235
79236 2005-06-28  Simon Josefsson  <jas@extundo.com>
79237
79238         * doc/gnulib.texi (Library version handling): New section.
79239
79240 2005-06-28  Jim Meyering  <jim@meyering.net>
79241
79242         * check-module (find_included_lib_files): Hard-code another
79243         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79244         but modules/fts-lgpl (correctly) does not list those files.
79245
79246         * modules/canonicalize (Files): Add lib/pathmax.h.
79247
79248 2005-06-25  Simon Josefsson  <jas@extundo.com>
79249
79250         * modules/check-version: New file.
79251
79252 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79253
79254         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79255         initializer of struct addrinfo, as an indication that we don't
79256         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79263         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79264         * m4/stat.m4: Remove this file.
79265
79266 2005-06-24  Derek Price  <derek@ximbiot.com>
79267         and Bruno Haible  <bruno@clisp.org>
79268
79269         Remove stat module & update lstat.
79270         * lib/stat.c: Remove this file...
79271         (slash_aware_lstat): ...moving this content and its support...
79272         * lib/lstat.c (rpl_lstat): ...into here.
79273         * lib/lstat.h: New file.
79274
79275 2005-06-24  Derek Price  <derek@ximbiot.com>
79276         and Bruno Haible  <bruno@clisp.org>
79277
79278         Remove stat module & update lstat.
79279         * config/srclist.txt (libc sources): Remove stat.
79280
79281 2005-06-24  Derek Price  <derek@ximbiot.com>
79282         and Bruno Haible  <bruno@clisp.org>
79283
79284         Remove stat module & update lstat.
79285         * MODULES.html.sh (stat): Remove.
79286         * MODULES.html: Regenerated.
79287         * modules/lstat (Description): Correct function name.
79288         (Files): Add "lstat.h".
79289         (Depends-on): Remove stat, add xalloc, stat-macros.
79290         * modules/stat: Remove this file.
79291         (Include): Add "lstat.h", remove <sys/stat.h>.
79292
79293 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79294
79295         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79296         (ranged_convert): Don't save conversion in a temporary struct.
79297         This causes a warning with GCC 4.0.0, and anyway in the typical
79298         case it's not worth the extra 100 bytes or so of code.
79299         (ranged_convert, __mktime_internal): When calling a function via a
79300         pointer P, use P () rather than (*P) (), as we now assume C89 or
79301         better.
79302
79303 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79304
79305         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79306         "who -r" failed to give output.  Problem reported by Tim Waugh.
79307
79308         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79309         (xcalloc): Use it to avoid needless tests.
79310         Problem reported by Jim Meyering.
79311
79312 2005-06-20  Derek Price  <derek@ximbiot.com>
79313
79314         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79315         unnecessary for Autoconfs > 2.59c.
79316
79317 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79318
79319         * lib/argp.h (__option_is_short): Check upper limit of
79320         __key. Isprint() requires its argument to have the value
79321         of an unsigned char or EOF.
79322
79323 2005-06-16  Jim Meyering  <jim@meyering.net>
79324
79325         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79326         when either N or S is zero.
79327
79328 2005-06-16  Derek Price  <derek@ximbiot.com>
79329
79330         * m4/bison.m4: Declare YACC & YFLAGS precious.
79331
79332 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79333
79334         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79335         multibyte string or pattern, fall back on unibyte matching.
79336         Problem reported by James Youngman.
79337
79338 2005-06-08  Bruno Haible  <bruno@clisp.org>
79339
79340         * modules/csharpcomp: New file.
79341         * MODULES.html.sh (C#): Add csharpcomp.
79342
79343 2005-06-08  Bruno Haible  <bruno@clisp.org>
79344
79345         * m4/csharpcomp.m4: New file, from GNU gettext.
79346
79347 2005-06-08  Bruno Haible  <bruno@clisp.org>
79348
79349         * lib/csharpcomp.h: New file, from GNU gettext.
79350         * lib/csharpcomp.c: New file, from GNU gettext.
79351         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79352
79353 2005-06-08  Bruno Haible  <bruno@clisp.org>
79354
79355         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79356         warning on mingw.
79357
79358 2005-06-07  Derek Price  <derek@ximbiot.com>
79359
79360         Sync from CVS.
79361         * lib/glob_.h: Indent nested #ifdef.
79362
79363 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         Sync from coreutils.
79366         Use "file name" when talking about file names, instead of "filename"
79367         or "path", as per the GNU coding standards.
79368         * lib/mkdir-p.c: Renamed from makepath.c.
79369         (make_dir_parents): Renamed from make_path.  All callers changed.
79370         * lib/mkdir-p.h: Likewise.  All includers changed.
79371         * lib/filenamecat.c: Renamed from path-concat.c.
79372         (file_name_concat): Renamed from path_concat.  All callers changed.
79373         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79374         * lib/filenamecat.h: Likewise.  All includers changed.
79375         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79376         in comments or local variable names.
79377         * lib/basename.c: Likewise.
79378         * lib/canonicalize.c, canonicalize.h: Likewise.
79379         * lib/dirname.c, dirname.h: Likewise.
79380         * lib/euidaccess.c: Likewise.
79381         * lib/exclude.c: Likewise
79382         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79383         * lib/fsusage.c, fsuage.h: Likewise.
79384         * lib/fts.c, fts_.h: Likewise.
79385         * lib/getcwd.c: Likewise.
79386         * lib/getloadavg.c: Likewise.
79387         * lib/mkstemp.c: Likewise.
79388         * lib/mountlist.c, mountlist.h: Likewise.
79389         * lib/openat.c, openat.h: Likewise.
79390         * lib/readlink-stub.c: Likewise.
79391         * lib/readutmp.c, readutmp.h: Likewise.
79392         * lib/rename.c: Likewise.
79393         * lib/rmdir.c: Likewise.
79394         * lib/same.c: Likewise.
79395         * lib/savedir.c: Likewise.
79396         * lib/stripslash.c: Likewise.
79397         * lib/tempname.c: Likewise.
79398         * lib/xreadlink.c: Likewise.
79399         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79400         All uses changed.
79401         * lib/exclude.h: Likewise.
79402
79403         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79404         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79405         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79406         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79407         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79408         files have been getting away with it for years (MORE/BSD 4.3
79409         is extinct now).
79410         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79411         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79412
79413         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79414         Define to 256, not 255, as per modern POSIX.
79415
79416 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79417
79418         Sync from coreutils.
79419         Use "file name" when talking about file names, instead of "filename"
79420         or "path", as per the GNU coding standards.
79421         * MODULES.html.sh: mkdir-p renamed from makepath.
79422         filenamecat renamed from path-concat.
79423         * modules/filenamecat: Renamed from modules/path-concat.
79424         (Files): filenamecat.h and filenamecat.c renamed from
79425         path-concat.h and path-concat.c.
79426         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79427         (Include): filenamecat.h, not path-concat.h.
79428         * modules/mkdir-p: Renamed from modules/makepath.
79429         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79430         makepath.c.
79431         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79432         (Include): mkdir-p.h, not makepath.h.
79433
79434 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79435
79436         Sync from coreutils.
79437         * m4/mkdir-p.m4: Renamed from makepath.m4.
79438         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79439         Rename files from makepath.c to mkdir-p.c, and from
79440         makepath.h to mkdir-p.h.
79441         * m4/filenamecat.m4: Renamed from path-concat.m4.
79442         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79443         Rename files from path-concat.c to filenamecat.c,
79444         and from path-concat.h to filenamecat.h.
79445         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79446         "file name" in local variables or comments.
79447         * m4/rename.m4: Likewise.
79448
79449 2005-06-01  Bruno Haible  <bruno@clisp.org>
79450
79451         * modules/csharpexec: New file.
79452         * MODULES.html.sh (C#): New section.
79453
79454 2005-06-01  Bruno Haible  <bruno@clisp.org>
79455
79456         * m4/csharp.m4: New file, from GNU gettext.
79457         * m4/csharpexec.m4: New file, from GNU gettext.
79458
79459 2005-06-01  Bruno Haible  <bruno@clisp.org>
79460
79461         * lib/csharpexec.h: New file, from GNU gettext.
79462         * lib/csharpexec.c: New file, from GNU gettext.
79463         * lib/csharpexec.sh.in: New file, from GNU gettext.
79464
79465 2005-05-31  Derek Price  <derek@ximbiot.com>
79466             Paul Eggert  <eggert@cs.ucla.edu>
79467
79468         Sync from cvs.
79469         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79470
79471 2005-05-31  Derek Price  <derek@ximbiot.com>
79472             Paul Eggert  <eggert@cs.ucla.edu>
79473
79474         Sync from cvs.
79475         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79476
79477 2005-05-29  Derek Price  <derek@ximbiot.com>
79478
79479         * config/srclist.txt (glob_.h, glob.c): Add these files.
79480
79481 2005-05-29  Derek Price  <derek@ximbiot.com>
79482
79483         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79484         * modules/glob: New file.
79485         * modules/getlogin_r: Add link to POSIX spec in description.
79486
79487 2005-05-29  Derek Price  <derek@ximbiot.com>
79488             Paul Eggert  <eggert@cs.ucla.edu>
79489
79490         * m4/glob.m4: New file.
79491
79492 2005-05-29  Derek Price  <derek@ximbiot.com>
79493             Paul Eggert  <eggert@cs.ucla.edu>
79494
79495         * lib/glob_.h, lib/glob.c: New files.
79496
79497 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79498
79499         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79500         * modules/fts-lgpl (Depends-on): Remove gettext.
79501
79502 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79505         and don't require gt_INTTYPES_PRI.
79506
79507 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79508
79509         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79510
79511         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79512         the configuration hassle isn't worth it.
79513         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79514         (LONGEST_MODIFIER, PRIuMAX): Remove.
79515
79516 2005-05-27  Bruno Haible  <bruno@clisp.org>
79517
79518         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79519
79520 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79521
79522         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79523         _POSIX_PTHREAD_SEMANTICS for Solaris.
79524
79525 2005-05-25  Derek Price  <derek@ximbiot.com>
79526
79527         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79528
79529 2005-05-25  Derek Price  <derek@ximbiot.com>
79530             Paul Eggert  <eggert@cs.ucla.edu>
79531
79532         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79533         * lib/getlogin_r.c, getlogin_r.h: New files.
79534
79535 2005-05-25  Bruno Haible  <bruno@clisp.org>
79536             Derek Price  <derek@ximbiot.com>
79537
79538         * lib/getlogin_r.h: Simplify API documentation.
79539
79540 2005-05-23  Derek Price  <derek@ximbiot.com>
79541
79542         * modules/minmax (Files): Add m4/minmax.m4.
79543         (configure.ac): Add gl_MINMAX.
79544
79545 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79546
79547         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79548         so that unistd-safer.h (GPL'ed code) need not be included.
79549
79550 2005-05-22  Bruno Haible  <bruno@clisp.org>
79551
79552         * m4/minmax.m4: New file.
79553         Based on a patch by Derek Price <derek@ximbiot.com>.
79554
79555 2005-05-22  Bruno Haible  <bruno@clisp.org>
79556
79557         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79558         (INT64_MIN): Fix definition.
79559         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79560
79561         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79562         NEED_SIGNED_INT_TYPES.
79563
79564         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79565         HAVE_SYSTEM_INTTYPES.
79566
79567 2005-05-22  Bruno Haible  <bruno@clisp.org>
79568
79569         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79570         Also include <sys/param.h> if it defines MIN, MAX.
79571         Based on a patch by Derek Price <derek@ximbiot.com>.
79572
79573 2005-05-21  Jim Meyering  <jim@meyering.net>
79574
79575         * modules/fts (Files): Add m4/inttypes-pri.m4.
79576         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79577
79578 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79579
79580         New fts module.
79581         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79582         (setup_dir, free_dir): New functions.
79583         (enter_dir, leave_dir): Define trivial
79584         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79585         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79586         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79587         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79588         Move to fts-cycle.c.
79589         (fts_open): Use setup_dir.
79590         (fts_close): Use free_dir.
79591         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79592         This adds a label and some gotos, but the alternatives were messier.
79593         Check for memory allocation failure when entering a dir.
79594         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79595         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79596         (FTS): New member fts_cycle, that is a union that contains the
79597         old active_dir_ht and cycle_state.  All uses changed to mention
79598         fts_cycle.ht and fts_cycle.state.
79599         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79600         fts.c, with the following changes:
79601         (setup_dir, free_dir): New functions.
79602         (enter_dir): Now returns bool.  Return true if successful, false
79603         if memory exhausted.  All callers changed.
79604         Do not bother partly cleaning up on
79605         memory allocation failure; that is free_dir's job.
79606         However, free ad if hash_insert fails, to avoid memory leak.
79607         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79608         fts->fts_options to see which union member to use.
79609
79610 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79611
79612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79613         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79614
79615 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79616
79617         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79618
79619 2005-05-20  Jim Meyering  <jim@meyering.net>
79620
79621         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79622         Now a macro, to pacify GCC.
79623
79624 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79625
79626         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79627         of -1.
79628
79629 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79630
79631         * lib/chown.c (rpl_chown): Return -1 on failure.
79632
79633 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79634
79635         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79636         Don't check for stddef.h.
79637         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79638         don't use its results.
79639         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79640         since we include them unconditionally.  Don't require
79641         AM_STDBOOL_H, since stdbool is a prerequisite.
79642         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79643         since we assume C89 or better.
79644         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79645         as we don't use their results.
79646         Don't check for fchdir, memmove, memset, strrchr, as we use
79647         them unconditionally.
79648         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79649         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79650
79651 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79654         Include <stddef.h> unconditionally, since we assume C89 now.
79655         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79656         * lib/fts.c: Include fts_.h first, to check interface.
79657         Do not include intprops.h; no longer needed.
79658         Include cycle-check.h and hash.h, since fts_.h no longer does.
79659         Remove unnecessary casts of closedir to void.
79660         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79661         decide whether to decrement nlinks.
79662         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79663         (FTS): Use struct hash_table * instead of Hash_table, so that
79664         we no longer need to include hash.h here.
79665
79666 2005-05-18  Jim Meyering  <jim@meyering.net>
79667
79668         * modules/dirfd (License): Change to LGPL.  Most of the code
79669         is already in the public domain.
79670
79671 2005-05-18  Jim Meyering  <jim@meyering.net>
79672
79673         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79674         Reported by Yoann Vandoorselaere.
79675
79676 2005-05-17  Jim Meyering  <jim@meyering.net>
79677
79678         * m4/fts.m4: New file, from coreutils.
79679
79680 2005-05-17  Jim Meyering  <jim@meyering.net>
79681
79682         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79683
79684 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79685
79686         Sync from coreutils.
79687         * m4/unlinkdir.m4: New file.
79688
79689 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         Sync from coreutils.
79692         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79693         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79694         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79695         White space changes only.
79696         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79697         special.
79698         * lib/yesno.c: Include getline.h, not ctype.h.
79699         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79700         Use getline to remove arbitrary restriction on response length.
79701
79702 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79703
79704         * config/srclist-update: Spell out "Street" in FSF postal
79705         mail address; this is the style the FSF seems to prefer.
79706
79707         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79708         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79709         this updates FSF postal mail address.
79710
79711         Sync from coreutils.
79712         * modules/unlinkdir: New file.
79713         * modules/yesno (Depends-on): Add getline.
79714         * MODULES.html.sh (File system functions): Add unlinkdir.
79715
79716 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79717
79718         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79719         lib/strsep.h:
79720         Change the initial comment to refer to GPL, not LGPL.
79721         gnulib-tool will change it to LGPL as needed.
79722
79723         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79724         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79725         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79726         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79727         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79728         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79729         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79730         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79731         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79732         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79733         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79734         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79735         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79736         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79737         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79738         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79739         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79740         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79741         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79742         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79743         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79744         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79745         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79746         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79747         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79748         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79749         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79750         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79751         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79752         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79753         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79754         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79755         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79756         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79757         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79758         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79759         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79760         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79761         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79762         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79763         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79764         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79765         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79766         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79767         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79768         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79769         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79770         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79771         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79772         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79773         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79774         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79775         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79776         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79777         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79778         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79779         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79780         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79781         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79782         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79783         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79784         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79785         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79786         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79787         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79788         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79789         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79790         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79791         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79792         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79793         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79794         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79795         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79796         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79797         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79798         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79799         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79800         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79801         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79802         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79803         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79804         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79805         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79806         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79807         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79808         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79809         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79810         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79811         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79812         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79813         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79814         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79815         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79816         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79817         lib/yesno.c, lib/yesno.h:
79818         Update FSF postal mail address.
79819
79820 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79821
79822         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79823         tests/test-memmem.c, tests/test-stpncpy.c:
79824         Update FSF postal mail address.
79825
79826 2005-05-13  Bruno Haible  <bruno@clisp.org>
79827
79828         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79829         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79830         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79831         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79832         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79833         Add support for 64-bit integers in the MSVC compiler.
79834
79835 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79836
79837         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79838
79839 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79840
79841         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79842
79843 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79844
79845         * doc/getdate.texi (General date syntax): Don't say that date
79846         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79847         Problem reported by Nic Ferrier.
79848
79849 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79850
79851         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79852         specified in ai_socktype. Fix invalid ai_protocol
79853         check. ai_protocol is usually set to 0 or depending on
79854         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79855         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79856         ai_socktype / ai_protocol in the returned addrinfo structure.
79857
79858 2005-05-10  Simon Josefsson  <jas@extundo.com>
79859
79860         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79861         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79862
79863 2005-05-10  Karl Berry  <karl@gnu.org>
79864
79865         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79866         (from http://www.gnu.org/licenses).
79867         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79868         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79869         fdl.texi suffices.
79870
79871 2005-05-10  Karl Berry  <karl@gnu.org>
79872
79873         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79874         (COPYING.DOC): remove.
79875
79876         * config/srclist-update: new FSF address.
79877
79878 2005-05-10  Derek Price  <derek@ximbiot.com>
79879
79880         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79881         possible.
79882
79883 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79884             Bruno Haible  <bruno@clisp.org>
79885
79886         * modules/inet_ntop: New file.
79887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79888         inet_ntop.
79889
79890 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79891             Bruno Haible  <bruno@clisp.org>
79892
79893         * m4/inet_ntop.m4: New file.
79894
79895 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79896             Bruno Haible  <bruno@clisp.org>
79897
79898         * lib/inet_ntop.h: New file.
79899         * lib/inet_ntop.c: New file, from glibc with modifications.
79900
79901 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * modules/time_r (License): Change to LGPL.
79904         * modules/extensions (License): Change to LGPL.  Actually,
79905         the license is more permissive than that, but currently gnulib-tool
79906         doesn't know how to handle more-permissive licenses.
79907
79908         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79909         Problem reported by Dave Love.
79910
79911 2005-05-08  Jim Meyering  <jim@meyering.net>
79912
79913         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79914         blank.
79915
79916 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79917
79918         * modules/argmatch (Depends-on): Add stdbool.
79919         * modules/backupfile (Depends-on): Likewise.
79920         * modules/chdir-long (Depends-on): Likewise.
79921         * modules/closeout (Depends-on): Likewise.
79922         * modules/cycle-check (Depends-on): Likewise.
79923         * modules/dirname (Depends-on): Likewise.
79924         * modules/fnmatch (Depends-on): Likewise.
79925         * modules/fsusage (Depends-on): Likewise.
79926         * modules/fwriteerror (Depends-on): Likewise.
79927         * modules/getcwd (Depends-on): Likewise.
79928         * modules/getloadavg (Depends-on): Likewise.
79929         * modules/hard-locale (Depends-on): Likewise.
79930         * modules/makepath (Depends-on): Likewise.
79931         * modules/mountlist (Depends-on): Likewise.
79932         * modules/nanosleep (Depends-on): Likewise.
79933         * modules/posixtm (Depends-on): Likewise.
79934         * modules/quotearg (Depends-on): Likewise.
79935         * modules/readtokens (Depends-on): Likewise.
79936         * modules/readtokens0 (Depends-on): Likewise.
79937         * modules/readutmp (Depends-on): Likewise.
79938         * modules/save-cwd (Depends-on): Likewise.
79939         * modules/strftime (Depends-on): Likewise.
79940         * modules/userspec (Depends-on): Likewise.
79941         * modules/utimecmp (Depends-on): Likewise.
79942         * modules/xgetcwd (Depends-on): Likewise.
79943         * modules/xnanosleep (Depends-on): Likewise.
79944         * modules/xstrtod (Depends-on): Likewise.
79945         * modules/yesno (Depends-on): Likewise.
79946
79947 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79948
79949         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79950         needless checks.
79951
79952 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79953
79954         Merge from coreutils.  Among other things,
79955         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79956         * lib/fd-safer.c: New file.
79957         * lib/fcntl-safer.h, open-safer.c: Remove.
79958         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79959         * lib/dup-safer.c: Include unistd-safer.h first.
79960         Don't include errno.h.
79961         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79962         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79963         * lib/file-type.c: Rely on file-type.h change.
79964         * lib/getloadavg.c: Include unistd-safer.h.
79965         (getloadavg): Use safer open.
79966         * lib/getusershell.c: Include "stdio-safer.h".
79967         (getusershell): Use safer fopen.
79968         * lib/long-options.c (long_options): Use NULL rather than 0.
79969         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79970         'free'.
79971         * lib/modechange.c: Likewise.
79972         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79973         (MODE_DONE): New constant.
79974         (struct mode_change): Remove 'next' member.
79975         (make_node_op_equals): New function; like the old one of the
79976         same name, except it allocates an array.
79977         (mode_compile, mode_create_from_ref): Use it.
79978         (mode_compile): Allocate result as an array, not a linked list.
79979         Parse octal string ourself, so that we catch mistakes like "+0".
79980         (mode_adjust): Arg is an array, not a linked list.
79981         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79982         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79983         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79984         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79985         Remove.  This is now stat-macros.h's job.
79986         (talloc): Remove.  All callers replaced by xalloc, so that
79987         our invokers don't have to worry about reporting memory failures.
79988         (make_node_op_equals): Remove.
79989         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79990         New constants.
79991         (struct mode_change): Moved here from modechange.h.
79992         (mode_append_entry): Remove.
79993         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79994         apps to have incorrect behavior.  Use simpler algorithm for head
79995         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79996         Detect more invalid usages rather than having somewhat-random behavior.
79997         Don't insert an "a=" action, as that leads to incorrect behavior.
79998         (mode_compile, mode_create_from_ref): Return NULL on error instead
79999         of an enum, since now there's only one way to have an error.  All
80000         callers changed.
80001         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
80002         at the correct time.  Simplify calculation of "+u" and its ilk.
80003         Don't mishandle "+X".
80004         (mode_free): Remove "register" and localize decls.
80005         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
80006         (struct mode_change): Move to modechange.c; callers don't
80007         need to see this stuff.
80008         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
80009         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
80010         (mode_change, mode_adjust): Reflect the new signatures noted above.
80011         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
80012         that might redefine system include files.
80013         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
80014         (my_usleep): Use NULL rather than (void *) 0.
80015         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
80016         Use siginterrupt to specify that system calls should be interrupted.
80017         (rpl_nanosleep): Move initialization of suspended closer to call of
80018         my_usleep.
80019         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
80020         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
80021         (desirable_utmp_entry): New function.
80022         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
80023         using x2nrealloc, to simplify logic.
80024         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
80025         size calculation.  Do not assume utmp file is a regular file.
80026         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
80027         (READ_UTMP_CHECK_PIDS): New constant.
80028         * lib/save-cwd.c: Include unistd-safer.h.
80029         (save_cwd): Use fd_safer.
80030         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
80031         [!_LIBC] Include "stat-macros.h" instead.
80032         * lib/unistd-safer.h (fd_safer): New decl.
80033
80034 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80035
80036         * modules/getloadavg (Depends-on): Add unistd-safer.
80037         * modules/getusershell (Depends-on): Add stdio-safer.
80038         * modules/lstat (Depends-on): Remove xalloc.
80039         * modules/mkstemp (Depends-on): Add stat-macros.
80040         * modules/modechange (Depends-on): Remove xstrtol.
80041         Add stat-macros, xalloc.
80042         * modules/save-cwd (Depends-on): Add unistd-safer.
80043         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
80044         * modules/unistd-safer (Files): Add lib/fd-safer.c
80045         (Makefile.am): Remove lib_SOURCES.
80046
80047         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
80048         Remove fcntl-safer; unistd-safer supersedes it.
80049
80050 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
80053         AC_HEADER_STAT.
80054         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
80055         (gl_PREREQ_CHOWN): Remove.
80056         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
80057         it.  Don't require AC_HEADER_STAT.
80058         (gl_PREREQ_LSTAT): Remove.
80059         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
80060         Don't require AC_HEADER_STAT.
80061         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
80062         (gl_PREREQ_RMDIR): Remove.
80063         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
80064         mention stat-macros.h or AC_HEADER_STAT, since we'll make
80065         the stat-macros module a prerequisite.
80066         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
80067         * m4/filemode.m4 (gl_FILEMODE): Likewise.
80068         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
80069         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
80070         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
80071         variable names.
80072         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
80073         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
80074         variable prefixes.
80075         * m4/fcntl-safer.m4: Remove.
80076         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
80077         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
80078         Invoke gl_PREREQ_FD_SAFER.
80079         (gl_PREREQ_FD_SAFER): New macro.
80080         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
80081         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
80082         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
80083         Remove duplicate call to AC_LIBOBJ(readutmp).
80084         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
80085
80086         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
80087         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
80088
80089 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
80090
80091         * MODULES.html.sh (Misc): Add byteswap.
80092
80093 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80094
80095         * modules/getcwd (Depends-on): Add extensions.
80096         * modules/openat (Depends-on): Likewise.
80097
80098 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80099
80100         * modules/byteswap: New file.
80101
80102 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80103
80104         * m4/byteswap.m4: New file.
80105
80106 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
80107
80108         * lib/byteswap_.h: New file.
80109
80110 2005-04-25  Karl Berry  <karl@gnu.org>
80111
80112         * m4/gettext.m4: Update from GNU gettext 0.14.4.
80113
80114 2005-04-25  Albert Chin  <china@thewrittenword.com>
80115
80116         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
80117         Toolkit C bug.
80118
80119 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
80120
80121         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
80122         (func_ln_if_changed): Remove forcibly for no error message
80123         in case file does not exist.
80124
80125 2005-04-19  Simon Josefsson  <jas@extundo.com>
80126
80127         * gnulib-tool (Options): Make --symlink mean --symbolic.
80128
80129 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
80130
80131         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
80132
80133 2005-04-16  Simon Josefsson  <jas@extundo.com>
80134
80135         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
80136
80137 2005-04-15  Simon Josefsson  <jas@extundo.com>
80138
80139         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
80140
80141 2005-04-15  Simon Josefsson  <jas@extundo.com>
80142
80143         * gnulib-tool: Rename --symlink to --symbolic.
80144
80145 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
80146
80147         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
80148         symbolic links to files instead of copying/moving.  Add --aux-dir,
80149         specifying directory relative --dir where auxiliary build tools
80150         are placed.
80151
80152 2005-04-14  Bruno Haible  <bruno@clisp.org>
80153
80154         * modules/allocsa (License): Change to LGPL.
80155         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80156
80157 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80158
80159         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
80160         that "UTC +1 second" continues to work.  Problem reported
80161         by Dmitry V. Levin.
80162         (relunit_snumber): New rule.
80163         (relunit): Use it.
80164
80165 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80166
80167         * lib/getdate.y (universal_time_zone_table): New constant.
80168         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80169         universal_time_zone_table.
80170         (lookup_zone): Prefer universal_time_zone_table to
80171         local_time_zone_table, so that "GMT" time stamps are allowed in
80172         London during the summer.  Problem reported by Ian Abbott.
80173
80174 2005-04-12  Jim Meyering  <jim@meyering.net>
80175
80176         * lib/human.c (humblock): Set *options even when returning due to
80177         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80178         warning from gcc-4.
80179
80180 2005-04-09  Jim Meyering  <jim@meyering.net>
80181
80182         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80183         -Wuninitialized: initialize tm0.tm_year.
80184
80185 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80188         count, since there's no maximum.  All uses changed.
80189         Add member dsts_seen.
80190         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80191         not being INT_MAX.
80192         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80193         Use pc_rels_seen to decide whther a date is absolute.
80194
80195         * lib/getdate.y (number): Don't overwrite year.
80196         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80197         check.
80198
80199 2005-04-02  Simon Josefsson  <jas@extundo.com>
80200
80201         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80202         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80203
80204 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80205
80206         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80207         where no absolute path name can be longer than PATH_MAX.
80208
80209 2005-03-27  Jim Meyering  <jim@meyering.net>
80210
80211         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80212
80213 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80214
80215         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80216         "one's complement" -> "ones' complement" in comment, as per Knuth.
80217         "value of type" -> "type or expression" in comment.
80218         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80219
80220 2005-03-26  Jim Meyering  <jim@meyering.net>
80221
80222         Comment nits.
80223         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80224         Correct typos: s/or/of/.
80225
80226 2005-03-26  Jim Meyering  <jim@meyering.net>
80227
80228         * modules/check-include-files: Move to ../ and rename to...
80229         * check-module: ...this.
80230
80231 2005-03-25  Jim Meyering  <jim@meyering.net>
80232
80233         * modules/xvasprintf (Files): Add xalloc.h.
80234
80235 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80236
80237         * modules/gettext (Files): config/config.rpath ->
80238         build-aux/config.rpath
80239         * modules/iconv (Files): Likewise.
80240         Problem reported by Oskar Liljeblad.
80241
80242 2005-03-23  Jim Meyering  <jim@meyering.net>
80243
80244         * modules/check-include-files: New script to check for
80245         missing dependencies, multiple includes, etc.
80246
80247         * modules/c-strtold (Depends-on): Add xalloc.
80248         * modules/c-strtod (Depends-on): Add xalloc.
80249         * modules/hash (Depends-on): Add xalloc.
80250         (Files): Remove lib/xalloc.h.
80251
80252         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80253         * modules/userspec (Files): Add lib/inttostr.h.
80254
80255 2005-03-23  Jim Meyering  <jim@meyering.net>
80256
80257         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80258
80259 2005-03-22  Jim Meyering  <jim@meyering.net>
80260
80261         * modules/stat-macros: New module.
80262         * modules/canonicalize, modules/euidaccess, modules/file-type,
80263         * modules/filemode, modules/lchown, modules/makepath,
80264         * modules/rmdir, modules/stat: Depend on new stat-macros module
80265         rather than listing lib/stat-macros.h manually.
80266         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80267
80268 2005-03-22  Jim Meyering  <jim@meyering.net>
80269
80270         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80271
80272 2005-03-22  Bruno Haible  <bruno@clisp.org>
80273
80274         * config/srclist.txt: Replace target directory 'config' with
80275         'build-aux'.
80276         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80277         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80278         ../build-aux/.
80279
80280 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         * modules/chdir-long (Depends-on): Add mempcpy.
80283
80284         * modules/acl, modules/backupfile, modules/c-strtod,
80285         modules/c-strtold, modules/canon-host, modules/canonicalize,
80286         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80287         modules/exclude, modules/exitfail, modules/file-type,
80288         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80289         modules/getdate, modules/getline, modules/getpagesize,
80290         modules/getpass, modules/getugroups, modules/group-member,
80291         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80292         modules/inttostr, modules/long-options, modules/makepath,
80293         modules/md5, modules/memcasecmp, modules/memcoll,
80294         modules/modechange, modules/mountlist, modules/path-concat,
80295         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80296         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80297         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80298         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80299         modules/strftime, modules/strndup, modules/strverscmp,
80300         modules/timespec, modules/unlocked-io, modules/userspec,
80301         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80302         modules/yesno:
80303         Remove lib_SOURCES line from Makefile.am section, as this is now
80304         done automatically by the corresponding Autoconf macro.
80305
80306 2005-03-21  Jim Meyering  <jim@meyering.net>
80307
80308         Changes imported from coreutils.
80309
80310         * lib/cycle-check.c: Don't include xalloc.h.
80311
80312         * lib/path-concat.c: Don't include assert.h.
80313         (path_concat): Remove assertion that would have triggered
80314         for ABASE starting with more than one slash.
80315         Reported by Andreas Schwab.
80316
80317         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80318         properly when ABASE is an absolute file name.
80319         Correct the description of this function.
80320         Include <assert.h>.
80321         Add an assertion and a test driver.
80322         This fixes a bug introduced on 2004-07-02.
80323         Andreas Schwab reported the resulting failure of cp --parents:
80324         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80325
80326 2005-03-21  Jim Meyering  <jim@meyering.net>
80327
80328         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80329         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80330
80331 2005-03-21  Jim Meyering  <jim@meyering.net>
80332         and  Paul Eggert  <eggert@cs.ucla.edu>
80333
80334         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80335         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80336         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80337         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80338         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80339         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80340         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80341         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80342         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80343         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80344         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80345         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80346         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80347         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80348         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80349         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80350         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80351         for these modules.
80352
80353 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80354
80355         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80356         (which shouldn't happen), generate nothing instead of returning 0
80357         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80358
80359 2005-03-16  Bruno Haible  <bruno@clisp.org>
80360
80361         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80362         HAVE_LONGLONG_64BIT.
80363
80364 2005-03-16  Bruno Haible  <bruno@clisp.org>
80365
80366         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80367         HAVE_LONGLONG_64BIT.
80368
80369 2005-03-16  Bruno Haible  <bruno@clisp.org>
80370
80371         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80372         HAVE_LONGLONG_64BIT.
80373
80374 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80375
80376         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80377         reliably distinguish strftime failure from empty output on POSIX
80378         hosts.
80379
80380 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80381
80382         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80383         (iconv_string): Don't guess a size-zero buffer, as that might cause
80384         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80385         result would be 'too large', where 'too large' is (heuristically)
80386         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80387         overflow concerns.  This will prevent some unwanted malloc failures
80388         when the inputs are very large.
80389
80390 2005-03-15  Karl Berry  <karl@gnu.org>
80391
80392         * config/srclist.txt (config.rpath): from gettext.
80393         * config/config.rpath: update.
80394
80395 2005-03-15  Bruno Haible  <bruno@clisp.org>
80396
80397         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80398         to 'negate'.
80399
80400         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80401         variable.
80402
80403         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80404         results.
80405
80406 2005-03-14  Simon Josefsson  <jas@extundo.com>
80407
80408         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80409         <fx@gnu.org>.
80410
80411 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80412
80413         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80414         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80415         intprops.h.
80416         * lib/strtol.c: Likewise.
80417
80418 2005-03-14  Jim Meyering  <jim@meyering.net>
80419
80420         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80421         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80422         to be nonzero so that we (and caller) can detect the difference
80423         between a valid zero-length expansion and an error return, even
80424         when the underlying strftime fails before writing anything into
80425         that location.
80426
80427 2005-03-14  Bruno Haible  <bruno@clisp.org>
80428
80429         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80430         Update from GNU gettext 0.14.3.
80431
80432 2005-03-10  Jim Meyering  <jim@meyering.net>
80433
80434         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80435
80436 2005-03-10  Jim Meyering  <jim@meyering.net>
80437
80438         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80439         so that this module works on systems without fchdir.
80440
80441 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         Factor int-properties macros into a single file, except for
80444         glibc-related files.
80445         * lib/intprops.h: New file.
80446         * lib/getloadavg.c: Include it instead of limits.h.
80447         (INT_STRLEN_BOUND): Remove.
80448         * lib/human.c: Include intprops.h.
80449         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80450         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80451         302/1000.
80452         * lib/inttostr.h: Include intprops.h instead of limits.h.
80453         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80454         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80455         for consistency with intprops.h.
80456         (time_t_is_integer, twos_complement_arithmetic): Use them.
80457         * lib/sig2str.h: Include <signal.h>, intprops.h.
80458         (INT_STRLEN_BOUND): Remove.
80459         * lib/strftime.c (TYPE_SIGNED): Remove.
80460         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80461         * lib/strtol.c: Adjust comments to match intprops.h.
80462         * lib/userspec.c: Include intprops.h.
80463         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80464         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80465         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80466         instead of rolling our own expressions.
80467         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80468
80469         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80470         instead of int.
80471         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80472         the right thing even if adding 1900 would overflow.  Similarly
80473         for tm_mon + 1 and tm_yday + 1.
80474         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80475         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80476         (DO_SIGNED_NUMBER): New macro.
80477         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80478
80479 2005-03-07  Bruno Haible  <bruno@clisp.org>
80480
80481         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80482
80483 2005-03-07  Bruno Haible  <bruno@clisp.org>
80484
80485         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80486
80487 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80488
80489         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80490         (func_import): Only replace files via --import when they have actually
80491         changed.
80492
80493 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80494
80495         * m4/mmap-anon.m4: New file.
80496         * m4/pagealign_alloc.m4: New file.
80497
80498 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80499             Bruno Haible  <bruno@clisp.org>
80500
80501         * modules/pagealign_alloc: New file.
80502         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80503
80504 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80505             Bruno Haible  <bruno@clisp.org>
80506
80507         * lib/pagealign_alloc.h: New file.
80508         * lib/pagealign_alloc.c: New file.
80509
80510 2005-03-03  Bruno Haible  <bruno@clisp.org>
80511
80512         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80513         Use an all-permissive copyright notice, recommended by RMS.
80514
80515 2005-03-02  Bruno Haible  <bruno@clisp.org>
80516
80517         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80518         of AIX, the replacement has to be done only after <string.h> is
80519         included, therefore not in config.h. stpncpy.h does the replacement,
80520         and stpncpy.c uses it.
80521
80522 2005-03-02  Bruno Haible  <bruno@clisp.org>
80523
80524         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80525         stpncpy.c uses it.
80526
80527 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80528
80529         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80530         The workaround isn't strictly needed for POSIX conformance, and
80531         it's too much of a pain to configure and maintain.  We'll ask
80532         people to fix their kernels instead.
80533         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80534         (NANOSLEEP_BUG_WORKAROUND): Remove.
80535         (xnanosleep): Remove the workaround.
80536
80537 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80538
80539         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80540         Reported by Derek Price.
80541         (Include): Add "timespec.h".
80542
80543         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80544
80545 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80548         to detect nanosleep bug.
80549
80550 2005-03-01  Bruno Haible  <bruno@clisp.org>
80551
80552         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80553
80554 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80555
80556         * modules/gethrxtime: New file.
80557         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80558         (Depends-on): Add gethrxtime.
80559         (configure.ac): Add gl_XNANOSLEEP.
80560         (Makefile.am): Remove lib_SOURCES line.
80561
80562 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80563
80564         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80565         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80566
80567 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80568
80569         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80570         * lib/timespec.h (gettime): Return void, since it always
80571         succeeds now.  All uses changed.
80572         * lib/gettime.c (gettime): Likewise.
80573         [HAVE_NANOTIME]: Prefer nanotime.
80574         Assume gettimeofday succeeds, as POSIX requires.
80575         Assime time () succeeds, since other code already does.
80576         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80577         (timespec_subtract): Remove.
80578         (NANOSLEEP_BUG_WORKAROUND): New constant.
80579         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80580         things considerably.  Use it only on GNU/Linux hosts, since the
80581         workaround shouldn't be needed elsewhere.
80582
80583 2005-02-24  Bruno Haible  <bruno@clisp.org>
80584
80585         * modules/gettext (Files): Add m4/glibc2.m4.
80586
80587 2005-02-24  Bruno Haible  <bruno@clisp.org>
80588
80589         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80590         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80591         * m4/progtest.m4:
80592         Update from GNU gettext 0.14.2.
80593         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80594
80595 2005-02-24  Bruno Haible  <bruno@clisp.org>
80596
80597         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80598         * lib/config.charset: Update from GNU gettext 0.14.2.
80599
80600 2005-02-24  Bruno Haible  <bruno@clisp.org>
80601
80602         * lib/gettext.h: Update from GNU gettext 0.14.2.
80603
80604 2005-02-23  Simon Josefsson  <jas@extundo.com>
80605
80606         * m4/iconvme.m4: New file.
80607
80608 2005-02-23  Jim Meyering  <jim@meyering.net>
80609
80610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80611         change.
80612         Thanks to Bruno Haible for catching it.
80613
80614 2005-02-22  Simon Josefsson  <jas@extundo.com>
80615
80616         * modules/iconvme: New file.
80617
80618         * MODULES.html.sh: Add iconvme.
80619
80620 2005-02-22  Simon Josefsson  <jas@extundo.com>
80621
80622         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80623
80624 2005-02-22  Simon Josefsson  <jas@extundo.com>
80625
80626         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80627
80628 2005-02-22  Jim Meyering  <jim@meyering.net>
80629
80630         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80631         s/ifndef/ifdef/.
80632
80633 2005-02-20  Neil Conway  <neilc@samurai.com>
80634
80635         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80636         returned by OSX/Darwin if the specified buffer is not large
80637         enough for the hostname.
80638
80639 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80640
80641         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80642         pass it to _help, otherwise the latter coredumps trying to
80643         dereference state.root_argp.
80644
80645 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80646
80647         * modules/chdir-long (Depends-on): Add memrchr.
80648         * modules/memrchr (Files): Add lib/memrchr.h.
80649         (Include): "memrchr.h".
80650
80651 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80652
80653         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80654
80655 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80656
80657         * lib/memrchr.h: New file.
80658         * lib/chdir-long.c: Include it.
80659         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80660         Don't bother including stddef.h.
80661
80662 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80663
80664         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80665         inclusion.
80666         Include <sys/types.h>, for dev_t.
80667         (ME_DUMMY, ME_REMOTE): Move from here....
80668         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80669         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80670         Dmitry V. Levin.
80671         Include mountlist.h first, to test the interface.
80672
80673 2005-01-29  Bruno Haible  <bruno@clisp.org>
80674
80675         * lib/progname.c (program_name): Initialize.
80676         Needed when linking statically on MacOS X.
80677
80678 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80679
80680         Sync from coreutils.
80681         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80682         (Depends-on): Add c-strtod.
80683         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80684
80685 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80686
80687         Sync from coreutils.
80688         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80689
80690         Remove files that are specific to coreutils.
80691         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80692
80693 2005-01-28  Bruno Haible  <bruno@clisp.org>
80694
80695         * modules/javacomp: New file.
80696         * MODULES.html.sh (Java): Add javacomp.
80697
80698 2005-01-28  Bruno Haible  <bruno@clisp.org>
80699
80700         * m4/javacomp.m4: New file, from GNU gettext.
80701
80702 2005-01-28  Bruno Haible  <bruno@clisp.org>
80703
80704         * lib/javacomp.sh.in: New file, from GNU gettext.
80705         * lib/javacomp.h: New file, from GNU gettext.
80706         * lib/javacomp.c: New file, from GNU gettext.
80707
80708 2005-01-26  Simon Josefsson  <jas@extundo.com>
80709
80710         * lib/gai_strerror.c: Use GPL in header.
80711
80712 2005-01-26  Bruno Haible  <bruno@clisp.org>
80713
80714         * modules/javaexec: New file.
80715         * MODULES.html.sh (Java): Add javaexec.
80716
80717 2005-01-26  Bruno Haible  <bruno@clisp.org>
80718
80719         * m4/javaexec.m4: New file, from GNU gettext.
80720
80721 2005-01-26  Bruno Haible  <bruno@clisp.org>
80722
80723         * lib/javaexec.sh.in: New file, from GNU gettext.
80724         * lib/javaexec.h: New file, from GNU gettext.
80725         * lib/javaexec.c: New file, from GNU gettext.
80726
80727 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80728
80729         * modules/lchown (Depends-on): Remove lchown.h
80730
80731 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80732
80733         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80734         must be defined if the header file was not found, in order
80735         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80736
80737 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80738
80739         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80740         initializers for struct pentry_state.
80741         (__argp_error): Check return value of __asprintf
80742         (__argp_failure): Translate error message
80743
80744         * lib/argp-parse.c: Removed braces around the expansion of N_()
80745
80746 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80747
80748         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80749         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80750         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80751         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80752         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80753         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80754         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80755         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80756         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80757         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80758         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80759         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80760         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80761         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80762         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80763         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80764         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80765         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80766         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80767         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80768         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80769         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80770         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80771         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80772         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80773         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80774         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80775         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80776         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80777         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80778         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80779         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80780         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80781         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80782         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80783         Use an all-permissive copyright notice, recommended by RMS.
80784
80785 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80786
80787         * modules/chdir-long (Depends-on): Remove mempcpy.
80788
80789 2005-01-21  Jim Meyering  <jim@meyering.net>
80790
80791         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80792         same value as for Solaris 9.
80793
80794         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80795         component length.  This included changing the parameter to be
80796         of type `char *' rather than `char const *'.
80797         * lib/chdir-long.h (chdir_long): Update prototype.
80798
80799         * lib/openat.c (fdopendir, fstatat): New functions.
80800         * lib/openat.h: Include headers required for use of DIR and struct
80801         stat.
80802         [AT_SYMLINK_NOFOLLOW]: Define.
80803         (fdopendir, fstatat): Add prototypes.
80804
80805 2005-01-21  Bruno Haible  <bruno@clisp.org>
80806
80807         * modules/classpath: New file.
80808         * MODULES.html.sh (Java): Add classpath.
80809
80810 2005-01-21  Bruno Haible  <bruno@clisp.org>
80811
80812         * lib/classpath.h: New file, from GNU gettext.
80813         * lib/classpath.c: New file, from GNU gettext.
80814
80815 2005-01-20  Simon Josefsson  <jas@extundo.com>
80816
80817         * modules/version-etc-fsf: New file.
80818
80819 2005-01-20  Simon Josefsson  <jas@extundo.com>
80820
80821         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80822         * lib/version-etc.c: Remove version_etc_copyright.
80823         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80824         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80825
80826 2005-01-20  Simon Josefsson  <jas@extundo.com>
80827
80828         * lib/base64.h (isbase64): Add.
80829
80830         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80831         using a unsigned prototype, don't inline.
80832         (base64_decode): Use it.
80833
80834 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80835
80836         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80837         it.
80838
80839 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80840
80841         * lib/save-cwd.c (save_cwd): Remove code to support the case
80842         where fchdir is missing or flaky.
80843
80844 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80845
80846         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80847
80848 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80849
80850         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80851         AC_LIBSOURCES now does this.
80852         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80853         with new ullong_max module.
80854
80855 2005-01-19  Bruno Haible  <bruno@clisp.org>
80856
80857         * modules/sh-quote: New file.
80858         * MODULES.html.sh (Executing programs): Add sh-quote.
80859
80860 2005-01-19  Bruno Haible  <bruno@clisp.org>
80861
80862         * lib/sh-quote.h: New file, from GNU gettext.
80863         * lib/sh-quote.c: New file, from GNU gettext.
80864
80865 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         Merge from coreutils.
80868         * m4/ullong_max.m4: New file.
80869         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80870         (gl_MACROS): Assume localeconv exists.
80871
80872 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80873
80874         Merge changes from coreutils, as described below in several
80875         changelogs dated today.
80876
80877         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80878         (O_DIRECTORY): Remove; not needed here, since "." must be
80879         a directory.  All uses removed.
80880         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80881         universal on Suns, and we also need to test for IRIX.
80882         Revamp code to use 'if' rather than '#if'.
80883         Avoid unnecessary comparison of cwd->desc to 0.
80884
80885         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80886         for known valid error numbers rather than observed invalid ones.
80887
80888 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80889
80890         * modules/ullong_max: New file.
80891
80892         * modules/chdir-long, modules/openat: New files.
80893         * modules/save-cwd (Depends-on): Depend on chdir-long.
80894         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80895
80896 2005-01-18  Jim Meyering  <jim@meyering.net>
80897
80898         Merge from coreutils.
80899         * m4/chdir-long.m4, m4/openat.m4: New files.
80900         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80901         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80902         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80903         is sane and DOES follow symlinks.  Besides, testing 20 different
80904         systems found no broken chown implementations.
80905         Prompted by a change in rsync's copy of this macro.
80906         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80907
80908         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80909
80910         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80911         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80912         NULL-means-set-to-current-time semantics.
80913         Remove temporary file immediately, rather than waiting
80914         for configure's at-exit trap code to do it.
80915
80916 2005-01-18  Jim Meyering  <jim@meyering.net>
80917
80918         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80919
80920         * lib/utimens.c (futimens): Account for the fact that futimes
80921         can also fail with errno == ENOSYS or errno == ENOENT.
80922         Patch from Dmitry V. Levin.
80923
80924         Change the name of the robust chdir function from chdir to chdir_long.
80925         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80926         (restore_cwd): Use chdir_long, not chdir.
80927         * lib/chdir-long.c: Renamed from chdir.c.
80928         * lib/chdir-long.h: Renamed from chdir.h.
80929         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80930         Hurd.
80931
80932 2005-01-18  Bruno Haible  <bruno@clisp.org>
80933
80934         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80935         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80936         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80937         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80938         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80939         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80940         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80941         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80942         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80943         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80944         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80945         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80946         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80947         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80948         Use an all-permissive copyright notice, recommended by RMS.
80949
80950 2005-01-18  Bob Proulx  <bob@proulx.com>
80951
80952         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80953         simplify offsetof() macro construct to avoid compile failure with
80954         native HP-UX 11.0 ANSI C compiler.
80955
80956 2005-01-17  Bruno Haible  <bruno@clisp.org>
80957
80958         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80959         redundant because stpncpy.m4 takes care of it.
80960
80961 2005-01-17  Bruno Haible  <bruno@clisp.org>
80962
80963         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80964
80965 2005-01-17  Bruno Haible  <bruno@clisp.org>
80966
80967         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80968         used.
80969
80970 2005-01-17  Bruno Haible  <bruno@clisp.org>
80971
80972         * lib/fwriteerror.h (fwriteerror): Change specification to include
80973         fclose.
80974         * lib/fwriteerror.c: Include <stdbool.h>.
80975         (fwriteerror): At the end, close the file stream. Record whether
80976         stdout was already closed.
80977
80978 2005-01-17  Bruno Haible  <bruno@clisp.org>
80979
80980         * lib/execute.c (environ): Declare if needed.
80981         * lib/pipe.c (environ): Likewise.
80982         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80983
80984 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80985
80986         * modules/argp: Depend on vsnprintf
80987
80988 2005-01-10  Jim Meyering  <jim@meyering.net>
80989
80990         * modules/closeout (Depends-on): Add atexit.
80991
80992 2005-01-06  Bruno Haible  <bruno@clisp.org>
80993
80994         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80995
80996 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80997
80998         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80999         definitions to be after all include files, to avoid collisions.
81000         Problem reported by Bob Proulx.
81001
81002 2005-01-04  Jim Meyering  <jim@meyering.net>
81003
81004         Changes imported from coreutils.
81005         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
81006         as the mkstemp template, use a temporary directory and an
81007         8.3-friendly template to avoid trouble on systems like DJGPP.
81008         Reported by Juan M. Guerrero via Stepan Kasal.
81009         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
81010         close. Remove the temporary directory right away, rather than waiting
81011         for configure's at-exit trap code to do it.
81012         Suggestion from Stepan Kasal.
81013
81014 2005-01-01  Simon Josefsson  <jas@extundo.com>
81015
81016         * gnulib-tool: Print #include directives when --import'ing.
81017
81018 2004-12-28  Simon Josefsson  <jas@extundo.com>
81019
81020         * tests/test-base64.c: Include required header files.  Remove
81021         unused variables.
81022
81023 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81024
81025         * modules/error (Depends-on): Remove gettext.
81026
81027 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
81028
81029         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
81030         not needed.  This removes a dependency on the gettext module.
81031         [defined _LIBC]: Do not include <libintl.h>; not needed.
81032
81033 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81034
81035         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
81036         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
81037
81038 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
81041         HAVE_DECL_STRTOLD.
81042
81043 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81044
81045         * modules/getdate (Depends-on): Remove alloca-opt.
81046
81047 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81048
81049         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
81050
81051 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
81052
81053         * lib/argp-parse.c: Include <stddef.h>.
81054         (alignof, alignto): New macros.
81055         (parser_init): Don't assume that void * is aligned sufficiently
81056         for struct option.
81057
81058         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
81059         need to extend the stack.
81060         (YYINITDEPTH): New macro, so that the initial stack isn't overly
81061         large.
81062
81063 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81064
81065         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
81066
81067 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81068
81069         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
81070         (2004-10-24) change.  Apparently this was a false alarm.
81071
81072         * modules/getdate: Depend on alloca-opt, not alloca.
81073
81074 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
81075
81076         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
81077         Remove now-obsolete comment about AIX.
81078         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
81079         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
81080         (YYMAXDEPTH): New macro.
81081
81082 2004-12-18  Simon Josefsson  <jas@extundo.com>
81083
81084         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
81085
81086 2004-12-18  Bruno Haible  <bruno@clisp.org>
81087
81088         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
81089
81090 2004-12-18  Bruno Haible  <bruno@clisp.org>
81091
81092         * lib/fatal-signal.c (fatal_signals): Make non-const.
81093         (init_fatal_signals): New function.
81094         (uninstall_handlers, install_handlers): Ignore signals that were set to
81095         SIG_IGN.
81096         (at_fatal_signal): Call init_fatal_signals.
81097         (init_fatal_signal_set): Likewise. Ignore signals that were set to
81098         SIG_IGN.
81099         Reported by Paul Eggert.
81100
81101 2004-12-18  Bruno Haible  <bruno@clisp.org>
81102
81103         * doc/alloca.texi: New file.
81104         * doc/alloca-opt.texi: New file.
81105
81106 2004-12-17  Jim Meyering  <jim@meyering.net>
81107
81108         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
81109         Otherwise, install-sh could exit with improper exit status when
81110         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
81111
81112 2004-12-16  Simon Josefsson  <jas@extundo.com>
81113
81114         * tests/test-base64.c: Add license.
81115
81116 2004-12-15  Stepan Kasal  <address@hidden>
81117
81118         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
81119
81120 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
81121
81122         * modules/getcwd (Files): Add m4/d-ino.m4.
81123         Suggested by Mark D. Baushke.
81124
81125 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81126
81127         * lib/getdate.y (textint): New member "negative".
81128         (time_zone_hhmm): New function.
81129         Expect 14 shift-reduce conflicts, not 13.
81130         (o_colon_minutes): New rule.
81131         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
81132         (yylex): Set the "negative" member of signed numbers.
81133
81134 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
81135
81136         * doc/getdate.texi (Time of day items, Time zone items):
81137         Describe new formats +00:00, UTC+00:00.
81138
81139 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81140
81141         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
81142         spurious "-l"s.  Problem reported by Stepan Kasal.
81143
81144 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
81145
81146         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
81147         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
81148
81149 2004-12-04  Simon Josefsson  <jas@extundo.com>
81150
81151         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
81152         Vandoorselaere <yoann@prelude-ids.org>.
81153
81154 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81155
81156         Changes imported from coreutils.
81157         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
81158         exist.
81159         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
81160
81161 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81162
81163         Changes imported from coreutils.
81164         * lib/hard-locale.c: Assume <locale.h> exists.
81165         Include "strdup.h".
81166         (GLIBC_VERSION): New macro.
81167         (hard_locale): Assume setlocale exists.
81168         Rewrite to avoid #ifdef.
81169         Use strdup rather than malloc + strcpy.
81170         * lib/human.c: Assume <locale.h> exists.
81171         (human_readable): Assume localeconv exists.
81172
81173 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81174
81175         * modules/hard-locale (Depends-on): Add strdup.
81176
81177 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81178
81179         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81180         convert T2, not T.  (Imported from libc.)
81181
81182 2004-11-30  Simon Josefsson  <jas@extundo.com>
81183
81184         * modules/restrict (License): Change to LGPL.
81185
81186 2004-11-30  Simon Josefsson  <jas@extundo.com>
81187
81188         * m4/restrict.m4: Add copyright and copying conditions.
81189
81190 2004-11-30  Simon Josefsson  <jas@extundo.com>
81191
81192         * m4/base64.m4: New file.
81193
81194 2004-11-30  Simon Josefsson  <jas@extundo.com>
81195
81196         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81197         base64.
81198
81199         * tests/test-base64.c: New file.
81200
81201         * modules/base64: New file.
81202
81203 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81204
81205         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81206         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81207
81208         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81209
81210 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81211
81212         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81213         (__getcwd.c): Don't restore errno; glibc doesn't.
81214         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81215         first, falling back to our code only if its results look suspicious.
81216         Ensure that the resulting buffer is only as large as necessary.
81217
81218         * lib/readutmp.c: Include readutmp.h first.
81219         Include <errno.h>, since readutmp.h no longer does that.
81220         * lib/readutmp.h: Don't include <errno.h>,
81221         <sys/param.h>, <time.h>; not needed to establish interface.
81222         (errno): Remove decl.
81223         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81224         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81225         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81226
81227 2004-11-28  Simon Josefsson  <jas@extundo.com>
81228
81229         * lib/base64.h, base64.c: New file.
81230
81231 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81234
81235 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81238         (Depends-on): Remove pathmax, same.  Add mempcpy.
81239         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81240         (Makefile.am): Append getcwd.h to lib_SOURCES.
81241         (Include): Add getcwd.h.
81242         (Maintainer): Change from Jim Meyering to "all, glibc",
81243         since getdate now uses intended-for-glibc code.
81244         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81245         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81246
81247 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81248
81249         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81250         HP's ANSI C compiler.
81251         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81252         Declaring int functions causes warnings on some modern systems and
81253         shouldn't be needed to compile on ancient ones.
81254         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81255         defined.
81256
81257         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81258         with the following changes.
81259         (__set_errno): Parenthesize properly.
81260         Include <stdbool.h>.
81261         (MIN, MAX, MATCHING_INO): New macros.
81262         (__getcwd): Define with prototype, not K&R form.
81263         Use heuristics to allocate default buffer on stack if possible.
81264         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81265         behavior, and to avoid the PATH_MAX limit when computing
81266         ../../../../...
81267         Use MATCHING_INO to compare inode number to file.
81268         Check for arithmetic overflow in size calculations.
81269         Fix bug in reallocation of dot array that caused getcwd to fail
81270         on directories nested deeper than 75.
81271         Be more careful about saving errno on error.
81272         Do not use realloc; use only free+malloc, as this is a bit
81273         more flexible and avoids a needless copy operation.
81274         Do not inspect st_dev and st_ino for symbolic links; POSIX
81275         doesn't specify the latter.
81276         Check for closedir errors.
81277         Avoid needless casts.
81278         Use "#ifdef weak_alias" around weak_alias, to be like other
81279         glibc code.
81280         The following changes to getcwd.c have effect only when used in
81281         gnulib; they have no effect inside glibc proper.
81282         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81283         as alloca isn't used.
81284         (alloca, __alloca): Likewise.
81285         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81286         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81287         unconditionally, as gnulib assumes C89 or better.
81288         Do not include <sys/param.h>.
81289         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81290         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81291         better.
81292         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81293         Include <dirent.h> in a way that is compatible with modern Autoconf.
81294         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81295         New macros, if not already defined.
81296         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81297         Use "_LIBC", not "defined _LIBC", for consistency.
81298         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81299         a mempcpy module.
81300         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81301         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81302         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81303         credit only to Jim Meyering and adjust the copyright dates.
81304         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81305         <stdlib.h>, <unistd.h>, "pathmax.h".
81306         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81307         (INITIAL_BUFFER_SIZE): Remove.
81308         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81309
81310 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81311
81312         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81313         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81314         Use the _ONCE methods, for efficiency.
81315         Check for fcntl.h.  In test program, include <errno.h>
81316         and <fcntl.h> if available.  Remove old K&R cruft from
81317         test program.  Check for common errors in GNU/Linux,
81318         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81319         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81320         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81321         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81322         name accordingly.
81323         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81324         accommodate new getcwd.c.
81325         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81326         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81327         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81328         that's all we need now.
81329
81330 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81331
81332         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81333         argp-parse.c depends on getopt internals, that means we should
81334         always use our getopt, to be on the safe side.
81335         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81336         order not to spoil the result of an eventual previous invocation
81337         of gl_GETOPT_SUBSTITUTE.
81338
81339 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81340
81341         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81342         redefinition warnings. To avoid them, include the defines
81343         in `#if !defined __need_getopt ... #endif'. The only place
81344         where __getopt_argv_const is used is in definitions
81345         of getopt_long and getopt_long_only below, which are as well
81346         protected by `#ifndef __need_getopt'.
81347         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81348         __need_getopt after including <stdio.h> and <unistd.h> These
81349         headers might have defined it.
81350
81351 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81352
81353         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81354
81355 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81356
81357         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81358         (futimens): New function, which uses futimes if available.
81359         (futimens, utimens): Support timespec==NULL, with same semantics
81360         as utime and utimens.
81361         * lib/utimens.h (futimens): New decl.
81362
81363 2004-11-23  Jim Meyering  <jim@meyering.net>
81364
81365         * lib/getopt_.h: Remove trailing blanks.
81366
81367 2004-11-23  Jim Meyering  <jim@meyering.net>
81368
81369         * lib/__fpending.c: Add comment.
81370
81371 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81372
81373         * modules/canonicalize (Depends-on): Add xreadlink.
81374         Problem reported by James Youngman.
81375
81376 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81377
81378         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81379         New macros.
81380         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81381         optopt): Use them instead of invoking ## directly; otherwise, the
81382         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81383
81384 2004-11-19  Bruno Haible  <bruno@clisp.org>
81385
81386         * lib/strtok_r.c: Move comments from here...
81387         * lib/strtok_r.h: ... to here.
81388
81389 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81390
81391         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81392         implementations that mishandle size_t overflow.
81393
81394 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81395
81396         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81397         might fail.  Problem reported by Yoann Vandoorselaere.
81398         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81399         implementations that mishandle size_t overflow.
81400
81401 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81402
81403         * modules/canon-host (Depends-on): Add strdup.
81404
81405 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81406
81407         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81408
81409 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81410
81411         * lib/canon-host.c: Include "strdup.h".
81412         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81413         Use strdup instead of malloc/strcpy to duplicate strings.
81414
81415         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81416         (human_space_before_unit): New constant.
81417         * lib/human.c (human_readable): Support it.
81418
81419         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81420         (xgetcwd): Set errno correctly when failing.
81421         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81422         the failure is actually due to a PATH_MAX problem.
81423
81424         Further getopt changes to make it more likely that glibc will
81425         buy the changes back.
81426         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81427         (getopt): Use it, so to preserve glibc semantic
81428         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81429         when compiling for libc.
81430         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81431         (getopt_long, getopt_long_only): Use it.
81432
81433         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81434         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81435         (getopt): Argv is now char * const *, as per standard.
81436         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81437         not char *__getopt_argv_const *.
81438         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81439         _getopt_long_only_r): Likewise.
81440         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81441         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81442         _getopt_long_r, _getopt_long_only_r): Likewise.
81443         * lib/getopt_.h (__getopt_argv_const): Remove.
81444         (getopt): Argv is now char * const *, as per standard.
81445
81446         * lib/getdate.y (tORDINAL): New token.
81447         (day, relunit): Allow it for relative times.
81448         (relative_time_table): Use tORDINAL for ordinals.
81449
81450 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81451
81452         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81453         Document that "second" isn't allowed as an ordinal number.
81454
81455 2004-11-16  Jim Meyering  <jim@meyering.net>
81456
81457         * modules/closeout (Depends-on): Add fpending.
81458
81459 2004-11-15  Jim Meyering  <jim@meyering.net>
81460
81461         * lib/closeout.c: Include "__fpending.h" once again.
81462         Include <stdbool.h>.
81463         (close_stdout): Don't fail just because stdout was closed initially,
81464         since some programs don't write to stdout in the normal course of
81465         operation (other than --version and --help), and we don't want this
81466         function to make e.g. `touch file >&-' fail.
81467         But do fail if it was closed and someone has tried to write to it.
81468         E.g., `printf foo >&-' must fail.
81469
81470 2004-11-13  Jim Meyering  <jim@meyering.net>
81471
81472         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81473
81474 2004-11-12  Simon Josefsson  <jas@extundo.com>
81475
81476         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81477         small doc fix is still pending.
81478
81479 2004-11-11  Simon Josefsson  <jas@extundo.com>
81480
81481         * modules/strtok_r: New file.
81482
81483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81484         strtok_r.
81485
81486 2004-11-11  Simon Josefsson  <jas@extundo.com>
81487
81488         * m4/strtok_r.m4: New file.
81489
81490         * m4/getopt.m4: Replace opterr.
81491
81492 2004-11-11  Simon Josefsson  <jas@extundo.com>
81493
81494         * lib/strtok_r.h, strtok_r.c: New file.
81495
81496 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81497
81498         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81499         of replacing opterr, getopt, etc.  This should handle the
81500         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81501
81502 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81503
81504         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81505         we can stop lying to compilers about the constness of argv when we
81506         are compiled outside glibc.
81507         (getopt, getopt_long, getopt_long_only): Use it.
81508         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81509         _getopt_internal, getopt): Likewise.
81510         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81511         _getopt_long_only_r): Likewise.
81512         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81513         _getopt_long_r, _getopt_long_only_r): Likewise.
81514
81515         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81516         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81517         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81518         the other external symbols.
81519         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81520         declaration, since the above renaming now works around collisions.
81521
81522 2004-11-11  Jim Meyering  <jim@meyering.net>
81523
81524         * lib/linebreak.c: Remove trailing blanks.
81525         * lib/alloca_.h: Likewise.
81526         * lib/acosl.c: Likewise.
81527         * lib/euidaccess.c: Likewise.
81528         * lib/allocsa.h: Likewise.
81529
81530 2004-11-10  Simon Josefsson  <jas@extundo.com>
81531
81532         * m4/getaddrinfo.m4: New file.
81533
81534 2004-11-10  Simon Josefsson  <jas@extundo.com>
81535
81536         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81537
81538 2004-11-10  Simon Josefsson  <jas@extundo.com>
81539
81540         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81541         getaddrinfo.
81542
81543         * modules/getaddrinfo: New file.
81544
81545 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81546
81547         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81548
81549 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81550
81551         * lib/mktime.c (SHR): New macro, which is a portable
81552         substitute for >> that should work even on Crays.
81553         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81554         Problem reported by Mark D. Baushke in
81555         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81556         * lib/getdate.y (SHR): Likewise.
81557         (tm_diff): Use it.
81558         * lib/strftime.c (SHR): Likewise.
81559         (tm_diff): Use it.
81560         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81561         quote_these_too, so that right shifts are well defined.  All uses
81562         changed.
81563
81564 2004-11-10  Jim Meyering  <jim@meyering.net>
81565
81566         Ensure that no close failure goes unreported.
81567         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81568         return early when it seems there's nothing to flush.
81569         Don't include __fpending.h.
81570
81571 2004-11-10  Jim Meyering  <jim@meyering.net>
81572
81573         * modules/closeout (Depends-on): Remove fpending.
81574
81575 2004-11-10  Jim Meyering  <jim@meyering.net>
81576
81577         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81578
81579 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81580
81581         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81582         gl_FUNC_STRFTIME.
81583         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81584         and AC_REQUIRE when possible, to avoid duplicate checks.
81585         Check for <wchar.h>.
81586
81587 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81588
81589         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81590
81591 2004-11-09  Bruno Haible  <bruno@clisp.org>
81592
81593         * m4/sockpfaf.m4: New file.
81594
81595 2004-11-05  Bruno Haible  <bruno@clisp.org>
81596
81597         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81598         Reported by Mark D. Baushke <mdb@cvshome.org>.
81599
81600 2004-11-04  Bruno Haible  <bruno@clisp.org>
81601
81602         2004-09-11  Bruno Haible  <bruno@clisp.org>
81603                 * allocsa.valgrind: New file.
81604         2004-02-06  Bruno Haible  <bruno@clisp.org>
81605                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81606                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81607                 Reported by Christopher Seip <chris.seip@hp.com>.
81608
81609 2004-11-04  Bruno Haible  <bruno@clisp.org>
81610
81611         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81612         (Makefile.am): Distribute it.
81613
81614 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81617         with errno == ERANGE if the buffer is too small.
81618         Problem reported by Mark D. Baushke.
81619
81620 2004-11-03  Albert Chin  <china@thewrittenword.com>
81621             Paul Eggert  <eggert@cs.ucla.edu>
81622
81623         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81624         equivalent, substitute $ac_type for equivalent type rather than
81625         blindly using uint32_t *always* which won't work if uint32_t is not
81626         available.  Define _UINT32_T to work around typedef of uint32_t if
81627         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81628         2.5.1.
81629
81630 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81631
81632         * m4/jm-macros.m4: Sync from coreutils.
81633         (gl_MACROS): Check for mbrlen, for pathchk.
81634         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81635
81636 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81637
81638         * lib/xreadlink.c (MAXSIZE): New macro.
81639         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81640         size does not exceed MAXSIZE.  Avoid cast.
81641         As suggested by Mark D. Baushke in
81642         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81643         if readlink fails with buffer size just under MAXSIZE, try again
81644         with MAXSIZE.
81645
81646 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81647
81648         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81649
81650 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81651         and  Paul Eggert  <eggert@cs.ucla.edu>
81652
81653         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81654         (get_date): Overparenthesize to avoid GCC warning.
81655
81656 2004-11-02  Bruno Haible  <bruno@clisp.org>
81657
81658         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81659         returns void.
81660
81661 2004-11-02  Bruno Haible  <bruno@clisp.org>
81662
81663         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81664         function returns void.
81665
81666 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81669         fflush_unlocked, flockfile, funlockfile, funlockfile,
81670         fputs_unlocked, putc_unlocked.
81671
81672 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81673
81674         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81675         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81676         already declared.
81677
81678 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81679
81680         * modules/getdate (Files): Add doc/getdate.texi.
81681         (Depends-on): Add setenv, xalloc.
81682
81683 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81684
81685         * lib/getdate.y: Add support for TZ="foo" within a date string.
81686         Fix some bugs near time_t boundaries.  Reject dates with
81687         out-of-range components, e.g., "Sept 31".
81688         Include <stdlib.h>, "setenv.h", "xalloc.h".
81689         (ISDIGIT_LOCALE): Remove; unused.
81690         Note that the TZ and time functions used here are not reentrant.
81691         (mktime_ok, get_tz): New functions.
81692         (TZBUFSIZE): New constant.
81693         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81694         This requires that we sometimes generate our own TZ="XXX..." setting.
81695
81696 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81697
81698         * doc/getdate.texi: New file, from coreutils with modifications for
81699         the new TZ parsing.
81700
81701 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81702
81703         * lib/mktime.c (not_equal_tm): Remove redundant check.
81704
81705 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81706
81707         * modules/regex (lib_SOURCES): Add regex.c.
81708         Reported by James Youngman in
81709         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81710
81711 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81712
81713         * lib/getdate.y: Use Bison 1.875 features, and some minor
81714         code cleanups.  This change does not affect semantics.
81715         Don't include <stdlib.h>; no longer needed.
81716         Don't include unlocked-io.h; only the "#if TEST" code uses
81717         stdio, and performance isn't crucial there.
81718         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81719         Bison 1.875 features as described below.
81720         All uses of "PC." replaced by "pc->".
81721         (YYSTYPE): Add a forward declaration.
81722         (yylex, yyerror): Use full prototypes in forward decls.
81723         Use "%pure-parser" rather than obsolescent "%pure_parser".
81724         Use %parse-param and %lex-param instead of obsolescent
81725         YYPARSE_PARAM and YYLEX_PARAM.
81726         (meridian_table, month_and_day_table, time_units_table,
81727         relative_time_table, time_zone_table, military_table,
81728         lookup_zone, lookup_word, get_date):
81729         Use NULL instead of 0 where appropriate.
81730         (to_hour): Avoid abort (), to avoid a dependency on
81731         stdlib.h.
81732         (yyerror, yylex): Now accepts parser_control * arg.
81733         (main) [TEST]: Use '\0' rather than 0 for char.
81734
81735 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81738
81739 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81740
81741         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81742         It's now the caller's responsibility to handle the case where
81743         !HAVE_GETPAGESIZE && !defined getpagesize.
81744
81745         * lib/mktime.c (leapyear): Arg is long int, not int.
81746
81747 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81748
81749         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81750
81751 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81752
81753         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81754         missing.  Problem reported by James Youngman.
81755
81756 2004-10-16  Simon Josefsson  <jas@extundo.com>
81757
81758         * gnulib-tool: Fix comments.  Fix parse problem.
81759         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81760
81761 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81762
81763         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81764         implementation of getopt_long.  Problem reported by Alexander Taler in:
81765         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81766
81767 2004-10-15  Bruno Haible  <bruno@clisp.org>
81768
81769         * gnulib-tool: Untabify. Initialize supplied_libname.
81770         (func_usage): More homogenous output.
81771         (func_modules_transitive_closure, func_modules_to_filelist,
81772         func_emit_lib_Makefile_am): New functions.
81773         (func_import): New function, extracted from big case statement. Use
81774         func_get_license, func_modules_transitive_closure,
81775         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81776         opt_lgpl. Don't use test -a, as it's not portable.
81777         (func_create_testdir): Use func_modules_transitive_closure,
81778         func_modules_to_filelist, func_emit_lib_Makefile_am.
81779
81780 2004-10-15  Bruno Haible  <bruno@clisp.org>
81781
81782         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81783
81784 2004-10-15  Bruno Haible  <bruno@clisp.org>
81785
81786         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81787         the portions belonging to each module.
81788         Suggested by Derek Robert Price <derek@ximbiot.com>.
81789
81790 2004-10-12  Simon Josefsson  <jas@extundo.com>
81791
81792         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81793         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81794         to real functions.
81795
81796 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81797
81798         * modules/vsnprintf: New file.
81799
81800 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81801
81802         * m4/vsnprintf.m4: New file.
81803
81804 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81805
81806         * lib/vsnprintf.h: New file.
81807         * lib/vsnprintf.c: New file.
81808
81809 2004-10-11  Bruno Haible  <bruno@clisp.org>
81810
81811         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81812         vsnprintf.
81813
81814 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81815
81816         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81817
81818 2004-10-07  Bruno Haible  <bruno@clisp.org>
81819
81820         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81821         fits into the provided buffer.
81822
81823 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81824
81825         * lib/diacrit.c, diacrit.h: Add GPL notice.
81826
81827         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81828         notice.
81829         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81830         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81831         This avoids a potential constant-folding bug.
81832
81833 2004-10-05  Bruno Haible  <bruno@clisp.org>
81834
81835         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81836         for the declaration of strsep.
81837
81838 2004-10-05  Bruno Haible  <bruno@clisp.org>
81839
81840         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81841
81842 2004-10-04  Simon Josefsson  <jas@extundo.com>
81843
81844         * modules/memmem: New file.
81845         * tests/test-memmem.c: New file.
81846         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81847
81848 2004-10-04  Simon Josefsson  <jas@extundo.com>
81849
81850         * m4/memmem.m4: New file.
81851
81852 2004-10-04  Simon Josefsson  <jas@extundo.com>
81853
81854         * lib/memmem.h: New file.
81855         * lib/memmem.c: New file, taken from glibc.
81856
81857 2004-10-04  Simon Josefsson  <jas@extundo.com>
81858
81859         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81860         '#ifdef USE_UNLOCKED_IO'.
81861
81862 2004-10-04  Simon Josefsson  <jas@extundo.com>
81863
81864         * config/srclist.txt: Add memmem from glibc.
81865
81866 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81867
81868         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81869
81870         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81871         modules/exclude, modules/getdate, modules/getline,
81872         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81873         modules/getusershell, modules/linebuffer, modules/md5,
81874         modules/mountlist, modules/posixtm, modules/readtokens,
81875         modules/readutmp, modules/regex, modules/sha1,
81876         modules/version-etc, modules/yesno:
81877         Remove dependency on unlocked-io.
81878
81879 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81880
81881         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81882
81883         * m4/unlocked-io.m4: Add copyright notice.
81884         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81885
81886 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81887
81888         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81889         * lib/xmalloc.c (xmemdup): Likewise.
81890         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81891         XFREE): Remove these long-obsolescent macros.
81892         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81893         * lib/xstrdup.c: Remove.
81894
81895         * lib/regex.c (re_comp): Cast gettext return value to char *,
81896         Problem reported by Martin Neitzel via Mark D. Baushke.
81897
81898 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81899
81900         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81901         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81902         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81903         regex.c, sha1.c, version-etc.c, yesno.c:
81904         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81905         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81906         the includer's responsibility.
81907
81908         Sync from coreutils.
81909
81910         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81911         points to the start of a string, as the C Standard says the
81912         resulting behavior is undefined.
81913
81914         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81915         simple -> simple_backups, numbered_existing ->
81916         numbered_existing_backups, numbered -> numbered_backups
81917         to avoid shadowing problems.  All uses changed.
81918         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81919         * lib/backupfile.c (check_extension, numbered_backup):
81920         Rename locals to avoid shadowing 'basename'.
81921         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81922         once.
81923
81924         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81925         * lib/.cvsignore: Add getopt.h.
81926
81927 2004-10-04  Bruno Haible  <bruno@clisp.org>
81928
81929         * modules/README: New file.
81930         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81931         not a module.
81932
81933 2004-10-02  Jim Meyering  <jim@meyering.net>
81934
81935         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81936
81937 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81938
81939         * modules/strsep: New file.
81940
81941 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81942
81943         * m4/strsep.m4: New file.
81944
81945 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81946
81947         * lib/strsep.h: New file.
81948         * lib/strsep.c: New file.
81949
81950 2004-10-01  Simon Josefsson  <jas@extundo.com>
81951
81952         * lib/snprintf.c (snprintf): Handle size==0.
81953
81954 2004-10-01  Simon Josefsson  <jas@extundo.com>
81955             Bruno Haible  <bruno@clisp.org>
81956
81957         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81958         (snprintf): Declare 'args'.
81959
81960 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81961
81962         * lib/snprintf.c: Remove comments as to why each header is needed.
81963
81964 2004-10-01  Bruno Haible  <bruno@clisp.org>
81965
81966         * MODULES.html.sh: Add strsep.
81967
81968 2004-09-30  Simon Josefsson  <jas@extundo.com>
81969
81970         * modules/snprintf: New file.
81971
81972 2004-09-30  Simon Josefsson  <jas@extundo.com>
81973
81974         * m4/snprintf.m4: New file.
81975
81976 2004-09-30  Simon Josefsson  <jas@extundo.com>
81977
81978         * lib/snprintf.h, lib/snprintf.c: New files.
81979
81980 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81981
81982         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81983         (hol_entry_help): Never translate an empty string.
81984         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81985         * lib/argp.h (OPTION_NO_TRANS): New option.
81986
81987 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81988
81989         * modules/argp (Maintainer): Replace Simon Josefsson
81990         by Sergey Poznyakoff.
81991
81992 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81993
81994         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81995         changes merged back into glibc.
81996
81997 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81998
81999         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
82000
82001 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82002
82003         * lib/xvasprintf.c: Include xalloc.h.
82004         (xvasprintf): Use xalloc_die, not xmalloc_die.
82005
82006 2004-09-29  Bruno Haible  <bruno@clisp.org>
82007
82008         * modules/alloca-opt: New file, derived from modules/alloca.
82009         * modules/allocsa: Depend on alloca-opt instead of alloca.
82010         * modules/setenv: Likewise.
82011         * modules/vasnprintf: Likewise.
82012         * MODULES.html.sh: Add alloca-opt.
82013
82014 2004-09-28  Simon Josefsson  <jas@extundo.com>
82015
82016         * gnulib-tool: New parameter --lgpl, to asseert that modules are
82017         LGPL, and to replace license template from GPL to LGPL.
82018
82019 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82020
82021         * modules/dummy: Change license to LGPL.
82022
82023 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
82024
82025         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
82026
82027 2004-09-24  Simon Josefsson  <jas@extundo.com>
82028
82029         * modules/minmax (License): Change from GPL to LGPL.
82030
82031 2004-09-23  Simon Josefsson  <jas@extundo.com>
82032
82033         * gnulib-tool (--import): Typo.
82034
82035 2004-09-23  Simon Josefsson  <jas@extundo.com>
82036
82037         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
82038
82039 2004-09-22  Bruno Haible  <bruno@clisp.org>
82040
82041         * modules/*: Add 'License' field.
82042         * gnulib-tool: Accept --extract-license option.
82043         (func_get_license): New function.
82044
82045 2004-09-21  Bruno Haible  <bruno@clisp.org>
82046
82047         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
82048         Reported by Simon Josefsson.
82049
82050 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82051
82052         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
82053         gl_AC_TYPE_LONG_LONG.
82054
82055 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
82056
82057         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
82058
82059 2004-09-18  Simon Josefsson  <jas@extundo.com>
82060         and  Paul Eggert  <eggert@cs.ucla.edu>
82061
82062         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
82063         calls with autoreconf.  Define GL_LIB.
82064
82065 2004-09-14  Karl Berry  <karl@gnu.org>
82066
82067         * config/srclist.txt: unsync setenv.c, sigh.
82068
82069 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82070
82071         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
82072         Problem reported by Bruno Haible in:
82073         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
82074
82075 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
82076
82077         * config/srclist.txt: Comment out argp-pvh.c.
82078
82079 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
82082         in case some system header has #define'd it.  Problem reported by
82083         Soeren D. Schulze in
82084         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
82085
82086 2004-09-09  Karl Berry  <karl@gnu.org>
82087
82088         * regex.[ch]: delete from the root.  These were supposed to be
82089                 synced with emacs cvs, but this has not happened for about
82090                 a year, and anyway nothing else uses emacs regex.[ch].
82091                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
82092                 lib/regex[.ch] is untouched.
82093
82094 2004-09-09  Bruno Haible  <bruno@clisp.org>
82095
82096         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
82097
82098 2004-09-09  Bruno Haible  <bruno@clisp.org>
82099
82100         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
82101         modifications.
82102         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
82103
82104 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82105
82106         * modules/xvasprintf: New file.
82107         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
82108
82109 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
82110
82111         * lib/xvasprintf.h: New file.
82112         * lib/xvasprintf.c: New file.
82113         * lib/xasprintf.c: New file.
82114
82115 2004-09-08  Bruno Haible  <bruno@clisp.org>
82116
82117         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
82118
82119 2004-09-08  Bruno Haible  <bruno@clisp.org>
82120
82121         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
82122         length is > INT_MAX.
82123         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
82124         more.
82125
82126 2004-09-08  Bruno Haible  <bruno@clisp.org>
82127
82128         * lib/stdint_.h: New file, taken from GNU clisp.
82129
82130 2004-09-08  Bruno Haible  <bruno@clisp.org>
82131             Oskar Liljeblad  <oskar@osk.mine.nu>
82132
82133         * modules/stdint: New file.
82134         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
82135
82136 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82137
82138         Import from coreutils.
82139         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
82140         strings on unbounded length.  alloca's performance benefits aren't
82141         that important here.
82142         (V_STRDUP): Remove.
82143         (parse_with_separator): New function, with most of the internals
82144         of the old parse_user_spec.  Allow user to omit both user and group,
82145         for compatibility with FreeBSD.
82146         Clone only the user name, not the entire spec.
82147         Do not set *uid, *gid unless entirely successful.
82148         Avoid memory leak in some failing cases.
82149         Fix regression for USER.GROUP reported by Dmitry V. Levin in
82150         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
82151         (parse_user_spec): Rewrite to use parse_with_separator.
82152
82153 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82154
82155         * modules/userspec: Don't depend on alloca.
82156
82157 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82158
82159         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
82160
82161 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82162
82163         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82164         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82165         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82166
82167 2004-08-16  Simon Josefsson  <jas@extundo.com>
82168
82169         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82170         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82171         Add --dry-run for --import.
82172         Let user provided command line parameters override configure.ac
82173         settings.
82174
82175 2004-08-12  Simon Josefsson  <jas@extundo.com>
82176
82177         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82178         as discussed with Paul Eggert in threads rooted at
82179         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82180         and
82181         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82182         Before, the test was empty, and relied on ELIDE_CODE in source
82183         code.)
82184         (gl_PREREQ_GETOPT): New macro.
82185         (gl_GETOPT): Use them.
82186
82187 2004-08-12  Simon Josefsson  <jas@extundo.com>
82188
82189         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82190         * lib/getopt_.h: Renamed from getopt.h.
82191
82192 2004-08-12  Simon Josefsson  <jas@extundo.com>
82193
82194         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82195         Change default library name from libfoo to libgnu.
82196         Now, if you have a configure.ac that says:
82197                 gl_SOURCE_BASE(gl)
82198                 gl_M4_BASE(gl/m4)
82199                 gl_MODULES(error getopt etcetera)
82200                 gl_INIT
82201         you can import all you need by running:
82202                 ../gnulib/gnulib-tool --import
82203
82204         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82205         (Makefile.am): Rewrite, use logic from argz.
82206         (Include): Use <getopt.h> instead of "getopt.h".
82207
82208 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82209
82210         * modules/argp (Files): Add m4/unlocked-io.m4.
82211         (Depends-on): Add extensions.
82212
82213 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82214
82215         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82216         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82217         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82218         Check for program_invocation_name, program_invocation_short_name,
82219         flockfile, funlockfile, features.h, _getopt_long_only_r.
82220
82221 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82222
82223         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82224         its complicated substitute.
82225         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82226         and program_invocation_name.
82227         (__argp_basename) [!_LIBC]: Remove; the only use was
82228         replaced by its body.
82229         (__argp_short_program_name): Change condition from
82230         !defined __argp_short_program_name to
82231         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82232         to match argp-namefrob.h.
82233         (__argp_failure): Don't assume strerror_r returns char *.
82234         * lib/argp-parse.c (N_): Define unconditionally.
82235         (argp_default_options): Fill out initializers with 0 to avoid
82236         gcc warnings.
82237
82238 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82241         getopt1.c.
82242
82243 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82244
82245         Merge from coreutils.
82246
82247         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82248
82249         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82250         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82251
82252 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82253
82254         Merge from coreutils.
82255
82256         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82257         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82258         for Reliant Unix 5.43.
82259
82260         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82261         (union fooround): Use uintmax_t, not long int.
82262         The rest is a merge from libc:
82263         [defined _LIBC]: Include <shlib-compat.h>.
82264         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82265
82266         * lib/settime.c (settime): Recode to avoid warning with
82267         Sun Forte C 6U2.
82268
82269         * lib/strverscmp.c: Convert to UTF-8.
82270
82271 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82272
82273         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82274         m4/uintmax_t.m4.
82275
82276 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82277
82278         * modules/xalloc-die: New file.
82279         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82280
82281         * modules/md5 (Files): Add m4/uint32_t.m4.
82282         * modules/sha1: Renamed from modules/sha.
82283         (Files):
82284         Rename lib/sha.h to lib/sha1.h.
82285         Rename lib/sha.c to lib/sha1.c.
82286         Rename m4/sha.m4 to m4/sha1.m4.
82287         (lib_SOURCES): Likewise.
82288         (configure.ac): Rename gl_SHA to gl_SHA1.
82289         (Include): sha.h -> sha1.h.
82290
82291 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82292
82293         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82294         * m4/sha1.m4: Renamed from sha.m4.
82295         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82296
82297 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82298
82299         * lib/obstack.h (obstack_empty_p):
82300         Don't assume that chunk->contents is suitably aligned.
82301         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82302         Likewise. Problem reported by Benno in
82303         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82304
82305         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82306         readable.  This could be improved further but it'd take some work.
82307
82308 2004-08-08  Simon Josefsson  <jas@extundo.com>
82309
82310         * modules/xgethostname (Depends-on): Remove exit and error (not
82311         used).
82312
82313         * modules/getpass-gnu: Add getpass.h.
82314         (Depends-on): Add stdbool.
82315         * modules/getpass: Add getpass.h.
82316
82317 2004-08-08  Simon Josefsson  <jas@extundo.com>
82318
82319         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82320         Check getpass declaration.
82321
82322 2004-08-08  Simon Josefsson  <jas@extundo.com>
82323
82324         * lib/xgethostname.c: Don't include error.h (not used).
82325
82326         * lib/getpass.h: Add.
82327         * lib/getpass.c: Include getpass.h first.
82328
82329 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82330
82331         * lib/xalloc-die.c: New file.
82332         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82333         All uses removed.
82334         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82335         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82336         xalloc-die.c.
82337         (_, N_, xalloc_die): Move to xalloc-die.c.
82338         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82339         so that we needn't mess with xalloc_msg_memory_exhausted.
82340
82341         * lib/sha1.h: Renamed from sha.h.
82342         (SHA1_H): Renamed from _SHA_H.
82343         (sha1_ctx): Renamed from sha_ctx.
82344         (sha1_init_ctx): Renamed from sha_init_ctx.
82345         (sha1_process_block): Renamed from sha_process_block.
82346         (sha1_process_bytes): Renamed from sha_process_bytes.
82347         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82348         (sha1_read_ctx): Renamed from sha_read_ctx.
82349         (sha1_stream): Renamed from sha_stream.
82350         (sha1_buffer): Renamed from sha_buffer.
82351         * lib/sha1.c: Likewise; renamed from sha.c.
82352         Do not include <sys/types.h>.
82353         Include <stddef.h> rather than <stdlib.h>.
82354
82355 2004-08-08  Bruno Haible  <bruno@clisp.org>
82356
82357         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82358         FILESYSTEM_PREFIX_LEN.
82359         * lib/progreloc.c: Likewise.
82360         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82361
82362 2004-08-06  Simon Josefsson  <jas@extundo.com>
82363
82364         * modules/progname (Depends-on): Don't depend on stdbool.
82365
82366 2004-08-06  Simon Josefsson  <jas@extundo.com>
82367
82368         * modules/getsubopt: New file.
82369         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82370         getsubopt.
82371
82372 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82373
82374         More merge from coreutils.
82375
82376         * m4/utimens.m4, m4/utimecmp.m4: New files.
82377         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82378         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82379         prereq.m4, sha.m4: Import changes from coreutils.
82380
82381 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         More merge from coreutils.
82384         * modules/raise, modules/readtokens0, modules/utimens:
82385         * modules/utimecmp, module/xnanosleep: New files.
82386         * modules/strftime: Add lib/strftime.h.
82387         Change include from <time.h> to "strftime.h".
82388         * modules/yesno: Add lib/yesno.h.
82389         * modules/backupfile: Remove lib/addext.c.
82390         * modules/euidaccess: Add stat-macros.h.
82391         * modules/canonicalize, modules/euidaccess,
82392         modules/filemode, modules/lchown, modules/makepath,
82393         modules/rmdir, modules/stat: Likewise.
82394
82395 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82396
82397         Merge from tar.
82398         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82399         SIZE_MAX is a valid preprocessor constant.
82400         (__argp_basename): Change from "#ifndef _LIBC"
82401         to "#ifndef __argp_short_program_name", so that
82402         we don't compile these functions for tar.
82403
82404         More merges from coreutils.
82405         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82406         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82407         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82408         * lib/addext.c: Remove; no longer needed.
82409         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82410         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82411         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82412         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82413         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82414         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82415         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82416         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82417         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82418         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82419         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82420         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82421         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82422         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82423         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82424         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82425         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82426         Import changes from coreutils.
82427
82428 2004-08-05  Simon Josefsson  <jas@extundo.com>
82429
82430         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82431
82432 2004-08-05  Simon Josefsson  <jas@extundo.com>
82433
82434         * m4/getsubopt.m4: New file.
82435
82436 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82437
82438         Merge from coreutils.
82439
82440         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82441         * m4/getcwd-path-max.m4: New files.
82442
82443         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82444         FILESYSTEM_PREFIX_LEN ->
82445         FILE_SYSTEM_PREFIX_LEN.
82446         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82447         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82448         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82449         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82450
82451         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82452         prerequisite modules now handle the DOS stuff.
82453         Don't check for unistd.h.
82454
82455 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82456
82457         Merge from coreutils.
82458
82459         * lib/.gdb-history: Remove; this doesn't belong here.
82460
82461         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82462         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82463         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82464         * lib/getcwd.c: New files.
82465
82466         * lib/dirname.h: Include <stdbool.h>.
82467         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82468         for consistency with POSIX terminology.  All uses changed.
82469         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82470         (strip_trailing_slashes): Use bool for booleans.
82471         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82472
82473         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82474         sometimes returns a positive errno value even when it succeeds.
82475         (print_errno_message) [!LIBC]: Fall back on strerror if
82476         __strerror_r fails.
82477
82478         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82479         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82480         (longest_relative_suffix): New function.
82481         (path_concat): Use it.  Assume first argument is not NULL.
82482         Port to DOS.  Omit redundant separators.
82483         Report an error instead of returning NULL.
82484         Use mempcpy instead of memcpy.
82485         (xpath_concat): Remove: not declared or used.
82486
82487         * lib/same.h: Include <stdbool.h>
82488         (same_name): Return bool, not int.
82489         * lib/same.c (same_name): Likewise.
82490         (errno): Don't declare; we assume C89 or better now.
82491
82492         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82493         if not already defined.
82494
82495         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82496         * lib/dup-safer.c (errno): Likewise.
82497
82498 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82499
82500         Merge from coreutils.
82501         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82502         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82503         * modules/path-concat: Don't depend on strdup.
82504
82505 2004-08-03  Simon Josefsson  <jas@extundo.com>
82506
82507         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82508         * lib/progname.h: Don't include stdbool.h.
82509
82510 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82511
82512         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82513         * MODULES.html.sh (func_all_modules): Remove fatal.
82514
82515 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82516
82517         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82518
82519 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82520
82521         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82522         working.
82523
82524 2004-08-02  Simon Josefsson  <jas@extundo.com>
82525
82526         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82527         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82528         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82529
82530 2004-08-01  Simon Josefsson  <jas@extundo.com>
82531
82532         * lib/xgetdomainname.c: Include stdlib.h, for free().
82533
82534 2004-07-19  Bruno Haible  <bruno@clisp.org>
82535
82536         * MODULES.html.sh (func_all_modules): Add dummy.
82537
82538 2004-07-16  Simon Josefsson  <jas@extundo.com>
82539
82540         * modules/dummy: New file.
82541
82542 2004-07-16  Simon Josefsson  <jas@extundo.com>
82543
82544         * lib/dummy.c: New file.
82545
82546 2004-07-16  Bruno Haible  <bruno@clisp.org>
82547
82548         * lib/backupfile.h: Add extern "C" for C++.
82549         * lib/closeout.h: Likewise.
82550         * lib/copy-file.h: Likewise.
82551         * lib/findprog.h: Likewise.
82552         * lib/full-write.h: Likewise.
82553         * lib/pathname.h: Likewise.
82554         * lib/progname.h: Likewise.
82555         * lib/stpcpy.h: Likewise.
82556         * lib/stpncpy.h: Likewise.
82557         * lib/strcase.h: Likewise.
82558         * lib/strstr.h: Likewise.
82559         * lib/xalloc.h: Likewise.
82560
82561         * lib/mbswidth.h: Add extern "C" for C++.
82562         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82563
82564 2004-07-13  Robert Millan  <robertmh@gnu.org>
82565
82566         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82567
82568 2004-07-09  Simon Josefsson  <jas@extundo.com>
82569
82570         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82571         failed without this.)
82572
82573 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82574
82575         * modules/chown (Files): Add lib/fchown-stub.c, since
82576         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82577
82578 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82579
82580         * lib/fchown-stub.c: New file.
82581
82582 2004-06-24  Jim Meyering  <jim@meyering.net>
82583
82584         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82585
82586 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82587
82588         * modules/argz: Omit "#include".
82589
82590         * MODULES.html.sh (func_all_modules): Add calloc, to match
82591         2004-06-01 addition of calloc module.
82592
82593 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82594
82595         * m4/argz.m4: New file, which is autoupdated from libtool.
82596
82597 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82598
82599         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82600         libtool.
82601
82602 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82603
82604         * config/srclist-update: Don't insist on "USA." before the
82605         close-comment, as libtool omits the period and puts the */ on a
82606         separate line.
82607         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82608         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82609
82610 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82611
82612         * modules/argz: New file.
82613         * MODULES.html.sh (func_all_modules): Add argz.
82614
82615 2004-06-12  Jim Meyering  <jim@meyering.net>
82616         and  Paul Eggert  <eggert@cs.ucla.edu>
82617
82618         * modules/hash (Files): Add lib/xalloc.h.
82619         * modules/pipe (Depends-on): Add wait-process.
82620         * modules/stat (Depends-on): Add xalloc.
82621         * modules/userspec (Files): Add lib/userspec.h.
82622         * modules/xstrto
82623
82624         Upgrade from gettext-0.13.
82625         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82626         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82627         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82628
82629 2004-06-10  Jim Meyering  <jim@meyering.net>
82630
82631         * lib/calloc.c: New file.
82632
82633 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82634
82635         * lib/getdate.y (yylex): Allow space between sign and number.
82636         Problem reported by Dan Jacobson.
82637
82638 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82639
82640         Merge from coreutils CVS.
82641
82642         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82643         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82644         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82645         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82646         xstrtol.m4: Fix copyright date and/or serial number.
82647
82648         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82649         See if we need an fchown replacement.
82650         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82651         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82652         and use the replacement function if we detect either defect.
82653
82654         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82655         gl_UTIMECMP.
82656
82657 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82658         and  Jim Meyering  <jim@meyering.net>
82659
82660         Merge from coreutils CVS.
82661
82662         * lib/stat-macros.h: New file, with contents from file-type.h
82663         and coreutils' system.h.
82664         * lib/file-type.c: Include "stat-macros.h".
82665         * lib/file-type.h (file_type): Move all macro definitions to new file,
82666         stat-macros.h.
82667
82668         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82669         Wrap old code with this conditional.
82670         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82671         function that does not dereference symlinks.
82672         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82673
82674         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82675         dependency problems.
82676         (xreadlink): Accept new arg SIZE, for efficiency.
82677         All decls and uses changed.
82678         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82679
82680         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82681         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82682
82683         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82684         sysexits.h.
82685
82686 2004-06-01  Jim Meyering  <jim@meyering.net>
82687
82688         * m4/calloc.m4: New file.
82689
82690 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82691
82692         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82693         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82694         Also, fix a typo in a diagnostic.
82695
82696 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82697
82698         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82699         or AC_FUNC_REALLOC.
82700
82701 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82702
82703         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82704         macros to be defined.
82705         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82706         the allocator returns NULL because the requested size is zero.
82707
82708 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82709
82710         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82711         var.  Add comment explaining why libc still defines it.  This
82712         merges the following patch from glibc:
82713         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82714
82715 2004-05-20  Andreas Schwab  <schwab@suse.de>
82716
82717         * m4/free.m4: Replace free if it not known to work, not the other
82718         way round.
82719
82720 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82721
82722         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82723         present in glibc since revision 1.1 of this file.
82724         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82725         obstack_alignment_mask, obstack_alloc, obstack_base,
82726         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82727         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82728         obstack_grow0, obstack_init, obstack_int_grow,
82729         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82730         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82731         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82732         nonexistent functions.
82733
82734 2004-05-18  Karl Berry  <karl@gnu.org>
82735
82736         * config/srclist.txt: break link for vasnprintf.c.
82737
82738 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82739
82740         Port obstack to the AS/400, where pointers are 16 bytes wide and
82741         you cannot cast an integer to a valid pointer.  This patch is
82742         currently waiting to be integrated into glibc; see
82743         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82744
82745         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82746         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82747         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82748         (struct obstack): temp member is now a union of a pointer and
82749         an integer, instead of an integer.  All integer uses changed.
82750         This does not affect the physical layout of struct obstack,
82751         except on hosts (like the AS/400) where the size or alignment of
82752         void * is greater than that of ptrdiff_t.
82753         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82754         __STDC__)]: Store temporary in pointer member of union, not
82755         integer member.
82756         * lib/obstack.c: Include <stddef.h>, for offsetof.
82757         (struct fooalign): Remove; it doesn't need a name.
82758         (union fooround): Change double to long double, and add void *.
82759         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82760         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82761         not a macro.  Hence the values are always int; so remove all
82762         casts-to-int in uses.
82763
82764 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82765
82766         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82767         we can get this patch merged into glibc.
82768
82769 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82770             Paul Eggert  <eggert@cs.ucla.edu>
82771
82772         * m4/argp: Depend on alloca.
82773
82774 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82775             Paul Eggert  <eggert@cs.ucla.edu>
82776
82777         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82778         freecoding.
82779
82780 2004-05-17  Bruno Haible  <bruno@clisp.org>
82781
82782         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82783         precision that consists of a '.' followed by an empty digit string.
82784         Patch by Tor Lillqvist <tml@iki.fi>.
82785
82786 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82789         for backward compatibility with older code.  We need our own
82790         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82791         it under some other name, and our alloca.h will define it.
82792
82793 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82794             Derek Price  <derek@ximbiot.com>
82795
82796         * lib/alloca.c: Include <alloca.h>, to get our interface.
82797         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82798         include <alloca.h> first.  Use C89 prototype for alloca; this
82799         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82800         Use #elif for simplicity, since we can assume C89 now.
82801         Don't try to source the system alloca.h since it will not be found
82802         and to prevent recursively including its replacement.
82803         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82804         * lib/regex.c: Likewise.
82805
82806 2004-05-16  Derek Price  <derek@ximbiot.com>
82807             Paul Eggert  <eggert@cs.ucla.edu>
82808
82809         getline cleanup.  This changes the getndelim2 API: both order of
82810         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82811         no delimiter).
82812
82813         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82814         interface does that.
82815         (getline): Always use getdelim, so that we don't have two
82816         copies of this code.
82817         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82818         if available.
82819         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82820         (GETNDELIM2_MAXIMUM): New macro.
82821         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82822         instead of the old practice of delim2==0.  All callers changed.
82823         Return -1 on overflow, instead of returning junk.
82824         Do not set *linesize unless allocation succeeds.
82825         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82826         that we include sys/types.h.
82827         * lib/getnline.h: Likewise.
82828         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82829         (getndelim2): Reorder arguments.
82830         * lib/getnline.c (getnline, getndelim):
82831         Don't discard the NMAX argument.
82832         (getnline): Invoke getndelim, to avoid code duplication.
82833         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82834         of (size_t) -1 by callers of the getnline family.
82835
82836 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82837
82838         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82839         Check for gettimeofday.
82840         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82841         Check for settimeofday, stime.
82842
82843 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82844
82845         * lib/nanosleep.c (suspended): Change its type from int to
82846         sig_atomic_t volatile.
82847         (first_call): Make it private to rpl_nanosleep, and have it
82848         be zero initially as that's a bit faster.
82849         (my_usleep): Round up fractional times instead of truncating them,
82850         as this is the usual meaning for 'sleep'.
82851
82852         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82853         doesn't work.
82854         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82855         (ENOSYS): Define if not defined.
82856         (settime): Fall back on stime if it exists and settimeofday fails.
82857         But don't bother with fallbacks if a method fails with errno == EPERM.
82858
82859 2004-05-11  Jim Meyering  <jim@meyering.net>
82860
82861         Prior to this change, the save_cwd caller required read access to the
82862         current directory on most systems (ones with the fchdir function).
82863
82864         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82865         fails, try write-only, and finally, resort to using xgetcwd.
82866
82867 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82868
82869         * lib/obstack.c, obstack.h: Import changes from libc.
82870
82871 2004-04-28  Bruno Haible  <bruno@clisp.org>
82872
82873         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82874         also implicitly appends .exe to executables.
82875         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82876         accepts Windows pathnames.
82877         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82878         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82879         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82880         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82881         Reported by Derek Robert Price <derek@ximbiot.com>.
82882
82883 2004-04-21  Karl Berry  <karl@gnu.org>
82884
82885         * config/srclist.txt (localcharset.c): break sync.
82886
82887 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82888
82889         * m4/host-os.m4: Add a copyright notice.
82890
82891 2004-04-20  Jim Meyering  <jim@meyering.net>
82892
82893         Change UTILS_ to gl_ in AC_DEFINE'd names.
82894         Change utils_- and jm_-prefixed variables, too.
82895         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82896         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82897         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82898
82899         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82900         Don't emit trailing blanks.
82901         Also rename jm_-prefixed variables to have gl_ prefix.
82902
82903         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82904         Also rename jm_-prefixed variables to have gl_ prefix.
82905
82906         * m4/jm-macros.m4: Reflect the renamings.
82907         * m4/prereq.m4: Likewise.
82908
82909 2004-04-20  Jim Meyering  <jim@meyering.net>
82910
82911         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82912         memory.
82913
82914 2004-04-20  Jim Meyering  <jim@meyering.net>
82915             Bruno Haible  <bruno@clisp.org>
82916
82917         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82918         memory when realloc fails.
82919
82920 2004-04-19  Jim Meyering  <jim@meyering.net>
82921
82922         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82923         now that readutmp.c may call `free (0)'.
82924
82925 2004-04-19  Bruno Haible  <bruno@clisp.org>
82926
82927         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82928         * m4/inttypes_h.m4: Likewise.
82929         * m4/stdint_h.m4: Likewise.
82930         * m4/intmax_t.m4: Likewise.
82931         * m4/uintmax_t.m4: Likewise.
82932
82933 2004-04-18  Jim Meyering  <jim@meyering.net>
82934
82935         * m4/prereq.m4: Don't forbid jm_ prefix.
82936
82937         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82938         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82939         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82940         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82941         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82942         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82943         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82944         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82945         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82946         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82947         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82948         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82949         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82950         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82951         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82952         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82953         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82954         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82955         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82956
82957 2004-04-18  Jim Meyering  <jim@meyering.net>
82958
82959         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82960         failure, don't leak memory and do call END_UTMP_ENT.
82961
82962 2004-04-16  Jim Meyering  <jim@meyering.net>
82963
82964         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82965         coreutils' stat program.
82966         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82967
82968 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82969
82970         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82971         C89.
82972         (CHAR_BIT): Remove, since we assume C89.
82973         Include <stdint.h> if available, as per current Autoconf CVS advice.
82974
82975 2004-03-31  Jim Meyering  <jim@meyering.net>
82976
82977         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82978         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82979         * m4/xalloc.m4: Likewise.
82980
82981 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82982
82983         Merge from coreutils.
82984
82985         * m4/inttostr.m4: New file.
82986         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82987         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82988         Require gl_CLOCK_TIME.
82989         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82990
82991 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82992
82993         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82994         not bool, to be more consistent with Unix conventions.
82995         Suggested by Bruno Haible.
82996
82997         Merge from coreutils.
82998
82999         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
83000         * lib/umaxtostr.c: New files.
83001
83002         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
83003         the usual <time.h> dance.
83004         (get_date): Change signature to support fractional time stamps.
83005         All callers changed.
83006         * lib/getdate.y: Include "getdate.h" first, as we can now
83007         assume C89 and don't need to worry about 'const'.
83008         Similarly, include "unlocked-io.h" near start, not in middle.
83009         Include <limits.h>.
83010         (textint.value): Use long int rather than int.
83011         (textint.digits): Use size_t rather than int.
83012         (BILLION, LOG10_BILLION): New constants.
83013         (parser_control): New member rel_ns.  Members day_ordinal,
83014         time_zone, month, day, hour, minutes, rel_year, rel_month,
83015         rel_day, rel_hour, rel_minutes, rel_seconds
83016         are now long int, not int.  Member seconds is now struct timespec,
83017         not int.  New member timespec_seen.  Members dates_seen, days_seen,
83018         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
83019         not int.
83020         (%union.intval): Now long int, not int.
83021         New member timespec.
83022         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
83023         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
83024         (spec): Now is a timespec or an item list.
83025         (timespec, items): New nonterminals.
83026         (time, rel, relunit, number, get_date):
83027         Add support for fractional seconds.
83028         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
83029         (gmtime, localtime, mktime): Remove decls; not needed with C89.
83030         (to_hour): First arg is now long int, not int.
83031         (to_year): Returns long int, not int.
83032         Don't treat year -70 like 70.
83033         (tm_diff): Returns long int, not int.
83034         (lookup_word): Use bool instead of int when appropriate.
83035         (yylex): Use size_t for count, not int.
83036         Detect overflow when parsing large integer constants.
83037         Add support for fractions.
83038         (get_date): Make pointers 'const' if possible.
83039         Use more-portable code to detect integer overflow.
83040         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
83041         Don't use ctime; it's not reliable if the year has >4 digits.
83042
83043         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
83044         This is for compatibility with BSD.
83045
83046         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
83047         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
83048         From coreutils' system.h.
83049
83050         * lib/userspec.c: Don't include "posixver.h".
83051         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
83052         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
83053         compatible extension.  Simplify code by removing a boolean int
83054         that was always nonzero if a string was nonnull.
83055
83056 2004-03-30  Jim Meyering  <jim@meyering.net>
83057
83058         Merge from coreutils.
83059
83060         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
83061         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
83062         on some systems one must include <grp.h> before it.
83063         Reported by Christian Krackowizer.
83064
83065 2004-03-30  Jim Meyering  <jim@meyering.net>
83066
83067         Merge from coreutils.
83068
83069         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
83070
83071         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
83072         an empty input stream.
83073
83074         * lib/readtokens.c: Include <stdbool.h>.
83075         (readtoken): Use `size_t' rather than int/long.
83076         All callers adjusted.
83077         Use `bool' rather than `int' where appropriate.
83078         Use memset rather than an explicit loop.
83079         Use x2nrealloc rather than xrealloc.
83080         Allow the use of `\0' as a delimiter.
83081         (readtokens): Likewise.
83082         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
83083
83084 2004-03-30  Jim Meyering  <jim@meyering.net>
83085
83086         * m4/realloc.m4: Remove file, since now it does no more than
83087         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
83088         the `configure.ac' section of module/realloc.
83089         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
83090
83091 2004-03-30  Bruno Haible  <bruno@clisp.org>
83092
83093         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
83094         nonnull.
83095
83096 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83097
83098         Merge changes to getloadavg.c from coreutils and Emacs.
83099
83100         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
83101         Define to an expression, not to the empty string.
83102         Include cloexec.h and xalloc.h.
83103         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
83104         Use set_cloexec_flag rather than rolling our own.
83105         * lib/cloexec.c, lib/cloexec.h: New files.
83106
83107 2004-03-29  Paul Eggert  <eggert@twinsun.com>
83108
83109         * m4/cloexec.m4: New file.
83110
83111 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83112
83113         * lib/getopt.h: Sync with libc CVS.
83114
83115 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83116             Bruno Haible  <bruno@clisp.org>
83117
83118         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
83119         mbswidth.
83120
83121 2004-03-18  Paul Eggert  <eggert@twinsun.com>
83122             Bruno Haible  <bruno@clisp.org>
83123
83124         * lib/mbswidth.h: Include <wchar.h> only if
83125         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
83126         <wchar.h>.
83127         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
83128
83129 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83130
83131         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
83132         Sync with libc CVS.
83133         * lib/getopt_int.h: New file, also synced from libc.
83134
83135 2004-03-09  Paul Eggert  <eggert@twinsun.com>
83136
83137         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
83138         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
83139         Bring back getopt.c, getopt.h, getopt1.c.
83140
83141 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83142
83143         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
83144         All uses changed.  Check for sa_sigaction member; this fixes
83145         a bug first reported by Jason Andrade in
83146         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83147
83148 2004-03-07  Paul Eggert  <eggert@twinsun.com>
83149
83150         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
83151         '#if' expressions.  Unlike the code it replaces, it does not
83152         depend on (defined _SC_PAGESIZE).  However, it does depend on
83153         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
83154         first reported by Jason Andrade in
83155         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
83156
83157 2004-02-25  Simon Josefsson  <jas@extundo.com>
83158
83159         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
83160
83161 2004-02-25  Simon Josefsson  <jas@extundo.com>
83162
83163         * lib/strdup.h: New file.
83164         * lib/strdup.c: Include it.
83165         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83166         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83167
83168 2004-02-23  Karl Berry  <karl@gnu.org>
83169
83170         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83171         (from fencepost.gnu.org:/gd/gnuorg).
83172
83173 2004-02-23  Karl Berry  <karl@gnu.org>
83174
83175         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83176         * config/srclist.txt: add maintain/standards documents.
83177
83178 2004-02-18  Bruno Haible  <bruno@clisp.org>
83179
83180         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83181         Reported by Derek Robert Price <derek@ximbiot.com>.
83182
83183 2004-02-16  Karl Berry  <karl@gnu.org>
83184
83185         * config/mkinstalldirs, install-sh: update from automake.
83186
83187 2004-02-06  Karl Berry  <karl@gnu.org>
83188
83189         * m4/po.m4: update from gettext 0.14.1.
83190
83191 2004-02-06  Karl Berry  <karl@gnu.org>
83192
83193         * lib/config.charset: update from gettext 0.14.1.
83194
83195 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83196
83197         Add comments and code, prompted by suggestions from Bruno Haible
83198         for sh-quote.
83199         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83200         describing the enum quoting_style values.
83201         * lib/quotearg.c (quotearg_alloc): New function.
83202         (quotearg_buffer_restyled): Treat lone { and } as special.
83203         Treat = as special.  Work around bug with older shells
83204         that "see" a '\' that is really the 2nd byte of a multibyte char.
83205         Quote empty string with shell_quoting_style.
83206
83207 2004-02-03  Bruno Haible  <bruno@clisp.org>
83208
83209         * m4/pipe.m4: New file, from GNU gettext.
83210
83211 2004-02-03  Bruno Haible  <bruno@clisp.org>
83212
83213         * lib/pipe.h: New file, from GNU gettext.
83214         * lib/pipe.c: New file, from GNU gettext.
83215
83216 2004-01-27  Bruno Haible  <bruno@clisp.org>
83217
83218         * m4/execute.m4: New file, from GNU gettext.
83219
83220 2004-01-27  Bruno Haible  <bruno@clisp.org>
83221
83222         * lib/execute.h: New file, from GNU gettext.
83223         * lib/execute.c: New file, from GNU gettext.
83224         * lib/w32spawn.h: New file, from GNU gettext.
83225
83226 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83227
83228         Merge from diffutils.
83229
83230         * lib/file-type.c (file_type): Add typed memory objects.
83231         * lib/file-type.h (S_TYPEISTMO): New macro.
83232
83233         * lib/c-stack.h (c_stack_action): Remove argv argument.
83234         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83235         (die): Don't calculate message unless segv_action returns.
83236         (get_stack_location, min_address_from_argv, max_address_from_argv,
83237         volatile stack_base, volatile_stack_size): Remove.
83238         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83239         that every segmentation violation is a stack overflow.  (Ouch!)
83240         See Debian bug 136249 (still outstanding) for more info about why
83241         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83242
83243 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83244
83245         Exit-status fix from coreutils.
83246
83247         Use exit_failure consistently in place of EXIT_FAILURE,
83248         so that program exit statuses are consistent on failure.
83249
83250         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83251         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83252         * lib/argmatch.h: Comment fix to match the above.
83253         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83254         Now a macro referring to exit_failure, instead of a separate
83255         variable.  Include "exitfail.h" to get it.
83256         * lib/xstrtol.h: Include "exitfail.h".
83257         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83258
83259         * lib/long-options.c (parse_long_options): Use prototype
83260         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83261         for clarity.
83262
83263 2004-01-21  Jim Meyering  <jim@meyering.net>
83264
83265         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83266         so as not to conflict with a different-sized __mktime_internal
83267         function in GNU libc.
83268         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83269         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83270
83271 2004-01-20  Karl Berry  <karl@gnu.org>
83272
83273         * config/config.guess: update from config.
83274
83275         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83276
83277 2004-01-20  Bruno Haible  <bruno@clisp.org>
83278
83279         Safer stack allocation.
83280         * lib/setenv.c: Include allocsa.h.
83281         (alloca): Remove fallback definition.
83282         (freea): Remove macro.
83283         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83284         instead of freea.
83285
83286 2004-01-20  Bruno Haible  <bruno@clisp.org>
83287
83288         * m4/eealloc.m4: New file, from GNU gettext.
83289
83290 2004-01-20  Bruno Haible  <bruno@clisp.org>
83291
83292         * m4/allocsa.m4: New file, from GNU gettext.
83293
83294 2004-01-20  Bruno Haible  <bruno@clisp.org>
83295
83296         * lib/xallocsa.h: New file, from GNU gettext.
83297         * lib/xallocsa.c: New file, from GNU gettext.
83298
83299 2004-01-20  Bruno Haible  <bruno@clisp.org>
83300
83301         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83302
83303 2004-01-20  Bruno Haible  <bruno@clisp.org>
83304
83305         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83306         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83307         specially.
83308
83309 2004-01-20  Bruno Haible  <bruno@clisp.org>
83310
83311         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83312         patch.
83313
83314 2004-01-20  Bruno Haible  <bruno@clisp.org>
83315
83316         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83317
83318 2004-01-20  Bruno Haible  <bruno@clisp.org>
83319
83320         * lib/eealloc.h: New file.
83321
83322 2004-01-20  Bruno Haible  <bruno@clisp.org>
83323
83324         * lib/binary-io.h: Avoid warnings on Cygwin.
83325
83326 2004-01-20  Bruno Haible  <bruno@clisp.org>
83327
83328         * lib/allocsa.h: New file, from GNU gettext.
83329         * lib/allocsa.c: New file, from GNU gettext.
83330
83331 2004-01-18  Karl Berry  <karl@gnu.org>
83332
83333         * doc/gpl.texi, doc/lgpl.texi: new files.
83334
83335 2004-01-18  Karl Berry  <karl@gnu.org>
83336
83337         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83338         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83339
83340 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83341
83342         Merge from coreutils.
83343
83344         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83345         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83346         (gl_DEFAULT_POSIX2_VERSION): Move
83347         the documentation from 'configure' into 'config.hin',
83348         so that 'configure --help' isn't burdened by it and
83349         we don't have to worry about its formatting there.
83350         Reword the documentation so that it's more succinct
83351         and can be run together into a single paragraph.
83352         * m4/same.m4 (gl_SAME): Check for pathconf.
83353
83354 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83355
83356         Merge from coreutils.
83357
83358         * lib/posixver.c: Include posixver.h.
83359
83360         * lib/same.c: Include <stdbool.h>, <limits.h>.
83361         (_POSIX_NAME_MAX): Define if not defined.
83362         (MIN): New macro.
83363         (same_name): If file names are silently truncated, report
83364         that the file names are the same if they are the same after
83365         the silent truncation.
83366
83367         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83368         conversion function.
83369         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83370         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83371         longer needed.
83372
83373 2004-01-15  Jim Meyering  <jim@meyering.net>
83374
83375         Merge from coreutils.
83376
83377         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83378         if no library is required.
83379         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83380         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83381         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83382         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83383         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83384         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83385         value, $ac_cv_search_crypt, if it's "none required".
83386         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83387         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83388         not gl_FUNC_GETLOADAVG.
83389         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83390         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83391
83392 2004-01-15  Jim Meyering  <jim@meyering.net>
83393
83394         Merge from coreutils.
83395
83396         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83397         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83398         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83399
83400         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83401         optional configure-time default.
83402
83403         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83404
83405         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83406
83407 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83408
83409         Merge from coreutils.
83410
83411         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83412         value, $ac_cv_search_nanosleep, if it's "none required".
83413
83414 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83415
83416         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83417         with like-named macro in fnmatch.c.
83418         (EXT): Use an internal constant instead.
83419
83420         Merge fnmatch patches from glibc.
83421         * lib/fnmatch.c (mbsinit): Remove define.
83422         Add libc_hidden_ver (__fnmatch, fnmatch).
83423         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83424         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83425
83426 2004-01-14  Karl Berry  <karl@gnu.org>
83427
83428         * config/install-sh: update from automake.
83429
83430 2004-01-13  Karl Berry  <karl@gnu.org>
83431
83432         * config/install-sh: update from automake.
83433
83434 2004-01-09  Karl Berry  <karl@gnu.org>
83435
83436         * config/install-sh: update from automake.
83437
83438 2004-01-05  Karl Berry  <karl@gnu.org>
83439
83440         * config/config.{sub,guess}: update from config.
83441
83442 2003-12-31  Karl Berry  <karl@gnu.org>
83443
83444         * config/depcomp: update from automake.
83445
83446 2003-12-14  Karl Berry  <karl@gnu.org>
83447
83448         * lib/config.charset: update from gettext-runtime.
83449
83450 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83451
83452         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83453         Bug reported by Alfred M. Szmidt.
83454
83455 2003-12-03  Bruno Haible  <bruno@clisp.org>
83456
83457         * m4/gettext.m4: Upgrade from gettext-0.13.
83458         * m4/po.m4: Upgrade from gettext-0.13.
83459         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83460         * m4/intmax.m4: New file, from gettext-0.13.
83461         * m4/printf-posix.m4: New file, from gettext-0.13.
83462
83463 2003-11-29  Karl Berry  <karl@gnu.org>
83464
83465         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83466
83467 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83468             Bruno Haible  <bruno@clisp.org>
83469
83470         * lib/printf-parse.h: Don't include sys/types.h.
83471         (ARG_NONE): New macro.
83472         (char_directive): Change type of *arg_index fields to size_t.
83473         * lib/printf-parse.c: Don't include sys/types.h.
83474         (SSIZE_MAX): Remove macro.
83475         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83476         Remove unnecessary overflow check.
83477         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83478         fields.
83479
83480 2003-11-25  Bruno Haible  <bruno@clisp.org>
83481
83482         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83483
83484 2003-11-25  Bruno Haible  <bruno@clisp.org>
83485
83486         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83487         gt_TYPE_SSIZE_T.
83488
83489 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83490
83491         * modules/alloca: Remove dependency on xalloc.
83492
83493 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83494
83495         * lib/alloca.c: Remove dependency on xalloc module.
83496         (xalloc_die): Remove.
83497         (memory_full) [!defined emacs]: New macro.
83498         [!defined emacs]: Don't include xalloc.h.
83499         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83500         address arithmetic overflows.  Change datatypes a bit to avoid
83501         unnecessary casts.
83502
83503 2003-11-22  Jim Meyering  <jim@meyering.net>
83504
83505         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83506         s/size/size_t/.
83507
83508 2003-11-21  Karl Berry  <karl@gnu.org>
83509
83510         * config/config.{sub,guess}: update from config.
83511
83512 2003-11-18  Karl Berry  <karl@gnu.org>
83513
83514         * config/config.{sub,guess}: update from config.
83515
83516         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83517
83518 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83519
83520         * README: Mention that S+T cannot overflow if S is the size of
83521         an existing object and T is sufficiently small.
83522
83523 2003-11-17  Jim Meyering  <jim@meyering.net>
83524
83525         On systems without utime and without a utimes function capable of
83526         dealing with a NULL struct utimbuf* argument, this utime replacement
83527         could -- in unusual circumstances -- leak a file descriptor.
83528         * lib/utime.c: Include <unistd.h> and <errno.h>.
83529         (utime_null): Be sure to close `fd' and to preserve errno.
83530         Reported by Geoff Collyer via Arnold Robbins.
83531
83532 2003-11-17  Bruno Haible  <bruno@clisp.org>
83533
83534         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83535         (Depends-on): Add xsize.
83536
83537 2003-11-17  Bruno Haible  <bruno@clisp.org>
83538
83539         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83540
83541 2003-11-17  Bruno Haible  <bruno@clisp.org>
83542
83543         * lib/vasnprintf.c (alloca): Remove fallback definition.
83544         (freea): Remove definition.
83545         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83546         Reported by Paul Eggert.
83547
83548 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83549             Bruno Haible  <bruno@clisp.org>
83550
83551         Protect against address arithmetic overflow.
83552         * lib/printf-args.h: Include stddef.h.
83553         (arguments): Change type of field 'count' to size_t.
83554         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83555         'unsigned int' where appropriate.
83556         * lib/printf-parse.h: Include sys/types.h.
83557         (char_directive): Change type of *arg_index fields to ssize_t.
83558         (char_directives): Change type of fields 'count', max_*_length to
83559         size_t.
83560         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83561         (SSIZE_MAX): Define fallback value.
83562         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83563         instead of 'int' where appropriate. Check a_allocated, d_allocated
83564         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83565         * lib/vasnprintf.c: Include xsize.h.
83566         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83567         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83568         overflow. Avoid wraparound when converting a width or precision from
83569         decimal to binary.
83570
83571 2003-11-16  Bruno Haible  <bruno@clisp.org>
83572
83573         Update from GNU gettext.
83574         * lib/printf-parse.c: Generalize to it can be compiled for wide
83575         strings.
83576         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83577         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83578         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83579         SNPRINTF): New macros.
83580         Don't include <alloca.h> if the file is used inside libintl.
83581         (local_wcslen): New function, for Solaris 2.5.1.
83582         (VASNPRINTF): Use it instead of wcslen.
83583
83584 2003-11-16  Bruno Haible  <bruno@clisp.org>
83585
83586         * lib/xsize.h (xmax): New function.
83587         (xsum, xsum3, xsum4): Declare as "pure" functions.
83588
83589 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83590
83591         * modules/xalloc (Files): Undo latest change, since xalloc.h
83592         no longer needs SIZE_MAX or PTRDIFF_MAX.
83593
83594 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83595
83596         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83597         gl_PTRDIFF_MAX.
83598
83599 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83600
83601         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83602         "return", to pacify some unknown compiler.  Problem reported
83603         by Joerg Schilling.
83604
83605 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83606
83607         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83608         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83609         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83610         heuristic is just as accurate as far as we know, and it removes a
83611         dependency on size_max.m4 and ptrdiff_max.m4.
83612
83613 2003-11-11  Bruno Haible  <bruno@clisp.org>
83614
83615         * modules/xsize (Files): Add m4/size_max.m4.
83616         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83617
83618 2003-11-11  Bruno Haible  <bruno@clisp.org>
83619
83620         * m4/size_max.m4: New file.
83621         * m4/ptrdiff_max.m4: New file.
83622         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83623         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83624         (gl_XALLOC): Invoke it.
83625
83626 2003-11-11  Bruno Haible  <bruno@clisp.org>
83627
83628         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83629         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83630         defined.
83631
83632 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83633
83634         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83635         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83636         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83637         From Bruno Haible.
83638         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83639         not (size_t) -1, since it's defined here.
83640
83641 2003-11-09  Karl Berry  <karl@gnu.org>
83642
83643         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83644
83645 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83646
83647         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83648         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83649         Reject sizes of exactly SIZE_MAX bytes.
83650         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83651         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83652
83653 2003-11-05  Bruno Haible  <bruno@clisp.org>
83654
83655         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83656         SIZE_MAX defined in <limits.h> on Solaris.
83657
83658 2003-11-04  Jim Meyering  <jim@meyering.net>
83659
83660         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83661         variable names, rather than @VAR@.
83662         * modules/poll: Likewise.
83663
83664 2003-11-04  Bruno Haible  <bruno@clisp.org>
83665
83666         * modules/xsize: New file.
83667         * modules/linebreak: Depend on xsize.
83668         * MODULES.html.sh (func_all_modules): Add xsize.
83669
83670 2003-11-04  Bruno Haible  <bruno@clisp.org>
83671
83672         * m4/xsize.m4: New file.
83673
83674 2003-11-04  Bruno Haible  <bruno@clisp.org>
83675
83676         * lib/xsize.h: New file.
83677         * lib/linebreak.c: Include xsize.h.
83678         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83679         argument for overflow.
83680         Suggested by Paul Eggert.
83681
83682 2003-11-03  Karl Berry  <karl@gnu.org>
83683
83684         * config/config.{guess,sub}: update from config.
83685
83686 2003-11-03  Jim Meyering  <jim@meyering.net>
83687
83688         * modules/userspec (lib_SOURCES): Add userspec.h.
83689         (Include): Add "userspec.h".
83690         Improve description.
83691
83692 2003-11-03  Jim Meyering  <jim@meyering.net>
83693
83694         * lib/userspec.c: Include "userspec.h".
83695         * lib/userspec.h: New file.
83696
83697 2003-11-03  Bruno Haible  <bruno@clisp.org>
83698
83699         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83700
83701 2003-11-03  Bruno Haible  <bruno@clisp.org>
83702
83703         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83704         available, to avoid (extremely rare) race condition.
83705         Suggested by Paul Eggert.
83706
83707 2003-11-02  Karl Berry  <karl@gnu.org>
83708
83709         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83710
83711 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83712
83713         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83714         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83715         (read_filesystem_list): Set and use me_type_malloced.
83716         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83717         whatever the type happens to be), for brevity and consistency.
83718         Check for size calculation overflow on Alphas running OSF/1.
83719
83720 2003-10-31  Jim Meyering  <jim@meyering.net>
83721
83722         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83723
83724         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83725
83726 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83727             Bruno Haible  <bruno@clisp.org>
83728
83729         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83730         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83731
83732 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83733
83734         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83735         netbsd*-gnu*.  Suggested by Robert Millan.
83736
83737 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83738
83739         * modules/group-member: Depend on stdbool.
83740
83741 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83742
83743         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83744
83745 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83746
83747         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83748         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83749         after the 'gnu' in these cases.  This fixes some bugs in the
83750         previous change, and is based on suggestions by Robert Millan.
83751
83752 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83753
83754         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83755         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83756         no longer needed.
83757         * lib/quotearg.c (quotearg_n_options): Use it.
83758         * lib/group-member.c: Include <stdbool.h>.
83759         (free_group_info): Arg is now const *; don't free arg.
83760         (get_group_info): Now returns bool and accepts struct group_info *,
83761         rather than returning a malloc'ed struct group_info *.
83762         All uses changed.  Check for overflow in internal size calculation.
83763
83764         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83765         rather than xmalloc/xrealloc.
83766         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83767         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83768         conformance bug: the old code used a pointer after freeing the
83769         storage that it addressed.
83770         * lib/hash.c (hash_initialize): Simplify the code by using
83771         xalloc_oversized rather than doing it by hand.
83772         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83773         the buffer preserved.  Use free and xmalloc instead.
83774         * lib/quotearg.c (quotearg_n_options): Likewise.
83775         Use a simpler test for size overflow.  Don't use xalloc_oversized
83776         because unsigned int might be wider than size_t (!); this suggests
83777         that we should switch from unsigned int to size_t for slot numbers.
83778
83779 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83780
83781         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83782         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83783         NetBSD kernels.  Requested by Richard Stallman.
83784
83785 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83786
83787         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83788         to allocate the returned structure.  Do not allocate a subarray,
83789         as x2nrealloc will do that.
83790         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83791         instead of xnrealloc.
83792         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83793
83794 2003-10-27  Bruno Haible  <bruno@clisp.org>
83795
83796         * lib/stdbool_.h: Better support for BeOS.
83797
83798 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83799
83800         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83801         now uses inline.
83802
83803 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83804
83805         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83806         callers that want to do their own size-overflow checking.  Include
83807         <stdbool.h>, since xalloc_oversized returns bool.
83808         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83809         to use xalloc_oversized.
83810
83811         Add two functions x2realloc, x2nrealloc, for programs that grow
83812         arrays dynamically by doubling their sizes.
83813         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83814         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83815         New functions.
83816
83817         Port to C99 semantics for 'inline' of external functions.
83818         Bug reported by Bruno Haible.
83819         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83820         with the old contents of xnmalloc.
83821         (xnmalloc, xmalloc): Use it.
83822         (xnrealloc_inline): New static inline function,
83823         with the old contents of xnrealloc.
83824         (xnrealloc, xrealloc): Use it.
83825
83826         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83827         that.
83828
83829 2003-10-26  Karl Berry  <karl@gnu.org>
83830
83831         * config/srclist.txt (COPYING.DOC): no longer available from
83832         /gd/gnuorg; don't know where the ultimate source is.
83833
83834 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83835
83836         Fix several address-calculation bugs in the hash modules,
83837         plus some minor code cleanup.
83838
83839         * lib/hash.h: Include <stdbool.h>, for bool.
83840         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83841         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83842         hash_get_n_entries, hash_get_max_bucket_length,
83843         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83844         hash_rehash): Use size_t rather than unsigned.
83845         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83846         hash_get_n_buckets_used, hash_get_n_entries,
83847         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83848         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83849         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83850         Likewise.
83851         (SIZE_MAX): Define if not defined.
83852         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83853         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83854         hash_print):
83855         Use const * when possible.
83856         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83857         (check_tuning): Fix bug: if tuning parameters were very close to
83858         0 or 1, rounding errors could have caused subscript violations.
83859         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83860         (hash_initialize): Add 'fail:' label
83861         to free table and return NULL, and use it to simplify code.
83862         Use calloc rather than clearing the storage ourself.
83863         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83864         buffer size calculations.
83865         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83866         Include <stddef.h>, for size_t.
83867         * lib/hash-pjw.c (hash_pjw): Likewise.
83868         Switch to method described by Bruno Haible.
83869         Include <limits.h>, for CHAR_BIT.
83870         (SIZE_BITS): New macro.
83871
83872 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83873
83874         * m4/getline.m4 (AM_FUNC_GETLINE):
83875         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83876         hosts.  Problem reported by Derek Robert Price in
83877         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83878         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83879         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83880
83881 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83882
83883         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83884         ceiling the allocation at NMAX bytes rather than silently
83885         discarding input bytes before NMAX is reached.  This makes
83886         a difference only if NMAX exceeds SIZE_MAX / 2.
83887
83888         * lib/obstack.c: Merge from glibc.
83889         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83890         Add libc_hidden_def (_obstack_newchunk).
83891         (_obstack_free) [! defined _LIBC]: Remove.
83892         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83893         a clone of the function body.
83894         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83895         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83896
83897         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83898         glibc.
83899         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83900         arg to memcpy.
83901
83902         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83903         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83904         Don't use lvalue casts, as GCC plans to remove support for them
83905         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83906         was also present in the non-GCC version, indicating that this
83907         code had always been buggy and had never been widely used.
83908         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83909         Use the fast variant of each macro, rather than copying the
83910         definiens of the fast variant; that way, we'll be more likely to
83911         catch future bugs in the fast variants.
83912
83913 2003-10-20  Bruno Haible  <bruno@clisp.org>
83914
83915         * modules/wait-process: New file.
83916         * MODULES.html.sh (func_all_modules): Add wait-process.
83917
83918 2003-10-20  Bruno Haible  <bruno@clisp.org>
83919
83920         * m4/wait-process.m4: New file.
83921
83922 2003-10-20  Bruno Haible  <bruno@clisp.org>
83923
83924         * lib/wait-process.h: New file, from GNU gettext.
83925         * lib/wait-process.c: New file, from GNU gettext.
83926
83927 2003-10-19  Jim Meyering  <jim@meyering.net>
83928
83929         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83930         HPUX 10.20.
83931
83932 2003-10-18  Karl Berry  <karl@gnu.org>
83933
83934         * config/config.guess: update from config.
83935
83936 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83937
83938         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83939         (getgroups): First arg is int, not size_t.
83940         Don't let 'free' mangle errno.
83941
83942 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83943
83944         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83945
83946 2003-10-16  Karl Berry  <karl@gnu.org>
83947
83948         * config/config.{guess,sub}: update from config.
83949
83950 2003-10-16  Jim Meyering  <jim@meyering.net>
83951
83952         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83953         memcpy.
83954
83955 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83956
83957         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83958         (SIZE_MAX): Remove.
83959         (new_exclude, add_exclude_file): Initial size no longer needs to
83960         be a power of 2.
83961         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83962         our own address arithmetic overflow checking.
83963
83964         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83965         (fnmatch): Do not alloca more than 2000 wide characters;
83966         instead, use malloc for large buffers.
83967         Check for address arithmetic overflow, and return -1
83968         with errno set to ENOMEM in that case.
83969         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83970         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83971         instead, return -1.  Check for address arithmetic overflow.
83972
83973 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83974
83975         Handle invalid suffixes and overflow independently, so that
83976         callers can treat them independently as needed.  Fix some bugs in
83977         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83978         suffix for a human-readable blocksize.  The major caller-visible
83979         change is the addition of a new
83980         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83981         that both overflow and suffix chars were found.
83982
83983         * lib/human.c (humblock): Don't check separately for invalid suffix
83984         char; that is xstrtoumax's job (now that its bug is fixed).
83985         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83986         INTMAX_MAX]: New macros.
83987         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83988         TYPE_MAXIMUM): New macros.
83989         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83990         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83991         if overflow occurs, as it's what __strtol does and it's more useful
83992         in practice.
83993         (__xstrtol): If __strtol reports some error other than ERANGE,
83994         reflect it to the caller as LONGINT_INVALID.  If it reports
83995         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83996         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83997         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83998         value.
83999         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
84000         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
84001         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
84002         [defined UINTMAX_MAX]: New macros.
84003
84004 2003-10-14  Bruno Haible  <bruno@clisp.org>
84005
84006         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
84007
84008 2003-10-14  Bruno Haible  <bruno@clisp.org>
84009
84010         * m4/sig_atomic_t: New file, from GNU gettext.
84011         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
84012
84013 2003-10-14  Bruno Haible  <bruno@clisp.org>
84014
84015         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
84016         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
84017         Also use volatile where needed.
84018
84019 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84020
84021         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
84022         Change maintainer from Bruno Haible to 'all'.
84023
84024 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84025
84026         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
84027
84028 2003-10-12  Paul Eggert  <eggert@twinsun.com>
84029
84030         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
84031         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
84032         and define in terms of the other primitives.
84033         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
84034         (SIZE_MAX): Define if not already defined.
84035         (array_size_overflow): New function.
84036         (xalloc_die): Abort instead of exiting if 'error' returns.
84037         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
84038         (xmalloc, xrealloc): Use them.
84039         (xcalloc): Check for address arithmetic overflow.
84040         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
84041         a bit faster than strcpy.
84042
84043 2003-10-10  Simon Josefsson  <jas@extundo.com>
84044
84045         * modules/argp (Depends-on): Add restrict and strcase.
84046
84047 2003-10-10  Simon Josefsson  <jas@extundo.com>
84048
84049         * m4/argp.m4: Add AC_C_INLINE.
84050
84051 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84052
84053         Merge getpass from libc, plus a few fixes.
84054
84055         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
84056         Include <stdbool.h>.
84057         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
84058         __fsetlocking to empty.
84059         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
84060         do include <bits/libc-lock.h>.
84061         Do not include <fcntl.h>; not needed.
84062         [_LIBC]: Include <wchar.h>.
84063         (NOTCANCEL_MODE): New macro.
84064         (flockfile, funlockfile) [_LIBC]: New macros.
84065         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
84066         [!_LIBC]: New macros.
84067         (call_fclose): New function.
84068         (getpass): Use it.  Save tty stream separately; this simplifies the
84069         code and makes it more reliable if stdin happens to equal stdout.
84070         Invoke __fsetlocking on tty.
84071         Handle thread cancellation if needed.
84072         Namespace cleanup (use __tcgetattr, __getline).
84073         Use bool for Booleans.
84074         [USE_IN_LIBIO]: Handle wide streams.
84075         [!_LIBC]: Unconditionally do the fseek, since we don't know what
84076         stream might go where.
84077
84078         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
84079         doesn't have to include <stdio.h> before us.
84080         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
84081         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
84082         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
84083         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
84084         if not declared, so that we can use getpass.c code from libc without
84085         rewriting it.
84086         (flockfile, ftrylockfile, funlockfile): New macros.
84087
84088 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84089
84090         * modules/getpass: Depend on stdbool.
84091
84092 2003-10-08  Paul Eggert  <eggert@twinsun.com>
84093
84094         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
84095
84096 2003-10-07  Karl Berry  <karl@gnu.org>
84097
84098         * config/config.{guess,sub}: update from config.
84099
84100 2003-10-06  Jim Meyering  <jim@meyering.net>
84101             Bruno Haible  <bruno@clisp.org>
84102
84103         This lets translators provide better translations for the
84104         "Written by ..." part of --version output.
84105         * lib/version-etc.h: Include stdarg.h.
84106         (version_etc_copyright): Declare as readonly.
84107         (version_etc): Make this function variadic with a NULL-terminated list
84108         of author name strings.
84109         (version_etc_va): New declaration.
84110         * lib/version-etc.c: Include stdarg.h, stdlib.h.
84111         (version_etc_copyright): Declare as readonly.
84112         (version_etc_va): New function. Provide a different translatable string
84113         for each possible number of authors < 10. Abbreviate when there are 10
84114         authors or more.
84115         (version_etc): Make this function variadic. Call version_etc_va.
84116         Suggestion from Gary V. Vaughan.
84117
84118         * lib/long-options.h (parse_long_options): Change prototype: the
84119         authors string is moved to the end and becomes variadic.
84120         * lib/long-options.c: Include stdarg.h.
84121         (parse_long_options): Make this function variadic, too.
84122         Call version_etc_va, not version_etc.
84123
84124 2003-10-06  Bruno Haible  <bruno@clisp.org>
84125
84126         * modules/version-etc-2: Remove file.
84127         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
84128
84129 2003-10-06  Bruno Haible  <bruno@clisp.org>
84130
84131         * modules/fatal-signal: New file.
84132         * MODULES.html.sh (func_all_modules): Add fatal-signal.
84133
84134 2003-10-06  Bruno Haible  <bruno@clisp.org>
84135
84136         * m4/fatal-signal.m4: New file.
84137         * m4/signalblocking.m4: New file, from GNU gettext.
84138
84139 2003-10-06  Bruno Haible  <bruno@clisp.org>
84140
84141         * lib/version-etc-2.h: Remove file.
84142         * lib/version-etc-2.c: Remove file.
84143
84144 2003-10-06  Bruno Haible  <bruno@clisp.org>
84145
84146         * lib/fatal-signal.h: New file, from GNU gettext.
84147         * lib/fatal-signal.c: New file, from GNU gettext.
84148
84149 2003-10-05  Paul Eggert  <eggert@twinsun.com>
84150
84151         * README: Rework advice for preventing empty .o files.
84152         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
84153         not <sys/types.h>.
84154
84155 2003-10-04  Karl Berry  <karl@gnu.org>
84156
84157         * lib/argp*: update from libc.
84158
84159 2003-10-04  Karl Berry  <karl@gnu.org>
84160
84161         * config/config.{guess,sub}: update from config.
84162
84163 2003-10-02  Bruno Haible  <bruno@clisp.org>
84164
84165         * modules/lchown (Include): Add lchown.h.
84166         * modules/time_r (Include): Use "..." syntax.
84167         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84168
84169 2003-10-01  Simon Josefsson  <jas@extundo.com>
84170
84171         * MODULES.html.sh (func_all_modules): Move gethostname from section
84172         'based on' to section 'lacking' POSIX:2001.
84173
84174 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84175
84176         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84177         to output mode on the same stream.
84178
84179 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84180
84181         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84182         Fix arg typo in previous patch.
84183
84184 2003-09-28  Jim Meyering  <jim@meyering.net>
84185
84186         * lib/error.c: Correct cpp indentation.
84187
84188 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84189
84190         * modules/free: New file.
84191
84192 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84193
84194         * m4/free.m4: New file.
84195
84196 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84197
84198         * lib/minmax.h (MIN, MAX)
84199         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84200         Omit the special code that used __typeof__, since we worry that
84201         it could be more trouble than it's worth.  See:
84202         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84203         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84204
84205         * lib/free.c: New file.
84206
84207 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84208
84209         Trivial fixes to Makefile.am parts of module listings.
84210         * modules/strstr: Append strstr.h to lib_SOURCES.
84211         * modules/strcase: Likewise, for strcase.h.
84212
84213 2003-09-27  Karl Berry  <karl@gnu.org>
84214
84215         * config/mkinstalldirs: update from automake.
84216
84217 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84218
84219         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84220         (error_tail): Do not loop, reallocating temporary buffer, since
84221         the output cannot contain more wide characters than the input
84222         contains bytes, the size must be big enough already.  This avoids
84223         one potential size overflow calculation.  Check for size overflow
84224         when calculating temporary buffer size.  Free temporary buffer
84225         when done, if it was allocated with malloc; this plugs a memory
84226         leak.  Remove casts from void * to pointers, that are no longer
84227         needed now that we're assuming C89 or better.
84228
84229         Merge error changes from glibc.
84230
84231         * lib/error.c, error.h: Update copyright notice header to match glibc.
84232         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84233         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84234         Disable cancellation while printing error.
84235         * lib/error.h: Prepend __ to parameter names.
84236
84237 2003-09-26  Jim Meyering  <jim@meyering.net>
84238
84239         * lib/error.c (error_tail): Move some declarations
84240         into inner scope where the local variables are used.
84241
84242 2003-09-26  Bruno Haible  <bruno@clisp.org>
84243
84244         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84245         stpncpy().
84246         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84247
84248 2003-09-26  Bruno Haible  <bruno@clisp.org>
84249
84250         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84251         (stpncpy): Define as alias for gnu_stpncpy.
84252         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84253
84254 2003-09-25  Simon Josefsson  <jas@extundo.com>
84255
84256         * lib/xgetdomainname.h: New file.
84257         * lib/xgetdomainname.c: New file.
84258
84259 2003-09-25  Simon Josefsson  <jas@extundo.com>
84260             Bruno Haible  <bruno@clisp.org>
84261
84262         * modules/getdomainname: New file.
84263         * modules/xgetdomainname: New file.
84264         * MODULES.html.sh (func_all_modules): Add getdomainname,
84265         xgetdomainname.
84266
84267 2003-09-25  Simon Josefsson  <jas@extundo.com>
84268             Bruno Haible  <bruno@clisp.org>
84269
84270         * m4/getdomainname.m4: New file.
84271
84272 2003-09-25  Simon Josefsson  <jas@extundo.com>
84273             Bruno Haible  <bruno@clisp.org>
84274
84275         * lib/getdomainname.h: New file.
84276         * lib/getdomainname.c: New file.
84277
84278 2003-09-25  Karl Berry  <karl@gnu.org>
84279
84280         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84281
84282 2003-09-25  Karl Berry  <karl@gnu.org>
84283
84284         * config/install-sh: update from automake.
84285
84286 2003-09-25  Bruno Haible  <bruno@clisp.org>
84287
84288         * modules/version-etc-2: New file, from modules/version-etc with
84289         modifications.
84290         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84291
84292 2003-09-25  Bruno Haible  <bruno@clisp.org>
84293
84294         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84295         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84296
84297 2003-09-24  Simon Josefsson  <jas@extundo.com>
84298
84299         * modules/xgethostname: Add xgethostname.h.
84300
84301 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84302
84303         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84304         the buffer associated with the argument.  Bug reported by
84305         Simon Josefsson.
84306
84307 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84308
84309         * README: Document assumptions that 'int' is at least 32 bits
84310         wide, that integer arithmetic is 2's complement without overflow,
84311         that there are no holes in integer values, that adding sizes of
84312         two nonoverlapping objects can't overflow, and that all-bits-zero
84313         yields scalar zero.  Fix spelling and capitalization typos.
84314
84315 2003-09-19  Karl Berry  <karl@gnu.org>
84316
84317         * lib/argp.h: update from libc.
84318
84319 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84320
84321         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84322         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84323         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84324
84325 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84326
84327         * gnulib-tool: Use "test -h", not "test -L", for portability
84328         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84329         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84330         (sed_extract_prog): Issue s commands one-by-one, rather than
84331         using \| in one s command.
84332
84333 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84334
84335         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84336         input error, instead of returning NULL the next time we are called
84337         (and therefore losing track of errno).
84338
84339 2003-09-16  Bruno Haible  <bruno@clisp.org>
84340
84341         * gnulib-tool (func_create_testdir): Warn about duplicated
84342         dependencies.
84343
84344 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84345
84346         * modules/argmatch, modules/fatal, modules/obstack,
84347         modules/xalloc, modules/xgethostname: Sort dependencies by
84348         importance, not alphabetically.
84349
84350 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84351
84352         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84353         fails, so that the caller gets the proper errno.
84354
84355         * lib/readutmp.c (read_utmp): Likewise.
84356         Check for fstat error.  Close stream and free storage
84357         when failing.
84358
84359 2003-09-14  Karl Berry  <karl@gnu.org>
84360
84361         * config/srclist.txt (strdup.c): disable for c89 changes.
84362
84363 2003-09-14  Jim Meyering  <jim@meyering.net>
84364
84365         * lib/getloadavg.c: Correct cpp indentation.
84366         * lib/strdup.c: Likewise.
84367         * lib/vasnprintf.c: Likewise.
84368
84369 2003-09-14  Bruno Haible  <bruno@clisp.org>
84370
84371         * modules/fwriteerror: New file.
84372         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84373
84374 2003-09-14  Bruno Haible  <bruno@clisp.org>
84375
84376         * lib/fwriteerror.h: New file.
84377         * lib/fwriteerror.c: New file.
84378
84379 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84380
84381         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84382         modules/xgethostname, modules/xalloc: Depend on exit.
84383
84384 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84385
84386         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84387
84388         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84389         and AC_MINIX, too, so that their extensions are available.
84390
84391         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84392         This macro has been superseded by gl_BACKUPFILE.
84393
84394         More patches to assume C89 or better.
84395
84396         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84397
84398         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84399         unconditionally.
84400         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84401         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84402         Include <string.h>, <stdlib.h> unconditionally.
84403         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84404         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84405         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84406         headers or for string.h.
84407         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84408         or strtoul.
84409
84410         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84411         headers.
84412         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84413         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84414         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84415         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84416         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84417         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84418         memcpy, memset.
84419         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84420         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84421         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84422         strtol.
84423         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84424         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84425         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84426         strtoul.
84427
84428 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84429
84430         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84431         * lib/obstack.c [!defined _LIBC]: Likewise.
84432         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84433         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84434         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84435
84436         More changes to assume C89 or better.
84437
84438         * lib/error.c (error_tail): Assume vprintf.
84439
84440         * lib/argmatch.c (getenv): Remove decl.
84441         * lib/progreloc.c (get_full_program_name): Define via prototype.
84442         * lib/setenv.c (clearenv): Likewise.
84443         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84444         needed.
84445         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84446         (malloc, memcpy): Remove decls.
84447         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84448         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84449         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84450         (memcpy): Remove macro.
84451         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84452         (__P): Remove.  All uses removed.
84453         (PTR): Remove.  All uses changed to void *.
84454         (CHAR_BIT, NULL): Remove.
84455         (spaces, zeros, memset_space, memset_zero)
84456         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84457         Remove.
84458         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84459         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84460         Define with prototype.
84461         Remove now-unnecessary prototype decl.
84462         (extra_args_spec): Assume ANSI C.  All uses changed.
84463         (extra_args_spec_iso): Remove.
84464         (my_strftime, emacs_strftimeu): Define via prototype.
84465         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84466         unconditionally.
84467         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84468         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84469         (strtoul, strtol): Remove decls.
84470         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84471         LONG_MAX): Remove.
84472         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84473         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84474         (LOCALE_PARAM_PROTO): New macro.
84475         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84476         (INTERNAL (strtol), strtol): Define with a prototype.
84477         (PARAMS): Remove.  All uses removed.
84478         * lib/tempname.c: Include <string.h> unconditionally.
84479         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84480         * lib/xgethostname.c (main): Define with a prototype.
84481         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84482         Include <stdlib.h> unconditionally.
84483         (calloc, malloc, realloc, free): Remove decls.
84484         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84485         Include <stdlib.h> unconditionally.  Sort include file names.
84486         (strtod): Remove.
84487         (xstrtod): Define with a prototype.
84488         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84489         (strtol, strtoul): Remove decls.
84490
84491 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84492
84493         More patches to assume C89 or better.
84494         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84495         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84496         string.h, memchr, STDC_HEADERS.
84497
84498 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84499
84500         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84501         Include <stdlib.h>, <string.h> unconditionally.
84502         Remove now-unnecessary cast to char *.
84503         * lib/strnlen.c: Include <string.h> unconditionally.
84504         * lib/yesno.c (yesno): Define with a prototype.
84505
84506 2003-09-11  Bruno Haible  <bruno@clisp.org>
84507
84508         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84509
84510 2003-09-10  Jim Meyering  <jim@meyering.net>
84511
84512         * lib/error.c: Correct indentation of cpp directives.
84513
84514 2003-09-10  Bruno Haible  <bruno@clisp.org>
84515
84516         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84517         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84518         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84519         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84520         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84521         <stdlib.h> and <string.h> checks.
84522         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84523         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84524
84525 2003-09-10  Bruno Haible  <bruno@clisp.org>
84526
84527         * lib/strcspn.c: Include <string.h> unconditionally.
84528         * lib/strpbrk.c: Include <string.h> unconditionally.
84529         * lib/strstr.c: Include <string.h> unconditionally.
84530         * lib/unicodeio.c: Include <string.h> unconditionally.
84531         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84532         * lib/unsetenv.c: Likewise.
84533         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84534         * lib/yesno.c: Include <stdlib.h> unconditionally.
84535         (rpmatch): Add prototype.
84536
84537 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84538
84539         More patches to assume C89 or better.
84540         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84541         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84542         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84543         or for string.h.
84544         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84545         stdlib.h.
84546         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84547         C headers.
84548         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84549         string.h.
84550         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84551         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84552         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84553         or for string.h.
84554         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84555         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84556         C headers.
84557         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84558         memcpy.
84559         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84560         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84561         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84562         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84563         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84564         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84565         string.h, free.
84566         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84567         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84568         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84569         C headers, or for string.h.
84570         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84571         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84572         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84573         headers, memory.h, stdlib.h, string.h, strings.h.
84574         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84575         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84576         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84577         strchr.
84578         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84579         headers, memory.h, string.h.
84580         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84581         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84582         free.
84583         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84584         headers.
84585         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84586         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84587         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84588         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84589         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84590
84591 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84592
84593         More K&R removal.
84594
84595         * lib/acosl.c (main): Use a prototype.
84596         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84597         tanl.c: Likewise.
84598
84599         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84600
84601         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84602         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84603         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84604         with a prototype.
84605         * lib/getopt.c (const): Remove macro.
84606         Include <string.h> unconditionally.
84607         (my_index): Remove; all uses changed to strchr.
84608         (strlen): Remove decl.
84609         (exchange): Remove forward decl; no longer needed.
84610         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84611         Define with prototype.
84612         * lib/getopt1.c (const): Remove macro.
84613         (getopt_long, getopt_long_only, main): Define with prototype.
84614
84615         * lib/getugroups.c: Include <string.h> unconditionally.
84616
84617         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84618         (getusershell, setusershell, endusershell, readname, main):
84619         Define with prototypes.
84620
84621         * lib/group-member.c: Include group-member.h first.
84622         Include <stdlib.h> unconditionally.
84623
84624         * lib/hard-locale.c: Include hard-locale.h first.
84625         Include <stdlib.h>, <string.h> unconditionally.
84626
84627         * lib/hash.c (free, malloc): Remove decls.
84628         Include <stdlib.h> unconditionally.
84629
84630         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84631         (getenv): Do not declare.
84632
84633         * lib/idcache.c: Include <string.h> unconditionally.
84634
84635         * lib/long-options.c: Include long-options.h first, to test interface.
84636         Include <stdlib.h> unconditionally.
84637
84638         * lib/makepath.c: Include makepath.h first, to test interface.
84639         Include <stdlib.h> and <string.h> unconditionally.
84640
84641         * lib/linebuffer.c: Include <stdlib.h>.
84642         (free): Remove decl.
84643
84644         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84645         stddef.h. rpl_malloc returns void *, not char *.
84646         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84647         prototype.
84648
84649         * lib/md5.h: Include <limits.h> unconditionally.
84650         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84651         (__P): Remove; all uses removed.
84652         * lib/md5.c: Include "md5.h" first.
84653         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84654         md5_buffer, md5_process_bytes, md5_process_block):
84655         Define with prototypes.
84656         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84657         * lib/sha.c: Include "sha.h" first.
84658         Include <stdlib.h>, <string.h> unconditionally.
84659
84660         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84661         * lib/memcmp.c (__ptr_t): Likewise.
84662         * lib/memrchr.c (__ptr_t): Likewise.
84663         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84664         Include <string.h> unconditionally.
84665         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84666         * lib/memchr.c: Include <stdlib.h> unconditionally.
84667         * lib/memchr.c (LONG_MAX): Remove.
84668         * lib/memrchr.c (LONG_MAX): Likewise.
84669         * lib/memchr.c (__memchr): Define via a prototype.
84670         * lib/memrchr.c (__memrchr): Likewise.
84671         * lib/memcmp.c (__P): Remove, and remove all uses.
84672         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84673         Remove forward decls; no longer needed.
84674         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84675         Use types required by C89 in prototype.
84676
84677         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84678         * lib/savedir.c: Likewise.
84679         * lib/mkdir.c (free): Remove decl.
84680         * lib/rmdir.c (rmdir): Define with a prototype.
84681         * lib/savedir.c: Include savedir.h first, to test interface.
84682
84683         * lib/mktime.c (STDC_HEADERS): Remove.
84684         Include <stdlib.h>, <string.h> unconditionally.
84685
84686         * lib/modechange.c: Include <stdlib.h> unconditionally.
84687         (malloc): Remove decl.
84688
84689         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84690         (free): Remove decl.
84691
84692         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84693         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84694         (This type really should be intptr_t, but that's a C99ism.)
84695         (_obstack_memcpy): Remove: all uses changed to memcpy.
84696         Include <string.h> unconditionally.
84697         (struct obstack): Assume __STDC__ for types of members
84698         chunkfun, freefun, extra_arg.
84699         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84700         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84701         obstack_begin, obstack_specify_allocation,
84702         obstack_specify_allocation_with_arg, obstack_chunkfun,
84703         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84704         Remove unprototyped decls and the macros that use them.
84705         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84706         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84707         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84708         (defined __STDC__ && __STDC__)]:
84709         Remove nonprototyped code.
84710         Include <stdlib.h> unconditionally.
84711         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84712         _obstack_allocated_p, _obstack_free, obstack_free,
84713         _obstack_memory_used, print_and_abort):
84714         Define using prototypes.
84715         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84716         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84717         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84718         obstack_next_free, obstack_object_size, obstack_room) [0]:
84719         Remove unused, unprototyped code.
84720
84721         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84722
84723         * lib/physmem.c (physmem_total, physmem_available, main): Define
84724         with prototypes.
84725
84726         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84727         (main): Define with a prototype.
84728
84729         * lib/posixver.c (getenv): Remove decl.
84730
84731         * lib/putenv.c (malloc): Returns void *, not char *.
84732         Include <string.h> unconditionally.
84733         (strchr, memcpy, NULL): Do not define.
84734
84735         * lib/readtokens.c: Include readtokens.h first, to test interface.
84736         Include <stdlib.h>, <string.h> unconditionally.
84737         (init_tokenbuffer): Define with a prototype.
84738
84739         * lib/regex.c (PARAMS): Remove.  All uses removed.
84740         All uses of _RE_ARGS removed, too.
84741         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84742         unconditionally.
84743         (bzero): Assume memset exists.
84744         (memcmp, memcpy, NULL): Remove.
84745         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84746         char, or assignments to local vars of type signed char.
84747         (init_syntax_once, PREFIX(extract_number_and_incr),
84748         PREFIX(print_partial_compiled_pattern),
84749         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84750         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84751         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84752         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84753         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84754         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84755         wcs_compile_range, byte_compile_range, truncate_wchar,
84756         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84757         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84758         count_mbs_length, wcs_re_match_2_internal,
84759         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84760         PREFIX(alt_match_null_string_p),
84761         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84762         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84763         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84764         now-unnecessary declaration, if any.
84765         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84766         regcomp, regexec):
84767         Remove now-unnecessary casts among pointer types.
84768         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84769
84770         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84771         (free): Remove decl.
84772
84773         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84774
84775         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84776         (free): Remove decl.
84777
84778         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84779         * lib/xgetcwd.c: Likewise.
84780
84781         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84782         (free): Remove decl.
84783
84784         * lib/strchrnul.c (strchrnul): Define with a prototype.
84785         Fix bug: c_in was not converted to char before searching.
84786
84787         The following changes are not K&R related:
84788
84789         * lib/group-member.h: Include <sys/types.h>, so that this file is
84790         self-contained.
84791         * lib/makepath.h: Likewise.
84792
84793         * lib/getusershell.c (readname, default_index, line_size, readname):
84794         Use size_t, not int, for sizes.
84795         (readname): If the size overflows, report an error instead of
84796         looping forever.
84797
84798 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84799
84800         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84801         libc.
84802
84803 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84804
84805         * README: New section: portability guidelines.
84806
84807 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84808
84809         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84810         C89 spec.
84811
84812 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84813
84814         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84815
84816 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84817
84818         Assume C89 or better; remove K&R cruft.
84819         A few of these changes were first proposed by Derek Robert Price
84820         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84821
84822         * lib/addext.c: Include <string.h> unconditionally.
84823         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84824         Don't declare getenv or malloc.
84825
84826         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84827         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84828         (NULL): Remove.
84829         (find_stack_direction, alloca): Use prototypes.
84830
84831         * lib/atexit.c (atexit): Define using a prototype.
84832
84833         * lib/basename.c, dirname.c, stripslash.c:
84834         Include <string.h> unconditionally.
84835
84836         * lib/bcopy.c: Include <stddef.h>.
84837         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84838
84839         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84840
84841         * lib/error.h (error, error_at_line, error_print_progname)
84842         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84843         * lib/error.c: Include error.h first, to check interface.
84844         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84845         (VA_START): Remove; all uses changeed to va_start.
84846         (exit, strerror): Remove decls.
84847         (error_print_progname): Prototype uncondionally.
84848         Don't include <errno.h>; no longer needed.
84849         (private_strerror): Remove.
84850         (error_tail): Always define.
84851         (error, error_at_line): Assume C89 or better; always use prototypes.
84852         * lib/fatal.c: Include "fatal.h" first, to test interface.
84853         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84854         (VA_START): Remove; all uses changed to va_start.
84855         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84856         this case.
84857         (exit): Remove decl.
84858         (fatal): Prototype unconditionally.  Assume va_start works.
84859         Abort at end, to pacify gcc.
84860
84861         * lib/euidaccess.c (main): Define with a prototype.
84862
84863         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84864
84865         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84866
84867         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84868         prototypes.
84869         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84870         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84871         (getenv): Remove decl.
84872         (fnmatch): Define using a prototype.
84873         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84874         (FCT): Define using a prototype.
84875
84876         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84877
84878         * lib/gethostname.c: Include <stddef.h>.
84879         (gethostname): Define with prototype.  Length is size_t, not int.
84880
84881 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84882
84883         Assume C89 or better; remove K&R cruft.
84884         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84885         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84886         string.h, getenv, malloc.
84887         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84888         headers.
84889         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84890         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84891         do not check for strerror.
84892         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84893         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84894         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84895         do not check for doprnt or vprintf.
84896         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84897         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84898
84899 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84900
84901         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84902         getversion.c should have been removed then, but was accidentally
84903         preserved.
84904
84905         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84906         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84907
84908 2003-09-08  Karl Berry  <karl@gnu.org>
84909
84910         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84911                 config, forget about prep.
84912
84913         * config/depcomp, missing: update from automake.
84914
84915 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84916
84917         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84918         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84919
84920 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84921
84922         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84923         copy_tm_result.  Bug reported by Simon Josefsson in
84924         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84925
84926 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84927
84928         * m4/time_r.m4: New file.
84929         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84930         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84931         is. Check for timegm declaration.
84932         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84933         Do not check for gmtime_r.
84934         Replace mktime if __mktime_internal does not exist and if mktime
84935         hasn't been replaced already.
84936
84937 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84938
84939         * lib/time_r.c, lib/time_r.h: New files.
84940
84941         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84942         __localtime_r.
84943         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84944         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84945
84946         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84947         __gmtime_r.
84948         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84949         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84950         Include <time_r.h>.
84951
84952         * lib/timegm.c: Switch to glibc implementation, with the following
84953         changes:
84954         [defined HAVE_CONFIG_H]: Include <config.h>.
84955         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84956         (__mktime_internal) [!defined _LIBC]: New decl.
84957         (__gmtime_r) [!defined _LIBC]: New macro and function.
84958         (timegm): Use a prototype, since gnulib assumes C89.
84959         Do not bother declaring tmp to be const, as it's not really usefu.
84960         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84961         (timegm): Declare only if HAVE_DECL_TIMEGM.
84962
84963 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84964
84965         * MODULES.html.sh (func_all_modules): Add time_r.
84966         * modules/time_r: New file.
84967         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84968         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84969
84970 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84971
84972         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84973         Bug reported by Lute Kamstra in
84974         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84975
84976         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84977         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84978         course with correspondingly smaller numbers for tomorrow and
84979         yesterday.  From Tadayoshi Funaba.  Originally installed into
84980         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84981         coreutils merge?).
84982
84983 2003-08-31  Simon Josefsson  <jas@extundo.com>
84984
84985         * modules/timegm: New file.
84986         * MODULES.html.sh (func_all_modules): Add timegm.
84987
84988 2003-08-31  Simon Josefsson  <jas@extundo.com>
84989
84990         * m4/timegm.m4: New file.
84991
84992 2003-08-31  Simon Josefsson  <jas@extundo.com>
84993
84994         * lib/timegm.h: New file.
84995         * lib/timegm.c: New file.  Based on
84996         wget-1.8.2/src/http.c:mktime_from_utc.
84997
84998 2003-08-31  Karl Berry  <karl@gnu.org>
84999
85000         * lib/argp.h: update from libc.
85001
85002 2003-08-28  Bruno Haible  <bruno@clisp.org>
85003
85004         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
85005         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
85006         followed by '#define fnmatch fnmatch_posix' gives an error.
85007
85008 2003-08-28  Bruno Haible  <bruno@clisp.org>
85009
85010         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
85011         warning on QNX, which defines O_BINARY to 000000.
85012
85013 2003-08-27  Jim Meyering  <jim@meyering.net>
85014
85015         * m4/mkstemp.m4: Require that the system mkstemp be able to create
85016         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
85017         would fail after 32.  Reported by Danny Levinson.  Details here:
85018         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
85019
85020 2003-08-24  Bruno Haible  <bruno@clisp.org>
85021
85022         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
85023         MSVC7 <stdio.h> is included later.
85024
85025 2003-08-22  Simon Josefsson  <jas@extundo.com>
85026
85027         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
85028
85029 2003-08-20  Karl Berry  <karl@gnu.org>
85030
85031         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
85032
85033 2003-08-20  Bruno Haible  <bruno@clisp.org>
85034
85035         * modules/progname: New file.
85036         * MODULES.html.sh (func_all_modules): Add progname.
85037
85038 2003-08-20  Bruno Haible  <bruno@clisp.org>
85039
85040         * lib/progname.h: New file, from GNU gettext.
85041         * lib/progname.c: New file, from GNU gettext.
85042         * lib/progreloc.c: New file, from GNU gettext.
85043
85044 2003-08-19  Jim Meyering  <jim@meyering.net>
85045
85046         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
85047         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
85048
85049 2003-08-19  Bruno Haible  <bruno@clisp.org>
85050
85051         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
85052         more.
85053
85054 2003-08-19  Bruno Haible  <bruno@clisp.org>
85055
85056         * lib/xstrdup.c: Assume <string.h> exists.
85057
85058 2003-08-18  Paul Eggert  <eggert@twinsun.com>
85059
85060         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
85061         in makefile rules.
85062
85063 2003-08-18  Jim Meyering  <jim@meyering.net>
85064
85065         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
85066         * m4/lib-ld.m4: Likewise.
85067
85068 2003-08-18  Jim Meyering  <jim@meyering.net>
85069
85070         * lib/setenv.h: Indent nested cpp directive.
85071         * lib/vasnprintf.c: Remove trailing blanks.
85072
85073 2003-08-17  Simon Josefsson  <jas@extundo.com>
85074
85075         * modules/xstrndup: New file.
85076         * MODULES.html.sh (func_all_modules): Add xstrndup.
85077
85078 2003-08-17  Simon Josefsson  <jas@extundo.com>
85079
85080         * modules/argp: Fix autoconf macro name. Add more dependencies.
85081
85082 2003-08-17  Simon Josefsson  <jas@extundo.com>
85083
85084         * m4/xstrndup.m4: New file.
85085
85086 2003-08-17  Simon Josefsson  <jas@extundo.com>
85087
85088         * m4/argp.m4: New file.
85089
85090 2003-08-17  Simon Josefsson  <jas@extundo.com>
85091             Bruno Haible  <bruno@clisp.org>
85092
85093         * lib/xstrndup.h: New file.
85094         * lib/xstrndup.c: New file.
85095
85096 2003-08-17  Bruno Haible  <bruno@clisp.org>
85097
85098         * modules/strndup (Files, Include): Add lib/strndup.h.
85099
85100 2003-08-17  Bruno Haible  <bruno@clisp.org>
85101
85102         * modules/euidaccess (Files): Add lib/euidaccess.h.
85103
85104 2003-08-17  Bruno Haible  <bruno@clisp.org>
85105
85106         * lib/strndup.h: New file.
85107
85108 2003-08-17  Bruno Haible  <bruno@clisp.org>
85109
85110         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
85111         like AC_GNU_SOURCE.
85112         * modules/extensions (configure.ac): Comment out the invocation of
85113         gl_USE_SYSTEM_EXTENSIONS.
85114
85115 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85116
85117         Merges from coreutils, etc.
85118         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
85119         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
85120         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
85121         fixing a typo.
85122         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
85123         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
85124
85125 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85126
85127         Document merge from coreutils.
85128         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
85129         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
85130         * modules/utime: Add m4/utimes-null.m4.
85131
85132 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85133
85134         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
85135         space, undoing this 2003-08-12 change:
85136         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85137
85138 2003-08-16  Paul Eggert  <eggert@twinsun.com>
85139
85140         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
85141         strtoul.c from libc, undoing this 2003-08-12 change:
85142         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
85143
85144 2003-08-16  Jim Meyering  <jim@meyering.net>
85145
85146         Merges from coreutils.
85147         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
85148         prefix.  Adjust cache variables similarly.  Create 500 rather than
85149         just 300 files, to exercise bug on Darwin6.5, too.
85150         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
85151         $missing_dir.
85152         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
85153         AM_SYS_POSIX_TERMIOS.
85154         Reported by mkc@mathdogs.com.
85155         Also change use of $am_cv_sys_posix_termios
85156         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
85157         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
85158         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
85159         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
85160         in /proc/mounts until it finds one with matching device number.  This
85161         is unnecessary when the FILE argument *is* a mount point.  No stat call
85162         is necessary in that case.  So, disable the statvfs-testing code on
85163         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85164         as RedHat bug# 84846.
85165         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85166         to 1MB, so as not to render systems with no stack size limit (e.g.,
85167         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85168         Include <unistd.h>.  On some systems,
85169         it is required for the definition of _SC_PAGESIZE.
85170
85171 2003-08-16  Jim Meyering  <jim@meyering.net>
85172
85173         Merge from coreutils.
85174         * lib/xstrtoimax.c: #else #if -> #elif.
85175         * lib/xstrtoumax.c: Likewise.
85176
85177 2003-08-16  Jim Meyering  <jim@meyering.net>
85178
85179         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85180         * m4/utimes.m4: Removed.
85181         * m4/utimes-null.m4: Renamed from utimes.m4.
85182
85183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85184         to 1MB, so as not to render systems with no stack size limit (e.g.,
85185         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85186         Include <unistd.h>.  On some systems,
85187         it is required for the definition of _SC_PAGESIZE.
85188
85189 2003-08-16  Jim Meyering  <jim@meyering.net>
85190         and Paul Eggert  <eggert@cs.ucla.edu>
85191
85192         Merges from coreutils, etc.
85193
85194         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85195         using the latest version from cvs.  This avoids problems with #line
85196         directives using a vendor (Sun) compiler.
85197         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85198         Don't set GETGROUPS_LIB here; now it's
85199         done via getgroups.m4's wrapper function.
85200         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85201         rather than just in sh-util/configure.in, so that the
85202         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85203         same.
85204         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85205         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85206         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85207         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85208         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85209         Remove code that is now done by the newly-required macros.
85210         Append $(EXEEXT) to DF_PROG.
85211         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85212         Do not invoke or require the following here,
85213         since prereq.m4 or some gnulib .m4 now does this for us:
85214         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85215         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85216         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85217         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85218         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85219         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85220         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85221         AC_FUNC_OBSTACK.
85222         Do not replace the following functions, as this is now the job
85223         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85224         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85225         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85226         atexit getpass, strdup, getpagesize.
85227         Replace 'raise'.
85228         Do not check for the following functions, as this is now the job
85229         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85230         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85231         setregid.
85232         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85233         Check for sys/sysctl.h.
85234         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85235         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85236         of checking for ssize_t ourselves.
85237
85238         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85239         Require every macro that gnulib/modules/* suggests for us.
85240         (jm_PREREQ_ADDEXT): New macro.
85241         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85242         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85243
85244         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85245         (gl_PHYSMEM): Use it.
85246         Also check for `table' function.
85247         Check for new headers and functions.
85248         Add check for sys/sysmp.h.
85249         With suggestions from Kaveh Ghazi.
85250         Ignore headers that are present but cannot be compiled.  This
85251         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85252         C 5.4.
85253
85254 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85255
85256         Document merge from coreutils.
85257         * modules/userspec: Depend on posixver.
85258         * modules/strftime: Depend on tzset.
85259
85260 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85261
85262         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85263         rather than tab, after '#' in shell-script copyright notices.
85264         Suggested by Bruno Haible.
85265
85266 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85267
85268         * config/srclist-update: Use three spaces, rather than tab, after '#'
85269         in shell-script copyright notices.  Suggested by Bruno Haible.
85270         Remove unnecessary parenthesization in regular expression.
85271
85272 2003-08-15  Jim Meyering  <jim@meyering.net>
85273
85274         Merge from coreutils.
85275         * lib/xgethostname.c: Include <stdlib.h>.
85276         (xghostname): Don't exit for anything other than memory-related
85277         failure; just return NULL.
85278         * lib/userspec.c: Include "posixver.h".
85279         (parse_user_spec): Accept `.' as a separator only
85280         in pre-POSIX-200112 mode.
85281         * lib/strtoimax.c: Use #elif rather than #else #if.
85282         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85283         Remove function, now that we can rely on a working tzset function.
85284         [!_LIBC]: Ensure that the required autoconf test has been run.
85285         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85286         Use underlying_strftime for %r.
85287         * lib/sha.c: Merge in some clean-up and optimization changes from
85288         glibc.
85289         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85290         Ensure that it is a multiple of 64.
85291         Rearrange loop exit tests so as to avoid performing an
85292         additional fread after encountering an error or EOF.
85293         * lib/realloc.c: Update copyright date.
85294
85295 2003-08-15  Jim Meyering  <jim@meyering.net>
85296         and Paul Eggert  <eggert@twinsun.com>
85297
85298         Merge from coreutils.
85299         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85300         member but strut utmpx does not.  Needed for AIX 4.3.3.
85301         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85302
85303 2003-08-15  Jim Meyering  <jim@meyering.net>
85304         and Paul Eggert  <eggert@cs.ucla.edu>
85305
85306         Merges from coreutils, etc.
85307         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85308         Require gl_FUNC_TZSET_CLOBBER.
85309         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85310         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85311         members.
85312
85313 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85314
85315         Help the merge from coreutils.
85316         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85317         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85318         * m4/tzset.m4: Use it too.
85319
85320 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85321
85322         * modules/tzset: New file.
85323
85324 2003-08-14  Jim Meyering  <jim@meyering.net>
85325
85326         Merges from coreutils.
85327         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85328         variable names, rather than @FNMATCH_H@.
85329         * modules/alloca: Likewise for $(ALLOCA_H).
85330
85331         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85332         the three copies of the literal target, `fnmatch.h'.
85333         * modules/alloca (alloca.h): Likewise.
85334
85335 2003-08-14  Jim Meyering  <jim@meyering.net>
85336
85337         Merge from coreutils.
85338         * m4/tzset.m4: New file.
85339         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85340         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85341         otherwise, AIX 5.1 systems would end up using the latter.
85342         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85343         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85344         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85345         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85346
85347 2003-08-14  Jim Meyering  <jim@meyering.net>
85348
85349         Merge from coreutils.
85350         * lib/obstack.h: Whitespace changes.
85351         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85352         and xcalloc return values.
85353         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85354         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85355         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85356         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85357         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85358         error from mntctl.
85359         Use mntctl's return value to drive the entry-processing loop, since
85360         we can't rely on the value of the vmt_length member in the last
85361         entry.  On some systems doing so could result in exhausting
85362         virtual memory.  Based in part on a patch from Mike Jetzer.
85363
85364 2003-08-14  Jim Meyering  <jim@meyering.net>
85365         and Paul Eggert  <eggert@twinsun.com>
85366
85367         Merges from coreutils, plus other fixes.
85368         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85369         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85370         for credits and details.  Thanks to Kaveh Ghazi for helping
85371         to keep these files in sync.
85372         (ARRAY_SIZE): Define it.
85373         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85374         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85375         (memcasecmp): Don't assume size_t fits in unsigned int.
85376         Remove casts and duplicate code.
85377         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85378         (memcpy): Remove definition.
85379         Merge in some clean-up and optimization changes from glibc.
85380         [BLOCKSIZE]: Move definition to top of file.
85381         Ensure that it is a multiple of 64.
85382         Rearrange loop exit tests so as to avoid performing an
85383         additional fread after encountering an error or EOF.
85384         * lib/md5.h (md5_uintptr): Define.
85385         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85386         return to the initial working directory.  Preserve errno
85387         for caller.
85388         * lib/idcache.c: Include "xalloc.h".
85389         (xmalloc, xrealloc): Remove decls.
85390         (getuser): Remove casts no longer required in C89.
85391         * lib/human.c: Include stdio.h, for sprintf.
85392         * lib/group-member.c: Include "xalloc.h".
85393         (xmalloc, xrealloc): Remove decls.
85394         (get_group_info): Remove casts no longer required in C89.
85395         * lib/getusershell.c (readname): Remove casts no longer required in
85396         C89.
85397         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85398         * lib/getline.c: Whitespace fix, from coreutils.
85399
85400 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85401
85402         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85403         Check for isascii.
85404
85405         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85406         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85407         Undo previous (whitespace-only) change.
85408
85409 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85410
85411         * lib/exclude.c: Include <ctype.h>
85412         (IN_CTYPE_DOMAIN): New macro.
85413         (is_space): New fn.
85414         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85415         and empty lines.
85416
85417         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85418         Undo previous (whitespace-only) change.
85419
85420 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85421
85422         * config/srclist-update: Change update back to the old behavior,
85423         leaving whitespace alone.  Use one 'sed' command rather than a
85424         pipeline.
85425         (fixlicense): Now a variable, not a function.
85426         (remove_trailing_blanks): Remove.
85427         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85428         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85429         Undo previous (whitespace-only) change.
85430
85431 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85432
85433         Merge from coreutils.
85434         * modules/euidaccess: Add lib_SOURCES, include for new
85435         file euidaccess.h
85436
85437 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85438
85439         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85440         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85441         Normalize leading white space and remove trailing white space.
85442
85443         Merge from coreutils
85444         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85445
85446         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85447         0.12.1.  These files are now being upgraded automatically by
85448         ../config/srclist-update.
85449
85450 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85451
85452         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85453         Normalize leading white space and remove trailing white space.
85454         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85455         notice, as per ../config/srclist-update.
85456
85457         Merge from coreutils.
85458         * lib/euidaccess.h: New file.
85459         * lib/euidaccess.c: Include it.
85460         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85461         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85462         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85463
85464 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85465
85466         * config/srclist-update: Add copyright notice.
85467         (remove_id_lines, remove_trailing_blanks): New constants.
85468         (fixfile): Use them to normalize spacing a bit in copied files.
85469         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85470         Normalize leading white space and remove trailing white space.
85471
85472         * config/texinfo.tex: Sync with texinfo.
85473
85474         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85475         strtoul.c from libc, to merge coreutils whitespace changes.
85476
85477         * config/srclist.txt: Get the following m4 files from gettext:
85478         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85479         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85480         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85481         wint_t.m4.
85482
85483 2003-08-12  Karl Berry  <karl@gnu.org>
85484
85485         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85486         been made.
85487
85488 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85489
85490         * modules/gnu-source, m4/gnu-source.m4:
85491         Remove; we're assuming Autoconf 2.54 or later now.
85492         Suggested by Bruno Haible.
85493         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85494
85495 2003-08-11  Bruno Haible  <bruno@clisp.org>
85496
85497         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85498
85499 2003-08-11  Bruno Haible  <bruno@clisp.org>
85500
85501         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85502         (vasnprintf): Use it instead of wcslen.
85503
85504 2003-08-11  Bruno Haible  <bruno@clisp.org>
85505
85506         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85507         value to ensure that _Bool promotes to int. Use #define for _Bool when
85508         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85509
85510 2003-08-10  Karl Berry  <karl@gnu.org>
85511
85512         * lib/regex.h: update from libc (whitespace fix).
85513
85514 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85515
85516         Merge some files from coreutils.  These changes were
85517         originally made by Jim Meyering.
85518         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85519         many older Unixes require this.
85520         * lib/alloca.c (alloca): Remove cast to argument of free;
85521         no longer needed in C89.
85522         * lib/alloca_.h, regex.h: Fix white space to match
85523         what GNU indent does.
85524
85525 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85526
85527         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85528         apparently Emacs's Unicode mode got confused before my 2003-08-05
85529         checkin.
85530
85531 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85532
85533         * m4/extensions.m4: New file.
85534         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85535         Require gl_USE_SYSTEM_EXTENSIONS.
85536         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85537         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85538
85539 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85540
85541         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85542         * modules/extensions, modules/gnu-source: New files.
85543         * modules/timespec, modules/unlocked-io: Depend on extensions.
85544
85545 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85546
85547         * modules/restrict: New file.
85548         * MODULES.html.sh (func_all_modules): Add restrict.
85549         * modules/regex: Depend on restrict.
85550
85551 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85552
85553         * m4/restrict.m4: New file.
85554         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85555
85556 2003-08-07  Bruno Haible  <bruno@clisp.org>
85557
85558         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85559         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85560
85561 2003-08-07  Bruno Haible  <bruno@clisp.org>
85562
85563         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85564         makes the module 'getndelim2' compatible with the module 'getline'.
85565
85566 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85567
85568         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85569         byte with "\201" to avoid glitches when editing that source file
85570         with multi-gnome-terminal.
85571
85572 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85573
85574         * lib/bumpalloc.h: Remove.
85575
85576 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85577
85578         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85579         * modules/bumpalloc: Remove.
85580
85581 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85582
85583         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85584         GNU coding style.
85585
85586         Merge from coreutils.
85587         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85588         1. From glibc.
85589         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85590         from Karl Berry, implemented by Jim Meyering.
85591         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85592         from Dmitry V. Levin.
85593         Remove anachronistic cast of xrealloc.
85594         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85595         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85596         type. Otherwise, it wouldn't compile with at least /bin/cc on
85597         ymp-cray-unicos9.0.2.X.
85598         Combine two mostly-identical uses of alloca into one.
85599         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85600
85601 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85602
85603         [From Emacs.]
85604
85605         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85606         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85607         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85608         obsolete NLIST_NAME_UNION.
85609         [__GNU__]: Undef BSD and FSCALE.
85610         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85611
85612 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85613
85614         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85615         an enum type, so that it's guaranteed to promote to int.  See:
85616         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85617
85618 2003-08-03  Karl Berry  <karl@gnu.org>
85619
85620         * config/depcomp: update from automake.
85621
85622 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85623
85624         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85625         (strerror): Don't assume that a printable int fits in 14 bytes.
85626
85627 2003-07-31  Bruno Haible  <bruno@clisp.org>
85628
85629         * modules/getpass-gnu: New file.
85630         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85631
85632 2003-07-31  Bruno Haible  <bruno@clisp.org>
85633
85634         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85635
85636 2003-07-24  Karl Berry  <karl@gnu.org>
85637
85638         * config/missing: update from automake.
85639
85640 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85641             Bruno Haible  <bruno@clisp.org>
85642
85643         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85644         * lib/getline.c (getline, getdelim): Likewise.
85645         Remove _GNU_SOURCE define; now it's defined in config.h through
85646         m4/getline.m4.
85647
85648 2003-07-23  Karl Berry  <karl@gnu.org>
85649
85650         * config/config.sub: update from prep.
85651
85652 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85653
85654         * modules/xalloc (Depends-on): Add exitfail.
85655         * modules/xmemcoll: Likewise.
85656
85657 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85658
85659         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85660         over-parenthesization in macros.
85661
85662         Sync with coreutils.
85663
85664         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85665         required by C99.
85666
85667         Use `exit_failure' for xalloc and xmemcoll instead of their own
85668         private exit-failure variables.
85669         * lib/xalloc.h (xalloc_exit_failure): Remove.
85670         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85671         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85672         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85673         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85674         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85675
85676 2003-07-20  Jim Meyering  <jim@meyering.net>
85677
85678         * modules/closeout (Depends-on): Add exitfail.
85679         Suggestion from Bruno Haible.
85680
85681 2003-07-19  Karl Berry  <karl@gnu.org>
85682
85683         * config/config.sub: update from prep.
85684
85685 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85686
85687         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85688         Remove.
85689         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85690         to test that it can stand by itself.  Include "exitfail.h".
85691         Clients should set exit_failure instead.
85692         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85693
85694 2003-07-18  Bruno Haible  <bruno@clisp.org>
85695
85696         * modules/getndelim2: New file.
85697         * modules/getline: Share files with module getndelim2.
85698         * modules/getnline: Depend on getndelim2 instead of sharing files with
85699         it. Add getnline.c to lib_SOURCES.
85700         * MODULES.html.sh (func_all_modules): Add getndelim2.
85701
85702 2003-07-18  Bruno Haible  <bruno@clisp.org>
85703
85704         * m4/getndelim2.m4: New file.
85705         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85706         invoke gl_PREREQ_GETNDELIM2.
85707         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85708         gl_PREREQ_GETNDELIM2.
85709         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85710         gl_GETNDELIM2.
85711
85712 2003-07-18  Bruno Haible  <bruno@clisp.org>
85713
85714         * lib/getndelim2.h: New file.
85715         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85716         getndelim2.h.
85717         (getndelim2): Make non-static. Change return type to ssize_t.
85718         * lib/getline.h: Change argument names.
85719         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85720         * lib/getnline.c: Include getndelim2.h.
85721
85722 2003-07-18  Andreas Schwab  <schwab@suse.de>
85723
85724         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85725
85726 2003-07-17  Karl Berry  <karl@gnu.org>
85727
85728         * config/config.sub: update from prep.
85729
85730 2003-07-17  Bruno Haible  <bruno@clisp.org>
85731
85732         * modules/getnline: New file.
85733         * modules/getline: Add lib/getndelim2.c to source file list.
85734         * MODULES.html.sh (func_all_modules): Add getnline.
85735
85736 2003-07-17  Bruno Haible  <bruno@clisp.org>
85737
85738         * m4/getnline.m4: New file.
85739
85740 2003-07-17  Bruno Haible  <bruno@clisp.org>
85741
85742         * m4/Makefile.am.in: Remove file.
85743         * m4/Makefile.am: Remove file.
85744         * m4/Makefile.in: Remove file.
85745
85746 2003-07-17  Bruno Haible  <bruno@clisp.org>
85747
85748         * lib/getnline.h: New file.
85749         * lib/getnline.c: New file.
85750         * lib/getndelim2.c: New file, extracted from getline.c.
85751         (getndelim2): Renamed from getdelim2, with added nmax argument.
85752         * lib/getline.c: Include getndelim2.c.
85753         (getdelim2): Moved out to getndelim2.c.
85754         (getline, getdelim): Update.
85755
85756 2003-07-17  Bruno Haible  <bruno@clisp.org>
85757
85758         * lib/Makefile.am: Remove file.
85759         * lib/Makefile.in: Remove file.
85760
85761 2003-07-17  Bruno Haible  <bruno@clisp.org>
85762
85763         * configure.in: Remove file.
85764         * Makefile.in: Remove file.
85765
85766 2003-07-17  Bruno Haible  <bruno@clisp.org>
85767
85768         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85769
85770 2003-07-16  Karl Berry  <karl@gnu.org>
85771
85772         * config/srclist-update: was running fixlicense twice, which caused
85773                 texinfo.tex to be nullified for some reason.  Simplify,
85774                 $gplsrc is no longer needed as far as I can see?
85775
85776 2003-07-16  Jim Meyering  <jim@meyering.net>
85777
85778         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85779
85780 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85781
85782         * config/srclist.txt: Get the following files from gettext-runtime/intl
85783         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85784         ref-del.sin.  From Bruno Haible.
85785         * config/srclist-update (fixfile): Change grep pattern again, since the
85786         previous fix didn't work (there was another trailing $).  Use
85787         '[$]' to escape the $s.
85788
85789 2003-07-15  Karl Berry  <karl@gnu.org>
85790
85791         * lib/vasnprintf.c: update from gettext.
85792
85793 2003-07-15  Karl Berry  <karl@gnu.org>
85794
85795         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85796         gets expanded when surrounded by '$'.
85797
85798 2003-07-15  Jim Meyering  <jim@meyering.net>
85799
85800         * modules/save-cwd: Don't depend on error.  From Derek Price.
85801
85802 2003-07-15  Jim Meyering  <jim@meyering.net>
85803
85804         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85805
85806 2003-07-14  Simon Josefsson  <jas@extundo.com>
85807
85808         * modules/mempcpy: New file.
85809         * MODULES.html.sh (func_all_modules): Add mempcpy.
85810
85811 2003-07-14  Simon Josefsson  <jas@extundo.com>
85812
85813         * m4/mempcpy.m4: New file.
85814
85815 2003-07-14  Simon Josefsson  <jas@extundo.com>
85816
85817         * lib/mempcpy.h: New file.
85818         * lib/mempcpy.c: New file.
85819
85820 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85821
85822         * modules/getdate, modules/posixtm: Depend on mktime.
85823
85824 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85825
85826         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85827         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85828         unicodeio.c, unicodeio.h, unlocked-io.h:
85829         Switch from LGPL to GPL.
85830
85831 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85832
85833         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85834         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85835         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85836         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85837         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85838         updated automatically by ../config/srclist-update.  This changes
85839         their license from LPGL to GPL.
85840
85841 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85842
85843         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85844         assumed to refer to the root of the most recent stable gettext version.
85845         * config/srclistvars.sh: Add defaults for eggert.
85846         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85847         Match "This program" as well as "The program".  This is needed
85848         for gettext.
85849
85850 2003-07-14  Jim Meyering  <jim@meyering.net>
85851
85852         Don't emit diagnostics.  Let callers do that.
85853         * lib/save-cwd.c: Don't include "error.h".
85854         (save_cwd): Don't call error.  Ensure that errno is valid
85855         when returning nonzero.
85856
85857         * lib/save-cwd.h (restore_cwd): Update prototype.
85858         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85859         Simplify.  Don't call error upon failure.  Let callers do that.
85860         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85861         when auditing is enabled.  But don't bother updating the #if.
85862
85863 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85864
85865         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85866         it breaks C++ compilation.
85867         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85868
85869 2003-07-10  Simon Josefsson  <jas@extundo.com>
85870
85871         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85872
85873 2003-07-10  Jim Meyering  <jim@meyering.net>
85874
85875         * m4/clock_time.m4: Remove trailing blank.
85876         * m4/intmax_t.m4: Likewise.
85877
85878 2003-07-10  Jim Meyering  <jim@meyering.net>
85879
85880         * lib/vasnprintf.c: Remove trailing blanks.
85881         Make cpp indentation consistent.
85882
85883 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85884
85885         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85886         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85887         Switch from LGPL to GPL.
85888
85889 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85890
85891         * config/srclist.txt: Sort sublists.  Add
85892         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85893         that differ from gnulib for one reason or another; we'd like this list
85894         to be smaller but for now let's document what we have.
85895
85896 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85897
85898         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85899         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85900         and sweeter "eval x=$x".
85901         * config/srclist.txt: Get lib/argp* from glibc.
85902
85903 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85904
85905         * lib/mktime.c: Fix some boundary cases and remove need for floating
85906         point.
85907
85908         Issue a compile-time diagnostic if time_t is floating point, or if
85909         two's complement arithmetic is not in effect, or if arithmetic
85910         right shift does not propagate the sign.  These assumptions were
85911         all in the original code but they weren't checked.
85912
85913         (TIME_T_MIDPOINT, verify): New macros.
85914         (__isleap): Remove; it has integer overflow problems.
85915         (leapyear): New function, without those problems.
85916         (ydhms_tm_diff): Remove; splitting into two parts.
85917         (ydhms_diff): New function, containing the arithmetic part of
85918         the old ydhms_tm_diff function.  Issue a compile-time
85919         diagnostic if we are not using C99 integer division.
85920         Avoid casts when possible.
85921         (guess_time_tm): New function, containing the checking part of
85922         the old ydhms_tm_diff function.  Return the new value, rather than
85923         the difference between it and the old.  Accept a new argument T
85924         so that *T specifies the old value.  Check for overflow in the result.
85925
85926         (__mktime_internal): Use a time_t offset, not a long int offset.
85927         This undoes the 2003-06-04 change, which is no longer needed now
85928         that we have better overflow checking.
85929         (localtime_offset): Likewise.
85930
85931         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85932         and long are 64-bit but int is only 32-bit.
85933         (ydhms_diff): Use long int to store year1 and yday1.
85934         Issue a compile-time diagnostic if long int is not wide enough.
85935
85936         (__mktime_internal): Use long int to store adjusted year and yday.
85937         Use plain C rather than preprocessor commands, if that doesn't
85938         affect efficiency.
85939         Check for overflow (and try to repair) after each probe
85940         rather than checking only at the very end.  This avoids some bugs
85941         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85942         does not equal GMT offset at maximum time).
85943         Use integer to check for overflow rather than floating point; this
85944         is more portable to non-IEEE hosts, and is a tad faster.
85945         When we detect that we are oscillating between two values,
85946         don't check whether tm_isdst has the requested value, since
85947         we already know the answer.  When tm_isdst has the wrong value,
85948         use a different heuristic to find the right one, based on the
85949         extreme values actually observed in practice in tz2003a,
85950         rather than the (overly optimistic) "previous 3 calendar quarters".
85951
85952         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85953         "T const" to accommodate glibc style.
85954         (check_result): Use less-confusing report format.  "long" -> "long int.
85955         (main): Likewise.
85956         Don't loop if the iteration overflows time_t.
85957         Allow a negative step in the iteration.
85958
85959 2003-07-06  Karl Berry  <karl@gnu.org>
85960
85961         * config/depcomp: update from automake.
85962         * config/config.sub: update from prep.
85963
85964 2003-07-03  Karl Berry  <karl@gnu.org>
85965
85966         * config/config.guess: update from prep.
85967
85968 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85969
85970         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85971         xreadlink.c now includes it unconditionally.
85972
85973 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85974
85975         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85976         having it depend on HAVE_SYS_TYPES_H.
85977
85978 2003-07-01  Bruno Haible  <bruno@clisp.org>
85979
85980         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85981         <sys/types.h> should be sufficient.
85982         Reported by Paul Eggert.
85983
85984 2003-06-26  Karl Berry  <karl@gnu.org>
85985
85986         * config/depcomp: update from automake.
85987
85988 2003-06-26  Bruno Haible  <bruno@clisp.org>
85989
85990         * modules/human: Depend on module stdbool.
85991
85992 2003-06-25  Bruno Haible  <bruno@clisp.org>
85993
85994         * modules/readlink: New file.
85995         * modules/xreadlink: Depend on it.
85996         * MODULES.html.sh (func_all_modules): Add readlink.
85997
85998 2003-06-25  Bruno Haible  <bruno@clisp.org>
85999
86000         * m4/readlink.m4: New file.
86001
86002 2003-06-25  Bruno Haible  <bruno@clisp.org>
86003
86004         * lib/readlink.c: New file.
86005
86006 2003-06-22  Karl Berry  <karl@gnu.org>
86007
86008         * config/srclist.txt: update mkinstalldirs from automake.
86009         * config/mkinstalldirs: update.
86010
86011 2003-06-22  Bruno Haible  <bruno@clisp.org>
86012
86013         Portability to mingw32.
86014         * m4/ssize_t.m4: New file, from GNU gettext.
86015         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
86016         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
86017
86018 2003-06-22  Bruno Haible  <bruno@clisp.org>
86019
86020         * modules/safe-read: Add m4/ssize_t.m4.
86021         * modules/xreadlink: Add m4/ssize_t.m4.
86022
86023 2003-06-20  Bruno Haible  <bruno@clisp.org>
86024
86025         Assume C89, so PARAMS isn't needed.
86026         * lib/unicodeio.h (PARAMS): Remove.
86027         * lib/unicodeio.c: Don't use PARAMS.
86028
86029 2003-06-18  Karl Berry  <karl@gnu.org>
86030
86031         * config/config.{guess,sub}: update from prep.
86032
86033 2003-06-18  Jim Meyering  <jim@meyering.net>
86034
86035         Merge changes from coreutils.
86036         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
86037         Remove explicit declarations of xmalloc and realloc.
86038         Include xalloc.h.
86039         (read_utmp): Remove anachronistic cast of xmalloc.
86040
86041 2003-06-17  Paul Eggert  <eggert@twinsun.com>
86042
86043         Assume C89, so PARAMS isn't needed.
86044         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
86045         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
86046         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
86047         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
86048         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
86049         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
86050         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
86051         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
86052         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
86053         lib/xstrtod.h, lib/xstrtol.h: Likewise.
86054         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
86055         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
86056         no longer needed. Anyway, config.h should always be included before any
86057         other file.
86058
86059 2003-06-11  Simon Josefsson  <jas@extundo.com>
86060
86061         * modules/sysexits: New file.
86062         * MODULES.html.sh (func_all_modules): Add sysexits.
86063
86064 2003-06-11  Simon Josefsson  <jas@extundo.com>
86065
86066         * lib/sysexit_.h: New file.
86067
86068 2003-06-11  Derek Price  <derek@ximbiot.com>
86069
86070         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
86071         necessary.
86072
86073 2003-06-11  Bruno Haible  <bruno@clisp.org>
86074
86075         * m4/sysexits.m4: New file.
86076
86077 2003-06-10  Simon Josefsson  <jas@extundo.com>
86078
86079         * lib/argp.h: New file, from glibc.
86080         * lib/argp-ba.c: New file, from glibc.
86081         * lib/argp-eexst.c: New file, from glibc.
86082         * lib/argp-fmtstream.c: New file, from glibc.
86083         * lib/argp-fmtstream.h: New file, from glibc.
86084         * lib/argp-fs-xinl.c: New file, from glibc.
86085         * lib/argp-help.c: New file, from glibc.
86086         * lib/argp-namefrob.h: New file, from glibc.
86087         * lib/argp-parse.c: New file, from glibc.
86088         * lib/argp-pv.c: New file, from glibc.
86089         * lib/argp-pvh.c: New file, from glibc.
86090         * lib/argp-xinl.c: New file, from glibc.
86091
86092 2003-06-10  Simon Josefsson  <jas@extundo.com>
86093
86094         * modules/strchrnul: New file.
86095
86096 2003-06-10  Simon Josefsson  <jas@extundo.com>
86097
86098         * modules/argp: New file.
86099
86100 2003-06-10  Simon Josefsson  <jas@extundo.com>
86101
86102         * m4/strchrnul.m4: New file.
86103
86104 2003-06-10  Simon Josefsson  <jas@extundo.com>
86105
86106         * lib/strchrnul.h: New file.
86107         * lib/strchrnul.c: New file.
86108
86109 2003-06-10  Bruno Haible  <bruno@clisp.org>
86110
86111         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
86112
86113 2003-06-07  Karl Berry  <karl@gnu.org>
86114
86115         * config/config.{guess,sub}: update from prep.
86116
86117 2003-06-07  Jim Meyering  <jim@meyering.net>
86118
86119         * modules/strtod: Use $(...) notation, not @...@ for
86120         AC_REPLACE'd variables.
86121         * modules/localcharset: Likewise.
86122
86123 2003-06-07  Jim Meyering  <jim@meyering.net>
86124
86125         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
86126         in place of my name in the copyright comment.
86127         Remove definition and uses of __P.
86128
86129         From coreutils.
86130         * lib/stat.c: Don't declare xmalloc explicitly.
86131         Instead, include "xalloc.h".
86132         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
86133         xrealloc, and xcalloc return values.
86134         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
86135         Improve comment.
86136         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
86137
86138 2003-06-07  Bruno Haible  <bruno@clisp.org>
86139
86140         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
86141         avoid AC_CONFIG_LINKS.
86142         * modules/fnmatch (Makefile.am): Use explicit creation rule for
86143         fnmatch.h, to avoid AC_CONFIG_LINKS.
86144         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
86145
86146 2003-06-07  Bruno Haible  <bruno@clisp.org>
86147
86148         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
86149         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
86150         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86151         directory.
86152         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
86153         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
86154         directory.
86155
86156 2003-06-06  Jim Meyering  <jim@meyering.net>
86157
86158         Merge from coreutils.
86159         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
86160         Consolidate declarations and initializations of *_base* locals.
86161
86162         Merge from coreutils.
86163         This avoids a core dump on systems without GNU putenv,
86164         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86165         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86166         (unsetenv): New static function, from GNU libc.
86167         (rpl_putenv): Use it.
86168
86169         * lib/modechange.c: Remove trailing blanks.
86170
86171         Merge from coreutils.
86172         * lib/fsusage.c: Remove declaration of statfs.
86173         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86174
86175         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86176
86177 2003-06-06  Jim Meyering  <jim@meyering.net>
86178
86179         * lib/stdbool_.h: Renamed from stdbool.h.in.
86180
86181 2003-06-06  Jim Meyering  <jim@meyering.net>
86182             Bruno Haible  <bruno@clisp.org>
86183
86184         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86185         Adjust Makefile.am snippet not to redirect directly to target.
86186         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86187
86188 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86189
86190         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86191         mismatch, look in future quarters as well as past.  This fixes a
86192         bug when processing fall-backwards gaps immediately after a long
86193         period of daylight-saving time.
86194
86195         * lib/mktime.c: Assume freestanding C89 or better.
86196         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86197         (__P): Remove; not used.
86198         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86199         (mktime, not_equal_tm, print_tm, check_result,
86200         main): Use prototypes.  Use const * where appropriate.
86201         (main): Fix typo in testing code that uncovered by above changes.
86202         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86203
86204 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86205
86206         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86207         locale.h, localeconv.  This merges changes from coreutils.
86208
86209         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86210         It can be removed after the next Autoconf is released.
86211         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86212         needed.
86213
86214 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86215
86216         * lib/mktime.c: Fix Debian bug 177940
86217         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86218         (localtime_offset): Now long int, not time_t, because we want it
86219         to be guaranteed to be signed.  All uses changed.
86220         (__mktime_internal): If overflow would occur when adding offset,
86221         don't add it.
86222
86223         Merge 'human' changes from coreutils.  Rewrite to support
86224         locale-specific notations like thousands separators.
86225         * lib/human.c: Simplify authorship notice.
86226         Include human.h immediately after config.h.
86227         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86228         <limits.h>: Do not include, since human.h does.
86229         (SIZE_MAX, UINTMAX_MAX): New macros.
86230         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86231         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86232         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86233         (power_letter): Renamed from suffixes.
86234         (generate_suffix_backwards): Remove.
86235         (adjust_value): Now takes int style (because of human.h changes)
86236         and long double value (for greater precision on some platforms).
86237         (group_number): New function.
86238         (human_readable): Use it.  Use integer options, not enum.
86239         Put the options before the sizes in the arg list.
86240         Support all the new options.
86241         The old human_readable function has been removed;
86242         use inttostr.h instead.
86243         (human_readable, default_block_size, humblock):
86244         Use uintmax_t, not int, for block sizes.
86245         (human_readable_inexact, block_size_types): Remove.
86246         (block_size_opts): New constant.
86247         (human_options): Renamed from human_block_size, with new signature
86248         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86249         * lib/human.h: Add copyright and authorship notice.
86250         Include <limits.h> and <stdbool.h> unconditionally.
86251         (PARAMS): Remove.  All uses removed.
86252         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86253         (enum human_inexact_style): Remove tag; now a nameless enum.
86254         (human_floor, human_ceiling, human_round_to_even): Now have
86255         values 2, 0, 1 rather than -1, 1, 0.
86256         (human_group_digits, human_suppress_point_zero, human_autoscale,
86257         human_base_1024, human_SI, human_B): New constants.
86258         (human_readable_inexact, human_block_size): Remove.
86259         (human_readable): Size args are now uintmax_t, not int.
86260         (human_options): New decl.
86261
86262         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86263         unnecessary now that we assume C89 or better.  This change
86264         imported from coreutils.
86265
86266         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86267         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86268         in the 2003-05-30 sync from glibc.
86269
86270         .h files should stand alone, but we shouldn't include <sys/types.h>
86271         if we can get away with just <stddef.h>.
86272
86273         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86274         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86275         rather than <sys/types.h>, as we merely need size_t.
86276         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86277         to get size_t.
86278         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86279         Include <stdio.h>, to get FILE.
86280         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86281         memcasecmp.h has included <stddef.h> and all we need is size_t.
86282         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86283         our interface, instead of including <sys/types.h>
86284
86285 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86286
86287         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86288         now, as glibc mktime is buggy on non-glibc systems.
86289
86290 2003-06-03  Karl Berry  <karl@gnu.org>
86291
86292         * config/config.sub: update from prep.
86293
86294 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86295
86296         [from coreutils]
86297         Fix some minor time-related bugs with POSIX time arguments.
86298         Some valid time stamps were being rejected (notably -1, and
86299         time stamps before 1900 on 64-bit hosts).  And some invalid
86300         time stamps were being accepted, e.g. September 31.
86301
86302         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86303         that we can return (time_t) -1 successfully.
86304         * lib/posixtm.c: Likewise.
86305         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86306         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86307         (t): Remove static var.
86308         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86309         of static var.  All uses changed.
86310         (year): Do not reject years before 1900; they can occur with
86311         64-bit time_t.
86312         (posix_time_parse): Do not check for out-of-range components;
86313         that is now the caller's responsibility, since our checks were
86314         only approximations.
86315         (posixtime): Use mktime to check for out-of-range components,
86316         since it knows them exactly.
86317         If mktime returns (time_t) -1, check whether an error actually occurred
86318         by invoking localtime on -1.
86319         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86320         posixtime failures better.
86321         Improve the test data (in comments only).
86322
86323 2003-06-02  Karl Berry  <karl@gnu.org>
86324
86325         * config/mkinstalldirs (version): new variable.
86326         (--version): new option.
86327         (usage): improve message.
86328
86329 2003-05-30  Karl Berry  <karl@gnu.org>
86330
86331         * lib/mktime.c: update from libc.
86332
86333 2003-05-30  Bruno Haible  <bruno@clisp.org>
86334
86335         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86336         * config/config.rpath: Upgrade to gettext-0.12.1.
86337
86338 2003-05-30  Bruno Haible  <bruno@clisp.org>
86339
86340         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86341         * m4/nls.m4: New file, from gettext-0.12.1.
86342         * m4/po.m4: New file, from gettext-0.12.1.
86343         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86344
86345 2003-05-30  Bruno Haible  <bruno@clisp.org>
86346
86347         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86348         * lib/localcharset.h: Likewise.
86349         * lib/localcharset.c: Likewise.
86350
86351 2003-05-29  Karl Berry  <karl@gnu.org>
86352
86353         * config/config.rpath: update from gettext.
86354
86355 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86356
86357         Assume the headers required for C89 freestanding compilers.
86358         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86359         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86360         * m4/human.m4 (gl_HUMAN): Likewise.
86361         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86362         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86363         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86364         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86365         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86366         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86367
86368 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86369
86370         Assume the headers required for C89 freestanding compilers.
86371         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86372         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86373         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86374         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86375         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86376         define, since <limits.h> is guaranteed to do that.
86377         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86378         * lib/exclude.c: Include <stdbool.h> unconditionally.
86379         * lib/tempname.c: Include <stddef.h> unconditionally.
86380         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86381         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86382         <stddef.h> does that.
86383         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86384         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86385         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86386         needed.
86387         * lib/xstrtol.c: Likewise.
86388         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86389         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86390
86391         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86392         warnings on some platforms.
86393
86394         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86395         arbitrarily.
86396
86397 2003-05-26  Jim Meyering  <jim@meyering.net>
86398
86399         Merge in a change from coreutils:
86400         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86401         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86402         that condition, rather than `-1' which is slightly misleading.
86403         Change the name of the cache variable to have the gl_ prefix.
86404         Prompted by a patch from Richard Dawe for DJGPP.
86405
86406 2003-05-24  Karl Berry  <karl@gnu.org>
86407
86408         * config/config.guess: update from prep.
86409
86410 2003-05-22  Karl Berry  <karl@gnu.org>
86411
86412         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86413
86414 2003-05-20  Karl Berry  <karl@gnu.org>
86415
86416         * config/config.guess: update from prep.
86417
86418 2003-05-18  Karl Berry  <karl@gnu.org>
86419
86420         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86421         might actually be set by the user.
86422
86423         * config/depcomp, install-sh, mdate-sh: update from automake.
86424
86425 2003-05-17  Bruno Haible  <bruno@clisp.org>
86426
86427         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86428         invalid expansion for AC_EGREP_CPP.
86429         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86430         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86431         Suggested by Akim Demaille <akim@epita.fr> in
86432         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86433
86434 2003-05-12  Jim Meyering  <jim@meyering.net>
86435
86436         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86437         the space-padded-by-default conversion specifiers, %e, %k, %l.
86438
86439 2003-05-12  Bruno Haible  <bruno@clisp.org>
86440
86441         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86442         the string is longer than 4 KB.
86443
86444 2003-05-11  Karl Berry  <karl@gnu.org>
86445
86446         * config/config.{guess,sub}: update from prep.
86447
86448 2003-05-09  Bruno Haible  <bruno@clisp.org>
86449
86450         * modules/error: Add m4/strerror_r.m4 to file list.
86451
86452 2003-05-03  Bruno Haible  <bruno@clisp.org>
86453
86454         Upgrade to Unicode-4.0.
86455         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86456         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86457         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86458         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86459         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86460         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86461         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86462         Change width of U+E0100..U+E01EF from 1 to 0.
86463
86464 2003-04-25  Jim Meyering  <jim@meyering.net>
86465
86466         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86467         of type size_t, not int.
86468
86469 2003-04-25  Bruno Haible  <bruno@clisp.org>
86470
86471         * lib/copy-file.c: Include <stddef.h>, for size_t.
86472
86473 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86474
86475         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86476         code which expansion is under static control.  Patch imported from
86477         Akim Demaille's patch to Bison; see
86478         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86479
86480 2003-04-14  Bruno Haible  <bruno@clisp.org>
86481
86482         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86483
86484 2003-04-11  Jim Meyering  <jim@meyering.net>
86485
86486         Merge changes from Coreutils.
86487
86488         2003-03-22  Jim Meyering  <jim@meyering.net>
86489
86490         * lib/strftime.c (widen): Cast alloca return value to proper type.
86491
86492         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86493
86494         From GNU libc.
86495         * lib/strftime.c (my_strftime): Handle very large width
86496         specifications for numeric values correctly.  Improve checks for
86497         overflow.
86498
86499         2003-01-19  Jim Meyering  <jim@meyering.net>
86500
86501         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86502         definitions.
86503         (nl_get_alt_digit) [! defined my_strftime]: Define.
86504         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86505         _nl_get_alt_digit and _nl_get_walt_digit.
86506
86507         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86508         libc. These changes have no effect outside of _LIBC.
86509
86510 2003-04-10  Bruno Haible  <bruno@clisp.org>
86511
86512         * modules/findprog: New file.
86513         * MODULES.html.sh (func_all_modules): Add it.
86514
86515 2003-04-10  Bruno Haible  <bruno@clisp.org>
86516
86517         * m4/findprog.m4: New file.
86518         * m4/eaccess.m4: New file.
86519
86520 2003-04-10  Bruno Haible  <bruno@clisp.org>
86521
86522         * lib/findprog.h: New file, from GNU gettext.
86523         * lib/findprog.c: New file, from GNU gettext.
86524
86525 2003-04-05  Jim Meyering  <jim@meyering.net>
86526
86527         Merge changes from Coreutils.
86528
86529         * lib/exclude.h (PARAMS): Remove definition and uses.
86530         * lib/exclude.c: Remove uses of `PARAMS'.
86531
86532         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86533         Add test-cases for DOS filenames. Declare program_name.
86534         (main): Set up program_name.  Patch by Rich Dawe.
86535
86536         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86537         error from mntctl.
86538         Use mntctl's return value to drive the entry-processing loop, since
86539         we can't rely on the value of the vmt_length member in the last
86540         entry.  On some systems doing so could result in exhausting
86541         virtual memory.  Based in part on a patch from Mike Jetzer.
86542
86543 2003-04-04  Bruno Haible  <bruno@clisp.org>
86544
86545         * modules/linebreak: New file.
86546         * MODULES.html.sh (func_all_modules): Add it.
86547
86548 2003-04-04  Bruno Haible  <bruno@clisp.org>
86549
86550         * m4/linebreak.m4: New file.
86551
86552 2003-04-04  Bruno Haible  <bruno@clisp.org>
86553
86554         * lib/linebreak.h: New file, from GNU gettext.
86555         * lib/linebreak.c: New file, from GNU gettext with slight
86556         modifications.
86557         * lib/lbrkprop.h: New file, from GNU gettext.
86558
86559 2003-04-03  Bruno Haible  <bruno@clisp.org>
86560
86561         * modules/utf8-ucs4: New file.
86562         * modules/utf16-ucs4: New file.
86563         * modules/ucs4-utf8: New file.
86564         * modules/ucs4-utf16: New file.
86565         * MODULES.html.sh (func_all_modules): Add them.
86566
86567 2003-04-03  Bruno Haible  <bruno@clisp.org>
86568
86569         * m4/utf-ucs4.m4: New file.
86570         * m4/ucs4-utf.m4: New file.
86571
86572 2003-04-03  Bruno Haible  <bruno@clisp.org>
86573
86574         * lib/utf8-ucs4.h: New file, from GNU gettext.
86575         * lib/utf16-ucs4.h: New file, from GNU gettext.
86576         * lib/ucs4-utf8.h: New file, from GNU gettext.
86577         * lib/ucs4-utf16.h: New file, from GNU gettext.
86578
86579 2003-04-02  Bruno Haible  <bruno@clisp.org>
86580
86581         * modules/binary-io: New file.
86582         * MODULES.html.sh (func_all_modules): Add it.
86583
86584 2003-04-02  Bruno Haible  <bruno@clisp.org>
86585
86586         * lib/binary-io.h: New file, from GNU gettext.
86587
86588 2003-04-01  Bruno Haible  <bruno@clisp.org>
86589
86590         * modules/pathname: New file.
86591         * MODULES.html.sh (func_all_modules): Add it.
86592
86593 2003-04-01  Bruno Haible  <bruno@clisp.org>
86594
86595         * lib/pathname.h: New file, from GNU gettext.
86596         * lib/concatpath.c: New file, from GNU gettext.
86597
86598 2003-03-30  Bruno Haible  <bruno@clisp.org>
86599
86600         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86601
86602 2003-03-30  Bruno Haible  <bruno@clisp.org>
86603
86604         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86605         function chown() doesn't exist.
86606
86607 2003-03-28  Bruno Haible  <bruno@clisp.org>
86608
86609         * modules/copy-file: New file.
86610         * MODULES.html.sh (func_all_modules): Add it.
86611
86612 2003-03-28  Bruno Haible  <bruno@clisp.org>
86613
86614         * m4/copy-file.m4: New file.
86615
86616 2003-03-28  Bruno Haible  <bruno@clisp.org>
86617
86618         * lib/copy-file.h: New file, from GNU gettext.
86619         * lib/copy-file.c: New file, from GNU gettext.
86620
86621 2003-03-18  Jim Meyering  <jim@meyering.net>
86622
86623         * lib/quote.c (quote_n): Fix typo in comment.
86624
86625 2003-03-18  Bruno Haible  <bruno@clisp.org>
86626
86627         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86628         checking.
86629         * m4/onceonly_2_57.m4: Likewise.
86630
86631 2003-03-17  Bruno Haible  <bruno@clisp.org>
86632
86633         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86634         (m4_quote): Remove macro.
86635         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86636
86637 2003-03-14  Jim Meyering  <jim@meyering.net>
86638
86639         Merge changes from Coreutils.
86640         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86641         to be const, in order to avoid warnings.
86642         (obstack_room): Likewise.
86643         (obstack_empty_p): Likewise.
86644
86645 2003-03-14  Bruno Haible  <bruno@clisp.org>
86646
86647         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86648         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86649
86650 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86651
86652         Merge changes from Bison.
86653         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86654         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86655         when compiling Bison 1.875's `bitset bset = obstack_alloc
86656         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86657         * lib/hash.c: Include <stdbool.h> unconditionally.
86658
86659 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86660
86661         * m4/onceonly.m4 (m4_quote): New macro.
86662         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86663         Quote AC_FOREACH variable-expansions properly.
86664
86665 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86666
86667         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86668
86669 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86670
86671         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86672         Reported by Bruce Becker; see:
86673         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86674
86675 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86676             Bruno Haible  <bruno@clisp.org>
86677
86678         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86679         Reported by John Hughes, see
86680         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86681
86682 2003-02-20  Bruno Haible  <bruno@clisp.org>
86683
86684         * MODULES.html.sh (func_all_modules): Add poll.
86685
86686 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86687
86688         * modules/poll: New file.
86689
86690 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86691
86692         * lib/poll_.h: New file.
86693         * lib/poll.c: New file.
86694
86695 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86696
86697         * m4/poll.m4: New file.
86698
86699 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86700
86701         * modules/mathl: New file.
86702
86703 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86704
86705         * lib/mathl.h: New file.
86706         * lib/acosl.c: New file.
86707         * lib/asinl.c: New file.
86708         * lib/atanl.c: New file.
86709         * lib/ceill.c: New file.
86710         * lib/cosl.c: New file.
86711         * lib/expl.c: New file.
86712         * lib/floorl.c: New file.
86713         * lib/frexpl.c: New file.
86714         * lib/ldexpl.c: New file.
86715         * lib/logl.c: New file.
86716         * lib/sincosl.c: New file.
86717         * lib/sinl.c: New file.
86718         * lib/sqrtl.c: New file.
86719         * lib/tanl.c: New file.
86720         * lib/trigl.c: New file.
86721         * lib/trigl.h: New file.
86722
86723 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86724
86725         * m4/mathl.m4: New file.
86726
86727 2003-02-18  Bruno Haible  <bruno@clisp.org>
86728
86729         * MODULES.html.sh (func_all_modules): Add mathl.
86730
86731 2003-02-17  Bruno Haible  <bruno@clisp.org>
86732
86733         * modules/mkdtemp: New module.
86734         * MODULES.html.sh (func_all_modules): Add it.
86735
86736 2003-02-17  Bruno Haible  <bruno@clisp.org>
86737
86738         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86739
86740 2003-02-17  Bruno Haible  <bruno@clisp.org>
86741
86742         * lib/mkdtemp.h: New file, from GNU gettext.
86743         * lib/mkdtemp.c: New file, from GNU gettext.
86744
86745 2003-02-02  Jim Meyering  <jim@meyering.net>
86746
86747         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86748         e.g. glibc-2.2.93.
86749
86750 2003-01-31  Bruno Haible  <bruno@clisp.org>
86751
86752         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86753         'rpl_rename'.
86754         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86755         'rpl_strnlen'.
86756         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86757         'rpl_strtod'.
86758         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86759         'rpl_utime'.
86760
86761 2003-01-31  Bruno Haible  <bruno@clisp.org>
86762
86763         * lib/rename.c: #undef rename before defining rpl_rename.
86764         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86765
86766 2003-01-30  Bruno Haible  <bruno@clisp.org>
86767
86768         * modules/vasnprintf, modules/vasprintf: New modules.
86769         * MODULES.html.sh (func_all_modules): Add them.
86770
86771 2003-01-30  Bruno Haible  <bruno@clisp.org>
86772
86773         * m4/signed.m4: New file, from GNU gettext.
86774         * m4/longdouble.m4: New file, from GNU gettext.
86775         * m4/wchar_t.m4: New file, from GNU gettext.
86776         * m4/wint_t.m4: New file, from GNU gettext.
86777         * m4/vasnprintf.m4: New file.
86778         * m4/vasprintf.m4: New file.
86779
86780 2003-01-30  Bruno Haible  <bruno@clisp.org>
86781
86782         * lib/printf-args.h: New file, from GNU gettext.
86783         * lib/printf-args.c: New file, from GNU gettext.
86784         * lib/printf-parse.h: New file, from GNU gettext.
86785         * lib/printf-parse.c: New file, from GNU gettext.
86786         * lib/vasnprintf.h: New file, from GNU gettext.
86787         * lib/vasnprintf.c: New file, from GNU gettext.
86788         * lib/asnprintf.c: New file, from GNU gettext.
86789         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86790         * lib/vasprintf.c: New file, from GNU gettext.
86791         * lib/asprintf.c: New file, from GNU gettext.
86792
86793 2003-01-29  Bruno Haible  <bruno@clisp.org>
86794
86795         * modules/stpncpy: New module.
86796         * MODULES.html.sh (func_all_modules): Add it.
86797
86798 2003-01-29  Bruno Haible  <bruno@clisp.org>
86799
86800         * m4/stpncpy.m4: New file.
86801
86802 2003-01-29  Bruno Haible  <bruno@clisp.org>
86803
86804         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86805         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86806
86807 2003-01-28  Bruno Haible  <bruno@clisp.org>
86808
86809         * modules/c-ctype: New module.
86810         * MODULES.html.sh (func_all_modules): Add it.
86811
86812 2003-01-28  Bruno Haible  <bruno@clisp.org>
86813
86814         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86815         Paul Eggert.
86816         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86817         Paul Eggert.
86818
86819 2003-01-27  Bruno Haible  <bruno@clisp.org>
86820
86821         * modules/xsetenv: New module.
86822         * MODULES.html.sh (func_all_modules): Add it.
86823
86824 2003-01-27  Bruno Haible  <bruno@clisp.org>
86825
86826         * lib/xsetenv.h: New file, from GNU gettext.
86827         * lib/xsetenv.c: New file, from GNU gettext.
86828
86829 2003-01-23  Jim Meyering  <jim@meyering.net>
86830
86831         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86832         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86833
86834 2003-01-23  Bruno Haible  <bruno@clisp.org>
86835
86836         * modules/minmax: New module.
86837         * MODULES.html.sh (func_all_modules): Add it.
86838
86839 2003-01-23  Bruno Haible  <bruno@clisp.org>
86840
86841         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86842         Eggert.
86843
86844 2003-01-22  Bruno Haible  <bruno@clisp.org>
86845
86846         * modules/exit: New module.
86847         * MODULES.html.sh (func_all_modules): Add it.
86848
86849 2003-01-22  Bruno Haible  <bruno@clisp.org>
86850
86851         * lib/exit.h: New file, from GNU gettext.
86852
86853 2003-01-19  Bruno Haible  <bruno@clisp.org>
86854
86855         * gnulib-tool: Recognize option --extract-maintainer.
86856         (func_get_maintainer): New function.
86857         * modules/*: Add Maintainer entry.
86858
86859 2003-01-16  Jim Meyering  <jim@meyering.net>
86860
86861         * m4/regex.m4: The `regex' struct is both input and output.
86862         Initialize it before each use.  Patch by Tim Waugh.
86863
86864 2003-01-16  Bruno Haible  <bruno@clisp.org>
86865
86866         * MODULES.html.sh: Add a table of contents. Add the module name as
86867         leftmost column. Add hyperlinks.
86868
86869 2003-01-15  Bruno Haible  <bruno@clisp.org>
86870
86871         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86872
86873 2003-01-15  Bruno Haible  <bruno@clisp.org>
86874
86875         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86876         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86877         suffix.
86878
86879 2003-01-15  Bruno Haible  <bruno@clisp.org>
86880
86881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86882
86883 2003-01-15  Bruno Haible  <bruno@clisp.org>
86884
86885         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86886         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86887
86888 2003-01-14  Jim Meyering  <jim@meyering.net>
86889
86890         * lib/same.c (same_name): Tweak a comment.
86891
86892 2003-01-14  Bruno Haible  <bruno@clisp.org>
86893
86894         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86895         when a string comparison is sufficient.
86896
86897 2003-01-14  Bruno Haible  <bruno@clisp.org>
86898
86899         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86900         'unsigned int'.
86901
86902 2003-01-14  Bruno Haible  <bruno@clisp.org>
86903
86904         * lib/hash-pjw.c: Add comment about low quality of this function.
86905
86906 2003-01-13  Bruno Haible  <bruno@clisp.org>
86907
86908         * modules/stpcpy: Distribute lib/stpcpy.h.
86909         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86910
86911 2003-01-13  Bruno Haible  <bruno@clisp.org>
86912
86913         * modules/*: Add a description.
86914         * modules/strpbrk: Fix Makefile.am snippet.
86915         * modules/strtoimax: Fix dependencies.
86916         * modules/strtoumax: Likewise.
86917
86918 2003-01-13  Bruno Haible  <bruno@clisp.org>
86919
86920         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86921         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86922         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86923
86924 2003-01-13  Bruno Haible  <bruno@clisp.org>
86925
86926         * gnulib-tool (func_create_testdir): Store config/* files in the main
86927         directory.
86928         * config.rpath: Move to ...
86929         * config/config.rpath: ... here.
86930         * modules/gettext: Contains config/config.rpath, not config.rpath.
86931         * modules/iconv: Likewise.
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         * m4/getstr.m4: Remove.
86939         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86940
86941 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86942
86943         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86944         to avoid collisions with libcurses and libreadline.
86945
86946         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86947         * lib/getstr.h, getstr.c: Remove.
86948         * lib/getline.c: Include "getline.h", to check interface.
86949         Move body of old getstr.c here: this defines MIN_CHUNK and
86950         declares getdelim2, which is renamed from getstr.
86951         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86952
86953         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86954         All uses changed.
86955         * lib/linebuffer.h: Likewise.
86956         (readline): Remove backward-compatibility macro.
86957
86958 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86959
86960         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86961         to avoid collisions with libcurses and libreadline.
86962         * getstr: Remove.
86963         * MODULES.html.sh: Remove getstr.
86964         * modules/getline: Depend on unlocked-io, not getstr.
86965
86966 2003-01-12  Jim Meyering  <jim@meyering.net>
86967
86968         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86969
86970 2003-01-10  Bruno Haible  <bruno@clisp.org>
86971
86972         * modules/alloca: Change Makefile.am requirements. Simplify Include
86973         requirements. Add lib/alloca_.h to file list.
86974
86975 2003-01-10  Bruno Haible  <bruno@clisp.org>
86976
86977         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86978
86979 2003-01-10  Bruno Haible  <bruno@clisp.org>
86980
86981         * lib/alloca_.h: New file.
86982         * lib/getdate.y: Unconditionally include alloca.h.
86983         * lib/makepath.c: Likewise.
86984         * lib/setenv.c: Likewise.
86985         * lib/userspec.c: Likewise.
86986
86987 2003-01-09  Karl Berry  <karl@gnu.org>
86988
86989         * MODULES.html.sh: include `dirname $0` in PATH, to find
86990         gnulib-tool.
86991
86992 2003-01-09  Bruno Haible  <bruno@clisp.org>
86993
86994         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86995         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86996
86997 2003-01-09  Bruno Haible  <bruno@clisp.org>
86998
86999         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
87000
87001 2003-01-09  Bruno Haible  <bruno@clisp.org>
87002
87003         * lib/stdbool.h.in: New file.
87004
87005 2003-01-09  Bruno Haible  <bruno@clisp.org>
87006
87007         * gnulib-tool (func_all_modules): Ignore files ending in ~.
87008         * MODULES.html.sh: Likewise.
87009
87010 2003-01-08  Jim Meyering  <jim@meyering.net>
87011
87012         * lib/full-write.c: Undefine and define-away `const' after inclusion
87013         of errno.h, not before.  Suggestion from Bruno Haible.
87014
87015 2003-01-08  Bruno Haible  <bruno@clisp.org>
87016
87017         * modules/full-read: Depend on full-write.
87018
87019 2003-01-08  Bruno Haible  <bruno@clisp.org>
87020
87021         * lib/safe-read.c: Include specification header first, to ensure its
87022         selfcontainedness.
87023         * lib/full-write.c: Likewise.
87024
87025 2003-01-07  Jim Meyering  <jim@meyering.net>
87026
87027         * lib/full-write.c: Rework so that it may serve to define full_read,
87028         too.
87029         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
87030
87031 2003-01-07  Bruno Haible  <bruno@clisp.org>
87032
87033         * lib/strtoimax.c: Include <stdint.h> as an alternative to
87034         <inttypes.h>.
87035         * lib/xstrtol.h: Likewise.
87036         * lib/xstrtoimax.c: Likewise.
87037         * lib/xstrtoumax.c: Likewise.
87038         * lib/human.h: Likewise.
87039
87040         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
87041         on systems that have <inttypes.h> but not <stdint.h>.
87042
87043 2003-01-07  Bruno Haible  <bruno@clisp.org>
87044
87045         * MODULES.html.sh: Add copyright notice.
87046         (missed_files): Omit CVS directory entries.
87047         (func_module): Make it work with sed-3.02.
87048         * MODULES.txt: Remove file.
87049
87050 2003-01-06  Jim Meyering  <jim@meyering.net>
87051
87052         * lib/version-etc.c: Update year in translatable copyright string.
87053
87054 2003-01-03  Karl Berry  <karl@gnu.org>
87055
87056         * config/config.{guess,sub}: update from prep.
87057
87058 2003-01-02  Karl Berry  <karl@gnu.org>
87059
87060         * doc/COPYING.DOC: belatedly updated to 1.2.
87061
87062 2003-01-01  Karl Berry  <karl@gnu.org>
87063
87064         * gnulib-tool (func_verify_module): report module name $module in
87065         error message, not $1.
87066         * gnulib-tool (create-testdir): don't complain if destdir couldn't
87067         be created, only if it doesn't exist.
87068         * gnulib-tool (last_checkin_date): don't expand the $Date here.
87069
87070 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87071
87072         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
87073
87074 2002-12-31  Paul Eggert  <eggert@twinsun.com>
87075
87076         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
87077         memcmp if strcoll doesn't work.
87078
87079 2002-12-31  Bruno Haible  <bruno@clisp.org>
87080
87081         * lib/utime.c (utime_null): No need to call ftruncate if the file was
87082         nonempty.
87083
87084 2002-12-31  Bruno Haible  <bruno@clisp.org>
87085
87086         * lib/memcoll.c (STRCOLL): New macro.
87087         (memcoll): Use it.
87088
87089 2002-12-31  Bruno Haible  <bruno@clisp.org>
87090
87091         * lib/localcharset.h: New file.
87092         * lib/localcharset.c: Include it.
87093         * lib/unicodeio.c: Likewise.
87094
87095 2002-12-31  Bruno Haible  <bruno@clisp.org>
87096
87097         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
87098         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
87099
87100 2002-12-31  Bruno Haible  <bruno@clisp.org>
87101
87102         * lib/getline.h: Include <stddef.h>, for size_t.
87103
87104         * lib/unicodeio.h: Include <stddef.h>, for size_t.
87105         * lib/unicodeio.c: Don't include <stddef.h>.
87106
87107 2002-12-31  Bruno Haible  <bruno@clisp.org>
87108
87109         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
87110         HAVE_TM_ZONE.
87111
87112 2002-12-24  Karl Berry  <karl@gnu.org>
87113
87114         * config/config.guess: update from prep.
87115
87116 2002-12-24  Bruno Haible  <bruno@clisp.org>
87117
87118         General infrasructure.
87119         * m4/README: Rewritten.
87120         * m4/onceonly.m4: New file.
87121         * m4/onceonly_2_57.m4: New file.
87122
87123         Module atexit.
87124         * m4/atexit.m4: New file.
87125
87126         Module strtod.
87127         * m4/strtod.m4: New file.
87128
87129         Module strtol.
87130         * m4/strtol.m4: New file.
87131
87132         Module strtoul.
87133         * m4/strtoul.m4: New file.
87134
87135         Module memchr.
87136         * m4/memchr.m4: New file.
87137
87138         Module memcmp.
87139         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
87140         (jm_FUNC_MEMCMP): Invoke it.
87141
87142         Module memcpy.
87143         * m4/memcpy.m4: New file.
87144
87145         Module memmove.
87146         * m4/memmove.m4: New file.
87147
87148         Module memset.
87149         * m4/memset.m4: New file.
87150
87151         Module strcspn.
87152         * m4/strcspn.m4: New file.
87153
87154         Module strpbrk.
87155         * m4/strpbrk.m4: New file.
87156
87157         Module strstr.
87158         * m4/strstr.m4: New file.
87159
87160         Module strerror.
87161         * m4/strerror.m4: New file.
87162
87163         Module mktime.
87164         * m4/mktime.m4: Renamed from jm-mktime.m4.
87165         (gl_PREREQ_MKTIME): New macro.
87166         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87167
87168         Module malloc.
87169         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87170         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87171         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87172
87173         Module realloc.
87174         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87175         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87176         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87177
87178         Module strftime.
87179         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87180         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87181         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87182         gl_TM_GMTOFF.
87183         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87184
87185         Module xalloc.
87186         * m4/xalloc.m4: New file.
87187
87188         Module alloca.
87189         * m4/alloca.m4: New file.
87190
87191         Module putenv.
87192         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87193         (jm_FUNC_PUTENV): Invoke it.
87194
87195         Module setenv.
87196         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87197         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87198         when invoked twice.
87199         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87200         gt_FUNC_SETENV.
87201
87202         Module memrchr.
87203         * m4/memrchr.m4: New file.
87204
87205         Module stpcpy.
87206         * m4/stpcpy.m4: New file.
87207
87208         Module strcase.
87209         * m4/strcase.m4: New file.
87210
87211         Module strdup.
87212         * m4/strdup.m4: New file.
87213
87214         Module strnlen.
87215         * m4/strnlen.m4: New file.
87216
87217         Module strndup.
87218         * m4/strndup.m4: New file.
87219
87220         Module xstrtod.
87221         * m4/xstrtod.m4: New file.
87222
87223         Module xstrtol.
87224         * m4/xstrtol.m4: New file.
87225
87226         Module getdate.
87227         * m4/getdate.m4: New file.
87228
87229         Module unlocked-io.
87230         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87231         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87232         * m4/jm-glibc-io.m4n: Remove file.
87233
87234         Module long-options.
87235         * m4/long-options.m4: New file.
87236
87237         Module md5.
87238         * m4/md5.m4: New file.
87239
87240         Module sha.
87241         * m4/sha.m4: New file.
87242
87243         Module getstr.
87244         * m4/getstr.m4: New file.
87245
87246         Module getline.
87247         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87248         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87249         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87250         simply getline. Infoke gl_PREREQ_GETLINE.
87251
87252         Module obstack.
87253         * m4/obstack.m4: New file.
87254
87255         Module hash.
87256         * m4/hash.m4: New file.
87257
87258         Module readtokens.
87259         * m4/readtokens.m4: New file.
87260
87261         Module strverscmp.
87262         * m4/strverscmp.m4: New file.
87263
87264         Module stdbool.
87265         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87266         OSF/1.
87267
87268         Module strtoll.
87269         * m4/strtoll.m4: New file.
87270
87271         Module strtoull.
87272         * m4/strtoull.m4: New file.
87273
87274         Module strtoimax.
87275         * m4/strtoimax.m4: New file.
87276
87277         Module strtoumax.
87278         * m4/strtoumax.m4: New file.
87279
87280         Module xstrtoimax.
87281         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87282         jm_AC_PREREQ_XSTRTOIMAX.
87283         Moved the strtol prerequisites to strtol.m4.
87284         Moved the strtoll prerequisites to strtoll.m4.
87285         Moved the strtoimax prerequisites to strtoimax.m4.
87286
87287         Module xstrtoumax.
87288         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87289         jm_AC_PREREQ_XSTRTOUMAX.
87290         Moved the strtoul prerequisites to strtoul.m4.
87291         Moved the strtoull prerequisites to strtoull.m4.
87292         Moved the strtoumax prerequisites to strtoumax.m4.
87293
87294         Module chown.
87295         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87296         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87297
87298         Module dup2.
87299         * m4/dup2.m4: New file.
87300
87301         Module ftruncate.
87302         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87303         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87304
87305         Module getgroups.
87306         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87307         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87308
87309         Module gettimeofday.
87310         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87311         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87312         gl_PREREQ_GETTIMEOFDAY.
87313
87314         Module mkdir.
87315         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87316         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87317
87318         Module mkstemp.
87319         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87320         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87321         jm_AC_TYPE_UINTMAX_T.
87322         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87323
87324         Module stat.
87325         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87326         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87327
87328         Module lstat.
87329         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87330         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87331
87332         Module timespec.
87333         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87334         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87335         * m4/st_mtim.m4: Indentation.
87336
87337         Module nanosleep.
87338         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87339         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87340         gl_PREREQ_NANOSLEEP.
87341
87342         Module regex.
87343         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87344         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87345         (gl_REGEX): New macro.
87346
87347         Module rename.
87348         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87349         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87350
87351         Module rmdir.
87352         * m4/rmdir.m4: New file.
87353
87354         Module utime.
87355         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87356         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87357         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87358
87359         Module dirname.
87360         * m4/dirname.m4: New file.
87361
87362         Module getopt.
87363         * m4/getopt.m4: New file.
87364
87365         Module unistd-safer.
87366         * m4/unistd-safer.m4: New file.
87367
87368         Module fnmatch.
87369         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87370         declaration.
87371         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87372         (gl_FUNC_FNMATCH_POSIX): New macro.
87373         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87374         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87375         simply fnmatch.
87376
87377         Module exclude.
87378         * m4/exclude.m4: New file.
87379
87380         Module human.
87381         * m4/human.m4: New file.
87382
87383         Module acl.
87384         * m4/acl.m4: Nop.
87385
87386         Module backupfile.
87387         * m4/backupfile.m4: New file.
87388         * m4/d-ino.m4: Indentation.
87389
87390         Module fsusage.
87391         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87392         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87393         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87394
87395         Module dirfd.
87396         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87397         requirements.
87398
87399         Module euidaccess.
87400         * m4/euidaccess.m4: New file.
87401
87402         Module file-type.
87403         * m4/file-type.m4: New file.
87404
87405         Module fileblocks.
87406         * m4/fileblocks.m4: New file.
87407
87408         Module filemode.
87409         * m4/filemode.m4: New file.
87410
87411         Module isdir.
87412         * m4/isdir.m4: New file.
87413
87414         Module lchown.
87415         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87416         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87417
87418         Module makepath.
87419         * m4/makepath.m4: New file.
87420
87421         Module modechange.
87422         * m4/modechange.m4: New file.
87423
87424         Module mountlist.
87425         * m4/mountlist.m4: New file.
87426         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87427         Indentation.
87428
87429         Module path-concat.
87430         * m4/path-concat.m4: New file.
87431
87432         Module pathmax.
87433         * m4/pathmax.m4: New file.
87434
87435         Module same.
87436         * m4/same.m4: New file.
87437
87438         Module save-cwd.
87439         * m4/save-cwd.m4: New file.
87440
87441         Module savedir.
87442         * m4/savedir.m4: New file.
87443
87444         Module xgetcwd.
87445         * m4/xgetcwd.m4: New file.
87446         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87447
87448         Module xreadlink.
87449         * m4/xreadlink.m4: New file.
87450
87451         Module safe-read.
87452         * m4/safe-read.m4: New file.
87453
87454         Module safe-write.
87455         * m4/safe-write.m4: New file.
87456
87457         Module closeout.
87458         * m4/closeout.m4: New file.
87459
87460         Module stdio-safer.
87461         * m4/stdio-safer.m4: New file.
87462
87463         Module getpass.
87464         * m4/getpass.m4: New file.
87465
87466         Module getugroups.
87467         * m4/getugroups.m4: New file.
87468
87469         Module group-member.
87470         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87471         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87472
87473         Module idcache.
87474         * m4/idcache.m4: New file.
87475
87476         Module userspec.
87477         * m4/userspec.m4: New file.
87478
87479         Module gettime.
87480         * m4/clock_time.m4: New file.
87481         * m4/gettime.m4: New file.
87482
87483         Module settime.
87484         * m4/settime.m4: New file.
87485
87486         Module posixtm.
87487         * m4/posixtm.m4: New file.
87488
87489         Module gethostname.
87490         * m4/gethostname.m4: New file.
87491
87492         Module canon-host.
87493         * m4/canon-host.m4: New file.
87494
87495         Module gettext.
87496         * m4/codeset.m4: New file, from gettext-0.11.5.
87497         * m4/gettext.m4: New file, from gettext-0.11.5.
87498         * m4/glibc21.m4: New file, from gettext-0.11.5.
87499         * m4/iconv.m4: New file, from gettext-0.11.5.
87500         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87501         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87502         * m4/inttypes.m4: New file, from gettext-0.11.5.
87503         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87504         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87505         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87506         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87507         * m4/lib-link.m4: New file, from gettext-0.11.5.
87508         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87509         * m4/progtest.m4: New file, from gettext-0.11.5.
87510         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87511         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87512         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87513
87514         Module localcharset.
87515         * m4/localcharset.m4: New file.
87516
87517         Module hard-locale.
87518         * m4/hard-locale.m4: New file.
87519
87520         Module mbswidth.
87521         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87522         onceonly macros.
87523         * m4/mbrtowc.m4: Add comment.
87524
87525         Module memcasecmp.
87526         * m4/memcasecmp.m4: New file.
87527
87528         Module memcoll.
87529         * m4/memcoll.m4: New file.
87530
87531         Module unicodeio.
87532         * m4/unicodeio.m4: New file.
87533
87534         Module rpmatch.
87535         * m4/rpmatch.m4: New file.
87536
87537         Module yesno.
87538         * m4/yesno.m4: New file.
87539
87540         Module exitfail.
87541         * m4/exitfail.m4: New file.
87542
87543         Module c-stack.
87544         * m4/c-stack.m4 (gl_C_STACK): New macro.
87545         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87546
87547         Module error.
87548         * m4/error.m4 (gl_ERROR): New macro.
87549         (jm_PREREQ_ERROR): Use onceonly macros.
87550
87551         Module fatal.
87552         * m4/fatal.m4: New file.
87553
87554         Module getloadavg.
87555         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87556         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87557
87558         Module getpagesize.
87559         * m4/getpagesize.m4: New file.
87560
87561         Module getusershell.
87562         * m4/getusershell.m4: New file.
87563
87564         Module physmem.
87565         * m4/physmem.m4: New file.
87566
87567         Module posixver.
87568         * m4/posixver.m4: New file.
87569
87570         Module quotearg.
87571         * m4/quotearg.m4: New file.
87572
87573         Module quote.
87574         * m4/quote.m4: New file.
87575
87576         Module readutmp.
87577         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87578
87579         Module sig2str.
87580         * m4/sig2str.m4: New file.
87581
87582         Other.
87583         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87584         ulonglong.m4.
87585         * m4/intmax_t.m4: New file.
87586         * m4/d-type.m4: Indentation.
87587         * m4/jm-macros.m4: Update.
87588         * m4/prereq.m4 (jm_PREREQ): Update.
87589         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87590         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87591         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87592         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87593         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87594         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87595         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87596         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87597         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87598         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87599         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87600         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87601         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87602         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87603         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87604         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87605         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87606         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87607         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87608
87609 2002-12-24  Bruno Haible  <bruno@clisp.org>
87610
87611         * MODULES.txt: Update according to m4/ changes.
87612
87613         Module gettext.
87614         * config.rpath: New file, from gettext-0.11.5.
87615
87616         * modules/*: New module descriptions.
87617         * gnulib-tool: New file.
87618         * MODULES.html.sh: New file.
87619
87620 2002-12-21  Karl Berry  <karl@gnu.org>
87621
87622         * doc/fdl.texi: update to version 1.2.
87623
87624 2002-12-19  Karl Berry  <karl@gnu.org>
87625
87626         * config/config.guess: update from prep.
87627
87628 2002-12-18  Bruno Haible  <bruno@clisp.org>
87629
87630         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87631         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87632
87633 2002-12-17  Bruno Haible  <bruno@clisp.org>
87634
87635         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87636         stdlib.h, string.h.
87637
87638 2002-12-17  Bruno Haible  <bruno@clisp.org>
87639
87640         * lib/canon-host.c (strdup): Remove unused declaration.
87641
87642         * lib/fsusage.c: Include full_read.h.
87643         (get_fs_usage): Use full_read instead of safe_read.
87644
87645         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87646
87647 2002-12-12  Karl Berry  <karl@gnu.org>
87648
87649         * config/config.guess: update from prep.
87650
87651 2002-12-11  Bruno Haible  <bruno@clisp.org>
87652
87653         * m4/setenv.m4: New file, from gettext-0.11.5.
87654
87655 2002-12-11  Bruno Haible  <bruno@clisp.org>
87656
87657         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87658         not unsetenv().
87659         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87660         modifications:
87661
87662         2002-12-11  Bruno Haible  <bruno@clisp.org>
87663
87664                 * setenv.c (alloca): Fall back to malloc.
87665                 (freea): New macro.
87666                 (setenv): Use freea() to free memory allocated with alloca().
87667
87668         2002-11-13  Bruno Haible  <bruno@clisp.org>
87669
87670                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87671                 function declarations.
87672                 * unsetenv.c (unsetenv): Likewise.
87673
87674         2002-03-04  Bruno Haible  <bruno@clisp.org>
87675
87676                 Portability to AIX 4.3.3.
87677                 * unsetenv.c: New file, extracted from setenv.c.
87678                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87679
87680         2001-12-20  Bruno Haible  <bruno@clisp.org>
87681
87682                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87683                 use malloc instead. For SunOS 4.
87684
87685         2001-12-11  Bruno Haible  <bruno@clisp.org>
87686
87687                 * setenv.c: Declare alloca.
87688                 (compar_fn_t): New typedef.
87689                 (KNOWN_VALUE, STORE_VALUE): Use it.
87690
87691         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87692         setenv.h.
87693
87694 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87695
87696         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87697         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87698         Choose values that are less likely to collide with system fnmatch
87699         options.
87700         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87701         defined (e.g., a pure POSIX system).
87702         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87703         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87704
87705 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87706
87707         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87708         a pain in practice to deal with generated m4 files.  This change
87709         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87710
87711         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87712         and jm-glibc-io.m4, as they are no longer a special case.
87713         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87714         kludge and the auto-generation stuff.  Check only whether the
87715         functions are declared, not whether they exist, since older hosts
87716         that don't declare the functions can't use the optimization anyway.
87717
87718 2002-12-06  Jim Meyering  <jim@meyering.net>
87719
87720         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87721
87722         Merge in changes from libc's misc/error.c, in preparation
87723         for the merge of gnulib's changes back into libc.
87724
87725         * lib/error.c (_): Define only if not already defined.
87726         Move definition to follow all #include directives.
87727         Include unlocked-io.h only if !_LIBC.
87728         [_LIBC]: Include <libio/libioP.h>.
87729         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87730         (fflush): Tweak definition to use INTUSE.
87731         (putc): Define.
87732
87733 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87734
87735         * lib/alloca.c [defined emacs]: Include "lisp.h".
87736         (xalloc_die) [defined emacs]: New macro.
87737         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87738         [! defined emacs]: Include <xalloc.h>.
87739         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87740         (pointer): Typedef to POINTER_TYPE *.
87741         (malloc): Remove decl; we now always use xmalloc.
87742         (alloca): Use old-style definition, since Emacs needs this.
87743         Check for arithmetic overflow when computing combined size.
87744
87745 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87746
87747         Do not generate unlocked-io.h automatically, since it's easier to
87748         maintain it by hand.
87749
87750         * lib/unlocked-io.h: New file, from GNU diffutils,
87751         but with proper copyright notice and attribution.
87752         * lib/gen-uio: Remove.
87753         * lib/Makefile.am: Add copyright notice.
87754         (libfetish_a_SOURCES): Add unlocked-io.h.
87755         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87756         (DISTCLEANFILES, io_functions): Remove macros.
87757         (EXTRA_DIST): Remove gen_uio.
87758         (unlocked-io.h): Remove rule.
87759
87760 2002-12-04  Jim Meyering  <jim@meyering.net>
87761
87762         Reflect the fact that stat.c and lstat.c are no longer generated.
87763         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87764         (DISTCLEANFILES): Likewise.
87765         (EXTRA_DIST): Likewise.
87766         (all_local): Don't depend on stat.c or lstat.c.
87767         (stat.c, lstat.c): Remove rules.
87768         (EXTRA_DIST): Remove xstat.in.
87769
87770         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87771         * lib/stat.c: New file.  Contents mostly from xstat.in.
87772         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87773         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87774
87775         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87776         too.
87777         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87778
87779 2002-12-03  Jim Meyering  <jim@meyering.net>
87780
87781         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87782         but not semantics, to minimize the differences between these two files.
87783         (safe_read): Change comment to mention SAFE_READ_ERROR.
87784
87785         * lib/safe-read.c (IS_EINTR): Define.
87786         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87787
87788 2002-12-02  Jim Meyering  <jim@meyering.net>
87789
87790         * lib/safe-read.c (EINTR): Define.
87791         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87792         (INT_MAX): Provide fallback.
87793         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87794
87795         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87796
87797 2002-12-02  Bruno Haible  <bruno@clisp.org>
87798
87799         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87800         Define, taken from safe-read.c.
87801         (INT_MAX): Provide fallback.
87802         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87803         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87804
87805         * lib/safe-read.c (EINTR): Remove definition.
87806         (safe_read): Don't use EINTR if it is absent.
87807
87808 2002-12-01  Jim Meyering  <jim@meyering.net>
87809
87810         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87811         zero.
87812         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87813
87814 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87815
87816         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87817         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87818         with `if (! (value < limit)) abort ();', for readability.
87819
87820 2002-11-26  Karl Berry  <karl@gnu.org>
87821
87822         * lib/strdup.c: copy from libc again, with jim's ok.
87823         * lib/.cppi-disable: re-add strdup.c
87824
87825 2002-11-25  Karl Berry  <karl@gnu.org>
87826
87827         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87828         instead of "strtol.c".
87829
87830 2002-11-25  Karl Berry  <karl@gnu.org>
87831
87832         * config/install-sh: update from automake for variable quoting, $0 in
87833         error msgs, etc.
87834
87835         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87836         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87837         entry.
87838
87839 2002-11-25  Jim Meyering  <jim@meyering.net>
87840
87841         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87842
87843 2002-11-24  Karl Berry  <karl@gnu.org>
87844
87845         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87846         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87847
87848 2002-11-24  Jim Meyering  <jim@meyering.net>
87849
87850         Update from coreutils:
87851
87852         * lib/mktime.c: Merge in changes from libc.
87853
87854         Avoid a link-time failure on some Linux systems.
87855         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87856         (otherwise).
87857         (__mon_yday): Declare with the STATIC attribute.
87858         (__mktime_internal): Likewise.
87859         Based on a report from Greg Schafer.
87860
87861 2002-11-23  Jim Meyering  <jim@meyering.net>
87862
87863         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87864         Use `unsigned', not `int', as type of index.
87865
87866         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87867
87868         * lib/fsusage.c: Remove unneeded parentheses around operands of
87869         `defined'.
87870
87871 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87872
87873         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87874         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87875         so that we can be included first.
87876         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87877         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87878         No need to include stddef.h or sys/types.h any more.
87879         Surround local include files with "", not "<>".
87880         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87881         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87882         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87883         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87884         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87885         (ISPRINT): Remove; no longer needed now that we assume C89.
87886
87887         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87888         Preserve errno.
87889
87890         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87891         quotearg_char): Use SIZE_MAX rather than
87892         (size_t) -1 when we are talking about "infinity".
87893
87894         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87895
87896 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87897
87898         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87899         hint that one should use `if (! x) abort ();' rather than `assert
87900         (x);', and anyway it's one less thing to worry about configuring.
87901         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87902         hash_rehash, hash_insert): Use abort rather than assert.
87903
87904 2002-11-22  Bruno Haible  <bruno@clisp.org>
87905
87906         * lib/safe-read.h: Assume C89. Add comments.
87907         (safe_read): Change return type to size_t.
87908         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87909         byte counts > SSIZE_MAX correctly.
87910         * lib/safe-write.h: New file.
87911         * lib/safe-write.c: New file.
87912         * lib/full-read.h: New file.
87913         * lib/full-read.c: New file.
87914         * lib/full-write.h: Assume C89. Add comments.
87915         * lib/full-write.c: Include safe-write.h.
87916         (full_write): Rewritten to use safe_write.
87917         Suggested by Jim Meyering and Paul Eggert.
87918
87919 2002-11-21  Jim Meyering  <jim@meyering.net>
87920
87921         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87922
87923         Merge in changes from the coreutils.
87924
87925         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87926         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87927         <stdint.h>.
87928         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87929         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87930         int.  Work more efficiently if X is the same width as uintmax_t.
87931         Do not compare X to -1, to avoid bogus compiler warning.
87932         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87933         Don't assume that f_frsize and f_bsize are the same type.
87934
87935         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87936         warning on FreeBSD.
87937
87938         * lib/makepath.c (make_path): Restore umask *before* creating the final
87939         component.
87940         (make_path): Minor reformatting.
87941
87942         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87943         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87944         HAVE_MALLOC/HAVE_REALLOC.
87945
87946         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87947         dummy ones.  At least on GNU/Linux systems, `auto' means something
87948         else.
87949         From Michael Stone.
87950
87951 2002-11-21  Bruno Haible  <bruno@clisp.org>
87952
87953         Remove case insensitive option matching.
87954         * lib/argmatch.h (argcasematch): Remove declaration.
87955         (ARGCASEMATCH): Remove macro.
87956         (__xargmatch_internal): Remove case_sensitive argument.
87957         (XARGMATCH): Update.
87958         (XARGCASEMATCH): Remove macro.
87959         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87960         case_sensitive argument.
87961         (argcasematch): Remove function.
87962         (__xargmatch_internal): Remove case_sensitive argument.
87963         (main): Use XARGMATCH instead of XARGCASEMATCH.
87964
87965         * lib/xmalloc.c: Change compile-time error message. Add comment about
87966         required autoconf version.
87967
87968 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87969
87970         Merge argmatch cleanups from Bison.  Assume C89.
87971
87972         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87973         Include stdlib.h, for EXIT_FAILURE.
87974         Always include <string.h>, since we assume C89.
87975         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87976         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87977         Include <stddef.h> instead, since it's all we need for size_t.
87978         (PARAMS): Remove.  All uses removed.
87979         (ARRAY_CARDINALITY): Do not bother to #undef.
87980         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87981         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87982         Remove unnecessary parentheses.
87983         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87984         Insert necessary parentheses.
87985         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87986         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87987
87988 2002-11-19  Bruno Haible  <bruno@clisp.org>
87989
87990         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87991         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87992
87993         * lib/mbswidth.h (PARAMS): Remove macro.
87994         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87995         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87996
87997         * lib/gcd.h (PARAMS): Remove macro.
87998         (gcd): Use ANSI C function declarations.
87999         * lib/gcd.c (gcd): Likewise.
88000
88001 2002-11-15  Bruno Haible  <bruno@clisp.org>
88002
88003         * lib/strcspn.c: Include <stddef.h>.
88004         (strcspn): Use ANSI C function declaration. Change return type to
88005         size_t. Use NULL.
88006         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
88007         (strpbrk): Use NULL.
88008         * lib/strpbrk.h (PARAMS): Remove macro.
88009         (strpbrk): Use ANSI C function declaration.
88010         * lib/strstr.c: Don't include <sys/types.h>.
88011         * lib/strstr.h (PARAMS): Remove macro.
88012         (strstr): Use ANSI C function declarations.
88013
88014 2002-11-14  Karl Berry  <karl@gnu.org>
88015
88016         * config/mkinstalldirs: `do' on separate line, instead of
88017         `for var; do'.
88018
88019 2002-11-06  Bruno Haible  <bruno@clisp.org>
88020
88021         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
88022         * lib/gcd.c (gcd): Likewise.
88023
88024 2002-11-05  Bruno Haible  <bruno@clisp.org>
88025
88026         * lib/gcd.h: New file, from gettext-0.11.5.
88027         * lib/gcd.c: New file, from gettext-0.11.5.
88028
88029 2002-11-05  Bruno Haible  <bruno@clisp.org>
88030
88031         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88032         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88033         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88034         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
88035
88036         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
88037         <libintl.h>.
88038         * lib/makepath.c: Include gettext.h instead of <locale.h> and
88039         <libintl.h>.
88040
88041         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
88042         * lib/human.c: Include gettext.h instead of <libintl.h>.
88043         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
88044         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
88045         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
88046         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
88047         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
88048         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
88049         (textdomain): Remove definition.
88050         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
88051
88052         * lib/long-options.c: Remove include of <libintl.h> and definition of
88053         _.
88054         * lib/same.c: Remove include of <libintl.h> and definition of _.
88055
88056 2002-11-04  Owen Taylor  <otaylor@redhat.com>
88057
88058         * lib/config.charset: A few additions for Solaris.
88059
88060 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88061
88062         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
88063         * lib/localcharset.c (locale_charset): Declare as extern "C".
88064
88065 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
88066
88067         * lib/config.charset: msdos in uk_UA uses CP1125.
88068
88069 2002-11-04  Bruno Haible  <bruno@clisp.org>
88070
88071         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
88072         * lib/strcase.h: New file, from GNU gettext-0.11.5.
88073         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
88074         * lib/strstr.h: New file, from GNU gettext-0.11.5.
88075         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
88076
88077 2002-11-04  Bruno Haible  <bruno@clisp.org>
88078
88079         * lib/localcharset.c (locale_charset): Don't return an empty string.
88080
88081 2002-11-04  Bruno Haible  <bruno@clisp.org>
88082
88083         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
88084         aliases.
88085
88086 2002-11-04  Bruno Haible  <bruno@clisp.org>
88087
88088         * lib/config.charset: Update for newest glibc. Add canonical names
88089         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
88090
88091 2002-11-04  Bruno Haible  <bruno@clisp.org>
88092
88093         * lib/config.charset: Add support for NetBSD.
88094
88095 2002-11-04  Bruno Haible  <bruno@clisp.org>
88096
88097         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
88098
88099 2002-11-01  Bruno Haible  <bruno@clisp.org>
88100
88101         * configure.in: Add AC_CONFIG_AUX_DIR call.
88102         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
88103         test/Makefile.
88104         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
88105
88106 2002-09-28  Karl Berry  <karl@gnu.org>
88107
88108         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
88109         installed automake until the next release, since changes have been
88110         made.
88111
88112 2002-09-25  Karl Berry  <karl@gnu.org>
88113
88114         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
88115         * lib/getopt*: copy from libc/posix.
88116         * lib/gettext.h: copy from gettext.
88117         * lib/.cppi-disable: add strdup.c, gettext.h.
88118
88119 2002-09-25  Karl Berry  <karl@gnu.org>
88120
88121         * config/srclist.txt: enable gettext.h check.
88122         * config/config.{guess,sub}: update from prep.
88123         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
88124                 from automake 1.6.3.
88125         See srclist*.
88126
88127 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
88128
88129         * regex.c (PATFETCH): Remove the translating fetch.
88130         (PATFETCH_RAW): Rename to PATFETCH.
88131         (set_image_of_range): New fun.
88132         (SET_RANGE_TABLE_WORK_AREA): Use it.
88133         (regex_compile): Don't translate the pattern chars so eagerly.
88134         Only do it when inserting an `exactn' bytecode or when handling
88135         a char-range.
88136         (mutually_exclusive_p): Avoid empty statement.
88137
88138 2002-07-06  Jim Meyering  <meyering@lucent.com>
88139
88140         * m4/README: Don't mention Makefile.am.in.
88141         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
88142
88143 2002-07-01  Jim Meyering  <meyering@lucent.com>
88144
88145         * lib/c-stack.c: Include sys/time.h.
88146         From Volker Borchert.
88147
88148 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88149
88150         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
88151
88152 2002-06-26  Paul Eggert  <eggert@twinsun.com>
88153
88154         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
88155         New macro.  Use it uniformly instead of
88156         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
88157         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
88158         reported by Vin Shelton.
88159
88160 2002-06-22  Paul Eggert  <eggert@twinsun.com>
88161
88162         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88163         Do not assume SA_SIGINFO behavior.
88164         Bug reported by Jim Meyering on NetBSD 1.5.2.
88165
88166 2002-06-22  Jim Meyering  <meyering@lucent.com>
88167
88168         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88169         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88170
88171         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88172         now that configure.ac uses AC_GNU_SOURCE.
88173         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88174         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88175
88176         Update to latest tools.  Suggestions from Paul Eggert.
88177         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88178         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88179         * m4/fnmatch.m4: Likewise.
88180         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88181         to AC_HEADER_STDBOOL
88182
88183 2002-06-22  Jim Meyering  <meyering@lucent.com>
88184
88185         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88186         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88187
88188 2002-06-22  Jim Meyering  <meyering@lucent.com>
88189
88190         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88191
88192         * lib/exitfail.c, exitfail.h: Likewise.
88193         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88194
88195         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88196         of fnmatch.h.
88197         (EXTRA_DIST): Add fnmatch_loop.c.
88198         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88199
88200         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88201         * lib/fnmatch.c: Update from diffutils-2.8.2.
88202         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88203         * lib/fnmatch.h: Remove file.
88204
88205 2002-06-21  Jim Meyering  <meyering@lucent.com>
88206
88207         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88208         * m4/mbrtowc.m4: Likewise.
88209
88210         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88211         * m4/mbswidth.m4: Reflect name change:
88212         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88213         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88214
88215         * m4/lib-link.m4: Update from gettext-0.11.2.
88216         * m4/gettext.m4: Likewise.
88217
88218         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88219         From Alfred M. Szmidt.
88220
88221 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88222
88223         * lib/file-type.h: Report an error if neither S_ISREG nor
88224         S_IFREG is defined, instead of using a test specific to glibc
88225         2.2.  This should be safe, since POSIX requires S_ISREG and
88226         Unix Version 7 had S_IFREG.  We don't need to check for
88227         <sys/types.h> since we don't use any symbols that it defines.
88228
88229 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88230
88231         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88232         $@-t, so that each temporary file name is unique and valid in the first
88233         8 characters, for operation under DOS.
88234
88235 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88236
88237         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88238
88239 2002-06-15  Jim Meyering  <meyering@lucent.com>
88240
88241         Work even with DJGPP 2.03, which lacks support for symlinks.
88242         From Richard Dawe.
88243         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88244         is defined.
88245         * lib/lchown.c (S_ISLNK): Likewise.
88246
88247 2002-06-15  Jim Meyering  <meyering@lucent.com>
88248
88249         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88250         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88251         have been included before this file.
88252
88253 2002-06-14  Jim Meyering  <meyering@lucent.com>
88254
88255         * lib/file-type.h: Use the version from diffutils-2.8.2.
88256         * lib/file-type.c: Likewise.
88257
88258 2002-06-07  Jim Meyering  <meyering@lucent.com>
88259
88260         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88261         They're needed at least for NetBSD 1.5.2.
88262         ($statxfs_includes): Include those same headers.
88263         ($statxfs_includes): Include sys/vfs.h if available.
88264         ($statxfs_includes): Likewise for sys/statvfs.h.
88265         Check for the following members in both structs statfs and statvfs:
88266         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88267
88268 2002-06-01  Jim Meyering  <meyering@lucent.com>
88269
88270         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88271         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88272
88273 2002-05-28  Jim Meyering  <meyering@lucent.com>
88274
88275         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88276         Reported by Volker Borchert.
88277
88278 2002-05-27  Jim Meyering  <meyering@lucent.com>
88279
88280         Fix a problem seen only on nonconforming systems whereby ls.c's
88281         use of localtime, and then of gettimeofday would cause trouble:
88282         the localtime call used to initialize rpl_gettimeofday's save
88283         mechanism would clobber ls's current local time information so
88284         that in any long listing the first file would always be listed
88285         with date 1970-01-01.  Analysis by Volker Borchert.
88286
88287         * lib/gettimeofday.c (localtime): Undefine.
88288         (rpl_localtime): New function.
88289
88290 2002-05-27  Jim Meyering  <meyering@lucent.com>
88291
88292         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88293         localtime.
88294
88295         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88296         use the replacement function; it wouldn't resolve at link time.
88297         Reported by Volker Borchert.
88298
88299 2002-05-22  Jim Meyering  <meyering@lucent.com>
88300
88301         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88302         file-type.h.
88303         * lib/file-type.h: New file.
88304         * lib/file-type.c (file_type): New file/function.  Extracted from
88305         diffutils.
88306
88307 2002-04-30  Jim Meyering  <meyering@lucent.com>
88308
88309         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88310
88311 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88312
88313         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88314
88315 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88316
88317         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88318         Do not check for alloca.h (no longer used) or stdbool.h (was never
88319         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88320
88321 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88322
88323         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88324
88325 2002-04-29  Jim Meyering  <meyering@lucent.com>
88326
88327         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88328         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88329         Use AC_FUNC_STRNLEN here instead.
88330
88331         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88332         With autoconf-2.53a, it's part of AC_PROG_CC.
88333
88334 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88335
88336         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88337         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88338
88339 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88340
88341         * lib/sig2str.h, lib/sig2str.c: New files.
88342         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88343
88344 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88345
88346         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88347         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88348         of 127, since 64 is the largest conceivable number for ancient
88349         nonstandard hosts.
88350         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88351
88352 2002-04-28  Jim Meyering  <meyering@lucent.com>
88353
88354         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88355
88356 2002-04-24  Jim Meyering  <meyering@lucent.com>
88357
88358         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88359         (jm_PREREQ): Use it.
88360
88361         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88362         mach/mach.h fcntl.h.
88363         Check for this function: setlocale.
88364
88365 2002-04-24  Jim Meyering  <meyering@lucent.com>
88366
88367         * lib/gettext.h: New file, from Gettext.
88368         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88369         (libfetish_a_SOURCES): Add gettext.h.
88370
88371 2002-04-16  Jim Meyering  <meyering@lucent.com>
88372
88373         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88374         ut_pid, ut_id, ut_exit.
88375
88376 2002-04-16  Jim Meyering  <meyering@lucent.com>
88377
88378         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88379         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88380         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88381
88382 2002-04-12  Jim Meyering  <meyering@lucent.com>
88383
88384         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88385         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88386         existence of the getmntinfo function.  Needed for Darwin 5.3.
88387
88388         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88389         This is necessary at least on Darwin 5.3.
88390
88391         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88392         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88393         strnlen.o in the library, and that makes some versions of ranlib
88394         object.
88395
88396 2002-04-12  Jim Meyering  <meyering@lucent.com>
88397
88398         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88399
88400 2002-04-09  Jim Meyering  <meyering@lucent.com>
88401
88402         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88403         to be more precise.  Rather than saying we're checking whether the
88404         function `works', say what we're testing.
88405         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88406         Reported by Bruno Haible.
88407
88408 2002-03-10  Jim Meyering  <meyering@lucent.com>
88409
88410         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88411         Suggestion from Santiago Vila.
88412
88413 2002-03-08  Jim Meyering  <meyering@lucent.com>
88414
88415         * lib/rename.c: Mention that this wrapper is needed also on
88416         mips-dec-ultrix4.4 systems.
88417
88418 2002-03-02  Jim Meyering  <meyering@lucent.com>
88419
88420         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88421         not HAVE_CLOCK_SETTIME.
88422
88423 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88424
88425         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88426         Check for clock_settime.
88427
88428 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88429
88430         * lib/nanosleep.h: Rename to....
88431         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88432
88433         * lib/gettime.c: New file.
88434         * lib/settime.c: New file.
88435         * lib/stime.c: Remove.
88436
88437         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88438         timespec.h.  Remove nanosleep.h.
88439
88440 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88441
88442         * m4/acl.m4: New file.
88443         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88444         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88445
88446 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88447
88448         * lib/acl.c, lib/acl.h: New files.
88449         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88450
88451 2002-02-24  Jim Meyering  <meyering@lucent.com>
88452
88453         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88454         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88455         cause trouble.  Reported by Nelson Beebe.
88456
88457 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88458
88459         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88460         compilers that don't know that xalloc_die never returns.
88461
88462 2002-02-20  Jim Meyering  <meyering@lucent.com>
88463
88464         * lib/getdate.c: Regenerate using bison-1.33.
88465
88466 2002-02-17  Jim Meyering  <meyering@lucent.com>
88467
88468         * config/config.guess (main): Don't use `head -1'; it's no longer
88469         portable. Use `sed 1q' instead.
88470
88471 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88472
88473         * m4/codeset.m4: Upgrade to gettext-0.11.
88474         * m4/gettext.m4: Upgrade to gettext-0.11.
88475         * m4/glibc21.m4: Upgrade to gettext-0.11.
88476         * m4/iconv.m4: Upgrade to gettext-0.11.
88477         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88478         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88479         * m4/lib-ld.m4: New file, from gettext-0.11.
88480         * m4/lib-link.m4: New file, from gettext-0.11.
88481         * m4/lib-prefix.m4: New file, from gettext-0.11.
88482         * m4/progtest.m4: Upgrade to gettext-0.11.
88483
88484 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88485
88486         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88487         (jm_PREREQ): Use it.
88488
88489 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88490
88491         * lib/posixver.c, lib/posixver.h: New files.
88492         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88493
88494 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88495             Bruno Haible  <bruno@clisp.org>
88496
88497         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88498         (fwrite_success_callback): New declaration.
88499         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88500         print_unicode_char. Call failure callback instead of error.
88501         (fwrite_success_callback): New function.
88502         (exit_failure_callback): New function.
88503         (fallback_failure_callback): New function.
88504         (print_unicode_char): Call unicode_to_mb.
88505
88506 2002-01-26  Jim Meyering  <meyering@lucent.com>
88507
88508         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88509         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88510
88511 2002-01-26  Jim Meyering  <meyering@lucent.com>
88512
88513         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88514
88515 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88516
88517         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88518
88519 2002-01-22  Jim Meyering  <meyering@lucent.com>
88520
88521         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88522         Otherwise, some versions of automake would omit the rule that makes
88523         Makefile from Makefile.in.
88524
88525 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88526
88527         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88528         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88529         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88530         (memcoll): Set errno to zero if there is no error.
88531
88532         * lib/quotearg.c (quotearg_buffer_restyled):
88533         Fix bug with quoting buffers containing NUL when backslashing escapes.
88534         This bug was exposed by the other changes in this patch.
88535         (quotearg_n_options): New arg ARGSIZE.
88536         All callers changed.
88537         (quoting_options_from_style): New function.
88538         (quotearg_n_style): Use it.
88539         (quotearg_n_style_mem): New function.
88540
88541         * lib/quotearg.h (quotearg_n_style_mem): New function.
88542
88543 2002-01-19  Jim Meyering  <meyering@lucent.com>
88544
88545         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88546         Remove useless quotes: DF_PROG="df".
88547         * m4/strnlen.m4: New file.
88548
88549 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88550
88551         * lib/backupfile.c (ISDIGIT): Comment fix.
88552         * lib/getdate.y (ISDIGIT): Likewise.
88553         * lib/posixtm.c (ISDIGIT, year): Likewise.
88554         * lib/strverscmp.c (ISDIGIT): Likewise.
88555         * lib/userspec.c (ISDIGIT): Likewise.
88556
88557 2002-01-16  Jim Meyering  <meyering@lucent.com>
88558
88559         * lib/getdate.y: Add three semicolons, each just before a closing
88560         brace. Bison (as of version 1.31) no longer papers over that mistake.
88561
88562 2002-01-05  Jim Meyering  <meyering@lucent.com>
88563
88564         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88565
88566 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88567
88568         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88569         not silently exit merely because the output buffer happens to
88570         have nothing pending.
88571
88572 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88573
88574         See the big note in ../ChangeLog.
88575         * lib/human.c (suffixes): Prefer K to k for 1024.
88576         (generate_suffix_backwards): New function.
88577         (human_readable_inexact): Use it.
88578         * lib/xstrtol.c (__xstrtol): If there is no number but there
88579         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88580         Accept 'K' as well as 'k'.
88581
88582 2001-12-15  Jim Meyering  <meyering@lucent.com>
88583
88584         * lib/regex.h (__restrict_arr): Update from libc.
88585
88586         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88587         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88588         (STREQ): Define.
88589
88590 2001-12-14  Jim Meyering  <meyering@lucent.com>
88591
88592         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88593         Suggestion from Bruno Haible.
88594
88595 2001-12-10  Jim Meyering  <meyering@lucent.com>
88596
88597         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88598         xrealloc, Instead, include "xalloc.h".
88599         (initbuffer): Don't cast xmalloc return value to char*.
88600         (readline): Reword comment.
88601         Don't cast xrealloc return value to char*
88602         Return NULL, not 0.
88603
88604 2001-12-09  Jim Meyering  <meyering@lucent.com>
88605
88606         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88607         about `signed and unsigned type in conditional expression'.
88608         * lib/posixtm.c (posix_time_parse): Likewise.
88609
88610         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88611
88612         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88613         to avoid a pedantic warning.
88614
88615         * lib/getstr.c: Don't include assert.h.
88616         (getstr): Remove warning-evoking assertions.
88617         Return -1 if offset parameter is out of bounds.
88618         Change the type of a local from int to size_t.
88619
88620         * lib/strftime.c (my_strftime_localtime_r): Include this function
88621         definition in the `#if ! HAVE_TM_GMTOFF' block.
88622
88623         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88624         Include xalloc.h instead.
88625
88626 2001-12-02  Jim Meyering  <meyering@lucent.com>
88627
88628         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88629         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88630         included.
88631
88632         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88633         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88634
88635 2001-11-30  Akim Demaille  <akim@epita.fr>
88636
88637         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88638         before being defined.
88639
88640 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88641
88642         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88643         First arg is int, not unsigned.
88644         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88645         (SIZE_MAX, UINT_MAX): New macros.
88646         (quotearg_n_options): Abort if N is negative.
88647         Avoid overflow check on hosts where size_t is 64 bits and int
88648         is 32 bits, as overflow is impossible there.
88649         Fix off-by-one typo that caused unnecessary reallocation.
88650
88651 2001-11-27  Jim Meyering  <meyering@lucent.com>
88652
88653         * lib/tempname.c: Merge with version from libc.
88654         * lib/regex.c: Likewise.
88655
88656         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88657         systems for which STDC_HEADERS is 0, it was not included, resulting in
88658         a warning about an integer-to-pointer conversion problem with getenv.
88659         Reported by Volker Borchert.
88660
88661 2001-11-26  Jim Meyering  <meyering@lucent.com>
88662
88663         * lib/gtod.h: Remove file.
88664         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88665         * lib/gettimeofday.c: Don't include gtod.h.
88666         (GTOD_init): Remove function.
88667         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88668         Suggestion from Volker Borchert.
88669
88670 2001-11-23  Jim Meyering  <meyering@lucent.com>
88671
88672         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88673         it.
88674         * lib/hash.c (struct hash_table): Define it here instead.
88675
88676 2001-11-22  Jim Meyering  <meyering@lucent.com>
88677
88678         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88679
88680 2001-11-20  Jim Meyering  <meyering@lucent.com>
88681
88682         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88683         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88684
88685 2001-11-19  Jim Meyering  <meyering@lucent.com>
88686
88687         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88688         directory.  Use "conftestXXXXXX" as the template.
88689         Suggestion from Paul Eggert.
88690
88691         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88692         immediately, so the test doesn't mistakenly hit the max-open-files
88693         limit.
88694
88695 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88696
88697         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88698         (TEMPORARIES): New macro.
88699         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88700         removes an artificial limitation (e.g. HP-UX 10.20, where
88701         TMP_MAX is 17576).
88702
88703 2001-11-18  Jim Meyering  <meyering@lucent.com>
88704
88705         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88706
88707 2001-11-18  Jim Meyering  <meyering@lucent.com>
88708
88709         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88710         on SunOS 4.
88711
88712         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88713         files will be created before anything else.
88714
88715 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88716
88717         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88718         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88719
88720 2001-11-17  Jim Meyering  <meyering@lucent.com>
88721
88722         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88723         Prompted by a report from Bob Proulx.
88724
88725         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88726         Instead, require UTILS_FUNC_MKSTEMP.
88727
88728 2001-11-17  Jim Meyering  <meyering@lucent.com>
88729
88730         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88731         Now, that's done as part of AC_FUNC_STRTOD.
88732
88733 2001-11-17  Jim Meyering  <meyering@lucent.com>
88734
88735         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88736         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88737         rather than group writable.  Patch by Juan F. Codagnone.
88738
88739         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88740         xrealloc, Instead, include "xalloc.h".
88741
88742         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88743         Remove explicit declarations of xmalloc, xrealloc,
88744         and xstrdup.  Instead, include "xalloc.h".
88745
88746         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88747         unlocked-io.h.
88748         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88749         Likewise.
88750         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88751
88752         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88753         Reported by Padraig Brady.
88754
88755         * lib/mkstemp.c: #undef mkstemp.
88756         Include config.h.
88757         (rpl_mkstemp): Rename from mkstemp.
88758         Protoize.
88759
88760 2001-11-16  Jim Meyering  <meyering@lucent.com>
88761
88762         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88763         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88764         determine the amount of total physical memory, use pstat_getstatic.
88765         HPUX-11 doesn't define _SC_PHYS_PAGES.
88766         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88767         If sysconf couldn't be used to determine the amount of available
88768         physical memory, use both pstat_getstatic and pstat_getdynamic.
88769         Based on a patch from Bob Proulx.
88770
88771 2001-11-10  Jim Meyering  <meyering@lucent.com>
88772
88773         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88774         (jm_PREREQ): Use it.
88775
88776 2001-11-09  Jim Meyering  <meyering@lucent.com>
88777
88778         * m4/jm-macros.m4: Require autoconf-2.52f.
88779         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88780         Use these AC_-prefixed names, not the AM_-prefixed ones.
88781
88782         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88783
88784 2001-11-05  Jim Meyering  <meyering@lucent.com>
88785
88786         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88787
88788 2001-11-04  Jim Meyering  <meyering@lucent.com>
88789
88790         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88791         $DEFS.
88792
88793 2001-11-03  Jim Meyering  <meyering@lucent.com>
88794
88795         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88796         of AC_DEFUN.
88797
88798         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88799         know the name of the variable in the macro definition.
88800
88801 2001-11-03  Jim Meyering  <meyering@lucent.com>
88802
88803         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88804         in argmatch_to_argument call.
88805
88806         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88807         argument.
88808
88809         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88810         e.g., a fault due to an attempt to free a NULL pointer.
88811
88812 2001-11-01  Jim Meyering  <meyering@lucent.com>
88813
88814         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88815         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88816
88817 2001-11-01  Jim Meyering  <meyering@lucent.com>
88818
88819         * lib/dirfd.c, lib/dirfd.h: New files.
88820         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88821
88822         * lib/hash.c (hash_print) [TESTING]: Clean up.
88823
88824 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88825
88826         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88827         to avoid a warning if -Wall.
88828
88829 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88830
88831         * README: New file
88832         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88833         (per RMS's instructions, this is now the canonical source)
88834         * lgpl/, gpl/: New directories.
88835
88836 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88837
88838         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88839
88840 2001-10-21  Jim Meyering  <meyering@lucent.com>
88841
88842         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88843         this code would end up calling gettext even in packages built
88844         with --disable-nls.
88845         * lib/getopt.c (_): Likewise.
88846         * lib/regex.c (_): Likewise.
88847
88848 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88849
88850         * m4/error.m4 (jm_PREREQ_ERROR):
88851         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88852         AC_FUNC_STRERROR_R does that.
88853         Check for strerror declaration.
88854
88855         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88856         are supposed to have them these days.
88857         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88858         Merge changes from latest Autoconf CVS.
88859         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88860         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88861         POSIX decided to standardize on the int flavor of strerror_r.
88862
88863 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88864
88865         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88866         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88867         Use strerror_r that is only a macro, even if it is not a function.
88868         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88869         (private_strerror): Use prototypes, not old-style function definition.
88870         (print_errno_message): New function.
88871         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88872         char*-flavored one.
88873         (error_tail, error, error_at_line): Use it.
88874
88875 2001-10-11  Jim Meyering  <meyering@lucent.com>
88876
88877         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88878         and quote_n (1, ... to avoid clobbering a buffer.
88879
88880 2001-10-05  Jim Meyering  <meyering@lucent.com>
88881
88882         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88883         hash-pjw.h.
88884         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88885         * lib/hash-pjw.h: New file.
88886
88887 2001-09-30  Jim Meyering  <meyering@lucent.com>
88888
88889         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88890         `struct fsstat' has the `f_fstypename' member.
88891         Use that to define FS_TYPE, which is now used to make
88892         the getfsstat link test tighter.
88893
88894 2001-09-30  Jim Meyering  <meyering@lucent.com>
88895
88896         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88897         Include <sys/ucred.h>, for Apple Darwin.
88898         Include sys/mount.h and sys/fs_types.h only if available.
88899         (FS_TYPE): Define.
88900         (read_filesystem_list): Use FS_TYPE.
88901
88902 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88903
88904         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88905         a boolean context.
88906
88907 2001-09-29  Jim Meyering  <meyering@lucent.com>
88908
88909         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88910         [one-argument getmntent function]): Include stdio.h before mntent.h.
88911         SunOS 4.1.x needs it for the declaration of `FILE'.
88912         Patch by Volker Borchert.
88913
88914         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88915         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88916         sys/fs_types.h, and make the link-test for getfsstat guard #include
88917         directives with appropriate #if HAVE_*_H tests so that we can
88918         detect getfsstat on Apple Darwin1.3.7 systems.
88919         Reported by Nelson Beebe.
88920         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88921
88922 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88923
88924         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88925         #defines strtoimax.  Also treat the other strto* functions
88926         like strtoimax.
88927
88928         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88929         Check for strtoul and strtoumax,
88930         as those declarations are made even in the signed case.
88931         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88932         Likewise, for strtol and strtoimax.
88933
88934 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88935
88936         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88937         #defines strtoimax.  Also treat the other strto* functions
88938         like strtoimax.
88939
88940         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88941         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88942         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88943
88944 2001-09-26  Jim Meyering  <meyering@lucent.com>
88945
88946         Most macros in unlocked-io.h had the wrong number of arguments.
88947         * lib/gen-uio: New script.
88948         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88949         * lib/unlocked-io.hin: Remove file.
88950         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88951         rather than trying to embed it here.
88952         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88953         Reported by Padraig Brady.
88954
88955 2001-09-25  Volker Borchert  <bt@teknon.de>
88956
88957         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88958         `result'.
88959
88960 2001-09-24  Jim Meyering  <meyering@lucent.com>
88961
88962         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88963
88964 2001-09-23  Jim Meyering  <meyering@lucent.com>
88965
88966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88967         instead of the mere test for existence of mntent.h.  The latter
88968         would get a false-positive on AIX 3.4 systems.
88969         In the outer getmntent if-block, don't die if neither of the getmntent
88970         tests succeeds.  Instead, just fall through and continue with the
88971         remaining tests.
88972
88973 2001-09-23  Jim Meyering  <meyering@lucent.com>
88974
88975         * lib/mountlist.c: Remove useless parentheses in #if directives.
88976         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88977         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88978
88979 2001-09-22  Jim Meyering  <meyering@lucent.com>
88980
88981         * m4/gettext.m4: New file.  From gettext.
88982         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88983         * m4/progtest.m4: Likewise
88984         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88985         * m4/glibc21.m4: Likewise.
88986
88987         * m4/libintl.m4: Remove.  No longer used.
88988
88989 2001-09-22  Jim Meyering  <meyering@lucent.com>
88990
88991         * lib/localcharset.c: Update from latest gettext.
88992         * lib/config.charset: Likewise.
88993
88994 2001-09-20  Jim Meyering  <meyering@lucent.com>
88995
88996         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88997         strtoimax.
88998         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88999         strtoumax.
89000
89001 2001-09-20  Jim Meyering  <meyering@lucent.com>
89002
89003         * lib/xstrtol.c (strtoimax): Guard declaration with
89004         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
89005         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
89006         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
89007         (strtoumax): Likewise, for completeness (it wasn't necessary).
89008
89009 2001-09-17  Paul Eggert  <eggert@twinsun.com>
89010
89011         * lib/strtoimax.c (HAVE_LONG_LONG):
89012         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
89013         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
89014         to work around bug in IBM C compiler.
89015
89016 2001-09-17  Jim Meyering  <meyering@lucent.com>
89017
89018         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
89019         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
89020         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
89021         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
89022         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
89023         whenever the right hand side need not be expanded by the shell.
89024
89025 2001-09-16  Paul Eggert  <eggert@twinsun.com>
89026
89027         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
89028         library.  It's not correct, as some older glibcs are buggy.
89029         fnmatch wasn't fixed until glibc 2.2.
89030
89031         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
89032         special shell magic here.
89033
89034 2001-09-16  Jim Meyering  <meyering@lucent.com>
89035
89036         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
89037         * m4/jm-macros.m4: Require it.
89038
89039 2001-09-16  Jim Meyering  <meyering@lucent.com>
89040
89041         * lib/mkdir.c: New file.
89042
89043 2001-09-15  Jim Meyering  <meyering@lucent.com>
89044
89045         * m4/jm-macros.m4: Check for help2man.
89046
89047 2001-09-11  Jim Meyering  <meyering@lucent.com>
89048
89049         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
89050         The body, by Paul Eggert, was moved here from configure.in.
89051         * m4/jm-macros.m4: Require UTILS_HOST_OS.
89052
89053 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89054
89055         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
89056         (jm_PREREQ): Use it.
89057
89058 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89059
89060         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
89061         Use ssize_t, not int, to store result of readlink.
89062         Check for ssize_t overflow as well as size_t overflow,
89063         as POSIX says the result of readlink is implementation-defined
89064         when ssize_t overflows.
89065         Remove unnecessary cast to char*.
89066         Use free+malloc instead of realloc, as the storage doesn't need
89067         to be preserved and it's clearer and can be more efficient that way.
89068         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
89069         * lib/xreadlink.h (xreadlink): Update prototype.
89070
89071 2001-09-04  Paul Eggert  <eggert@twinsun.com>
89072
89073         * lib/xgetcwd.c: Revert some of the previous change; intead,
89074         fix the HAVE_GETCWD_NULL code to behave more like the
89075         !HAVE_GETCWD_NULL code used to.
89076
89077         Include "xalloc.h".
89078         (xgetcwd): Do not return NULL when memory is exhausted; instead,
89079         invoke xalloc_die.
89080
89081 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89082
89083         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
89084         sys/param.h, as pathmax.h includes them.
89085
89086 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89087
89088         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
89089         (jm_PREREQ_XGETCWD): New macro.
89090
89091         * m4/getcwd.m4: New file.
89092
89093 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89094
89095         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
89096         like the HAVE_GETCWD_NULL code.
89097         Include pathmax.h if not HAVE_GETCWD.
89098         Do not include xalloc.h.
89099         (INITIAL_BUFFER_SIZE): New symbol.
89100         Do not use xmalloc / xrealloc, since the caller is responsible for
89101         handling errors.  Preserve errno around `free' during failure.
89102         Do not overrun buffer when using getwd.
89103
89104 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89105
89106         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
89107         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
89108         getcwd (NULL, 0).
89109
89110 2001-09-03  Paul Eggert  <eggert@twinsun.com>
89111
89112         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
89113         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
89114         spotted by Jim Meyering.
89115
89116 2001-09-03  Jim Meyering  <meyering@lucent.com>
89117
89118         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
89119         failure.
89120
89121 2001-09-02  Jim Meyering  <meyering@lucent.com>
89122
89123         * lib/error.c: Update from GNU libc.
89124
89125 2001-09-01  Jim Meyering  <meyering@lucent.com>
89126
89127         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
89128         Used by df.
89129
89130 2001-09-01  Jim Meyering  <meyering@lucent.com>
89131
89132         * lib/xreadlink.c: New file.
89133         * lib/xreadlink.h: New file.
89134         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
89135         xreadlink.h.
89136
89137         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
89138         doesn't conflict with sparc Solaris 7's definition in
89139         /usr/include/sys/int_types.h.
89140
89141         * lib/exclude.c: Use `""', not `<>' to #include non-system header
89142         files.
89143         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
89144         and strncasecmp as r-values.  Unixware didn't have declarations.
89145
89146 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89147
89148         * lib/xstrtol.h: Add copyright notice.
89149         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
89150         LONGINT_INVALID_SUFFIX_CHAR.
89151
89152 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89153
89154         * lib/xstrtol.c (strtoimax): New decl.
89155
89156 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89157
89158         * lib/xgetcwd.c: Don't include pathmax.h.
89159         Include stdlib.h and unistd.h if available.
89160         Include xalloc.h.
89161         (xmalloc, xstrdup, free): Remove decls.
89162         (xgetcwd): Don't assume sizes fit in unsigned.
89163         Check for overflow when computing sizes.
89164         Simplify reallocation code.
89165
89166 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89167
89168         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89169         a directory's st_size can have an arbitrary value, so the old
89170         usage could waste an arbitrary amount of memory.  All uses
89171         changed.
89172         * lib/savedir.h: Update prototype.
89173
89174 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89175
89176         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89177
89178         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89179         old strtoimax.c.
89180
89181         Also, make the following further changes to make this file's
89182         configuration more similar to that of strtol.c:
89183         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89184         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89185         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89186         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89187         changed to signed values.
89188
89189         And make the following changes as well:
89190         Fix copyright notice, as 1999 was missing.
89191         (verify): New macro.
89192         (strtoimax): Check sizes at compile-time, not run-time.
89193         Prefer strtol to strtoll if both work.
89194         (main): Remove; it was not that useful and was a pain to maintain.
89195
89196         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89197
89198 2001-08-31  Jim Meyering  <meyering@lucent.com>
89199
89200         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89201         Use an initial, malloc'd, buffer of length 128 rather than
89202         a statically allocated one of length 1024.
89203
89204 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89205
89206         Simplify code, partly by assuming autoconf 2.52 semantics.
89207
89208         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89209
89210         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89211         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89212         All uses removed.
89213         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89214         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89215         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89216         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89217         jm_AC_HEADER_INTTYPES_H.
89218         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89219
89220         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89221
89222         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89223         Quote first arg of AC_DEFUN.
89224         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89225         since they are needed to parse the include file even if we need
89226         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89228         but with opposite signedness.
89229
89230 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89231
89232         Merge 'exclude' changes from tar 1.13.22.
89233         This fixes one or two unlikely storage allocation overflow bugs,
89234         but doesn't change user-visible behavior otherwise.
89235
89236 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89237
89238         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89239         (jm_PREREQ_EXCLUDE): New macro.
89240
89241 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89242
89243         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89244         tm to be declared.
89245
89246 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89247
89248         * lib/hash.c: Remove '2001' from copyright notice.
89249
89250 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89251
89252         * lib/full-write.h: New file.
89253         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89254         * lib/full-write.c: Correct credits, as cccp.c no longer
89255         exists and anyway it was so heavily changed from the old cccp
89256         code as to be unrecognizable.  Include full-write.h.
89257         (full_write): Return size_t, with short writes meaning failure.
89258         All callers changed.  This fixes a bug with large buffers
89259         on 64-bit hosts.
89260         * lib/utime.c: Include full-write.h.
89261
89262 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89263
89264         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89265         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89266         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89267         Include if available.
89268         (<xalloc.h>): Include
89269         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89270         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89271         collide with FNM macros.
89272         (struct patopts): New struct.
89273         (struct exclude): Use it, as exclude patterns now come with options.
89274         (new_exclude): Support above changes.
89275         (new_exclude, add_exclude_file):
89276         Initial size must now be a power of two to simplify overflow checking.
89277         (free_exclude, fnmatch_no_wildcards): New function.
89278         (excluded_filename): No longer requires options arg, as the options
89279         are determined by add_exclude.  Now returns bool, not int.
89280         (excluded_filename, add_exclude):
89281         Add support for the fancy new exclusion options.
89282         (add_exclude, add_exclude_file): Now takes int options arg.
89283         Check for arithmetic overflow when computing sizes.
89284         (add_exclude_file): xrealloc might modify errno, so don't
89285         realloc until after errno might be used.
89286
89287         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89288         New macros.
89289         (free_exclude): New decl.
89290         (add_exclude, add_exclude_file): Now takes int options arg.
89291         (excluded_filename): No longer requires options arg, as the options
89292         are determined by add_exclude.  Now returns bool, not int.
89293
89294 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89295
89296         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89297
89298 2001-08-27  Jim Meyering  <meyering@lucent.com>
89299
89300         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89301
89302         * lib/version-etc.c (N_): Remove definition.
89303         Revert most of last change.
89304         Instead, simply don't mark the `Copyright...' string for translation.
89305         Based on advice from Paul Eggert.
89306
89307         * lib/strtoxmax.c: Tweak comment.
89308
89309 2001-08-26  Jim Meyering  <meyering@lucent.com>
89310
89311         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89312
89313         * m4/xstrtoimax.m4: New file.
89314         * m4/xstrtoumax.m4: Add comments explaining why we
89315         AC_REPLACE_FUNCS(strtol).
89316
89317 2001-08-26  Jim Meyering  <meyering@lucent.com>
89318
89319         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89320         of copyright with `%s' so translators don't get an untranslated
89321         message in 2002.
89322         (COPYRIGHT_YEAR): Define.
89323         (version_etc): Use fprintf rather than fputs.
89324         Suggestion from Ulrich Drepper.
89325
89326         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89327
89328         * lib/strtoll.c: New file, from GNU libc.
89329         * lib/xstrtoimax.c: New file.
89330
89331         * lib/xstrtol.h: Add xstrtoimax.
89332         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89333         * lib/strtoimax.c: New file.  Likewise, but first define
89334         STRTOUXMAX_SIGNED.
89335
89336         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89337         ...
89338         * lib/strtoxmax.c: ... then renamed to this.
89339
89340 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89341
89342         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89343         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89344         (jm_AC_TYPE_INTMAX_T): New macro.
89345         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89346
89347         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89348
89349         * m4/longlong.m4: Renamed from ulonglong.m4.
89350         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89351         * m4/uintmax_t.m4: Removed.
89352
89353 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89354
89355         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89356         Port to Solaris 8, where 'sed' requires a space after the 'r'
89357         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89358         Redirect output to $tmp just once.
89359
89360 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89361
89362         * lib/addext.c (<errno.h>): Include.
89363         (errno): Declare if not defined.
89364         (addext): Work correctly when pathconf returns -1 and leaves
89365         errno alone because there is no limit.  Also, work even if
89366         pathconf returns a value greater than SIZE_MAX.
89367
89368 2001-08-12  Jim Meyering  <meyering@lucent.com>
89369
89370         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89371         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89372         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89373         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89374         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89375         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89376         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89377         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89378         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89379         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89380         utime.m4, utimes.m4, xstrtoumax.m4:
89381         Quote the first argument in each use of AC_DEFUN.
89382
89383 2001-08-12  Jim Meyering  <meyering@lucent.com>
89384
89385         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89386         Simply `return getcwd (NULL, 0);'.
89387         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89388         Use 1300 as initial value for length, not PATH_MAX.
89389
89390         * lib/pathmax.h: Clean up cpp syntax.
89391
89392 2001-08-12  Jim Meyering  <meyering@lucent.com>
89393
89394         * lib/gettimeofday.c: New file.
89395         * lib/gtod.h: New file.
89396         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89397
89398 2001-08-05  Jim Meyering  <meyering@lucent.com>
89399
89400         * m4/jm-macros.m4: Require autoconf-2.52.
89401
89402 2001-08-04  Jim Meyering  <meyering@lucent.com>
89403
89404         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89405         stmt, to get in sync with glibc.
89406
89407 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89408
89409         The following changes are from gettext 0.10.39 as maintained by
89410         Bruno Haible.
89411
89412         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89413         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89414         with inverted sense.  All uses changed.
89415
89416         * lib/mbswidth.c: Don't include <limits.h>.
89417         Include <stdlib.h> and <string.h> unconditionally.
89418         (iswcntrl, mbsinit, ISCNTRL): New macros.
89419         (mbsnwidth): Use K&R style function declarations.
89420         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89421         can optimize it when MB_CUR_MAX == 1.
89422         The width of control characters is zero, not 1.
89423
89424 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89425
89426         The following changes are from gettext 0.10.39 as maintained by
89427         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89428
89429         * m4/codeset.m4: Upgrade to serial AM1.
89430         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89431         all uses changed.  Quote first arg of AC_DEFUN.
89432         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89433
89434         * m4/iconv.m4: Upgrade to serial AM2.
89435         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89436         Add --with-libconv-prefix.
89437         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89438         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89439         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89440         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89441         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89442
89443         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89444         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89445         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89446         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89447         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89448         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89449         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89450         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89451         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89452
89453         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89454         string.h any more.
89455
89456         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89457         not the default value.
89458
89459         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89460         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89461         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89462         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89463         Also check for iswcntrl, used for wcwidth fallback.
89464         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89465         to Autoconf 2.13.
89466
89467 2001-08-03  Jim Meyering  <meyering@lucent.com>
89468
89469         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89470         as it was in the original.  Reported by Paul Eggert.
89471
89472 2001-07-16  Jim Meyering  <meyering@lucent.com>
89473
89474         * m4/gettimeofday.m4: New file.
89475         Prompted by a report from Bernhard Baehr.
89476
89477 2001-07-15  Jim Meyering  <meyering@lucent.com>
89478
89479         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89480         stuff. Now it's in ../Makefile.cfg.
89481
89482 2001-07-15  Jim Meyering  <meyering@lucent.com>
89483
89484         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89485         (BUILT_SOURCES): Add unlocked-io.h.
89486         (io_functions): Define.
89487         (unlocked-io.h): New rule.
89488         (DISTCLEANFILES): Add unlocked-io.h.
89489         (all-local): Depend on unlocked-io.h, to ensure it is created.
89490
89491         * lib/unlocked-io.hin: New file
89492
89493         * lib/regex.c: Update from glibc.
89494
89495 2001-07-05  Jim Meyering  <meyering@lucent.com>
89496
89497         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89498         recommendation.
89499         (libfetish_a_SOURCES): Put all .h files here instead.
89500         Remove a thus-exposed (better checks in automake) duplicate and
89501         two unnecessary .h files.
89502
89503 2001-07-04  Jim Meyering  <meyering@lucent.com>
89504
89505         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89506         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89507         distcheck failure.
89508
89509 2001-07-02  Jim Meyering  <meyering@lucent.com>
89510
89511         The following changes were prompted by suggestions from Bruno Haible.
89512
89513         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89514         is now generated.
89515         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89516         definition of EXTRA_DIST.
89517         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89518         ensure that the generated file is created/updated whenever the list
89519         of $(unlocked_functions) is changed.
89520         (jm-glibc-io.m4): New rule.
89521         (unlocked-io.h): New rule -- currently unused.
89522
89523 2001-06-24  Jim Meyering  <meyering@lucent.com>
89524
89525         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89526         unmatched right bracket, rather than kludging it with an extra,
89527         falsely-matching quote in a comment.  Patch by Akim Demaille.
89528
89529 2001-06-11  Jim Meyering  <meyering@lucent.com>
89530
89531         * lib/regex.c: Update from GNU libc.
89532
89533 2001-05-27  Jim Meyering  <meyering@lucent.com>
89534
89535         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89536         Check for ut_type in struct utmp.
89537
89538 2001-05-27  Jim Meyering  <meyering@lucent.com>
89539
89540         * lib/readutmp.h (UT_TYPE): Define.
89541
89542 2001-05-24  Jim Meyering  <meyering@lucent.com>
89543
89544         * lib/argmatch.c: Include "quote.h".
89545         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89546         quote function.  Reported by Göran Uddeborg.
89547
89548 2001-05-22  Jim Meyering  <meyering@lucent.com>
89549
89550         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89551         now that we use the package-supplied version unconditionally.
89552         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89553
89554 2001-05-21  Jim Meyering  <meyering@lucent.com>
89555
89556         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89557         shell syntax errors.
89558
89559 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89560
89561         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89562
89563 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89564
89565         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89566         Don't bother to check library strftime, since
89567         we'll be using our own my_strftime function anyway.
89568         Define my_strftime instead of strftime.
89569
89570 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89571
89572         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89573         which is not yet declared.
89574
89575 2001-05-15  Jim Meyering  <meyering@lucent.com>
89576
89577         * m4/regex.m4: Use proper quoting so brackets appear in the test
89578         program.
89579         Reported by, and with help from, Bruno Haible.
89580
89581 2001-05-13  Jim Meyering  <meyering@lucent.com>
89582
89583         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89584         undefined.
89585
89586 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89587
89588         dirname code cleanup.  base_name now behaves more compatibly
89589         with POSIX basename when given file names that have trailing
89590         slashes, and similarly for dir_name.  Add new primitives
89591         base_len and dir_len.  Put the directory-name-related decls
89592         into dirname.h.
89593
89594         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89595         * lib/backupfile.c (base_name): Likewise.
89596         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89597         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89598         * lib/makepath.c (strip_trailing_slashes): Likewise.
89599         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89600         ISSLASH): Likewise.
89601         * lib/rename.c (strip_trailing_slashes): Likewise.
89602         * lib/same.c (base_name): Likewise.
89603         * lib/stripslash.c (ISSLASH): Likewise.
89604
89605         * lib/addext.c: Include <dirname.h> after size_t is defined.
89606         * lib/backupfile.c: Likewise.
89607
89608         * lib/addext.c (addext): Use base_len to trim redundant
89609         trailing slashes instead of doing it ourselves.
89610         But do not trim the last slash if it is not redundant.
89611
89612         * lib/backupfile.c (find_backup_file_name,
89613         max_backup_version): Use base_len instead of rolling it ourselves.
89614         Handle the case of "" and (on DOS) "C:" correctly.
89615
89616         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89617         needed. Include <string.h>, <dirname.h>.
89618         (base_name): Allow file names ending in slashes, other than names
89619         that are all slashes.  In this case, return the basename followed
89620         by the slashes.  This is more general, and can be used in places
89621         where the original base_name purposely had an assertion failure.
89622         (base_len): New function.
89623
89624         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89625         Do not include <assert.h>; no longer needed.
89626         Include xalloc.h.
89627         (memrchr): Remove decl.
89628         (dir_name_r): Remove.
89629         (dir_len): Renamed from dirlen.  All callers changed.
89630         Rewrite in terms of base_name, for simplicity and consistency.
89631         (dir_name): Never return NULL.  All callers changed.
89632         Do not include <stdlib.h> in test program; no longer needed.
89633         return 0; is fine for test program.
89634
89635         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89636         New macros.
89637         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89638
89639         * lib/path-concat.c (path_concat): Use base_len to compute
89640         base length, not strlen; this means we cannot rely on memcpy
89641         to null-terminate.
89642
89643         * lib/same.c (STREQ): Remove.
89644         (same_name): Handle the case where the basename ends in trailing '/'.
89645
89646         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89647         a slash was stripped.  Do not strip the last slash after a
89648         file system prefix.
89649
89650 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89651
89652         * lib/Makefile.am (libfetish_a_SOURCES):
89653         Add strftime.c, since we now compile it on all hosts.
89654
89655         * lib/strftime.c (my_strftime):
89656         Define to nstrftime if emacs, but only if my_strftime is not defined.
89657         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89658         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89659         Add one more extra argument: a nanoseconds value.
89660         All uses changed.
89661         (ns): New macro.
89662         (my_strftime function): Add %N format.
89663         (emacs_strftimeu): Renamed from emacs_strftime,
89664         with extra ut argument.
89665
89666 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89667
89668         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89669
89670 2001-04-21  Jim Meyering  <meyering@lucent.com>
89671
89672         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89673         doesn't interfere.
89674
89675 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89676
89677         * m4/ftruncate.m4: Check for chsize.
89678         Link with ftruncate.o unconditionally if ftruncate is missing.
89679         This was required when cross-compiling to i586-mingw32msvc.
89680
89681 2001-04-08  Jim Meyering  <meyering@lucent.com>
89682
89683         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89684         recomputed; that's necessary when the offset spans a DST transition.
89685         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89686
89687 2001-04-02  Jim Meyering  <meyering@lucent.com>
89688
89689         * lib/regex.h, regex.c: Update from GNU libc.
89690
89691 2001-03-24  Jim Meyering  <meyering@lucent.com>
89692
89693         * m4/jm-macros.m4: Require autoconf-2.49d.
89694
89695 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89696
89697         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89698
89699 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89700
89701         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89702
89703 2001-03-17  Jim Meyering  <meyering@lucent.com>
89704
89705         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89706         now that the version in autoconf is equivalent.
89707         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89708
89709         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89710         Suggestion from Akim Demaille.
89711
89712         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89713         (jm_PREREQ_TEMPNAME): New function.
89714
89715 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89716
89717         * lib/tempname.c (uint64_t): Define to uintmax_t if
89718         not defined, and if UINT64_MAX is not defined.
89719         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89720         Reported by John David Anglin.
89721
89722 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89723
89724         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89725         resolve alias if codeset is empty.
89726         * lib/config.charset (BeOS): Use wildcard syntax.
89727
89728 2001-03-13  Jim Meyering  <meyering@lucent.com>
89729
89730         * lib/path-concat.c (path_concat)
89731         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89732         concatenating e.g., `C:' and `foo'.
89733         From Bruno Haible.
89734
89735 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89736
89737         * lib/localcharset.c (locale_charset): Don't use
89738         setlocale(LC_CTYPE,NULL). Don't return NULL.
89739         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89740
89741 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89742
89743         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89744         support for DOS/DJGPP.
89745
89746 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89747
89748         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89749         lacks mkstemp.  Compile our own tempname.c if we compile our own
89750         mkstemp.c, as mkstemp relies on tempname.
89751
89752 2001-03-01  Jim Meyering  <meyering@lucent.com>
89753
89754         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89755         AH_VERBATIM really does output its argument verbatim.
89756
89757 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89758
89759         * lib/Makefile.am (libfetish_a_SOURCES):
89760         Add dup-safer.c, fopen-safer.c.
89761         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89762
89763         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89764         * lib/unistd-safer.h: New files.
89765
89766 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89767
89768         The mkstemp replacement is taken from glibc 2.2.2, with some
89769         portability fixes for use outside glibc, as follows:
89770
89771         * lib/tempname.c (struct_stat64): New macro.
89772         (direxists, __gen_tempname): Use it.
89773         This avoids a portability problem with Solaris 8.
89774
89775         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89776         (<stddef.h>, <stdint.h>, <string.h>):
89777         Include only if STDC_HEADERS || _LIBC.
89778         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89779         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89780         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89781         (__set_errno): Define this macro if <errno.h> doesn't.
89782         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89783         Define these macros if <stdio.h> doesn't.
89784         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89785         Define these macros if <sys/stat.h>
89786         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89787         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89788         __xstat64): Define if not _LIBC.
89789         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89790         (__gen_tempname): Invoke gettimeofday only if
89791         HAVE_GETTIMEOFDAY || _LIBC;
89792         otherwise, fall back on plain "time".
89793         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89794
89795         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89796
89797         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89798
89799 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89800
89801         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89802
89803 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89804
89805         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89806         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89807         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89808         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89809
89810 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89811
89812         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89813         Remove workaround macros for hosts that have mbrtowc but not
89814         mbstate_t, as we now insist on proper declarations for both
89815         before using mbrtowc.
89816
89817 2001-02-17  Jim Meyering  <meyering@lucent.com>
89818
89819         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89820         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89821         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89822         UnixWare 7.1.1.
89823
89824         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89825         rather than AC_CACHE_VAL.
89826
89827 2001-02-17  Jim Meyering  <meyering@lucent.com>
89828
89829         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89830         around included file name.
89831
89832         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89833
89834         * lib/strftime.c: Update from GNU libc (the only changes were to
89835         comments).
89836
89837 2001-02-17  Jim Meyering  <meyering@lucent.com>
89838
89839         * lib/regex.c: Update from libc.
89840
89841 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89842
89843         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89844         clash.
89845
89846 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89847
89848         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89849         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89850         Reported by Mark Hounschell via Paul Eggert.
89851
89852 2001-02-07  Jim Meyering  <meyering@lucent.com>
89853
89854         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89855
89856 2001-02-05  Jim Meyering  <meyering@lucent.com>
89857
89858         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89859         it includes the patch required for `large file' support with at least
89860         HP-UX's 10.20 /bin/cc.
89861
89862 2001-02-03  Jim Meyering  <meyering@lucent.com>
89863
89864         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89865         AS_IF, now that it works once again (mysteriously).
89866         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89867
89868 2001-01-30  Jim Meyering  <meyering@lucent.com>
89869
89870         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89871         * m4/chown.m4: Rename conftestchown to conftest.chown.
89872         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89873         s/conftestdir2/conftest.d2/.
89874         * m4/utimes.m4: s/conftestdata/conftest.data/
89875         Inspired by Pavel Roskin's change in autoconf.
89876
89877 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89878
89879         * lib/config.charset: Update for FreeBSD 4.2.
89880
89881 2001-01-27  Jim Meyering  <meyering@lucent.com>
89882
89883         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89884         a use of AS_IF.
89885         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89886
89887 2001-01-26  Jim Meyering  <meyering@lucent.com>
89888
89889         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89890         quotearg.c includes it.
89891
89892 2001-01-26  Jim Meyering  <meyering@lucent.com>
89893
89894         * lib/quotearg.c: Include stddef.h.
89895         * lib/quote.c: Include stddef.h.
89896         Reported by Axel Kittenberger.
89897
89898         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89899         line in double quotes so that it evokes a better diagnostic.
89900         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89901         Reported by Axel Kittenberger.
89902
89903 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89904
89905         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89906         as if it was a `charset'.
89907
89908 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89909
89910         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89911         has const.
89912
89913 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89914
89915         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89916         to avoid a warning.  Add back 'const' to inptr.
89917
89918 2001-01-20  Jim Meyering  <meyering@lucent.com>
89919
89920         Be sure that headers are checked before used in code compiled
89921         for the type checks.
89922         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89923         In place of that, invoke jm_CHECK_ALL_TYPES.
89924         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89925         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89926         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89927         The check for ssize_t was mistakenly run before the test for unistd.h.
89928
89929         The configure-time check for stdbool.h was missing.
89930         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89931         (jm_PREREQ_HASH): New function.
89932
89933 2001-01-17  Jim Meyering  <meyering@lucent.com>
89934
89935         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89936         for autoconf-2.49c.
89937         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89938
89939 2001-01-16  Jim Meyering  <meyering@lucent.com>
89940
89941         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89942         From Bruno Haible.
89943
89944 2001-01-14  Jim Meyering  <meyering@lucent.com>
89945
89946         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89947         foo and bar.  Create conftestdir/ in the script, not in the C code.
89948         Remove directories in the script, not in the C code.
89949         Remove conftestdir{,2} before trying to create the directory.
89950         Make the entire configure script fail if the mkdir fails.
89951
89952 2001-01-14  Jim Meyering  <meyering@lucent.com>
89953
89954         * lib/rename.c: New file.  From Volker Borchert.
89955         Include stdlib.h, string.h or strings.h, and xalloc.h.
89956         Use strip_trailing_slashes rather than open-coding it.
89957
89958 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89959
89960         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89961
89962 2001-01-03  Jim Meyering  <meyering@lucent.com>
89963
89964         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89965         of local `inptr' to avoid warning with some system declarations of
89966         iconv.
89967
89968 2001-01-02  Volker Borchert  <bt@teknon.de>
89969
89970         * m4/rename.m4: New file.
89971         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89972
89973 2001-01-01  Jim Meyering  <meyering@lucent.com>
89974
89975         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89976         even on systems with utmpx.h.  It's necessary for the declaration of
89977         utmp's ut_user member.  Reported by Andreas Jaeger.
89978
89979         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89980         available. They are required for the declarations of getgrgid and
89981         getpwuid resp.
89982         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89983         Reported by Andreas Jaeger.
89984
89985 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89986
89987         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89988         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89989         so `make install' also works in VPATH builds.
89990
89991 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89992
89993         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89994         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89995         can be used in subdirectories.
89996
89997 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89998
89999         * lib/modechange.c: Do not assume that mode_t uses the
90000         traditional octal encoding.  E.g. "chmod 1 FOO" should set
90001         the other-execute bit of FOO even if S_IXOTH != 1.
90002
90003         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
90004         WOTH, XOTH, ALLM): New macros.
90005         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
90006          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
90007         Use them.
90008         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
90009         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
90010         (mode_compile):
90011         No need to use uintmax_t; unsigned long is long enough.
90012         Don't bother to get suffix since we don't use it.
90013
90014 2000-12-26  Jim Meyering  <meyering@lucent.com>
90015
90016         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
90017         better with autoheader.
90018
90019 2000-12-24  Jim Meyering  <meyering@lucent.com>
90020
90021         * lib/hash.c (is_prime): Return explicit boolean values.
90022         (hash_get_first): Return NULL to appease Irix5.6's 89.
90023         Reported by Nelson Beebe.
90024
90025 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
90026
90027         * lib/localcharset.c (locale_charset): Add support for Win32.
90028
90029 2000-12-18  Paul Eggert  <eggert@twinsun.com>
90030
90031         * lib/physmem.h, lib/physmem.c: New files.
90032
90033         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
90034         (noinst_HEADERS): Add physmem.h.
90035
90036         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
90037         't' for compatibility with Solaris 8 sort.
90038
90039 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
90040
90041         * lib/config.charset: Add support for BeOS.
90042
90043 2000-12-17  Jim Meyering  <meyering@lucent.com>
90044
90045         * m4/dos.m4 (jm_AC_DOS): New file and macro.
90046         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
90047
90048 2000-12-16  Jim Meyering  <meyering@lucent.com>
90049
90050         This bug had a serious impact on chown: `chown N:M FILE' (for integer
90051         N and M) would have treated it like `chown N:N FILE'.
90052
90053         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
90054
90055 2000-12-16  Jim Meyering  <meyering@lucent.com>
90056
90057         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
90058         SHELLS_FILE to a file name that's useful on djgpp systems.
90059         Include stdlib.h.
90060         (ADDITIONAL_DEFAULT_SHELLS): Define.
90061         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
90062         Based mostly on a patch from Prashant TR.
90063
90064 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
90065
90066         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
90067         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
90068         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
90069
90070 2000-12-08  Andreas Schwab  <schwab@suse.de>
90071
90072         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
90073         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
90074
90075 2000-12-07  Jim Meyering  <meyering@lucent.com>
90076
90077         * lib/stripslash.c (ISSLASH): Define.
90078         (strip_trailing_slashes): Use ISSLASH rather than comparing against
90079         `/'.
90080         From Prashant TR.
90081
90082         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
90083         (dir_name_r): Declare this function as static.
90084         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
90085         manifest itself on a name containing a mix of slashes and
90086         backslashes.
90087         Make this function work with names starting with a DOS-style
90088         drive letter and colon prefix.
90089         (dir_name): Append `.' if necessary.
90090         Based mostly on patches from Prashant TR and Eli Zaretskii.
90091
90092         * lib/dirname.h (dir_name_r): Remove prototype.
90093
90094 2000-12-06  Paul Eggert  <eggert@twinsun.com>
90095
90096         * m4/off_t-format.m4: Remove this file.
90097         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
90098
90099 2000-12-06  Jim Meyering  <meyering@lucent.com>
90100
90101         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
90102         replacement strtoull, we may well need the replacement strtoul, too.
90103         Check for declarations of strtoul and strtoull.
90104         Check for strtol.  Mainly as a cue to cause automake to include
90105         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
90106         Check for limits.h -- strtol.c needs it.
90107
90108 2000-12-05  Jim Meyering  <meyering@lucent.com>
90109
90110         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
90111
90112 2000-12-04  Jim Meyering  <meyering@lucent.com>
90113
90114         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
90115         Also include memory.h, stdlib.h, unistd.h if appropriate.
90116         Reported by Andreas Jaeger (conflicting declaration of malloc).
90117
90118 2000-12-02  Jim Meyering  <meyering@lucent.com>
90119
90120         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
90121         * m4/jm-macros.m4 (jm_MACROS): require it.
90122
90123 2000-12-02  Jim Meyering  <meyering@lucent.com>
90124
90125         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
90126
90127 2000-12-01  Paul Eggert  <eggert@twinsun.com>
90128
90129         * lib/memrchr.c: Include <config.h> before any system include file.
90130
90131 2000-11-30  Jim Meyering  <meyering@lucent.com>
90132
90133         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
90134
90135 2000-11-30  Jim Meyering  <meyering@lucent.com>
90136
90137         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
90138
90139 2000-11-29  Paul Eggert  <eggert@twinsun.com>
90140
90141         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
90142
90143 2000-11-26  Jim Meyering  <meyering@lucent.com>
90144
90145         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
90146
90147 2000-11-22  Paul Eggert  <eggert@twinsun.com>
90148
90149         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
90150         size of (size_t) -1; it's not portable.
90151
90152 2000-11-17  Jim Meyering  <meyering@lucent.com>
90153
90154         * lib/strstr.c: Update from GNU libc.
90155
90156 2000-11-17  Akim Demaille  <akim@epita.fr>
90157
90158         * lib/obstack.h: Formatting changes.
90159         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
90160         prevent type checking.
90161         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90162         cast the value to (void *): assigning a `foo *' to a `void *'
90163         variable is valid.
90164         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90165
90166 2000-11-16  Jim Meyering  <meyering@lucent.com>
90167
90168         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90169
90170 2000-11-11  Jim Meyering  <meyering@lucent.com>
90171
90172         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90173
90174 2000-11-10  Jim Meyering  <meyering@lucent.com>
90175
90176         * lib/obstack.h: Update from GNU libc.
90177         * lib/obstack.c: Likewise.
90178
90179 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90180
90181         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90182
90183 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90184
90185         * lib/getusershell.c (setusershell): Use rewind rather than
90186         fseek/fseeko, to avoid configuration hassles with fseeko.
90187         Don't bother opening SHELLS_FILE if shellstream is NULL;
90188         it's not necessary.
90189
90190 2000-11-05  Jim Meyering  <meyering@lucent.com>
90191
90192         * lib/makepath.h (make_dir): Declare.
90193         * lib/makepath.c (make_dir): Remove `static' attribute.
90194         Tweak a comment.
90195
90196 2000-11-04  Jim Meyering  <meyering@lucent.com>
90197
90198         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90199
90200 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90201
90202         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90203         last one in a bucket, advance to the next bucket.
90204
90205 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90206
90207         * lib/fnmatch.c: Do not comment out all the code if we are using
90208         the GNU C library, because in some cases we are replacing buggy
90209         code in the GNU C library itself.
90210
90211 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90212
90213         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90214         (regex_compile): Catch bogus \(\1\).
90215
90216 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90217
90218         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90219         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90220         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90221
90222 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90223
90224         * lib/error.h, getline.h, modechange.h:
90225         Remove "2000" from Copyright line, as the file hasn't been
90226         changed this year other than in the copyright notice.
90227
90228         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90229         was changed this year.
90230
90231 2000-10-29  Jim Meyering  <meyering@lucent.com>
90232
90233         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90234         renaming.
90235         * m4/ls-mntd-fs.m4: Likewise
90236
90237 2000-10-29  Jim Meyering  <meyering@lucent.com>
90238
90239         * lib/xstat.in: Fix grammar in comment.
90240
90241 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90242
90243         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90244         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90245         doesn't define __restrict_arr.
90246
90247 2000-10-28  Jim Meyering  <meyering@lucent.com>
90248
90249         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90250         (jm_PREREQ_MEMCHR): New function.
90251
90252 2000-10-28  Jim Meyering  <meyering@lucent.com>
90253
90254         * lib/memchr.c: Update from libc.
90255         Adjust for portability:
90256         [HAVE_STDLIB_H]: Include stdlib.h.
90257         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90258         Undef __memchr, too.
90259         [!weak_alias]: Define __memchr to memchr.
90260
90261         * lib/regex.c: Update from libc.
90262         * lib/regex.h: Likewise.
90263         * lib/getopt1.c: Likewise.
90264         * lib/memcmp.c: Likewise.
90265
90266         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90267         Avoid using fseek, when possible -- it's broken by design.
90268         Patch by Ulrich Drepper.
90269
90270 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90271
90272         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90273         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90274         Giving in to popular pressure to shut up the compiler with casts.
90275
90276 2000-10-26  Jim Meyering  <meyering@lucent.com>
90277
90278         * lib/strftime.c: Update from libc.
90279
90280 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90281
90282         * regex.c: More `unsigned char' -> `re_char' changes.
90283         Also change several `int' into `re_wchar_t'.
90284         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90285         (PUSH_FAILURE_POINTER): Don't cast any more.
90286         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90287         We want GCC to complain, since this piece of code makes
90288         re_match non-reentrant, which *should* be fixed.
90289         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90290         (EXTEND_BUFFER): Use RETALLOC.
90291         (SET_LIST_BIT): Don't cast.
90292         (re_wchar_t): New type.
90293         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90294         that those two functions will always properly return.
90295         (IMMEDIATE_QUIT_CHECK): Cast to void.
90296         (analyse_first): Use recursion rather than an explicit stack.
90297         (re_compile_fastmap): Can't fail anymore.
90298         (re_search_2): Don't check re_compile_fastmap for failure.
90299         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90300         Now also sets the new value (passed in a new argument).
90301         (re_match_2_internal): Use it.
90302         Also, use a new var `reg' of type size_t when looping through regs
90303         rather than reuse the inappropriate `mcnt'.
90304
90305 2000-10-25  Jim Meyering  <meyering@lucent.com>
90306
90307         * lib/obstack.c: Update from libc.
90308
90309 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90310
90311         * regex.c (regex_compile): Change the way of handling a range from
90312         a char less than 256 to a char not less than 256.
90313
90314 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90315
90316         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90317         NT-Emacs only.
90318         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90319         so that re_search functions only quit when callers expect them to.
90320
90321 2000-10-23  Jim Meyering  <meyering@lucent.com>
90322
90323         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90324         wrong.  That set_locale call must not have any side effects.
90325         From Paul Eggert.
90326
90327 2000-10-22  Jim Meyering  <meyering@lucent.com>
90328
90329         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90330         [CYCLIC]: Remove now-unused definition.
90331
90332         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90333         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90334         Suggestion from Ulrich Drepper.
90335
90336 2000-10-21  Jim Meyering  <meyering@lucent.com>
90337
90338         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90339         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90340         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90341
90342 2000-10-21  Jim Meyering  <meyering@lucent.com>
90343
90344         * lib/dirname.c (memrchr): Declare if necessary.
90345         (dir_name): Remove the restriction that there be no
90346         trailing slashes.  Now, this code skips past them, effectively
90347         ignoring them.
90348         [TEST_DIRNAME] (main): New unit tests.
90349
90350         * lib/memrchr.c: New file from GNU libc.
90351         Undef __memrchr, too.
90352         [!weak_alias]: Define __memrchr to memrchr.
90353         Guard weak_alias use with `#ifdef weak_alias'.
90354
90355 2000-10-21  Jim Meyering  <meyering@lucent.com>
90356
90357         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90358         (dir_name): Use dir_name_r.
90359         * lib/dirname.h (dir_name_r): Declare it.
90360
90361 2000-10-17  Jim Meyering  <meyering@lucent.com>
90362
90363         * lib/quote.h (PARAMS): Define and use.
90364         Reported by Akim Demaille.
90365
90366         * lib/getopt.c: Update from libc.
90367
90368 2000-10-16  Jim Meyering  <meyering@lucent.com>
90369
90370         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90371         setlocale.
90372         From Jan Fedak.
90373
90374 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90375
90376         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90377
90378 2000-09-25  Jim Meyering  <meyering@lucent.com>
90379
90380         * lib/md5.h (rol): Define (from GnuPG).
90381
90382         * lib/sha.c: Give credit (GnuPG) where due.
90383         (M): Use rol rather than open-coding it.
90384         Add a FIXME comment.
90385
90386 2000-09-21  Jim Meyering  <meyering@lucent.com>
90387
90388         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90389         Reported by Michael Stone.
90390
90391 2000-09-20  Jim Meyering  <meyering@lucent.com>
90392
90393         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90394         (noinst_HEADERS): Add sha.h.
90395         Based on code from Scott G. Miller and from GnuPG.
90396
90397 2000-09-18  Jim Meyering  <meyering@lucent.com>
90398
90399         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90400         LIBS. Otherwise, everyone ends up linking with -lelf for some
90401         configurations.
90402         Reported by Mike Stone.
90403
90404 2000-09-15  Jim Meyering  <meyering@lucent.com>
90405
90406         * lib/regex.c: Update from libc.
90407
90408 2000-09-10  Jim Meyering  <meyering@lucent.com>
90409
90410         * lib/getopt.c (_getopt_internal): Update from glibc.
90411
90412 2000-09-09  Jim Meyering  <meyering@lucent.com>
90413
90414         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90415         think it should be used as a general replacement for isascii.
90416         * lib/fnmatch.c: Likewise.
90417         * lib/mbswidth.c: Likewise
90418         * lib/regex.c: Likewise.
90419
90420         Don't use atoi.
90421         * lib/userspec.c: Include sys/param.h and limits.h.
90422         Include xstrtol.h.
90423         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90424         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90425         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90426         UID, GID.  Check range.
90427
90428 2000-09-06  Jim Meyering  <meyering@lucent.com>
90429
90430         * lib/getopt.c (_getopt_internal): Update from glibc.
90431
90432 2000-08-30  Jim Meyering  <meyering@lucent.com>
90433
90434         * lib/strftime.c: Merge in changes from GNU libc.
90435
90436 2000-08-26  Jim Meyering  <meyering@lucent.com>
90437
90438         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90439         * m4/fpending.m4: New file.
90440
90441 2000-08-26  Jim Meyering  <meyering@lucent.com>
90442
90443         * lib/closeout.c: Include "__fpending.h".
90444         (close_stdout_status): Return right away if there's nothing to flush.
90445
90446         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90447         * lib/__fpending.c: New file.
90448         * lib/__fpending.h: New file.
90449
90450 2000-08-20  Jim Meyering  <meyering@lucent.com>
90451
90452         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90453         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90454         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90455
90456 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90457
90458         Improve fileutils installation on systems where running
90459         programs (like install) can't be unlinked.
90460         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90461         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90462
90463 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90464
90465         Standardize on "memory exhausted" instead of "Memory exhausted"
90466         or "virtual memory exhausted".
90467         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90468         "virtual memory exhausted".
90469         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90470         our own message.
90471         * lib/userspec.c (parse_user_spec): Likewise.
90472         * lib/bumpalloc.h: comment fix
90473         * lib/same.c, userspec.c: Include xalloc.h.
90474
90475         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90476         not char *const and pointing to a constant array.
90477         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90478         (xrealloc): Comment fix.
90479
90480         * lib/userspec.c (parse_user_spec):
90481         Don't translate a message until just before returning,
90482         to avoid unnecessary translation.
90483
90484 2000-08-07  Jim Meyering  <meyering@lucent.com>
90485
90486         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90487         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90488         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90489         getgroups.c, gethostname.c, getopt.h, group-member.c,
90490         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90491         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90492         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90493         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90494         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90495         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90496         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90497         yesno.c: Back out Copyright date changes for each file with no change
90498         this year.  This eases coordination with other programs using the same
90499         source code modules.  From Paul Eggert.
90500
90501 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90502
90503         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90504         not char, for compatibility with glibc 2.1.3 strftime.c.
90505
90506 2000-08-03  Greg McGary  <greg@mcgary.org>
90507
90508         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90509         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90510         (EXTEND_BUFFER): Use them.
90511
90512 2000-08-01  Jim Meyering  <meyering@lucent.com>
90513
90514         * lib/dirname.c (ISSLASH): Define.
90515         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90516         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90517         both `\' and `/' may be use as path separators.
90518         Based on a patch from Prashant TR.
90519
90520 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90521
90522         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90523         slot vector a constant, since it might get modified.
90524
90525 2000-07-31  Jim Meyering  <meyering@lucent.com>
90526
90527         * lib/xmalloc.c: Use `virtual memory exhausted', not
90528         `Memory exhausted'.
90529         * lib/obstack.c (print_and_abort): Likewise.
90530
90531 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90532
90533         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90534         buffer, so that the caller can always quote one small
90535         component of a "memory exhausted" message in slot 0.
90536         From a suggestion by Jim Meyering.
90537
90538 2000-07-30  Jim Meyering  <meyering@lucent.com>
90539
90540         * lib/makepath.c (make_path): Quote the other instance, too.
90541
90542         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90543         (STATIC_BUF_SIZE): Define.
90544         (quotearg_n_options): Use only statically allocated storage when
90545         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90546         than STATIC_BUF_SIZE.
90547
90548 2000-07-29  Jim Meyering  <meyering@lucent.com>
90549
90550         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90551         * lib/dirname.c (dir_name): Likewise.
90552
90553         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90554         `/'.
90555
90556         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90557         (dir_name): Assert that there are no trailing slashes.
90558
90559 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90560
90561         * lib/mbswidth.h (mbswidth): Add a flags argument.
90562         (mbswidth): New declaration.
90563         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90564         * lib/mbswidth.c (mbswidth): Add a flags argument.
90565         (mbsnwidth): New function.
90566
90567 2000-07-24  Jim Meyering  <meyering@lucent.com>
90568
90569         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90570
90571 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90572
90573         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90574
90575 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90576
90577         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90578         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90579         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90580         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90581         invoke multibyte primitives.
90582
90583 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90584
90585         * lib/quotearg.c:
90586         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90587         so that mbstate_t is always defined.
90588
90589         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90590         be 1 in at least one GCC installation, and this configuration
90591         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90592         performance on hosts that have mbrtowc but have only unibyte
90593         locales, but I assume these hosts are rare.
90594
90595 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90596
90597         * lib/mbswidth.c (_XOPEN_SOURCE):
90598         Don't define; this causes problems on Solaris 7.
90599         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90600
90601 2000-07-23  Jim Meyering  <meyering@lucent.com>
90602
90603         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90604         too: getgrgid, getpwuid, getuid.
90605
90606 2000-07-23  Jim Meyering  <meyering@lucent.com>
90607
90608         * lib/basename.c (base_name): Add an assertion.
90609
90610 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90611
90612         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90613         shadow its mbsinit function.
90614
90615 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90616
90617         * lib/mbswidth.h: New file.
90618         * lib/mbswidth.c: New file.
90619         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90620         (noinst_HEADERS): Add mbswidth.h.
90621
90622 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90623
90624         * lib/config.charset: Add support for FreeBSD. Improve support for
90625         HP-UX and IRIX 6.
90626
90627 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90628
90629         * m4/mbswidth.m4: New file.
90630         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90631
90632 2000-07-15  Jim Meyering  <meyering@lucent.com>
90633
90634         * lib/makepath.c: Include quote.h.
90635         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90636         corresponding argument in a `quote (...)' call.
90637         Give better diagnostics.
90638
90639         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90640         (noinst_HEADERS): Add quote.h.
90641
90642         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90643         from tar's src/misc.c.
90644         * lib/quote.h: New file.  Prototypes for same.
90645
90646 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90647
90648         From a suggestion by Bruno Haible.
90649         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90650         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90651         to decide whether to define the BeOS workaround macro;
90652         this adjusts to the change to AC_MBSTATE_T.
90653
90654 2000-07-14  Jim Meyering  <meyering@lucent.com>
90655
90656         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90657         jm_AC_TYPE_UINTMAX_T.
90658
90659 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90660
90661         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90662
90663         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90664         quotearg_buffer_restyled): Add support for
90665         clocale_quoting_style.  Undo previous change to
90666         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90667         and "{RIGHT QUOTATION MARK}" msgids.
90668
90669 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90670
90671         From a suggestion by Bruno Haible.
90672         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90673         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90674         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90675         and mbstate_t, to a single-part test that simply defines mbstate_t.
90676         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90677         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90678
90679 2000-07-10  Jim Meyering  <meyering@lucent.com>
90680
90681         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90682
90683         * m4/gnu-source.m4: Output to confdefs.h directly.
90684         Suggestion from Akim Demaille.
90685
90686 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90687
90688         The old behavior of quoting `like this' doesn't look good with
90689         newer, ISO-style fonts.  See:
90690         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90691
90692         Instead, quote "like this" by default.  Let the translator
90693         tailor the locale-specific quoting behavior by providing
90694         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90695
90696         * lib/quotearg.c (N_): New macro.
90697         (gettext_default): New function.
90698         (quotearg_buffer_restyled): Use
90699         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90700         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90701
90702 2000-07-09  Jim Meyering  <meyering@lucent.com>
90703
90704         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90705         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90706
90707         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90708         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90709
90710 2000-07-09  Jim Meyering  <meyering@lucent.com>
90711
90712         * lib/Most files: Update copyright dates to include 2000.
90713
90714 2000-07-08  Jim Meyering  <meyering@lucent.com>
90715
90716         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90717         if not defined.
90718         (xgethostname): Remove now-unnecessary #ifdef.
90719         Move declaration of `err' into loop where it's used.
90720
90721 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90722         and Bruno Haible  <haible@clisp.cons.org>
90723
90724         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90725         only if the test for an object-type mbstate_t fails.  This
90726         prevents us from mistakenly reporting that mbstate_t is a
90727         system object type after we "#define mbstate_t int" to work
90728         around its lack.
90729
90730 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90731         and Bruno Haible  <haible@clisp.cons.org>
90732
90733         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90734
90735 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90736
90737         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90738         to strerror_r.
90739         Include <ctype.h> for use of isalpha.
90740
90741 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90742
90743         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90744         by allocating a larger buffer. Test the gethostname return value for
90745         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90746         returns an error and ENAMETOOLONG isn't defined.
90747
90748 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90749
90750         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90751         dimension.
90752
90753 2000-07-04  Jim Meyering  <meyering@lucent.com>
90754
90755         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90756         of the deprecated AC_CHECKING.
90757
90758 2000-07-04  Jim Meyering  <meyering@lucent.com>
90759
90760         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90761         Reported by Bruno Haible.
90762
90763 2000-07-04  Jim Meyering  <meyering@lucent.com>
90764
90765         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90766         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90767         lacks mbrtowc.
90768
90769 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90770
90771         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90772         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90773
90774 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90775         and Bruno Haible  <haible@clisp.cons.org>
90776
90777         * lib/quotearg.c (mbrtowc):
90778         Assign to *pwc, and return 1 only if result is nonzero.
90779         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90780
90781 2000-07-03  Jim Meyering  <meyering@lucent.com>
90782
90783         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90784
90785 2000-07-03  Jim Meyering  <meyering@lucent.com>
90786
90787         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90788         This is necessary to get a definition of e.g., UTMP_FILE on
90789         HP-UX 10.20.
90790         From Bob Proulx.
90791
90792 2000-07-02  Jim Meyering  <meyering@lucent.com>
90793
90794         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90795
90796         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90797         AC_LIBOBJ(function_name).
90798         * m4/chown.m4: Likewise.
90799         * m4/fnmatch.m4: Likewise.
90800         * m4/ftruncate.m4: Likewise.
90801         * m4/getgroups.m4: Likewise.
90802         * m4/getline.m4: Likewise.
90803         * m4/group-member.m4: Likewise.
90804         * m4/jm-macros.m4: Likewise.
90805         * m4/lstat.m4: Likewise.
90806         * m4/malloc.m4: Likewise.
90807         * m4/memcmp.m4: Likewise.
90808         * m4/nanosleep.m4: Likewise.
90809         * m4/putenv.m4: Likewise.
90810         * m4/realloc.m4: Likewise.
90811         * m4/regex.m4: Likewise.
90812         * m4/stat.m4: Likewise.
90813         * m4/strftime.m4: Likewise.
90814
90815 2000-07-02  Jim Meyering  <meyering@lucent.com>
90816
90817         * lib/quotearg.c (mbstate_t): Don't define here.
90818
90819 2000-07-02  Jim Meyering  <meyering@lucent.com>
90820
90821         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90822
90823 2000-07-01  Jim Meyering  <meyering@lucent.com>
90824
90825         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90826
90827 2000-07-01  Jim Meyering  <meyering@lucent.com>
90828
90829         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90830         problem.
90831
90832 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90833
90834         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90835         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90836
90837 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90838
90839         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90840         per change in ../m4/ls-mntd-fs.m4.
90841         (read_filesystem_list): Ignore symbolic links.
90842
90843 2000-06-29  Jim Meyering  <meyering@lucent.com>
90844
90845         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90846         for declaration of strcmp.
90847
90848         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90849
90850         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90851         Avoid warning by casting result to `char *' to remove `const'.
90852
90853 2000-06-28  Jim Meyering  <meyering@lucent.com>
90854
90855         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90856         included by quotearg.c, for which we perform this test.  From
90857         Bruno Haible.
90858
90859 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90860
90861         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90862         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90863         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90864
90865 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90866
90867         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90868
90869 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90870
90871         savedir now sets errno on failure and invokes xmalloc to get memory.
90872         Fix a couple of other minor bugs while we're at it.
90873
90874         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90875         (NAMLEN): Remove macro.
90876         (malloc, realloc): Remove decls.
90877         (stpcpy): Likewise.
90878         ("xalloc.h"): Include.
90879         (NAME_SIZE_DEFAULT): New macro.
90880         (savedir): Use xmalloc / xrealloc to allocate memory.
90881         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90882         Skip "" directory entries.
90883         Use strlen to calculate directory entry length, since the old method
90884         is rarely used these days and isn't worth supporting.
90885         Don't use a pointer after freeing it.
90886         Check for integer overflow when calculating allocation size.
90887         Use memcpy to copy entries, instead of stpcpy.
90888         Set errno properly when returning NULL.
90889         Check for readdir error.
90890
90891 2000-06-26  Jim Meyering  <meyering@lucent.com>
90892
90893         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90894
90895 2000-06-25  Jim Meyering  <meyering@lucent.com>
90896
90897         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90898         Linux header bug when _XOPEN_SOURCE is defined to 500.
90899
90900 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90901
90902         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90903         deficiency.
90904
90905 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90906
90907         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90908         Include xalloc.h.
90909         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90910
90911 2000-06-24  Jim Meyering  <meyering@lucent.com>
90912
90913         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90914         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90915         for which strerror does return char*, but which lacks a conveniently
90916         accessible declaration of the function.  If the compile-test says
90917         strerror_r doesn't work, then resort to a `run'-test that works on
90918         BeOS and segfaults on DEC Unix.
90919
90920 2000-06-24  Jim Meyering  <meyering@lucent.com>
90921
90922         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90923
90924 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90925
90926         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90927         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90928
90929 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90930
90931         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90932         (mbrtowc, mbstate_t): Define substitutes if
90933         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90934         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90935         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90936
90937 2000-06-23  Jim Meyering  <meyering@lucent.com>
90938
90939         * m4/afs.m4: Add missing AC_MSG_RESULT.
90940         Reported by Bruno Haible.
90941
90942         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90943         Suggestion from Bruno Haible.
90944
90945 2000-06-23  Jim Meyering  <meyering@lucent.com>
90946
90947         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90948
90949 2000-06-21  Jim Meyering  <meyering@lucent.com>
90950
90951         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90952
90953 2000-06-21  Jim Meyering  <meyering@lucent.com>
90954
90955         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90956         (noinst_HEADERS): Add getstr.h.
90957
90958         * lib/getline.c (getstr): Move into a separate file.
90959         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90960         the following changes: new parameter, delim2; both delim[12]
90961         parameters have type `int', not `char'.  The latter would lose
90962         with 8-bit delimiters.
90963         * lib/getstr.h: New file.
90964
90965 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90966
90967         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90968         than 1024, return a memory chunk of least possible size, instead
90969         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90970         Use free/xmalloc instead of xrealloc to avoid copying for very long
90971         paths.
90972
90973 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90974
90975         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90976         the empty string.
90977
90978 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90979
90980         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90981         address, not strdup.  Include <stdlib.h> and don't declare free().
90982
90983 2000-06-19  Jim Meyering  <meyering@lucent.com>
90984
90985         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90986
90987 2000-06-18  Jim Meyering  <meyering@lucent.com>
90988
90989         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90990
90991         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90992         `checking whether...' message to be consistent with that of the
90993         lstat test.
90994
90995 2000-06-18  Jim Meyering  <meyering@lucent.com>
90996
90997         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90998         Besides, these days every porting target provides a mkdir function.
90999
91000         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
91001         needed. (this snippet comes from src/system.h).
91002
91003 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
91004
91005         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
91006
91007 2000-06-15  Paul Eggert  <eggert@twinsun.com>
91008
91009         * lib/human.c (adjust_value): New function.
91010         (human_readable_inexact): Apply rounding style even when
91011         printing approximate values.
91012
91013 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91014
91015         * lib/human.c (human_readable_inexact): Allow an input block
91016         size that is not a multiple of the output block size, and vice versa.
91017         Reported by Piergiorgio Sartor.
91018
91019 2000-06-14  Paul Eggert  <eggert@twinsun.com>
91020
91021         * lib/getdate.y (get_date): Apply relative times after time
91022         zone indicator, not before.  Reported by Todd A. Jacobs.
91023
91024 2000-06-13  Jim Meyering  <meyering@lucent.com>
91025
91026         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
91027
91028         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
91029
91030 2000-06-12  Paul Eggert  <eggert@twinsun.com>
91031
91032         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
91033
91034 2000-06-12  Jim Meyering  <meyering@lucent.com>
91035
91036         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
91037         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
91038         optional argument.
91039         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
91040         the optional argument, `lib'.
91041
91042 2000-06-08  Jim Meyering  <meyering@lucent.com>
91043
91044         * m4/largefile.m4: Remove file (now that it's part of autoconf).
91045
91046 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91047
91048         Rewrite largefile configuration so that we don't need to run
91049         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
91050         AC_CANONICAL_HOST in configure.in -- jmm]
91051
91052         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
91053         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
91054         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
91055         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
91056         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
91057         All uses changed.
91058         Instead of inspecting the output of getconf, try to compile the
91059         test program without and with the macro definition.
91060         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
91061         for getconf.  Instead, check for the needed flags by compiling
91062         test programs.
91063
91064 2000-06-04  Paul Eggert  <eggert@twinsun.com>
91065
91066         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
91067
91068 2000-06-04  Jim Meyering  <meyering@lucent.com>
91069
91070         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
91071         SunOS 4.1.4 for which gid_t is an unsigned type.
91072
91073 2000-06-03  Jim Meyering  <meyering@lucent.com>
91074
91075         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
91076         now that autoconf requires that.
91077
91078         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
91079         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
91080         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
91081
91082 2000-06-03  Jim Meyering  <meyering@lucent.com>
91083
91084         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
91085
91086 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91087
91088         * m4/glibc21.m4: New file.
91089         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
91090
91091 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
91092
91093         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
91094         newer, don't install charset.alias.
91095         * lib/config.charset: Change the Linux/glibc rules so they become empty
91096         on glibc-2.1 or newer.
91097
91098 2000-06-02  Jim Meyering  <meyering@lucent.com>
91099
91100         * lib/mountlist.c: Back out last change.  Instead, do this...
91101         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
91102         me_dummy member using the same `ignore'-testing code.
91103         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
91104         fs_type strings.
91105         From Mark D. Roth.
91106
91107 2000-05-29  Jim Meyering  <meyering@lucent.com>
91108
91109         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
91110         mounts with the `ignore' attribute.  Based on a patch from
91111         Mark D. Roth.
91112
91113 2000-05-28  Jim Meyering  <meyering@lucent.com>
91114
91115         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
91116         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91117         * m4/stat.m4: Likewise.
91118         * m4/lstat.m4: Likewise.
91119         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
91120
91121         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
91122         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
91123
91124 2000-05-26  Jim Meyering  <meyering@lucent.com>
91125
91126         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
91127
91128 2000-05-24  Jim Meyering  <meyering@lucent.com>
91129
91130         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
91131         autoconf requires that.
91132         * m4/lib-check.m4: Likewise.
91133         * m4/jm-macros.m4: Likewise.
91134         * m4/strftime.m4: Likewise.
91135
91136         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
91137         AC_CHECK_DECLS, now that autoconf requires that.
91138
91139 2000-05-22  Jim Meyering  <meyering@lucent.com>
91140
91141         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91142         * m4/lstat.m4: Likewise.
91143
91144 2000-05-22  Jim Meyering  <meyering@lucent.com>
91145
91146         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
91147
91148 2000-05-20  Jim Meyering  <meyering@lucent.com>
91149
91150         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
91151         (jm_PREREQ): Use it.
91152
91153 2000-05-18  Jim Meyering  <meyering@lucent.com>
91154
91155         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
91156         back, too, since it may have been modified by allocate_entry.
91157         (hash_delete): Rewrite to use neither the assignment operator
91158         nor the comma operator in an if-expression.
91159
91160 2000-05-15  Paul Eggert  <eggert@twinsun.com>
91161
91162         * lib/closeout.c:
91163         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91164         Remove; no longer needed.
91165         "quotearg.h": Add include.
91166         (file_name): Do not bother to explicitly initialize to NULL; it's less
91167         efficient on some hosts.
91168         (close_stdout_status): Remove test as to whether stdout was already
91169         closed; it breaks for the case "echo x | sort >&-".
91170         Quote file name colons.
91171         Do not assume that _("write error") lacks format strings.
91172
91173 2000-05-15  Jim Meyering  <meyering@lucent.com>
91174
91175         * lib/version-etc.c (version_etc_copyright): Update the copyright
91176         string used in all --version output.
91177
91178 2000-05-14  Jim Meyering  <meyering@lucent.com>
91179
91180         * lib/closeout.c (close_stdout_set_file_name): New function.
91181         (close_stdout_status): Use new file-scoped global.
91182         Return right away if fstat says the stdout file descriptor is invalid.
91183         * lib/closeout.h (close_stdout_set_file_name): Declare.
91184
91185 2000-05-10  Jim Meyering  <meyering@lucent.com>
91186
91187         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91188         (close_stdout_set_status): New function.
91189         * lib/closeout.h (close_stdout_set_status): Declare.
91190
91191 2000-05-09  Jim Meyering  <meyering@lucent.com>
91192
91193         * m4/gettext.m4: Rename this...
91194         * m4/libintl.m4: ...to this.
91195
91196 2000-05-08  Jim Meyering  <meyering@lucent.com>
91197
91198         * lib/long-options.c: Don't include closeout.h.
91199         (parse_long_options): Don't call close_stdout for --version.
91200
91201 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91202
91203         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91204         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91205         2.1.3 bug.  This avoids a clash when files like regex.c define
91206         _GNU_SOURCE.
91207
91208 2000-05-06  Jim Meyering  <meyering@lucent.com>
91209
91210         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91211         (AC_REPLACE_FUNCS): Add strnlen.
91212
91213         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91214         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91215
91216         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91217         AC_SEARCH_LIBS call for nanosleep.
91218         (LIB_NANOSLEEP): Set and AC_SUBST.
91219
91220 2000-05-06  Jim Meyering  <meyering@lucent.com>
91221
91222         * lib/strnlen.c: Undefine __strnlen and strnlen.
91223         [!weak_alias]: Define __strnlen to strnlen.
91224
91225         * lib/atexit.c: New file, from libiberty.
91226
91227 2000-05-06  Jim Meyering  <meyering@lucent.com>
91228
91229         * lib/closeout.c (close_stdout_status): Also check for errors on the
91230         stderr stream.
91231
91232 2000-05-05  Jim Meyering  <meyering@lucent.com>
91233
91234         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91235         AC_SEARCH_LIBS call for clock_gettime.
91236         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91237
91238         * m4/search-libs.m4: Update from autoconf.
91239
91240         su doesn't work on Solaris 2.6.
91241         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91242         <shadow.h>.  Reported by Dragos Harabor.
91243
91244 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91245
91246         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91247         memcpy instead of xmalloc, xrealloc, path_concat.
91248         (locale_charset): Treat empty environment variables as absent.
91249         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91250
91251 2000-05-04  Jim Meyering  <meyering@lucent.com>
91252
91253         * lib/getopt.c: Update from glibc.
91254         * lib/obstack.c: Likewise.
91255         * lib/obstack.h: Likewise.
91256         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91257         file
91258
91259         * lib/regex.h: Likewise.
91260         * lib/strndup.c: Likewise.
91261         * lib/strnlen.c: New file, from glibc.
91262
91263 2000-05-03  Jim Meyering  <meyering@lucent.com>
91264
91265         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91266
91267 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91268
91269         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91270         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91271         compile-time test, rather than inspecting host and OS, to
91272         decide whether to define _LARGEFILE_SOURCE.
91273
91274 2000-05-01  Jim Meyering  <meyering@lucent.com>
91275
91276         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91277
91278         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91279         Based on a patch from Bruno Haible.
91280
91281 2000-05-01  Jim Meyering  <meyering@lucent.com>
91282
91283         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91284
91285 2000-04-29  Jim Meyering  <meyering@lucent.com>
91286
91287         * lib/path-concat.c: Declare strdup only if it's not defined.
91288         * lib/canon-host.c: Likewise.
91289
91290 2000-04-28  Jim Meyering  <meyering@lucent.com>
91291
91292         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91293         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91294         is included first, then limits.h is included by locale.h by libintl.h.
91295         From John David Anglin.
91296
91297 2000-04-25  Jim Meyering  <meyering@lucent.com>
91298
91299         * lib/makepath.c (S_IRWXUGO): Define.
91300         (make_path): Always perform explicit chmod if MODE specifies any
91301         of the `special' permission bits.  Prompted by a bug report against
91302         install from Mate Wierdl and Joost van Baal.
91303
91304 2000-04-18  Jim Meyering  <meyering@lucent.com>
91305
91306         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91307         (jm_PREREQ): Use it.
91308
91309 2000-04-18  Jim Meyering  <meyering@lucent.com>
91310
91311         * lib/README: New file.
91312
91313         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91314         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91315
91316 2000-04-17  Jim Meyering  <meyering@lucent.com>
91317
91318         Get it right :-)
91319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91320         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91321         Suggestion from Akim Demaille.
91322
91323 2000-04-17  Jim Meyering  <meyering@lucent.com>
91324
91325         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91326         the definition of it to rpl_strftime also defined-away the system's
91327         declaration.
91328
91329 2000-04-15  Jim Meyering  <meyering@lucent.com>
91330
91331         Use `C' to denote so-called `contiguous' files, the same way
91332         that tar does.
91333         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91334         (ftypelet): Use S_ISCTG.
91335         From Michael Deutschmann.
91336
91337 2000-04-14  Jim Meyering  <meyering@lucent.com>
91338
91339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91340         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91341         clobbered.
91342
91343 2000-04-14  Jim Meyering  <meyering@lucent.com>
91344
91345         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91346
91347 2000-04-13  Jim Meyering  <meyering@lucent.com>
91348
91349         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91350         AH_VERBATIM to insert required #ifndef into config.h.in.
91351         Suggestion from Akim Demaille.
91352
91353 2000-04-12  Jim Meyering  <meyering@lucent.com>
91354
91355         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91356         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91357         Christian Krackowizer.
91358
91359         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91360         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91361         (AC_SYS_LARGEFILE): Require.
91362         (AM_C_PROTOTYPES): Require.
91363
91364 2000-04-08  Jim Meyering  <meyering@lucent.com>
91365
91366         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91367         names don't conflict.  Reported by Eli Zaretskii.
91368
91369 2000-04-07  Jim Meyering  <meyering@lucent.com>
91370
91371         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91372         sys/types.h, to work around system header problems on AIX 3.2.5.
91373         From Bruno Haible.
91374
91375 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91376
91377         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91378         bug.  Deal with the different error behavior of Irix iconv.
91379
91380 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91381
91382         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91383         IRIX if the installer said otherwise.
91384
91385 2000-04-05  Jim Meyering  <meyering@lucent.com>
91386
91387         Portability tweaks required for ultrix4.3.
91388         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91389         (jm_CHECK_DECLS): Add getutent to the list of functions.
91390         (_jm_DECL_HEADERS): Add utmpx.h.
91391         From John David Anglin.
91392
91393         * m4/strftime.m4: Back out the 2000-04-02 change.
91394         Instead of that change, simply undefine putenv in the test program.
91395
91396 2000-04-05  Jim Meyering  <meyering@lucent.com>
91397
91398         Portability tweaks required for ultrix4.3.
91399         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91400         getutent.
91401         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91402         * lib/canon-host.c: Declare strdup.
91403         * lib/path-concat.c: Likewise.
91404         From John David Anglin.
91405
91406 2000-04-04  Jim Meyering  <meyering@lucent.com>
91407
91408         Be more DOS 8.3-friendly.
91409         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91410         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91411         * lib/Makefile.am: Reflect renaming.
91412         Reported by Eli Zaretskii.
91413
91414         Use a temporary file name that won't clash with `charset.alias'
91415         in the DOS 8.3 name space.
91416         * lib/Makefile.am (charset_tmp): Define.
91417         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91418         (uninstall-local): Likewise.
91419         Reported by Eli Zaretskii.
91420
91421 2000-04-03  Jim Meyering  <meyering@lucent.com>
91422
91423         * m4/gettext.m4: Fix typo in comment.
91424
91425         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91426         textutils/configure.in).  Suggestion from Paul Eggert.
91427         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91428
91429 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91430
91431         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91432         variable in the shell rather than using putenv, which isn't
91433         portable.  This avoids the configure-time inter-test dependency
91434         on the potentially-renamed putenv function.
91435
91436 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91437
91438         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91439         before checking struct stat.st_blksize, so that
91440         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91441
91442 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91443
91444         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91445         since strftime.c uses HAVE_STRFTIME to decide whether to use
91446         the underlying strftime.
91447
91448 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91449
91450         * lib/time/strftime.c (my_strftime): Make sure we call the system
91451         strftime, not ourselves, when invoking the underlying strftime.
91452
91453 2000-03-24  Jim Meyering  <meyering@lucent.com>
91454
91455         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91456         (charset_alias): Define.
91457         (install-exec-local): Factor out common code.
91458         (uninstall-local): Split lines longer than 80.
91459         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91460         (SUFFIXES): Define.
91461         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91462         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91463
91464 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91465
91466         * lib/config.charset: Output a line containing "Packages using this
91467         file".
91468         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91469         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91470         ref-del.sed): New rules.
91471
91472 2000-03-17  Jim Meyering  <meyering@lucent.com>
91473
91474         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91475         Otherwise, include <strings.h>
91476
91477 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91478
91479         * lib/unicodeio.c (utf8_wctomb): New function.
91480         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91481         format instead of in UCS-4 with platform dependent endianness.
91482
91483 2000-03-10  Jim Meyering  <meyering@lucent.com>
91484
91485         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91486         From Marco Franzen.
91487
91488 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91489
91490         * lib/savedir.c (savedir): Work even if directory size is
91491         negative; this can happen with some screwy NFS configurations.
91492
91493 2000-03-06  Jim Meyering  <meyering@lucent.com>
91494
91495         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91496         if it's NULL (because we ran out of memory).  From Bruno Haible.
91497
91498 2000-03-05  Jim Meyering  <meyering@lucent.com>
91499
91500         * lib/localcharset.c ("path-concat.h"): Include.
91501         (get_charset_aliases): Use path_concat instead of ANSI string
91502         concatenation.
91503
91504         * lib/unicodeio.h (PARAMS): Define.
91505         Use it to guard prototype.
91506
91507 2000-03-04  Jim Meyering  <meyering@lucent.com>
91508
91509         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91510         for lib/localcharset.c.
91511
91512 2000-03-04  Jim Meyering  <meyering@lucent.com>
91513
91514         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91515         installing into it.
91516         (uninstall-local): Uncomment this rule so `make distcheck' works
91517         once again.
91518
91519         * lib/unicodeio.c (<errno.h>): Include it.
91520         (errno): Declare if not defined.
91521
91522         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91523
91524         * lib/config.charset: New version, incorporating remarks from a linux
91525         i18n mailing list.  From Bruno Haible.
91526
91527 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91528
91529         * m4/codeset.m4: New file.
91530         * m4/iconv.m4: New file.
91531         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91532
91533 2000-03-03  Jim Meyering  <meyering@lucent.com>
91534
91535         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91536
91537 2000-03-02  Jim Meyering  <meyering@lucent.com>
91538
91539         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91540         the messages come out on separate lines.
91541
91542         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91543         rather than jm_CHECK_DECLARATIONS.
91544         * m4/decl.m4: Remove now-unused file.
91545
91546         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91547         geteuid.
91548
91549 2000-03-02  Jim Meyering  <meyering@lucent.com>
91550
91551         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91552
91553 2000-03-01  Jim Meyering  <meyering@lucent.com>
91554
91555         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91556         * lib/unicodeio.c: Likewise.
91557
91558 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91559
91560         * lib/config.charset: New file.
91561         * lib/localcharset.c: New file.
91562         * lib/unicodeio.h, lib/unicodeio.c: New files.
91563         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91564         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91565         (noinst_HEADERS): Add unicodeio.h.
91566         (all-local, install-exec-local, charset.alias): New targets.
91567
91568 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91569
91570         * lib/quotearg.c (ALERT_CHAR): New macro.
91571         (quotearg_buffer_restyled): Use it.
91572
91573 2000-02-27  Jim Meyering  <meyering@lucent.com>
91574
91575         * m4/check-decl.m4: Add getenv to the list.
91576
91577 2000-02-27  Jim Meyering  <meyering@lucent.com>
91578
91579         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91580         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91581
91582         * lib/backupfile.c: Guard inclusion of stdlib.h with
91583         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91584         Declare malloc if needed.
91585
91586         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91587         `#ifndef HAVE_DECL..'
91588         now that autoconf always defines the HAVE_DECL_ symbols.
91589         * lib/human.c: Likewise.
91590         * lib/same.c: Likewise.
91591         * lib/strtoumax.c: Likewise.
91592
91593         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91594         declaration check was not run.
91595         * lib/hash.c: Likewise.
91596         * lib/human.c: Likewise.
91597         * lib/same.c: Likewise.
91598         * lib/strtoumax.c: Likewise.
91599
91600         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91601         `.', then first look up the entire `.'-containing string as a login
91602         name.
91603
91604 2000-02-23  Jim Meyering  <meyering@lucent.com>
91605
91606         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91607         in place of my hack.
91608
91609 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91610
91611         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91612         (textint): New typedef.
91613         (parser_control): Member year changed from int to textint.
91614         All uses changed.
91615         (YYSTYPE): Removed; replaced by %union with int and textint members.
91616         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91617         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91618         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91619         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91620         (date, number, to_year): Use width of number in digits, not its value,
91621         to determine whether it's a 2-digit year, or a 2-digit time.
91622         (yylex): Store number of digits of numeric tokens.
91623         Reported by John Kendall.
91624
91625         (parser_control): Changed from struct parser_control to typedef (for
91626         consistency).  All uses changed.
91627
91628         (tID): Removed; not used.
91629         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91630
91631 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91632
91633         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91634         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91635
91636 2000-02-12  Jim Meyering  <meyering@lucent.com>
91637
91638         * lib/userspec.c (ISDIGIT): Define it.
91639         (isdigit): Remove definition.
91640         (is_number): Use ISDIGIT, not isdigit.
91641         <libintl.h>: Include.
91642         (_ and N_): Define.
91643         (parse_user_spec): Mark translatable strings.
91644
91645 2000-02-10  Jim Meyering  <meyering@lucent.com>
91646
91647         With these changes, nanosleep.[ch] are finally enough like the other
91648         lib/* replacement files to compile on a few more losing systems.
91649
91650         * lib/nanosleep.h: Don't include config.h.
91651         Remove prototype from declaration of nanosleep.
91652         (PARAMS): Remove now-unneeded definition.
91653         * lib/nanosleep.c: #undef nanosleep.
91654         (rpl_nanosleep): Rename from nanosleep.
91655
91656 2000-02-10  Jim Meyering  <meyering@lucent.com>
91657
91658         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91659         gnu_nanosleep to rpl_nanosleep.
91660
91661 2000-02-09  Jim Meyering  <meyering@lucent.com>
91662
91663         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91664         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91665
91666 2000-02-08  Akim Demaille  <akim@epita.fr>
91667
91668         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91669         `[' and `]' and remove uses of `changequote'.
91670         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91671         (AC_SYS_LARGEFILE): Likewise.
91672         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91673         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91674         of changequote.
91675         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91676         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91677         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91678         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91679
91680 2000-02-05  Jim Meyering  <meyering@lucent.com>
91681
91682         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91683         Remove explicit use of AC_HEADER_TIME.  It is required by
91684         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91685         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91686         in autoconf whereby the expansion of the latter ended up preceding
91687         the expansion of its prerequisite, AC_HEADER_TIME.
91688         Reported by Volker Borchert.
91689
91690 2000-02-03  Jim Meyering  <meyering@lucent.com>
91691
91692         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91693
91694 2000-02-03  Jim Meyering  <meyering@lucent.com>
91695
91696         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91697         rather than with `#if HAVE_UTMPNAME'.
91698
91699 2000-02-02  Jim Meyering  <meyering@lucent.com>
91700
91701         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91702         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91703         Reported by Eli Zaretskii.
91704
91705 2000-02-01  Jim Meyering  <meyering@lucent.com>
91706
91707         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91708
91709 2000-01-31  Jim Meyering  <meyering@lucent.com>
91710
91711         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91712         functions.  Add the time.h and sys/time.h headers along with the
91713         AC_REQUIRE'ment of AC_HEADER_TIME.
91714
91715 2000-01-31  Jim Meyering  <meyering@lucent.com>
91716
91717         * lib/nanosleep.h (nanosleep): Guard declaration with
91718         `#if ! HAVE_DECL_NANOSLEEP'.
91719         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91720         the declaration in that vendor's sys/timers.h.
91721         Reported by Christian Krackowizer.
91722
91723         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91724         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91725         (ISPRINT): Likewise.
91726         Reported by Tom Tromey.
91727
91728 2000-01-30  Jim Meyering  <meyering@lucent.com>
91729
91730         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91731
91732         * m4/prereq.m4 (utmp_includes): Define.
91733         Check for ut_user and ut_name members in both struct utmpx
91734         and struct utmp.
91735
91736 2000-01-30  Jim Meyering  <meyering@lucent.com>
91737
91738         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91739         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91740         header files where only utmpx.ut_user is declared.
91741
91742         * lib/readutmp.h (UT_USER): Define.
91743
91744 2000-01-29  Jim Meyering  <meyering@lucent.com>
91745
91746         * m4/lib-check.m4: New file containing library-related checks from
91747         fileutils and sh-utils (textutils had none).
91748
91749 2000-01-28  Jim Meyering  <meyering@lucent.com>
91750
91751         * m4/perl.m4: Change format of warning message to look more like that
91752         from the missing script.  Suggestion from François Pinard.
91753
91754 2000-01-25  Jim Meyering  <meyering@lucent.com>
91755
91756         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91757         well as time.h in the compile check.
91758         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91759         Fix typo in cross-compiling case: s/yes/no/.
91760
91761 2000-01-23  Jim Meyering  <meyering@lucent.com>
91762
91763         * m4/jm-macros.m4: Move df-related tests here from
91764         fileutils/configure.in
91765
91766         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91767         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91768
91769         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91770         s/space/ac_fsusage_space/.
91771         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91772
91773         * m4/ftruncate.m4: New file (derived from part of
91774         fileutils/configure.in).
91775         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91776         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91777
91778         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91779         AC_SUBST these here, rather than just in sh-util/configure.in, so
91780         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91781         all the same.
91782         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91783         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91784         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91785         (AC_SUBST(POW_LIBM)): Likewise.
91786         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91787
91788 2000-01-23  Jim Meyering  <meyering@lucent.com>
91789
91790         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91791         obstack.c.
91792
91793 2000-01-22  Jim Meyering  <meyering@lucent.com>
91794
91795         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91796
91797         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91798
91799         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91800         configure.in
91801         (AC_CHECK_HEADERS): Likewise for sh-utils.
91802         (AC_CHECK_HEADERS): Likewise for textutils.
91803         Merge the three lists of headers.
91804
91805         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91806         from fileutils' configure.in.
91807
91808         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91809         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91810         check-decl.m4.
91811
91812         * m4/check-decl.m4: Use #if rather than #ifdef.
91813         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91814         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91815         (_jm_DECL_HEADERS): Define new function.
91816         (jm_CHECK_DECLARATIONS): Require it.
91817
91818 2000-01-22  Jim Meyering  <meyering@lucent.com>
91819
91820         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91821         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91822         Required for some AIX systems.  Reported by Christian Krackowizer.
91823         [TESTING] (main): New function.
91824
91825         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91826         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91827         letters.
91828
91829         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91830         iswprint.
91831
91832         * lib/strverscmp.c (ISDIGIT): Define.
91833         (strverscmp): Use ISDIGIT, not isdigit.
91834
91835 2000-01-19  Jim Meyering  <meyering@lucent.com>
91836
91837         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91838         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91839         defines `struct timespec' in <sys/time.h>
91840
91841         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91842         Thanks to Akim for explaining.
91843
91844 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91845
91846         * lib/nanosleep.c (nanosleep):
91847         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91848         POSIX.1 doesn't require SA_INTERRUPT and some systems
91849         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91850         it's been part of POSIX.1 since day 1 (in 1988).
91851
91852 2000-01-17  Jim Meyering  <meyering@lucent.com>
91853
91854         * lib/interlock: Remove unused file.  Reported by François Pinard.
91855
91856 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91857
91858         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91859         alert, backslash, formfeed, and vertical tab unnecessarily in
91860         shell quoting style.
91861
91862 2000-01-16  Jim Meyering  <meyering@lucent.com>
91863
91864         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91865         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91866         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91867         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91868
91869 2000-01-16  Jim Meyering  <meyering@lucent.com>
91870
91871         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91872         because the latter didn't work.
91873
91874 2000-01-15  Jim Meyering  <meyering@lucent.com>
91875
91876         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91877         (AC_REPLACE_FUNCS): Add memcpy and memset.
91878         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91879         Add strpbrk.
91880         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91881
91882 2000-01-12  Jim Meyering  <meyering@lucent.com>
91883
91884         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91885         (jm_PREREQ): Use it.
91886         (jm_PREREQ_READUTMP): New macro.
91887         (jm_PREREQ): Use it.
91888
91889 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91890
91891         Quote multibyte characters correctly.
91892         * m4/c-bs-a.m4: New file.
91893         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91894         (jm_PREREQ): Use it.
91895
91896 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91897
91898         * m4/uintmax_t.m4: Port to autoconf 2.13.
91899
91900 2000-01-08  Jim Meyering  <meyering@ascend.com>
91901
91902         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91903         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91904
91905 2000-01-04  Jim Meyering  <meyering@ascend.com>
91906
91907         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91908         jm_STRUCT_DIRENT_D_TYPE.
91909         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91910         jm_STRUCT_DIRENT_D_INO.
91911         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91912         jm_STRUCT_UTIMBUF.
91913         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91914         renamings.
91915         * m4/utime.m4: Likewise.
91916
91917         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91918         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91919
91920 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91921
91922         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91923         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91924
91925 2000-01-02  Jim Meyering  <meyering@ascend.com>
91926
91927         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91928         remember if this is necessary.
91929
91930 1999-12-26  Jim Meyering  <meyering@ascend.com>
91931
91932         * m4/jm-macros.m4: Use it here.
91933         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91934
91935 1999-12-23  Jim Meyering  <meyering@ascend.com>
91936
91937         * m4/jm-macros.m4: Check for clock_gettime (moved from
91938         fileutils/configure.in)
91939         Check for gettimeofday.
91940
91941 1999-12-20  Jim Meyering  <meyering@ascend.com>
91942
91943         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91944         autoconf-2.14a-1999-12-20.
91945
91946 1999-12-19  Jim Meyering  <meyering@ascend.com>
91947
91948         * m4/lstat-slash.m4: New file.
91949         * m4/jm-macros.m4: Use the new macro:
91950         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91951
91952 1999-12-07  Jim Meyering  <meyering@ascend.com>
91953
91954         * m4/perl.m4: Require that File::Compare be available, too.
91955         Too many systems seem to lack it.
91956
91957         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91958         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91959
91960 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91961
91962         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91963         problem with the QNX 4.25 shell, which doesn't propagate exit
91964         status of failed commands inside shell assignments.
91965
91966 1999-11-17  Jim Meyering  <meyering@ascend.com>
91967
91968         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91969
91970 1999-11-07  Jim Meyering  <meyering@ascend.com>
91971
91972         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91973
91974 1999-11-06  Jim Meyering  <meyering@ascend.com>
91975
91976         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91977         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91978
91979 1999-11-05  Jim Meyering  <meyering@ascend.com>
91980
91981         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91982         configure.in of textutils, fileutils, and sh-utils into this one
91983         (shared between those packages) file.
91984         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91985         AC_STRUCT_ST_BLKSIZE.
91986
91987 1999-11-03  Jim Meyering  <meyering@ascend.com>
91988
91989         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91990         of AC_CHECK_TYPE checks includes unistd.h.
91991         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91992         Suggestion from Akim Demaille.
91993
91994 1999-10-30  Jim Meyering  <meyering@ascend.com>
91995
91996         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91997         m4-quoted string.
91998         * m4/ls-mntd-fs.m4: Likewise.
91999         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
92000         * m4/jm-winsz1.m4: Likewise.
92001
92002         * m4/const.m4: Remove file, since the fix made it into the experimental
92003         version of autoconf.
92004         * m4/mktime.m4: Likewise.
92005
92006         * m4/check-type.m4: Remove file, now that the latest version of
92007         AC_CHECK_TYPE takes a third arg to specify additional #includes.
92008
92009         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
92010         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
92011         AC_CHECK_TYPE.
92012
92013 1999-10-04  Jim Meyering  <meyering@ascend.com>
92014
92015         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
92016
92017 1999-09-22  Paul Eggert  <eggert@twinsun.com>
92018
92019         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
92020         2.95.1 bug with HP-UX 10.20.
92021
92022 1999-09-17  Jim Meyering  <meyering@ascend.com>
92023
92024         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
92025         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
92026         due to missing strdup (against sh-utils-2.0).
92027
92028 1999-08-29  Jim Meyering  <meyering@ascend.com>
92029
92030         * m4/jm-macros.m4: Require jm_BISON.
92031         * m4/bison.m4: New file.
92032
92033 1999-08-17  Paul Eggert  <eggert@twinsun.com>
92034
92035         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
92036         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
92037
92038 1999-08-05  Jim Meyering  <meyering@ascend.com>
92039
92040         * m4/getline.m4: Rename test file from conftestdata to conftest.data
92041         to avoid conflicts with `conftest' on 8+3 filesystems.
92042         Suggestion from Eli Zaretskii.
92043
92044 1999-08-04  Jim Meyering  <meyering@ascend.com>
92045
92046         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
92047         fileutils and sh-utils (textutils's getline test was inadequate).
92048         (AM_FUNC_GETLINE): Run this test.
92049         (AC_CHECK_FUNCS): Check for getdelim.
92050         Reported by Bob Proulx.
92051
92052 1999-08-02  Jim Meyering  <meyering@ascend.com>
92053
92054         * m4/jm-macros.m4: Add a comment.
92055
92056 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92057
92058         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
92059         <inttypes.h> defines strtoumax as a macro (and not as a
92060         function).
92061
92062 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92063
92064         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
92065         that we can shift, multiply and divide unsigned long long
92066         values; Ultrix cc can't do it.
92067
92068 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92069
92070         * m4/mktime.m4: New file, which is a preview of what should appear
92071         in the next public autoconf release.
92072
92073 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92074
92075         * m4/lfs.m4: Remove this file.
92076         * m4/largefile.m4: New file.  It contains the old contents of
92077         lfs.m4, except that all names with prefix AC_LFS have been
92078         changed to use the prefix AC_SYS_LARGEFILE instead, to be
92079         compatible with future autoconf versions.  Also, some minor m4
92080         quoting problems have been fixed.
92081
92082 1999-08-01  Paul Eggert  <eggert@twinsun.com>
92083
92084         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
92085         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
92086         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
92087         and simplify the shell code.
92088
92089 1999-08-01  Jim Meyering  <meyering@ascend.com>
92090
92091         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
92092         m4.
92093
92094 1999-07-20  Jim Meyering  <meyering@ascend.com>
92095
92096         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
92097
92098 1999-07-15  Jim Meyering  <meyering@ascend.com>
92099
92100         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
92101
92102 1999-05-22  Jim Meyering  <meyering@ascend.com>
92103
92104         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
92105
92106 1999-05-20  Jim Meyering  <meyering@ascend.com>
92107
92108         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
92109         Add a colon after each `then' in case $4 is empty.
92110
92111 1999-05-16  Jim Meyering  <meyering@ascend.com>
92112
92113         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
92114
92115 1999-05-10  Jim Meyering  <meyering@ascend.com>
92116
92117         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
92118
92119         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
92120         AC_FUNC_MKTIME.
92121
92122 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
92123
92124         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
92125
92126 1999-05-04  Paul Eggert  <eggert@twinsun.com>
92127
92128         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
92129         not CPPFLAGS, so that linking works correctly in IRIX.
92130
92131 1999-04-30  Paul Eggert  <eggert@twinsun.com>
92132
92133         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
92134
92135 1999-04-20  Paul Eggert  <eggert@twinsun.com>
92136
92137         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
92138         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
92139         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
92140         jm_AC_TYPE_UNSIGNED_LONG_LONG.
92141         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
92142
92143         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
92144
92145 1999-04-20  Jim Meyering  <meyering@ascend.com>
92146
92147         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
92148         AC_REPLACE xstroull if necessary.  From Paul Eggert.
92149         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
92150
92151 1999-04-18  Jim Meyering  <meyering@ascend.com>
92152
92153         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
92154         * m4/jm-macros.m4: Use it.
92155
92156 1999-04-06  Jim Meyering  <meyering@ascend.com>
92157
92158         * m4/strftime.m4: Remove test for %f.
92159
92160 1999-03-29  Jim Meyering  <meyering@ascend.com>
92161
92162         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92163         superset of the AC_TYPE_* checks in the textutils, fileutils,
92164         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92165         AC_TYPE_PID_T.
92166
92167 1999-03-28  Jim Meyering  <meyering@ascend.com>
92168
92169         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92170         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92171         replaced e.g., in the *.sh files of the sh-utils.
92172
92173 1999-03-20  Jim Meyering  <meyering@ascend.com>
92174
92175         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92176         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92177         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92178
92179 1999-03-19  Jim Meyering  <meyering@ascend.com>
92180
92181         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92182
92183 1999-03-12  Jim Meyering  <meyering@ascend.com>
92184
92185         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92186
92187 1999-03-07  Jim Meyering  <meyering@ascend.com>
92188
92189         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92190         declared.
92191
92192 1999-02-17  Jim Meyering  <meyering@ascend.com>
92193
92194         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92195         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92196
92197 1999-02-07  Jim Meyering  <meyering@ascend.com>
92198
92199         * m4/group-member.m4: New file -- extracted from sh-utils'
92200         configure.in.
92201
92202         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92203         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92204
92205 1999-02-06  Jim Meyering  <meyering@ascend.com>
92206
92207         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92208         * m4/fnmatch.m4: Likewise.
92209         * m4/getgroups.m4: Likewise.
92210         * m4/lstat.m4: Likewise.
92211         * m4/malloc.m4: Likewise.
92212         * m4/putenv.m4: Likewise.
92213         * m4/realloc.m4: Likewise.
92214         * m4/regex.m4: Likewise.
92215         * m4/stat.m4: Likewise.
92216         * m4/strftime.m4: Likewise.
92217         Suggestion from Alain Magloire.
92218
92219         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92220         * m4/fnmatch.m4: Likewise.
92221         * m4/getgroups.m4: Likewise.
92222         * m4/getline.m4: Likewise.
92223         * m4/lstat.m4: Likewise.
92224         * m4/malloc.m4: Likewise.
92225         * m4/memcmp.m4: Likewise.
92226         * m4/putenv.m4: Likewise.
92227         * m4/realloc.m4: Likewise.
92228         * m4/regex.m4: Likewise.
92229         * m4/stat.m4: Likewise.
92230         * m4/strftime.m4: Likewise.
92231         Suggestion from Alain Magloire.
92232
92233         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92234         an argument.
92235
92236         * m4/regex.m4: Add a run-time Test for proper operation of
92237         re_compile_pattern.
92238
92239 1999-01-31  Jim Meyering  <meyering@ascend.com>
92240
92241         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92242
92243 1999-01-30  Jim Meyering  <meyering@ascend.com>
92244
92245         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92246
92247         * m4/jm-mktime.m4: Make this a wrapper around the official
92248         AM_FUNC_MKTIME rather than my private copy, now that the official one
92249         is up to date.
92250         * m4/mktime.m4: Remove file.
92251
92252         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92253         * m4/uptime.m4: Likewise.
92254         * m4/uintmax_t.m4: Likewise.
92255
92256 1999-01-28  Jim Meyering  <meyering@ascend.com>
92257
92258         * m4/jm-macros.m4: Use jm_AFS.
92259         * m4/afs.m4: New file (from fileutils' configure.in).
92260
92261         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92262         * m4/chown.m4: Likewise.
92263         * m4/d-ino.m4: Likewise.
92264         * m4/d-type.m4: Likewise.
92265         * m4/fnmatch.m4: Likewise.
92266         * m4/getgroups.m4: Likewise.
92267         * m4/gettext.m4: Likewise.
92268         * m4/jm-mktime.m4: Likewise.
92269         * m4/jm-winsz2.m4: Likewise.
92270         * m4/lcmessage.m4: Likewise.
92271         * m4/ls-mntd-fs.m4: Likewise.
92272         * m4/malloc.m4: Likewise.
92273         * m4/memcmp.m4: Likewise.
92274         * m4/putenv.m4: Likewise.
92275         * m4/realloc.m4: Likewise.
92276         * m4/st_mtim.m4: Likewise.
92277         * m4/strftime.m4: Likewise.
92278
92279 1999-01-16  Jim Meyering  <meyering@ascend.com>
92280
92281         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92282         (ARGMATCH_DIE_DECL): Define.
92283
92284 1999-01-12  Jim Meyering  <meyering@ascend.com>
92285
92286         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92287         Reported by Lars Hecking.
92288
92289 1999-01-10  Jim Meyering  <meyering@ascend.com>
92290
92291         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92292         gross kludge.
92293         * m4/inttypes_h.m4: Likewise.
92294         * m4/lstat.m4: Likewise.
92295         * m4/malloc.m4: Likewise.
92296         * m4/readdir.m4: Likewise.
92297         * m4/realloc.m4: Likewise.
92298         * m4/st_dm_mode.m4: Likewise.
92299         * m4/stat.m4: Likewise.
92300         * m4/utimbuf.m4: Likewise.
92301         * m4/utimes.m4: Likewise.
92302
92303         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92304         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92305         comments in config.h.in are meaningful.
92306
92307         * m4/jm-macros.m4: Require autoconf-2.13 here.
92308
92309         * m4/regex.m4: By default, don't use the included regex.c on systems
92310         with glibc 2.  Suggestion from Uli Drepper.
92311
92312 1999-01-02  Jim Meyering  <meyering@ascend.com>
92313
92314         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92315
92316 1998-12-18  Jim Meyering  <meyering@ascend.com>
92317
92318         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92319         Based on a suggestion from Lars Hecking.
92320
92321 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92322
92323         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92324
92325 1998-11-16  Jim Meyering  <meyering@ascend.com>
92326
92327         * m4/lfs.m4: Double-quote the `uname...` expression.
92328
92329 1998-11-14  Jim Meyering  <meyering@ascend.com>
92330
92331         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92332         * m4/stat.m4: Likewise.
92333
92334 1998-11-03  Jim Meyering  <meyering@ascend.com>
92335
92336         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92337         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92338
92339 1998-10-18  Jim Meyering  <meyering@ascend.com>
92340
92341         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92342
92343 1998-10-17  Jim Meyering  <meyering@ascend.com>
92344
92345         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92346         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92347         calls for those previously hard-coded headers.  Instead, take a new
92348         parameter.
92349         (jm_CHECK_DECLARATIONS): Reflect interface change.
92350         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92351         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92352
92353         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92354
92355 1998-10-14  Jim Meyering  <meyering@ascend.com>
92356
92357         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92358         instead of "TZ=America/Vancouver".  From Paul Eggert.
92359
92360 1998-10-11  Jim Meyering  <meyering@ascend.com>
92361
92362         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92363         This adds a test for a recently added compatibility fix for mktime.c.
92364         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92365
92366 1998-09-27  Jim Meyering  <meyering@ascend.com>
92367
92368         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92369
92370         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92371         ../configure.in, including a change from Gordon Matzigkeit to allow
92372         cross-compiling for the Hurd.
92373
92374         * m4/glibc.m4: New file/macro to test for the GNU C Library
92375         versions 1 and 2.  From Gordon Matzigkeit.
92376         Indent.
92377
92378 1998-09-21  Jim Meyering  <meyering@ascend.com>
92379
92380         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92381
92382 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92383
92384         Port nanosecond-resolution times to UnixWare 2.1.2 and
92385         pedantic Solaris 2.6.
92386
92387         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92388         AC_STRUCT_ST_MTIM.
92389         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92390         Generate name of ns member, instead of just 1 or undef.
92391         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92392
92393 1998-08-15  Jim Meyering  <meyering@ascend.com>
92394
92395         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92396         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92397         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92398         instead of jm_TYPE_SSIZE_T.
92399
92400 1998-08-12  Jim Meyering  <meyering@ascend.com>
92401
92402         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92403
92404 1998-08-02  Jim Meyering  <meyering@ascend.com>
92405
92406         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92407         in acconfig.h manually.
92408
92409 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92410
92411         * m4/st_mtim.m4: New file.
92412
92413 1998-07-28  Jim Meyering  <meyering@ascend.com>
92414
92415         * m4/utimes.m4: Undef stat.
92416
92417 1998-07-25  Jim Meyering  <meyering@ascend.com>
92418
92419         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92420         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92421
92422 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92423
92424         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92425         uid and gid actually remain unchanged.
92426
92427 1998-07-07  Jim Meyering  <meyering@ascend.com>
92428
92429         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92430
92431 1998-07-04  Jim Meyering  <meyering@ascend.com>
92432
92433         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92434         to prove that this macro can be used in packages without regex.c.
92435
92436 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92437
92438         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92439         is to be used.
92440
92441 1998-07-03  Jim Meyering  <meyering@ascend.com>
92442
92443         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92444
92445         * m4/gettext.m4: New file -- from gettext-0.10.35.
92446         * m4/lcmessage.m4: Likewise.
92447         * m4/progtest.m4: Likewise.
92448
92449         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92450         * m4/jm-macros.m4: Require the new macro.
92451
92452 1998-06-29  Jim Meyering  <meyering@ascend.com>
92453
92454         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92455         for the definition of NGROUPS (used in a system header included
92456         by sys/mount.h).
92457
92458 1998-06-28  Jim Meyering  <meyering@ascend.com>
92459
92460         * m4/ls-mntd-fs.m4: New file.
92461         * m4/fstypename.m4: New file.
92462
92463         * m4/jm-macros.m4: Require the new macro.
92464         * m4/jm-glibc-io.m4: New file.
92465
92466 1998-05-19  Jim Meyering  <meyering@ascend.com>
92467
92468         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92469         * m4/lchown.m4: New file.
92470
92471         * m4/Makefile.am.in: New file.
92472         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92473
92474 1998-05-14  Jim Meyering  <meyering@ascend.com>
92475
92476         * m4/Makefile.am (EXTRA_DIST): Add them.
92477         * m4/jm-macros.m4: New file.
92478         * m4/utimbuf.m4: New file.
92479
92480 1998-05-12  Jim Meyering  <meyering@ascend.com>
92481
92482         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92483
92484 1998-05-11  Jim Meyering  <meyering@ascend.com>
92485
92486         * m4/isc-posix.m4: New file.
92487
92488 1998-05-10  Jim Meyering  <meyering@ascend.com>
92489
92490         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92491
92492 1998-05-09  Jim Meyering  <meyering@ascend.com>
92493
92494         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92495         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92496         with automake.
92497
92498         * m4/ssize_t.m4: New file.
92499         * m4/mktime.m4: Remove file -- the new automake has this now.
92500
92501 1998-04-26  Jim Meyering  <meyering@ascend.com>
92502
92503         * m4/assert.m4: New file.
92504         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92505
92506 1998-04-05  Jim Meyering  <meyering@ascend.com>
92507
92508         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92509         (jm_PREREQ): Use it here.
92510
92511 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92512
92513         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92514         in acconfig.h.
92515
92516 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92517
92518         * m4/prereq.m4: New file.
92519         * m4/error.m4: New file.
92520         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92521
92522 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92523
92524         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92525         cache-check for the same variable -- that defeated the purpose of
92526         the test; the test program was never run.  This was a problem only
92527         on systems with losing getline functions -- HP-UX 10.20 is one.
92528         Reported by Bjorn Helgaas.
92529
92530 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92531
92532         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92533
92534 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92535
92536         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92537
92538         * m4/const.m4: New file.  Use an initializer in this declaration
92539         typedef int charset[2]; const charset x;
92540         Reported by Bob Glickstein.
92541
92542 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92543
92544         * m4/chown.m4: Fix reversed types on -1 args to chown.
92545         From Kaveh Ghazi.
92546
92547 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92548
92549         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92550         Add lseek and memchr.
92551
92552         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92553         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92554         have a 20-character limit on names.
92555
92556 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92557
92558         * m4/inttypes_h.m4: New file.
92559         * m4/uintmax_t.m4: New file.
92560         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92561
92562
92563         -----
92564
92565         Local Variables:
92566         coding: utf-8
92567         End:
92568
92569         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92570
92571         Copying and distribution of this file, with or without
92572         modification, are permitted provided the copyright notice
92573         and this notice are preserved.